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">
  16. <img
  17. v-if="
  18. courseDetail.userid == userid ||
  19. (courseDetail.course_teacher &&
  20. courseDetail.course_teacher.indexOf(userid) != -1)
  21. "
  22. src="../../assets/icon/learn/addTool.png"
  23. @click="openToolAll"
  24. style="position: relative"
  25. />
  26. <img
  27. src="../../assets/icon/learn/last.png"
  28. @click="nextOrpreSteps(0)"
  29. />
  30. <img
  31. src="../../assets/icon/learn/next.png"
  32. @click="nextOrpreSteps(1)"
  33. />
  34. <img
  35. src="../../assets/icon/learn/return.png"
  36. @click.stop="
  37. goTo(
  38. '/courseDetail?userid=' +
  39. userid +
  40. '&oid=' +
  41. oid +
  42. '&org=' +
  43. org +
  44. '&cid=' +
  45. classId +
  46. '&courseId=' +
  47. id +
  48. '&tType=' +
  49. tType +
  50. '&screenType=' +
  51. screenType
  52. )
  53. "
  54. />
  55. </div> -->
  56. <div
  57. class="pButton"
  58. style="left: 0; top: 140px"
  59. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  60. @click="setContent2(true)"
  61. >
  62. <!-- 批 , getCourseDetail()-->
  63. <img
  64. src="../../assets/icon/newIcons/isRight.png"
  65. style="width: 45px"
  66. alt=""
  67. />
  68. </div>
  69. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  70. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  71. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  72. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  73. <div
  74. style="
  75. max-width: calc(100% - 40px);
  76. width: auto;
  77. white-space: nowrap;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. word-break: break-word;
  81. display: block;
  82. "
  83. >
  84. <el-tooltip
  85. effect="light"
  86. :content="courseDetail.title"
  87. placement="top"
  88. >
  89. <div class="ctitle">
  90. {{ courseDetail.title }}
  91. </div>
  92. </el-tooltip>
  93. </div>
  94. <el-tooltip effect="light" content="收缩" placement="top">
  95. <div class="mlImg" @click="setContent2(false)">
  96. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  97. </div>
  98. </el-tooltip>
  99. </div>
  100. <div
  101. class="inviteBox"
  102. v-if="tcid && inviteCode"
  103. style="padding: 0 0 8px 0"
  104. >
  105. <div>
  106. <span>随机码:{{ inviteCode }}</span>
  107. </div>
  108. </div>
  109. </div>
  110. <div class="cru_selectBox">
  111. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  112. <div class="stageChild" :class="{ navActive: item.isOpen }">
  113. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  114. <div
  115. class="navItem"
  116. :class="{
  117. openTaskActive:
  118. navIndex == taskCount &&
  119. nav.id == navId &&
  120. stageIndex == courseType,
  121. }"
  122. >
  123. <div v-if="nav.tool[0].tool != undefined">
  124. <div
  125. class="closeTri1"
  126. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  130. </div>
  131. <div
  132. class="closeTri1"
  133. v-else
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  137. </div>
  138. </div>
  139. <div v-else class="noToolBlue"></div>
  140. <div
  141. @click="openTask(stageIndex, navIndex, nav.id)"
  142. class="navItemList"
  143. :class="{
  144. isItemList:
  145. navIndex == taskCount &&
  146. nav.id == navId &&
  147. stageIndex == courseType,
  148. }"
  149. >
  150. <div>任务{{ navIndex + 1 }}:</div>
  151. <el-tooltip
  152. effect="light"
  153. :content="nav.taskName"
  154. placement="top"
  155. >
  156. <div
  157. :style="{
  158. width:
  159. IsLookOpen && !nav.isLook
  160. ? 'calc(100% - 75px)'
  161. : 'auto',
  162. }"
  163. >
  164. {{ nav.taskName }}
  165. </div>
  166. </el-tooltip>
  167. </div>
  168. <div class="lockTaskIcon">
  169. <img
  170. src="../../assets/lock.png"
  171. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  172. courseDetail.course_teacher.indexOf(userid) ==-1"
  173. alt=""
  174. />
  175. </div>
  176. </div>
  177. <div
  178. v-if="nav.tool[0].tool != undefined"
  179. class="toolChild"
  180. :class="{ toolActive: nav.isOpen }"
  181. >
  182. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  183. <div
  184. class="gjCss"
  185. :class="{
  186. isGjCss: t.isTool,
  187. }"
  188. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  189. >
  190. <div>工具{{ toolIndex2 + 1 }}:</div>
  191. <div v-if="t.tool == 58">模拟驾驶</div>
  192. <div v-if="t.tool == 59">路径搜索</div>
  193. <div v-if="t.tool == 60">深度学习</div>
  194. <div v-if="t.tool == 10">倒计时</div>
  195. <div v-if="t.tool == 65">挑人</div>
  196. <div v-if="t.tool == 7">思维网格</div>
  197. <div v-if="t.tool == 1">电子白板</div>
  198. <div v-if="t.tool == 52">文档</div>
  199. <div v-if="t.tool == 3">思维导图</div>
  200. <div v-if="t.tool == 48">表格</div>
  201. <div v-if="t.tool == 49">学生分组</div>
  202. <div v-if="t.tool == 4">问卷调查</div>
  203. <div v-if="t.tool == 45">选择题</div>
  204. <div v-if="t.tool == 15">问答</div>
  205. <div v-if="t.tool == 16">作业提交</div>
  206. <div v-if="t.tool == 50">批量上传</div>
  207. <div v-if="t.tool == 41">选择匹配</div>
  208. <div v-if="t.tool == 47">排序</div>
  209. <div v-if="t.tool == 40">个人评价</div>
  210. <div v-if="t.tool == 18">训练平台</div>
  211. <div v-if="t.tool == 21">AIoT Blockly</div>
  212. <div v-if="t.tool == 23">AI Python</div>
  213. <div v-if="t.tool == 24">AI Blockly</div>
  214. <div v-if="t.tool == 32">源码编辑</div>
  215. <div v-if="t.tool == 57">CocoPi</div>
  216. <div v-if="t.tool == 63">海龟编程</div>
  217. <div v-if="t.tool == 28">翻译</div>
  218. <div v-if="t.tool == 31">数字画板</div>
  219. <div v-if="t.tool == 39">GeoGebra</div>
  220. <div v-if="t.tool == 66">公式编辑</div>
  221. <div v-if="t.tool == 67">分子结构</div>
  222. <div v-if="t.tool == 68">时间轴</div>
  223. <div v-if="t.tool == 69">英语写作</div>
  224. <div v-if="t.tool == 70">英语口语</div>
  225. <div v-if="t.tool == 25">目标管理</div>
  226. <div v-if="t.tool == 26">课程设计</div>
  227. <div v-if="t.tool == 62">交互视频</div>
  228. <div v-if="t.tool == 71">AI智能体</div>
  229. <div v-if="t.tool == 72">应用中心</div>
  230. <div v-if="t.tool == 73">PPT</div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  240. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  241. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  242. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  243. <div>任务{{ taskCount + 1 }}</div>
  244. <el-tooltip
  245. effect="light"
  246. :content="
  247. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  248. "
  249. placement="top"
  250. >
  251. <div>
  252. {{
  253. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  254. .task
  255. }}
  256. </div>
  257. </el-tooltip>
  258. </div>
  259. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  260. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)">
  261. <div class="btnLeft">
  262. <el-tooltip effect="light" content="刷新" placement="top">
  263. <div class="reBtnIcon" @click="refreshCourse">
  264. <span>刷新</span>
  265. </div>
  266. </el-tooltip>
  267. <el-tooltip effect="light" content="评论" placement="top">
  268. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  269. <span>评论</span>
  270. </div>
  271. </el-tooltip>
  272. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  273. <el-tooltip effect="light" content="录制" placement="top">
  274. <div class="vedioIcon" @click="startRecording">
  275. <span>录制</span>
  276. </div>
  277. </el-tooltip>
  278. </div>
  279. <div v-else-if="tType == 1 || tType == 4">
  280. <el-tooltip effect="light" content="下载" placement="top">
  281. <div class="vedioIcon1" @click="stopRecording">
  282. <span>下载</span>
  283. </div>
  284. </el-tooltip>
  285. </div>
  286. </div>
  287. <div class="btnRight">
  288. <div
  289. class="last"
  290. @click="nextOrpreSteps(0)"
  291. v-if="!(IsFollow && tType == 2)"
  292. @mouseover="isHovered = true"
  293. @mouseout="isHovered = false"
  294. >
  295. <div class="lastImg">
  296. <img
  297. :src="
  298. isHovered
  299. ? require('../../assets/icon/newIcons/whiteLast.png')
  300. : require('../../assets/icon/newIcons/last.png')
  301. "
  302. alt=""
  303. />
  304. </div>
  305. <div class="lastText">上一步</div>
  306. </div>
  307. <div
  308. class="last"
  309. @click="nextOrpreSteps(1)"
  310. v-if="!(IsFollow && tType == 2)"
  311. @mouseover="isHovered1 = true"
  312. @mouseout="isHovered1 = false"
  313. >
  314. <div class="lastText">下一步</div>
  315. <div class="lastImg">
  316. <img
  317. :src="
  318. isHovered1
  319. ? require('../../assets/icon/newIcons/whiteNext.png')
  320. : require('../../assets/icon/newIcons/next.png')
  321. "
  322. alt=""
  323. />
  324. </div>
  325. </div>
  326. <div
  327. class="last"
  328. @click="juriVisible = true"
  329. v-if="tType == 1"
  330. @mouseover="isHovered2 = true"
  331. @mouseout="isHovered2 = false"
  332. >
  333. <div class="lastImg">
  334. <img
  335. :src="
  336. isHovered2
  337. ? require('../../assets/icon/newIcons/whiteLock.png')
  338. : require('../../assets/icon/newIcons/lock.png')
  339. "
  340. alt=""
  341. />
  342. </div>
  343. <div class="lastText">权限</div>
  344. </div>
  345. <div
  346. class="returnBtn1 returnIcon"
  347. @click.stop="
  348. goTo(
  349. '/courseDetail?userid=' +
  350. userid +
  351. '&oid=' +
  352. oid +
  353. '&org=' +
  354. org +
  355. '&cid=' +
  356. classId +
  357. '&courseId=' +
  358. id +
  359. '&tType=' +
  360. tType +
  361. '&screenType=' +
  362. screenType
  363. )
  364. "
  365. >
  366. <div class="lastImg">
  367. <img src="../../assets/icon/newIcon/return.png" alt="" />
  368. </div>
  369. <div class="lastText" style="color: #000">返回</div>
  370. </div>
  371. </div>
  372. <!-- <div
  373. class="returnBtn lockIcon"
  374. @click="juriVisible = true"
  375. v-if="tType == 1"
  376. >
  377. 权限
  378. </div>
  379. <div
  380. class="returnBtn vedioIcon"
  381. @click="startRecording"
  382. v-if="!videoStart && (tType == 1 || tType == 4)"
  383. >
  384. 录制
  385. </div>
  386. <div
  387. class="returnBtn"
  388. @click="stopRecording"
  389. v-else-if="tType == 1 || tType == 4"
  390. style="background: #ee5255"
  391. >
  392. 下载
  393. </div>
  394. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  395. 评论
  396. </div>
  397. <div
  398. class="returnBtn"
  399. @click="nextOrpreSteps(0)"
  400. v-if="!(IsFollow && tType == 2)"
  401. >
  402. 上一步
  403. </div>
  404. <div
  405. class="returnBtn"
  406. @click="nextOrpreSteps(1)"
  407. v-if="!(IsFollow && tType == 2)"
  408. >
  409. 下一步
  410. </div>
  411. <div class="returnBtn" @click="refreshCourse">刷新</div>
  412. <div
  413. class="returnBtn returnIcon"
  414. @click.stop="
  415. goTo(
  416. '/courseDetail?userid=' +
  417. userid +
  418. '&oid=' +
  419. oid +
  420. '&org=' +
  421. org +
  422. '&cid=' +
  423. classId +
  424. '&courseId=' +
  425. id +
  426. '&tType=' +
  427. tType +
  428. '&screenType=' +
  429. screenType
  430. )
  431. "
  432. >
  433. 返回
  434. </div> -->
  435. </div>
  436. </div>
  437. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  438. .taskDetail3 && -->
  439. <div
  440. class="isNoMessage"
  441. v-if="
  442. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  443. .chapterData.length == 0 &&
  444. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  445. .toolChoose[0].tool.length == 0 &&
  446. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  447. .taskDetail == '' &&
  448. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  449. .eList &&
  450. !(
  451. courseDetail.userid == userid ||
  452. (courseDetail.course_teacher &&
  453. courseDetail.course_teacher.indexOf(userid) != -1)
  454. )
  455. "
  456. >
  457. <img src="../../assets/icon/isNoMessage.png" alt />
  458. </div>
  459. <div class="study_top" :class="{ pzClass: pzDialog }">
  460. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  461. .taskDetail3 || -->
  462. <div
  463. class="vedioBox"
  464. v-if="
  465. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  466. .taskDetail != '' ||
  467. vChapterData[0].length > 0 ||
  468. fileC[0].length > 0) && (tType == 1 || (tType == 2 && IsStulook))
  469. "
  470. style="border-radius: 0 0 20px 20px"
  471. >
  472. <!-- <div
  473. class="taskBox"
  474. v-if="
  475. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  476. .taskDetail3
  477. "
  478. >
  479. <div
  480. style="
  481. display: flex;
  482. flex-wrap: nowrap;
  483. flex-direction: column;
  484. position: relative;
  485. "
  486. >
  487. <div
  488. style="
  489. padding: 15px 0;
  490. line-height: 29px;
  491. font-size: 18px;
  492. color: #0e1e33;
  493. "
  494. class="cont"
  495. v-if="
  496. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  497. .taskDetail3 != ''
  498. "
  499. v-html="
  500. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  501. .taskDetail3
  502. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  503. taskCount
  504. ].taskDetail3)
  505. : '暂无描述'
  506. "
  507. ></div>
  508. </div>
  509. </div> -->
  510. <div
  511. class="taskBox"
  512. v-if="
  513. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  514. .taskDetail != ''
  515. "
  516. >
  517. <div
  518. style="
  519. display: flex;
  520. flex-wrap: nowrap;
  521. flex-direction: column;
  522. position: relative;
  523. "
  524. class="renderedFor"
  525. >
  526. <div
  527. style="
  528. padding: 15px 0;
  529. line-height: 29px;
  530. font-size: 18px;
  531. color: #0e1e33;
  532. "
  533. class="cont"
  534. v-if="
  535. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  536. .taskDetail != ''
  537. "
  538. v-html="
  539. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  540. .taskDetail
  541. ? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
  542. taskCount
  543. ].taskDetail)
  544. : '暂无描述'
  545. "
  546. ></div>
  547. </div>
  548. </div>
  549. <div
  550. class="student_head"
  551. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  552. >
  553. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  554. <div
  555. :class="
  556. contentDialog == false
  557. ? 'box_course isContentCss'
  558. : 'box_course'
  559. "
  560. v-if="
  561. vChapterData.length > 0 &&
  562. vChapterData[0] &&
  563. showType !== ''
  564. "
  565. >
  566. <div class="wheel" style="height: auto" v-if="showType === 0">
  567. <div
  568. class="workd_media"
  569. style="height: 650px; width: calc(100% - 50px)"
  570. >
  571. <video-player
  572. class="video-player vjs-custom-skin"
  573. :class="contentDialog == false ? 'isAllWidth' : ''"
  574. :playsinline="true"
  575. :options="playerO[0]"
  576. @play="onPlayerPlay($event)"
  577. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  578. ></video-player>
  579. </div>
  580. </div>
  581. <div
  582. class="wheel"
  583. v-if="showType == 1"
  584. style="
  585. box-shadow: 0 0 6px 1px #f2f2f2;
  586. width: 95%;
  587. margin: 0 auto;
  588. background: #f1f1f1;
  589. "
  590. >
  591. <div class="title">查看文档</div>
  592. <el-form class="textBox">
  593. <el-form-item class="textTitle">
  594. <div style="font-size: 22px">
  595. {{ text.name }}
  596. </div>
  597. </el-form-item>
  598. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  599. <div v-html="text.url" class="textContent cont"></div>
  600. </el-form>
  601. </div>
  602. <div
  603. class="wheel"
  604. v-if="
  605. pptImgUrl1.indexOf(
  606. 'https://view.officeapps.live.com/op/view.aspx?src='
  607. ) != -1 && showType == 2
  608. "
  609. style="width: 95%; margin: 0 auto"
  610. >
  611. <iframe
  612. style="width: 100%; height: 100%; border: none"
  613. :src="pptImgUrl1"
  614. ></iframe>
  615. </div>
  616. <div
  617. class="wheel"
  618. v-else-if="showType == 2"
  619. style="width: 95%; margin: 0 auto"
  620. >
  621. <iframe
  622. style="width: 100%; height: 100%; border: none"
  623. :key="diffKey"
  624. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  625. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  626. :src="pptImgUrl1"
  627. ></iframe>
  628. <iframe
  629. style="width: 100%; height: 100%; border: none"
  630. security="restricted"
  631. v-else
  632. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  633. :src="pptImgUrl1"
  634. ></iframe>
  635. </div>
  636. <div
  637. class="wheel"
  638. v-if="showType === 16"
  639. style="width: 95%; margin: 0 auto"
  640. >
  641. <iframe
  642. style="width: 100%; height: 100%; border: none"
  643. :src="pptImgUrl1"
  644. ></iframe>
  645. </div>
  646. <div
  647. class="wheel"
  648. v-if="showType == 3"
  649. style="width: 95%; margin: 0 auto"
  650. >
  651. <pdf
  652. :pdfUrl="pptImgUrl1"
  653. style="width: 100%; height: 100%; overflow: auto"
  654. ></pdf>
  655. </div>
  656. <div
  657. class="wheel"
  658. v-if="showType == 4"
  659. style="width: 95%; margin: 0 auto"
  660. >
  661. <el-image
  662. :src="pptImgUrl1"
  663. fit="contain"
  664. style="width: 100%; height: 100%; cursor: pointer"
  665. @click="previewImg(pptImgUrl1)"
  666. ></el-image>
  667. </div>
  668. </div>
  669. <div
  670. class="pButton"
  671. style="position: absolute; right: 20px; top: 0; z-index: 998"
  672. v-if="!contentDialog"
  673. @click="setContent(true)"
  674. >
  675. <!-- 批 -->
  676. <img
  677. src="../../assets/icon/newIcons/isLeft.png"
  678. style="width: 45px"
  679. alt=""
  680. />
  681. </div>
  682. <div
  683. v-if="contentDialog == true"
  684. :style="{
  685. width:
  686. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  687. showType === ''
  688. ? 'calc(100%)'
  689. : '300px',
  690. margin:
  691. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  692. showType === ''
  693. ? '0 15px'
  694. : '0 15px 0 0',
  695. }"
  696. >
  697. <div
  698. class="vedioList"
  699. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  700. style="height: 650px"
  701. >
  702. <div class="navCorOpenBox">
  703. <div class="navTitile">内容列表:</div>
  704. <div class="navCorOpen" @click="setContent(false)">
  705. <img
  706. src="../../assets/icon/newIcons/isRight.png"
  707. alt=""
  708. />
  709. </div>
  710. </div>
  711. <div class="navBox">
  712. <div
  713. v-show="
  714. vChapterData[0].length > 0 || fileC[0].length > 0
  715. "
  716. style="padding: 10px 0 25px 0"
  717. >
  718. <div
  719. class="vedioTimeBox"
  720. v-for="(vitem, vindex) in vChapterData[0]"
  721. :key="vindex + '1'"
  722. >
  723. <div class="navListItem" v-if="vitem.type == 2">
  724. <div
  725. @click="lookVedio(vitem.url, vindex)"
  726. class="navText"
  727. :class="isClickNav == vindex ? 'isClickNav' : ''"
  728. >
  729. <span v-if="vitem.text">{{ vitem.text }}-</span
  730. >{{ vitem.name }}
  731. </div>
  732. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  733. <img
  734. src="../../assets/icon/newIcon/down.png"
  735. alt
  736. />
  737. </div> -->
  738. </div>
  739. <div class="navListItem" v-if="vitem.type == 6">
  740. <div
  741. @click="lookText(0, vindex)"
  742. class="navText"
  743. :class="isClickNav == vindex ? 'isClickNav' : ''"
  744. >
  745. {{ vitem.name }}.doc
  746. </div>
  747. <div
  748. class="downIcon"
  749. @click="checkFileFull1(vitem.type, vitem)"
  750. >
  751. <img
  752. src="../../assets/icon/newIcon/allScreen.png"
  753. alt
  754. />
  755. </div>
  756. </div>
  757. <div
  758. class="navListItem"
  759. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  760. >
  761. <div
  762. @click="doUrl(vitem.url, vindex)"
  763. class="navText"
  764. :class="isClickNav == vindex ? 'isClickNav' : ''"
  765. >
  766. {{ vitem.title ? vitem.title : vitem.url }}
  767. </div>
  768. <div
  769. class="downIcon"
  770. @click="checkFileFull1(vitem.type, vitem)"
  771. >
  772. <img
  773. src="../../assets/icon/newIcon/allScreen.png"
  774. alt
  775. />
  776. </div>
  777. </div>
  778. <div class="navListItem" v-if="vitem.type == 3">
  779. <div
  780. @click="downFile(vitem, vindex)"
  781. class="navText"
  782. :class="isClickNav == vindex ? 'isClickNav' : ''"
  783. >
  784. <span v-if="vitem.text">{{ vitem.text }}-</span
  785. >{{ vitem.name }}
  786. </div>
  787. <div
  788. class="downIcon"
  789. @click="checkFileFull1(vitem.type, vitem)"
  790. >
  791. <img
  792. src="../../assets/icon/newIcon/allScreen.png"
  793. alt
  794. />
  795. </div>
  796. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  797. <img
  798. src="../../assets/icon/newIcon/down.png"
  799. alt
  800. />
  801. </div> -->
  802. </div>
  803. <div class="navListItem" v-if="vitem.type == 12">
  804. <div class="navText" @click="downloadFile2(vitem)">
  805. <span v-if="vitem.text">{{ vitem.text }}-</span
  806. >{{ vitem.name }}
  807. </div>
  808. <div
  809. class="downIcon"
  810. @click="checkFileFull1(vitem.type, vitem)"
  811. >
  812. <img
  813. src="../../assets/icon/newIcon/allScreen.png"
  814. alt
  815. />
  816. </div>
  817. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  818. <img
  819. src="../../assets/icon/newIcon/down.png"
  820. alt
  821. />
  822. </div> -->
  823. </div>
  824. <div class="navListItem" v-if="vitem.type == 13">
  825. <div
  826. class="navText"
  827. @click="checkPhoto(vitem, vindex)"
  828. :class="isClickNav == vindex ? 'isClickNav' : ''"
  829. >
  830. {{ vitem.name }}
  831. </div>
  832. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  833. <img
  834. src="../../assets/icon/newIcon/down.png"
  835. alt
  836. />
  837. </div> -->
  838. </div>
  839. <div class="navListItem" v-if="vitem.type == 16">
  840. <div
  841. class="navText"
  842. @click="checkHtml(vitem, vindex)"
  843. :class="isClickNav == vindex ? 'isClickNav' : ''"
  844. >
  845. {{ vitem.name }}
  846. </div>
  847. <div
  848. class="downIcon"
  849. @click="checkFileFull1(vitem.type, vitem)"
  850. >
  851. <img
  852. src="../../assets/icon/newIcon/allScreen.png"
  853. alt
  854. />
  855. </div>
  856. </div>
  857. <div class="navListItem" v-if="vitem.type == 17">
  858. <div
  859. class="navText"
  860. @click="checkHtml(vitem, vindex)"
  861. :class="isClickNav == vindex ? 'isClickNav' : ''"
  862. >
  863. {{ vitem.name }}
  864. </div>
  865. <div
  866. class="downIcon"
  867. @click="checkFileFull1(vitem.type, vitem)"
  868. >
  869. <img
  870. src="../../assets/icon/newIcon/allScreen.png"
  871. alt
  872. />
  873. </div>
  874. </div>
  875. </div>
  876. <div class="fileC_box" v-if="fileC[0].length > 0">
  877. <div class="fileC_title">以下文件不支持预览</div>
  878. <div
  879. class="vedioTimeBox"
  880. v-for="(vitem, vindex) in fileC[0]"
  881. :key="vindex + '1'"
  882. >
  883. <div class="navListItem" v-if="vitem.type == 12">
  884. <div class="navText" style="color: #acb4bf">
  885. <span v-if="vitem.text">{{ vitem.text }}-</span
  886. >{{ vitem.name }}
  887. </div>
  888. <!-- <div
  889. class="downIcon"
  890. @click="downloadFile2(vitem)"
  891. >
  892. <img
  893. src="../../assets/icon/newIcon/down.png"
  894. alt
  895. />
  896. </div> -->
  897. </div>
  898. </div>
  899. </div>
  900. </div>
  901. </div>
  902. </div>
  903. </div>
  904. </div>
  905. <div style="width: calc(100% - 315px)">
  906. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  907. <!-- <el-button
  908. type="primary"
  909. class="newButton"
  910. @click="checkFileFull(showType, pptImgUrl1)"
  911. >全屏查看</el-button
  912. >
  913. <el-button
  914. type="primary"
  915. class="newButton"
  916. @click="downloadFile(pptImgUrl1)"
  917. v-if="showType != 2"
  918. >文件下载</el-button
  919. > -->
  920. <el-button
  921. v-if="
  922. showType == 2 &&
  923. pptImgUrl1.indexOf(
  924. 'https://view.officeapps.live.com/op/view.aspx?src='
  925. ) == -1
  926. "
  927. type="primary"
  928. class="newButton"
  929. @click="openLine(pptImgUrl1)"
  930. >打开链接
  931. </el-button>
  932. </div>
  933. <!-- <div
  934. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  935. v-if="showType == 1"
  936. >
  937. <el-button
  938. type="primary"
  939. class="newButton"
  940. @click="checkFileFull(showType, text)"
  941. >全屏查看</el-button
  942. >
  943. </div> -->
  944. </div>
  945. </div>
  946. </div>
  947. <div class="student_body" v-resize="resize">
  948. <div
  949. class="vedioBox"
  950. :style="{
  951. borderRadius:
  952. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  953. .taskDetail == '' &&
  954. vChapterData[taskCount].length == 0 &&
  955. fileC[taskCount].length == 0
  956. ? '0 0 20px 20px'
  957. : '20px',
  958. }"
  959. v-if="
  960. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  961. .toolChoose[0].tool &&
  962. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  963. .toolChoose[0].tool.length > 0
  964. "
  965. >
  966. <div
  967. class="toolHeng2"
  968. style="position: relative"
  969. v-if="
  970. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  971. .toolChoose[0].tool &&
  972. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  973. .toolChoose[0].tool.length &&
  974. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  975. .toolChoose[0].tool.length > 0
  976. "
  977. >
  978. <div class="workNav">工作区</div>
  979. <div
  980. class="filebox"
  981. style="flex-wrap: nowrap"
  982. v-for="(tool, toolIndex) in chapInfoList[courseType]
  983. .chapterInfo[0].taskJson[taskCount].toolChoose"
  984. :key="toolIndex"
  985. >
  986. <div class="bzBox">
  987. <div class="yCss"></div>
  988. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  989. 工具{{ toolIndex + 1 }}
  990. </div>
  991. <div
  992. v-if="timeWorkList[toolIndex].length > 0"
  993. style="margin: 0 0 0 10px"
  994. >
  995. {{
  996. timeWorkList[toolIndex][0].time
  997. ? "时间:" + timeWorkList[toolIndex][0].time
  998. : ""
  999. }}
  1000. </div>
  1001. </div>
  1002. <div class="toolBox">
  1003. <div>
  1004. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  1005. :key="indexTool"-->
  1006. <!-- <div class="iframeBox">
  1007. <div
  1008. class="addPoint isBorder"
  1009. v-for="(tooC, toolCIndex) in tool.tool"
  1010. :key="toolCIndex"
  1011. >
  1012. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  1013. <div
  1014. class="iframeName"
  1015. >
  1016. 电子白板
  1017. </div>
  1018. <iframe
  1019. src="https://iwb.cocorobo.cn/"
  1020. ref="whiteBoard"
  1021. ></iframe>
  1022. </div>
  1023. </div>
  1024. </div>-->
  1025. <div class="noiframeBox">
  1026. <div
  1027. class="addPoint"
  1028. v-for="(tooC, toolCIndex) in tool.tool"
  1029. :key="toolCIndex"
  1030. >
  1031. <div v-if="tooC == 1">
  1032. <img
  1033. src="../../assets/icon/secondToolList/whiteBoard.png"
  1034. alt
  1035. @click="addTools(tooC, toolIndex, taskCount)"
  1036. />
  1037. <div style="margin: 5px 0">电子白板</div>
  1038. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1039. style="position: absolute;right: 33px;top: -30px;">
  1040. 分析
  1041. </div>
  1042. </div>
  1043. <div v-if="tooC == 3">
  1044. <img
  1045. src="../../assets/icon/secondToolList/mindMapping.png"
  1046. alt
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. />
  1049. <div style="margin: 5px 0">思维导图</div>
  1050. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1051. style="position: absolute;right: 33px;top: -30px;">
  1052. 分析
  1053. </div>
  1054. </div>
  1055. <div v-if="tooC == 6">
  1056. <img
  1057. src="../../assets/icon/secondToolList/doc.png"
  1058. alt
  1059. @click="addTools(tooC, toolIndex, taskCount)"
  1060. />
  1061. <div style="margin: 5px 0">协同文档</div>
  1062. </div>
  1063. <div v-if="tooC == 7">
  1064. <img
  1065. src="../../assets/icon/secondToolList/mindNetwork.png"
  1066. alt
  1067. @click="addTools(tooC, toolIndex, taskCount)"
  1068. />
  1069. <div style="margin: 5px 0">思维网格</div>
  1070. <!-- && worksStudent[toolIndex].length>0 -->
  1071. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1072. style="position: absolute;right: 33px;top: -30px;">
  1073. 分析
  1074. </div>
  1075. </div>
  1076. <div v-if="tooC == 8">
  1077. <img
  1078. src="../../assets/icon/secondToolList/library.png"
  1079. alt
  1080. @click="addTools(tooC, toolIndex, taskCount)"
  1081. />
  1082. <div style="margin: 5px 0">素材库</div>
  1083. </div>
  1084. <div v-if="tooC == 17">
  1085. <img
  1086. src="../../assets/icon/secondToolList/library.png"
  1087. alt
  1088. @click="addTools(tooC, toolIndex, taskCount)"
  1089. />
  1090. <div style="margin: 5px 0">学习资料</div>
  1091. </div>
  1092. <div v-if="tooC == 2">
  1093. <img
  1094. @click="addTools(tooC, toolIndex, taskCount)"
  1095. src="../../assets/icon/secondToolList/note.png"
  1096. alt
  1097. />
  1098. <div style="margin: 5px 0">便签</div>
  1099. </div>
  1100. <div v-if="tooC == 4">
  1101. <img
  1102. @click="addTools(tooC, toolIndex, taskCount)"
  1103. src="../../assets/icon/thirdToolList/ask.png"
  1104. alt
  1105. />
  1106. <div style="margin: 5px 0">问卷调查</div>
  1107. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1108. style="position: absolute;right: 153px;top: -30px;">
  1109. 分析
  1110. </div>
  1111. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1112. style="position: absolute;right: 33px;top: -30px;">
  1113. 统计分析
  1114. </div>
  1115. </div>
  1116. <div v-if="tooC == 45">
  1117. <img
  1118. @click="addTools(tooC, toolIndex, taskCount)"
  1119. src="../../assets/icon/thirdToolList/choose.png"
  1120. alt
  1121. />
  1122. <div style="margin: 5px 0">选择题</div>
  1123. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1124. style="position: absolute;right: 33px;top: -30px;">
  1125. 分析
  1126. </div>
  1127. </div>
  1128. <!-- <div v-if="tooC == 5">
  1129. <img
  1130. @click="addTools(tooC, toolIndex, taskCount)"
  1131. src="../../assets/icon/thirdToolList/score.png"
  1132. alt
  1133. />
  1134. <div style="margin: 5px 0">量规评分</div>
  1135. </div> -->
  1136. <div v-if="tooC == 10">
  1137. <img
  1138. @click="addTools(tooC, toolIndex, taskCount)"
  1139. src="../../assets/icon/thirdToolList/time.png"
  1140. alt
  1141. />
  1142. <div style="margin: 5px 0">倒计时</div>
  1143. </div>
  1144. <div v-if="tooC == 15">
  1145. <img
  1146. @click="addTools(tooC, toolIndex, taskCount)"
  1147. src="../../assets/icon/thirdToolList/answer.png"
  1148. alt
  1149. />
  1150. <div style="margin: 5px 0">问答</div>
  1151. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1152. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1153. 分析
  1154. </div>
  1155. </div>
  1156. <div v-if="tooC == 26">
  1157. <img
  1158. @click="addTools(tooC, toolIndex, taskCount)"
  1159. src="../../assets/icon/thirdToolList/courseDesign.png"
  1160. alt
  1161. />
  1162. <div style="margin: 5px 0">课程设计</div>
  1163. </div>
  1164. <div v-if="tooC == 18">
  1165. <img
  1166. @click="addTools(tooC, toolIndex, taskCount)"
  1167. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1168. alt
  1169. />
  1170. <div style="margin: 5px 0">训练服务器</div>
  1171. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1172. style="position: absolute;right: 33px;top: -30px;">
  1173. 分析
  1174. </div>
  1175. </div>
  1176. <div v-if="tooC == 16">
  1177. <img
  1178. @click="addTools(tooC, toolIndex, taskCount)"
  1179. src="../../assets/icon/thirdToolList/work.png"
  1180. alt
  1181. />
  1182. <div style="margin: 5px 0">作业提交</div>
  1183. </div>
  1184. <div v-if="tooC == 50">
  1185. <img
  1186. @click="addTools(tooC, toolIndex, taskCount)"
  1187. src="../../assets/icon/thirdToolList/plwork.png"
  1188. alt
  1189. />
  1190. <div style="margin: 5px 0">批量上传</div>
  1191. </div>
  1192. <div v-if="tooC == 21">
  1193. <img
  1194. @click="addTools(tooC, toolIndex, taskCount)"
  1195. src="../../assets/icon/fourthToolList/program.png"
  1196. alt
  1197. />
  1198. <div style="margin: 5px 0">AIoT Blockly</div>
  1199. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1200. style="position: absolute;right: 33px;top: -30px;">
  1201. 分析
  1202. </div>
  1203. </div>
  1204. <!-- <div v-if="tooC == 22">
  1205. <img
  1206. @click="addTools(tooC, toolIndex, taskCount)"
  1207. src="../../assets/icon/fourthToolList/program.png"
  1208. alt
  1209. />
  1210. <div style="margin: 5px 0">AI体验</div>
  1211. </div> -->
  1212. <div v-if="tooC == 23">
  1213. <img
  1214. @click="addTools(tooC, toolIndex, taskCount)"
  1215. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1216. alt
  1217. />
  1218. <div style="margin: 5px 0">AI Python</div>
  1219. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1220. style="position: absolute;right: 33px;top: -30px;">
  1221. 分析
  1222. </div>
  1223. </div>
  1224. <div v-if="tooC == 24">
  1225. <img
  1226. @click="addTools(tooC, toolIndex, taskCount)"
  1227. src="../../assets/icon/fourthToolList/AIprogram.png"
  1228. alt
  1229. />
  1230. <div style="margin: 5px 0">AI Blockly</div>
  1231. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1232. style="position: absolute;right: 33px;top: -30px;">
  1233. 分析
  1234. </div>
  1235. </div>
  1236. <div v-if="tooC == 25">
  1237. <img
  1238. @click="addTools(tooC, toolIndex, taskCount)"
  1239. src="../../assets/icon/thirdToolList/evalua.png"
  1240. alt
  1241. />
  1242. <div style="margin: 5px 0">目标管理</div>
  1243. </div>
  1244. <div v-if="tooC == 31">
  1245. <img
  1246. @click="addTools(tooC, toolIndex, taskCount)"
  1247. src="../../assets/icon/secondToolList/networkPanel.png"
  1248. alt
  1249. />
  1250. <div style="margin: 5px 0">数学画板</div>
  1251. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1252. style="position: absolute;right: 33px;top: -30px;">
  1253. 分析
  1254. </div>
  1255. </div>
  1256. <div v-if="tooC == 28">
  1257. <img
  1258. @click="addTools(tooC, toolIndex, taskCount)"
  1259. src="../../assets/icon/secondToolList/translation.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,28)"
  1264. style="position: absolute;right: 33px;top: -30px;">
  1265. 分析
  1266. </div>
  1267. </div>
  1268. <div v-if="tooC == 37">
  1269. <img
  1270. @click="addTools(tooC, toolIndex, taskCount)"
  1271. src="../../assets/icon/secondToolList/mohe.png"
  1272. alt
  1273. />
  1274. <div style="margin: 5px 0">魔盒识字</div>
  1275. </div>
  1276. <div v-if="tooC == 38">
  1277. <img
  1278. @click="addTools(tooC, toolIndex, taskCount)"
  1279. src="../../assets/icon/secondToolList/24game.png"
  1280. alt
  1281. />
  1282. <div style="margin: 5px 0">24点</div>
  1283. </div>
  1284. <div v-if="tooC == 39">
  1285. <img
  1286. @click="addTools(tooC, toolIndex, taskCount)"
  1287. src="../../assets/icon/secondToolList/GeoGebra.png"
  1288. alt
  1289. />
  1290. <div style="margin: 5px 0">GeoGebra</div>
  1291. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1292. style="position: absolute;right: 33px;top: -30px;">
  1293. 分析
  1294. </div>
  1295. </div>
  1296. <div v-if="tooC == 32">
  1297. <img
  1298. @click="addTools(tooC, toolIndex, taskCount)"
  1299. src="../../assets/icon/thirdToolList/code.png"
  1300. alt
  1301. />
  1302. <div style="margin: 5px 0">源码编辑</div>
  1303. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1304. style="position: absolute;right: 153px;top: -42px;">
  1305. 分析
  1306. </div>
  1307. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1308. style="position: absolute;left: 110px;bottom: 30px;">
  1309. 上传文件
  1310. <input type="file" accept="*" style="display: none"
  1311. @change="beforeUpload1($event, 7, toolIndex)" />
  1312. </div> -->
  1313. </div>
  1314. <div v-if="tooC == 40">
  1315. <img
  1316. @click="addTools(tooC, toolIndex, taskCount)"
  1317. src="../../assets/icon/secondToolList/eval.png"
  1318. alt
  1319. />
  1320. <div style="margin: 5px 0">个人评价</div>
  1321. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1322. style="position: absolute;right: 33px;top: -30px;">
  1323. 分析
  1324. </div>
  1325. </div>
  1326. <div v-if="tooC == 41">
  1327. <img
  1328. @click="addTools(tooC, toolIndex, taskCount)"
  1329. src="../../assets/icon/thirdToolList/select.png"
  1330. alt
  1331. />
  1332. <div style="margin: 5px 0">选择匹配</div>
  1333. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1334. style="position: absolute;right: 33px;top: -30px;">
  1335. 分析
  1336. </div>
  1337. </div>
  1338. <div v-if="tooC == 44">
  1339. <img
  1340. @click="addTools(tooC, toolIndex, taskCount)"
  1341. src="../../assets/icon/thirdToolList/hanClass.png"
  1342. alt
  1343. />
  1344. <div style="margin: 5px 0">汉字宫</div>
  1345. </div>
  1346. <div v-if="tooC == 47">
  1347. <img
  1348. @click="addTools(tooC, toolIndex, taskCount)"
  1349. src="../../assets/icon/fourthToolList/conSentences.png"
  1350. alt
  1351. />
  1352. <div style="margin: 5px 0">排序</div>
  1353. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1354. style="position: absolute;right: 33px;top: -30px;">
  1355. 分析
  1356. </div>
  1357. </div>
  1358. <div v-if="tooC == 48">
  1359. <img
  1360. @click="addTools(tooC, toolIndex, taskCount)"
  1361. src="../../assets/icon/fourthToolList/table.png"
  1362. alt
  1363. />
  1364. <div style="margin: 5px 0">表格</div>
  1365. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1366. style="position: absolute;right: 33px;top: -30px;">
  1367. 分析
  1368. </div>
  1369. </div>
  1370. <div v-if="tooC == 52">
  1371. <img
  1372. @click="addTools(tooC, toolIndex, taskCount)"
  1373. src="../../assets/icon/fourthToolList/text.png"
  1374. alt
  1375. />
  1376. <div style="margin: 5px 0">文档</div>
  1377. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1378. style="position: absolute;right: 33px;top: -30px;">
  1379. 分析
  1380. </div>
  1381. </div>
  1382. <div v-if="tooC == 49">
  1383. <img
  1384. @click="addTools(tooC, toolIndex, taskCount)"
  1385. src="../../assets/icon/fourthToolList/group.png"
  1386. alt
  1387. />
  1388. <div style="margin: 5px 0">学生分组</div>
  1389. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1390. style="position: absolute;right: 33px;top: -30px;">
  1391. 分析
  1392. </div>
  1393. </div>
  1394. <div v-if="tooC == 57">
  1395. <img
  1396. @click="addTools(tooC, toolIndex, taskCount)"
  1397. src="../../assets/icon/fourthToolList/cocopi.png"
  1398. alt
  1399. />
  1400. <div style="margin: 5px 0">CocoPi</div>
  1401. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1402. style="position: absolute;right: 33px;top: -30px;">
  1403. 分析
  1404. </div>
  1405. </div>
  1406. <div v-if="tooC == 58">
  1407. <img
  1408. @click="addTools(tooC, toolIndex, taskCount)"
  1409. src="../../assets/icon/fourthToolList/car.png"
  1410. alt
  1411. />
  1412. <div style="margin: 5px 0">模拟驾驶</div>
  1413. </div>
  1414. <div v-if="tooC == 59">
  1415. <img
  1416. @click="addTools(tooC, toolIndex, taskCount)"
  1417. src="../../assets/icon/fourthToolList/lineSearch.png"
  1418. alt
  1419. />
  1420. <div style="margin: 5px 0">路径搜索</div>
  1421. </div>
  1422. <div v-if="tooC == 60">
  1423. <img
  1424. @click="addTools(tooC, toolIndex, taskCount)"
  1425. src="../../assets/icon/fourthToolList/deepLearning.png"
  1426. alt
  1427. />
  1428. <div style="margin: 5px 0">深度学习</div>
  1429. </div>
  1430. <div v-if="tooC == 61">
  1431. <img
  1432. @click="addTools(tooC, toolIndex, taskCount)"
  1433. src="../../assets/icon/fourthToolList/allHistory.png"
  1434. alt
  1435. />
  1436. <div style="margin: 5px 0">全历史</div>
  1437. </div>
  1438. <div v-if="tooC == 62">
  1439. <img
  1440. @click="addTools(tooC, toolIndex, taskCount)"
  1441. src="../../assets/icon/fourthToolList/interVideo.png"
  1442. alt
  1443. />
  1444. <div style="margin: 5px 0">交互视频</div>
  1445. </div>
  1446. <div v-if="tooC == 63">
  1447. <img
  1448. @click="addTools(tooC, toolIndex, taskCount)"
  1449. src="../../assets/icon/fourthToolList/Wood.png"
  1450. alt
  1451. />
  1452. <div style="margin: 5px 0">海龟编程</div>
  1453. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1454. style="position: absolute;right: 33px;top: -30px;">
  1455. 分析
  1456. </div>
  1457. </div>
  1458. <div v-if="tooC == 71">
  1459. <img
  1460. @click="addTools(tooC, toolIndex, taskCount)"
  1461. src="../../assets/icon/fourthToolList/chatgpt.png"
  1462. alt
  1463. />
  1464. <div style="margin: 5px 0">AI智能体</div>
  1465. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1466. style="position: absolute;right: 33px;top: -30px;">
  1467. 分析
  1468. </div>
  1469. </div>
  1470. <div v-if="tooC == 72">
  1471. <img
  1472. style="height: 85px;object-fit: cover;"
  1473. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1474. @click="addTools(tooC, toolIndex, taskCount)"
  1475. :src="tool.appJson.json.icon"
  1476. alt
  1477. />
  1478. <img
  1479. v-else
  1480. @click="addTools(tooC, toolIndex, taskCount)"
  1481. src="../../assets/icon/firstToolList/appStore.png"
  1482. alt
  1483. />
  1484. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1485. <!-- content to trigger tooltip here -->
  1486. <div class="Ovh">
  1487. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1488. </div>
  1489. </el-tooltip>
  1490. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1491. style="position: absolute;right: 33px;top: -30px;">
  1492. 分析
  1493. </div>
  1494. </div>
  1495. <div v-if="tooC == 73">
  1496. <img
  1497. src="../../assets/icon/secondToolList/ppt.png"
  1498. alt
  1499. @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,73)"
  1500. />
  1501. <div style="margin: 5px 0">PPT</div>
  1502. </div>
  1503. <div v-if="tooC == 65">
  1504. <img
  1505. @click="addTools(tooC, toolIndex, taskCount)"
  1506. src="../../assets/icon/firstToolList/pickPeople.png"
  1507. alt
  1508. />
  1509. <div style="margin: 5px 0">挑人</div>
  1510. </div>
  1511. <div v-if="tooC == 66">
  1512. <img
  1513. @click="addTools(tooC, toolIndex, taskCount)"
  1514. src="../../assets/icon/secondToolList/formulaEdi.png"
  1515. alt
  1516. />
  1517. <div style="margin: 5px 0">公式编辑</div>
  1518. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1519. style="position: absolute;right: 33px;top: -30px;">
  1520. 分析
  1521. </div>
  1522. </div>
  1523. <div v-if="tooC == 67">
  1524. <img
  1525. @click="addTools(tooC, toolIndex, taskCount)"
  1526. src="../../assets/icon/secondToolList/molStr.png"
  1527. alt
  1528. />
  1529. <div style="margin: 5px 0">分子结构</div>
  1530. </div>
  1531. <div v-if="tooC == 68">
  1532. <img
  1533. @click="addTools(tooC, toolIndex, taskCount)"
  1534. src="../../assets/icon/secondToolList/timeAxis.png"
  1535. alt
  1536. />
  1537. <div style="margin: 5px 0">时间轴</div>
  1538. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1539. style="position: absolute;right: 33px;top: -30px;">
  1540. 分析
  1541. </div> -->
  1542. </div>
  1543. <div v-if="tooC == 69">
  1544. <img
  1545. @click="addTools(tooC, toolIndex, taskCount)"
  1546. src="../../assets/icon/secondToolList/english.png"
  1547. alt
  1548. />
  1549. <div style="margin: 5px 0">英语写作</div>
  1550. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1551. style="position: absolute;right: 33px;top: -30px;">
  1552. 分析
  1553. </div>
  1554. </div>
  1555. <div v-if="tooC == 70">
  1556. <img
  1557. @click="addTools(tooC, toolIndex, taskCount)"
  1558. src="../../assets/icon/thirdToolList/englishVoice.png"
  1559. alt
  1560. />
  1561. <div style="margin: 5px 0">英语口语</div>
  1562. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1563. style="position: absolute;right: 33px;top: -30px;">
  1564. 分析
  1565. </div>
  1566. </div>
  1567. </div>
  1568. </div>
  1569. </div>
  1570. <div class="tooldetail renderedFor" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1571. <!-- <div class="toolTitle">工具描述</div> -->
  1572. <!-- @click.stop="updateToolDetail(toolIndex, 2)" 点击开启修改-->
  1573. <div style="height:100%;"
  1574. v-html="renderedFormula(tool.toolDetail)"
  1575. v-if="toolDetailIndex != toolIndex"
  1576. ></div>
  1577. <div v-else @click.stop="" style="height:100%;">
  1578. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1579. </div>
  1580. </div>
  1581. <el-button
  1582. type="primary"
  1583. v-if="tool.tool[0] == 32"
  1584. style="position: absolute; right: 30px; top: -45px"
  1585. @click="addImg($event)"
  1586. >上传作业<input
  1587. type="file"
  1588. accept="*"
  1589. style="display: none"
  1590. @change="beforeUpload1($event, 7, toolIndex)"
  1591. /></el-button>
  1592. <el-button
  1593. type="primary"
  1594. v-if="tool.tool[0] == 15"
  1595. style="position: absolute; right: 30px; top: -45px"
  1596. @click="openWordCloud(toolIndex)"
  1597. >生成词云</el-button
  1598. >
  1599. <el-button
  1600. type="primary"
  1601. v-if="
  1602. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1 && tType==1
  1603. "
  1604. style="position: absolute; right: 30px; top: -45px"
  1605. @click="uploadWorks(toolIndex)"
  1606. >导出作业</el-button
  1607. >
  1608. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1609. position: absolute;
  1610. right: 30px;
  1611. transform: translateY(-130%);
  1612. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1613. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1614. </div>
  1615. <div
  1616. v-if="
  1617. tType &&
  1618. tType == 2 &&
  1619. !sIsOpen &&
  1620. tool.tool.indexOf(16) != -1
  1621. "
  1622. class="worksBox"
  1623. >
  1624. <div
  1625. class="zuoyeYulan"
  1626. v-if="workStudent[toolIndex].length > 0"
  1627. >
  1628. <span class="worksTitle">作业预览</span>
  1629. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1630. </div>
  1631. <div
  1632. class="worksDetailBox"
  1633. v-if="workStudent[toolIndex].length > 0"
  1634. >
  1635. <div
  1636. class="works"
  1637. style="
  1638. width: 200px;
  1639. height: 140px;
  1640. margin: 10px 10px 10px 0;
  1641. box-shadow: 0 0 6px 1px #dfdada;
  1642. "
  1643. v-for="(w, wIndex) in workStudent[toolIndex]"
  1644. :key="wIndex"
  1645. >
  1646. <div class="workImg" v-if="w.type == 0">
  1647. <img
  1648. :src="w.works"
  1649. @click="previewImg(w.works,w)"
  1650. alt
  1651. />
  1652. <div
  1653. class="answerScore"
  1654. v-if="w.score"
  1655. @click.stop="openScore(w)"
  1656. :class="{
  1657. rightW:
  1658. w.userid == userid || tType == 1 || tType == 4,
  1659. }"
  1660. >
  1661. {{ JSON.parse(w.score).wScore }}分
  1662. </div>
  1663. <div
  1664. class="answerScore"
  1665. @click.stop="openScore(w)"
  1666. v-else-if="courseDetail.userid == userid"
  1667. :class="{
  1668. rightW:
  1669. w.userid == userid || tType == 1 || tType == 4,
  1670. }"
  1671. >
  1672. 评分
  1673. </div>
  1674. <img
  1675. class="deleteImg"
  1676. src="../../assets/deleteworks.png"
  1677. v-if="
  1678. w.userid == userid || tType == 1 || tType == 4
  1679. "
  1680. @click.stop="deleteWorks(w.wid)"
  1681. alt
  1682. />
  1683. </div>
  1684. <div class="workImg" v-if="w.type == 1">
  1685. <img :src="word" @click="openFile(w.works)" alt />
  1686. <div
  1687. class="answerScore"
  1688. v-if="w.score"
  1689. @click.stop="openScore(w)"
  1690. :class="{
  1691. rightW:
  1692. w.userid == userid || tType == 1 || tType == 4,
  1693. }"
  1694. >
  1695. {{ JSON.parse(w.score).wScore }}分
  1696. </div>
  1697. <div
  1698. class="answerScore"
  1699. @click.stop="openScore(w)"
  1700. v-else-if="courseDetail.userid == userid"
  1701. :class="{
  1702. rightW:
  1703. w.userid == userid || tType == 1 || tType == 4,
  1704. }"
  1705. >
  1706. 评分
  1707. </div>
  1708. <img
  1709. class="deleteImg"
  1710. src="../../assets/deleteworks.png"
  1711. v-if="
  1712. w.userid == userid || tType == 1 || tType == 4
  1713. "
  1714. @click.stop="deleteWorks(w.wid)"
  1715. alt
  1716. />
  1717. </div>
  1718. <div class="workImg" v-if="w.type == 3">
  1719. <img
  1720. style="cursor: pointer"
  1721. :src="video"
  1722. @click="openVideo(w)"
  1723. alt
  1724. />
  1725. <div
  1726. class="answerScore"
  1727. v-if="w.score"
  1728. @click.stop="openScore(w)"
  1729. :class="{
  1730. rightW:
  1731. w.userid == userid || tType == 1 || tType == 4,
  1732. }"
  1733. >
  1734. {{ JSON.parse(w.score).wScore }}分
  1735. </div>
  1736. <div
  1737. class="answerScore"
  1738. @click.stop="openScore(w)"
  1739. v-else-if="courseDetail.userid == userid"
  1740. :class="{
  1741. rightW:
  1742. w.userid == userid || tType == 1 || tType == 4,
  1743. }"
  1744. >
  1745. 评分
  1746. </div>
  1747. <img
  1748. class="deleteImg"
  1749. src="../../assets/deleteworks.png"
  1750. v-if="
  1751. w.userid == userid || tType == 1 || tType == 4
  1752. "
  1753. @click.stop="deleteWorks(w.wid)"
  1754. alt
  1755. />
  1756. </div>
  1757. <div class="workImg" v-if="w.type == 12">
  1758. <img
  1759. style="cursor: pointer"
  1760. :src="word2"
  1761. @click="downloadFile(w.works,w.userid)"
  1762. alt
  1763. />
  1764. <div
  1765. class="answerScore"
  1766. v-if="w.score"
  1767. @click.stop="openScore(w)"
  1768. :class="{
  1769. rightW:
  1770. w.userid == userid || tType == 1 || tType == 4,
  1771. }"
  1772. >
  1773. {{ JSON.parse(w.score).wScore }}分
  1774. </div>
  1775. <div
  1776. class="answerScore"
  1777. @click.stop="openScore(w)"
  1778. v-else-if="courseDetail.userid == userid"
  1779. :class="{
  1780. rightW:
  1781. w.userid == userid || tType == 1 || tType == 4,
  1782. }"
  1783. >
  1784. 评分
  1785. </div>
  1786. <img
  1787. class="deleteImg"
  1788. src="../../assets/deleteworks.png"
  1789. v-if="
  1790. w.userid == userid || tType == 1 || tType == 4
  1791. "
  1792. @click.stop="deleteWorks(w.wid)"
  1793. alt
  1794. />
  1795. </div>
  1796. <div class="worksName">
  1797. <div>{{ w.sName }}</div>
  1798. </div>
  1799. </div>
  1800. </div>
  1801. </div>
  1802. <div
  1803. v-if="
  1804. tType &&
  1805. tType == 2 &&
  1806. !sIsOpen &&
  1807. tool.tool.indexOf(32) != -1
  1808. "
  1809. class="worksBox"
  1810. >
  1811. <div
  1812. class="zuoyeYulan"
  1813. v-if="workStudent[toolIndex].length > 0"
  1814. >
  1815. <span class="worksTitle">作业预览</span>
  1816. </div>
  1817. <div
  1818. class="worksDetailBox"
  1819. v-if="workStudent[toolIndex].length > 0"
  1820. >
  1821. <div
  1822. class="works"
  1823. style="
  1824. width: 200px;
  1825. height: 140px;
  1826. margin: 10px 10px 10px 0;
  1827. box-shadow: 0 0 6px 1px #dfdada;
  1828. "
  1829. v-for="(w, wIndex) in workStudent[toolIndex]"
  1830. :key="wIndex"
  1831. >
  1832. <div class="workImg">
  1833. <img
  1834. :src="word2"
  1835. @click="downloadFile(w.works,w.userid)"
  1836. alt
  1837. />
  1838. <div
  1839. class="answerScore"
  1840. v-if="w.score"
  1841. @click.stop="openScore(w)"
  1842. :class="{
  1843. rightW:
  1844. w.userid == userid || tType == 1 || tType == 4,
  1845. }"
  1846. >
  1847. {{ JSON.parse(w.score).wScore }}分
  1848. </div>
  1849. <div
  1850. class="answerScore"
  1851. @click.stop="openScore(w)"
  1852. v-else-if="courseDetail.userid == userid"
  1853. :class="{
  1854. rightW:
  1855. w.userid == userid || tType == 1 || tType == 4,
  1856. }"
  1857. >
  1858. 评分
  1859. </div>
  1860. <img
  1861. class="deleteImg"
  1862. src="../../assets/deleteworks.png"
  1863. v-if="
  1864. w.userid == userid || tType == 1 || tType == 4
  1865. "
  1866. @click.stop="deleteWorks(w.wid)"
  1867. alt
  1868. />
  1869. </div>
  1870. <div class="worksName">
  1871. <div>{{ w.sName }}</div>
  1872. </div>
  1873. </div>
  1874. </div>
  1875. </div>
  1876. <div
  1877. v-if="
  1878. tType &&
  1879. tType == 2 &&
  1880. !sIsOpen &&
  1881. tool.tool.indexOf(57) != -1
  1882. "
  1883. class="worksBox"
  1884. >
  1885. <div
  1886. class="zuoyeYulan"
  1887. v-if="workStudent[toolIndex].length > 0"
  1888. >
  1889. <span class="worksTitle">作业预览</span>
  1890. </div>
  1891. <div
  1892. class="worksDetailBox"
  1893. v-if="workStudent[toolIndex].length > 0"
  1894. >
  1895. <div
  1896. class="works"
  1897. style="
  1898. width: 200px;
  1899. height: 140px;
  1900. margin: 10px 10px 10px 0;
  1901. box-shadow: 0 0 6px 1px #dfdada;
  1902. "
  1903. v-for="(w, wIndex) in workStudent[toolIndex]"
  1904. :key="wIndex"
  1905. >
  1906. <div class="workImg">
  1907. <img
  1908. :src="word2"
  1909. @click="downloadFile(w.works,w.userid)"
  1910. v-if="w.type == 12"
  1911. alt
  1912. />
  1913. <img
  1914. :src="word2"
  1915. @click="
  1916. openCocoPi(57, toolIndex, w.userid, w.sName)
  1917. "
  1918. v-else-if="w.type == 15"
  1919. alt
  1920. />
  1921. <div
  1922. class="answerScore"
  1923. v-if="w.score"
  1924. @click.stop="openScore(w)"
  1925. :class="{
  1926. rightW:
  1927. w.userid == userid || tType == 1 || tType == 4,
  1928. }"
  1929. >
  1930. {{ JSON.parse(w.score).wScore }}分
  1931. </div>
  1932. <div
  1933. class="answerScore"
  1934. @click.stop="openScore(w)"
  1935. v-else-if="courseDetail.userid == userid"
  1936. :class="{
  1937. rightW:
  1938. w.userid == userid || tType == 1 || tType == 4,
  1939. }"
  1940. >
  1941. 评分
  1942. </div>
  1943. <img
  1944. class="deleteImg"
  1945. src="../../assets/deleteworks.png"
  1946. v-if="
  1947. w.userid == userid || tType == 1 || tType == 4
  1948. "
  1949. @click.stop="deleteWorks(w.wid)"
  1950. alt
  1951. />
  1952. </div>
  1953. <div class="worksName">
  1954. <div>{{ w.sName }}</div>
  1955. </div>
  1956. </div>
  1957. </div>
  1958. </div>
  1959. <div
  1960. v-if="
  1961. tType &&
  1962. tType == 2 &&
  1963. !sIsOpen &&
  1964. tool.tool.indexOf(4) != -1
  1965. "
  1966. class="worksBox"
  1967. >
  1968. <div
  1969. class="zuoyeYulan"
  1970. v-if="workStudent[toolIndex].length > 0"
  1971. >
  1972. <span class="worksTitle">作业预览</span>
  1973. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1974. </div>
  1975. <div
  1976. class="worksDetailBox"
  1977. v-if="workStudent[toolIndex].length > 0"
  1978. >
  1979. <div
  1980. class="isWorksName2"
  1981. v-for="(w, wIndex) in workStudent[toolIndex]"
  1982. :key="wIndex"
  1983. @click="
  1984. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1985. "
  1986. >
  1987. {{ w.sName }}
  1988. <img
  1989. class="deleteImg deleteImg2"
  1990. src="../../assets/deleteworks.png"
  1991. v-if="w.userid == userid || tType == 1 || tType == 4"
  1992. @click.stop="deleteWorks(w.wid)"
  1993. alt
  1994. />
  1995. </div>
  1996. <!-- <div
  1997. class="works"
  1998. style="
  1999. width: 200px;
  2000. height: 140px;
  2001. border-radius: 10px;
  2002. box-shadow: 0 0 6px 1px #dfdada;
  2003. overflow: hidden;
  2004. "
  2005. v-for="(w, wIndex) in workStudent[toolIndex]"
  2006. :key="wIndex"
  2007. >
  2008. <div class="workImg">
  2009. <img
  2010. src="../../assets/icon/works/noImg.png"
  2011. @click="
  2012. openTools(
  2013. 4,
  2014. toolIndex,
  2015. taskCount,
  2016. w.works,
  2017. w.sName
  2018. )
  2019. "
  2020. alt
  2021. />
  2022. </div>
  2023. <div class="worksName">
  2024. <div>{{ w.sName }}</div>
  2025. <div>{{ w.time }}</div>
  2026. </div>
  2027. </div> -->
  2028. </div>
  2029. </div>
  2030. <div
  2031. v-if="
  2032. tType &&
  2033. ((tType == 2 && sIsOpen == true) ||
  2034. tType == 1 ||
  2035. tType == 4) &&
  2036. tool.tool.indexOf(62) != -1
  2037. "
  2038. class="worksBox"
  2039. >
  2040. <div
  2041. class="zuoyeYulan"
  2042. v-if="
  2043. worksStudent.length &&
  2044. worksStudent[toolIndex].length > 0
  2045. "
  2046. >
  2047. <div class="worksTop">
  2048. <div>作业预览</div>
  2049. <div
  2050. class="corOpen"
  2051. @click="contract(toolIndex)"
  2052. v-if="
  2053. (isCloseList[toolIndex].isCloseBoolean) &&
  2054. isCloseList[toolIndex].isClose == 0
  2055. "
  2056. >
  2057. 折叠
  2058. </div>
  2059. <div
  2060. class="corOpen"
  2061. @click="contract(toolIndex)"
  2062. v-if="isCloseList[toolIndex].isClose == 1"
  2063. >
  2064. 展开
  2065. </div>
  2066. </div>
  2067. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2068. </div>
  2069. <div>
  2070. <div
  2071. :id="'tool-' + toolIndex"
  2072. :style="{
  2073. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2074. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2075. }"
  2076. class="worksDetailBox"
  2077. v-if="
  2078. worksStudent.length &&
  2079. worksStudent[toolIndex].length > 0
  2080. "
  2081. >
  2082. <div
  2083. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2084. :key="wIndex"
  2085. class="isWorksName2"
  2086. @click="
  2087. openTools(
  2088. 62,
  2089. toolIndex,
  2090. taskCount,
  2091. w.works,
  2092. w.sName
  2093. )
  2094. "
  2095. >
  2096. {{ w.sName }}
  2097. <img
  2098. class="deleteImg deleteImg2"
  2099. src="../../assets/deleteworks.png"
  2100. v-if="
  2101. w.userid == userid || tType == 1 || tType == 4
  2102. "
  2103. @click.stop="deleteWorks(w.wid)"
  2104. alt
  2105. />
  2106. </div>
  2107. </div>
  2108. </div>
  2109. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2110. 未提交
  2111. </div>
  2112. <div
  2113. class="noWorksS"
  2114. v-if="noWorksS && noWorksS[toolIndex].length"
  2115. >
  2116. <div
  2117. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2118. :key="sIndex"
  2119. class="noWorksName"
  2120. >
  2121. <el-tooltip effect="dark" :content="s.student" placement="top">
  2122. <span>{{ s.student }}</span>
  2123. </el-tooltip>
  2124. </div>
  2125. </div>
  2126. </div>
  2127. <div
  2128. v-if="
  2129. tType &&
  2130. tType == 2 &&
  2131. !sIsOpen &&
  2132. tool.tool.indexOf(62) != -1
  2133. "
  2134. class="worksBox"
  2135. >
  2136. <div
  2137. class="zuoyeYulan"
  2138. v-if="workStudent[toolIndex].length > 0"
  2139. >
  2140. <span class="worksTitle">作业预览</span>
  2141. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2142. </div>
  2143. <div
  2144. class="worksDetailBox"
  2145. v-if="workStudent[toolIndex].length > 0"
  2146. >
  2147. <div
  2148. class="isWorksName2"
  2149. v-for="(w, wIndex) in workStudent[toolIndex]"
  2150. :key="wIndex"
  2151. @click="
  2152. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2153. "
  2154. >
  2155. {{ w.sName }}
  2156. <img
  2157. class="deleteImg deleteImg2"
  2158. src="../../assets/deleteworks.png"
  2159. v-if="w.userid == userid || tType == 1 || tType == 4"
  2160. @click.stop="deleteWorks(w.wid)"
  2161. alt
  2162. />
  2163. </div>
  2164. </div>
  2165. </div>
  2166. <div
  2167. v-if="
  2168. tType &&
  2169. tType == 2 &&
  2170. !sIsOpen &&
  2171. tool.tool.indexOf(45) != -1
  2172. "
  2173. class="worksBox"
  2174. >
  2175. <div
  2176. class="zuoyeYulan"
  2177. v-if="workStudent[toolIndex].length > 0"
  2178. >
  2179. <span class="worksTitle">作业预览</span>
  2180. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2181. </div>
  2182. <div
  2183. class="worksDetailBox"
  2184. v-if="workStudent[toolIndex].length > 0"
  2185. >
  2186. <div
  2187. class="isWorksName2"
  2188. v-for="(w, wIndex) in workStudent[toolIndex]"
  2189. :key="wIndex"
  2190. @click="
  2191. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2192. "
  2193. >
  2194. {{ w.sName }}
  2195. <img
  2196. class="deleteImg deleteImg2"
  2197. src="../../assets/deleteworks.png"
  2198. v-if="w.userid == userid || tType == 1 || tType == 4"
  2199. @click.stop="deleteWorks(w.wid)"
  2200. alt
  2201. />
  2202. </div>
  2203. </div>
  2204. </div>
  2205. <div
  2206. v-if="
  2207. tType &&
  2208. tType == 2 &&
  2209. !sIsOpen &&
  2210. tool.tool.indexOf(69) != -1
  2211. "
  2212. class="worksBox"
  2213. >
  2214. <div
  2215. class="zuoyeYulan"
  2216. v-if="workStudent[toolIndex].length > 0"
  2217. >
  2218. <span class="worksTitle">作业预览</span>
  2219. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2220. </div>
  2221. <div
  2222. class="worksDetailBox"
  2223. v-if="workStudent[toolIndex].length > 0"
  2224. >
  2225. <div
  2226. class="isWorksName2"
  2227. v-for="(w, wIndex) in workStudent[toolIndex]"
  2228. :key="wIndex"
  2229. @click="
  2230. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2231. "
  2232. >
  2233. {{ w.sName }}
  2234. <img
  2235. class="deleteImg deleteImg2"
  2236. src="../../assets/deleteworks.png"
  2237. v-if="w.userid == userid || tType == 1 || tType == 4"
  2238. @click.stop="deleteWorks(w.wid)"
  2239. alt
  2240. />
  2241. </div>
  2242. </div>
  2243. </div>
  2244. <div
  2245. v-if="
  2246. tType &&
  2247. tType == 2 &&
  2248. !sIsOpen &&
  2249. tool.tool.indexOf(15) != -1
  2250. "
  2251. class="worksBox"
  2252. >
  2253. <div
  2254. class="zuoyeYulan"
  2255. v-if="workStudent[toolIndex].length > 0"
  2256. >
  2257. <span class="worksTitle">作业预览</span>
  2258. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2259. </div>
  2260. <div
  2261. class="worksDetailBox"
  2262. v-if="workStudent[toolIndex].length > 0"
  2263. >
  2264. <div
  2265. class="works"
  2266. v-for="(w, wIndex) in workStudent[toolIndex]"
  2267. :key="wIndex"
  2268. >
  2269. <div class="workImg">
  2270. <!-- <img
  2271. src="../../assets/icon/works/noImg.png"
  2272. @click="openTools(15, toolIndex, taskCount, w.works)"
  2273. alt=""
  2274. />-->
  2275. <div class="answerBg">
  2276. <!-- <div>{{ w.sName }}</div> -->
  2277. <el-tooltip
  2278. class="item"
  2279. effect="light"
  2280. :content="JSON.parse(w.works)[0].answer"
  2281. placement="top"
  2282. >
  2283. <div class="answerContent">
  2284. {{ JSON.parse(w.works)[0].answer }}
  2285. </div>
  2286. </el-tooltip>
  2287. <div
  2288. class="answerScore"
  2289. v-if="w.score"
  2290. @click.stop="openScore(w)"
  2291. :class="{
  2292. rightW:
  2293. w.userid == userid ||
  2294. tType == 1 ||
  2295. tType == 4,
  2296. }"
  2297. >
  2298. {{ JSON.parse(w.score).wScore }}分
  2299. </div>
  2300. <div
  2301. class="answerScore"
  2302. @click.stop="openScore(w)"
  2303. v-else-if="courseDetail.userid == userid"
  2304. :class="{
  2305. rightW:
  2306. w.userid == userid ||
  2307. tType == 1 ||
  2308. tType == 4,
  2309. }"
  2310. >
  2311. 评分
  2312. </div>
  2313. <img
  2314. class="deleteImg"
  2315. src="../../assets/deleteworks.png"
  2316. v-if="
  2317. w.userid == userid || tType == 1 || tType == 4
  2318. "
  2319. @click.stop="deleteWorks(w.wid)"
  2320. alt
  2321. />
  2322. </div>
  2323. <div class="comment">
  2324. <div class="worksName">
  2325. <div>{{ w.sName }}</div>
  2326. </div>
  2327. </div>
  2328. </div>
  2329. </div>
  2330. </div>
  2331. </div>
  2332. <div
  2333. v-if="
  2334. tType &&
  2335. tType == 2 &&
  2336. !sIsOpen &&
  2337. tool.tool.indexOf(1) != -1
  2338. "
  2339. class="worksBox"
  2340. >
  2341. <div
  2342. class="zuoyeYulan"
  2343. v-if="workStudent[toolIndex].length > 0"
  2344. >
  2345. <span class="worksTitle">作业预览</span>
  2346. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2347. </div>
  2348. <div
  2349. class="worksDetailBox"
  2350. v-if="workStudent[toolIndex].length > 0"
  2351. >
  2352. <div
  2353. class="works"
  2354. style="
  2355. width: 200px;
  2356. height: 140px;
  2357. margin: 10px 10px 10px 0;
  2358. box-shadow: 0 0 6px 1px #dfdada;
  2359. "
  2360. v-for="(w, wIndex) in workStudent[toolIndex]"
  2361. :key="wIndex"
  2362. >
  2363. <div class="workImg">
  2364. <img
  2365. :src="w.works"
  2366. @click="previewImg(w.works,w)"
  2367. alt
  2368. />
  2369. <div
  2370. class="answerScore"
  2371. v-if="w.score"
  2372. @click.stop="openScore(w)"
  2373. :class="{
  2374. rightW:
  2375. w.userid == userid || tType == 1 || tType == 4,
  2376. }"
  2377. >
  2378. {{ JSON.parse(w.score).wScore }}分
  2379. </div>
  2380. <div
  2381. class="answerScore"
  2382. @click.stop="openScore(w)"
  2383. v-else-if="courseDetail.userid == userid"
  2384. :class="{
  2385. rightW:
  2386. w.userid == userid || tType == 1 || tType == 4,
  2387. }"
  2388. >
  2389. 评分
  2390. </div>
  2391. <img
  2392. class="deleteImg"
  2393. src="../../assets/deleteworks.png"
  2394. v-if="
  2395. w.userid == userid || tType == 1 || tType == 4
  2396. "
  2397. @click.stop="deleteWorks(w.wid)"
  2398. alt
  2399. />
  2400. </div>
  2401. <div class="worksName">
  2402. <div>{{ w.sName }}</div>
  2403. </div>
  2404. </div>
  2405. </div>
  2406. </div>
  2407. <div
  2408. v-if="
  2409. tType &&
  2410. tType == 2 &&
  2411. !sIsOpen &&
  2412. tool.tool.indexOf(3) != -1
  2413. "
  2414. class="worksBox"
  2415. >
  2416. <div
  2417. class="zuoyeYulan"
  2418. v-if="workStudent[toolIndex].length > 0"
  2419. >
  2420. <span class="worksTitle">作业预览</span>
  2421. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2422. </div>
  2423. <div
  2424. class="worksDetailBox"
  2425. v-if="workStudent[toolIndex].length > 0"
  2426. >
  2427. <div
  2428. class="works"
  2429. style="
  2430. width: 200px;
  2431. height: 140px;
  2432. margin: 10px 10px 10px 0;
  2433. box-shadow: 0 0 6px 1px #dfdada;
  2434. "
  2435. v-for="(w, wIndex) in workStudent[toolIndex]"
  2436. :key="wIndex"
  2437. >
  2438. <div class="workImg">
  2439. <img
  2440. :src="w.works"
  2441. @click="previewImg(w.works,w)"
  2442. alt
  2443. />
  2444. <div
  2445. class="answerScore"
  2446. v-if="w.score"
  2447. @click.stop="openScore(w)"
  2448. :class="{
  2449. rightW:
  2450. w.userid == userid || tType == 1 || tType == 4,
  2451. }"
  2452. >
  2453. {{ JSON.parse(w.score).wScore }}分
  2454. </div>
  2455. <div
  2456. class="answerScore"
  2457. @click.stop="openScore(w)"
  2458. v-else-if="courseDetail.userid == userid"
  2459. :class="{
  2460. rightW:
  2461. w.userid == userid || tType == 1 || tType == 4,
  2462. }"
  2463. >
  2464. 评分
  2465. </div>
  2466. <img
  2467. class="deleteImg"
  2468. src="../../assets/deleteworks.png"
  2469. v-if="
  2470. w.userid == userid || tType == 1 || tType == 4
  2471. "
  2472. @click.stop="deleteWorks(w.wid)"
  2473. alt
  2474. />
  2475. </div>
  2476. <div class="worksName">
  2477. <div>{{ w.sName }}</div>
  2478. </div>
  2479. </div>
  2480. </div>
  2481. </div>
  2482. <div
  2483. v-if="
  2484. tType &&
  2485. tType == 2 &&
  2486. !sIsOpen &&
  2487. tool.tool.indexOf(6) != -1
  2488. "
  2489. class="worksBox"
  2490. >
  2491. <div
  2492. class="zuoyeYulan"
  2493. v-if="workStudent[toolIndex].length > 0"
  2494. >
  2495. <span class="worksTitle">作业预览</span>
  2496. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2497. </div>
  2498. <div
  2499. class="worksDetailBox"
  2500. v-if="workStudent[toolIndex].length > 0"
  2501. >
  2502. <div
  2503. class="works"
  2504. style="
  2505. width: 200px;
  2506. height: 140px;
  2507. margin: 10px 10px 10px 0;
  2508. box-shadow: 0 0 6px 1px #dfdada;
  2509. "
  2510. v-for="(w, wIndex) in workStudent[toolIndex]"
  2511. :key="wIndex"
  2512. >
  2513. <div class="workImg">
  2514. <img
  2515. :src="w.works"
  2516. @click="previewImg(w.works,w)"
  2517. alt
  2518. />
  2519. <div
  2520. class="answerScore"
  2521. v-if="w.score"
  2522. @click.stop="openScore(w)"
  2523. :class="{
  2524. rightW:
  2525. w.userid == userid || tType == 1 || tType == 4,
  2526. }"
  2527. >
  2528. {{ JSON.parse(w.score).wScore }}分
  2529. </div>
  2530. <div
  2531. class="answerScore"
  2532. @click.stop="openScore(w)"
  2533. v-else-if="courseDetail.userid == userid"
  2534. :class="{
  2535. rightW:
  2536. w.userid == userid || tType == 1 || tType == 4,
  2537. }"
  2538. >
  2539. 评分
  2540. </div>
  2541. <img
  2542. class="deleteImg"
  2543. src="../../assets/deleteworks.png"
  2544. v-if="
  2545. w.userid == userid || tType == 1 || tType == 4
  2546. "
  2547. @click.stop="deleteWorks(w.wid)"
  2548. alt
  2549. />
  2550. </div>
  2551. <div class="worksName">
  2552. <div>{{ w.sName }}</div>
  2553. </div>
  2554. </div>
  2555. </div>
  2556. </div>
  2557. <div
  2558. v-if="
  2559. tType &&
  2560. tType == 2 &&
  2561. !sIsOpen &&
  2562. tool.tool.indexOf(7) != -1
  2563. "
  2564. class="worksBox"
  2565. >
  2566. <div
  2567. class="zuoyeYulan"
  2568. v-if="workStudent[toolIndex].length > 0"
  2569. >
  2570. <span class="worksTitle">作业预览</span>
  2571. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2572. </div>
  2573. <div
  2574. class="worksDetailBox"
  2575. v-if="workStudent[toolIndex].length > 0"
  2576. >
  2577. <div
  2578. class="works"
  2579. style="
  2580. width: 200px;
  2581. height: 140px;
  2582. margin: 10px 10px 10px 0;
  2583. box-shadow: 0 0 6px 1px #dfdada;
  2584. "
  2585. v-for="(w, wIndex) in workStudent[toolIndex]"
  2586. :key="wIndex"
  2587. >
  2588. <div class="workImg">
  2589. <img
  2590. :src="w.works"
  2591. @click="previewImg(w.works,w)"
  2592. alt
  2593. />
  2594. <div
  2595. class="answerScore"
  2596. v-if="w.score"
  2597. @click.stop="openScore(w)"
  2598. :class="{
  2599. rightW:
  2600. w.userid == userid || tType == 1 || tType == 4,
  2601. }"
  2602. >
  2603. {{ JSON.parse(w.score).wScore }}分
  2604. </div>
  2605. <div
  2606. class="answerScore"
  2607. @click.stop="openScore(w)"
  2608. v-else-if="courseDetail.userid == userid"
  2609. :class="{
  2610. rightW:
  2611. w.userid == userid || tType == 1 || tType == 4,
  2612. }"
  2613. >
  2614. 评分
  2615. </div>
  2616. <img
  2617. class="deleteImg"
  2618. src="../../assets/deleteworks.png"
  2619. v-if="
  2620. w.userid == userid || tType == 1 || tType == 4
  2621. "
  2622. @click.stop="deleteWorks(w.wid)"
  2623. alt
  2624. />
  2625. </div>
  2626. <div class="worksName">
  2627. <div>{{ w.sName }}</div>
  2628. </div>
  2629. </div>
  2630. </div>
  2631. </div>
  2632. <div
  2633. v-if="
  2634. tType &&
  2635. tType == 2 &&
  2636. !sIsOpen &&
  2637. tool.tool.indexOf(26) != -1
  2638. "
  2639. class="worksBox"
  2640. >
  2641. <div
  2642. class="zuoyeYulan"
  2643. v-if="workStudent[toolIndex].length > 0"
  2644. >
  2645. <span class="worksTitle">作业预览</span>
  2646. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2647. </div>
  2648. <div
  2649. class="worksDetailBox"
  2650. v-if="workStudent[toolIndex].length > 0"
  2651. >
  2652. <div
  2653. class="works"
  2654. style="
  2655. width: 200px;
  2656. height: 140px;
  2657. margin: 10px 10px 10px 0;
  2658. box-shadow: 0 0 6px 1px #dfdada;
  2659. "
  2660. v-for="(w, wIndex) in workStudent[toolIndex]"
  2661. :key="wIndex"
  2662. >
  2663. <div class="workImg">
  2664. <img
  2665. :src="w.works"
  2666. @click="previewImg(w.works,w)"
  2667. alt
  2668. />
  2669. <img
  2670. class="deleteImg"
  2671. src="../../assets/deleteworks.png"
  2672. v-if="
  2673. w.userid == userid || tType == 1 || tType == 4
  2674. "
  2675. @click.stop="deleteWorks(w.wid)"
  2676. alt
  2677. />
  2678. </div>
  2679. <div class="worksName">
  2680. <div>{{ w.sName }}</div>
  2681. </div>
  2682. </div>
  2683. </div>
  2684. </div>
  2685. <div
  2686. v-if="
  2687. tType &&
  2688. ((tType == 2 && sIsOpen == true) ||
  2689. tType == 1 ||
  2690. tType == 4) &&
  2691. tool.tool.indexOf(16) != -1
  2692. "
  2693. class="worksBox"
  2694. >
  2695. <div
  2696. class="zuoyeYulan"
  2697. v-if="
  2698. (worksStudent.length &&
  2699. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2700. "
  2701. >
  2702. <div class="worksTop">
  2703. <div>作业预览</div>
  2704. <div
  2705. class="corOpen"
  2706. @click="contract(toolIndex)"
  2707. v-if="
  2708. (isCloseList[toolIndex].isCloseBoolean) &&
  2709. isCloseList[toolIndex].isClose == 0
  2710. "
  2711. >
  2712. 折叠
  2713. </div>
  2714. <div
  2715. class="corOpen"
  2716. @click="contract(toolIndex)"
  2717. v-if="isCloseList[toolIndex].isClose == 1"
  2718. >
  2719. 展开
  2720. </div>
  2721. </div>
  2722. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2723. </div>
  2724. <div
  2725. class="group_workBox"
  2726. v-for="(g, gindex) in courseGroup.group"
  2727. :key="gindex"
  2728. >
  2729. <div class="group_box">
  2730. <div class="group_title">
  2731. <el-tooltip
  2732. class="item"
  2733. effect="light"
  2734. :content="g.name"
  2735. placement="top"
  2736. >
  2737. <div class="group_name">{{ g.name }}</div>
  2738. </el-tooltip>
  2739. </div>
  2740. <div
  2741. class="group_work"
  2742. v-if="
  2743. g.works &&
  2744. g.works.length &&
  2745. g.works[toolIndex].length
  2746. "
  2747. >
  2748. <div
  2749. class="works"
  2750. style="
  2751. width: 200px;
  2752. height: 140px;
  2753. margin: 10px 10px 10px 0;
  2754. border-radius: 15px;
  2755. box-shadow: 0 0 6px 1px #dfdada;
  2756. "
  2757. v-for="(w, wIndex) in g.works[toolIndex]"
  2758. :key="wIndex"
  2759. :class="w.type == 1 ? 'isTypeOne' : ''"
  2760. >
  2761. <div class="workImg" v-if="w.type == 0">
  2762. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2763. <img
  2764. :src="w.works"
  2765. @click="previewImg(w.works,w)"
  2766. alt
  2767. />
  2768. <div
  2769. class="answerScore"
  2770. v-if="w.score"
  2771. @click.stop="openScore(w)"
  2772. :class="{
  2773. rightW:
  2774. w.userid == userid ||
  2775. tType == 1 ||
  2776. tType == 4 ||
  2777. w.ateacher == userid,
  2778. }"
  2779. >
  2780. {{ JSON.parse(w.score).wScore }}分
  2781. </div>
  2782. <div
  2783. class="answerScore"
  2784. @click.stop="openScore(w)"
  2785. v-else-if="courseDetail.userid == userid"
  2786. :class="{
  2787. rightW:
  2788. w.userid == userid ||
  2789. tType == 1 ||
  2790. tType == 4 ||
  2791. w.ateacher == userid,
  2792. }"
  2793. >
  2794. 评分
  2795. </div>
  2796. <img
  2797. class="deleteImg"
  2798. src="../../assets/deleteworks.png"
  2799. v-if="
  2800. w.userid == userid || tType == 1 || tType == 4
  2801. "
  2802. @click.stop="deleteWorks(w.wid)"
  2803. alt
  2804. />
  2805. </div>
  2806. <div class="workImg" v-if="w.type == 1">
  2807. <img :src="word" @click="openFile(w.works)" alt />
  2808. <!-- @click="openFile(w.works)" -->
  2809. <div
  2810. class="answerScore"
  2811. v-if="w.score"
  2812. @click.stop="openScore(w)"
  2813. :class="{
  2814. rightW:
  2815. w.userid == userid ||
  2816. tType == 1 ||
  2817. tType == 4 ||
  2818. w.ateacher == userid,
  2819. }"
  2820. >
  2821. {{ JSON.parse(w.score).wScore }}分
  2822. </div>
  2823. <div
  2824. class="answerScore"
  2825. @click.stop="openScore(w)"
  2826. v-else-if="courseDetail.userid == userid"
  2827. :class="{
  2828. rightW:
  2829. w.userid == userid ||
  2830. tType == 1 ||
  2831. tType == 4 ||
  2832. w.ateacher == userid,
  2833. }"
  2834. >
  2835. 评分
  2836. </div>
  2837. <img
  2838. class="deleteImg"
  2839. src="../../assets/deleteworks.png"
  2840. v-if="
  2841. w.userid == userid || tType == 1 || tType == 4
  2842. "
  2843. @click.stop="deleteWorks(w.wid)"
  2844. alt
  2845. />
  2846. </div>
  2847. <div class="workImg" v-if="w.type == 3">
  2848. <img
  2849. style="cursor: pointer"
  2850. :src="video"
  2851. @click="openVideo(w)"
  2852. alt
  2853. />
  2854. <!-- @click="openVideo(w.works)" -->
  2855. <div
  2856. class="answerScore"
  2857. v-if="w.score"
  2858. @click.stop="openScore(w)"
  2859. :class="{
  2860. rightW:
  2861. w.userid == userid ||
  2862. tType == 1 ||
  2863. tType == 4 ||
  2864. w.ateacher == userid,
  2865. }"
  2866. >
  2867. {{ JSON.parse(w.score).wScore }}分
  2868. </div>
  2869. <div
  2870. class="answerScore"
  2871. @click.stop="openScore(w)"
  2872. v-else-if="courseDetail.userid == userid"
  2873. :class="{
  2874. rightW:
  2875. w.userid == userid ||
  2876. tType == 1 ||
  2877. tType == 4 ||
  2878. w.ateacher == userid,
  2879. }"
  2880. >
  2881. 评分
  2882. </div>
  2883. <img
  2884. class="deleteImg"
  2885. src="../../assets/deleteworks.png"
  2886. v-if="
  2887. w.userid == userid || tType == 1 || tType == 4
  2888. "
  2889. @click.stop="deleteWorks(w.wid)"
  2890. alt
  2891. />
  2892. </div>
  2893. <div class="workImg" v-if="w.type == 12">
  2894. <img
  2895. style="cursor: pointer"
  2896. :src="word2"
  2897. @click="downloadFile(w.works,w.userid)"
  2898. alt
  2899. />
  2900. <!-- @click="openVideo(w.works)" -->
  2901. <div
  2902. class="answerScore"
  2903. v-if="w.score"
  2904. @click.stop="openScore(w)"
  2905. :class="{
  2906. rightW:
  2907. w.userid == userid ||
  2908. tType == 1 ||
  2909. tType == 4 ||
  2910. w.ateacher == userid,
  2911. }"
  2912. >
  2913. {{ JSON.parse(w.score).wScore }}分
  2914. </div>
  2915. <div
  2916. class="answerScore"
  2917. @click.stop="openScore(w)"
  2918. v-else-if="courseDetail.userid == userid"
  2919. :class="{
  2920. rightW:
  2921. w.userid == userid ||
  2922. tType == 1 ||
  2923. tType == 4 ||
  2924. w.ateacher == userid,
  2925. }"
  2926. >
  2927. 评分
  2928. </div>
  2929. <img
  2930. class="deleteImg"
  2931. src="../../assets/deleteworks.png"
  2932. v-if="
  2933. w.userid == userid || tType == 1 || tType == 4
  2934. "
  2935. @click.stop="deleteWorks(w.wid)"
  2936. alt
  2937. />
  2938. </div>
  2939. <div class="comment" style="min-width: 200px">
  2940. <div class="worksName">
  2941. <div>{{ w.sName }}</div>
  2942. </div>
  2943. <div class="commentList">
  2944. <div class="commentList">
  2945. <div
  2946. class="commentImg"
  2947. @click="
  2948. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2949. "
  2950. >
  2951. <img
  2952. :src="w.isLikes == true ? likes : noLikes"
  2953. alt=""
  2954. />
  2955. </div>
  2956. <div>{{ w.likesCount }}</div>
  2957. </div>
  2958. <div
  2959. class="commentList"
  2960. style="margin-right: 15px"
  2961. >
  2962. <div
  2963. class="commentImg"
  2964. @click="
  2965. commentOther(
  2966. w,
  2967. toolIndex,
  2968. wIndex,
  2969. null,
  2970. g.id
  2971. )
  2972. "
  2973. >
  2974. <img
  2975. src="../../assets/icon/comment/comment.png"
  2976. alt=""
  2977. />
  2978. </div>
  2979. <div>{{ w.commentCount }}</div>
  2980. </div>
  2981. </div>
  2982. </div>
  2983. </div>
  2984. </div>
  2985. <div class="group_work" v-else>暂无提交作业</div>
  2986. </div>
  2987. </div>
  2988. <div
  2989. :id="'tool-' + toolIndex"
  2990. :style="{
  2991. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2992. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2993. }"
  2994. class="worksDetailBox"
  2995. v-if="
  2996. worksStudent.length &&
  2997. worksStudent[toolIndex].length > 0
  2998. "
  2999. >
  3000. <div
  3001. class="works"
  3002. style="
  3003. width: 200px;
  3004. height: 140px;
  3005. margin: 10px 10px 10px 0;
  3006. border-radius: 15px;
  3007. box-shadow: 0 0 6px 1px #dfdada;
  3008. "
  3009. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3010. :key="wIndex"
  3011. :class="w.type == 1 ? 'isTypeOne' : ''"
  3012. >
  3013. <div class="workImg" v-if="w.type == 0">
  3014. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3015. <img
  3016. :src="w.works"
  3017. @click="previewImg(w.works,w)"
  3018. alt
  3019. />
  3020. <div
  3021. class="answerScore"
  3022. v-if="w.score"
  3023. @click.stop="openScore(w)"
  3024. :class="{
  3025. rightW:
  3026. w.userid == userid ||
  3027. tType == 1 ||
  3028. tType == 4 ||
  3029. w.ateacher == userid,
  3030. }"
  3031. >
  3032. {{ JSON.parse(w.score).wScore }}分
  3033. </div>
  3034. <div
  3035. class="answerScore"
  3036. @click.stop="openScore(w)"
  3037. v-else-if="courseDetail.userid == userid"
  3038. :class="{
  3039. rightW:
  3040. w.userid == userid ||
  3041. tType == 1 ||
  3042. tType == 4 ||
  3043. w.ateacher == userid,
  3044. }"
  3045. >
  3046. 评分
  3047. </div>
  3048. <img
  3049. class="deleteImg"
  3050. src="../../assets/deleteworks.png"
  3051. v-if="
  3052. w.userid == userid || tType == 1 || tType == 4
  3053. "
  3054. @click.stop="deleteWorks(w.wid)"
  3055. alt
  3056. />
  3057. </div>
  3058. <div class="workImg" v-if="w.type == 1">
  3059. <img :src="word" @click="openFile(w.works)" alt />
  3060. <!-- @click="openFile(w.works)" -->
  3061. <div
  3062. class="answerScore"
  3063. v-if="w.score"
  3064. @click.stop="openScore(w)"
  3065. :class="{
  3066. rightW:
  3067. w.userid == userid ||
  3068. tType == 1 ||
  3069. tType == 4 ||
  3070. w.ateacher == userid,
  3071. }"
  3072. >
  3073. {{ JSON.parse(w.score).wScore }}分
  3074. </div>
  3075. <div
  3076. class="answerScore"
  3077. @click.stop="openScore(w)"
  3078. v-else-if="courseDetail.userid == userid"
  3079. :class="{
  3080. rightW:
  3081. w.userid == userid ||
  3082. tType == 1 ||
  3083. tType == 4 ||
  3084. w.ateacher == userid,
  3085. }"
  3086. >
  3087. 评分
  3088. </div>
  3089. <img
  3090. class="deleteImg"
  3091. src="../../assets/deleteworks.png"
  3092. v-if="
  3093. w.userid == userid || tType == 1 || tType == 4
  3094. "
  3095. @click.stop="deleteWorks(w.wid)"
  3096. alt
  3097. />
  3098. </div>
  3099. <div class="workImg" v-if="w.type == 3">
  3100. <img
  3101. style="cursor: pointer"
  3102. :src="video"
  3103. @click="openVideo(w)"
  3104. alt
  3105. />
  3106. <!-- @click="openVideo(w.works)" -->
  3107. <div
  3108. class="answerScore"
  3109. v-if="w.score"
  3110. @click.stop="openScore(w)"
  3111. :class="{
  3112. rightW:
  3113. w.userid == userid ||
  3114. tType == 1 ||
  3115. tType == 4 ||
  3116. w.ateacher == userid,
  3117. }"
  3118. >
  3119. {{ JSON.parse(w.score).wScore }}分
  3120. </div>
  3121. <div
  3122. class="answerScore"
  3123. @click.stop="openScore(w)"
  3124. v-else-if="courseDetail.userid == userid"
  3125. :class="{
  3126. rightW:
  3127. w.userid == userid ||
  3128. tType == 1 ||
  3129. tType == 4 ||
  3130. w.ateacher == userid,
  3131. }"
  3132. >
  3133. 评分
  3134. </div>
  3135. <img
  3136. class="deleteImg"
  3137. src="../../assets/deleteworks.png"
  3138. v-if="
  3139. w.userid == userid || tType == 1 || tType == 4
  3140. "
  3141. @click.stop="deleteWorks(w.wid)"
  3142. alt
  3143. />
  3144. </div>
  3145. <div class="workImg" v-if="w.type == 12">
  3146. <img
  3147. style="cursor: pointer"
  3148. :src="word2"
  3149. @click="downloadFile(w.works,w.userid)"
  3150. alt
  3151. />
  3152. <!-- @click="openVideo(w.works)" -->
  3153. <div
  3154. class="answerScore"
  3155. v-if="w.score"
  3156. @click.stop="openScore(w)"
  3157. :class="{
  3158. rightW:
  3159. w.userid == userid ||
  3160. tType == 1 ||
  3161. tType == 4 ||
  3162. w.ateacher == userid,
  3163. }"
  3164. >
  3165. {{ JSON.parse(w.score).wScore }}分
  3166. </div>
  3167. <div
  3168. class="answerScore"
  3169. @click.stop="openScore(w)"
  3170. v-else-if="courseDetail.userid == userid"
  3171. :class="{
  3172. rightW:
  3173. w.userid == userid ||
  3174. tType == 1 ||
  3175. tType == 4 ||
  3176. w.ateacher == userid,
  3177. }"
  3178. >
  3179. 评分
  3180. </div>
  3181. <img
  3182. class="deleteImg"
  3183. src="../../assets/deleteworks.png"
  3184. v-if="
  3185. w.userid == userid || tType == 1 || tType == 4
  3186. "
  3187. @click.stop="deleteWorks(w.wid)"
  3188. alt
  3189. />
  3190. </div>
  3191. <div class="comment" style="min-width: 200px">
  3192. <div class="worksName">
  3193. <div>{{ w.sName }}</div>
  3194. </div>
  3195. <div class="commentList">
  3196. <div class="commentList">
  3197. <div
  3198. class="commentImg"
  3199. @click="
  3200. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3201. "
  3202. >
  3203. <img
  3204. :src="w.isLikes == true ? likes : noLikes"
  3205. alt=""
  3206. />
  3207. </div>
  3208. <div>{{ w.likesCount }}</div>
  3209. </div>
  3210. <div class="commentList" style="margin-right: 15px">
  3211. <div
  3212. class="commentImg"
  3213. @click="commentOther(w, toolIndex, wIndex)"
  3214. >
  3215. <img
  3216. src="../../assets/icon/comment/comment.png"
  3217. alt=""
  3218. />
  3219. </div>
  3220. <div>{{ w.commentCount }}</div>
  3221. </div>
  3222. </div>
  3223. </div>
  3224. </div>
  3225. </div>
  3226. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3227. 未提交
  3228. </div>
  3229. <div
  3230. class="noWorksS"
  3231. v-if="noWorksS && noWorksS[toolIndex].length"
  3232. >
  3233. <div
  3234. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3235. :key="sIndex"
  3236. class="noWorksName"
  3237. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3238. >
  3239. <el-tooltip effect="dark" :content="s.student" placement="top">
  3240. <span>{{ s.student }}</span>
  3241. </el-tooltip>
  3242. </div>
  3243. </div>
  3244. </div>
  3245. <div
  3246. v-if="
  3247. tType &&
  3248. ((tType == 2 && sIsOpen == true) ||
  3249. tType == 1 ||
  3250. tType == 4) &&
  3251. tool.tool.indexOf(70) != -1
  3252. "
  3253. class="worksBox"
  3254. >
  3255. <div
  3256. class="zuoyeYulan"
  3257. v-if="
  3258. (worksStudent.length &&
  3259. worksStudent[toolIndex].length > 0)
  3260. "
  3261. >
  3262. <div class="worksTop">
  3263. <div>作业预览</div>
  3264. <div
  3265. class="corOpen"
  3266. @click="contract(toolIndex)"
  3267. v-if="
  3268. (isCloseList[toolIndex].isCloseBoolean) &&
  3269. isCloseList[toolIndex].isClose == 0
  3270. "
  3271. >
  3272. 折叠
  3273. </div>
  3274. <div
  3275. class="corOpen"
  3276. @click="contract(toolIndex)"
  3277. v-if="isCloseList[toolIndex].isClose == 1"
  3278. >
  3279. 展开
  3280. </div>
  3281. </div>
  3282. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3283. </div>
  3284. <div
  3285. :id="'tool-' + toolIndex"
  3286. :style="{
  3287. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3288. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3289. }"
  3290. class="worksDetailBox"
  3291. v-if="
  3292. worksStudent.length &&
  3293. worksStudent[toolIndex].length > 0
  3294. "
  3295. >
  3296. <div
  3297. class="works"
  3298. style="
  3299. width: 200px;
  3300. height: 140px;
  3301. margin: 10px 10px 10px 0;
  3302. border-radius: 15px;
  3303. box-shadow: 0 0 6px 1px #dfdada;
  3304. "
  3305. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3306. :key="wIndex"
  3307. :class="w.type == 1 ? 'isTypeOne' : ''"
  3308. >
  3309. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3310. <img :src="word" alt />
  3311. <img
  3312. class="deleteImg"
  3313. src="../../assets/deleteworks.png"
  3314. v-if="
  3315. w.userid == userid || tType == 1 || tType == 4
  3316. "
  3317. @click.stop="deleteWorks(w.wid)"
  3318. alt
  3319. />
  3320. </div>
  3321. <div class="comment" style="min-width: 200px">
  3322. <div class="worksName">
  3323. <div>{{ w.sName }}</div>
  3324. </div>
  3325. </div>
  3326. </div>
  3327. </div>
  3328. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3329. 未提交
  3330. </div>
  3331. <div
  3332. class="noWorksS"
  3333. v-if="noWorksS && noWorksS[toolIndex].length"
  3334. >
  3335. <div
  3336. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3337. :key="sIndex"
  3338. class="noWorksName"
  3339. >
  3340. <el-tooltip effect="dark" :content="s.student" placement="top">
  3341. <span>{{ s.student }}</span>
  3342. </el-tooltip>
  3343. </div>
  3344. </div>
  3345. </div>
  3346. <div
  3347. v-if="
  3348. tType &&
  3349. tType == 2 &&
  3350. !sIsOpen &&
  3351. tool.tool.indexOf(70) != -1
  3352. "
  3353. class="worksBox"
  3354. >
  3355. <div
  3356. class="zuoyeYulan"
  3357. v-if="workStudent[toolIndex].length > 0"
  3358. >
  3359. <span class="worksTitle">作业预览</span>
  3360. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3361. </div>
  3362. <div
  3363. class="worksDetailBox"
  3364. v-if="workStudent[toolIndex].length > 0"
  3365. >
  3366. <div
  3367. class="works"
  3368. style="
  3369. width: 200px;
  3370. height: 140px;
  3371. margin: 10px 10px 10px 0;
  3372. box-shadow: 0 0 6px 1px #dfdada;
  3373. "
  3374. v-for="(w, wIndex) in workStudent[toolIndex]"
  3375. :key="wIndex"
  3376. >
  3377. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3378. <img :src="word" alt />
  3379. <img
  3380. class="deleteImg"
  3381. src="../../assets/deleteworks.png"
  3382. v-if="
  3383. w.userid == userid || tType == 1 || tType == 4
  3384. "
  3385. @click.stop="deleteWorks(w.wid)"
  3386. alt
  3387. />
  3388. </div>
  3389. <div class="worksName">
  3390. <div>{{ w.sName }}</div>
  3391. </div>
  3392. </div>
  3393. </div>
  3394. </div>
  3395. <div
  3396. v-if="
  3397. tType &&
  3398. ((tType == 2 && sIsOpen == true) ||
  3399. tType == 1 ||
  3400. tType == 4) &&
  3401. tool.tool.indexOf(32) != -1
  3402. "
  3403. class="worksBox"
  3404. >
  3405. <div
  3406. class="zuoyeYulan"
  3407. v-if="
  3408. worksStudent.length &&
  3409. worksStudent[toolIndex].length > 0
  3410. "
  3411. >
  3412. <div class="worksTop">
  3413. <div>作业预览</div>
  3414. <div
  3415. class="corOpen"
  3416. @click="contract(toolIndex)"
  3417. v-if="
  3418. (isCloseList[toolIndex].isCloseBoolean) &&
  3419. isCloseList[toolIndex].isClose == 0
  3420. "
  3421. >
  3422. 折叠
  3423. </div>
  3424. <div
  3425. class="corOpen"
  3426. @click="contract(toolIndex)"
  3427. v-if="isCloseList[toolIndex].isClose == 1"
  3428. >
  3429. 展开
  3430. </div>
  3431. </div>
  3432. </div>
  3433. <div
  3434. :id="'tool-' + toolIndex"
  3435. :style="{
  3436. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3437. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3438. }"
  3439. class="worksDetailBox"
  3440. v-if="
  3441. worksStudent.length &&
  3442. worksStudent[toolIndex].length > 0
  3443. "
  3444. >
  3445. <div
  3446. class="works"
  3447. style="
  3448. width: 200px;
  3449. height: 140px;
  3450. margin: 10px 10px 10px 0;
  3451. border-radius: 15px;
  3452. box-shadow: 0 0 6px 1px #dfdada;
  3453. "
  3454. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3455. :key="wIndex"
  3456. :class="w.type == 1 ? 'isTypeOne' : ''"
  3457. >
  3458. <div class="workImg">
  3459. <img
  3460. :src="word2"
  3461. @click="downloadFile(w.works,w.userid)"
  3462. alt
  3463. />
  3464. <div
  3465. class="answerScore"
  3466. v-if="w.score"
  3467. @click.stop="openScore(w)"
  3468. :class="{
  3469. rightW:
  3470. w.userid == userid ||
  3471. tType == 1 ||
  3472. tType == 4 ||
  3473. w.ateacher == userid,
  3474. }"
  3475. >
  3476. {{ JSON.parse(w.score).wScore }}分
  3477. </div>
  3478. <div
  3479. class="answerScore"
  3480. @click.stop="openScore(w)"
  3481. v-else-if="courseDetail.userid == userid"
  3482. :class="{
  3483. rightW:
  3484. w.userid == userid ||
  3485. tType == 1 ||
  3486. tType == 4 ||
  3487. w.ateacher == userid,
  3488. }"
  3489. >
  3490. 评分
  3491. </div>
  3492. <img
  3493. class="deleteImg"
  3494. src="../../assets/deleteworks.png"
  3495. v-if="
  3496. w.userid == userid || tType == 1 || tType == 4
  3497. "
  3498. @click.stop="deleteWorks(w.wid)"
  3499. alt
  3500. />
  3501. </div>
  3502. <div class="comment" style="min-width: 200px">
  3503. <div class="worksName">
  3504. <div>{{ w.sName }}</div>
  3505. </div>
  3506. <div class="commentList">
  3507. <div class="commentList">
  3508. <div
  3509. class="commentImg"
  3510. @click="
  3511. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3512. "
  3513. >
  3514. <img
  3515. :src="w.isLikes == true ? likes : noLikes"
  3516. alt=""
  3517. />
  3518. </div>
  3519. <div>{{ w.likesCount }}</div>
  3520. </div>
  3521. <div class="commentList" style="margin-right: 15px">
  3522. <div
  3523. class="commentImg"
  3524. @click="commentOther(w, toolIndex, wIndex)"
  3525. >
  3526. <img
  3527. src="../../assets/icon/comment/comment.png"
  3528. alt=""
  3529. />
  3530. </div>
  3531. <div>{{ w.commentCount }}</div>
  3532. </div>
  3533. </div>
  3534. </div>
  3535. </div>
  3536. </div>
  3537. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3538. 未提交
  3539. </div>
  3540. <div
  3541. class="noWorksS"
  3542. v-if="noWorksS && noWorksS[toolIndex].length"
  3543. >
  3544. <div
  3545. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3546. :key="sIndex"
  3547. class="noWorksName"
  3548. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3549. >
  3550. <el-tooltip effect="dark" :content="s.student" placement="top">
  3551. <span>{{ s.student }}</span>
  3552. </el-tooltip>
  3553. </div>
  3554. </div>
  3555. </div>
  3556. <div
  3557. v-if="
  3558. tType &&
  3559. ((tType == 2 && sIsOpen == true) ||
  3560. tType == 1 ||
  3561. tType == 4) &&
  3562. tool.tool.indexOf(57) != -1
  3563. "
  3564. class="worksBox"
  3565. >
  3566. <div
  3567. class="zuoyeYulan"
  3568. v-if="
  3569. worksStudent.length &&
  3570. worksStudent[toolIndex].length > 0
  3571. "
  3572. >
  3573. <div class="worksTop">
  3574. <div>作业预览</div>
  3575. <div
  3576. class="corOpen"
  3577. @click="contract(toolIndex)"
  3578. v-if="
  3579. (isCloseList[toolIndex].isCloseBoolean) &&
  3580. isCloseList[toolIndex].isClose == 0
  3581. "
  3582. >
  3583. 折叠
  3584. </div>
  3585. <div
  3586. class="corOpen"
  3587. @click="contract(toolIndex)"
  3588. v-if="isCloseList[toolIndex].isClose == 1"
  3589. >
  3590. 展开
  3591. </div>
  3592. </div>
  3593. </div>
  3594. <div
  3595. :id="'tool-' + toolIndex"
  3596. :style="{
  3597. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3598. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3599. }"
  3600. class="worksDetailBox"
  3601. v-if="
  3602. worksStudent.length &&
  3603. worksStudent[toolIndex].length > 0
  3604. "
  3605. >
  3606. <div
  3607. class="works"
  3608. style="
  3609. width: 200px;
  3610. height: 140px;
  3611. margin: 10px 10px 10px 0;
  3612. border-radius: 15px;
  3613. box-shadow: 0 0 6px 1px #dfdada;
  3614. "
  3615. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3616. :key="wIndex"
  3617. :class="w.type == 1 ? 'isTypeOne' : ''"
  3618. >
  3619. <div class="workImg">
  3620. <img
  3621. :src="word2"
  3622. @click="downloadFile(w.works,w.userid)"
  3623. v-if="w.type == 12"
  3624. alt
  3625. />
  3626. <img
  3627. :src="word2"
  3628. @click="
  3629. openCocoPi(57, toolIndex, w.userid, w.sName)
  3630. "
  3631. v-else-if="w.type == 15"
  3632. alt
  3633. />
  3634. <div
  3635. class="answerScore"
  3636. v-if="w.score"
  3637. @click.stop="openScore(w)"
  3638. :class="{
  3639. rightW:
  3640. w.userid == userid ||
  3641. tType == 1 ||
  3642. tType == 4 ||
  3643. w.ateacher == userid,
  3644. }"
  3645. >
  3646. {{ JSON.parse(w.score).wScore }}分
  3647. </div>
  3648. <div
  3649. class="answerScore"
  3650. @click.stop="openScore(w)"
  3651. v-else-if="courseDetail.userid == userid"
  3652. :class="{
  3653. rightW:
  3654. w.userid == userid ||
  3655. tType == 1 ||
  3656. tType == 4 ||
  3657. w.ateacher == userid,
  3658. }"
  3659. >
  3660. 评分
  3661. </div>
  3662. <img
  3663. class="deleteImg"
  3664. src="../../assets/deleteworks.png"
  3665. v-if="
  3666. w.userid == userid || tType == 1 || tType == 4
  3667. "
  3668. @click.stop="deleteWorks(w.wid)"
  3669. alt
  3670. />
  3671. </div>
  3672. <div class="comment" style="min-width: 200px">
  3673. <div class="worksName">
  3674. <div>{{ w.sName }}</div>
  3675. </div>
  3676. <div class="commentList">
  3677. <div class="commentList">
  3678. <div
  3679. class="commentImg"
  3680. @click="
  3681. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3682. "
  3683. >
  3684. <img
  3685. :src="w.isLikes == true ? likes : noLikes"
  3686. alt=""
  3687. />
  3688. </div>
  3689. <div>{{ w.likesCount }}</div>
  3690. </div>
  3691. <div class="commentList" style="margin-right: 15px">
  3692. <div
  3693. class="commentImg"
  3694. @click="commentOther(w, toolIndex, wIndex)"
  3695. >
  3696. <img
  3697. src="../../assets/icon/comment/comment.png"
  3698. alt=""
  3699. />
  3700. </div>
  3701. <div>{{ w.commentCount }}</div>
  3702. </div>
  3703. </div>
  3704. </div>
  3705. </div>
  3706. </div>
  3707. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3708. 未提交
  3709. </div>
  3710. <div
  3711. class="noWorksS"
  3712. v-if="noWorksS && noWorksS[toolIndex].length"
  3713. >
  3714. <div
  3715. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3716. :key="sIndex"
  3717. class="noWorksName"
  3718. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3719. >
  3720. <el-tooltip effect="dark" :content="s.student" placement="top">
  3721. <span>{{ s.student }}</span>
  3722. </el-tooltip>
  3723. </div>
  3724. </div>
  3725. </div>
  3726. <div
  3727. v-if="
  3728. tType &&
  3729. ((tType == 2 && sIsOpen == true) ||
  3730. tType == 1 ||
  3731. tType == 4) &&
  3732. tool.tool.indexOf(72) != -1
  3733. "
  3734. class="worksBox"
  3735. >
  3736. <div
  3737. class="zuoyeYulan"
  3738. v-if="
  3739. worksStudent.length &&
  3740. worksStudent[toolIndex].length > 0
  3741. "
  3742. >
  3743. <div class="worksTop">
  3744. <div>作业预览</div>
  3745. <div
  3746. class="corOpen"
  3747. @click="contract(toolIndex)"
  3748. v-if="
  3749. isCloseList[toolIndex].isCloseBoolean &&
  3750. isCloseList[toolIndex].isClose == 0
  3751. "
  3752. >
  3753. 折叠
  3754. </div>
  3755. <div
  3756. class="corOpen"
  3757. @click="contract(toolIndex)"
  3758. v-if="isCloseList[toolIndex].isClose == 1"
  3759. >
  3760. 展开
  3761. </div>
  3762. </div>
  3763. </div>
  3764. <div
  3765. :id="'tool-' + toolIndex"
  3766. :style="{
  3767. height:
  3768. isCloseList[toolIndex].isClose == 1
  3769. ? retrnToolHeight('tool-' + toolIndex)
  3770. : 'auto',
  3771. overflow:
  3772. isCloseList[toolIndex].isClose == 1
  3773. ? 'hidden'
  3774. : 'unset'
  3775. }"
  3776. class="worksDetailBox"
  3777. v-if="
  3778. worksStudent.length &&
  3779. worksStudent[toolIndex].length > 0
  3780. "
  3781. >
  3782. <div
  3783. class="works"
  3784. style="
  3785. width: 200px;
  3786. height: 140px;
  3787. margin: 10px 10px 10px 0;
  3788. border-radius: 15px;
  3789. box-shadow: 0 0 6px 1px #dfdada;
  3790. "
  3791. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3792. :key="wIndex"
  3793. :class="w.type == 1 ? 'isTypeOne' : ''"
  3794. >
  3795. <div class="workImg">
  3796. <!-- <img
  3797. :src="word2"
  3798. @click="downloadFile(w.works)"
  3799. v-if="w.type == 12"
  3800. alt
  3801. /> -->
  3802. <img
  3803. :src="word2"
  3804. @click="
  3805. openCocoFlow(w)
  3806. "
  3807. alt
  3808. />
  3809. <div
  3810. class="answerScore"
  3811. v-if="w.score"
  3812. @click.stop="openScore(w)"
  3813. :class="{
  3814. rightW:
  3815. w.userid == userid ||
  3816. tType == 1 ||
  3817. tType == 4 ||
  3818. w.ateacher == userid
  3819. }"
  3820. >
  3821. {{ JSON.parse(w.score).wScore }}分
  3822. </div>
  3823. <div
  3824. class="answerScore"
  3825. @click.stop="openScore(w)"
  3826. v-else-if="
  3827. courseDetail.userid == userid &&
  3828. courseDetail.state != 5 &&
  3829. chapInfoList[courseType].chapterInfo[0]
  3830. .taskJson[taskCount].eList &&
  3831. chapInfoList[courseType].chapterInfo[0]
  3832. .taskJson[taskCount].eList.length
  3833. "
  3834. :class="{
  3835. rightW:
  3836. w.userid == userid ||
  3837. tType == 1 ||
  3838. tType == 4 ||
  3839. w.ateacher == userid
  3840. }"
  3841. >
  3842. 评分
  3843. </div>
  3844. <img
  3845. class="deleteImg"
  3846. src="../../assets/deleteworks.png"
  3847. v-if="
  3848. w.userid == userid || tType == 1 || tType == 4
  3849. "
  3850. @click.stop="deleteWorks(w.wid)"
  3851. alt
  3852. />
  3853. </div>
  3854. <div class="comment" style="min-width: 200px">
  3855. <div class="worksName">
  3856. <div>{{ w.sName }}</div>
  3857. </div>
  3858. <div class="commentList">
  3859. <div class="commentList">
  3860. <div
  3861. class="commentImg"
  3862. @click="
  3863. isLikes(
  3864. w.wid,
  3865. userid,
  3866. 1,
  3867. null,
  3868. w.isLikes,
  3869. w.sName
  3870. )
  3871. "
  3872. >
  3873. <img
  3874. :src="w.isLikes == true ? likes : noLikes"
  3875. alt=""
  3876. />
  3877. </div>
  3878. <div>{{ w.likesCount }}</div>
  3879. </div>
  3880. <div class="commentList" style="margin-right: 15px">
  3881. <div
  3882. class="commentImg"
  3883. @click="commentOther(w, toolIndex, wIndex)"
  3884. >
  3885. <img
  3886. src="../../assets/icon/comment/comment.png"
  3887. alt=""
  3888. />
  3889. </div>
  3890. <div>{{ w.commentCount }}</div>
  3891. </div>
  3892. </div>
  3893. </div>
  3894. </div>
  3895. </div>
  3896. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3897. 未提交
  3898. </div>
  3899. <div
  3900. class="noWorksS"
  3901. v-if="noWorksS && noWorksS[toolIndex].length"
  3902. >
  3903. <div
  3904. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3905. :key="sIndex"
  3906. class="noWorksName2"
  3907. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3908. >
  3909. <el-tooltip
  3910. effect="dark"
  3911. :content="s.student"
  3912. placement="top"
  3913. >
  3914. <span>{{ s.student }}</span>
  3915. </el-tooltip>
  3916. </div>
  3917. </div>
  3918. </div>
  3919. <div
  3920. v-if="
  3921. tType &&
  3922. tType == 2 &&
  3923. !sIsOpen &&
  3924. tool.tool.indexOf(72) != -1
  3925. "
  3926. class="worksBox"
  3927. >
  3928. <div
  3929. class="zuoyeYulan"
  3930. v-if="workStudent[toolIndex].length > 0"
  3931. >
  3932. <span class="worksTitle">作业预览</span>
  3933. </div>
  3934. <div
  3935. class="worksDetailBox"
  3936. v-if="workStudent[toolIndex].length > 0"
  3937. >
  3938. <div
  3939. class="works"
  3940. style="
  3941. width: 200px;
  3942. height: 140px;
  3943. margin: 10px 10px 10px 0;
  3944. box-shadow: 0 0 6px 1px #dfdada;
  3945. "
  3946. v-for="(w, wIndex) in workStudent[toolIndex]"
  3947. :key="wIndex"
  3948. >
  3949. <div class="workImg">
  3950. <!-- <img
  3951. :src="word2"
  3952. @click="downloadFile(w.works)"
  3953. v-if="w.type == 12"
  3954. alt
  3955. /> -->
  3956. <img
  3957. :src="word2"
  3958. @click="
  3959. openCocoFlow(w)
  3960. "
  3961. alt
  3962. />
  3963. <div
  3964. class="answerScore"
  3965. v-if="w.score"
  3966. @click.stop="openScore(w)"
  3967. :class="{
  3968. rightW:
  3969. w.userid == userid || tType == 1 || tType == 4
  3970. }"
  3971. >
  3972. {{ JSON.parse(w.score).wScore }}分
  3973. </div>
  3974. <div
  3975. class="answerScore"
  3976. @click.stop="openScore(w)"
  3977. v-else-if="courseDetail.userid == userid"
  3978. :class="{
  3979. rightW:
  3980. w.userid == userid || tType == 1 || tType == 4
  3981. }"
  3982. >
  3983. 评分
  3984. </div>
  3985. <img
  3986. class="deleteImg"
  3987. src="../../assets/deleteworks.png"
  3988. v-if="
  3989. w.userid == userid || tType == 1 || tType == 4
  3990. "
  3991. @click.stop="deleteWorks(w.wid)"
  3992. alt
  3993. />
  3994. </div>
  3995. <div class="worksName">
  3996. <div>{{ w.sName }}</div>
  3997. </div>
  3998. </div>
  3999. </div>
  4000. </div>
  4001. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4002. <div
  4003. class="zuoyeYulan"
  4004. v-if="
  4005. worksStudent.length &&
  4006. worksStudent[toolIndex].length > 0
  4007. "
  4008. >
  4009. <span class="worksTitle">作业预览</span>
  4010. <div
  4011. class="corOpen"
  4012. @click="contract(toolIndex)"
  4013. v-if="
  4014. (isCloseList[toolIndex].isCloseBoolean) &&
  4015. isCloseList[toolIndex].isClose == 0
  4016. "
  4017. >
  4018. 折叠
  4019. </div>
  4020. <div
  4021. class="corOpen"
  4022. @click="contract(toolIndex)"
  4023. v-if="isCloseList[toolIndex].isClose == 1"
  4024. >
  4025. 展开
  4026. </div>
  4027. </div>
  4028. <div
  4029. :id="'tool-' + toolIndex"
  4030. :style="{
  4031. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4032. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4033. }"
  4034. class="worksDetailBox"
  4035. v-if="
  4036. worksStudent.length &&
  4037. worksStudent[toolIndex].length > 0
  4038. "
  4039. >
  4040. <div
  4041. class="works"
  4042. style="
  4043. width: 200px;
  4044. height: 140px;
  4045. margin: 10px 10px 10px 0;
  4046. border-radius: 15px;
  4047. box-shadow: 0 0 6px 1px #dfdada;
  4048. "
  4049. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4050. :key="wIndex"
  4051. :class="w.type == 1 ? 'isTypeOne' : ''"
  4052. >
  4053. <div class="workImg" v-if="w.type == 0">
  4054. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4055. <img
  4056. :src="w.works"
  4057. @click="previewImg(w.works,w)"
  4058. alt
  4059. />
  4060. <div
  4061. class="answerScore"
  4062. v-if="w.score"
  4063. @click.stop="openScore(w)"
  4064. :class="{
  4065. rightW:
  4066. w.userid == userid ||
  4067. tType == 1 ||
  4068. tType == 4 ||
  4069. w.ateacher == userid,
  4070. }"
  4071. >
  4072. {{ JSON.parse(w.score).wScore }}分
  4073. </div>
  4074. <div
  4075. class="answerScore"
  4076. @click.stop="openScore(w)"
  4077. v-else-if="courseDetail.userid == userid"
  4078. :class="{
  4079. rightW:
  4080. w.userid == userid ||
  4081. tType == 1 ||
  4082. tType == 4 ||
  4083. w.ateacher == userid,
  4084. }"
  4085. >
  4086. 评分
  4087. </div>
  4088. <img
  4089. class="deleteImg"
  4090. src="../../assets/deleteworks.png"
  4091. v-if="
  4092. w.userid == userid || tType == 1 || tType == 4
  4093. "
  4094. @click.stop="deleteWorks(w.wid)"
  4095. alt
  4096. />
  4097. </div>
  4098. <div
  4099. class="workImg"
  4100. style="cursor: pointer"
  4101. v-if="w.type == 1"
  4102. >
  4103. <img :src="word" @click="openFile(w.works)" alt />
  4104. <!-- @click="openFile(w.works)" -->
  4105. <div
  4106. class="answerScore"
  4107. v-if="w.score"
  4108. @click.stop="openScore(w)"
  4109. :class="{
  4110. rightW:
  4111. w.userid == userid ||
  4112. tType == 1 ||
  4113. tType == 4 ||
  4114. w.ateacher == userid,
  4115. }"
  4116. >
  4117. {{ JSON.parse(w.score).wScore }}分
  4118. </div>
  4119. <div
  4120. class="answerScore"
  4121. @click.stop="openScore(w)"
  4122. v-else-if="courseDetail.userid == userid"
  4123. :class="{
  4124. rightW:
  4125. w.userid == userid ||
  4126. tType == 1 ||
  4127. tType == 4 ||
  4128. w.ateacher == userid,
  4129. }"
  4130. >
  4131. 评分
  4132. </div>
  4133. <img
  4134. class="deleteImg"
  4135. src="../../assets/deleteworks.png"
  4136. v-if="
  4137. w.userid == userid || tType == 1 || tType == 4
  4138. "
  4139. @click.stop="deleteWorks(w.wid)"
  4140. alt
  4141. />
  4142. </div>
  4143. <div class="workImg" v-if="w.type == 3">
  4144. <img
  4145. style="cursor: pointer"
  4146. :src="video"
  4147. @click="openVideo(w)"
  4148. alt
  4149. />
  4150. <!-- @click="openVideo(w.works)" -->
  4151. <div
  4152. class="answerScore"
  4153. v-if="w.score"
  4154. @click.stop="openScore(w)"
  4155. :class="{
  4156. rightW:
  4157. w.userid == userid ||
  4158. tType == 1 ||
  4159. tType == 4 ||
  4160. w.ateacher == userid,
  4161. }"
  4162. >
  4163. {{ JSON.parse(w.score).wScore }}分
  4164. </div>
  4165. <div
  4166. class="answerScore"
  4167. @click.stop="openScore(w)"
  4168. v-else-if="courseDetail.userid == userid"
  4169. :class="{
  4170. rightW:
  4171. w.userid == userid ||
  4172. tType == 1 ||
  4173. tType == 4 ||
  4174. w.ateacher == userid,
  4175. }"
  4176. >
  4177. 评分
  4178. </div>
  4179. <img
  4180. class="deleteImg"
  4181. src="../../assets/deleteworks.png"
  4182. v-if="
  4183. w.userid == userid || tType == 1 || tType == 4
  4184. "
  4185. @click.stop="deleteWorks(w.wid)"
  4186. alt
  4187. />
  4188. </div>
  4189. <div class="comment" style="min-width: 200px">
  4190. <div class="worksName">
  4191. <div
  4192. style="cursor: pointer"
  4193. @click="
  4194. openSname(w.sName, w.wid, toolIndex, w.userid)
  4195. "
  4196. >
  4197. {{ w.sName }}
  4198. </div>
  4199. </div>
  4200. <div class="commentList">
  4201. <div class="commentList">
  4202. <div
  4203. class="commentImg"
  4204. @click="
  4205. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4206. "
  4207. >
  4208. <img
  4209. :src="w.isLikes == true ? likes : noLikes"
  4210. alt=""
  4211. />
  4212. </div>
  4213. <div>{{ w.likesCount }}</div>
  4214. </div>
  4215. <div class="commentList" style="margin-right: 15px">
  4216. <div
  4217. class="commentImg"
  4218. @click="commentOther(w, toolIndex, wIndex)"
  4219. >
  4220. <img
  4221. src="../../assets/icon/comment/comment.png"
  4222. alt=""
  4223. />
  4224. </div>
  4225. <div>{{ w.commentCount }}</div>
  4226. </div>
  4227. </div>
  4228. </div>
  4229. </div>
  4230. </div>
  4231. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4232. 未提交
  4233. </div>
  4234. <div
  4235. class="noWorksS"
  4236. v-if="noWorksS && noWorksS[toolIndex].length"
  4237. >
  4238. <div
  4239. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4240. :key="sIndex"
  4241. class="noWorksName"
  4242. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4243. >
  4244. <el-tooltip effect="dark" :content="s.student" placement="top">
  4245. <span>{{ s.student }}</span>
  4246. </el-tooltip>
  4247. </div>
  4248. </div>
  4249. </div>
  4250. <div
  4251. v-if="
  4252. tType &&
  4253. ((tType == 2 && sIsOpen == true) ||
  4254. tType == 1 ||
  4255. tType == 4) &&
  4256. tool.tool.indexOf(4) != -1 &&
  4257. (tool.askJson[0].answer ||
  4258. tool.askJson[0].answer === 0) &&
  4259. checkJson[toolIndex].length
  4260. "
  4261. class="xuan_right_box"
  4262. >
  4263. <div
  4264. class="tool_right_box"
  4265. v-for="(item, index) in tool.askJson"
  4266. :key="index"
  4267. >
  4268. <div style="width: calc(100% - 30px);">
  4269. <el-tooltip
  4270. effect="light"
  4271. :content="index + 1 + '、' + item.askstitle"
  4272. placement="top"
  4273. popper-class="text_tooltip"
  4274. >
  4275. <div
  4276. style="
  4277. width: calc(100% - 130px);
  4278. display: block;
  4279. white-space: nowrap;
  4280. overflow: hidden;
  4281. text-overflow: ellipsis;
  4282. word-break: break-word;
  4283. cursor: pointer;
  4284. "
  4285. >
  4286. {{ index + 1 + "、" + item.askstitle }}
  4287. </div>
  4288. </el-tooltip>
  4289. </div>
  4290. <div class="right_box_xuan">
  4291. <span>正确率</span>
  4292. <span>{{
  4293. (checkJson[toolIndex][index].right
  4294. ? checkJson[toolIndex][index].right
  4295. : 0) + "%"
  4296. }}</span>
  4297. </div>
  4298. </div>
  4299. </div>
  4300. <div
  4301. class="xuan_right_box"
  4302. style="background: unset; padding: 0 10px"
  4303. v-if="
  4304. tType &&
  4305. ((tType == 2 && sIsOpen == true) ||
  4306. tType == 1 ||
  4307. tType == 4) &&
  4308. tool.tool.indexOf(4) != -1
  4309. "
  4310. >
  4311. <AskStatic
  4312. v-if="
  4313. worksStudent.length &&
  4314. worksStudent[toolIndex].length > 0
  4315. "
  4316. :askJSON="tool"
  4317. :checkJson="checkJson[toolIndex]"
  4318. ></AskStatic>
  4319. </div>
  4320. <div
  4321. v-if="
  4322. tType &&
  4323. ((tType == 2 && sIsOpen == true) ||
  4324. tType == 1 ||
  4325. tType == 4) &&
  4326. tool.tool.indexOf(4) != -1
  4327. "
  4328. class="worksBox"
  4329. >
  4330. <div
  4331. class="zuoyeYulan"
  4332. v-if="
  4333. worksStudent.length &&
  4334. worksStudent[toolIndex].length > 0
  4335. "
  4336. >
  4337. <div class="worksTop">
  4338. <div>作业预览</div>
  4339. <div
  4340. class="corOpen"
  4341. @click="contract(toolIndex)"
  4342. v-if="
  4343. (isCloseList[toolIndex].isCloseBoolean) &&
  4344. isCloseList[toolIndex].isClose == 0
  4345. "
  4346. >
  4347. 折叠
  4348. </div>
  4349. <div
  4350. class="corOpen"
  4351. @click="contract(toolIndex)"
  4352. v-if="isCloseList[toolIndex].isClose == 1"
  4353. >
  4354. 展开
  4355. </div>
  4356. </div>
  4357. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4358. </div>
  4359. <div>
  4360. <div
  4361. :id="'tool-' + toolIndex"
  4362. :style="{
  4363. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4364. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4365. }"
  4366. class="worksDetailBox"
  4367. v-if="
  4368. worksStudent.length &&
  4369. worksStudent[toolIndex].length > 0
  4370. "
  4371. >
  4372. <div
  4373. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4374. :key="wIndex"
  4375. class="isWorksName2"
  4376. @click="
  4377. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4378. "
  4379. >
  4380. {{ w.sName }}
  4381. <img
  4382. class="deleteImg deleteImg2"
  4383. src="../../assets/deleteworks.png"
  4384. v-if="
  4385. w.userid == userid || tType == 1 || tType == 4
  4386. "
  4387. @click.stop="deleteWorks(w.wid)"
  4388. alt
  4389. />
  4390. </div>
  4391. <!-- <div class="works" style="
  4392. width: 200px;
  4393. height: 140px;
  4394. border-radius: 10px;
  4395. box-shadow: 0 0 6px 1px #dfdada;
  4396. overflow: hidden;
  4397. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4398. <div class="workImg">
  4399. <img src="../../assets/icon/works/noImg.png" @click="
  4400. openTools(
  4401. 4,
  4402. toolIndex,
  4403. taskCount,
  4404. w.works,
  4405. w.sName
  4406. )
  4407. " alt />
  4408. </div>
  4409. <div class="worksName">
  4410. <div>{{ w.sName }}</div>
  4411. <div>{{ w.time }}</div>
  4412. </div>
  4413. </div> -->
  4414. </div>
  4415. </div>
  4416. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4417. 未提交
  4418. </div>
  4419. <div
  4420. class="noWorksS"
  4421. v-if="noWorksS && noWorksS[toolIndex].length"
  4422. >
  4423. <div
  4424. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4425. :key="sIndex"
  4426. class="noWorksName"
  4427. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4428. >
  4429. <el-tooltip effect="dark" :content="s.student" placement="top">
  4430. <span>{{ s.student }}</span>
  4431. </el-tooltip>
  4432. </div>
  4433. </div>
  4434. </div>
  4435. <div
  4436. v-if="
  4437. tType &&
  4438. ((tType == 2 && sIsOpen == true) ||
  4439. tType == 1 ||
  4440. tType == 4) &&
  4441. tool.tool.indexOf(45) != -1 &&
  4442. (tool.testJson.testJson[0].answer ||
  4443. tool.testJson.testJson[0].answer === 0) &&
  4444. checkJson[toolIndex].length
  4445. "
  4446. class="xuan_right_box"
  4447. >
  4448. <div
  4449. class="tool_right_box"
  4450. v-for="(item, index) in tool.testJson.testJson"
  4451. :key="index"
  4452. >
  4453. <div class="right_box_xuan" style="margin-right: 10px">
  4454. <span>正确率</span>
  4455. <span>{{
  4456. (checkJson[toolIndex][index].right
  4457. ? checkJson[toolIndex][index].right
  4458. : 0) + "%"
  4459. }}</span>
  4460. </div>
  4461. <div style="width: calc(100% - 30px);">
  4462. <el-tooltip
  4463. effect="light"
  4464. :content="index + 1 + '、' + item.teststitle"
  4465. placement="top"
  4466. popper-class="text_tooltip"
  4467. >
  4468. <div
  4469. style="
  4470. width: calc(100% - 130px);
  4471. display: flex;
  4472. white-space: nowrap;
  4473. overflow: hidden;
  4474. text-overflow: ellipsis;
  4475. word-break: break-word;
  4476. cursor: pointer;
  4477. "
  4478. class="renderedFor"
  4479. >
  4480. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  4481. </div>
  4482. </el-tooltip>
  4483. </div>
  4484. </div>
  4485. </div>
  4486. <div
  4487. class="xuan_right_box"
  4488. style="background: unset; padding: 0 10px; width: 91.5%"
  4489. v-if="
  4490. tType &&
  4491. ((tType == 2 && sIsOpen == true) ||
  4492. tType == 1 ||
  4493. tType == 4) &&
  4494. tool.tool.indexOf(45) != -1
  4495. "
  4496. >
  4497. <AskStatic2
  4498. v-if="
  4499. worksStudent.length &&
  4500. worksStudent[toolIndex].length > 0
  4501. "
  4502. :askJSON="tool"
  4503. :checkJson="checkJson[toolIndex]"
  4504. ></AskStatic2>
  4505. </div>
  4506. <div
  4507. v-if="
  4508. tType &&
  4509. ((tType == 2 && sIsOpen == true) ||
  4510. tType == 1 ||
  4511. tType == 4) &&
  4512. tool.tool.indexOf(45) != -1
  4513. "
  4514. class="worksBox"
  4515. >
  4516. <div
  4517. class="zuoyeYulan"
  4518. v-if="
  4519. worksStudent.length &&
  4520. worksStudent[toolIndex].length > 0
  4521. "
  4522. >
  4523. <div class="worksTop">
  4524. <div>作业预览</div>
  4525. <div
  4526. class="corOpen"
  4527. @click="contract(toolIndex)"
  4528. v-if="
  4529. (isCloseList[toolIndex].isCloseBoolean) &&
  4530. isCloseList[toolIndex].isClose == 0
  4531. "
  4532. >
  4533. 折叠
  4534. </div>
  4535. <div
  4536. class="corOpen"
  4537. @click="contract(toolIndex)"
  4538. v-if="isCloseList[toolIndex].isClose == 1"
  4539. >
  4540. 展开
  4541. </div>
  4542. </div>
  4543. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4544. </div>
  4545. <div>
  4546. <div
  4547. :id="'tool-' + toolIndex"
  4548. :style="{
  4549. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4550. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4551. }"
  4552. class="worksDetailBox"
  4553. v-if="
  4554. worksStudent.length &&
  4555. worksStudent[toolIndex].length > 0
  4556. "
  4557. >
  4558. <div
  4559. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4560. :key="wIndex"
  4561. class="isWorksName2"
  4562. @click="
  4563. openTools(
  4564. 45,
  4565. toolIndex,
  4566. taskCount,
  4567. w.works,
  4568. w.sName
  4569. )
  4570. "
  4571. >
  4572. {{ w.sName }}
  4573. <img
  4574. class="deleteImg deleteImg2"
  4575. src="../../assets/deleteworks.png"
  4576. v-if="
  4577. w.userid == userid || tType == 1 || tType == 4
  4578. "
  4579. @click.stop="deleteWorks(w.wid)"
  4580. alt
  4581. />
  4582. </div>
  4583. </div>
  4584. </div>
  4585. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4586. 未提交
  4587. </div>
  4588. <div
  4589. class="noWorksS"
  4590. v-if="noWorksS && noWorksS[toolIndex].length"
  4591. >
  4592. <div
  4593. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4594. :key="sIndex"
  4595. class="noWorksName"
  4596. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4597. >
  4598. <el-tooltip effect="dark" :content="s.student" placement="top">
  4599. <span>{{ s.student }}</span>
  4600. </el-tooltip>
  4601. </div>
  4602. </div>
  4603. </div>
  4604. <div
  4605. v-if="
  4606. tType &&
  4607. ((tType == 2 && sIsOpen == true) ||
  4608. tType == 1 ||
  4609. tType == 4) &&
  4610. tool.tool.indexOf(69) != -1
  4611. "
  4612. class="worksBox"
  4613. >
  4614. <div
  4615. class="zuoyeYulan"
  4616. v-if="
  4617. worksStudent.length &&
  4618. worksStudent[toolIndex].length > 0
  4619. "
  4620. >
  4621. <div class="worksTop">
  4622. <div>作业预览</div>
  4623. <div
  4624. class="corOpen"
  4625. @click="contract(toolIndex)"
  4626. v-if="
  4627. (isCloseList[toolIndex].isCloseBoolean) &&
  4628. isCloseList[toolIndex].isClose == 0
  4629. "
  4630. >
  4631. 折叠
  4632. </div>
  4633. <div
  4634. class="corOpen"
  4635. @click="contract(toolIndex)"
  4636. v-if="isCloseList[toolIndex].isClose == 1"
  4637. >
  4638. 展开
  4639. </div>
  4640. </div>
  4641. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4642. </div>
  4643. <div>
  4644. <div
  4645. :id="'tool-' + toolIndex"
  4646. :style="{
  4647. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4648. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4649. }"
  4650. class="worksDetailBox"
  4651. v-if="
  4652. worksStudent.length &&
  4653. worksStudent[toolIndex].length > 0
  4654. "
  4655. >
  4656. <div
  4657. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4658. :key="wIndex"
  4659. class="isWorksName2"
  4660. style="width: 160px;height: 65px;line-height: 65px;"
  4661. @click="
  4662. openTools(
  4663. 69,
  4664. toolIndex,
  4665. taskCount,
  4666. w.works,
  4667. w.sName,
  4668. w.wid
  4669. )
  4670. "
  4671. >
  4672. {{ w.sName }}
  4673. <img
  4674. class="deleteImg1"
  4675. src="../../assets/evaEnglish.png"
  4676. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4677. alt
  4678. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4679. />
  4680. <img
  4681. class="deleteImg deleteImg2"
  4682. src="../../assets/deleteworks.png"
  4683. v-if="
  4684. w.userid == userid || tType == 1 || tType == 4
  4685. "
  4686. @click.stop="deleteWorks(w.wid)"
  4687. alt
  4688. />
  4689. </div>
  4690. </div>
  4691. </div>
  4692. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4693. 未提交
  4694. </div>
  4695. <div
  4696. class="noWorksS"
  4697. v-if="noWorksS && noWorksS[toolIndex].length"
  4698. >
  4699. <div
  4700. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4701. :key="sIndex"
  4702. class="noWorksName"
  4703. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4704. >
  4705. <el-tooltip effect="dark" :content="s.student" placement="top">
  4706. <span>{{ s.student }}</span>
  4707. </el-tooltip>
  4708. </div>
  4709. </div>
  4710. </div>
  4711. <div
  4712. v-if="
  4713. tType &&
  4714. ((tType == 2 && sIsOpen == true) ||
  4715. tType == 1 ||
  4716. tType == 4) &&
  4717. tool.tool.indexOf(15) != -1
  4718. "
  4719. class="worksBox"
  4720. >
  4721. <div
  4722. class="zuoyeYulan"
  4723. v-if="
  4724. (worksStudent.length &&
  4725. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4726. "
  4727. >
  4728. <div class="worksTop">
  4729. <div>作业预览</div>
  4730. <div
  4731. class="corOpen"
  4732. @click="contract(toolIndex)"
  4733. v-if="
  4734. (isCloseList[toolIndex].isCloseBoolean) &&
  4735. isCloseList[toolIndex].isClose == 0
  4736. "
  4737. >
  4738. 折叠
  4739. </div>
  4740. <div
  4741. class="corOpen"
  4742. @click="contract(toolIndex)"
  4743. v-if="isCloseList[toolIndex].isClose == 1"
  4744. >
  4745. 展开
  4746. </div>
  4747. </div>
  4748. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4749. </div>
  4750. <div
  4751. class="group_workBox"
  4752. v-for="(g, gindex) in courseGroup.group"
  4753. :key="gindex"
  4754. >
  4755. <div class="group_box">
  4756. <div class="group_title">
  4757. <el-tooltip
  4758. class="item"
  4759. effect="light"
  4760. :content="g.name"
  4761. placement="top"
  4762. >
  4763. <div class="group_name">{{ g.name }}</div>
  4764. </el-tooltip>
  4765. </div>
  4766. <div
  4767. class="group_work"
  4768. v-if="
  4769. g.works &&
  4770. g.works.length &&
  4771. g.works[toolIndex].length
  4772. "
  4773. >
  4774. <div
  4775. class="works"
  4776. v-for="(w, wIndex) in g.works[toolIndex]"
  4777. :key="wIndex"
  4778. >
  4779. <div
  4780. class="workImg"
  4781. style="
  4782. border-radius: 15px;
  4783. box-shadow: 0px 0px 5px 5px #eee;
  4784. "
  4785. >
  4786. <div
  4787. class="answerBg"
  4788. style="border-radius: 15px 15px 0 0"
  4789. @click="
  4790. commentOther(w, toolIndex, wIndex, null, g.id)
  4791. "
  4792. >
  4793. <div class="answerContent">
  4794. {{ JSON.parse(w.works)[0].answer }}
  4795. </div>
  4796. <div
  4797. class="answerScore"
  4798. v-if="w.score"
  4799. @click.stop="openScore(w)"
  4800. :class="{
  4801. rightW:
  4802. w.userid == userid ||
  4803. tType == 1 ||
  4804. tType == 4,
  4805. }"
  4806. >
  4807. {{ JSON.parse(w.score).wScore }}分
  4808. </div>
  4809. <div
  4810. class="answerScore"
  4811. @click.stop="openScore(w)"
  4812. v-else-if="courseDetail.userid == userid"
  4813. :class="{
  4814. rightW:
  4815. w.userid == userid ||
  4816. tType == 1 ||
  4817. tType == 4,
  4818. }"
  4819. >
  4820. 评分
  4821. </div>
  4822. <img
  4823. class="deleteImg"
  4824. src="../../assets/deleteworks.png"
  4825. v-if="
  4826. w.userid == userid ||
  4827. tType == 1 ||
  4828. tType == 4
  4829. "
  4830. @click.stop="deleteWorks(w.wid)"
  4831. alt
  4832. />
  4833. </div>
  4834. <div class="comment">
  4835. <div class="worksName">
  4836. <div>{{ w.sName }}</div>
  4837. </div>
  4838. <div class="commentList">
  4839. <div
  4840. class="commentImg"
  4841. @click="
  4842. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4843. "
  4844. >
  4845. <img
  4846. :src="w.isLikes == true ? likes : noLikes"
  4847. alt=""
  4848. />
  4849. </div>
  4850. <div>{{ w.likesCount }}</div>
  4851. </div>
  4852. <div
  4853. class="commentList"
  4854. style="margin-right: 15px"
  4855. >
  4856. <div
  4857. class="commentImg"
  4858. @click="
  4859. commentOther(
  4860. w,
  4861. toolIndex,
  4862. wIndex,
  4863. null,
  4864. g.id
  4865. )
  4866. "
  4867. >
  4868. <img
  4869. src="../../assets/icon/comment/comment.png"
  4870. alt=""
  4871. />
  4872. </div>
  4873. <div>{{ w.commentCount }}</div>
  4874. </div>
  4875. </div>
  4876. </div>
  4877. </div>
  4878. </div>
  4879. <div class="group_work" v-else>暂无提交作业</div>
  4880. </div>
  4881. </div>
  4882. <div
  4883. :id="'tool-' + toolIndex"
  4884. :style="{
  4885. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4886. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4887. }"
  4888. class="worksDetailBox"
  4889. v-if="
  4890. worksStudent.length &&
  4891. worksStudent[toolIndex].length > 0
  4892. "
  4893. >
  4894. <div
  4895. class="works"
  4896. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4897. :key="wIndex"
  4898. >
  4899. <div
  4900. class="workImg"
  4901. style="
  4902. border-radius: 15px;
  4903. box-shadow: 0px 0px 5px 5px #eee;
  4904. "
  4905. >
  4906. <!-- <img
  4907. src="../../assets/icon/works/noImg.png"
  4908. @click="openTools(15, toolIndex, taskCount, w.works)"
  4909. alt=""
  4910. />-->
  4911. <div
  4912. class="answerBg"
  4913. style="border-radius: 15px 15px 0 0"
  4914. @click="commentOther(w, toolIndex, wIndex)"
  4915. >
  4916. <!-- <div>{{ w.sName }}</div> -->
  4917. <div class="answerContent">
  4918. {{ JSON.parse(w.works)[0].answer }}
  4919. </div>
  4920. <div
  4921. class="answerScore"
  4922. v-if="w.score"
  4923. @click.stop="openScore(w)"
  4924. :class="{
  4925. rightW:
  4926. w.userid == userid ||
  4927. tType == 1 ||
  4928. tType == 4,
  4929. }"
  4930. >
  4931. {{ JSON.parse(w.score).wScore }}分
  4932. </div>
  4933. <div
  4934. class="answerScore"
  4935. @click.stop="openScore(w)"
  4936. v-else-if="courseDetail.userid == userid"
  4937. :class="{
  4938. rightW:
  4939. w.userid == userid ||
  4940. tType == 1 ||
  4941. tType == 4,
  4942. }"
  4943. >
  4944. 评分
  4945. </div>
  4946. <img
  4947. class="deleteImg"
  4948. src="../../assets/deleteworks.png"
  4949. v-if="
  4950. w.userid == userid || tType == 1 || tType == 4
  4951. "
  4952. @click.stop="deleteWorks(w.wid)"
  4953. alt
  4954. />
  4955. </div>
  4956. <div class="comment">
  4957. <div class="worksName">
  4958. <div>{{ w.sName }}</div>
  4959. </div>
  4960. <div class="commentList">
  4961. <div
  4962. class="commentImg"
  4963. @click="
  4964. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4965. "
  4966. >
  4967. <img
  4968. :src="w.isLikes == true ? likes : noLikes"
  4969. alt=""
  4970. />
  4971. </div>
  4972. <div>{{ w.likesCount }}</div>
  4973. </div>
  4974. <div class="commentList" style="margin-right: 15px">
  4975. <div
  4976. class="commentImg"
  4977. @click="commentOther(w, toolIndex, wIndex)"
  4978. >
  4979. <img
  4980. src="../../assets/icon/comment/comment.png"
  4981. alt=""
  4982. />
  4983. </div>
  4984. <div>{{ w.commentCount }}</div>
  4985. </div>
  4986. </div>
  4987. </div>
  4988. </div>
  4989. </div>
  4990. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4991. 未提交
  4992. </div>
  4993. <div
  4994. class="noWorksS"
  4995. v-if="noWorksS && noWorksS[toolIndex].length"
  4996. >
  4997. <div
  4998. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4999. :key="sIndex"
  5000. class="noWorksName"
  5001. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  5002. >
  5003. <el-tooltip effect="dark" :content="s.student" placement="top">
  5004. <span>{{ s.student }}</span>
  5005. </el-tooltip>
  5006. </div>
  5007. </div>
  5008. </div>
  5009. <div
  5010. v-if="
  5011. tType &&
  5012. ((tType == 2 && sIsOpen == true) ||
  5013. tType == 1 ||
  5014. tType == 4) &&
  5015. tool.tool.indexOf(1) != -1
  5016. "
  5017. class="worksBox"
  5018. >
  5019. <div
  5020. class="zuoyeYulan"
  5021. v-if="
  5022. (worksStudent.length &&
  5023. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5024. "
  5025. >
  5026. <div class="worksTop">
  5027. <div>作业预览</div>
  5028. <div
  5029. class="corOpen"
  5030. @click="contract(toolIndex)"
  5031. v-if="
  5032. (isCloseList[toolIndex].isCloseBoolean) &&
  5033. isCloseList[toolIndex].isClose == 0
  5034. "
  5035. >
  5036. 折叠
  5037. </div>
  5038. <div
  5039. class="corOpen"
  5040. @click="contract(toolIndex)"
  5041. v-if="isCloseList[toolIndex].isClose == 1"
  5042. >
  5043. 展开
  5044. </div>
  5045. </div>
  5046. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5047. </div>
  5048. <div
  5049. class="group_workBox"
  5050. v-for="(g, gindex) in courseGroup.group"
  5051. :key="gindex"
  5052. >
  5053. <div class="group_box">
  5054. <div class="group_title">
  5055. <el-tooltip
  5056. class="item"
  5057. effect="light"
  5058. :content="g.name"
  5059. placement="top"
  5060. >
  5061. <div class="group_name">{{ g.name }}</div>
  5062. </el-tooltip>
  5063. </div>
  5064. <div
  5065. class="group_work"
  5066. v-if="
  5067. g.works &&
  5068. g.works.length &&
  5069. g.works[toolIndex].length
  5070. "
  5071. >
  5072. <div
  5073. class="works"
  5074. style="
  5075. width: 200px;
  5076. height: 140px;
  5077. margin: 10px 10px 10px 0;
  5078. border-radius: 15px;
  5079. box-shadow: 0 0 6px 1px #dfdada;
  5080. "
  5081. v-for="(w, wIndex) in g.works[toolIndex]"
  5082. :key="wIndex"
  5083. :class="w.type == 1 ? 'isTypeOne' : ''"
  5084. >
  5085. <div class="workImg">
  5086. <img
  5087. :src="w.works"
  5088. @click="previewImg(w.works,w)"
  5089. alt
  5090. />
  5091. <div
  5092. class="answerScore"
  5093. v-if="w.score"
  5094. @click.stop="openScore(w)"
  5095. :class="{
  5096. rightW:
  5097. w.userid == userid ||
  5098. tType == 1 ||
  5099. tType == 4,
  5100. }"
  5101. >
  5102. {{ JSON.parse(w.score).wScore }}分
  5103. </div>
  5104. <div
  5105. class="answerScore"
  5106. @click.stop="openScore(w)"
  5107. v-else-if="courseDetail.userid == userid"
  5108. :class="{
  5109. rightW:
  5110. w.userid == userid ||
  5111. tType == 1 ||
  5112. tType == 4,
  5113. }"
  5114. >
  5115. 评分
  5116. </div>
  5117. <img
  5118. class="deleteImg"
  5119. src="../../assets/deleteworks.png"
  5120. v-if="
  5121. w.userid == userid || tType == 1 || tType == 4
  5122. "
  5123. @click.stop="deleteWorks(w.wid)"
  5124. alt
  5125. />
  5126. </div>
  5127. <div class="comment" style="min-width: 200px">
  5128. <div class="worksName">
  5129. <div>{{ w.sName }}</div>
  5130. </div>
  5131. <div class="commentList">
  5132. <div class="commentList">
  5133. <div
  5134. class="commentImg"
  5135. @click="
  5136. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5137. "
  5138. >
  5139. <img
  5140. :src="w.isLikes == true ? likes : noLikes"
  5141. alt=""
  5142. />
  5143. </div>
  5144. <div>{{ w.likesCount }}</div>
  5145. </div>
  5146. <div
  5147. class="commentList"
  5148. style="margin-right: 15px"
  5149. >
  5150. <div
  5151. class="commentImg"
  5152. @click="
  5153. commentOther(
  5154. w,
  5155. toolIndex,
  5156. wIndex,
  5157. null,
  5158. g.id
  5159. )
  5160. "
  5161. >
  5162. <img
  5163. src="../../assets/icon/comment/comment.png"
  5164. alt=""
  5165. />
  5166. </div>
  5167. <div>{{ w.commentCount }}</div>
  5168. </div>
  5169. </div>
  5170. </div>
  5171. </div>
  5172. </div>
  5173. <div class="group_work" v-else>暂无提交作业</div>
  5174. </div>
  5175. </div>
  5176. <div
  5177. :id="'tool-' + toolIndex"
  5178. :style="{
  5179. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5180. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5181. }"
  5182. class="worksDetailBox"
  5183. v-if="
  5184. worksStudent.length &&
  5185. worksStudent[toolIndex].length > 0
  5186. "
  5187. >
  5188. <div
  5189. class="works"
  5190. style="
  5191. width: 200px;
  5192. height: 140px;
  5193. margin: 10px 10px 10px 0;
  5194. border-radius: 15px;
  5195. box-shadow: 0 0 6px 1px #dfdada;
  5196. "
  5197. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5198. :key="wIndex"
  5199. >
  5200. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5201. <div class="workImg">
  5202. <img
  5203. :src="w.works"
  5204. @click="previewImg(w.works,w)"
  5205. alt
  5206. />
  5207. <div
  5208. class="answerScore"
  5209. v-if="w.score"
  5210. @click.stop="openScore(w)"
  5211. :class="{
  5212. rightW:
  5213. w.userid == userid || tType == 1 || tType == 4,
  5214. }"
  5215. >
  5216. {{ JSON.parse(w.score).wScore }}分
  5217. </div>
  5218. <div
  5219. class="answerScore"
  5220. @click.stop="openScore(w)"
  5221. v-else-if="courseDetail.userid == userid"
  5222. :class="{
  5223. rightW:
  5224. w.userid == userid || tType == 1 || tType == 4,
  5225. }"
  5226. >
  5227. 评分
  5228. </div>
  5229. <img
  5230. class="deleteImg"
  5231. src="../../assets/deleteworks.png"
  5232. v-if="
  5233. w.userid == userid || tType == 1 || tType == 4
  5234. "
  5235. @click.stop="deleteWorks(w.wid)"
  5236. alt
  5237. />
  5238. </div>
  5239. <div class="comment" style="min-width: 200px">
  5240. <div class="worksName">
  5241. <div>{{ w.sName }}</div>
  5242. </div>
  5243. <div class="commentList">
  5244. <div class="commentList">
  5245. <div
  5246. class="commentImg"
  5247. @click="
  5248. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5249. "
  5250. >
  5251. <img
  5252. :src="w.isLikes == true ? likes : noLikes"
  5253. alt=""
  5254. />
  5255. </div>
  5256. <div>{{ w.likesCount }}</div>
  5257. </div>
  5258. <div class="commentList" style="margin-right: 15px">
  5259. <div
  5260. class="commentImg"
  5261. @click="commentOther(w, toolIndex, wIndex)"
  5262. >
  5263. <img
  5264. src="../../assets/icon/comment/comment.png"
  5265. alt=""
  5266. />
  5267. </div>
  5268. <div>{{ w.commentCount }}</div>
  5269. </div>
  5270. </div>
  5271. </div>
  5272. </div>
  5273. </div>
  5274. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5275. 未提交
  5276. </div>
  5277. <div
  5278. class="noWorksS"
  5279. v-if="noWorksS && noWorksS[toolIndex].length"
  5280. >
  5281. <div
  5282. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5283. :key="sIndex"
  5284. class="noWorksName"
  5285. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5286. >
  5287. <el-tooltip effect="dark" :content="s.student" placement="top">
  5288. <span>{{ s.student }}</span>
  5289. </el-tooltip>
  5290. </div>
  5291. </div>
  5292. </div>
  5293. <div
  5294. v-if="
  5295. tType &&
  5296. ((tType == 2 && sIsOpen == true) ||
  5297. tType == 1 ||
  5298. tType == 4) &&
  5299. tool.tool.indexOf(3) != -1
  5300. "
  5301. class="worksBox"
  5302. >
  5303. <div
  5304. class="zuoyeYulan"
  5305. v-if="
  5306. (worksStudent.length &&
  5307. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5308. "
  5309. >
  5310. <div class="worksTop">
  5311. <div>作业预览</div>
  5312. <div
  5313. class="corOpen"
  5314. @click="contract(toolIndex)"
  5315. v-if="
  5316. (isCloseList[toolIndex].isCloseBoolean) &&
  5317. isCloseList[toolIndex].isClose == 0
  5318. "
  5319. >
  5320. 折叠
  5321. </div>
  5322. <div
  5323. class="corOpen"
  5324. @click="contract(toolIndex)"
  5325. v-if="isCloseList[toolIndex].isClose == 1"
  5326. >
  5327. 展开
  5328. </div>
  5329. </div>
  5330. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5331. </div>
  5332. <div
  5333. class="group_workBox"
  5334. v-for="(g, gindex) in courseGroup.group"
  5335. :key="gindex"
  5336. >
  5337. <div class="group_box">
  5338. <div class="group_title">
  5339. <el-tooltip
  5340. class="item"
  5341. effect="light"
  5342. :content="g.name"
  5343. placement="top"
  5344. >
  5345. <div class="group_name">{{ g.name }}</div>
  5346. </el-tooltip>
  5347. </div>
  5348. <div
  5349. class="group_work"
  5350. v-if="
  5351. g.works &&
  5352. g.works.length &&
  5353. g.works[toolIndex].length
  5354. "
  5355. >
  5356. <div
  5357. class="works"
  5358. style="
  5359. width: 200px;
  5360. height: 140px;
  5361. margin: 10px 10px 10px 0;
  5362. border-radius: 15px;
  5363. box-shadow: 0 0 6px 1px #dfdada;
  5364. "
  5365. v-for="(w, wIndex) in g.works[toolIndex]"
  5366. :key="wIndex"
  5367. :class="w.type == 1 ? 'isTypeOne' : ''"
  5368. >
  5369. <div class="workImg">
  5370. <img
  5371. :src="w.works"
  5372. @click="previewImg(w.works,w)"
  5373. alt
  5374. />
  5375. <div
  5376. class="answerScore"
  5377. v-if="w.score"
  5378. @click.stop="openScore(w)"
  5379. :class="{
  5380. rightW:
  5381. w.userid == userid ||
  5382. tType == 1 ||
  5383. tType == 4,
  5384. }"
  5385. >
  5386. {{ JSON.parse(w.score).wScore }}分
  5387. </div>
  5388. <div
  5389. class="answerScore"
  5390. @click.stop="openScore(w)"
  5391. v-else-if="courseDetail.userid == userid"
  5392. :class="{
  5393. rightW:
  5394. w.userid == userid ||
  5395. tType == 1 ||
  5396. tType == 4,
  5397. }"
  5398. >
  5399. 评分
  5400. </div>
  5401. <img
  5402. class="deleteImg"
  5403. src="../../assets/deleteworks.png"
  5404. v-if="
  5405. w.userid == userid || tType == 1 || tType == 4
  5406. "
  5407. @click.stop="deleteWorks(w.wid)"
  5408. alt
  5409. />
  5410. </div>
  5411. <div class="comment" style="min-width: 200px">
  5412. <div class="worksName">
  5413. <div>{{ w.sName }}</div>
  5414. </div>
  5415. <div class="commentList">
  5416. <div class="commentList">
  5417. <div
  5418. class="commentImg"
  5419. @click="
  5420. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5421. "
  5422. >
  5423. <img
  5424. :src="w.isLikes == true ? likes : noLikes"
  5425. alt=""
  5426. />
  5427. </div>
  5428. <div>{{ w.likesCount }}</div>
  5429. </div>
  5430. <div
  5431. class="commentList"
  5432. style="margin-right: 15px"
  5433. >
  5434. <div
  5435. class="commentImg"
  5436. @click="
  5437. commentOther(
  5438. w,
  5439. toolIndex,
  5440. wIndex,
  5441. null,
  5442. g.id
  5443. )
  5444. "
  5445. >
  5446. <img
  5447. src="../../assets/icon/comment/comment.png"
  5448. alt=""
  5449. />
  5450. </div>
  5451. <div>{{ w.commentCount }}</div>
  5452. </div>
  5453. </div>
  5454. </div>
  5455. </div>
  5456. </div>
  5457. <div class="group_work" v-else>暂无提交作业</div>
  5458. </div>
  5459. </div>
  5460. <div
  5461. :id="'tool-' + toolIndex"
  5462. :style="{
  5463. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5464. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5465. }"
  5466. class="worksDetailBox"
  5467. v-if="
  5468. worksStudent.length &&
  5469. worksStudent[toolIndex].length > 0
  5470. "
  5471. >
  5472. <div
  5473. class="works"
  5474. style="
  5475. width: 200px;
  5476. height: 140px;
  5477. margin: 10px 10px 10px 0;
  5478. border-radius: 15px;
  5479. box-shadow: 0 0 6px 1px #dfdada;
  5480. "
  5481. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5482. :key="wIndex"
  5483. >
  5484. <!-- @click="previewImg(w.works)" -->
  5485. <div class="workImg">
  5486. <img
  5487. :src="w.works"
  5488. @click="previewImg(w.works,w)"
  5489. alt
  5490. />
  5491. <div
  5492. class="answerScore"
  5493. v-if="w.score"
  5494. @click.stop="openScore(w)"
  5495. :class="{
  5496. rightW:
  5497. w.userid == userid || tType == 1 || tType == 4,
  5498. }"
  5499. >
  5500. {{ JSON.parse(w.score).wScore }}分
  5501. </div>
  5502. <div
  5503. class="answerScore"
  5504. @click.stop="openScore(w)"
  5505. v-else-if="courseDetail.userid == userid"
  5506. :class="{
  5507. rightW:
  5508. w.userid == userid || tType == 1 || tType == 4,
  5509. }"
  5510. >
  5511. 评分
  5512. </div>
  5513. <img
  5514. class="deleteImg"
  5515. src="../../assets/deleteworks.png"
  5516. v-if="
  5517. w.userid == userid || tType == 1 || tType == 4
  5518. "
  5519. @click.stop="deleteWorks(w.wid)"
  5520. alt
  5521. />
  5522. </div>
  5523. <div class="comment" style="min-width: 200px">
  5524. <div class="worksName">
  5525. <div>{{ w.sName }}</div>
  5526. </div>
  5527. <div class="commentList">
  5528. <div class="commentList">
  5529. <div
  5530. class="commentImg"
  5531. @click="
  5532. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5533. "
  5534. >
  5535. <img
  5536. :src="w.isLikes == true ? likes : noLikes"
  5537. alt=""
  5538. />
  5539. </div>
  5540. <div>{{ w.likesCount }}</div>
  5541. </div>
  5542. <div class="commentList" style="margin-right: 15px">
  5543. <div
  5544. class="commentImg"
  5545. @click="commentOther(w, toolIndex, wIndex)"
  5546. >
  5547. <img
  5548. src="../../assets/icon/comment/comment.png"
  5549. alt=""
  5550. />
  5551. </div>
  5552. <div>{{ w.commentCount }}</div>
  5553. </div>
  5554. </div>
  5555. </div>
  5556. </div>
  5557. </div>
  5558. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5559. 未提交
  5560. </div>
  5561. <div
  5562. class="noWorksS"
  5563. v-if="noWorksS && noWorksS[toolIndex].length"
  5564. >
  5565. <div
  5566. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5567. :key="sIndex"
  5568. class="noWorksName"
  5569. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5570. >
  5571. <el-tooltip effect="dark" :content="s.student" placement="top">
  5572. <span>{{ s.student }}</span>
  5573. </el-tooltip>
  5574. </div>
  5575. </div>
  5576. </div>
  5577. <div
  5578. v-if="
  5579. tType &&
  5580. ((tType == 2 && sIsOpen == true) ||
  5581. tType == 1 ||
  5582. tType == 4) &&
  5583. tool.tool.indexOf(6) != -1
  5584. "
  5585. class="worksBox"
  5586. >
  5587. <div
  5588. class="zuoyeYulan"
  5589. v-if="
  5590. (worksStudent.length &&
  5591. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5592. "
  5593. >
  5594. <div class="worksTop">
  5595. <div>作业预览</div>
  5596. <div
  5597. class="corOpen"
  5598. @click="contract(toolIndex)"
  5599. v-if="
  5600. (isCloseList[toolIndex].isCloseBoolean) &&
  5601. isCloseList[toolIndex].isClose == 0
  5602. "
  5603. >
  5604. 折叠
  5605. </div>
  5606. <div
  5607. class="corOpen"
  5608. @click="contract(toolIndex)"
  5609. v-if="isCloseList[toolIndex].isClose == 1"
  5610. >
  5611. 展开
  5612. </div>
  5613. </div>
  5614. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5615. </div>
  5616. <div
  5617. class="group_workBox"
  5618. v-for="(g, gindex) in courseGroup.group"
  5619. :key="gindex"
  5620. >
  5621. <div class="group_box">
  5622. <div class="group_title">
  5623. <el-tooltip
  5624. class="item"
  5625. effect="light"
  5626. :content="g.name"
  5627. placement="top"
  5628. >
  5629. <div class="group_name">{{ g.name }}</div>
  5630. </el-tooltip>
  5631. </div>
  5632. <div
  5633. class="group_work"
  5634. v-if="
  5635. g.works &&
  5636. g.works.length &&
  5637. g.works[toolIndex].length
  5638. "
  5639. >
  5640. <div
  5641. class="works"
  5642. style="
  5643. width: 200px;
  5644. height: 140px;
  5645. margin: 10px 10px 10px 0;
  5646. border-radius: 15px;
  5647. box-shadow: 0 0 6px 1px #dfdada;
  5648. "
  5649. v-for="(w, wIndex) in g.works[toolIndex]"
  5650. :key="wIndex"
  5651. :class="w.type == 1 ? 'isTypeOne' : ''"
  5652. >
  5653. <div class="workImg">
  5654. <img
  5655. :src="w.works"
  5656. @click="previewImg(w.works,w)"
  5657. alt
  5658. />
  5659. <div
  5660. class="answerScore"
  5661. v-if="w.score"
  5662. @click.stop="openScore(w)"
  5663. :class="{
  5664. rightW:
  5665. w.userid == userid ||
  5666. tType == 1 ||
  5667. tType == 4,
  5668. }"
  5669. >
  5670. {{ JSON.parse(w.score).wScore }}分
  5671. </div>
  5672. <div
  5673. class="answerScore"
  5674. @click.stop="openScore(w)"
  5675. v-else-if="courseDetail.userid == userid"
  5676. :class="{
  5677. rightW:
  5678. w.userid == userid ||
  5679. tType == 1 ||
  5680. tType == 4,
  5681. }"
  5682. >
  5683. 评分
  5684. </div>
  5685. <img
  5686. class="deleteImg"
  5687. src="../../assets/deleteworks.png"
  5688. v-if="
  5689. w.userid == userid || tType == 1 || tType == 4
  5690. "
  5691. @click.stop="deleteWorks(w.wid)"
  5692. alt
  5693. />
  5694. </div>
  5695. <div class="comment" style="min-width: 200px">
  5696. <div class="worksName">
  5697. <div>{{ w.sName }}</div>
  5698. </div>
  5699. <div class="commentList">
  5700. <div class="commentList">
  5701. <div
  5702. class="commentImg"
  5703. @click="
  5704. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5705. "
  5706. >
  5707. <img
  5708. :src="w.isLikes == true ? likes : noLikes"
  5709. alt=""
  5710. />
  5711. </div>
  5712. <div>{{ w.likesCount }}</div>
  5713. </div>
  5714. <div
  5715. class="commentList"
  5716. style="margin-right: 15px"
  5717. >
  5718. <div
  5719. class="commentImg"
  5720. @click="
  5721. commentOther(
  5722. w,
  5723. toolIndex,
  5724. wIndex,
  5725. null,
  5726. g.id
  5727. )
  5728. "
  5729. >
  5730. <img
  5731. src="../../assets/icon/comment/comment.png"
  5732. alt=""
  5733. />
  5734. </div>
  5735. <div>{{ w.commentCount }}</div>
  5736. </div>
  5737. </div>
  5738. </div>
  5739. </div>
  5740. </div>
  5741. <div class="group_work" v-else>暂无提交作业</div>
  5742. </div>
  5743. </div>
  5744. <div
  5745. :id="'tool-' + toolIndex"
  5746. :style="{
  5747. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5748. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5749. }"
  5750. class="worksDetailBox"
  5751. v-if="
  5752. worksStudent.length &&
  5753. worksStudent[toolIndex].length > 0
  5754. "
  5755. >
  5756. <div
  5757. class="works"
  5758. style="
  5759. width: 200px;
  5760. height: 140px;
  5761. margin: 10px 10px 10px 0;
  5762. border-radius: 15px;
  5763. box-shadow: 0 0 6px 1px #dfdada;
  5764. "
  5765. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5766. :key="wIndex"
  5767. >
  5768. <!-- @click="previewImg(w.works)" -->
  5769. <div class="workImg">
  5770. <img
  5771. :src="w.works"
  5772. @click="previewImg(w.works,w)"
  5773. alt
  5774. />
  5775. <div
  5776. class="answerScore"
  5777. v-if="w.score"
  5778. @click.stop="openScore(w)"
  5779. :class="{
  5780. rightW:
  5781. w.userid == userid || tType == 1 || tType == 4,
  5782. }"
  5783. >
  5784. {{ JSON.parse(w.score).wScore }}分
  5785. </div>
  5786. <div
  5787. class="answerScore"
  5788. @click.stop="openScore(w)"
  5789. v-else-if="courseDetail.userid == userid"
  5790. :class="{
  5791. rightW:
  5792. w.userid == userid || tType == 1 || tType == 4,
  5793. }"
  5794. >
  5795. 评分
  5796. </div>
  5797. <img
  5798. class="deleteImg"
  5799. src="../../assets/deleteworks.png"
  5800. v-if="
  5801. w.userid == userid || tType == 1 || tType == 4
  5802. "
  5803. @click.stop="deleteWorks(w.wid)"
  5804. alt
  5805. />
  5806. </div>
  5807. <div class="comment" style="min-width: 200px">
  5808. <div class="worksName">
  5809. <div>{{ w.sName }}</div>
  5810. </div>
  5811. <div class="commentList">
  5812. <div class="commentList">
  5813. <div
  5814. class="commentImg"
  5815. @click="
  5816. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5817. "
  5818. >
  5819. <img
  5820. :src="w.isLikes == true ? likes : noLikes"
  5821. alt=""
  5822. />
  5823. </div>
  5824. <div>{{ w.likesCount }}</div>
  5825. </div>
  5826. <div class="commentList" style="margin-right: 15px">
  5827. <div
  5828. class="commentImg"
  5829. @click="commentOther(w, toolIndex, wIndex)"
  5830. >
  5831. <img
  5832. src="../../assets/icon/comment/comment.png"
  5833. alt=""
  5834. />
  5835. </div>
  5836. <div>{{ w.commentCount }}</div>
  5837. </div>
  5838. </div>
  5839. </div>
  5840. </div>
  5841. </div>
  5842. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5843. 未提交
  5844. </div>
  5845. <div
  5846. class="noWorksS"
  5847. v-if="noWorksS && noWorksS[toolIndex].length"
  5848. >
  5849. <div
  5850. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5851. :key="sIndex"
  5852. class="noWorksName"
  5853. >
  5854. <el-tooltip effect="dark" :content="s.student" placement="top">
  5855. <span>{{ s.student }}</span>
  5856. </el-tooltip>
  5857. </div>
  5858. </div>
  5859. </div>
  5860. <div
  5861. v-if="
  5862. tType &&
  5863. ((tType == 2 && sIsOpen == true) ||
  5864. tType == 1 ||
  5865. tType == 4) &&
  5866. tool.tool.indexOf(7) != -1
  5867. "
  5868. class="worksBox"
  5869. >
  5870. <div
  5871. class="zuoyeYulan"
  5872. v-if="
  5873. (worksStudent.length &&
  5874. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5875. "
  5876. >
  5877. <div class="worksTop">
  5878. <div>作业预览</div>
  5879. <div
  5880. class="corOpen"
  5881. @click="contract(toolIndex)"
  5882. v-if="
  5883. (isCloseList[toolIndex].isCloseBoolean) &&
  5884. isCloseList[toolIndex].isClose == 0
  5885. "
  5886. >
  5887. 折叠
  5888. </div>
  5889. <div
  5890. class="corOpen"
  5891. @click="contract(toolIndex)"
  5892. v-if="isCloseList[toolIndex].isClose == 1"
  5893. >
  5894. 展开
  5895. </div>
  5896. </div>
  5897. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5898. </div>
  5899. <div
  5900. class="group_workBox"
  5901. v-for="(g, gindex) in courseGroup.group"
  5902. :key="gindex"
  5903. >
  5904. <div class="group_box">
  5905. <div class="group_title">
  5906. <el-tooltip
  5907. class="item"
  5908. effect="light"
  5909. :content="g.name"
  5910. placement="top"
  5911. >
  5912. <div class="group_name">{{ g.name }}</div>
  5913. </el-tooltip>
  5914. </div>
  5915. <div
  5916. class="group_work"
  5917. v-if="
  5918. g.works &&
  5919. g.works.length &&
  5920. g.works[toolIndex].length
  5921. "
  5922. >
  5923. <div
  5924. class="works"
  5925. style="
  5926. width: 200px;
  5927. height: 140px;
  5928. margin: 10px 10px 10px 0;
  5929. border-radius: 15px;
  5930. box-shadow: 0 0 6px 1px #dfdada;
  5931. "
  5932. v-for="(w, wIndex) in g.works[toolIndex]"
  5933. :key="wIndex"
  5934. :class="w.type == 1 ? 'isTypeOne' : ''"
  5935. >
  5936. <div class="workImg">
  5937. <img
  5938. :src="w.works"
  5939. @click="previewImg(w.works,w)"
  5940. alt
  5941. />
  5942. <div
  5943. class="answerScore"
  5944. v-if="w.score"
  5945. @click.stop="openScore(w)"
  5946. :class="{
  5947. rightW:
  5948. w.userid == userid ||
  5949. tType == 1 ||
  5950. tType == 4,
  5951. }"
  5952. >
  5953. {{ JSON.parse(w.score).wScore }}分
  5954. </div>
  5955. <div
  5956. class="answerScore"
  5957. @click.stop="openScore(w)"
  5958. v-else-if="courseDetail.userid == userid"
  5959. :class="{
  5960. rightW:
  5961. w.userid == userid ||
  5962. tType == 1 ||
  5963. tType == 4,
  5964. }"
  5965. >
  5966. 评分
  5967. </div>
  5968. <img
  5969. class="deleteImg"
  5970. src="../../assets/deleteworks.png"
  5971. v-if="
  5972. w.userid == userid || tType == 1 || tType == 4
  5973. "
  5974. @click.stop="deleteWorks(w.wid)"
  5975. alt
  5976. />
  5977. </div>
  5978. <div class="comment" style="min-width: 200px">
  5979. <div class="worksName">
  5980. <div>{{ w.sName }}</div>
  5981. </div>
  5982. <div class="commentList">
  5983. <div class="commentList">
  5984. <div
  5985. class="commentImg"
  5986. @click="
  5987. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5988. "
  5989. >
  5990. <img
  5991. :src="w.isLikes == true ? likes : noLikes"
  5992. alt=""
  5993. />
  5994. </div>
  5995. <div>{{ w.likesCount }}</div>
  5996. </div>
  5997. <div
  5998. class="commentList"
  5999. style="margin-right: 15px"
  6000. >
  6001. <div
  6002. class="commentImg"
  6003. @click="
  6004. commentOther(
  6005. w,
  6006. toolIndex,
  6007. wIndex,
  6008. null,
  6009. g.id
  6010. )
  6011. "
  6012. >
  6013. <img
  6014. src="../../assets/icon/comment/comment.png"
  6015. alt=""
  6016. />
  6017. </div>
  6018. <div>{{ w.commentCount }}</div>
  6019. </div>
  6020. </div>
  6021. </div>
  6022. </div>
  6023. </div>
  6024. <div class="group_work" v-else>暂无提交作业</div>
  6025. </div>
  6026. </div>
  6027. <div
  6028. :id="'tool-' + toolIndex"
  6029. :style="{
  6030. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6031. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6032. }"
  6033. class="worksDetailBox"
  6034. v-if="
  6035. worksStudent.length &&
  6036. worksStudent[toolIndex].length > 0
  6037. "
  6038. >
  6039. <div
  6040. class="works"
  6041. style="
  6042. width: 200px;
  6043. height: 140px;
  6044. margin: 10px 10px 10px 0;
  6045. border-radius: 15px;
  6046. box-shadow: 0 0 6px 1px #dfdada;
  6047. "
  6048. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6049. :key="wIndex"
  6050. >
  6051. <!-- @click="previewImg(w.works)" -->
  6052. <div class="workImg">
  6053. <img
  6054. :src="w.works"
  6055. @click="previewImg(w.works,w)"
  6056. alt
  6057. />
  6058. <div
  6059. class="answerScore"
  6060. v-if="w.score"
  6061. @click.stop="openScore(w)"
  6062. :class="{
  6063. rightW:
  6064. w.userid == userid || tType == 1 || tType == 4,
  6065. }"
  6066. >
  6067. {{ JSON.parse(w.score).wScore }}分
  6068. </div>
  6069. <div
  6070. class="answerScore"
  6071. @click.stop="openScore(w)"
  6072. v-else-if="courseDetail.userid == userid"
  6073. :class="{
  6074. rightW:
  6075. w.userid == userid || tType == 1 || tType == 4,
  6076. }"
  6077. >
  6078. 评分
  6079. </div>
  6080. <img
  6081. class="deleteImg"
  6082. src="../../assets/deleteworks.png"
  6083. v-if="
  6084. w.userid == userid || tType == 1 || tType == 4
  6085. "
  6086. @click.stop="deleteWorks(w.wid)"
  6087. alt
  6088. />
  6089. </div>
  6090. <div class="comment" style="min-width: 200px">
  6091. <div class="worksName">
  6092. <div>{{ w.sName }}</div>
  6093. </div>
  6094. <div class="commentList">
  6095. <div class="commentList">
  6096. <div
  6097. class="commentImg"
  6098. @click="
  6099. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6100. "
  6101. >
  6102. <img
  6103. :src="w.isLikes == true ? likes : noLikes"
  6104. alt=""
  6105. />
  6106. </div>
  6107. <div>{{ w.likesCount }}</div>
  6108. </div>
  6109. <div class="commentList" style="margin-right: 15px">
  6110. <div
  6111. class="commentImg"
  6112. @click="commentOther(w, toolIndex, wIndex)"
  6113. >
  6114. <img
  6115. src="../../assets/icon/comment/comment.png"
  6116. alt=""
  6117. />
  6118. </div>
  6119. <div>{{ w.commentCount }}</div>
  6120. </div>
  6121. </div>
  6122. </div>
  6123. </div>
  6124. </div>
  6125. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6126. 未提交
  6127. </div>
  6128. <div
  6129. class="noWorksS"
  6130. v-if="noWorksS && noWorksS[toolIndex].length"
  6131. >
  6132. <div
  6133. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6134. :key="sIndex"
  6135. class="noWorksName"
  6136. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6137. >
  6138. <el-tooltip effect="dark" :content="s.student" placement="top">
  6139. <span>{{ s.student }}</span>
  6140. </el-tooltip>
  6141. </div>
  6142. </div>
  6143. </div>
  6144. <div
  6145. v-if="
  6146. tType &&
  6147. ((tType == 2 && sIsOpen == true) ||
  6148. tType == 1 ||
  6149. tType == 4) &&
  6150. tool.tool.indexOf(26) != -1
  6151. "
  6152. class="worksBox"
  6153. >
  6154. <div
  6155. class="zuoyeYulan"
  6156. v-if="
  6157. worksStudent.length &&
  6158. worksStudent[toolIndex].length > 0
  6159. "
  6160. >
  6161. <div class="worksTop">
  6162. <div>作业预览</div>
  6163. <div
  6164. class="corOpen"
  6165. @click="contract(toolIndex)"
  6166. v-if="
  6167. (isCloseList[toolIndex].isCloseBoolean) &&
  6168. isCloseList[toolIndex].isClose == 0
  6169. "
  6170. >
  6171. 折叠
  6172. </div>
  6173. <div
  6174. class="corOpen"
  6175. @click="contract(toolIndex)"
  6176. v-if="isCloseList[toolIndex].isClose == 1"
  6177. >
  6178. 展开
  6179. </div>
  6180. </div>
  6181. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6182. </div>
  6183. <div
  6184. :id="'tool-' + toolIndex"
  6185. :style="{
  6186. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6187. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6188. }"
  6189. class="worksDetailBox"
  6190. v-if="
  6191. worksStudent.length &&
  6192. worksStudent[toolIndex].length > 0
  6193. "
  6194. >
  6195. <div
  6196. class="works"
  6197. style="width: 240px; height: 140px; overflow: hidden"
  6198. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6199. :key="wIndex"
  6200. :class="w.type == 1 ? 'isTypeOne' : ''"
  6201. >
  6202. <div class="workImg" v-if="w.type == 0">
  6203. <img
  6204. :src="w.works"
  6205. @click="previewImg(w.works,w)"
  6206. alt
  6207. />
  6208. <img
  6209. class="deleteImg"
  6210. src="../../assets/deleteworks.png"
  6211. v-if="
  6212. w.userid == userid || tType == 1 || tType == 4
  6213. "
  6214. @click.stop="deleteWorks(w.wid)"
  6215. alt
  6216. />
  6217. </div>
  6218. <div class="workImg" v-if="w.type == 1">
  6219. <img :src="word" @click="openFile(w.works)" alt />
  6220. <img
  6221. class="deleteImg"
  6222. src="../../assets/deleteworks.png"
  6223. v-if="
  6224. w.userid == userid || tType == 1 || tType == 4
  6225. "
  6226. @click.stop="deleteWorks(w.wid)"
  6227. alt
  6228. />
  6229. </div>
  6230. <div class="worksName">
  6231. <div>{{ w.sName }}</div>
  6232. </div>
  6233. </div>
  6234. </div>
  6235. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6236. 未提交
  6237. </div>
  6238. <div
  6239. class="noWorksS"
  6240. v-if="noWorksS && noWorksS[toolIndex].length"
  6241. >
  6242. <div
  6243. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6244. :key="sIndex"
  6245. class="noWorksName"
  6246. >
  6247. <el-tooltip effect="dark" :content="s.student" placement="top">
  6248. <span>{{ s.student }}</span>
  6249. </el-tooltip>
  6250. </div>
  6251. </div>
  6252. </div>
  6253. <div
  6254. v-if="
  6255. tType &&
  6256. ((tType == 2 && sIsOpen == true) ||
  6257. tType == 1 ||
  6258. tType == 4) &&
  6259. tool.tool.indexOf(40) != -1
  6260. "
  6261. class="worksBox"
  6262. >
  6263. <div
  6264. class="zuoyeYulan"
  6265. v-if="
  6266. worksStudent.length &&
  6267. worksStudent[toolIndex].length > 0
  6268. "
  6269. >
  6270. <div class="worksTop">
  6271. <div>作业预览</div>
  6272. <div
  6273. class="corOpen"
  6274. @click="contract(toolIndex)"
  6275. v-if="
  6276. (isCloseList[toolIndex].isCloseBoolean) &&
  6277. isCloseList[toolIndex].isClose == 0
  6278. "
  6279. >
  6280. 折叠
  6281. </div>
  6282. <div
  6283. class="corOpen"
  6284. @click="contract(toolIndex)"
  6285. v-if="isCloseList[toolIndex].isClose == 1"
  6286. >
  6287. 展开
  6288. </div>
  6289. </div>
  6290. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6291. </div>
  6292. <div
  6293. :id="'tool-' + toolIndex"
  6294. :style="{
  6295. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6296. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6297. }"
  6298. class="worksDetailBox"
  6299. v-if="
  6300. worksStudent.length &&
  6301. worksStudent[toolIndex].length > 0
  6302. "
  6303. >
  6304. <div
  6305. class="works"
  6306. style="
  6307. width: 200px;
  6308. height: 140px;
  6309. margin: 10px 10px 10px 0;
  6310. border-radius: 15px;
  6311. box-shadow: 0 0 6px 1px #dfdada;
  6312. "
  6313. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6314. :key="wIndex"
  6315. :class="w.type == 1 ? 'isTypeOne' : ''"
  6316. >
  6317. <div class="workImg">
  6318. <img
  6319. src="../../assets/icon/works/noImg.png"
  6320. @click="openPj(w.works, toolIndex)"
  6321. alt
  6322. />
  6323. <img
  6324. class="deleteImg"
  6325. src="../../assets/deleteworks.png"
  6326. v-if="
  6327. w.userid == userid || tType == 1 || tType == 4
  6328. "
  6329. @click.stop="deleteWorks(w.wid)"
  6330. alt
  6331. />
  6332. </div>
  6333. <div class="comment" style="min-width: 200px">
  6334. <div class="worksName">
  6335. <div>{{ w.sName }}</div>
  6336. </div>
  6337. <div class="commentList">
  6338. <div class="commentList">
  6339. <div
  6340. class="commentImg"
  6341. @click="
  6342. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6343. "
  6344. >
  6345. <img
  6346. :src="w.isLikes == true ? likes : noLikes"
  6347. alt=""
  6348. />
  6349. </div>
  6350. <div>{{ w.likesCount }}</div>
  6351. </div>
  6352. <div class="commentList" style="margin-right: 15px">
  6353. <div
  6354. class="commentImg"
  6355. @click="commentOther(w, toolIndex, wIndex)"
  6356. >
  6357. <img
  6358. src="../../assets/icon/comment/comment.png"
  6359. alt=""
  6360. />
  6361. </div>
  6362. <div>{{ w.commentCount }}</div>
  6363. </div>
  6364. </div>
  6365. </div>
  6366. </div>
  6367. </div>
  6368. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6369. 未提交
  6370. </div>
  6371. <div
  6372. class="noWorksS"
  6373. v-if="noWorksS && noWorksS[toolIndex].length"
  6374. >
  6375. <div
  6376. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6377. :key="sIndex"
  6378. class="noWorksName"
  6379. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6380. >
  6381. <el-tooltip effect="dark" :content="s.student" placement="top">
  6382. <span>{{ s.student }}</span>
  6383. </el-tooltip>
  6384. </div>
  6385. </div>
  6386. </div>
  6387. <div
  6388. v-if="
  6389. tType &&
  6390. tType == 2 &&
  6391. !sIsOpen &&
  6392. tool.tool.indexOf(40) != -1
  6393. "
  6394. class="worksBox"
  6395. >
  6396. <div
  6397. class="zuoyeYulan"
  6398. v-if="workStudent[toolIndex].length > 0"
  6399. >
  6400. <span class="worksTitle">作业预览</span>
  6401. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6402. </div>
  6403. <div
  6404. class="worksDetailBox"
  6405. v-if="workStudent[toolIndex].length > 0"
  6406. >
  6407. <div
  6408. class="works"
  6409. style="
  6410. width: 200px;
  6411. height: 140px;
  6412. margin: 10px 10px 10px 0;
  6413. "
  6414. v-for="(w, wIndex) in workStudent[toolIndex]"
  6415. :key="wIndex"
  6416. >
  6417. <div class="workImg">
  6418. <img
  6419. src="../../assets/icon/works/noImg.png"
  6420. @click="openPj(w.works, toolIndex)"
  6421. alt
  6422. />
  6423. <img
  6424. class="deleteImg"
  6425. src="../../assets/deleteworks.png"
  6426. v-if="
  6427. w.userid == userid || tType == 1 || tType == 4
  6428. "
  6429. @click.stop="deleteWorks(w.wid)"
  6430. alt
  6431. />
  6432. </div>
  6433. <div class="worksName">
  6434. <div>{{ w.sName }}</div>
  6435. </div>
  6436. </div>
  6437. </div>
  6438. </div>
  6439. <div
  6440. v-if="
  6441. tType &&
  6442. ((tType == 2 && sIsOpen == true) ||
  6443. tType == 1 ||
  6444. tType == 4) &&
  6445. tool.tool.indexOf(41) != -1
  6446. "
  6447. >
  6448. <AnswerData2
  6449. v-if="
  6450. worksStudent.length &&
  6451. worksStudent[toolIndex].length > 0
  6452. "
  6453. :problemJson="tool.selectJson.answer"
  6454. :people="worksStudent[toolIndex]"
  6455. ></AnswerData2>
  6456. </div>
  6457. <div
  6458. v-if="
  6459. tType &&
  6460. ((tType == 2 && sIsOpen == true) ||
  6461. tType == 1 ||
  6462. tType == 4) &&
  6463. tool.tool.indexOf(41) != -1
  6464. "
  6465. class="worksBox"
  6466. >
  6467. <div
  6468. class="zuoyeYulan"
  6469. v-if="
  6470. worksStudent.length &&
  6471. worksStudent[toolIndex].length > 0
  6472. "
  6473. >
  6474. <div class="worksTop">
  6475. <div>作业预览</div>
  6476. <div
  6477. class="corOpen"
  6478. @click="contract(toolIndex)"
  6479. v-if="
  6480. (isCloseList[toolIndex].isCloseBoolean) &&
  6481. isCloseList[toolIndex].isClose == 0
  6482. "
  6483. >
  6484. 折叠
  6485. </div>
  6486. <div
  6487. class="corOpen"
  6488. @click="contract(toolIndex)"
  6489. v-if="isCloseList[toolIndex].isClose == 1"
  6490. >
  6491. 展开
  6492. </div>
  6493. </div>
  6494. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6495. </div>
  6496. <div
  6497. :id="'tool-' + toolIndex"
  6498. :style="{
  6499. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6500. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6501. }"
  6502. class="worksDetailBox"
  6503. v-if="
  6504. worksStudent.length &&
  6505. worksStudent[toolIndex].length > 0
  6506. "
  6507. >
  6508. <div
  6509. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6510. :key="wIndex"
  6511. class="isWorksName2"
  6512. @click="openXz(w, toolIndex)"
  6513. >
  6514. {{ w.sName }}
  6515. <img
  6516. class="deleteImg deleteImg2"
  6517. src="../../assets/deleteworks.png"
  6518. v-if="w.userid == userid || tType == 1 || tType == 4"
  6519. @click.stop="deleteWorks(w.wid)"
  6520. alt
  6521. />
  6522. </div>
  6523. <!-- <div
  6524. class="works"
  6525. style="
  6526. width: 200px;
  6527. height: 140px;
  6528. margin: 10px 10px 10px 0;
  6529. border-radius: 15px;
  6530. box-shadow: 0 0 6px 1px #dfdada;
  6531. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6532. :class="w.type == 5 ? 'isTypeOne' : ''">
  6533. <div class="workImg">
  6534. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6535. </div>
  6536. <div class="worksName">
  6537. <div>{{ w.sName }}</div>
  6538. </div>
  6539. </div> -->
  6540. </div>
  6541. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6542. 未提交
  6543. </div>
  6544. <div
  6545. class="noWorksS"
  6546. v-if="noWorksS && noWorksS[toolIndex].length"
  6547. >
  6548. <div
  6549. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6550. :key="sIndex"
  6551. class="noWorksName"
  6552. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6553. >
  6554. <el-tooltip effect="dark" :content="s.student" placement="top">
  6555. <span>{{ s.student }}</span>
  6556. </el-tooltip>
  6557. </div>
  6558. </div>
  6559. </div>
  6560. <div
  6561. v-if="
  6562. tType &&
  6563. tType == 2 &&
  6564. !sIsOpen &&
  6565. tool.tool.indexOf(41) != -1
  6566. "
  6567. class="worksBox"
  6568. >
  6569. <div
  6570. class="zuoyeYulan"
  6571. v-if="workStudent[toolIndex].length > 0"
  6572. >
  6573. <span class="worksTitle">作业预览</span>
  6574. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6575. </div>
  6576. <div
  6577. class="worksDetailBox"
  6578. v-if="workStudent[toolIndex].length > 0"
  6579. >
  6580. <div
  6581. class="works"
  6582. style="
  6583. width: 200px;
  6584. height: 140px;
  6585. margin: 10px 10px 10px 0;
  6586. "
  6587. v-for="(w, wIndex) in workStudent[toolIndex]"
  6588. :key="wIndex"
  6589. >
  6590. <div class="workImg">
  6591. <img
  6592. src="../../assets/icon/works/noImg.png"
  6593. @click="openXz(w, toolIndex)"
  6594. alt
  6595. />
  6596. <img
  6597. class="deleteImg"
  6598. src="../../assets/deleteworks.png"
  6599. v-if="
  6600. w.userid == userid || tType == 1 || tType == 4
  6601. "
  6602. @click.stop="deleteWorks(w.wid)"
  6603. alt
  6604. />
  6605. </div>
  6606. <div class="worksName">
  6607. <div>{{ w.sName }}</div>
  6608. </div>
  6609. </div>
  6610. </div>
  6611. </div>
  6612. <div v-if="false" class="xuan_right_box">
  6613. <div
  6614. class="tool_right_box"
  6615. v-for="(item, index) in tool.sentenceList"
  6616. :key="index"
  6617. >
  6618. <div>
  6619. <span
  6620. style="word-break: break-all; white-space: normal"
  6621. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6622. >
  6623. </div>
  6624. <div class="right_box_xuan">
  6625. <span>正确率</span>
  6626. <span>{{
  6627. (checkJson[toolIndex][index].right
  6628. ? checkJson[toolIndex][index].right
  6629. : 0) + "%"
  6630. }}</span>
  6631. </div>
  6632. <div class="right_box_xuan">
  6633. <span>答对人数</span>
  6634. <span>{{
  6635. checkJson[toolIndex][index].rightPerson.length
  6636. }}</span>
  6637. </div>
  6638. </div>
  6639. </div>
  6640. <div
  6641. v-if="
  6642. tType &&
  6643. ((tType == 2 && sIsOpen == true) ||
  6644. tType == 1 ||
  6645. tType == 4) &&
  6646. tool.tool.indexOf(47) != -1
  6647. "
  6648. >
  6649. <!-- <AnswerData
  6650. v-if="
  6651. checkJson[toolIndex].length &&
  6652. (tool.sentenceList || tool.sentenceList.length > 0)
  6653. "
  6654. :people="checkJson[toolIndex]"
  6655. ></AnswerData> -->
  6656. <sortToolWorkShow v-if="
  6657. worksStudent[toolIndex].length
  6658. "
  6659. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  6660. </div>
  6661. <div
  6662. v-if="
  6663. tType &&
  6664. tType == 2 &&
  6665. !sIsOpen &&
  6666. tool.tool.indexOf(47) != -1
  6667. "
  6668. class="worksBox"
  6669. >
  6670. <div
  6671. class="zuoyeYulan"
  6672. v-if="workStudent[toolIndex].length > 0"
  6673. >
  6674. <span class="worksTitle">作业预览</span>
  6675. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6676. </div>
  6677. <div
  6678. class="worksDetailBox"
  6679. v-if="workStudent[toolIndex].length > 0"
  6680. >
  6681. <div
  6682. class="works"
  6683. style="
  6684. width: 200px;
  6685. height: 140px;
  6686. margin: 10px 10px 10px 0;
  6687. "
  6688. v-for="(w, wIndex) in workStudent[toolIndex]"
  6689. :key="wIndex"
  6690. >
  6691. <!-- @click="openXz(w, toolIndex)" -->
  6692. <div class="workImg" @click="openSen(w, toolIndex)">
  6693. <img src="../../assets/icon/works/noImg.png" alt />
  6694. <img
  6695. class="deleteImg"
  6696. src="../../assets/deleteworks.png"
  6697. v-if="
  6698. w.userid == userid || tType == 1 || tType == 4
  6699. "
  6700. @click.stop="deleteWorks(w.wid)"
  6701. alt
  6702. />
  6703. </div>
  6704. <div class="worksName">
  6705. <div>
  6706. {{ w.sName }}
  6707. </div>
  6708. </div>
  6709. </div>
  6710. </div>
  6711. </div>
  6712. <div
  6713. v-if="
  6714. tType &&
  6715. ((tType == 2 && sIsOpen == true) ||
  6716. tType == 1 ||
  6717. tType == 4) &&
  6718. tool.tool.indexOf(47) != -1
  6719. "
  6720. class="worksBox"
  6721. >
  6722. <div
  6723. class="zuoyeYulan"
  6724. v-if="
  6725. worksStudent.length &&
  6726. worksStudent[toolIndex].length > 0
  6727. "
  6728. >
  6729. <div class="worksTop">
  6730. <div>作业预览</div>
  6731. <div
  6732. class="corOpen"
  6733. @click="contract(toolIndex)"
  6734. v-if="
  6735. (isCloseList[toolIndex].isCloseBoolean) &&
  6736. isCloseList[toolIndex].isClose == 0
  6737. "
  6738. >
  6739. 折叠
  6740. </div>
  6741. <div
  6742. class="corOpen"
  6743. @click="contract(toolIndex)"
  6744. v-if="isCloseList[toolIndex].isClose == 1"
  6745. >
  6746. 展开
  6747. </div>
  6748. </div>
  6749. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6750. </div>
  6751. <div
  6752. :id="'tool-' + toolIndex"
  6753. :style="{
  6754. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6755. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6756. }"
  6757. class="worksDetailBox"
  6758. v-if="
  6759. worksStudent.length &&
  6760. worksStudent[toolIndex].length > 0
  6761. "
  6762. >
  6763. <!-- @click="openXz(w, toolIndex)" -->
  6764. <div
  6765. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6766. :key="wIndex"
  6767. class="isWorksName2"
  6768. @click="openSen(w, toolIndex)"
  6769. >
  6770. {{ w.sName }}
  6771. <img
  6772. class="deleteImg deleteImg2"
  6773. src="../../assets/deleteworks.png"
  6774. v-if="w.userid == userid || tType == 1 || tType == 4"
  6775. @click.stop="deleteWorks(w.wid)"
  6776. alt
  6777. />
  6778. </div>
  6779. </div>
  6780. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6781. 未提交
  6782. </div>
  6783. <div
  6784. class="noWorksS"
  6785. v-if="noWorksS && noWorksS[toolIndex].length"
  6786. >
  6787. <div
  6788. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6789. :key="sIndex"
  6790. class="noWorksName"
  6791. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6792. >
  6793. <el-tooltip effect="dark" :content="s.student" placement="top">
  6794. <span>{{ s.student }}</span>
  6795. </el-tooltip>
  6796. </div>
  6797. </div>
  6798. </div>
  6799. <div
  6800. v-if="
  6801. tType &&
  6802. ((tType == 2 && sIsOpen == true) ||
  6803. tType == 1 ||
  6804. tType == 4) &&
  6805. tool.tool.indexOf(48) != -1
  6806. "
  6807. class="worksBox"
  6808. >
  6809. <div
  6810. class="zuoyeYulan"
  6811. v-if="
  6812. worksStudent.length &&
  6813. worksStudent[toolIndex].length > 0
  6814. "
  6815. >
  6816. <div class="worksTop">
  6817. <div>作业预览</div>
  6818. <div
  6819. class="corOpen"
  6820. @click="contract(toolIndex)"
  6821. v-if="
  6822. (isCloseList[toolIndex].isCloseBoolean) &&
  6823. isCloseList[toolIndex].isClose == 0
  6824. "
  6825. >
  6826. 折叠
  6827. </div>
  6828. <div
  6829. class="corOpen"
  6830. @click="contract(toolIndex)"
  6831. v-if="isCloseList[toolIndex].isClose == 1"
  6832. >
  6833. 展开
  6834. </div>
  6835. </div>
  6836. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6837. </div>
  6838. <div
  6839. :id="'tool-' + toolIndex"
  6840. :style="{
  6841. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6842. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6843. }"
  6844. class="worksDetailBox"
  6845. v-if="
  6846. worksStudent.length &&
  6847. worksStudent[toolIndex].length > 0
  6848. "
  6849. >
  6850. <div
  6851. class="works"
  6852. style="
  6853. width: 200px;
  6854. height: 140px;
  6855. margin: 10px 10px 10px 0;
  6856. border-radius: 15px;
  6857. box-shadow: 0 0 6px 1px #dfdada;
  6858. "
  6859. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6860. :key="wIndex"
  6861. :class="w.type == 1 ? 'isTypeOne' : ''"
  6862. >
  6863. <div class="workImg">
  6864. <img :src="word" @click="openTable(w)" alt />
  6865. <!-- @click="openFile(w.works)" -->
  6866. <div
  6867. class="answerScore"
  6868. v-if="w.score"
  6869. @click.stop="openScore(w)"
  6870. :class="{
  6871. rightW:
  6872. w.userid == userid ||
  6873. tType == 1 ||
  6874. tType == 4 ||
  6875. w.ateacher == userid,
  6876. }"
  6877. >
  6878. {{ JSON.parse(w.score).wScore }}分
  6879. </div>
  6880. <div
  6881. class="answerScore"
  6882. @click.stop="openScore(w)"
  6883. v-else-if="courseDetail.userid == userid"
  6884. :class="{
  6885. rightW:
  6886. w.userid == userid ||
  6887. tType == 1 ||
  6888. tType == 4 ||
  6889. w.ateacher == userid,
  6890. }"
  6891. >
  6892. 评分
  6893. </div>
  6894. <img
  6895. class="deleteImg"
  6896. src="../../assets/deleteworks.png"
  6897. v-if="
  6898. w.userid == userid || tType == 1 || tType == 4
  6899. "
  6900. @click.stop="deleteWorks(w.wid)"
  6901. alt
  6902. />
  6903. </div>
  6904. <div class="comment" style="min-width: 200px">
  6905. <div class="worksName">
  6906. <div>{{ w.sName }}</div>
  6907. </div>
  6908. <div class="commentList">
  6909. <div class="commentList">
  6910. <div
  6911. class="commentImg"
  6912. @click="
  6913. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6914. "
  6915. >
  6916. <img
  6917. :src="w.isLikes == true ? likes : noLikes"
  6918. alt=""
  6919. />
  6920. </div>
  6921. <div>{{ w.likesCount }}</div>
  6922. </div>
  6923. <div class="commentList" style="margin-right: 15px">
  6924. <div
  6925. class="commentImg"
  6926. @click="commentOther(w, toolIndex, wIndex)"
  6927. >
  6928. <img
  6929. src="../../assets/icon/comment/comment.png"
  6930. alt=""
  6931. />
  6932. </div>
  6933. <div>{{ w.commentCount }}</div>
  6934. </div>
  6935. </div>
  6936. </div>
  6937. </div>
  6938. </div>
  6939. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6940. 未提交
  6941. </div>
  6942. <div
  6943. class="noWorksS"
  6944. v-if="noWorksS && noWorksS[toolIndex].length"
  6945. >
  6946. <div
  6947. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6948. :key="sIndex"
  6949. class="noWorksName"
  6950. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6951. >
  6952. <el-tooltip effect="dark" :content="s.student" placement="top">
  6953. <span>{{ s.student }}</span>
  6954. </el-tooltip>
  6955. </div>
  6956. </div>
  6957. </div>
  6958. <div
  6959. v-if="
  6960. tType &&
  6961. tType == 2 &&
  6962. !sIsOpen &&
  6963. tool.tool.indexOf(48) != -1
  6964. "
  6965. class="worksBox"
  6966. >
  6967. <div
  6968. class="zuoyeYulan"
  6969. v-if="workStudent[toolIndex].length > 0"
  6970. >
  6971. <span class="worksTitle">作业预览</span>
  6972. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6973. </div>
  6974. <div
  6975. class="worksDetailBox"
  6976. v-if="workStudent[toolIndex].length > 0"
  6977. >
  6978. <div
  6979. class="works"
  6980. style="
  6981. width: 200px;
  6982. height: 140px;
  6983. margin: 10px 10px 10px 0;
  6984. box-shadow: 0 0 6px 1px #dfdada;
  6985. "
  6986. v-for="(w, wIndex) in workStudent[toolIndex]"
  6987. :key="wIndex"
  6988. >
  6989. <div class="workImg">
  6990. <img :src="word" @click="openTable(w)" alt />
  6991. <div
  6992. class="answerScore"
  6993. v-if="w.score"
  6994. @click.stop="openScore(w)"
  6995. :class="{
  6996. rightW:
  6997. w.userid == userid || tType == 1 || tType == 4,
  6998. }"
  6999. >
  7000. {{ JSON.parse(w.score).wScore }}分
  7001. </div>
  7002. <div
  7003. class="answerScore"
  7004. @click.stop="openScore(w)"
  7005. v-else-if="courseDetail.userid == userid"
  7006. :class="{
  7007. rightW:
  7008. w.userid == userid || tType == 1 || tType == 4,
  7009. }"
  7010. >
  7011. 评分
  7012. </div>
  7013. <img
  7014. class="deleteImg"
  7015. src="../../assets/deleteworks.png"
  7016. v-if="
  7017. w.userid == userid || tType == 1 || tType == 4
  7018. "
  7019. @click.stop="deleteWorks(w.wid)"
  7020. alt
  7021. />
  7022. </div>
  7023. <div class="worksName">
  7024. <div>{{ w.sName }}</div>
  7025. </div>
  7026. </div>
  7027. </div>
  7028. </div>
  7029. <div
  7030. v-if="
  7031. tType &&
  7032. ((tType == 2 && sIsOpen == true) ||
  7033. tType == 1 ||
  7034. tType == 4) &&
  7035. tool.tool.indexOf(52) != -1
  7036. "
  7037. class="worksBox"
  7038. >
  7039. <div
  7040. class="zuoyeYulan"
  7041. v-if="
  7042. worksStudent.length &&
  7043. worksStudent[toolIndex].length > 0
  7044. "
  7045. >
  7046. <div class="worksTop">
  7047. <div>作业预览</div>
  7048. <div
  7049. class="corOpen"
  7050. @click="contract(toolIndex)"
  7051. v-if="
  7052. (isCloseList[toolIndex].isCloseBoolean) &&
  7053. isCloseList[toolIndex].isClose == 0
  7054. "
  7055. >
  7056. 折叠
  7057. </div>
  7058. <div
  7059. class="corOpen"
  7060. @click="contract(toolIndex)"
  7061. v-if="isCloseList[toolIndex].isClose == 1"
  7062. >
  7063. 展开
  7064. </div>
  7065. </div>
  7066. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7067. </div>
  7068. <div
  7069. :id="'tool-' + toolIndex"
  7070. :style="{
  7071. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7072. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7073. }"
  7074. class="worksDetailBox"
  7075. v-if="
  7076. worksStudent.length &&
  7077. worksStudent[toolIndex].length > 0
  7078. "
  7079. >
  7080. <div
  7081. class="works"
  7082. style="
  7083. width: 200px;
  7084. height: 140px;
  7085. margin: 10px 10px 10px 0;
  7086. border-radius: 15px;
  7087. box-shadow: 0 0 6px 1px #dfdada;
  7088. "
  7089. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7090. :key="wIndex"
  7091. :class="w.type == 1 ? 'isTypeOne' : ''"
  7092. >
  7093. <div class="workImg">
  7094. <img :src="word" @click="openWord(w)" alt />
  7095. <!-- @click="openFile(w.works)" -->
  7096. <div
  7097. class="answerScore"
  7098. v-if="w.score"
  7099. @click.stop="openScore(w)"
  7100. :class="{
  7101. rightW:
  7102. w.userid == userid ||
  7103. tType == 1 ||
  7104. tType == 4 ||
  7105. w.ateacher == userid,
  7106. }"
  7107. >
  7108. {{ JSON.parse(w.score).wScore }}分
  7109. </div>
  7110. <div
  7111. class="answerScore"
  7112. @click.stop="openScore(w)"
  7113. v-else-if="courseDetail.userid == userid"
  7114. :class="{
  7115. rightW:
  7116. w.userid == userid ||
  7117. tType == 1 ||
  7118. tType == 4 ||
  7119. w.ateacher == userid,
  7120. }"
  7121. >
  7122. 评分
  7123. </div>
  7124. <img
  7125. class="deleteImg"
  7126. src="../../assets/deleteworks.png"
  7127. v-if="
  7128. w.userid == userid || tType == 1 || tType == 4
  7129. "
  7130. @click.stop="deleteWorks(w.wid)"
  7131. alt
  7132. />
  7133. </div>
  7134. <div class="comment" style="min-width: 200px">
  7135. <div class="worksName">
  7136. <div>{{ w.sName }}</div>
  7137. </div>
  7138. <div class="commentList">
  7139. <div class="commentList">
  7140. <div
  7141. class="commentImg"
  7142. @click="
  7143. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7144. "
  7145. >
  7146. <img
  7147. :src="w.isLikes == true ? likes : noLikes"
  7148. alt=""
  7149. />
  7150. </div>
  7151. <div>{{ w.likesCount }}</div>
  7152. </div>
  7153. <div class="commentList" style="margin-right: 15px">
  7154. <div
  7155. class="commentImg"
  7156. @click="commentOther(w, toolIndex, wIndex)"
  7157. >
  7158. <img
  7159. src="../../assets/icon/comment/comment.png"
  7160. alt=""
  7161. />
  7162. </div>
  7163. <div>{{ w.commentCount }}</div>
  7164. </div>
  7165. </div>
  7166. </div>
  7167. </div>
  7168. </div>
  7169. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7170. 未提交
  7171. </div>
  7172. <div
  7173. class="noWorksS"
  7174. v-if="noWorksS && noWorksS[toolIndex].length"
  7175. >
  7176. <div
  7177. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7178. :key="sIndex"
  7179. class="noWorksName"
  7180. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7181. >
  7182. <el-tooltip effect="dark" :content="s.student" placement="top">
  7183. <span>{{ s.student }}</span>
  7184. </el-tooltip>
  7185. </div>
  7186. </div>
  7187. </div>
  7188. <div
  7189. v-if="
  7190. tType &&
  7191. tType == 2 &&
  7192. !sIsOpen &&
  7193. tool.tool.indexOf(52) != -1
  7194. "
  7195. class="worksBox"
  7196. >
  7197. <div
  7198. class="zuoyeYulan"
  7199. v-if="workStudent[toolIndex].length > 0"
  7200. >
  7201. <span class="worksTitle">作业预览</span>
  7202. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7203. </div>
  7204. <div
  7205. class="worksDetailBox"
  7206. v-if="workStudent[toolIndex].length > 0"
  7207. >
  7208. <div
  7209. class="works"
  7210. style="
  7211. width: 200px;
  7212. height: 140px;
  7213. margin: 10px 10px 10px 0;
  7214. box-shadow: 0 0 6px 1px #dfdada;
  7215. "
  7216. v-for="(w, wIndex) in workStudent[toolIndex]"
  7217. :key="wIndex"
  7218. >
  7219. <div class="workImg">
  7220. <img :src="word" @click="openWord(w)" alt />
  7221. <div
  7222. class="answerScore"
  7223. v-if="w.score"
  7224. @click.stop="openScore(w)"
  7225. :class="{
  7226. rightW:
  7227. w.userid == userid || tType == 1 || tType == 4,
  7228. }"
  7229. >
  7230. {{ JSON.parse(w.score).wScore }}分
  7231. </div>
  7232. <div
  7233. class="answerScore"
  7234. @click.stop="openScore(w)"
  7235. v-else-if="courseDetail.userid == userid"
  7236. :class="{
  7237. rightW:
  7238. w.userid == userid || tType == 1 || tType == 4,
  7239. }"
  7240. >
  7241. 评分
  7242. </div>
  7243. <img
  7244. class="deleteImg"
  7245. src="../../assets/deleteworks.png"
  7246. v-if="
  7247. w.userid == userid || tType == 1 || tType == 4
  7248. "
  7249. @click.stop="deleteWorks(w.wid)"
  7250. alt
  7251. />
  7252. </div>
  7253. <div class="worksName">
  7254. <div>{{ w.sName }}</div>
  7255. </div>
  7256. </div>
  7257. </div>
  7258. </div>
  7259. <div
  7260. v-if="tool.tool.indexOf(49) != -1"
  7261. class="xuan_right_box"
  7262. style="margin: 0 15px 0 25px; width: 93%"
  7263. >
  7264. <div
  7265. v-if="courseDetail.userid == userid"
  7266. style="
  7267. display: flex;
  7268. justify-content: flex-end;
  7269. margin-right: 10px;
  7270. "
  7271. >
  7272. <el-button
  7273. type="primary"
  7274. size="small"
  7275. @click="addTools(49, toolIndex, taskCount)"
  7276. >分组设置</el-button
  7277. >
  7278. </div>
  7279. <div
  7280. v-if="groupStudentUid[toolIndex]"
  7281. class="group_staic_box"
  7282. >
  7283. <div
  7284. v-for="(gp, gd) in tool.groupJson.group"
  7285. :key="gd"
  7286. class="group_staic"
  7287. >
  7288. <span> {{ gp.name }}</span>
  7289. <span>
  7290. 目前人数{{
  7291. groupStudentUid[toolIndex][gd].length
  7292. }}人</span
  7293. >
  7294. </div>
  7295. </div>
  7296. </div>
  7297. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7298. <div
  7299. class="zuoyeYulan"
  7300. v-if="
  7301. worksStudent.length &&
  7302. worksStudent[toolIndex].length > 0
  7303. "
  7304. >
  7305. <span class="worksTitle">作业预览</span>
  7306. </div>
  7307. <div>
  7308. <div
  7309. class="group_workBox"
  7310. v-for="(g, gindex) in tool.groupJson.group"
  7311. :key="gindex"
  7312. >
  7313. <div
  7314. class="group_box"
  7315. v-if="
  7316. groupStudentUid[toolIndex] &&
  7317. worksStudent[toolIndex] &&
  7318. (worksStudent[toolIndex][gindex].length ||
  7319. groupStudentUid[toolIndex][gindex].indexOf(
  7320. userid
  7321. ) != -1)
  7322. "
  7323. >
  7324. <div class="group_title">
  7325. <el-tooltip
  7326. class="item"
  7327. effect="light"
  7328. :content="g.name"
  7329. placement="top"
  7330. >
  7331. <div class="group_name">{{ g.name }}</div>
  7332. </el-tooltip>
  7333. <el-button
  7334. type="primary"
  7335. v-if="
  7336. groupStudentUid[toolIndex][gindex].indexOf(
  7337. userid
  7338. ) != -1
  7339. "
  7340. @click="groupUpload(toolIndex, taskCount, gindex)"
  7341. >上传作业</el-button
  7342. >
  7343. </div>
  7344. <div class="group_work">
  7345. <div
  7346. class="works"
  7347. style="
  7348. width: 200px;
  7349. height: 140px;
  7350. margin: 10px 10px 10px 0;
  7351. border-radius: 15px;
  7352. box-shadow: 0 0 6px 1px #dfdada;
  7353. "
  7354. v-for="(w, wIndex) in worksStudent[toolIndex][
  7355. gindex
  7356. ]"
  7357. :key="wIndex"
  7358. :class="w.type == 1 ? 'isTypeOne' : ''"
  7359. >
  7360. <div class="workImg" v-if="w.type == 0">
  7361. <img
  7362. :src="w.works"
  7363. @click="previewImg(w.works,w)"
  7364. alt
  7365. />
  7366. <div
  7367. class="answerScore"
  7368. v-if="w.score"
  7369. @click.stop="openScore(w)"
  7370. :class="{
  7371. rightW:
  7372. w.userid == userid ||
  7373. tType == 1 ||
  7374. tType == 4 ||
  7375. w.ateacher == userid,
  7376. }"
  7377. >
  7378. {{ JSON.parse(w.score).wScore }}分
  7379. </div>
  7380. <div
  7381. class="answerScore"
  7382. @click.stop="openScore(w)"
  7383. v-else-if="courseDetail.userid == userid"
  7384. :class="{
  7385. rightW:
  7386. w.userid == userid ||
  7387. tType == 1 ||
  7388. tType == 4 ||
  7389. w.ateacher == userid,
  7390. }"
  7391. >
  7392. 评分
  7393. </div>
  7394. <img
  7395. class="deleteImg"
  7396. src="../../assets/deleteworks.png"
  7397. v-if="
  7398. w.userid == userid ||
  7399. tType == 1 ||
  7400. tType == 4
  7401. "
  7402. @click.stop="deleteWorks(w.wid)"
  7403. alt
  7404. />
  7405. </div>
  7406. <div class="workImg" v-if="w.type == 1">
  7407. <img
  7408. :src="word"
  7409. @click="openFile(w.works)"
  7410. alt
  7411. />
  7412. <!-- @click="openFile(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 == 3">
  7454. <img
  7455. style="cursor: pointer"
  7456. :src="video"
  7457. @click="openVideo(w)"
  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="workImg" v-if="w.type == 12">
  7502. <img
  7503. style="cursor: pointer"
  7504. :src="word2"
  7505. @click="downloadFile(w.works,w.userid)"
  7506. alt
  7507. />
  7508. <!-- @click="openVideo(w.works)" -->
  7509. <div
  7510. class="answerScore"
  7511. v-if="w.score"
  7512. @click.stop="openScore(w)"
  7513. :class="{
  7514. rightW:
  7515. w.userid == userid ||
  7516. tType == 1 ||
  7517. tType == 4 ||
  7518. w.ateacher == userid,
  7519. }"
  7520. >
  7521. {{ JSON.parse(w.score).wScore }}分
  7522. </div>
  7523. <div
  7524. class="answerScore"
  7525. @click.stop="openScore(w)"
  7526. v-else-if="courseDetail.userid == userid"
  7527. :class="{
  7528. rightW:
  7529. w.userid == userid ||
  7530. tType == 1 ||
  7531. tType == 4 ||
  7532. w.ateacher == userid,
  7533. }"
  7534. >
  7535. 评分
  7536. </div>
  7537. <img
  7538. class="deleteImg"
  7539. src="../../assets/deleteworks.png"
  7540. v-if="
  7541. w.userid == userid ||
  7542. tType == 1 ||
  7543. tType == 4
  7544. "
  7545. @click.stop="deleteWorks(w.wid)"
  7546. alt
  7547. />
  7548. </div>
  7549. <div class="comment" style="min-width: 200px">
  7550. <div class="worksName">
  7551. <div>{{ w.sName }}</div>
  7552. </div>
  7553. <div class="commentList">
  7554. <div class="commentList">
  7555. <div
  7556. class="commentImg"
  7557. @click="
  7558. isLikes(
  7559. w.wid,
  7560. userid,
  7561. 1,
  7562. null,
  7563. w.isLikes,
  7564. w.sName
  7565. )
  7566. "
  7567. >
  7568. <img
  7569. :src="
  7570. w.isLikes == true ? likes : noLikes
  7571. "
  7572. alt=""
  7573. />
  7574. </div>
  7575. <div>{{ w.likesCount }}</div>
  7576. </div>
  7577. <div
  7578. class="commentList"
  7579. style="margin-right: 15px"
  7580. >
  7581. <div
  7582. class="commentImg"
  7583. @click="
  7584. commentOther(
  7585. w,
  7586. toolIndex,
  7587. wIndex,
  7588. gindex
  7589. )
  7590. "
  7591. >
  7592. <img
  7593. src="../../assets/icon/comment/comment.png"
  7594. alt=""
  7595. />
  7596. </div>
  7597. <div>{{ w.commentCount }}</div>
  7598. </div>
  7599. </div>
  7600. </div>
  7601. </div>
  7602. </div>
  7603. </div>
  7604. </div>
  7605. </div>
  7606. </div>
  7607. </div>
  7608. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7609. 上传文件
  7610. <input
  7611. type="file"
  7612. accept="image/png, image/gif, image/jpeg"
  7613. style="display: none"
  7614. @change="beforeUpload1($event, 2, index)"
  7615. />
  7616. </div>-->
  7617. </div>
  7618. </div>
  7619. <!-- <div
  7620. class="vedioBox"
  7621. style="margin-top: 10px"
  7622. v-if="
  7623. courseDetail.userid == userid ||
  7624. (courseDetail.course_teacher &&
  7625. courseDetail.course_teacher.indexOf(userid) != -1)
  7626. "
  7627. :style="{
  7628. borderRadius:
  7629. !(
  7630. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7631. .toolChoose[0].tool &&
  7632. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7633. .toolChoose[0].tool.length > 0
  7634. ) &&
  7635. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7636. .taskDetail == '' &&
  7637. vChapterData[taskCount].length == 0 &&
  7638. fileC[taskCount].length == 0
  7639. ? '0 0 20px 20px'
  7640. : '20px',
  7641. }"
  7642. >
  7643. <div
  7644. class="queTop"
  7645. @click="isClose = !isClose"
  7646. style="
  7647. padding: 15px 0 15px 37px;
  7648. justify-content: space-between;
  7649. "
  7650. >
  7651. <div class="queTopTitle">新增工具</div>
  7652. <div class="queTopRight">
  7653. <div class="queTopClose" v-if="isClose == 0">
  7654. 展开
  7655. <div class="closeImg">
  7656. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7657. </div>
  7658. </div>
  7659. <div class="queTopClose" v-if="isClose == 1">
  7660. 折叠
  7661. <div class="openImg">
  7662. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7663. </div>
  7664. </div>
  7665. <el-button
  7666. style="margin: 0 30px 0 auto"
  7667. type="primary"
  7668. size="small"
  7669. v-if="isClose == 1 && checktoolArray.length > 0"
  7670. @click.stop="addToolChoose"
  7671. >确定</el-button
  7672. >
  7673. </div>
  7674. </div>
  7675. <div
  7676. class="tool_work_box"
  7677. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7678. >
  7679. <div class="tool_box">
  7680. <div class="tool_type_box">
  7681. <div class="chooseWho">
  7682. <div
  7683. :class="toolType == 0 ? 'isChooseActive' : ''"
  7684. @click="(toolType = 0), $forceUpdate()"
  7685. >
  7686. 互动类
  7687. </div>
  7688. <div
  7689. :class="toolType == 1 ? 'isChooseActive' : ''"
  7690. @click="(toolType = 1), $forceUpdate()"
  7691. >
  7692. 思维类
  7693. </div>
  7694. <div
  7695. :class="toolType == 2 ? 'isChooseActive' : ''"
  7696. @click="(toolType = 2), $forceUpdate()"
  7697. >
  7698. 测评类
  7699. </div>
  7700. <div
  7701. :class="toolType == 3 ? 'isChooseActive' : ''"
  7702. @click="(toolType = 3), $forceUpdate()"
  7703. >
  7704. 编程类
  7705. </div>
  7706. <div
  7707. :class="toolType == 5 ? 'isChooseActive' : ''"
  7708. @click="(toolType = 5), $forceUpdate()"
  7709. >
  7710. 学科类
  7711. </div>
  7712. </div>
  7713. </div>
  7714. <div>
  7715. <div class="toolSort" v-if="toolType == 0">
  7716. <div class="tool">
  7717. <div class="whiteBIcon" @click="addTools2(10)">
  7718. <img
  7719. src="../../assets/icon/thirdToolList/time.png"
  7720. alt
  7721. />
  7722. <div style="margin: 5px 0">倒计时</div>
  7723. </div>
  7724. <div class="check" @click="addTools2(10)">
  7725. <img
  7726. src="../../assets/icon/checkNo.png"
  7727. alt
  7728. v-if="checktoolArray.indexOf(10) == -1"
  7729. />
  7730. <div class="checkDiv" v-else>
  7731. <img src="../../assets/icon/checkedIs.png" alt /><span
  7732. >已选择</span
  7733. >
  7734. </div>
  7735. </div>
  7736. </div>
  7737. <div class="tool">
  7738. <div class="whiteBIcon" @click="addTools2(65)">
  7739. <img
  7740. src="../../assets/icon/firstToolList/pickPeople.png"
  7741. alt
  7742. />
  7743. <div style="margin: 5px 0">挑人</div>
  7744. </div>
  7745. <div class="check" @click="addTools2(65)">
  7746. <img
  7747. src="../../assets/icon/checkNo.png"
  7748. alt
  7749. v-if="checktoolArray.indexOf(65) == -1"
  7750. />
  7751. <div class="checkDiv" v-else>
  7752. <img src="../../assets/icon/checkedIs.png" alt /><span
  7753. >已选择</span
  7754. >
  7755. </div>
  7756. </div>
  7757. </div>
  7758. </div>
  7759. <div class="toolSort" v-if="toolType == 1">
  7760. <div class="tool">
  7761. <div class="whiteBIcon" @click="addTools2(7)">
  7762. <img
  7763. src="../../assets/icon/secondToolList/mindNetwork.png"
  7764. alt
  7765. />
  7766. <div style="margin: 5px 0">思维网格</div>
  7767. </div>
  7768. <div class="check" @click="addTools2(7)">
  7769. <img
  7770. src="../../assets/icon/checkNo.png"
  7771. alt
  7772. v-if="checktoolArray.indexOf(7) == -1"
  7773. />
  7774. <div class="checkDiv" v-else>
  7775. <img src="../../assets/icon/checkedIs.png" alt /><span
  7776. >已选择</span
  7777. >
  7778. </div>
  7779. </div>
  7780. </div>
  7781. <div class="tool">
  7782. <div class="whiteBIcon" @click="addTools2(1)">
  7783. <img
  7784. src="../../assets/icon/secondToolList/whiteBoard.png"
  7785. alt
  7786. />
  7787. <div style="margin: 5px 0">电子白板</div>
  7788. </div>
  7789. <div class="check" @click="addTools2(1)">
  7790. <img
  7791. src="../../assets/icon/checkNo.png"
  7792. alt
  7793. v-if="checktoolArray.indexOf(1) == -1"
  7794. />
  7795. <div class="checkDiv" v-else>
  7796. <img src="../../assets/icon/checkedIs.png" alt /><span
  7797. >已选择</span
  7798. >
  7799. </div>
  7800. </div>
  7801. </div>
  7802. <div class="tool">
  7803. <div class="whiteBIcon" @click="addTools2(52)">
  7804. <img
  7805. src="../../assets/icon/fourthToolList/text.png"
  7806. alt
  7807. />
  7808. <div style="margin: 5px 0">文档</div>
  7809. </div>
  7810. <div class="check" @click="addTools2(52)">
  7811. <img
  7812. src="../../assets/icon/checkNo.png"
  7813. alt
  7814. v-if="checktoolArray.indexOf(52) == -1"
  7815. />
  7816. <div class="checkDiv" v-else>
  7817. <img src="../../assets/icon/checkedIs.png" alt /><span
  7818. >已选择</span
  7819. >
  7820. </div>
  7821. </div>
  7822. </div>
  7823. <div class="tool">
  7824. <div class="whiteBIcon" @click="addTools2(3)">
  7825. <img
  7826. src="../../assets/icon/secondToolList/mindMapping.png"
  7827. alt
  7828. />
  7829. <div style="margin: 5px 0">思维导图</div>
  7830. </div>
  7831. <div class="check" @click="addTools2(3)">
  7832. <img
  7833. src="../../assets/icon/checkNo.png"
  7834. alt
  7835. v-if="checktoolArray.indexOf(3) == -1"
  7836. />
  7837. <div class="checkDiv" v-else>
  7838. <img src="../../assets/icon/checkedIs.png" alt /><span
  7839. >已选择</span
  7840. >
  7841. </div>
  7842. </div>
  7843. </div>
  7844. <div class="tool">
  7845. <div class="whiteBIcon" @click="addTools2(48)">
  7846. <img
  7847. src="../../assets/icon/fourthToolList/table.png"
  7848. alt
  7849. />
  7850. <div style="margin: 5px 0">表格</div>
  7851. </div>
  7852. <div class="check" @click="addTools2(48)">
  7853. <img
  7854. src="../../assets/icon/checkNo.png"
  7855. alt
  7856. v-if="checktoolArray.indexOf(48) == -1"
  7857. />
  7858. <div class="checkDiv" v-else>
  7859. <img src="../../assets/icon/checkedIs.png" alt /><span
  7860. >已选择</span
  7861. >
  7862. </div>
  7863. </div>
  7864. </div>
  7865. </div>
  7866. <div class="toolSort" v-if="toolType == 6">
  7867. <div v-show="tooC == 49">
  7868. <img
  7869. @click="addTools(tooC, toolIndex, taskCount)"
  7870. src="../../assets/icon/fourthToolList/group.png"
  7871. alt
  7872. />
  7873. <div style="margin: 5px 0">学生分组</div>
  7874. </div>
  7875. </div>
  7876. <div class="toolSort" v-if="toolType == 2">
  7877. <div class="tool">
  7878. <div class="whiteBIcon" @click="addTools2(16)">
  7879. <img
  7880. src="../../assets/icon/thirdToolList/work.png"
  7881. alt
  7882. />
  7883. <div style="margin: 5px 0">作业提交</div>
  7884. </div>
  7885. <div class="check" @click="addTools2(16)">
  7886. <img
  7887. src="../../assets/icon/checkNo.png"
  7888. alt
  7889. v-if="checktoolArray.indexOf(16) == -1"
  7890. />
  7891. <div class="checkDiv" v-else>
  7892. <img src="../../assets/icon/checkedIs.png" alt /><span
  7893. >已选择</span
  7894. >
  7895. </div>
  7896. </div>
  7897. </div>
  7898. <div class="tool">
  7899. <div class="whiteBIcon" @click="addTools2(50)">
  7900. <img
  7901. src="../../assets/icon/thirdToolList/plwork.png"
  7902. alt
  7903. />
  7904. <div style="margin: 5px 0">批量上传</div>
  7905. </div>
  7906. <div class="check" @click="addTools2(50)">
  7907. <img
  7908. src="../../assets/icon/checkNo.png"
  7909. alt
  7910. v-if="checktoolArray.indexOf(50) == -1"
  7911. />
  7912. <div class="checkDiv" v-else>
  7913. <img src="../../assets/icon/checkedIs.png" alt /><span
  7914. >已选择</span
  7915. >
  7916. </div>
  7917. </div>
  7918. </div>
  7919. </div>
  7920. <div class="toolSort" v-if="toolType == 3">
  7921. <div class="tool">
  7922. <div class="whiteBIcon" @click="addTools2(18)">
  7923. <img
  7924. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7925. alt
  7926. />
  7927. <div style="margin: 5px 0">训练平台</div>
  7928. </div>
  7929. <div class="check" @click="addTools2(18)">
  7930. <img
  7931. src="../../assets/icon/checkNo.png"
  7932. alt
  7933. v-if="checktoolArray.indexOf(18) == -1"
  7934. />
  7935. <div class="checkDiv" v-else>
  7936. <img src="../../assets/icon/checkedIs.png" alt /><span
  7937. >已选择</span
  7938. >
  7939. </div>
  7940. </div>
  7941. </div>
  7942. <div class="tool">
  7943. <div class="whiteBIcon" @click="addTools2(21)">
  7944. <img
  7945. src="../../assets/icon/fourthToolList/program.png"
  7946. alt
  7947. />
  7948. <div style="margin: 5px 0">AIoT Blockly</div>
  7949. </div>
  7950. <div class="check" @click="addTools2(21)">
  7951. <img
  7952. src="../../assets/icon/checkNo.png"
  7953. alt
  7954. v-if="checktoolArray.indexOf(21) == -1"
  7955. />
  7956. <div class="checkDiv" v-else>
  7957. <img src="../../assets/icon/checkedIs.png" alt /><span
  7958. >已选择</span
  7959. >
  7960. </div>
  7961. </div>
  7962. </div>
  7963. <div class="tool">
  7964. <div class="whiteBIcon" @click="addTools2(23)">
  7965. <img
  7966. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7967. alt
  7968. />
  7969. <div style="margin: 5px 0">AI Python</div>
  7970. </div>
  7971. <div class="check" @click="addTools2(23)">
  7972. <img
  7973. src="../../assets/icon/checkNo.png"
  7974. alt
  7975. v-if="checktoolArray.indexOf(23) == -1"
  7976. />
  7977. <div class="checkDiv" v-else>
  7978. <img src="../../assets/icon/checkedIs.png" alt /><span
  7979. >已选择</span
  7980. >
  7981. </div>
  7982. </div>
  7983. </div>
  7984. <div class="tool">
  7985. <div class="whiteBIcon" @click="addTools2(24)">
  7986. <img
  7987. src="../../assets/icon/fourthToolList/AIprogram.png"
  7988. alt
  7989. />
  7990. <div style="margin: 5px 0">AI Blockly</div>
  7991. </div>
  7992. <div class="check" @click="addTools2(24)">
  7993. <img
  7994. src="../../assets/icon/checkNo.png"
  7995. alt
  7996. v-if="checktoolArray.indexOf(24) == -1"
  7997. />
  7998. <div class="checkDiv" v-else>
  7999. <img src="../../assets/icon/checkedIs.png" alt /><span
  8000. >已选择</span
  8001. >
  8002. </div>
  8003. </div>
  8004. </div>
  8005. <div class="tool">
  8006. <div class="whiteBIcon" @click="addTools2(32)">
  8007. <img
  8008. src="../../assets/icon/thirdToolList/code.png"
  8009. alt
  8010. />
  8011. <div style="margin: 5px 0">源码编辑</div>
  8012. </div>
  8013. <div class="check" @click="addTools2(32)">
  8014. <img
  8015. src="../../assets/icon/checkNo.png"
  8016. alt
  8017. v-if="checktoolArray.indexOf(32) == -1"
  8018. />
  8019. <div class="checkDiv" v-else>
  8020. <img src="../../assets/icon/checkedIs.png" alt /><span
  8021. >已选择</span
  8022. >
  8023. </div>
  8024. </div>
  8025. </div>
  8026. <div class="tool">
  8027. <div class="whiteBIcon" @click="addTools2(57)">
  8028. <img
  8029. src="../../assets/icon/fourthToolList/cocopi.png"
  8030. alt
  8031. />
  8032. <div style="margin: 5px 0">CocoPi</div>
  8033. </div>
  8034. <div class="check" @click="addTools2(57)">
  8035. <img
  8036. src="../../assets/icon/checkNo.png"
  8037. alt
  8038. v-if="checktoolArray.indexOf(57) == -1"
  8039. />
  8040. <div class="checkDiv" v-else>
  8041. <img src="../../assets/icon/checkedIs.png" alt /><span
  8042. >已选择</span
  8043. >
  8044. </div>
  8045. </div>
  8046. </div>
  8047. <div class="tool">
  8048. <div class="whiteBIcon" @click="addTools2(63)">
  8049. <img
  8050. src="../../assets/icon/fourthToolList/Wood.png"
  8051. alt
  8052. />
  8053. <div style="margin: 5px 0">海龟编程</div>
  8054. </div>
  8055. <div class="check" @click="addTools2(63)">
  8056. <img
  8057. src="../../assets/icon/checkNo.png"
  8058. alt
  8059. v-if="checktoolArray.indexOf(63) == -1"
  8060. />
  8061. <div class="checkDiv" v-else>
  8062. <img src="../../assets/icon/checkedIs.png" alt /><span
  8063. >已选择</span
  8064. >
  8065. </div>
  8066. </div>
  8067. </div>
  8068. </div>
  8069. <div class="toolSort" v-if="toolType == 5">
  8070. <div class="tool">
  8071. <div class="whiteBIcon" @click="addTools2(28)">
  8072. <img
  8073. src="../../assets/icon/secondToolList/translation.png"
  8074. alt
  8075. />
  8076. <div style="margin: 5px 0">翻译</div>
  8077. </div>
  8078. <div class="check" @click="addTools2(28)">
  8079. <img
  8080. src="../../assets/icon/checkNo.png"
  8081. alt
  8082. v-if="checktoolArray.indexOf(28) == -1"
  8083. />
  8084. <div class="checkDiv" v-else>
  8085. <img src="../../assets/icon/checkedIs.png" alt /><span
  8086. >已选择</span
  8087. >
  8088. </div>
  8089. </div>
  8090. </div>
  8091. <div class="tool">
  8092. <div class="whiteBIcon" @click="addTools2(31)">
  8093. <img
  8094. src="../../assets/icon/secondToolList/networkPanel.png"
  8095. alt
  8096. />
  8097. <div style="margin: 5px 0">数字画板</div>
  8098. </div>
  8099. <div class="check" @click="addTools2(31)">
  8100. <img
  8101. src="../../assets/icon/checkNo.png"
  8102. alt
  8103. v-if="checktoolArray.indexOf(31) == -1"
  8104. />
  8105. <div class="checkDiv" v-else>
  8106. <img src="../../assets/icon/checkedIs.png" alt /><span
  8107. >已选择</span
  8108. >
  8109. </div>
  8110. </div>
  8111. </div>
  8112. <div class="tool">
  8113. <div class="whiteBIcon" @click="addTools2(39)">
  8114. <img
  8115. src="../../assets/icon/secondToolList/GeoGebra.png"
  8116. alt
  8117. />
  8118. <div style="margin: 5px 0">GeoGebra</div>
  8119. </div>
  8120. <div class="check" @click="addTools2(39)">
  8121. <img
  8122. src="../../assets/icon/checkNo.png"
  8123. alt
  8124. v-if="checktoolArray.indexOf(39) == -1"
  8125. />
  8126. <div class="checkDiv" v-else>
  8127. <img src="../../assets/icon/checkedIs.png" alt /><span
  8128. >已选择</span
  8129. >
  8130. </div>
  8131. </div>
  8132. </div>
  8133. <div class="tool">
  8134. <div class="whiteBIcon" @click="addTools2(66)">
  8135. <img
  8136. src="../../assets/icon/secondToolList/formulaEdi.png"
  8137. alt
  8138. />
  8139. <div style="margin: 5px 0">公式编辑</div>
  8140. </div>
  8141. <div class="check" @click="addTools2(66)">
  8142. <img
  8143. src="../../assets/icon/checkNo.png"
  8144. alt
  8145. v-if="checktoolArray.indexOf(66) == -1"
  8146. />
  8147. <div class="checkDiv" v-else>
  8148. <img src="../../assets/icon/checkedIs.png" alt /><span
  8149. >已选择</span
  8150. >
  8151. </div>
  8152. </div>
  8153. </div>
  8154. <div class="tool">
  8155. <div class="whiteBIcon" @click="addTools2(67)">
  8156. <img
  8157. src="../../assets/icon/secondToolList/molStr.png"
  8158. alt
  8159. />
  8160. <div style="margin: 5px 0">分子结构</div>
  8161. </div>
  8162. <div class="check" @click="addTools2(67)">
  8163. <img
  8164. src="../../assets/icon/checkNo.png"
  8165. alt
  8166. v-if="checktoolArray.indexOf(67) == -1"
  8167. />
  8168. <div class="checkDiv" v-else>
  8169. <img src="../../assets/icon/checkedIs.png" alt /><span
  8170. >已选择</span
  8171. >
  8172. </div>
  8173. </div>
  8174. </div>
  8175. <div class="tool">
  8176. <div class="whiteBIcon" @click="addTools2(68)">
  8177. <img
  8178. src="../../assets/icon/secondToolList/timeAxis.png"
  8179. alt
  8180. />
  8181. <div style="margin: 5px 0">时间轴</div>
  8182. </div>
  8183. <div class="check" @click="addTools2(68)">
  8184. <img
  8185. src="../../assets/icon/checkNo.png"
  8186. alt
  8187. v-if="checktoolArray.indexOf(68) == -1"
  8188. />
  8189. <div class="checkDiv" v-else>
  8190. <img src="../../assets/icon/checkedIs.png" alt /><span
  8191. >已选择</span
  8192. >
  8193. </div>
  8194. </div>
  8195. </div>
  8196. </div>
  8197. <div class="toolSort" v-if="toolType == 7">
  8198. <div class="tool">
  8199. <div class="whiteBIcon" @click="addTools2(40)">
  8200. <img
  8201. src="../../assets/icon/secondToolList/eval.png"
  8202. alt
  8203. />
  8204. <div style="margin: 5px 0">个人评价</div>
  8205. </div>
  8206. <div class="check" @click="addTools2(40)">
  8207. <img
  8208. src="../../assets/icon/checkNo.png"
  8209. alt
  8210. v-if="checktoolArray.indexOf(40) == -1"
  8211. />
  8212. <div class="checkDiv" v-else>
  8213. <img src="../../assets/icon/checkedIs.png" alt /><span
  8214. >已选择</span
  8215. >
  8216. </div>
  8217. </div>
  8218. </div>
  8219. </div>
  8220. <div class="toolSort" v-if="toolType == 4">
  8221. <div class="tool">
  8222. <div class="whiteBIcon" @click="addTools2(26)">
  8223. <img
  8224. src="../../assets/icon/thirdToolList/courseDesign.png"
  8225. alt
  8226. />
  8227. <div style="margin: 5px 0">课程设计</div>
  8228. </div>
  8229. <div class="check" @click="addTools2(26)">
  8230. <img
  8231. src="../../assets/icon/checkNo.png"
  8232. alt
  8233. v-if="checktoolArray.indexOf(26) == -1"
  8234. />
  8235. <div class="checkDiv" v-else>
  8236. <img src="../../assets/icon/checkedIs.png" alt /><span
  8237. >已选择</span
  8238. >
  8239. </div>
  8240. </div>
  8241. </div>
  8242. <div class="tool">
  8243. <div class="whiteBIcon" @click="addTools2(25)">
  8244. <img
  8245. src="../../assets/icon/thirdToolList/evalua.png"
  8246. alt
  8247. />
  8248. <div style="margin: 5px 0">目标管理</div>
  8249. </div>
  8250. <div class="check" @click="addTools2(25)">
  8251. <img
  8252. src="../../assets/icon/checkNo.png"
  8253. alt
  8254. v-if="checktoolArray.indexOf(25) == -1"
  8255. />
  8256. <div class="checkDiv" v-else>
  8257. <img src="../../assets/icon/checkedIs.png" alt /><span
  8258. >已选择</span
  8259. >
  8260. </div>
  8261. </div>
  8262. </div>
  8263. </div>
  8264. </div>
  8265. </div>
  8266. </div>
  8267. </div> -->
  8268. <div
  8269. class="vedioBox"
  8270. style="margin-top: 10px; border-radius: 20px"
  8271. v-if="
  8272. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8273. .eList &&
  8274. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8275. .eList.length &&
  8276. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8277. .eList.length > 0 &&
  8278. tType != 2
  8279. "
  8280. >
  8281. <div
  8282. class="queTop"
  8283. style="
  8284. font-size: 20px;
  8285. padding: 15px 0 15px 37px;
  8286. font-weight: bold;
  8287. "
  8288. >
  8289. <!-- <div class="question" style="width: 30px">
  8290. <img src="../assets/icon/toolIcon.png" alt />
  8291. </div>
  8292. <div class="queTitle">
  8293. <div>工具</div>
  8294. </div>-->
  8295. 评一评
  8296. </div>
  8297. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8298. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  8299. <el-table
  8300. :data="
  8301. chapInfoList[courseType].chapterInfo[0].taskJson[
  8302. taskCount
  8303. ].eList
  8304. "
  8305. :header-cell-style="{ background: '#F0F4FA' }"
  8306. :row-class-name="tableRowClassName"
  8307. border
  8308. stripe
  8309. style="width: 100%"
  8310. >
  8311. <el-table-column
  8312. label="评价名称"
  8313. align="center"
  8314. >
  8315. <template slot-scope="scope"
  8316. ><div>{{ scope.row.value }}</div></template
  8317. >
  8318. </el-table-column>
  8319. <el-table-column
  8320. label="评价描述"
  8321. align="center"
  8322. >
  8323. <template slot-scope="scope"
  8324. ><div>
  8325. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  8326. </div></template
  8327. >
  8328. </el-table-column>
  8329. <el-table-column label="目标" align="center">
  8330. <template slot-scope="scope"
  8331. ><div>
  8332. {{
  8333. scope.row.target
  8334. ? scope.row.target[scope.row.target.length - 1]
  8335. : "-"
  8336. }}
  8337. </div></template
  8338. ></el-table-column
  8339. >
  8340. </el-table>
  8341. <!-- <div
  8342. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8343. .chapterInfo[0].taskJson[taskCount].eList"
  8344. :key="eIndex"
  8345. class="elist_input_box"
  8346. >
  8347. <div style="width: 95%">
  8348. <div
  8349. style="
  8350. display: flex;
  8351. flex-direction: row;
  8352. flex-wrap: nowrap;
  8353. align-items: center;
  8354. "
  8355. >
  8356. <div style="max-width: calc(100% - 285px)">
  8357. <span>{{ eItem.value }}</span>
  8358. </div>
  8359. <div
  8360. style="
  8361. padding-left: 25px;
  8362. display: flex;
  8363. flex-direction: row;
  8364. align-items: center;
  8365. "
  8366. >
  8367. <el-rate
  8368. v-model="eItem.score"
  8369. :colors="colors"
  8370. disabled
  8371. ></el-rate>
  8372. </div>
  8373. </div>
  8374. <div class="elist_inptu_text" style="padding-left: 10px">
  8375. <span v-if="eItem.detail != ''">{{
  8376. eItem.detail
  8377. }}</span>
  8378. <span v-else style="color: #b2b1b3; font-size: 14px"
  8379. >暂无描述...</span
  8380. >
  8381. </div>
  8382. </div>
  8383. </div> -->
  8384. </div>
  8385. <div
  8386. v-if="evalua"
  8387. style="
  8388. border: 1px solid #e5e5e5;
  8389. max-width: 650px;
  8390. width: 100%;
  8391. margin-top: 20px;
  8392. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8393. "
  8394. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8395. >
  8396. <div class="e_add_top">
  8397. <div class="e_add_title" style="width: 100%">
  8398. <!-- <span>目标管理名称</span> -->
  8399. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8400. <img
  8401. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8402. src="../../assets/line.png"
  8403. class="cru_line"
  8404. style="
  8405. width: 125px;
  8406. height: 20px;
  8407. bottom: -10px;
  8408. left: 5px;
  8409. "
  8410. />
  8411. <!-- <el-input
  8412. v-model="eTitle"
  8413. placeholder="请输入名称"
  8414. @change="setMindData"
  8415. ></el-input>-->
  8416. <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>
  8417. <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>
  8418. </div>
  8419. </div>
  8420. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8421. <div class="e_add_list_pbox">
  8422. <div class="e_add_list_pbox_title">
  8423. <!-- <span class="type_title">切换模式</span> -->
  8424. <div class="type_content">
  8425. <span
  8426. :class="{ active: typeMode == 1 }"
  8427. @click="typeMode = 1"
  8428. >目标树</span
  8429. >
  8430. <span
  8431. :class="{ active: typeMode == 2 }"
  8432. @click="typeMode = 2"
  8433. >目标罗盘</span
  8434. >
  8435. <!-- <span
  8436. :class="{ active: typeMode == 3 }"
  8437. @click="typeMode = 3"
  8438. >目标看板</span
  8439. > -->
  8440. </div>
  8441. </div>
  8442. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8443. <Mind
  8444. :showBar="false"
  8445. :mindData="data"
  8446. style="width: 100%"
  8447. v-show="typeMode == 1"
  8448. ></Mind>
  8449. <Sunburst
  8450. :Josn="eJson"
  8451. :num="eJSONNum"
  8452. style="width: 100%"
  8453. v-if="typeMode == 2"
  8454. ></Sunburst>
  8455. <SeeBoard
  8456. :Josn="eJson"
  8457. :num="eJSONNum"
  8458. :ename="eTitle"
  8459. style="width: 100%"
  8460. v-if="typeMode == 3"
  8461. >
  8462. </SeeBoard>
  8463. </div>
  8464. </div>
  8465. </div>
  8466. </div>
  8467. </div>
  8468. </div>
  8469. <!-- <div
  8470. class="project_box"
  8471. style="margin-top: 15px; padding-bottom: 30px"
  8472. >
  8473. <div
  8474. style="
  8475. display: flex;
  8476. flex-wrap: nowrap;
  8477. flex-direction: column;
  8478. position: relative;
  8479. "
  8480. >
  8481. <div class="queTop">
  8482. <div class="question">
  8483. <img src="../../assets/icon/homeWork.png" alt="" />
  8484. </div>
  8485. <div class="queTitle">
  8486. <div>作业提交<span>(提交图文视频等)</span></div>
  8487. <div>:任务:{{ task.task }}</div>
  8488. </div>
  8489. </div>
  8490. <div class="ediBottom">
  8491. <div
  8492. class="addEditor"
  8493. style="margin-top: 23px"
  8494. @click="openAddWork"
  8495. v-if="!isNoHomeWork"
  8496. >
  8497. 选择文件
  8498. </div>
  8499. <div
  8500. class="addEditor"
  8501. style="margin-top: 23px"
  8502. @click="openAddWork"
  8503. v-else
  8504. >
  8505. 已提交
  8506. </div>
  8507. </div>
  8508. </div>
  8509. </div>-->
  8510. </div>
  8511. </div>
  8512. <el-dialog
  8513. title="作业提交"
  8514. :visible.sync="dialogVisible"
  8515. :append-to-body="true"
  8516. width="500px"
  8517. :before-close="handleClose"
  8518. class="dialog_change"
  8519. >
  8520. <div class="marginT">
  8521. <div>上传文件</div>
  8522. <div style="display: flex; gap: 10px">
  8523. <div
  8524. class="chapter_add"
  8525. @click="addImg($event)"
  8526. v-if="studyJuri[0].cover.length == 0"
  8527. >
  8528. <div class="up_photo">
  8529. <img src="../../assets/icon/uploadImg.png" alt />
  8530. </div>
  8531. <!-- <input
  8532. type="file"
  8533. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8534. style="display: none"
  8535. @change="beforeUpload1($event, 1)"
  8536. /> -->
  8537. <input
  8538. type="file"
  8539. accept="*"
  8540. style="display: none"
  8541. @change="beforeUpload1($event, 1)"
  8542. />
  8543. <!-- <input
  8544. type="file"
  8545. accept="image/*"
  8546. capture="camera"
  8547. style="display: none"
  8548. @change="beforeUpload1($event, 1)"
  8549. /> -->
  8550. </div>
  8551. <div
  8552. class="chapter_add"
  8553. @click="addImg($event)"
  8554. v-if="studyJuri[0].cover.length == 0"
  8555. >
  8556. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  8557. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  8558. </div>
  8559. <input
  8560. type="file"
  8561. accept="image/*"
  8562. capture="camera"
  8563. style="display: none"
  8564. @change="beforeUpload1($event, 1)"
  8565. />
  8566. </div>
  8567. </div>
  8568. <div
  8569. class="chapter_add"
  8570. style="
  8571. display: flex;
  8572. width: 100%;
  8573. flex-direction: row;
  8574. flex-wrap: wrap;
  8575. justify-content: flex-start;
  8576. padding: 15px 0;
  8577. "
  8578. v-if="studyJuri[0].cover.length > 0"
  8579. >
  8580. <div class="upCover">
  8581. <img
  8582. :src="studyJuri[0].cover[0].url"
  8583. alt
  8584. v-if="fileType == 0"
  8585. />
  8586. <img :src="word" alt v-else-if="fileType == 1" />
  8587. <img :src="video" alt v-else-if="fileType == 2" />
  8588. <img :src="word2" alt v-else-if="fileType == 3" />
  8589. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8590. <div class="deleteWord" @click="clean(1)">
  8591. <img src="../../assets/icon/deleteWorks.png" alt />
  8592. </div>
  8593. </div>
  8594. </div>
  8595. </div>
  8596. <div
  8597. class="upload_send"
  8598. @click="addCourseWorks(taskCount)"
  8599. v-if="!proVisible"
  8600. >
  8601. 提交
  8602. </div>
  8603. </el-dialog>
  8604. </div>
  8605. </div>
  8606. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8607. <classRoomHelper v-if="!['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8608. '/courseDetail?userid=' +
  8609. userid +
  8610. '&oid=' +
  8611. oid +
  8612. '&org=' +
  8613. org +
  8614. '&cid=' +
  8615. classId +
  8616. '&courseId=' +
  8617. id +
  8618. '&tType=' +
  8619. tType +
  8620. '&screenType=' +
  8621. screenType+
  8622. '&role=' +
  8623. role
  8624. )"></classRoomHelper>
  8625. <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(
  8626. '/courseDetail?userid=' +
  8627. userid +
  8628. '&oid=' +
  8629. oid +
  8630. '&org=' +
  8631. org +
  8632. '&cid=' +
  8633. classId +
  8634. '&courseId=' +
  8635. id +
  8636. '&tType=' +
  8637. tType +
  8638. '&screenType=' +
  8639. screenType+
  8640. '&role=' +
  8641. role
  8642. )"></studentClassRoomHelper>
  8643. <div
  8644. class="pButton"
  8645. @click="(pzDialog = true), selectPz()"
  8646. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8647. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8648. >
  8649. <!-- 批 -->
  8650. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8651. </div>
  8652. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8653. <div class="pzTop2">
  8654. <!-- <div>评论</div>
  8655. <div @click="pzDialog = false">
  8656. <img src="../../assets/close1.png" alt="" />
  8657. </div> -->
  8658. <div class="checkbox">
  8659. <!-- <div class="check" style="font-size: 25px; position: unset">
  8660. 评论
  8661. </div> -->
  8662. <div class="cb-tabList">
  8663. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8664. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8665. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8666. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8667. </div>
  8668. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8669. <el-option label="时间降序" :value="1"></el-option>
  8670. <el-option label="时间升序" :value="2"></el-option>
  8671. <el-option label="我的评课" :value="3"></el-option>
  8672. </el-select>
  8673. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8674. </div>
  8675. </div>
  8676. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8677. <div class="pzListBox" v-if="pzList && pzList.length">
  8678. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8679. <div class="pzNavTop">
  8680. <div>评</div>
  8681. <div>
  8682. {{
  8683. pz.username && pz.username.length > 5
  8684. ? pz.username.substring(0, 5) + "..."
  8685. : pz.username
  8686. }}的评论
  8687. </div>
  8688. <div
  8689. class="pzDelete"
  8690. v-if="pz.userid == userid"
  8691. @click="deletePz(pz.id)"
  8692. >
  8693. 删除
  8694. </div>
  8695. </div>
  8696. <div
  8697. @click="checkImg(getImgList(pz.content))"
  8698. class="pzContent cont"
  8699. v-html="pz.content"
  8700. v-if="pz.type == '1'"
  8701. ></div>
  8702. <div class="pzContent" v-if="pz.type == '2'">
  8703. <audio :src="pz.content" controls="controls" ref="audio">
  8704. Your browser does not support the audio element.
  8705. </audio>
  8706. </div>
  8707. <div class="pzContent" v-if="pz.type == '3'">
  8708. <img
  8709. :src="pz.content"
  8710. style="width: 90%; margin: 0 auto; display: block"
  8711. @click="previewImg(pz.content)"
  8712. />
  8713. </div>
  8714. <div class="timeAndReply">
  8715. <div class="time">
  8716. {{ pz.time }}
  8717. </div>
  8718. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8719. </div>
  8720. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8721. <div
  8722. v-for="(h, hIndex) in pz.hfList"
  8723. :key="hIndex"
  8724. class="hfItem"
  8725. >
  8726. <div class="whoReplyWho">
  8727. <div class="hfName">{{ h.username }}</div>
  8728. <div class="hfImg">
  8729. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8730. </div>
  8731. <div class="hfName">{{ pz.username }}</div>
  8732. </div>
  8733. <div class="hfContent" v-html="h.content"></div>
  8734. <div class="hfBottom">
  8735. <div class="hfTime">{{ h.time }}</div>
  8736. <div
  8737. class="deleteHfItem"
  8738. @click="deleteReply(h.id)"
  8739. v-if="userid == h.userid"
  8740. >
  8741. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8742. </div>
  8743. </div>
  8744. </div>
  8745. </div>
  8746. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8747. <div class="replyInput">
  8748. <el-input v-model="reply[pzIndex]"></el-input>
  8749. </div>
  8750. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8751. </div> -->
  8752. </div>
  8753. </div>
  8754. <div class="noPz" v-else>
  8755. <img src="../../assets/icon/noPz.png" alt="" />
  8756. </div>
  8757. <div class="addPzButton">
  8758. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8759. 添加评论
  8760. </div>
  8761. <!-- <div class="img1">
  8762. <div @click="(addPzDialog = true), (pzType = 2)">
  8763. <img src="../../assets/audio.png" /><span>音频</span>
  8764. </div>
  8765. </div> -->
  8766. </div>
  8767. </div>
  8768. <div class="scoreList" v-if="commentTagShow==1">
  8769. <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"/>
  8770. </div>
  8771. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8772. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8773. </div>
  8774. </div>
  8775. <div
  8776. v-if="toolDialogVisible == true"
  8777. class="toolMask"
  8778. @click="toolDialogVisible = false"
  8779. ></div>
  8780. <div v-if="toolDialogVisible == true" class="addToolCss">
  8781. <div class="toolTop">
  8782. <div style="font-weight: bold">新增工具</div>
  8783. <div @click="toolDialogVisible = false">
  8784. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8785. </div>
  8786. </div>
  8787. <div class="tool_box">
  8788. <div class="tool_type_box">
  8789. <div class="chooseWho">
  8790. <div
  8791. :class="toolType == 0 ? 'isChooseActive' : ''"
  8792. @click="(toolType = 0), $forceUpdate()"
  8793. >
  8794. 互动类
  8795. </div>
  8796. <div
  8797. :class="toolType == 1 ? 'isChooseActive' : ''"
  8798. @click="(toolType = 1), $forceUpdate()"
  8799. >
  8800. 思维类
  8801. </div>
  8802. <div
  8803. :class="toolType == 2 ? 'isChooseActive' : ''"
  8804. @click="(toolType = 2), $forceUpdate()"
  8805. >
  8806. 测评类
  8807. </div>
  8808. <div
  8809. :class="toolType == 3 ? 'isChooseActive' : ''"
  8810. @click="(toolType = 3), $forceUpdate()"
  8811. >
  8812. 编程类
  8813. </div>
  8814. <div
  8815. :class="toolType == 5 ? 'isChooseActive' : ''"
  8816. @click="(toolType = 5), $forceUpdate()"
  8817. >
  8818. 学科类
  8819. </div>
  8820. </div>
  8821. </div>
  8822. <div>
  8823. <div class="toolSort" v-if="toolType == 0">
  8824. <div
  8825. class="tool"
  8826. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8827. @click="addTools2(10)"
  8828. >
  8829. <div class="whiteBIcon">
  8830. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8831. <div style="margin: 5px 0">倒计时</div>
  8832. </div>
  8833. <div class="check">
  8834. <div
  8835. v-if="checktoolArray.indexOf(10) == -1"
  8836. class="noChoose"
  8837. ></div>
  8838. <div v-else class="isChoose"></div>
  8839. </div>
  8840. </div>
  8841. <div
  8842. class="tool"
  8843. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8844. @click="addTools2(65)"
  8845. >
  8846. <div class="whiteBIcon">
  8847. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8848. <div style="margin: 5px 0">挑人</div>
  8849. </div>
  8850. <div class="check">
  8851. <div
  8852. v-if="checktoolArray.indexOf(65) == -1"
  8853. class="noChoose"
  8854. ></div>
  8855. <div v-else class="isChoose"></div>
  8856. </div>
  8857. </div>
  8858. </div>
  8859. <div class="toolSort" v-if="toolType == 1">
  8860. <div
  8861. class="tool"
  8862. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8863. @click="addTools2(7)"
  8864. >
  8865. <div class="whiteBIcon">
  8866. <img
  8867. src="../../assets/icon/secondToolList/mindNetwork.png"
  8868. alt
  8869. />
  8870. <div style="margin: 5px 0">思维网格</div>
  8871. </div>
  8872. <div class="check">
  8873. <div
  8874. v-if="checktoolArray.indexOf(7) == -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(1) != -1 }"
  8883. @click="addTools2(1)"
  8884. >
  8885. <div class="whiteBIcon">
  8886. <img
  8887. src="../../assets/icon/secondToolList/whiteBoard.png"
  8888. alt
  8889. />
  8890. <div style="margin: 5px 0">电子白板</div>
  8891. </div>
  8892. <div class="check">
  8893. <div
  8894. v-if="checktoolArray.indexOf(1) == -1"
  8895. class="noChoose"
  8896. ></div>
  8897. <div v-else class="isChoose"></div>
  8898. </div>
  8899. </div>
  8900. <div
  8901. class="tool"
  8902. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8903. @click="addTools2(52)"
  8904. >
  8905. <div class="whiteBIcon">
  8906. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8907. <div style="margin: 5px 0">文档</div>
  8908. </div>
  8909. <div class="check">
  8910. <div
  8911. v-if="checktoolArray.indexOf(52) == -1"
  8912. class="noChoose"
  8913. ></div>
  8914. <div v-else class="isChoose"></div>
  8915. </div>
  8916. </div>
  8917. <div
  8918. class="tool"
  8919. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8920. @click="addTools2(3)"
  8921. >
  8922. <div class="whiteBIcon">
  8923. <img
  8924. src="../../assets/icon/secondToolList/mindMapping.png"
  8925. alt
  8926. />
  8927. <div style="margin: 5px 0">思维导图</div>
  8928. </div>
  8929. <div class="check">
  8930. <div
  8931. v-if="checktoolArray.indexOf(3) == -1"
  8932. class="noChoose"
  8933. ></div>
  8934. <div v-else class="isChoose"></div>
  8935. </div>
  8936. </div>
  8937. <div
  8938. class="tool"
  8939. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8940. @click="addTools2(48)"
  8941. >
  8942. <div class="whiteBIcon">
  8943. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8944. <div style="margin: 5px 0">表格</div>
  8945. </div>
  8946. <div class="check">
  8947. <div
  8948. v-if="checktoolArray.indexOf(48) == -1"
  8949. class="noChoose"
  8950. ></div>
  8951. <div v-else class="isChoose"></div>
  8952. </div>
  8953. </div>
  8954. </div>
  8955. <div class="toolSort" v-if="toolType == 6">
  8956. <div v-show="tooC == 49">
  8957. <img
  8958. @click="addTools(tooC, toolIndex, taskCount)"
  8959. src="../../assets/icon/fourthToolList/group.png"
  8960. alt
  8961. />
  8962. <div style="margin: 5px 0">学生分组</div>
  8963. </div>
  8964. </div>
  8965. <div class="toolSort" v-if="toolType == 2">
  8966. <div
  8967. class="tool"
  8968. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8969. @click="addTools2(16)"
  8970. >
  8971. <div class="whiteBIcon">
  8972. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8973. <div style="margin: 5px 0">作业提交</div>
  8974. </div>
  8975. <div class="check">
  8976. <div
  8977. v-if="checktoolArray.indexOf(16) == -1"
  8978. class="noChoose"
  8979. ></div>
  8980. <div v-else class="isChoose"></div>
  8981. </div>
  8982. </div>
  8983. <div
  8984. class="tool"
  8985. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8986. @click="addTools2(50)"
  8987. >
  8988. <div class="whiteBIcon">
  8989. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8990. <div style="margin: 5px 0">批量上传</div>
  8991. </div>
  8992. <div class="check">
  8993. <div
  8994. v-if="checktoolArray.indexOf(50) == -1"
  8995. class="noChoose"
  8996. ></div>
  8997. <div v-else class="isChoose"></div>
  8998. </div>
  8999. </div>
  9000. </div>
  9001. <div class="toolSort" v-if="toolType == 3">
  9002. <div
  9003. class="tool"
  9004. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  9005. @click="addTools2(18)"
  9006. >
  9007. <div class="whiteBIcon">
  9008. <img
  9009. src="../../assets/icon/thirdToolList/trainPlatform.png"
  9010. alt
  9011. />
  9012. <div style="margin: 5px 0">训练平台</div>
  9013. </div>
  9014. <div class="check">
  9015. <div
  9016. v-if="checktoolArray.indexOf(18) == -1"
  9017. class="noChoose"
  9018. ></div>
  9019. <div v-else class="isChoose"></div>
  9020. </div>
  9021. </div>
  9022. <div
  9023. class="tool"
  9024. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  9025. @click="addTools2(21)"
  9026. >
  9027. <div class="whiteBIcon">
  9028. <img src="../../assets/icon/fourthToolList/program.png" alt />
  9029. <div style="margin: 5px 0">AIoT Blockly</div>
  9030. </div>
  9031. <div class="check">
  9032. <div
  9033. v-if="checktoolArray.indexOf(21) == -1"
  9034. class="noChoose"
  9035. ></div>
  9036. <div v-else class="isChoose"></div>
  9037. </div>
  9038. </div>
  9039. <div
  9040. class="tool"
  9041. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  9042. @click="addTools2(23)"
  9043. >
  9044. <div class="whiteBIcon">
  9045. <img
  9046. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  9047. alt
  9048. />
  9049. <div style="margin: 5px 0">AI Python</div>
  9050. </div>
  9051. <div class="check">
  9052. <div
  9053. v-if="checktoolArray.indexOf(23) == -1"
  9054. class="noChoose"
  9055. ></div>
  9056. <div v-else class="isChoose"></div>
  9057. </div>
  9058. </div>
  9059. <div
  9060. class="tool"
  9061. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  9062. @click="addTools2(24)"
  9063. >
  9064. <div class="whiteBIcon">
  9065. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  9066. <div style="margin: 5px 0">AI Blockly</div>
  9067. </div>
  9068. <div class="check">
  9069. <div
  9070. v-if="checktoolArray.indexOf(24) == -1"
  9071. class="noChoose"
  9072. ></div>
  9073. <div v-else class="isChoose"></div>
  9074. </div>
  9075. </div>
  9076. <div
  9077. class="tool"
  9078. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  9079. @click="addTools2(32)"
  9080. >
  9081. <div class="whiteBIcon">
  9082. <img src="../../assets/icon/thirdToolList/code.png" alt />
  9083. <div style="margin: 5px 0">源码编辑</div>
  9084. </div>
  9085. <div class="check">
  9086. <div
  9087. v-if="checktoolArray.indexOf(32) == -1"
  9088. class="noChoose"
  9089. ></div>
  9090. <div v-else class="isChoose"></div>
  9091. </div>
  9092. </div>
  9093. <div
  9094. class="tool"
  9095. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  9096. @click="addTools2(57)"
  9097. >
  9098. <div class="whiteBIcon">
  9099. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  9100. <div style="margin: 5px 0">CocoPi</div>
  9101. </div>
  9102. <div class="check">
  9103. <div
  9104. v-if="checktoolArray.indexOf(57) == -1"
  9105. class="noChoose"
  9106. ></div>
  9107. <div v-else class="isChoose"></div>
  9108. </div>
  9109. </div>
  9110. <div
  9111. class="tool"
  9112. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  9113. @click="addTools2(63)"
  9114. >
  9115. <div class="whiteBIcon">
  9116. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  9117. <div style="margin: 5px 0">海龟编程</div>
  9118. </div>
  9119. <div class="check">
  9120. <div
  9121. v-if="checktoolArray.indexOf(63) == -1"
  9122. class="noChoose"
  9123. ></div>
  9124. <div v-else class="isChoose"></div>
  9125. </div>
  9126. </div>
  9127. <div
  9128. class="tool"
  9129. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  9130. @click="addTools2(71)"
  9131. >
  9132. <div class="whiteBIcon">
  9133. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  9134. <div style="margin: 5px 0">AI智能体</div>
  9135. </div>
  9136. <div class="check">
  9137. <div
  9138. v-if="checktoolArray.indexOf(71) == -1"
  9139. class="noChoose"
  9140. ></div>
  9141. <div v-else class="isChoose"></div>
  9142. </div>
  9143. </div>
  9144. </div>
  9145. <div class="toolSort" v-if="toolType == 7">
  9146. <div
  9147. class="tool"
  9148. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  9149. @click="addTools2(40)"
  9150. >
  9151. <div class="whiteBIcon">
  9152. <img src="../../assets/icon/secondToolList/eval.png" alt />
  9153. <div style="margin: 5px 0">个人评价</div>
  9154. </div>
  9155. <div class="check">
  9156. <div
  9157. v-if="checktoolArray.indexOf(40) == -1"
  9158. class="noChoose"
  9159. ></div>
  9160. <div v-else class="isChoose"></div>
  9161. </div>
  9162. </div>
  9163. </div>
  9164. <div class="toolSort" v-if="toolType == 5">
  9165. <div
  9166. class="tool"
  9167. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9168. @click="addTools2(28)"
  9169. >
  9170. <div class="whiteBIcon">
  9171. <img
  9172. src="../../assets/icon/secondToolList/translation.png"
  9173. alt
  9174. />
  9175. <div style="margin: 5px 0">翻译</div>
  9176. </div>
  9177. <div class="check">
  9178. <div
  9179. v-if="checktoolArray.indexOf(28) == -1"
  9180. class="noChoose"
  9181. ></div>
  9182. <div v-else class="isChoose"></div>
  9183. </div>
  9184. </div>
  9185. <div
  9186. class="tool"
  9187. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9188. @click="addTools2(31)"
  9189. >
  9190. <div class="whiteBIcon">
  9191. <img
  9192. src="../../assets/icon/secondToolList/networkPanel.png"
  9193. alt
  9194. />
  9195. <div style="margin: 5px 0">数字画板</div>
  9196. </div>
  9197. <div class="check">
  9198. <div
  9199. v-if="checktoolArray.indexOf(31) == -1"
  9200. class="noChoose"
  9201. ></div>
  9202. <div v-else class="isChoose"></div>
  9203. </div>
  9204. </div>
  9205. <div
  9206. class="tool"
  9207. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9208. @click="addTools2(39)"
  9209. >
  9210. <div class="whiteBIcon">
  9211. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  9212. <div style="margin: 5px 0">GeoGebra</div>
  9213. </div>
  9214. <div class="check">
  9215. <div
  9216. v-if="checktoolArray.indexOf(39) == -1"
  9217. class="noChoose"
  9218. ></div>
  9219. <div v-else class="isChoose"></div>
  9220. </div>
  9221. </div>
  9222. <div
  9223. class="tool"
  9224. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9225. @click="addTools2(66)"
  9226. >
  9227. <div class="whiteBIcon">
  9228. <img
  9229. src="../../assets/icon/secondToolList/formulaEdi.png"
  9230. alt
  9231. />
  9232. <div style="margin: 5px 0">公式编辑</div>
  9233. </div>
  9234. <div class="check">
  9235. <div
  9236. v-if="checktoolArray.indexOf(66) == -1"
  9237. class="noChoose"
  9238. ></div>
  9239. <div v-else class="isChoose"></div>
  9240. </div>
  9241. </div>
  9242. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9243. <div class="whiteBIcon" @click="addTools2(67)">
  9244. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  9245. <div style="margin: 5px 0">分子结构</div>
  9246. </div>
  9247. <div class="check" @click="addTools2(67)">
  9248. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9249. <div v-else class="isChoose"></div>
  9250. </div>
  9251. </div> -->
  9252. <div
  9253. class="tool"
  9254. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9255. @click="addTools2(68)"
  9256. >
  9257. <div class="whiteBIcon">
  9258. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  9259. <div style="margin: 5px 0">时间轴</div>
  9260. </div>
  9261. <div class="check">
  9262. <div
  9263. v-if="checktoolArray.indexOf(68) == -1"
  9264. class="noChoose"
  9265. ></div>
  9266. <div v-else class="isChoose"></div>
  9267. </div>
  9268. </div>
  9269. <!-- <div
  9270. class="tool"
  9271. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9272. @click="addTools2(69)"
  9273. >
  9274. <div class="whiteBIcon">
  9275. <img src="../../assets/icon/secondToolList/english.png" alt />
  9276. <div style="margin: 5px 0">英语写作</div>
  9277. </div>
  9278. <div class="check">
  9279. <div
  9280. v-if="checktoolArray.indexOf(69) == -1"
  9281. class="noChoose"
  9282. ></div>
  9283. <div v-else class="isChoose"></div>
  9284. </div>
  9285. </div> -->
  9286. </div>
  9287. <div class="toolSort" v-if="toolType == 4">
  9288. <div
  9289. class="tool"
  9290. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9291. @click="addTools2(26)"
  9292. >
  9293. <div class="whiteBIcon">
  9294. <img
  9295. src="../../assets/icon/thirdToolList/courseDesign.png"
  9296. alt
  9297. />
  9298. <div style="margin: 5px 0">课程设计</div>
  9299. </div>
  9300. <div class="check">
  9301. <div
  9302. v-if="checktoolArray.indexOf(26) == -1"
  9303. class="noChoose"
  9304. ></div>
  9305. <div v-else class="isChoose"></div>
  9306. </div>
  9307. </div>
  9308. <div
  9309. class="tool"
  9310. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9311. @click="addTools2(25)"
  9312. >
  9313. <div class="whiteBIcon">
  9314. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  9315. <div style="margin: 5px 0">目标管理</div>
  9316. </div>
  9317. <div class="check">
  9318. <div
  9319. v-if="checktoolArray.indexOf(25) == -1"
  9320. class="noChoose"
  9321. ></div>
  9322. <div v-else class="isChoose"></div>
  9323. </div>
  9324. </div>
  9325. </div>
  9326. </div>
  9327. </div>
  9328. <span
  9329. slot="footer"
  9330. class="dialog-footer"
  9331. style="display: block; text-align: center; padding: 0 0 10px 0"
  9332. >
  9333. <el-button @click="toolDialogVisible = false">取 消</el-button>
  9334. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  9335. </span>
  9336. </div>
  9337. <div
  9338. v-if="replyDialogVisible == true"
  9339. class="addDialogCss"
  9340. v-el-drag-dialog
  9341. >
  9342. <div class="pzTop">
  9343. <div class="teacherPz">
  9344. <div class="teacherPzImg">
  9345. <img src="../../assets/icon/teacherPz.png" alt="" />
  9346. </div>
  9347. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9348. </div>
  9349. <div @click="replyDialogVisible = false">
  9350. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9351. </div>
  9352. </div>
  9353. <div class="addPzBox">
  9354. <!-- <div class="addPzCheck">
  9355. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9356. >文本</span
  9357. >
  9358. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9359. >音频</span
  9360. >
  9361. </div> -->
  9362. <div style="height: calc(100% - 50px)">
  9363. <editor-bar
  9364. class="binfo_input pzConText"
  9365. style="width: 100% !important; margin: 0 auto"
  9366. placeholder="请输入回复描述"
  9367. v-model="reply"
  9368. @change="change"
  9369. ></editor-bar>
  9370. </div>
  9371. <div class="addTextCss" @click="addHf">确定</div>
  9372. </div>
  9373. </div>
  9374. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9375. <div class="pzTop">
  9376. <div class="teacherPz">
  9377. <div class="teacherPzImg">
  9378. <img src="../../assets/icon/teacherPz.png" alt="" />
  9379. </div>
  9380. <div style="margin-left: 10px; height: 25px">教师评论</div>
  9381. </div>
  9382. <div @click="addPzDialog = false">
  9383. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9384. </div>
  9385. </div>
  9386. <div class="addPzBox">
  9387. <div class="addPzCheck">
  9388. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9389. >文本</span
  9390. >
  9391. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9392. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9393. >音频</span
  9394. >
  9395. </div>
  9396. <div style="height: calc(100% - 95px)">
  9397. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9398. v-if="pzType == 1"></textarea> -->
  9399. <editor-bar
  9400. class="binfo_input pzConText"
  9401. style="width: 100% !important"
  9402. placeholder="请输入任务描述"
  9403. v-model="pzConText"
  9404. @change="change"
  9405. v-if="pzType == 1"
  9406. ></editor-bar>
  9407. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9408. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9409. <div @click="addImg($event)">
  9410. <el-button type="primary">上传图片</el-button>
  9411. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9412. @change="beforeUpload1($event, 4)" />
  9413. </div>
  9414. </div> -->
  9415. </div>
  9416. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9417. 确定
  9418. </div>
  9419. </div>
  9420. </div>
  9421. <div v-if="proVisible" class="mask">
  9422. <div class="progressBox">
  9423. <!-- <div id="closePro" class="closeCss">
  9424. <img src="../../assets/icon/close.png" alt />
  9425. </div> -->
  9426. <div class="lbox">
  9427. <img src="../../assets/loading.gif" />上传中,请稍后
  9428. </div>
  9429. <div style="margin-bottom: 10px">
  9430. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9431. </div>
  9432. <el-progress
  9433. :text-inside="true"
  9434. :stroke-width="20"
  9435. :percentage="progress"
  9436. style="width: 80%"
  9437. ></el-progress>
  9438. </div>
  9439. </div>
  9440. <div v-if="proVisible2" class="mask">
  9441. <div class="progressBox">
  9442. <div class="lbox">
  9443. <img src="../../assets/loading.gif" />上传中,请稍后
  9444. </div>
  9445. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9446. </div>
  9447. </div>
  9448. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9449. <img width="100%" :src="dialogImageUrl" alt />
  9450. </el-dialog>
  9451. <el-dialog
  9452. :title="noteName != '' ? noteName : '查看问卷'"
  9453. :visible.sync="dialogVisible5"
  9454. :append-to-body="true"
  9455. width="1000px"
  9456. :before-close="handleClose"
  9457. class="dialog_diy dialog_diy3"
  9458. >
  9459. <div>
  9460. <div
  9461. class="a_add_title"
  9462. style="
  9463. display: flex;
  9464. flex-direction: row;
  9465. align-items: center;
  9466. justify-content: center;
  9467. "
  9468. >
  9469. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9470. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9471. </div>
  9472. <div class="a_addBox">
  9473. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9474. 题目内容
  9475. </div>
  9476. <div
  9477. class="a_add_box"
  9478. v-for="(item1, index1) in askJson.askCount"
  9479. :key="index1"
  9480. >
  9481. <div class="a_add_head">
  9482. <div style="display: flex">
  9483. <span class="askIndex"> {{ index1 + 1 }}</span>
  9484. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9485. </div>
  9486. <img
  9487. v-if="askJson.askJson[index1].img"
  9488. :src="askJson.askJson[index1].img"
  9489. style="height: 300px; margin-top: 10px; max-width: 100%"
  9490. />
  9491. </div>
  9492. <div class="a_add_body">
  9493. <div class="a_add_input">
  9494. <el-radio-group
  9495. v-model="radio[index1]"
  9496. v-if="
  9497. askJson.askJson[index1].type == '1' ||
  9498. !askJson.askJson[index1].type
  9499. "
  9500. >
  9501. <el-radio
  9502. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9503. .checkList"
  9504. :key="checkIndex"
  9505. :label="checkIndex"
  9506. :disabled="isAnswer"
  9507. class="redioStyle"
  9508. ><span v-html="item2"></span
  9509. ></el-radio>
  9510. </el-radio-group>
  9511. <el-checkbox-group
  9512. v-model="radio[index1]"
  9513. v-if="askJson.askJson[index1].type == '2'"
  9514. >
  9515. <el-checkbox
  9516. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9517. .checkList"
  9518. :key="checkIndex1"
  9519. :label="checkIndex1"
  9520. :disabled="isAnswer"
  9521. class="redioStyle"
  9522. ><span v-html="item2"></span>
  9523. </el-checkbox>
  9524. </el-checkbox-group>
  9525. </div>
  9526. </div>
  9527. </div>
  9528. </div>
  9529. </div>
  9530. <span slot="footer" class="dialog-footer">
  9531. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9532. >取 消</el-button
  9533. >
  9534. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9535. >确 定</el-button
  9536. >
  9537. </span>
  9538. </el-dialog>
  9539. <el-dialog
  9540. :title="noteName != '' ? noteName : '查看问卷'"
  9541. :visible.sync="dialogVisible5Teacher"
  9542. :append-to-body="true"
  9543. width="1000px"
  9544. :before-close="handleClose"
  9545. class="dialog_diy dialog_diy3"
  9546. >
  9547. <div>
  9548. <div class="w_name">
  9549. 学生姓名:<span>{{ sStudent.student }}</span>
  9550. </div>
  9551. <div
  9552. class="a_add_title"
  9553. style="
  9554. display: flex;
  9555. flex-direction: row;
  9556. align-items: center;
  9557. justify-content: center;
  9558. "
  9559. >
  9560. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9561. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9562. </div>
  9563. <div class="a_addBox">
  9564. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9565. 题目内容
  9566. </div>
  9567. <div
  9568. class="a_add_box"
  9569. v-for="(item1, index1) in askJson.askCount"
  9570. :key="index1"
  9571. >
  9572. <div class="a_add_head">
  9573. <div style="display: flex">
  9574. <span class="askIndex">{{ index1 + 1 }}</span>
  9575. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9576. </div>
  9577. <img
  9578. v-if="askJson.askJson[index1].img"
  9579. :src="askJson.askJson[index1].img"
  9580. style="height: 300px; margin-top: 10px; max-width: 100%"
  9581. />
  9582. </div>
  9583. <div class="a_add_body">
  9584. <div class="a_add_input">
  9585. <el-radio-group
  9586. v-model="radio[index1]"
  9587. v-if="
  9588. askJson.askJson[index1].type == '1' ||
  9589. !askJson.askJson[index1].type
  9590. "
  9591. >
  9592. <el-radio
  9593. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9594. .checkList"
  9595. :key="checkIndex"
  9596. :label="checkIndex"
  9597. :disabled="isAnswer"
  9598. class="redioStyle"
  9599. ><span v-html="item2"></span
  9600. ></el-radio>
  9601. </el-radio-group>
  9602. <el-checkbox-group
  9603. v-model="radio[index1]"
  9604. v-if="askJson.askJson[index1].type == '2'"
  9605. >
  9606. <el-checkbox
  9607. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9608. .checkList"
  9609. :key="checkIndex1"
  9610. :label="checkIndex1"
  9611. :disabled="isAnswer"
  9612. class="redioStyle"
  9613. ><span v-html="item2"></span>
  9614. </el-checkbox>
  9615. </el-checkbox-group>
  9616. </div>
  9617. </div>
  9618. </div>
  9619. </div>
  9620. </div>
  9621. <span slot="footer" class="dialog-footer">
  9622. <el-button
  9623. @click="dialogVisible5Teacher = false"
  9624. v-show="noteName == ''"
  9625. >取 消</el-button
  9626. >
  9627. <el-button
  9628. type="primary"
  9629. @click="addStudentAskTeacher"
  9630. v-show="noteName == ''"
  9631. >确 定</el-button
  9632. >
  9633. </span>
  9634. </el-dialog>
  9635. <el-dialog
  9636. :title="noteName != '' ? noteName : '查看选择题'"
  9637. :visible.sync="dialogVisibleChoice"
  9638. :append-to-body="true"
  9639. width="1000px"
  9640. :before-close="handleClose"
  9641. class="dialog_diy dialog_diy3"
  9642. >
  9643. <div>
  9644. <!-- <div class="a_add_title" style="
  9645. display: flex;
  9646. flex-direction: row;
  9647. align-items: center;
  9648. justify-content: center;
  9649. ">
  9650. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9651. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9652. </div> -->
  9653. <div class="a_addBox">
  9654. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9655. 题目内容
  9656. </div>
  9657. <div
  9658. class="a_add_box"
  9659. v-for="(item1, index1) in testJson.testCount"
  9660. :key="index1"
  9661. >
  9662. <div class="a_add_head">
  9663. <div style="display: flex;">
  9664. <span class="askIndex">{{ index1 + 1 }}</span>
  9665. <div
  9666. v-if="testJson.testJson[index1].type == '1'"
  9667. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9668. >
  9669. (单选题)
  9670. </div>
  9671. <div
  9672. v-if="testJson.testJson[index1].type == '2'"
  9673. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9674. >
  9675. (多选题)
  9676. </div>
  9677. <div class="renderedFor">题目:<span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  9678. </div>
  9679. <img
  9680. v-if="testJson.testJson[index1].img"
  9681. :src="testJson.testJson[index1].img"
  9682. style="height: 300px; margin-top: 10px; max-width: 100%"
  9683. />
  9684. </div>
  9685. <div
  9686. class="timuImgBox"
  9687. v-if="
  9688. testJson.testJson[index1].timuList &&
  9689. testJson.testJson[index1].timuList.length
  9690. "
  9691. >
  9692. <div
  9693. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9694. :key="tIndex"
  9695. class="timuImg"
  9696. @click.stop="previewImg(timg.src)"
  9697. >
  9698. <img :src="timg.src" alt="" />
  9699. </div>
  9700. </div>
  9701. <div class="a_add_body">
  9702. <div class="a_add_input">
  9703. <el-radio-group
  9704. v-model="radio[index1]"
  9705. v-if="testJson.testJson[index1].type == '1'"
  9706. >
  9707. <div class="radioBox">
  9708. <el-radio
  9709. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9710. .checkList"
  9711. :key="checkIndex"
  9712. :label="checkIndex"
  9713. :disabled="isAnswer"
  9714. class="redioStyle"
  9715. >
  9716. <div
  9717. style="margin-right: 10px"
  9718. v-if="item2 && item2.imgType && item2.imgType == 1"
  9719. >
  9720. <div class="inImg" @click.stop="previewImg(item2.src)">
  9721. <img :src="item2.src" alt="" />
  9722. </div>
  9723. </div>
  9724. <span v-else v-html="item2"></span>
  9725. </el-radio>
  9726. </div>
  9727. </el-radio-group>
  9728. <el-checkbox-group
  9729. v-model="radio[index1]"
  9730. v-if="testJson.testJson[index1].type == '2'"
  9731. >
  9732. <div class="radioBox">
  9733. <el-checkbox
  9734. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9735. .checkList"
  9736. :key="checkIndex"
  9737. :label="checkIndex"
  9738. :disabled="isAnswer"
  9739. class="redioStyle"
  9740. >
  9741. <div
  9742. style="margin-right: 10px"
  9743. v-if="item2 && item2.imgType && item2.imgType == 1"
  9744. >
  9745. <div class="inImg" @click.stop="previewImg(item2.src)">
  9746. <img :src="item2.src" alt="" />
  9747. </div>
  9748. </div>
  9749. <span v-else v-html="item2"></span>
  9750. </el-checkbox>
  9751. </div>
  9752. </el-checkbox-group>
  9753. </div>
  9754. </div>
  9755. </div>
  9756. </div>
  9757. </div>
  9758. <span slot="footer" class="dialog-footer">
  9759. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9760. >取 消</el-button
  9761. >
  9762. <el-button
  9763. type="primary"
  9764. @click="addStudentTest"
  9765. v-show="noteName == ''"
  9766. >确 定</el-button
  9767. >
  9768. </span>
  9769. </el-dialog>
  9770. <el-dialog
  9771. :title="noteName != '' ? noteName : '查看选择题'"
  9772. :visible.sync="dialogVisibleChoiceTeacher"
  9773. :append-to-body="true"
  9774. width="1000px"
  9775. :before-close="handleClose"
  9776. class="dialog_diy dialog_diy3"
  9777. >
  9778. <div>
  9779. <div class="w_name">
  9780. 学生姓名:<span>{{ sStudent.student }}</span>
  9781. </div>
  9782. <div class="a_addBox">
  9783. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9784. 题目内容
  9785. </div>
  9786. <div
  9787. class="a_add_box"
  9788. v-for="(item1, index1) in testJson.testCount"
  9789. :key="index1"
  9790. >
  9791. <div class="a_add_head">
  9792. <div style="display: flex">
  9793. <span class="askIndex">{{ index1 + 1 }}</span>
  9794. <div
  9795. v-if="testJson.testJson[index1].type == '1'"
  9796. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9797. >
  9798. (单选题)
  9799. </div>
  9800. <div
  9801. v-if="testJson.testJson[index1].type == '2'"
  9802. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9803. >
  9804. (多选题)
  9805. </div>
  9806. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9807. </div>
  9808. <img
  9809. v-if="testJson.testJson[index1].img"
  9810. :src="testJson.testJson[index1].img"
  9811. style="height: 300px; margin-top: 10px; max-width: 100%"
  9812. />
  9813. </div>
  9814. <div
  9815. class="timuImgBox"
  9816. v-if="
  9817. testJson.testJson[index1].timuList &&
  9818. testJson.testJson[index1].timuList.length
  9819. "
  9820. >
  9821. <div
  9822. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9823. :key="tIndex"
  9824. class="timuImg"
  9825. @click.stop="previewImg(timg.src)"
  9826. >
  9827. <img :src="timg.src" alt="" />
  9828. </div>
  9829. </div>
  9830. <div class="a_add_body">
  9831. <div class="a_add_input">
  9832. <el-radio-group
  9833. v-model="radio[index1]"
  9834. v-if="testJson.testJson[index1].type == '1'"
  9835. >
  9836. <div class="radioBox">
  9837. <el-radio
  9838. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9839. .checkList"
  9840. :key="checkIndex"
  9841. :label="checkIndex"
  9842. :disabled="isAnswer"
  9843. class="redioStyle"
  9844. >
  9845. <div
  9846. style="margin-right: 10px"
  9847. v-if="item2 && item2.imgType && item2.imgType == 1"
  9848. >
  9849. <div class="inImg" @click.stop="previewImg(item2.src)">
  9850. <img :src="item2.src" alt="" />
  9851. </div>
  9852. </div>
  9853. <span v-else v-html="item2"></span>
  9854. </el-radio>
  9855. </div>
  9856. </el-radio-group>
  9857. <el-checkbox-group
  9858. v-model="radio[index1]"
  9859. v-if="testJson.testJson[index1].type == '2'"
  9860. >
  9861. <div class="radioBox">
  9862. <el-checkbox
  9863. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9864. .checkList"
  9865. :key="checkIndex"
  9866. :label="checkIndex"
  9867. :disabled="isAnswer"
  9868. class="redioStyle"
  9869. >
  9870. <div
  9871. style="margin-right: 10px"
  9872. v-if="item2 && item2.imgType && item2.imgType == 1"
  9873. >
  9874. <div class="inImg" @click.stop="previewImg(item2.src)">
  9875. <img :src="item2.src" alt="" />
  9876. </div>
  9877. </div>
  9878. <span v-else v-html="item2"></span>
  9879. </el-checkbox>
  9880. </div>
  9881. </el-checkbox-group>
  9882. </div>
  9883. </div>
  9884. </div>
  9885. </div>
  9886. </div>
  9887. <span slot="footer" class="dialog-footer">
  9888. <el-button
  9889. @click="dialogVisibleChoiceTeacher = false"
  9890. v-show="noteName == ''"
  9891. >取 消</el-button
  9892. >
  9893. <el-button
  9894. type="primary"
  9895. @click="addStudentTestTeacher"
  9896. v-show="noteName == ''"
  9897. >确 定</el-button
  9898. >
  9899. </span>
  9900. </el-dialog>
  9901. <el-dialog
  9902. title="查看富文本"
  9903. :visible.sync="dialogVisible1"
  9904. :append-to-body="true"
  9905. width="500px"
  9906. :before-close="handleClose"
  9907. class="dialog_diy textCss"
  9908. >
  9909. <el-form style="font-size: 20px">
  9910. <el-form-item label="文本标题" class="textTitle">
  9911. <div style="font-size: 20px">{{ text.name }}</div>
  9912. </el-form-item>
  9913. <div>富文本内容</div>
  9914. <div
  9915. v-html="text.url"
  9916. style="font-size: 18px; padding: 40px 0 0 0"
  9917. ></div>
  9918. </el-form>
  9919. <span slot="footer" class="dialog-footer">
  9920. <el-button type="primary" @click="dialogVisible1 = false"
  9921. >确定</el-button
  9922. >
  9923. </span>
  9924. </el-dialog>
  9925. <el-dialog
  9926. title="文件预览"
  9927. :visible.sync="dialogVisible3"
  9928. width="50%"
  9929. :before-close="handleClose"
  9930. class="dialog_diy"
  9931. :class="{ fullStyle: full }"
  9932. >
  9933. <div slot="title" class="header-title">
  9934. <div style="color: #fff">文件预览</div>
  9935. <div style="position: absolute; top: 19px; right: 50px">
  9936. <img
  9937. src="../../assets/full.png"
  9938. style="height: 16px; cursor: pointer"
  9939. alt=""
  9940. @click="fullTools"
  9941. />
  9942. </div>
  9943. </div>
  9944. <pdf
  9945. v-if="showPDF"
  9946. :pdfUrl="pptImgUrl"
  9947. style="width: 100%; height: 520px; overflow: auto"
  9948. :class="{ fullStyle: full }"
  9949. ></pdf>
  9950. <iframe
  9951. v-else
  9952. :src="pptImgUrl"
  9953. frameborder="0"
  9954. width="100%"
  9955. height="600"
  9956. :class="{ fullStyle: full }"
  9957. ></iframe>
  9958. </el-dialog>
  9959. <el-dialog
  9960. title="文件预览"
  9961. :visible.sync="dialogVisible6"
  9962. width="50%"
  9963. :before-close="handleClose"
  9964. class="dialog_diy"
  9965. >
  9966. <iframe
  9967. :src="pptImgUrl1"
  9968. frameborder="0"
  9969. width="100%"
  9970. height="600"
  9971. ></iframe>
  9972. </el-dialog>
  9973. <el-dialog
  9974. title="提示"
  9975. :visible.sync="dialogVisible4"
  9976. :append-to-body="true"
  9977. width="800px"
  9978. :before-close="handleClose"
  9979. class="dialog_diy notice"
  9980. >
  9981. <div>此功能暂未开放!</div>
  9982. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9983. </el-dialog>
  9984. <el-dialog
  9985. title="问答"
  9986. :visible.sync="answerDialogVisible"
  9987. :append-to-body="true"
  9988. width="800px"
  9989. :before-close="handleClose"
  9990. class="dialog_diy"
  9991. >
  9992. <div>
  9993. <div
  9994. style="
  9995. display: flex;
  9996. flex-wrap: nowrap;
  9997. flex-direction: column;
  9998. position: relative;
  9999. "
  10000. >
  10001. <div class="queTop" style="padding: 20px 0 20px 0">
  10002. <div class="question">
  10003. <img src="../../assets/icon/question.png" alt />
  10004. </div>
  10005. <div class="queTitle">
  10006. <div style="width: 90px; min-width: 90px">提问:</div>
  10007. <div>{{ answerQ }}</div>
  10008. </div>
  10009. </div>
  10010. <div class="ediBottom">
  10011. <textarea
  10012. rows="6"
  10013. class="binfo_input"
  10014. cols
  10015. style="width: 95%; height: 120px"
  10016. v-model="questionAnswer"
  10017. ></textarea>
  10018. </div>
  10019. </div>
  10020. </div>
  10021. <div slot="footer">
  10022. <el-button @click="answerDialogVisible = false">取 消</el-button>
  10023. <el-button type="primary" @click="addQuestion">提 交</el-button>
  10024. </div>
  10025. </el-dialog>
  10026. <el-dialog
  10027. title="问答"
  10028. :visible.sync="answerDialogVisibleTeacher"
  10029. :append-to-body="true"
  10030. width="800px"
  10031. :before-close="handleClose"
  10032. class="dialog_diy"
  10033. >
  10034. <div>
  10035. <div class="w_name">
  10036. 学生姓名:<span>{{ sStudent.student }}</span>
  10037. </div>
  10038. <div
  10039. style="
  10040. display: flex;
  10041. flex-wrap: nowrap;
  10042. flex-direction: column;
  10043. position: relative;
  10044. "
  10045. >
  10046. <div class="queTop" style="padding: 20px 0 20px 0">
  10047. <div class="question">
  10048. <img src="../../assets/icon/question.png" alt />
  10049. </div>
  10050. <div class="queTitle">
  10051. <div style="width: 90px; min-width: 90px">提问:</div>
  10052. <div>{{ answerQ }}</div>
  10053. </div>
  10054. </div>
  10055. <div class="ediBottom">
  10056. <textarea
  10057. rows="6"
  10058. class="binfo_input"
  10059. cols
  10060. style="width: 95%; height: 120px"
  10061. v-model="questionAnswer"
  10062. ></textarea>
  10063. </div>
  10064. </div>
  10065. </div>
  10066. <div slot="footer">
  10067. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10068. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10069. </div>
  10070. </el-dialog>
  10071. <el-dialog
  10072. title="倒计时"
  10073. :visible.sync="timeDialogVisible"
  10074. :append-to-body="true"
  10075. width="800px"
  10076. :before-close="handleClose"
  10077. class="dialog_diy"
  10078. >
  10079. <div>
  10080. <div style="margin-bottom: 20px; color: #999">
  10081. 提示:点击“+”或“-”修改倒计时时长。
  10082. </div>
  10083. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  10084. </div>
  10085. <div slot="footer">
  10086. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  10087. </div>
  10088. </el-dialog>
  10089. <el-dialog
  10090. title="权限设置"
  10091. :visible.sync="juriVisible"
  10092. :append-to-body="true"
  10093. width="400px"
  10094. :before-close="handleClose"
  10095. class="dialog_diy"
  10096. >
  10097. <div>
  10098. <div class="open_box">
  10099. <div class="switch_box">
  10100. <span>允许学生查看所有作业</span>
  10101. <el-switch
  10102. v-model="sIsOpen"
  10103. active-text=""
  10104. class="switchCss"
  10105. @change="updateSLook"
  10106. ></el-switch>
  10107. </div>
  10108. <div
  10109. class="switch_box"
  10110. v-if="
  10111. (courseDetail.userid == userid ||
  10112. (courseDetail.course_teacher &&
  10113. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  10114. "
  10115. >
  10116. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  10117. <span>禁止学生查看阶段</span>
  10118. <el-switch
  10119. v-model="IsLookOpen"
  10120. active-text=""
  10121. class="switchCss"
  10122. @change="updateLookOpen"
  10123. ></el-switch>
  10124. </div>
  10125. <div class="switch_box" v-if="courseDetail.userid == userid">
  10126. <span>开启跟随模式</span>
  10127. <el-switch
  10128. v-model="IsFollow"
  10129. active-text=""
  10130. class="switchCss"
  10131. @change="updateFollow"
  10132. ></el-switch>
  10133. </div>
  10134. <div class="switch_box" v-if="courseDetail.userid == userid">
  10135. <span>允许学生查看内容资料</span>
  10136. <el-switch
  10137. v-model="IsStulook"
  10138. active-text=""
  10139. class="switchCss"
  10140. @change="updateIsStulook"
  10141. ></el-switch>
  10142. </div>
  10143. </div>
  10144. </div>
  10145. <div slot="footer">
  10146. <el-button
  10147. style="background: #409efe; color: #fff"
  10148. @click="juriVisible = false"
  10149. >关 闭</el-button
  10150. >
  10151. </div>
  10152. </el-dialog>
  10153. <el-dialog
  10154. title="查看视频"
  10155. :visible.sync="videoVisible"
  10156. :append-to-body="true"
  10157. width="1000px"
  10158. :before-close="handleClose"
  10159. class="dialog_diy1"
  10160. >
  10161. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10162. <video-player
  10163. class="video-player vjs-custom-skin"
  10164. :playsinline="true"
  10165. :options="videoDetail"
  10166. @play="onPlayerPlay($event)"
  10167. style="width: 100%; height: 100%"
  10168. ></video-player>
  10169. </div>
  10170. <div slot="footer">
  10171. <el-button
  10172. style="background: #409efe; color: #fff"
  10173. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10174. >
  10175. 关 闭</el-button
  10176. >
  10177. </div>
  10178. </el-dialog>
  10179. <el-dialog
  10180. title="查看详情"
  10181. :visible.sync="commentDialogVisible"
  10182. :append-to-body="true"
  10183. width="800px"
  10184. :before-close="handleClose"
  10185. class="dialog_diy"
  10186. >
  10187. <div class="commentTop">
  10188. <div class="studentDetail">
  10189. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10190. <div class="nameAndTime">
  10191. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10192. <div>{{ commentDetail.time }}</div>
  10193. </div>
  10194. <div
  10195. class="returnBtn"
  10196. style="margin-left: auto; width: 80px"
  10197. v-if="
  10198. commentDetail.works &&
  10199. commentDetail.type == 0 &&
  10200. (tType == 1 || tType == 4)
  10201. "
  10202. @click="
  10203. showPicturePaint(
  10204. commentDetail.img ? commentDetail.img : commentDetail.works
  10205. )
  10206. "
  10207. >
  10208. 教师批注
  10209. </div>
  10210. </div>
  10211. <div
  10212. class="worksAnswer"
  10213. v-if="commentDetail.works && commentDetail.type == 2"
  10214. >
  10215. {{ JSON.parse(commentDetail.works)[0].answer }}
  10216. </div>
  10217. <div
  10218. class="worksAnswer"
  10219. v-if="commentDetail.works && commentDetail.type == 1"
  10220. >
  10221. <img
  10222. src="../../assets/teacherWork.png"
  10223. v-if="commentDetail.ateacher"
  10224. class="w_teachert"
  10225. />
  10226. <pdf
  10227. v-if="showPDF"
  10228. :pdfUrl="pptImgUrl"
  10229. style="width: 100%; height: 520px; overflow: auto"
  10230. :class="{ fullStyle: full }"
  10231. ></pdf>
  10232. <iframe
  10233. v-else
  10234. :src="pptImgUrl"
  10235. frameborder="0"
  10236. width="100%"
  10237. height="600"
  10238. :class="{ fullStyle: full }"
  10239. ></iframe>
  10240. </div>
  10241. <div
  10242. class="worksAnswer"
  10243. v-if="commentDetail.works && commentDetail.type == 0"
  10244. >
  10245. <img
  10246. src="../../assets/teacherWork.png"
  10247. v-if="commentDetail.ateacher"
  10248. class="w_teachert"
  10249. style="right: 105px"
  10250. />
  10251. <img
  10252. :src="commentDetail.works"
  10253. alt=""
  10254. @click="previewImg(commentDetail.works)"
  10255. />
  10256. </div>
  10257. <div
  10258. class="worksAnswer"
  10259. v-if="commentDetail.works && commentDetail.type == 3"
  10260. >
  10261. <img
  10262. src="../../assets/teacherWork.png"
  10263. v-if="commentDetail.ateacher"
  10264. class="w_teachert"
  10265. />
  10266. <video-player
  10267. class="video-player vjs-custom-skin"
  10268. :playsinline="true"
  10269. :options="videoDetail"
  10270. @play="onPlayerPlay($event)"
  10271. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10272. ></video-player>
  10273. </div>
  10274. <div
  10275. class="worksAnswer"
  10276. v-if="commentDetail.works && commentDetail.type == 10"
  10277. >
  10278. <div class="cont" v-html="commentDetail.works.text"></div>
  10279. </div>
  10280. <div
  10281. class="worksAnswer codeFileBox"
  10282. v-if="commentDetail.works && commentDetail.type == 12"
  10283. @click="downloadFile(commentDetail.works)"
  10284. >
  10285. <img src="../../assets/icon/codeFile.png" />
  10286. <div>点击下载文件</div>
  10287. </div>
  10288. <div
  10289. class="worksAnswer codeFileBox"
  10290. v-if="commentDetail.works && commentDetail.type == 15"
  10291. @click="
  10292. openCocoPi(
  10293. 57,
  10294. commentIndexJson.toolIndex,
  10295. commentDetail.userid,
  10296. commentDetail.sName
  10297. )
  10298. "
  10299. >
  10300. <img src="../../assets/icon/codeFile.png" />
  10301. <div>点击打开CocoPi</div>
  10302. </div>
  10303. <div
  10304. class="worksAnswer"
  10305. v-if="commentDetail.works && commentDetail.type == 13"
  10306. >
  10307. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10308. </div>
  10309. <div
  10310. class="worksAnswer"
  10311. v-if="commentDetail.works && commentDetail.type == 4"
  10312. >
  10313. <div class="evalCss">
  10314. <div class="nav">请选择星星进行评分</div>
  10315. <div class="middleBox" v-if="eScore.eStar">
  10316. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10317. <div class="nameAndrate">
  10318. <div>{{ e.value }}</div>
  10319. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10320. </div>
  10321. <div v-if="e.detail">{{ e.detail }}</div>
  10322. </div>
  10323. <div class="bz">
  10324. <textarea
  10325. disabled
  10326. rows="4"
  10327. class="pj"
  10328. style="
  10329. padding: 10px 5px;
  10330. width: 70%;
  10331. background: #f7f6f9;
  10332. font-size: 14px;
  10333. text-indent: 10px;
  10334. color: #000;
  10335. "
  10336. cols
  10337. v-model="eScore.eBzText"
  10338. placeholder="请输入评价内容..."
  10339. ></textarea>
  10340. </div>
  10341. </div>
  10342. </div>
  10343. </div>
  10344. <div class="comment">
  10345. <div class="commentList">
  10346. <div class="commentImg">
  10347. <img
  10348. @click="
  10349. isLikes(
  10350. commentDetail.wid,
  10351. userid,
  10352. 1,
  10353. null,
  10354. commentDetail.isLikes,
  10355. commentDetail.sName
  10356. )
  10357. "
  10358. :src="commentDetail.isLikes == true ? likes : noLikes"
  10359. alt=""
  10360. />
  10361. </div>
  10362. <div>{{ commentDetail.likesCount }}</div>
  10363. </div>
  10364. <div class="commentList">
  10365. <div class="commentImg">
  10366. <img src="../../assets/icon/comment/comment.png" alt="" />
  10367. </div>
  10368. <div>{{ commentDetail.commentCount }}</div>
  10369. </div>
  10370. </div>
  10371. <div class="drawPBox" v-if="commentDetail.img">
  10372. <span>教师批注</span>
  10373. <img
  10374. :src="commentDetail.img"
  10375. alt=""
  10376. @click="previewImg(commentDetail.img)"
  10377. />
  10378. <span
  10379. class="deleteImg"
  10380. v-if="tType == 1 || tType == 4"
  10381. @click.stop="deletePicturePaint(commentDetail.wid)"
  10382. style="
  10383. font-size: 14px;
  10384. width: auto !important;
  10385. color: #b4b4b4;
  10386. top: unset;
  10387. bottom: 0;
  10388. border: none;
  10389. padding: 0;
  10390. height: auto !important;
  10391. margin: 0;
  10392. "
  10393. >删除</span
  10394. >
  10395. </div>
  10396. </div>
  10397. <div class="commentBox">
  10398. <div class="pl">评论:</div>
  10399. <div style="max-height: 200px; overflow: auto">
  10400. <div
  10401. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10402. style="padding: 10px 0 0 0"
  10403. >
  10404. <div
  10405. class="studentDetail"
  10406. style="padding-top: 10px"
  10407. v-for="(co, coIndex) in commentDetail.commentJson"
  10408. :key="coIndex"
  10409. >
  10410. <div class="tx" style="min-width: 50px">
  10411. <img src="../../assets/avatar.png" alt="" />
  10412. </div>
  10413. <div class="plPerson">
  10414. <div class="plName">
  10415. <div>{{ co.commentPeople }}</div>
  10416. <div style="margin-left: 5px">
  10417. {{ co.commentTime }}
  10418. </div>
  10419. <div
  10420. class="deleteComment"
  10421. v-if="userid == co.userid"
  10422. @click="deleteComment(co.wid)"
  10423. >
  10424. 删除
  10425. </div>
  10426. </div>
  10427. <div class="plContent">{{ co.commentText }}</div>
  10428. </div>
  10429. </div>
  10430. </div>
  10431. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10432. </div>
  10433. </div>
  10434. <div style="margin-top: 10px">
  10435. <div class="displayBox">
  10436. <div
  10437. style="
  10438. color: #556db4;
  10439. font-size: 14px;
  10440. font-weight: bold;
  10441. padding-bottom: 10px;
  10442. "
  10443. >
  10444. 评价
  10445. </div>
  10446. <div class="easy_comment" v-if="false">
  10447. <div
  10448. v-for="(p, pIndex) in PlTextList"
  10449. :key="pIndex"
  10450. @click="fastText(p, 1)"
  10451. >
  10452. {{ p }}
  10453. </div>
  10454. </div>
  10455. </div>
  10456. <div>
  10457. <textarea
  10458. rows="3"
  10459. class="pj"
  10460. style="padding: 10px 5px"
  10461. cols
  10462. v-model="commentText"
  10463. placeholder="请输入评论"
  10464. ></textarea>
  10465. </div>
  10466. </div>
  10467. <div slot="footer">
  10468. <el-button
  10469. @click="
  10470. (commentDialogVisible = false),
  10471. (commentIndexJson = {}),
  10472. videoDetail.sources && videoDetail.sources[0]
  10473. ? (videoDetail.sources[0].src = '')
  10474. : ''
  10475. "
  10476. >取 消</el-button
  10477. >
  10478. <el-button
  10479. type="primary"
  10480. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10481. >确 定</el-button
  10482. >
  10483. </div>
  10484. </el-dialog>
  10485. <el-dialog
  10486. title="查看文档"
  10487. :visible.sync="fullDialogVisible"
  10488. :append-to-body="true"
  10489. width="100%"
  10490. :before-close="handleClose"
  10491. :show-close="false"
  10492. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10493. >
  10494. <div slot="title" class="header-title">
  10495. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  10496. <div v-else style="color: #fff">查看文档</div>
  10497. <div
  10498. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10499. style="
  10500. cursor: pointer;
  10501. position: absolute;
  10502. top: 20px;
  10503. right: 20px;
  10504. color: #fff;
  10505. "
  10506. >
  10507. 退出全屏
  10508. </div>
  10509. </div>
  10510. <div style="height: 100%;position: relative;">
  10511. <el-button
  10512. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10513. size="medium"
  10514. type="primary"
  10515. @click="
  10516. () => {
  10517. (fullDialogVisible = false),
  10518. changeSplitScreenBehavior({ code: 99 });
  10519. }
  10520. "
  10521. style="
  10522. cursor: pointer;
  10523. position: absolute;
  10524. top: 10px;
  10525. right: 20px;
  10526. color: #fff;
  10527. "
  10528. >
  10529. 退出全屏
  10530. </el-button>
  10531. <div
  10532. class="wheel"
  10533. v-if="fulltype == 1"
  10534. style="
  10535. box-shadow: 0 0 6px 1px #f2f2f2;
  10536. height:100%;
  10537. width: 100%;
  10538. background: #f1f1f1;
  10539. "
  10540. >
  10541. <div class="title" style="width: 100%; box-sizing: border-box">
  10542. 查看文档
  10543. </div>
  10544. <el-form class="textBox" style="height: 90%">
  10545. <el-form-item class="textTitle">
  10546. <div style="font-size: 22px">
  10547. {{ fullUrl.name }}
  10548. </div>
  10549. </el-form-item>
  10550. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10551. <div
  10552. v-html="fullUrl.url"
  10553. class="textContent"
  10554. style="height: auto"
  10555. ></div>
  10556. </el-form>
  10557. </div>
  10558. <div
  10559. class="wheel"
  10560. v-else-if="
  10561. (fulltype == 2 || fulltype == 4) &&
  10562. fullUrl.indexOf(
  10563. 'https://view.officeapps.live.com/op/view.aspx?src='
  10564. ) != -1
  10565. "
  10566. style="width: 100%;height:100%; margin: 0 auto"
  10567. >
  10568. <iframe
  10569. style="width: 100%; height: 100%; border: none"
  10570. :src="fullUrl"
  10571. ></iframe>
  10572. </div>
  10573. <iframe
  10574. style="width: 100%; height: 100%; border: none"
  10575. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  10576. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1) || fullUrl.indexOf('app.cocorobo.cn')!=-1"
  10577. :src="fullUrl"
  10578. ></iframe>
  10579. <iframe
  10580. style="width: 100%; height: 100%; border: none"
  10581. security="restricted"
  10582. v-else-if="(fulltype == 2 || fulltype == 4)"
  10583. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10584. :src="fullUrl"
  10585. ></iframe>
  10586. <pdf
  10587. v-else-if="fulltype == 3"
  10588. :pdfUrl="fullUrl"
  10589. style="width: 100%; height: 100%; overflow: auto"
  10590. ></pdf>
  10591. <iframe
  10592. style="width: 100%; height: 100%; border: none"
  10593. security="restricted"
  10594. v-if="(fulltype == 16)"
  10595. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10596. :src="fullUrl"
  10597. ></iframe>
  10598. </div>
  10599. <!-- <div slot="footer">
  10600. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10601. </div> -->
  10602. </el-dialog>
  10603. <el-dialog
  10604. title="个人评价"
  10605. :visible.sync="studentEvalDialogVisible"
  10606. :append-to-body="true"
  10607. width="800px"
  10608. :before-close="handleClose"
  10609. class="dialog_diy"
  10610. >
  10611. <div class="evalCss">
  10612. <div class="nav">请选择星星进行评分</div>
  10613. <div class="middleBox" v-if="eScore.eStar">
  10614. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10615. <div class="nameAndrate">
  10616. <div>{{ e.value }}</div>
  10617. <el-rate
  10618. v-model="eScore.eStar[eIndex]"
  10619. :disabled="isStar"
  10620. ></el-rate>
  10621. </div>
  10622. <div v-if="e.detail">{{ e.detail }}</div>
  10623. </div>
  10624. <div class="easy_comment" v-if="false">
  10625. <div
  10626. v-for="(p, pIndex) in PlTextList"
  10627. :key="pIndex"
  10628. @click="fastText(p, 2)"
  10629. >
  10630. {{ p }}
  10631. </div>
  10632. </div>
  10633. <div class="bz">
  10634. <textarea
  10635. :disabled="isStar"
  10636. rows="4"
  10637. class="pj"
  10638. style="
  10639. padding: 10px 5px;
  10640. width: 70%;
  10641. background: #f7f6f9;
  10642. font-size: 14px;
  10643. text-indent: 10px;
  10644. "
  10645. cols
  10646. v-model="eScore.eBzText"
  10647. placeholder="请输入评价内容..."
  10648. ></textarea>
  10649. </div>
  10650. </div>
  10651. </div>
  10652. <div slot="footer">
  10653. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10654. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10655. >确 定</el-button
  10656. >
  10657. </div>
  10658. </el-dialog>
  10659. <el-dialog
  10660. title="个人评价"
  10661. :visible.sync="studentEvalDialogVisibleTeacher"
  10662. :append-to-body="true"
  10663. width="800px"
  10664. :before-close="handleClose"
  10665. class="dialog_diy"
  10666. >
  10667. <div class="w_name">
  10668. 学生姓名:<span>{{ sStudent.student }}</span>
  10669. </div>
  10670. <div class="evalCss">
  10671. <div class="nav">请选择星星进行评分</div>
  10672. <div class="middleBox" v-if="eScore.eStar">
  10673. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10674. <div class="nameAndrate">
  10675. <div>{{ e.value }}</div>
  10676. <el-rate
  10677. v-model="eScore.eStar[eIndex]"
  10678. :disabled="isStar"
  10679. ></el-rate>
  10680. </div>
  10681. <div v-if="e.detail">{{ e.detail }}</div>
  10682. </div>
  10683. <div class="easy_comment" v-if="false">
  10684. <div
  10685. v-for="(p, pIndex) in PlTextList"
  10686. :key="pIndex"
  10687. @click="fastText(p, 2)"
  10688. >
  10689. {{ p }}
  10690. </div>
  10691. </div>
  10692. <div class="bz">
  10693. <textarea
  10694. :disabled="isStar"
  10695. rows="4"
  10696. class="pj"
  10697. style="
  10698. padding: 10px 5px;
  10699. width: 70%;
  10700. background: #f7f6f9;
  10701. font-size: 14px;
  10702. text-indent: 10px;
  10703. "
  10704. cols
  10705. v-model="eScore.eBzText"
  10706. placeholder="请输入评价内容..."
  10707. ></textarea>
  10708. </div>
  10709. </div>
  10710. </div>
  10711. <div slot="footer">
  10712. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10713. >取 消</el-button
  10714. >
  10715. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10716. >确 定</el-button
  10717. >
  10718. </div>
  10719. </el-dialog>
  10720. <el-dialog
  10721. title="选择匹配"
  10722. :visible.sync="dialogVisibleSelect"
  10723. :append-to-body="true"
  10724. width="90%"
  10725. :before-close="handleClose"
  10726. class="dialog_diy dialog_diy3"
  10727. >
  10728. <div v-if="selectJson">
  10729. <div class="select_box2">
  10730. <div class="select_box2_title">
  10731. <div>选择匹配</div>
  10732. <div>请选择对应的答案进行答题!</div>
  10733. </div>
  10734. <div class="select_box2_box">
  10735. <div class="select_box2_img">
  10736. <img
  10737. :src="selectJson.url"
  10738. @click="previewImg(selectJson.url)"
  10739. alt=""
  10740. />
  10741. </div>
  10742. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10743. <div style="padding-top: 15px">
  10744. <div class="select_answer_title" v-if="isSelect">
  10745. {{ selectAnswer.stu }}
  10746. </div>
  10747. <div class="select_answer_title" v-else>
  10748. 根据题目选择对应答案
  10749. </div>
  10750. <div
  10751. class="select_box2_answer_box"
  10752. v-for="(item2, checkIndex) in selectJson.select"
  10753. :key="checkIndex"
  10754. >
  10755. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10756. <el-select
  10757. :disabled="isSelect"
  10758. v-model="selectAnswer.answer[checkIndex]"
  10759. placeholder="请选择正确答案"
  10760. >
  10761. <el-option
  10762. v-for="(e, eIndex) in selectJson.select"
  10763. :key="eIndex"
  10764. :label="e"
  10765. :value="eIndex"
  10766. >
  10767. </el-option>
  10768. </el-select>
  10769. </div>
  10770. </div>
  10771. <div
  10772. class="rightAnswerCss"
  10773. v-if="isSelect && (tType == 1 || tType == 4)"
  10774. >
  10775. <div
  10776. v-for="(a, aIndex) in selectJson.answer"
  10777. :key="aIndex"
  10778. class="rightAnswer"
  10779. >
  10780. <div
  10781. v-if="selectAnswer.answer[aIndex] === a"
  10782. style="color: #767de1"
  10783. >
  10784. 回答正确
  10785. </div>
  10786. <div v-else>回答错误</div>
  10787. <div
  10788. style="margin-left: 10px"
  10789. v-if="selectAnswer.answer[aIndex] !== a"
  10790. >
  10791. 正确答案:
  10792. </div>
  10793. <div
  10794. :class="
  10795. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10796. "
  10797. >
  10798. {{ selectJson.select[a] }}
  10799. </div>
  10800. </div>
  10801. </div>
  10802. </div>
  10803. <div class="upAnswerCss">
  10804. <el-button
  10805. type="primary"
  10806. @click="addSelectAnswer"
  10807. v-if="!isSelect"
  10808. >提交答案</el-button
  10809. >
  10810. </div>
  10811. </div>
  10812. </div>
  10813. </div>
  10814. </el-dialog>
  10815. <el-dialog
  10816. title="选择匹配"
  10817. :visible.sync="dialogVisibleSelectTeacher"
  10818. :append-to-body="true"
  10819. width="90%"
  10820. :before-close="handleClose"
  10821. class="dialog_diy dialog_diy3"
  10822. >
  10823. <div v-if="selectJson">
  10824. <div class="w_name">
  10825. 学生姓名:<span>{{ sStudent.student }}</span>
  10826. </div>
  10827. <div class="select_box2">
  10828. <div class="select_box2_title">
  10829. <div>选择匹配</div>
  10830. <div>请选择对应的答案进行答题!</div>
  10831. </div>
  10832. <div class="select_box2_box">
  10833. <div class="select_box2_img">
  10834. <img
  10835. :src="selectJson.url"
  10836. @click="previewImg(selectJson.url)"
  10837. alt=""
  10838. />
  10839. </div>
  10840. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10841. <div style="padding-top: 15px">
  10842. <div class="select_answer_title" v-if="isSelect">
  10843. {{ selectAnswer.stu }}
  10844. </div>
  10845. <div class="select_answer_title" v-else>
  10846. 根据题目选择对应答案
  10847. </div>
  10848. <div
  10849. class="select_box2_answer_box"
  10850. v-for="(item2, checkIndex) in selectJson.select"
  10851. :key="checkIndex"
  10852. >
  10853. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10854. <el-select
  10855. :disabled="isSelect"
  10856. v-model="selectAnswer.answer[checkIndex]"
  10857. placeholder="请选择正确答案"
  10858. >
  10859. <el-option
  10860. v-for="(e, eIndex) in selectJson.select"
  10861. :key="eIndex"
  10862. :label="e"
  10863. :value="eIndex"
  10864. >
  10865. </el-option>
  10866. </el-select>
  10867. </div>
  10868. </div>
  10869. <div
  10870. class="rightAnswerCss"
  10871. v-if="isSelect && (tType == 1 || tType == 4)"
  10872. >
  10873. <div
  10874. v-for="(a, aIndex) in selectJson.answer"
  10875. :key="aIndex"
  10876. class="rightAnswer"
  10877. >
  10878. <div
  10879. v-if="selectAnswer.answer[aIndex] === a"
  10880. style="color: #767de1"
  10881. >
  10882. 回答正确
  10883. </div>
  10884. <div v-else>回答错误</div>
  10885. <div
  10886. style="margin-left: 10px"
  10887. v-if="selectAnswer.answer[aIndex] !== a"
  10888. >
  10889. 正确答案:
  10890. </div>
  10891. <div
  10892. :class="
  10893. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10894. "
  10895. >
  10896. {{ selectJson.select[a] }}
  10897. </div>
  10898. </div>
  10899. </div>
  10900. </div>
  10901. <div class="upAnswerCss">
  10902. <el-button
  10903. type="primary"
  10904. @click="addSelectAnswerTeacher"
  10905. v-if="!isSelect"
  10906. >提交答案</el-button
  10907. >
  10908. </div>
  10909. </div>
  10910. </div>
  10911. </div>
  10912. </el-dialog>
  10913. <el-dialog
  10914. title="教师评分"
  10915. :visible.sync="dialogVisibleScore"
  10916. :append-to-body="true"
  10917. width="800px"
  10918. :before-close="handleClose"
  10919. class="dialog_diy"
  10920. >
  10921. <div>
  10922. <div class="studentDetail">
  10923. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10924. <div class="nameAndTime">
  10925. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10926. <div>{{ commentDetail.time }}</div>
  10927. </div>
  10928. </div>
  10929. <div
  10930. class="worksAnswer"
  10931. v-if="commentDetail.works && commentDetail.type == 2"
  10932. >
  10933. {{ JSON.parse(commentDetail.works)[0].answer }}
  10934. </div>
  10935. <div
  10936. class="worksAnswer"
  10937. v-if="commentDetail.works && commentDetail.type == 1"
  10938. >
  10939. <pdf
  10940. v-if="showPDF"
  10941. :pdfUrl="pptImgUrl"
  10942. style="width: 100%; height: 520px; overflow: auto"
  10943. :class="{ fullStyle: full }"
  10944. ></pdf>
  10945. <iframe
  10946. v-else
  10947. :src="pptImgUrl"
  10948. frameborder="0"
  10949. width="100%"
  10950. height="600"
  10951. :class="{ fullStyle: full }"
  10952. ></iframe>
  10953. </div>
  10954. <div
  10955. class="worksAnswer"
  10956. v-if="commentDetail.works && commentDetail.type == 0"
  10957. >
  10958. <img
  10959. :src="commentDetail.works"
  10960. alt=""
  10961. @click="previewImg(commentDetail.works)"
  10962. />
  10963. </div>
  10964. <div
  10965. class="worksAnswer"
  10966. v-if="commentDetail.works && commentDetail.type == 3"
  10967. >
  10968. <video-player
  10969. class="video-player vjs-custom-skin"
  10970. :playsinline="true"
  10971. :options="videoDetail"
  10972. @play="onPlayerPlay($event)"
  10973. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10974. ></video-player>
  10975. </div>
  10976. <div
  10977. class="worksAnswer codeFileBox"
  10978. v-if="commentDetail.works && commentDetail.type == 12"
  10979. @click="downloadFile(commentDetail.works)"
  10980. >
  10981. <img src="../../assets/icon/codeFile.png" />
  10982. <div>点击下载文件</div>
  10983. </div>
  10984. <div
  10985. class="worksAnswer codeFileBox"
  10986. v-if="commentDetail.works && commentDetail.type == 15"
  10987. @click="
  10988. openCocoPi(
  10989. 57,
  10990. commentIndexJson.toolIndex,
  10991. commentDetail.userid,
  10992. commentDetail.sName
  10993. )
  10994. "
  10995. >
  10996. <img src="../../assets/icon/codeFile.png" />
  10997. <div>点击打开CocoPi</div>
  10998. </div>
  10999. <div
  11000. class="worksAnswer"
  11001. v-if="commentDetail.works && commentDetail.type == 13"
  11002. >
  11003. <div v-html="JSON.parse(commentDetail.works).text"></div>
  11004. </div>
  11005. <div class="scoreBox">
  11006. <span class="t">请输入分数</span>
  11007. <el-input-number
  11008. :disabled="courseDetail.userid != userid"
  11009. v-model="wScore"
  11010. :controls="false"
  11011. :min="0"
  11012. :max="100"
  11013. ></el-input-number>
  11014. </div>
  11015. <div class="scoreDetailBox">
  11016. <span class="t">评分评论</span>
  11017. <el-input
  11018. type="textarea"
  11019. :rows="5"
  11020. :disabled="courseDetail.userid != userid"
  11021. resize="none"
  11022. v-model="scoreDetail"
  11023. placeholder="请输入对学生的评价"
  11024. >
  11025. </el-input>
  11026. </div>
  11027. </div>
  11028. <span slot="footer" class="dialog-footer">
  11029. <el-button
  11030. @click="
  11031. (dialogVisibleScore = false),
  11032. (commentIndexJson = {}),
  11033. videoDetail.sources && videoDetail.sources[0]
  11034. ? (videoDetail.sources[0].src = '')
  11035. : ''
  11036. "
  11037. >取 消</el-button
  11038. >
  11039. <el-button
  11040. type="primary"
  11041. v-if="courseDetail.userid == userid"
  11042. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  11043. >确 定
  11044. </el-button>
  11045. </span>
  11046. </el-dialog>
  11047. <el-dialog
  11048. title="排序"
  11049. :visible.sync="dialogVisibleSentence"
  11050. :append-to-body="true"
  11051. width="1000px"
  11052. :before-close="handleClose"
  11053. class="dialog_diy dialog_diy3"
  11054. >
  11055. <div>
  11056. <div class="sentenBox">
  11057. <div
  11058. v-for="(st, stIndex) in sentenceList"
  11059. :key="stIndex"
  11060. style="padding-bottom: 20px"
  11061. >
  11062. <div
  11063. style="padding: 15px 0 10px 20px"
  11064. class="sentenceTitle"
  11065. :index="stIndex + 1"
  11066. >
  11067. 题目{{ stIndex + 1 }}:请选择正确顺序
  11068. </div>
  11069. <div class="cardList" v-if="st.chooseSenList">
  11070. <div class="cardBox">
  11071. <div
  11072. v-for="(r, rIndex) in st.chooseSenList"
  11073. :key="rIndex"
  11074. @click="returnCard(r, stIndex, rIndex)"
  11075. >
  11076. <el-tooltip
  11077. class="item"
  11078. effect="light"
  11079. :content="r"
  11080. placement="top"
  11081. v-if="r != '' && r != undefined"
  11082. >
  11083. <div
  11084. :class="{
  11085. isCard: r,
  11086. isChooseCard: r == '' || r == undefined,
  11087. }"
  11088. >
  11089. <div>{{ r }}</div>
  11090. </div>
  11091. </el-tooltip>
  11092. <div
  11093. :class="{
  11094. isCard: r,
  11095. isChooseCard: r == '' || r == undefined,
  11096. }"
  11097. v-else
  11098. >
  11099. <div>{{ r }}</div>
  11100. </div>
  11101. </div>
  11102. </div>
  11103. </div>
  11104. <div class="cardList" v-if="st.addChangeSen">
  11105. <div class="cardBox">
  11106. <div
  11107. v-for="(s, sIndex) in st.addChangeSen"
  11108. :key="sIndex"
  11109. @click="setRightAnswer(s, stIndex, sIndex)"
  11110. >
  11111. <el-tooltip
  11112. class="item"
  11113. effect="light"
  11114. :content="s"
  11115. placement="top"
  11116. v-if="s != '' && s != undefined"
  11117. >
  11118. <div
  11119. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11120. >
  11121. <div>{{ s }}</div>
  11122. </div>
  11123. </el-tooltip>
  11124. <div
  11125. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11126. v-else
  11127. >
  11128. <div>{{ s }}</div>
  11129. </div>
  11130. </div>
  11131. </div>
  11132. </div>
  11133. </div>
  11134. </div>
  11135. </div>
  11136. <span slot="footer" class="dialog-footer">
  11137. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11138. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11139. </span>
  11140. </el-dialog>
  11141. <el-dialog
  11142. title="排序"
  11143. :visible.sync="dialogVisibleSentenceTeacher"
  11144. :append-to-body="true"
  11145. width="1000px"
  11146. :before-close="handleClose"
  11147. class="dialog_diy dialog_diy3"
  11148. >
  11149. <div>
  11150. <div class="w_name">
  11151. 学生姓名:<span>{{ sStudent.student }}</span>
  11152. </div>
  11153. <div class="sentenBox">
  11154. <div
  11155. v-for="(st, stIndex) in sentenceList"
  11156. :key="stIndex"
  11157. style="padding-bottom: 20px"
  11158. >
  11159. <div
  11160. style="padding: 15px 0 10px 20px"
  11161. class="sentenceTitle"
  11162. :index="stIndex + 1"
  11163. >
  11164. 题目{{ stIndex + 1 }}:请选择正确顺序
  11165. </div>
  11166. <div class="cardList" v-if="st.chooseSenList">
  11167. <div class="cardBox">
  11168. <div
  11169. v-for="(r, rIndex) in st.chooseSenList"
  11170. :key="rIndex"
  11171. @click="returnCard(r, stIndex, rIndex)"
  11172. >
  11173. <el-tooltip
  11174. class="item"
  11175. effect="light"
  11176. :content="r"
  11177. placement="top"
  11178. v-if="r != '' && r != undefined"
  11179. >
  11180. <div
  11181. :class="{
  11182. isCard: r,
  11183. isChooseCard: r == '' || r == undefined,
  11184. }"
  11185. >
  11186. <div>{{ r }}</div>
  11187. </div>
  11188. </el-tooltip>
  11189. <div
  11190. :class="{
  11191. isCard: r,
  11192. isChooseCard: r == '' || r == undefined,
  11193. }"
  11194. v-else
  11195. >
  11196. <div>{{ r }}</div>
  11197. </div>
  11198. </div>
  11199. </div>
  11200. </div>
  11201. <div class="cardList" v-if="st.addChangeSen">
  11202. <div class="cardBox">
  11203. <div
  11204. v-for="(s, sIndex) in st.addChangeSen"
  11205. :key="sIndex"
  11206. @click="setRightAnswer(s, stIndex, sIndex)"
  11207. >
  11208. <el-tooltip
  11209. class="item"
  11210. effect="light"
  11211. :content="s"
  11212. placement="top"
  11213. v-if="s != '' && s != undefined"
  11214. >
  11215. <div
  11216. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11217. >
  11218. <div>{{ s }}</div>
  11219. </div>
  11220. </el-tooltip>
  11221. <div
  11222. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11223. v-else
  11224. >
  11225. <div>{{ s }}</div>
  11226. </div>
  11227. </div>
  11228. </div>
  11229. </div>
  11230. </div>
  11231. </div>
  11232. </div>
  11233. <span slot="footer" class="dialog-footer">
  11234. <el-button @click="dialogVisibleSentenceTeacher = false"
  11235. >取 消</el-button
  11236. >
  11237. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11238. </span>
  11239. </el-dialog>
  11240. <el-dialog
  11241. title="排序"
  11242. :visible.sync="dialogVisibleSentence1"
  11243. :append-to-body="true"
  11244. width="1000px"
  11245. :before-close="handleClose"
  11246. class="dialog_diy dialog_diy3"
  11247. >
  11248. <div>
  11249. <div class="sentenBox">
  11250. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11251. {{ sentenceList1.stuName }}的作业
  11252. </div>
  11253. <div
  11254. v-for="(st, stIndex) in sentenceList1"
  11255. :key="stIndex"
  11256. style="padding-bottom: 20px"
  11257. >
  11258. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11259. 第{{ stIndex + 1 }}题
  11260. </div>
  11261. <div class="isWrong">
  11262. <div class="cardList1" v-if="st.chooseSenList">
  11263. <div class="cardBox">
  11264. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11265. <el-tooltip
  11266. class="item"
  11267. effect="light"
  11268. :content="s"
  11269. placement="top"
  11270. >
  11271. <div class="isCard">
  11272. <div>{{ s }}</div>
  11273. </div>
  11274. </el-tooltip>
  11275. </div>
  11276. </div>
  11277. <div class="cardAnswerBox">
  11278. 组成句子:{{ st.chooseSenList.join(" ") }}
  11279. </div>
  11280. </div>
  11281. <div v-if="tType == 2" class="isTj">
  11282. <div class="isTjImg">
  11283. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11284. </div>
  11285. <div>已提交</div>
  11286. </div>
  11287. <div
  11288. class="answerRight isTj"
  11289. v-if="
  11290. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11291. (tType == 1 || tType == 4)
  11292. "
  11293. >
  11294. <div class="isTjImg">
  11295. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11296. </div>
  11297. <div>回答正确</div>
  11298. </div>
  11299. <div
  11300. class="answerRight isTj"
  11301. v-if="
  11302. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11303. (tType == 1 || tType == 4)
  11304. "
  11305. >
  11306. <div class="isTjImg">
  11307. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  11308. </div>
  11309. <div>回答错误</div>
  11310. </div>
  11311. </div>
  11312. <div
  11313. v-if="
  11314. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11315. (tType == 1 || tType == 4)
  11316. "
  11317. >
  11318. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11319. <div
  11320. class="cardList"
  11321. v-if="st.rightAnswer"
  11322. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11323. >
  11324. <div class="cardBox">
  11325. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11326. <el-tooltip
  11327. class="item"
  11328. effect="light"
  11329. :content="r"
  11330. placement="top"
  11331. >
  11332. <div class="isCard1">
  11333. <div>{{ r }}</div>
  11334. </div>
  11335. </el-tooltip>
  11336. </div>
  11337. </div>
  11338. <div class="cardAnswerBox">
  11339. 组成句子:{{ st.rightAnswer.join(" ") }}
  11340. </div>
  11341. </div>
  11342. </div>
  11343. </div>
  11344. </div>
  11345. </div>
  11346. <span slot="footer" class="dialog-footer">
  11347. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11348. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11349. >确 定</el-button
  11350. >
  11351. </span>
  11352. </el-dialog>
  11353. <el-dialog
  11354. title="教师提交作业"
  11355. :visible.sync="dialogVisibleWorks"
  11356. :append-to-body="true"
  11357. width="500px"
  11358. :before-close="handleClose"
  11359. class="dialog_change"
  11360. >
  11361. <div class="marginT">
  11362. <div class="w_name">
  11363. 学生姓名:<span>{{ sStudent.student }}</span>
  11364. </div>
  11365. <div>上传文件</div>
  11366. <div style="display: flex; gap: 10px">
  11367. <div
  11368. class="chapter_add"
  11369. @click="addImg($event)"
  11370. v-if="studyJuri[0].cover.length == 0"
  11371. >
  11372. <div class="up_photo">
  11373. <img src="../../assets/icon/uploadImg.png" alt />
  11374. </div>
  11375. <!-- <input
  11376. type="file"
  11377. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11378. style="display: none"
  11379. @change="beforeUpload1($event, 1)"
  11380. /> -->
  11381. <input
  11382. type="file"
  11383. accept="*"
  11384. style="display: none"
  11385. @change="beforeUpload1($event, 1)"
  11386. />
  11387. <!-- <input
  11388. type="file"
  11389. accept="image/*"
  11390. capture="camera"
  11391. style="display: none"
  11392. @change="beforeUpload1($event, 1)"
  11393. /> -->
  11394. </div>
  11395. <div
  11396. class="chapter_add"
  11397. @click="addImg($event)"
  11398. v-if="studyJuri[0].cover.length == 0"
  11399. >
  11400. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11401. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11402. </div>
  11403. <input
  11404. type="file"
  11405. accept="image/*"
  11406. capture="camera"
  11407. style="display: none"
  11408. @change="beforeUpload1($event, 1)"
  11409. />
  11410. </div>
  11411. </div>
  11412. <!-- capture="camera" -->
  11413. <div
  11414. class="chapter_add"
  11415. style="
  11416. display: flex;
  11417. width: 100%;
  11418. flex-direction: row;
  11419. flex-wrap: wrap;
  11420. justify-content: flex-start;
  11421. padding: 15px 0;
  11422. "
  11423. v-if="studyJuri[0].cover.length > 0"
  11424. >
  11425. <div class="upCover">
  11426. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11427. <img :src="word" alt v-else-if="fileType == 1" />
  11428. <img :src="video" alt v-else-if="fileType == 2" />
  11429. <img :src="word2" alt v-else-if="fileType == 3" />
  11430. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11431. <div class="deleteWord" @click="clean(1)">
  11432. <img src="../../assets/icon/deleteWorks.png" alt />
  11433. </div>
  11434. </div>
  11435. </div>
  11436. </div>
  11437. <div
  11438. class="upload_send"
  11439. @click="addCourseWorksTeacher(taskCount)"
  11440. v-if="!proVisible"
  11441. >
  11442. 提交
  11443. </div>
  11444. </el-dialog>
  11445. <ImgDraw
  11446. :drawShow="drawShow"
  11447. @closeDraw="closeDraw"
  11448. @addImgDraw="addImgDraw"
  11449. :bg="bg"
  11450. ></ImgDraw>
  11451. <el-dialog
  11452. title="表格"
  11453. :visible.sync="dialogVisibleTable"
  11454. :append-to-body="true"
  11455. width="95%"
  11456. :before-close="handleClose"
  11457. class="dialog_diy"
  11458. >
  11459. <el-form>
  11460. <div
  11461. style="
  11462. display: flex;
  11463. align-items: center;
  11464. justify-content: space-between;
  11465. "
  11466. >
  11467. <span>表格内容</span>
  11468. <el-button type="primary" size="small" @click="returnTableText"
  11469. >还原模板</el-button
  11470. >
  11471. </div>
  11472. <Table
  11473. v-model="tableJson.text"
  11474. @change="change"
  11475. v-if="dialogVisibleTable"
  11476. ></Table>
  11477. </el-form>
  11478. <span slot="footer" class="dialog-footer">
  11479. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11480. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11481. </span>
  11482. </el-dialog>
  11483. <el-dialog
  11484. title="表格"
  11485. :visible.sync="dialogVisibleTableTeacher"
  11486. :append-to-body="true"
  11487. width="95%"
  11488. :before-close="handleClose"
  11489. class="dialog_diy"
  11490. >
  11491. <el-form>
  11492. <div class="w_name">
  11493. 学生姓名:<span>{{ sStudent.student }}</span>
  11494. </div>
  11495. <div>表格内容</div>
  11496. <Table
  11497. v-model="tableJson.text"
  11498. @change="change"
  11499. v-if="dialogVisibleTableTeacher"
  11500. ></Table>
  11501. </el-form>
  11502. <span slot="footer" class="dialog-footer">
  11503. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11504. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11505. </span>
  11506. </el-dialog>
  11507. <el-dialog
  11508. title="文档"
  11509. :visible.sync="dialogVisibleWord"
  11510. :append-to-body="true"
  11511. width="95%"
  11512. :before-close="handleClose"
  11513. class="dialog_diy"
  11514. >
  11515. <el-form>
  11516. <div
  11517. style="
  11518. display: flex;
  11519. align-items: center;
  11520. justify-content: space-between;
  11521. "
  11522. >
  11523. <span>文档内容</span>
  11524. <el-button type="primary" size="small" @click="returnWordText"
  11525. >还原模板</el-button
  11526. >
  11527. </div>
  11528. <editor-bar
  11529. v-model="wordJson.text"
  11530. v-if="dialogVisibleWord"
  11531. ></editor-bar>
  11532. </el-form>
  11533. <span slot="footer" class="dialog-footer">
  11534. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11535. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11536. </span>
  11537. </el-dialog>
  11538. <el-dialog
  11539. title="文档"
  11540. :visible.sync="dialogVisibleWordTeacher"
  11541. :append-to-body="true"
  11542. width="95%"
  11543. :before-close="handleClose"
  11544. class="dialog_diy"
  11545. >
  11546. <el-form>
  11547. <div class="w_name">
  11548. 学生姓名:<span>{{ sStudent.student }}</span>
  11549. </div>
  11550. <div>文档内容</div>
  11551. <editor-bar
  11552. v-model="wordJson.text"
  11553. v-if="dialogVisibleWordTeacher"
  11554. ></editor-bar>
  11555. </el-form>
  11556. <span slot="footer" class="dialog-footer">
  11557. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11558. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11559. </span>
  11560. </el-dialog>
  11561. <el-dialog
  11562. title="表格"
  11563. :visible.sync="dialogVisibleTable2"
  11564. :append-to-body="true"
  11565. width="95%"
  11566. :before-close="handleClose"
  11567. class="dialog_diy"
  11568. >
  11569. <el-form>
  11570. <div class="cont" v-html="tableJson.text"></div>
  11571. </el-form>
  11572. <span slot="footer" class="dialog-footer">
  11573. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11574. </span>
  11575. </el-dialog>
  11576. <el-dialog
  11577. title="文档"
  11578. :visible.sync="dialogVisibleTable3"
  11579. :append-to-body="true"
  11580. width="95%"
  11581. :before-close="handleClose"
  11582. class="dialog_diy"
  11583. >
  11584. <el-form>
  11585. <div class="cont" v-html="tableJson.text"></div>
  11586. </el-form>
  11587. <span slot="footer" class="dialog-footer">
  11588. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11589. </span>
  11590. </el-dialog>
  11591. <el-dialog
  11592. title="分组设置"
  11593. :visible.sync="dialogVisibleGroup"
  11594. :append-to-body="true"
  11595. width="95%"
  11596. :before-close="handleClose"
  11597. class="dialog_diy"
  11598. >
  11599. <div v-if="dialogVisibleGroup">
  11600. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11601. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11602. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11603. </div>
  11604. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11605. @click="lockChair">
  11606. 锁定位置
  11607. </div>
  11608. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11609. 解锁位置
  11610. </div> -->
  11611. <div class="group_switch">
  11612. <span>开放选座</span>
  11613. <el-switch
  11614. v-model="islock"
  11615. active-text=""
  11616. class="switchCss"
  11617. @change="lockChair"
  11618. ></el-switch>
  11619. </div>
  11620. <div
  11621. type="primary"
  11622. @click="updateGroup"
  11623. class="returnBtn"
  11624. style="background-color: #225bc7"
  11625. >
  11626. 分组设置
  11627. </div>
  11628. </div>
  11629. <div>
  11630. <div
  11631. class="g_d_box"
  11632. v-if="groupJson.group && groupStudent[toolindex]"
  11633. >
  11634. <div
  11635. class="g_d_group"
  11636. v-for="(g, gindex) in groupJson.group"
  11637. :key="gindex"
  11638. >
  11639. <div class="g_d_group_chair">
  11640. <div v-if="groupJson.number > 1">
  11641. <span
  11642. :class="{
  11643. isChair:
  11644. groupStudent[toolindex][gindex] &&
  11645. groupStudent[toolindex][gindex][0],
  11646. updateChair:
  11647. courseDetail.userid == userid &&
  11648. groupStudent[toolindex][gindex] &&
  11649. groupStudent[toolindex][gindex][0] &&
  11650. groupJson.islock == 2,
  11651. }"
  11652. ><span
  11653. class="updateChairBtn"
  11654. @click="
  11655. updateGroupChair(
  11656. groupStudent[toolindex][gindex] &&
  11657. groupStudent[toolindex][gindex][0]
  11658. )
  11659. "
  11660. >修改</span
  11661. ></span
  11662. ><span>{{
  11663. groupStudent[toolindex][gindex] &&
  11664. groupStudent[toolindex][gindex][0]
  11665. ? groupStudent[toolindex][gindex] &&
  11666. groupStudent[toolindex][gindex][0].name
  11667. : "空位置"
  11668. }}</span>
  11669. </div>
  11670. <div v-if="groupJson.number > 4">
  11671. <span
  11672. :class="{
  11673. isChair:
  11674. groupStudent[toolindex][gindex] &&
  11675. groupStudent[toolindex][gindex][4],
  11676. updateChair:
  11677. courseDetail.userid == userid &&
  11678. groupStudent[toolindex][gindex] &&
  11679. groupStudent[toolindex][gindex][4] &&
  11680. groupJson.islock == 2,
  11681. }"
  11682. ><span
  11683. class="updateChairBtn"
  11684. @click="
  11685. updateGroupChair(
  11686. groupStudent[toolindex][gindex] &&
  11687. groupStudent[toolindex][gindex][4]
  11688. )
  11689. "
  11690. >修改</span
  11691. ></span
  11692. ><span>{{
  11693. groupStudent[toolindex][gindex] &&
  11694. groupStudent[toolindex][gindex][4]
  11695. ? groupStudent[toolindex][gindex] &&
  11696. groupStudent[toolindex][gindex][4].name
  11697. : "空位置"
  11698. }}</span>
  11699. </div>
  11700. <div v-if="groupJson.number > 8">
  11701. <span
  11702. :class="{
  11703. isChair:
  11704. groupStudent[toolindex][gindex] &&
  11705. groupStudent[toolindex][gindex][8],
  11706. updateChair:
  11707. courseDetail.userid == userid &&
  11708. groupStudent[toolindex][gindex] &&
  11709. groupStudent[toolindex][gindex][8] &&
  11710. groupJson.islock == 2,
  11711. }"
  11712. ><span
  11713. class="updateChairBtn"
  11714. @click="
  11715. updateGroupChair(
  11716. groupStudent[toolindex][gindex] &&
  11717. groupStudent[toolindex][gindex][8]
  11718. )
  11719. "
  11720. >修改</span
  11721. ></span
  11722. ><span>{{
  11723. groupStudent[toolindex][gindex] &&
  11724. groupStudent[toolindex][gindex][8]
  11725. ? groupStudent[toolindex][gindex] &&
  11726. groupStudent[toolindex][gindex][8].name
  11727. : "空位置"
  11728. }}</span>
  11729. </div>
  11730. </div>
  11731. <div class="g_d_group_tableBox">
  11732. <div class="g_d_group_chair2">
  11733. <div v-if="groupJson.number > 2">
  11734. <span
  11735. :class="{
  11736. isChair:
  11737. groupStudent[toolindex][gindex] &&
  11738. groupStudent[toolindex][gindex][2],
  11739. updateChair:
  11740. courseDetail.userid == userid &&
  11741. groupStudent[toolindex][gindex] &&
  11742. groupStudent[toolindex][gindex][2] &&
  11743. groupJson.islock == 2,
  11744. }"
  11745. ><span
  11746. class="updateChairBtn"
  11747. @click="
  11748. updateGroupChair(
  11749. groupStudent[toolindex][gindex] &&
  11750. groupStudent[toolindex][gindex][2]
  11751. )
  11752. "
  11753. >修改</span
  11754. ></span
  11755. ><span>{{
  11756. groupStudent[toolindex][gindex] &&
  11757. groupStudent[toolindex][gindex][2]
  11758. ? groupStudent[toolindex][gindex] &&
  11759. groupStudent[toolindex][gindex][2].name
  11760. : "空位置"
  11761. }}</span>
  11762. </div>
  11763. <div v-if="groupJson.number > 6">
  11764. <span
  11765. :class="{
  11766. isChair:
  11767. groupStudent[toolindex][gindex] &&
  11768. groupStudent[toolindex][gindex][6],
  11769. updateChair:
  11770. courseDetail.userid == userid &&
  11771. groupStudent[toolindex][gindex] &&
  11772. groupStudent[toolindex][gindex][6] &&
  11773. groupJson.islock == 2,
  11774. }"
  11775. ><span
  11776. class="updateChairBtn"
  11777. @click="
  11778. updateGroupChair(
  11779. groupStudent[toolindex][gindex] &&
  11780. groupStudent[toolindex][gindex][6]
  11781. )
  11782. "
  11783. >修改</span
  11784. ></span
  11785. ><span>{{
  11786. groupStudent[toolindex][gindex] &&
  11787. groupStudent[toolindex][gindex][6]
  11788. ? groupStudent[toolindex][gindex] &&
  11789. groupStudent[toolindex][gindex][6].name
  11790. : "空位置"
  11791. }}</span>
  11792. </div>
  11793. </div>
  11794. <div class="g_d_group_table">
  11795. <div>
  11796. {{ g.name }}
  11797. </div>
  11798. <div>
  11799. <div
  11800. v-if="
  11801. courseDetail.userid == userid && groupJson.islock == 2
  11802. "
  11803. @click="deleteGroupChair(gindex)"
  11804. >
  11805. 移除组员
  11806. </div>
  11807. <div
  11808. @click="selectGroup(gindex)"
  11809. v-else-if="
  11810. groupStudentUid[toolindex] &&
  11811. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11812. "
  11813. >
  11814. 加入分组
  11815. </div>
  11816. <div
  11817. @click="
  11818. exitGroup(
  11819. groupStudent[toolindex][gindex] &&
  11820. groupStudent[toolindex][gindex][
  11821. groupStudentUid[toolindex][gindex].indexOf(userid)
  11822. ].id
  11823. )
  11824. "
  11825. v-else-if="
  11826. groupStudentUid[toolindex] &&
  11827. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11828. "
  11829. >
  11830. 退出分组
  11831. </div>
  11832. </div>
  11833. </div>
  11834. <div class="g_d_group_chair2">
  11835. <div v-if="groupJson.number > 3">
  11836. <span
  11837. :class="{
  11838. isChair:
  11839. groupStudent[toolindex][gindex] &&
  11840. groupStudent[toolindex][gindex][3],
  11841. updateChair:
  11842. courseDetail.userid == userid &&
  11843. groupStudent[toolindex][gindex] &&
  11844. groupStudent[toolindex][gindex][3] &&
  11845. groupJson.islock == 2,
  11846. }"
  11847. ><span
  11848. class="updateChairBtn"
  11849. @click="
  11850. updateGroupChair(
  11851. groupStudent[toolindex][gindex] &&
  11852. groupStudent[toolindex][gindex][3]
  11853. )
  11854. "
  11855. >修改</span
  11856. ></span
  11857. ><span>{{
  11858. groupStudent[toolindex][gindex] &&
  11859. groupStudent[toolindex][gindex][3]
  11860. ? groupStudent[toolindex][gindex] &&
  11861. groupStudent[toolindex][gindex][3].name
  11862. : "空位置"
  11863. }}</span>
  11864. </div>
  11865. <div v-if="groupJson.number > 7">
  11866. <span
  11867. :class="{
  11868. isChair:
  11869. groupStudent[toolindex][gindex] &&
  11870. groupStudent[toolindex][gindex][7],
  11871. updateChair:
  11872. courseDetail.userid == userid &&
  11873. groupStudent[toolindex][gindex] &&
  11874. groupStudent[toolindex][gindex][7] &&
  11875. groupJson.islock == 2,
  11876. }"
  11877. ><span
  11878. class="updateChairBtn"
  11879. @click="
  11880. updateGroupChair(
  11881. groupStudent[toolindex][gindex] &&
  11882. groupStudent[toolindex][gindex][7]
  11883. )
  11884. "
  11885. >修改</span
  11886. ></span
  11887. ><span>{{
  11888. groupStudent[toolindex][gindex] &&
  11889. groupStudent[toolindex][gindex][7]
  11890. ? groupStudent[toolindex][gindex] &&
  11891. groupStudent[toolindex][gindex][7].name
  11892. : "空位置"
  11893. }}</span>
  11894. </div>
  11895. </div>
  11896. </div>
  11897. <div class="g_d_group_chair">
  11898. <div v-if="groupJson.number > 1">
  11899. <span
  11900. :class="{
  11901. isChair:
  11902. groupStudent[toolindex][gindex] &&
  11903. groupStudent[toolindex][gindex][1],
  11904. updateChair:
  11905. courseDetail.userid == userid &&
  11906. groupStudent[toolindex][gindex] &&
  11907. groupStudent[toolindex][gindex][1] &&
  11908. groupJson.islock == 2,
  11909. }"
  11910. ><span
  11911. class="updateChairBtn"
  11912. @click="
  11913. updateGroupChair(
  11914. groupStudent[toolindex][gindex] &&
  11915. groupStudent[toolindex][gindex][1]
  11916. )
  11917. "
  11918. >修改</span
  11919. ></span
  11920. ><span>{{
  11921. groupStudent[toolindex][gindex] &&
  11922. groupStudent[toolindex][gindex][1]
  11923. ? groupStudent[toolindex][gindex] &&
  11924. groupStudent[toolindex][gindex][1].name
  11925. : "空位置"
  11926. }}</span>
  11927. </div>
  11928. <div v-if="groupJson.number > 5">
  11929. <span
  11930. :class="{
  11931. isChair:
  11932. groupStudent[toolindex][gindex] &&
  11933. groupStudent[toolindex][gindex][5],
  11934. updateChair:
  11935. courseDetail.userid == userid &&
  11936. groupStudent[toolindex][gindex] &&
  11937. groupStudent[toolindex][gindex][5] &&
  11938. groupJson.islock == 2,
  11939. }"
  11940. ><span
  11941. class="updateChairBtn"
  11942. @click="
  11943. updateGroupChair(
  11944. groupStudent[toolindex][gindex] &&
  11945. groupStudent[toolindex][gindex][5]
  11946. )
  11947. "
  11948. >修改</span
  11949. ></span
  11950. ><span>{{
  11951. groupStudent[toolindex][gindex] &&
  11952. groupStudent[toolindex][gindex][5]
  11953. ? groupStudent[toolindex][gindex] &&
  11954. groupStudent[toolindex][gindex][5].name
  11955. : "空位置"
  11956. }}</span>
  11957. </div>
  11958. <div v-if="groupJson.number > 9">
  11959. <span
  11960. :class="{
  11961. isChair:
  11962. groupStudent[toolindex][gindex] &&
  11963. groupStudent[toolindex][gindex][9],
  11964. updateChair:
  11965. courseDetail.userid == userid &&
  11966. groupStudent[toolindex][gindex] &&
  11967. groupStudent[toolindex][gindex][9] &&
  11968. groupJson.islock == 2,
  11969. }"
  11970. ><span
  11971. class="updateChairBtn"
  11972. @click="
  11973. updateGroupChair(
  11974. groupStudent[toolindex][gindex] &&
  11975. groupStudent[toolindex][gindex][9]
  11976. )
  11977. "
  11978. >修改</span
  11979. ></span
  11980. ><span>{{
  11981. groupStudent[toolindex][gindex] &&
  11982. groupStudent[toolindex][gindex][9]
  11983. ? groupStudent[toolindex][gindex] &&
  11984. groupStudent[toolindex][gindex][9].name
  11985. : "空位置"
  11986. }}</span>
  11987. </div>
  11988. </div>
  11989. </div>
  11990. </div>
  11991. </div>
  11992. </div>
  11993. <span slot="footer" class="dialog-footer">
  11994. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11995. </span>
  11996. </el-dialog>
  11997. <el-dialog
  11998. title="分组设置"
  11999. :visible.sync="dialogVisibleGroup2"
  12000. :append-to-body="true"
  12001. width="650px"
  12002. :before-close="handleClose"
  12003. class="dialog_diy"
  12004. >
  12005. <div class="groupBox">
  12006. <div v-if="groupJson2.group" class="groupContent">
  12007. <div class="groupTitle">请设置小组数量及名称</div>
  12008. <div
  12009. v-for="(item, index) in groupJson2.group"
  12010. :key="index"
  12011. class="groupName"
  12012. >
  12013. <span class="groupn">第{{ index + 1 }}组名称:</span>
  12014. <el-input
  12015. v-model="item.name"
  12016. placeholder="请输入名称..."
  12017. style="width: 250px"
  12018. ></el-input>
  12019. <!-- <div class="groupBtn">
  12020. <el-button type="primary" size="small" @click="addGroup(index)">
  12021. 添加</el-button>
  12022. <el-button type="primary" size="small" @click="deleteGroup(index)"
  12023. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  12024. </div> -->
  12025. </div>
  12026. </div>
  12027. <div class="groupContent">
  12028. <div class="groupTitle">请设置每组人数</div>
  12029. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  12030. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  12031. <el-input
  12032. v-model="groupJson2.number"
  12033. style="width: 150px"
  12034. placeholder="请输入2-10的数字"
  12035. @change="numberPan"
  12036. ></el-input>
  12037. </div>
  12038. </div>
  12039. <span slot="footer" class="dialog-footer">
  12040. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  12041. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  12042. </span>
  12043. </el-dialog>
  12044. <el-dialog
  12045. title="作业提交"
  12046. :visible.sync="dialogVisibleGroupWork"
  12047. :append-to-body="true"
  12048. width="500px"
  12049. :before-close="handleClose"
  12050. class="dialog_change"
  12051. >
  12052. <div class="marginT">
  12053. <div>上传文件</div>
  12054. <div
  12055. class="chapter_add"
  12056. @click="addImg($event)"
  12057. v-if="studyJuri[0].cover.length == 0"
  12058. >
  12059. <div class="up_photo">
  12060. <img src="../../assets/icon/uploadImg.png" alt />
  12061. </div>
  12062. <!-- <input
  12063. type="file"
  12064. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12065. style="display: none"
  12066. @change="beforeUpload1($event, 1)"
  12067. /> -->
  12068. <input
  12069. type="file"
  12070. accept="*"
  12071. style="display: none"
  12072. @change="beforeUpload1($event, 1)"
  12073. />
  12074. </div>
  12075. <!-- capture="camera" -->
  12076. <div
  12077. class="chapter_add"
  12078. style="
  12079. display: flex;
  12080. width: 100%;
  12081. flex-direction: row;
  12082. flex-wrap: wrap;
  12083. justify-content: flex-start;
  12084. padding: 15px 0;
  12085. "
  12086. v-if="studyJuri[0].cover.length > 0"
  12087. >
  12088. <div class="upCover">
  12089. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  12090. <img :src="word" alt v-else-if="fileType == 1" />
  12091. <img :src="video" alt v-else-if="fileType == 2" />
  12092. <img :src="word2" alt v-else-if="fileType == 3" />
  12093. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  12094. <div class="deleteWord" @click="clean(1)">
  12095. <img src="../../assets/icon/deleteWorks.png" alt />
  12096. </div>
  12097. </div>
  12098. </div>
  12099. </div>
  12100. <div
  12101. class="upload_send"
  12102. @click="addCourseWorks2(taskCount)"
  12103. v-if="!proVisible"
  12104. >
  12105. 提交
  12106. </div>
  12107. </el-dialog>
  12108. <el-dialog
  12109. title="修改分组"
  12110. :visible.sync="dialogVisibleUpdateGroup"
  12111. :append-to-body="true"
  12112. width="350px"
  12113. :before-close="handleClose"
  12114. class="dialog_diy"
  12115. >
  12116. <div>
  12117. <h2>
  12118. {{ this.updateGroupUser.name }}
  12119. </h2>
  12120. <div style="color: rgb(171 171 171); margin-top: 10px">
  12121. 请选择要进入的分组
  12122. </div>
  12123. <el-radio-group v-model="checkChair">
  12124. <el-radio
  12125. style="display: block; margin-top: 20px"
  12126. v-for="(item, index) in updateGroupArray"
  12127. :label="item.label"
  12128. :key="index"
  12129. >{{ item.name }}</el-radio
  12130. >
  12131. </el-radio-group>
  12132. </div>
  12133. <span slot="footer" class="dialog-footer">
  12134. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  12135. <el-button type="primary" @click="updateChair">确定</el-button>
  12136. </span>
  12137. </el-dialog>
  12138. <el-dialog
  12139. title="移除组员"
  12140. :visible.sync="dialogVisibleDeleteGroup"
  12141. :append-to-body="true"
  12142. width="350px"
  12143. :before-close="handleClose"
  12144. class="dialog_diy"
  12145. >
  12146. <div>
  12147. <h2>
  12148. {{ this.deleteGroupArray.name }}
  12149. </h2>
  12150. <div style="color: rgb(171 171 171); margin-top: 10px">
  12151. 请选择要删除的组员
  12152. </div>
  12153. <el-checkbox-group v-model="checkDeleteGroup">
  12154. <el-checkbox
  12155. style="display: flex; margin-top: 20px"
  12156. v-for="(item, index) in deleteGroupUser"
  12157. :label="item.userid"
  12158. :key="index"
  12159. >{{ item.name }}</el-checkbox
  12160. >
  12161. </el-checkbox-group>
  12162. </div>
  12163. <span slot="footer" class="dialog-footer">
  12164. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12165. <el-button type="primary" @click="deleteChair">确定</el-button>
  12166. </span>
  12167. </el-dialog>
  12168. <el-dialog
  12169. title="批量上传"
  12170. :visible.sync="dialogVisiblePl"
  12171. :append-to-body="true"
  12172. width="700px"
  12173. :before-close="handleClose"
  12174. class="dialog_change"
  12175. >
  12176. <div class="marginT">
  12177. <div class="plworkBox">
  12178. <div
  12179. class="chapter_add"
  12180. style="
  12181. display: flex;
  12182. width: 150px;
  12183. flex-direction: row;
  12184. flex-wrap: wrap;
  12185. justify-content: flex-start;
  12186. margin: 0 10px 10px 0;
  12187. "
  12188. v-for="(item, index) in plworkFile"
  12189. :key="index"
  12190. >
  12191. <div class="upCover2">
  12192. <img
  12193. :src="item.url"
  12194. alt
  12195. v-if="item.fileType == 1"
  12196. @click="previewImg(item.url)"
  12197. />
  12198. <img :src="word" alt v-else-if="item.fileType == 4" />
  12199. <img :src="video" alt v-else />
  12200. <!-- <span class="picName">{{ item.name }}</span> -->
  12201. <!-- <el-input
  12202. v-model="item.username"
  12203. placeholder="请输入学生名字"
  12204. style="margin-top: 10px"
  12205. ></el-input> -->
  12206. <div
  12207. class="pl_select_box"
  12208. @click="
  12209. getUpdateMore(true, checkUpload(), item.username, index)
  12210. "
  12211. >
  12212. {{ getSName(item.username) }}
  12213. </div>
  12214. <!-- <el-select
  12215. style="margin-top: 10px"
  12216. v-model="item.username"
  12217. filterable
  12218. allow-create
  12219. placeholder="请选择学生"
  12220. >
  12221. <el-option
  12222. v-for="item1 in checkUpload()"
  12223. :key="item1.userid"
  12224. :label="item1.name ? item1.name : item1.username"
  12225. :value="item1.userid"
  12226. >
  12227. </el-option>
  12228. </el-select> -->
  12229. <div class="deleteWord" @click="clean2(index)">
  12230. <img src="../../assets/icon/deleteWorks.png" alt />
  12231. </div>
  12232. </div>
  12233. </div>
  12234. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12235. <div class="up_photo2">
  12236. <img src="../../assets/icon/plwork.png" alt />
  12237. <span>点击上传文件</span>
  12238. </div>
  12239. <input
  12240. type="file"
  12241. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12242. multiple="multiple"
  12243. style="display: none"
  12244. @change="beforeUpload3($event, 6)"
  12245. />
  12246. </div>
  12247. </div>
  12248. </div>
  12249. <!-- capture="camera" -->
  12250. <div
  12251. class="upload_send"
  12252. @click="addCourseWorksPl(taskCount)"
  12253. v-if="!proVisible2"
  12254. >
  12255. 提交
  12256. </div>
  12257. </el-dialog>
  12258. <el-dialog
  12259. title="修改名称"
  12260. :visible.sync="dialogVisibleSname"
  12261. width="500px"
  12262. :before-close="handleClose"
  12263. class="dialog_diy"
  12264. center
  12265. >
  12266. <div
  12267. style="
  12268. text-align: center;
  12269. display: flex;
  12270. align-items: center;
  12271. justify-content: center;
  12272. "
  12273. >
  12274. <span class="tian1">名称</span>
  12275. <div
  12276. class="pl_select_box"
  12277. style="margin-left: 10px; width: 200px"
  12278. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12279. >
  12280. {{ getSName(worksSName) }}
  12281. </div>
  12282. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12283. placeholder="请选择学生">
  12284. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12285. :value="item.userid">
  12286. </el-option>
  12287. </el-select> -->
  12288. <!-- <el-input
  12289. v-model="worksSName"
  12290. style="width: 250px; margin: 15px 0px"
  12291. ></el-input> -->
  12292. </div>
  12293. <span slot="footer" class="dialog-footer">
  12294. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12295. <el-button type="primary" @click="updateName">确 定</el-button>
  12296. </span>
  12297. </el-dialog>
  12298. <el-dialog
  12299. title="英语写作"
  12300. :visible.sync="engDialogVisible"
  12301. :append-to-body="true"
  12302. width="800px"
  12303. :before-close="handleClose"
  12304. class="dialog_diy"
  12305. >
  12306. <onlineWrite
  12307. v-if="engDialogVisible"
  12308. :englishList="englishList"
  12309. :myAnswerList1="myAnswerList1"
  12310. ref="engJson"
  12311. ></onlineWrite>
  12312. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12313. <el-button @click="engDialogVisible = false">取 消</el-button>
  12314. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12315. </span>
  12316. </el-dialog>
  12317. <el-dialog
  12318. title="英语写作"
  12319. :visible.sync="engUpdateDialogVisible"
  12320. :append-to-body="true"
  12321. width="800px"
  12322. :before-close="handleClose"
  12323. class="dialog_diy fullStyle"
  12324. >
  12325. <div class="engUpBox">
  12326. <div class="engUpTop">
  12327. <div class="engTitle">
  12328. <div>作文题目:</div>
  12329. <div>{{ englishList1.engTitle }}</div>
  12330. </div>
  12331. <div class="engText">
  12332. <div>作文内容:</div>
  12333. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12334. </div>
  12335. </div>
  12336. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12337. <div class="oldBox">
  12338. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12339. <div class="oldText">
  12340. <div class="detailBox">
  12341. <div class="oldDetail">
  12342. <div>标题:</div>
  12343. <div>{{ oldEnglishJson.engTitle }} </div>
  12344. </div>
  12345. <div class="oldDetail1">
  12346. <div>正文:</div>
  12347. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12348. </div>
  12349. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12350. <div>图片:</div>
  12351. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12352. </div>
  12353. </div>
  12354. </div>
  12355. </div>
  12356. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12357. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12358. <div class="oldText">
  12359. <div class="detailBox" style="position: relative;">
  12360. <div class="oldDetail">
  12361. <div>标题:</div>
  12362. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12363. <div v-else v-html="newEnglishList.engTitle"></div>
  12364. </div>
  12365. <div class="oldDetail">
  12366. <div>正文:</div>
  12367. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12368. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12369. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12370. </div>
  12371. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12372. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12373. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12374. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12375. </div>
  12376. </div>
  12377. </div>
  12378. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12379. <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">
  12380. <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>
  12381. <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>
  12382. </div>
  12383. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12384. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12385. <div class="detailBox" style="position: relative;">
  12386. <div class="oldDetail">
  12387. <div>标题:</div>
  12388. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12389. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12390. </div>
  12391. <div class="oldDetail">
  12392. <div>正文:</div>
  12393. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12394. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12395. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  12396. </div>
  12397. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12398. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12399. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12400. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12401. </div>
  12402. </div>
  12403. <div class="oldText" v-else-if="newEngIndex == -1">
  12404. <div class="detailBox" style="position: relative;">
  12405. <div class="oldDetail">
  12406. <div>标题:</div>
  12407. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12408. <div v-else v-html="newEnglishList.engTitle"></div>
  12409. </div>
  12410. <div class="oldDetail">
  12411. <div>正文:</div>
  12412. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12413. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12414. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12415. </div>
  12416. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12417. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12418. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12419. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12420. </div>
  12421. </div>
  12422. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  12423. <div class="detailBox" style="position: relative;">
  12424. <div class="oldDetail">
  12425. <div>标题:</div>
  12426. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12427. <div v-else>
  12428. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  12429. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12430. </div>
  12431. </div>
  12432. <div class="oldDetail">
  12433. <div>正文:</div>
  12434. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  12435. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12436. <div v-else>
  12437. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12438. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12439. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  12440. </div>
  12441. </div>
  12442. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12443. <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>
  12444. <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>
  12445. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12446. </div>
  12447. </div>
  12448. </div>
  12449. </div>
  12450. </div>
  12451. <span slot="footer" class="dialog-footer">
  12452. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12453. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12454. </span>
  12455. </el-dialog>
  12456. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12457. <interVideo
  12458. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12459. :videoJson="videoJson"
  12460. :userid="userid"
  12461. :id="id"
  12462. :courseType="courseType"
  12463. :taskCount="taskCount"
  12464. :toolindex="toolindex"
  12465. :videoType="videoType"
  12466. ></interVideo>
  12467. <UpdateMore
  12468. :dialogVisibleMember.sync="dialogVisibleMember"
  12469. :cList="uploadStudentJuri"
  12470. :userid="userid"
  12471. :searchTN="worksSName2"
  12472. @setPlname="setPlname"
  12473. ></UpdateMore>
  12474. <!-- <wordCloud
  12475. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12476. :data="wordCloudData"
  12477. ></wordCloud> -->
  12478. <el-dialog
  12479. title="词云"
  12480. :visible.sync="dialogVisibleWordCloud"
  12481. width="30%"
  12482. class="dialog_diy"
  12483. :before-close="handleClose">
  12484. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12485. </el-dialog>
  12486. <el-dialog
  12487. title="挑人"
  12488. :visible.sync="dialogVisiblePickPeople"
  12489. width="650px"
  12490. :before-close="handleClose"
  12491. class="dialog_diy"
  12492. center
  12493. >
  12494. <div class="pick_box">
  12495. <div
  12496. class="noWorksName"
  12497. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12498. v-for="(item, index) in uploadStudentJuri"
  12499. :key="index"
  12500. @click="pickStudent(item)"
  12501. >
  12502. {{ item.name }}
  12503. </div>
  12504. </div>
  12505. </el-dialog>
  12506. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12507. :englishVoiceJson='englishVoiceJson'
  12508. :userid="userid"
  12509. :id="id"
  12510. :courseType="courseType"
  12511. :taskCount="taskCount"
  12512. :toolindex="toolindex"
  12513. @selectSWorks="selectSWorks"
  12514. @selectStudent="selectStudent"
  12515. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12516. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12517. :userid="userid"
  12518. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12519. :commentDetail="commentDetail"
  12520. :courseDetail="courseDetail"
  12521. :wScore="wScore"
  12522. :scoreDetail="scoreDetail"
  12523. @selectSWorks="selectSWorks"
  12524. @selectStudent="selectStudent"></checkEnglishVoice>
  12525. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12526. <choseWorksDetailDialog
  12527. ref="choseWorksDetailDialogRef"
  12528. :worksStudentData="worksStudent"
  12529. :noWorksSData="noWorksS"
  12530. :chapInfoListData="chapInfoList"
  12531. :courseType="courseType"
  12532. :taskCount="taskCount"
  12533. :tType="tType"
  12534. :sIsOpen="sIsOpen"
  12535. :courseDetail="courseDetail"
  12536. :groupStudent2="groupStudent"
  12537. :groupStudentUid2="groupStudentUid"
  12538. :oid="oid"
  12539. :org="org"
  12540. @getCourseDetail="getCourseDetail"
  12541. @selectSLook="selectSLook"
  12542. @selectSWorks="selectSWorks"
  12543. @selectStudent="selectStudent"
  12544. @deleteWorks="deleteWorks"
  12545. @openTools="openTools"
  12546. @openWord="openWord"
  12547. @openScore="openScore"
  12548. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12549. />
  12550. <el-dialog
  12551. :visible.sync="confirmOpenDig"
  12552. width="500px"
  12553. :modal="false"
  12554. class="confirmOpenDigCss dialog_diyCopy"
  12555. :before-close="handleClose">
  12556. <div style="display: flex;align-items: center;">
  12557. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  12558. <span>“{{ courseDetail.title }}”开课啦</span>
  12559. </div>
  12560. <div style="margin: 20px 0 35px;">
  12561. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12562. <div>要认真听讲哦~</div>
  12563. </div>
  12564. <div style="text-align: center;">
  12565. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12566. </div>
  12567. </el-dialog>
  12568. <appStoreC ref="appStoreC"
  12569. :sStudent="sStudent"
  12570. :courseType="courseType"
  12571. :taskCount="taskCount"
  12572. :toolindex="toolindex"
  12573. @selectSWorks="selectSWorks"
  12574. @selectStudent="selectStudent"
  12575. ></appStoreC>
  12576. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  12577. </div>
  12578. </template>
  12579. <script>
  12580. import "../../common/aws-sdk-2.235.1.min.js";
  12581. // import pdf from "../components/pdf3";
  12582. import pdf from "../components/vpdf";
  12583. import AskStatic from "../components/askStatic";
  12584. import AskStatic2 from "../components/askStatic2";
  12585. import AnswerData2 from "../components/answerData2";
  12586. import AnswerData from "../components/answerData";
  12587. import sortToolWorkShow from "../components/sortToolWorkShow.vue";
  12588. import EditorBar from "../tools/wangEnduit.vue";
  12589. import Table from "../tools/table.vue";
  12590. import Time from "../tools/time.vue";
  12591. import Mind from "../tools/jsmind.vue";
  12592. import Sunburst from "../tools/sunburst";
  12593. import SeeBoard from "../tools/seeBoard";
  12594. import * as imageConversion from "image-conversion";
  12595. import Audio from "../components/audio.vue";
  12596. import ImgDraw from "../tools/imgDraw/imgDraw";
  12597. import { Empty } from "element-ui";
  12598. import RecordRTC from "recordrtc";
  12599. import interVideo from "../interVideo/index.vue";
  12600. import UpdateMore from "../updateMore/updateMore.vue";
  12601. import wordCloud from "../wordCloud/index.vue";
  12602. import axios from "axios";
  12603. import JSZip from "jszip";
  12604. import FileSaver from "file-saver";
  12605. import onlineWrite from "./commpont/onlineWrite";
  12606. import englishEva from "../components/englishEva";
  12607. import * as Diff from 'diff'
  12608. import EnglishVoice from '../EnglishVoice2/index.vue'
  12609. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  12610. import correctText from '../components/correctText.vue'
  12611. import scoreItem from '../scoreList/scoreItem.vue'
  12612. import scoreZong from '../scoreZong/index.vue'
  12613. import classRoomHelper from '../classRoomHelper/index.vue'
  12614. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  12615. import MarkdownIt from "markdown-it";
  12616. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  12617. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  12618. import { v4 as uuidv4 } from "uuid";
  12619. var OpenCC = require("opencc-js");
  12620. import choseWordCloud from '../components/choseWordCloud.vue'
  12621. import appStoreC from "../components/appStoreC.vue";
  12622. import cocoFlowDia from "../components/cocoFlowDia.vue";
  12623. import { myMixin } from "@/mixins/mixin.js"
  12624. import { tools as toolsList } from "@/common/tools2.js";
  12625. import katex from 'katex'
  12626. import 'katex/dist/katex.min.css'
  12627. let converter = OpenCC.Converter({
  12628. from: "hk",
  12629. to: "cn"
  12630. });
  12631. const getFile = (url) => {
  12632. return new Promise((resolve, reject) => {
  12633. var credentials = {
  12634. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12635. secretAccessKey: "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",
  12636. }; //秘钥形式的登录上传
  12637. window.AWS.config.update(credentials);
  12638. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12639. let url2 = url;
  12640. let _url2 = "";
  12641. if (
  12642. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12643. ) {
  12644. _url2 = url2.split(
  12645. "https://view.officeapps.live.com/op/view.aspx?src="
  12646. )[1];
  12647. } else {
  12648. _url2 = url2;
  12649. }
  12650. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12651. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12652. var params = {
  12653. Bucket: "ccrb",
  12654. Key: name
  12655. };
  12656. s3.getObject(params, function (err, data) {
  12657. if (err) {
  12658. console.log(err, err.stack)
  12659. resolve({ data: 1 });
  12660. }else {
  12661. resolve({ data: data.Body });
  12662. console.log(data);
  12663. } // sxuccessful response
  12664. });
  12665. // axios({
  12666. // method: "get",
  12667. // url,
  12668. // responseType: "blob",
  12669. // })
  12670. // .then((data) => {
  12671. // resolve({ data: data.data });
  12672. // })
  12673. // .catch((error) => {
  12674. // resolve({ data: 1 });
  12675. // // reject(error.toString());
  12676. // });
  12677. });
  12678. };
  12679. export default {
  12680. mixins: [ myMixin ],
  12681. components: {
  12682. choseWordCloud,
  12683. EditorBar,
  12684. Time,
  12685. pdf,
  12686. AskStatic,
  12687. AskStatic2,
  12688. Mind,
  12689. Sunburst,
  12690. SeeBoard,
  12691. AnswerData2,
  12692. AnswerData,
  12693. sortToolWorkShow,
  12694. Audio,
  12695. ImgDraw,
  12696. Table,
  12697. interVideo,
  12698. UpdateMore,
  12699. wordCloud,
  12700. onlineWrite,
  12701. englishEva,
  12702. EnglishVoice,
  12703. checkEnglishVoice,
  12704. correctText,
  12705. scoreItem,
  12706. classRoomHelper,
  12707. scoreZong,
  12708. statisticalAnalysis,
  12709. choseWorksDetailDialog,
  12710. appStoreC,
  12711. cocoFlowDia,
  12712. studentClassRoomHelper
  12713. },
  12714. data() {
  12715. return {
  12716. startTime: "",
  12717. // 是否允许学生查看内容资料 2不可以 1可以
  12718. IsStulook:false,
  12719. homeWorkLoading:false,
  12720. toolsList: toolsList,
  12721. wordCloudKey: 0,
  12722. bg: null,
  12723. drawShow: false,
  12724. dialogVisible: false,
  12725. dialogVisiblePl: false,
  12726. commentDialogVisible: false,
  12727. dialogVisibleMember: false,
  12728. dialogVisibleWordCloud: false,
  12729. videoVisible: false,
  12730. isStar: false,
  12731. studentEvalDialogVisible: false,
  12732. studentEvalDialogVisibleTeacher: false,
  12733. dialogVisibleSelect: false,
  12734. dialogVisibleSelectTeacher: false,
  12735. dialogVisibleScore: false,
  12736. dialogVisibleENScore: false,
  12737. dialogVisibleSentence: false,
  12738. dialogVisibleSentenceTeacher: false,
  12739. dialogVisibleSentence1: false,
  12740. dialogVisibleWorks: false,
  12741. dialogVisibleTable: false,
  12742. dialogVisibleTableTeacher: false,
  12743. dialogVisibleWord: false,
  12744. dialogVisibleWordTeacher: false,
  12745. dialogVisibleTable2: false,
  12746. dialogVisibleTable3: false,
  12747. dialogVisibleGroupWork: false,
  12748. dialogVisibleUpdateGroup: false,
  12749. dialogVisibleDeleteGroup: false,
  12750. dialogVisibleSname: false,
  12751. dialogVisibleVideo: false,
  12752. dialogVisiblePickPeople: false,
  12753. worksSName: "",
  12754. classJuri: [],
  12755. uploadStudentJuri: [],
  12756. uploadCid: "",
  12757. snameWid: "",
  12758. sStudent: {},
  12759. sTool: "",
  12760. bzText: "",
  12761. commentDetail: [],
  12762. selectAnswer: [],
  12763. videoDetail: {},
  12764. selectJson: {},
  12765. eScore: { eBzText: "", eStar: [] },
  12766. id: this.$route.query.courseId,
  12767. userid: this.$route.query.userid,
  12768. classId: this.$route.query.cid,
  12769. role: this.$route.query.role,
  12770. // courseTypeLine: this.$route.query.type,
  12771. oid: this.$route.query.oid,
  12772. org: this.$route.query.org,
  12773. tType: this.$route.query.tType,
  12774. courseType: this.$route.query.type,
  12775. screenType: this.$route.query.screenType,
  12776. tcid2: this.$route.query.tcid,
  12777. tcid: "",
  12778. pptImgUrl: "",
  12779. pptImgUrl1: "",
  12780. commentText: "",
  12781. full: false,
  12782. sIsOpen: false,
  12783. IsLookOpen: false,
  12784. IsFollow: false,
  12785. pzDialog: false,
  12786. contentDialog: false,
  12787. mlDialog: false,
  12788. type: 1,
  12789. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12790. sentenceList1: [],
  12791. tableJson: [],
  12792. tableJsonO: [],
  12793. wordJson: [],
  12794. wordJsonO: [],
  12795. vedio: [],
  12796. text: [],
  12797. textList: [],
  12798. line: [],
  12799. lineList: [],
  12800. chapTools: [],
  12801. chapToolList: [],
  12802. file: [],
  12803. fileC: [],
  12804. vedioTime: [],
  12805. upToolImg: "",
  12806. preTime: 0,
  12807. rateList: {
  12808. ca: 0,
  12809. },
  12810. rateParams: [],
  12811. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12812. studyJuri: [
  12813. {
  12814. content: "",
  12815. cover: [],
  12816. upVedio: [],
  12817. upFile: [],
  12818. },
  12819. ],
  12820. isClose: 0,
  12821. plworkFile: [],
  12822. mr: require("../../assets/vedioPic.png"),
  12823. word: require("../../assets/icon/isWord.png"),
  12824. word2: require("../../assets/icon/word2.png"),
  12825. video: require("../../assets/icon/isVideo.png"),
  12826. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12827. likes: require("../../assets/icon/comment/likes.png"),
  12828. scoreImg: require("../../assets/score.png"),
  12829. courseDetail: {},
  12830. reply: "",
  12831. isSelect: false,
  12832. chapInfo: [],
  12833. chapInfoList: [],
  12834. taskCount: 0,
  12835. imgList: [],
  12836. noImgList: [],
  12837. pzList: [],
  12838. timeWorkList: [],
  12839. PlTextList: [
  12840. "Excellent!",
  12841. "nice!",
  12842. "很有创意!",
  12843. "还不错哦~",
  12844. "继续努力哦~",
  12845. ],
  12846. isClickNav: "",
  12847. navId: "",
  12848. playerOptions: {
  12849. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12850. autoplay: false, //如果true,浏览器准备好时开始回放。
  12851. muted: false, // 默认情况下将会消除任何音频。
  12852. loop: false, // 导致视频一结束就重新开始。
  12853. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12854. language: "zh-CN",
  12855. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12856. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12857. sources: [
  12858. {
  12859. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12860. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12861. },
  12862. ],
  12863. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12864. // poster: dataRes.imgUrl, //你的封面地址
  12865. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12866. controlBar: {
  12867. timeDivider: true, //当前时间和持续时间的分隔符
  12868. durationDisplay: true, //显示持续时间
  12869. remainingTimeDisplay: false, //是否显示剩余时间功能
  12870. fullscreenToggle: true, //全屏按钮
  12871. },
  12872. },
  12873. playerOptions1: {
  12874. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12875. autoplay: false, //如果true,浏览器准备好时开始回放。
  12876. muted: false, // 默认情况下将会消除任何音频。
  12877. loop: false, // 导致视频一结束就重新开始。
  12878. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12879. language: "zh-CN",
  12880. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12881. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12882. sources: [
  12883. {
  12884. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12885. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12886. },
  12887. ],
  12888. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12889. // poster: dataRes.imgUrl, //你的封面地址
  12890. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12891. controlBar: {
  12892. timeDivider: true, //当前时间和持续时间的分隔符
  12893. durationDisplay: true, //显示持续时间
  12894. remainingTimeDisplay: false, //是否显示剩余时间功能
  12895. fullscreenToggle: true, //全屏按钮
  12896. },
  12897. },
  12898. playerO: {},
  12899. noneBtnImg: false,
  12900. proVisible: false,
  12901. proVisible2: false,
  12902. progress: 0,
  12903. isFinishSize: 0,
  12904. isAllSize: 0,
  12905. questionAnswer: "",
  12906. answerQ: "", //问答标题
  12907. rateJson: [],
  12908. wbCount: 0,
  12909. wordCount: 0,
  12910. mindCount: 0,
  12911. askCount: 0,
  12912. noteCount: 0,
  12913. mindNetWorkCount: 0,
  12914. libraryCount: 0,
  12915. workCount: 0,
  12916. timeCount: 0,
  12917. answerCount: 0,
  12918. trainCount: 0,
  12919. evalCount: 0,
  12920. dialogImageUrl: "",
  12921. pictureDialog: false,
  12922. toolTypeList: [],
  12923. dialogVisible1: false,
  12924. dialogVisible2: false,
  12925. dialogVisible3: false,
  12926. dialogVisible6: false,
  12927. dialogVisible4: false,
  12928. isNoHomeWork: false,
  12929. dialogVisible5: false,
  12930. dialogVisible5Teacher: false,
  12931. dialogVisibleChoice: false,
  12932. dialogVisibleChoiceTeacher: false,
  12933. answerDialogVisible: false,
  12934. answerDialogVisibleTeacher: false,
  12935. juriVisible: false,
  12936. timeDialogVisible: false,
  12937. replyDialogVisible: false,
  12938. toolDialogVisible: false,
  12939. engDialogVisible: false,
  12940. engUpdateDialogVisible:false,
  12941. engEvaDialogVisible: false,
  12942. evaEngJson: {
  12943. teacherJson: {},
  12944. studentJson: {},
  12945. message: {},
  12946. },
  12947. isNoUserid:false,
  12948. engListLength:0,
  12949. engWid:"",
  12950. newEnglishList:{
  12951. engTitle:"",
  12952. engText:"",
  12953. },
  12954. newEnglishList1:[],
  12955. oldEnglishJson:{},
  12956. oldEnglishJson1:{},
  12957. englishList1:{},
  12958. englishList:{},
  12959. myAnswerList1:{},
  12960. topHeight:0,
  12961. newEngIndex:-1,
  12962. englishToolIndex:0,
  12963. userMes:{},
  12964. englishToolIndex:0,
  12965. replyIndex: 0,
  12966. replyPid: "",
  12967. radio: [],
  12968. isAsk: false,
  12969. askJson: {
  12970. askCount: 1,
  12971. askTitle: "",
  12972. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12973. },
  12974. testJson: {},
  12975. englishList: {},
  12976. topHeight:0,
  12977. checkJson: [],
  12978. askList: [],
  12979. answerList: [],
  12980. navList: [],
  12981. addPzDialog: false,
  12982. pzConText: "",
  12983. worksStudent: [],
  12984. isCloseList: [],
  12985. workStudent: [],
  12986. groupStudent: [],
  12987. groupStudentUid: [],
  12988. noWorksS: [],
  12989. isWorksS: [],
  12990. noWorksStudent: [],
  12991. toolindex: 0,
  12992. toolDetailIndex: null,
  12993. groupIndex: 0,
  12994. workTypeB: false,
  12995. workTypeC: false,
  12996. isAnswer: false,
  12997. isHovered: false,
  12998. isHovered1: false,
  12999. isHovered2: false,
  13000. commentTagShow:0,
  13001. timer: null,
  13002. timer2: null,
  13003. opertimer: null,
  13004. showType: '',
  13005. fileType: 0,
  13006. showPDF: false,
  13007. noteName: "",
  13008. evaJuri: [],
  13009. evalua: "",
  13010. eTitle: "",
  13011. eName: "",
  13012. eJson: {},
  13013. fid: "", //一级
  13014. sid: "", //二级
  13015. tid: "", //二级
  13016. typeMode: 1,
  13017. eJSONNum: 0,
  13018. Etype: 1,
  13019. data: {
  13020. meta: {
  13021. name: "example",
  13022. author: "dd@163.com",
  13023. version: "0.2",
  13024. },
  13025. format: "node_array",
  13026. data: [{ id: "root", isroot: true, topic: "" }],
  13027. },
  13028. fullDialogVisible: false,
  13029. fulltype: "",
  13030. fullUrl: "",
  13031. commentIndexJson: {},
  13032. Stbodywidth: 0,
  13033. ispzType: 0,
  13034. pzType: 1,
  13035. wScore: 0,
  13036. scoreDetail: "",
  13037. videoStart: false,
  13038. recorder: null,
  13039. groupJson: {},
  13040. islock: false,
  13041. groupJson2: {},
  13042. dialogVisibleGroup: false,
  13043. dialogVisibleGroup2: false,
  13044. updateGroupArray: [],
  13045. updateGroupUser: {},
  13046. deleteGroupUser: [],
  13047. deleteGroupArray: {},
  13048. checkChair: "",
  13049. checkDeleteGroup: [],
  13050. inviteCode: "",
  13051. courseGroupStudent: [],
  13052. courseGroupStudentUid: [],
  13053. courseGroup: {},
  13054. isGroup: false,
  13055. toolIndex: null,
  13056. tool: {},
  13057. isWorkTool: [
  13058. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  13059. ], //, 40
  13060. videoJson: {},
  13061. videoType:0,
  13062. toolType: 0,
  13063. checktoolArray: [],
  13064. vChapterData: [],
  13065. isUpdateToolDetail: false,
  13066. isUpdateToolDetail1: false,
  13067. updateToolDetailInner: "",
  13068. checkboxList: [],
  13069. plIndex: "",
  13070. worksSName2: "",
  13071. worksSid: "",
  13072. wordCloudData: [],
  13073. isPickStudent: [],
  13074. pzStype: 1,
  13075. myAnList: {},
  13076. downLoading: false,
  13077. greyType: false,
  13078. correctWord: [],
  13079. EnglishVoiceDialog: false,
  13080. englishVoiceJson: {},
  13081. englishVoiceJsonWork:[],
  13082. scoreList:{
  13083. listdata:[],
  13084. isScoreList:[],
  13085. },
  13086. classRoomHelperWidth: '85px',
  13087. orgArray:[],
  13088. oidArray:[],
  13089. splitScreenData:{
  13090. isOpen:false,
  13091. userId:"",
  13092. uid:"",
  13093. myUid:"",
  13094. loading:false,
  13095. behavior:null,
  13096. },
  13097. confirmOpenDig:false,
  13098. confirmOpenDigData:'',
  13099. diffKey:"1",
  13100. getCourseGroupLoading: false,
  13101. selectSWorksLoading:false,
  13102. selectStudentLoading:false,
  13103. selectSLookLoading:false,
  13104. getPickLoading:false,
  13105. selectPzLoading:false,
  13106. getSplitScreenDataLoading:false,
  13107. };
  13108. },
  13109. methods: {
  13110. //查看应用中心作业
  13111. openCocoFlow(w){
  13112. this.$refs.cocoFlowDiaRef.openAppWork(w)
  13113. },
  13114. getAIJ(){
  13115. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  13116. let oid = res.data[0];
  13117. let org = res.data[1];
  13118. let oidArray = [];
  13119. let orgArray = [];
  13120. oid.forEach(i=>oidArray.push(i.oid))
  13121. org.forEach(i=>orgArray.push(i.oid))
  13122. this.orgArray = orgArray;
  13123. this.oidArray = oidArray;
  13124. })
  13125. },
  13126. insertMemorandum(_html){//保存行为操作
  13127. //variable
  13128. //btn
  13129. let params = [{
  13130. uid:this.userid,
  13131. courseId:this.id+(this.tcid2?this.tcid2:''),
  13132. content:_html
  13133. }]
  13134. console.log(params)
  13135. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  13136. if(res.data==1){
  13137. console.log('保存操作成功')
  13138. }else{
  13139. console.log('保存操作失败')
  13140. }
  13141. }).catch(e=>{
  13142. console.log('保存操作失败')
  13143. console.log(e)
  13144. })
  13145. },
  13146. gx(){
  13147. this.$forceUpdate();
  13148. },
  13149. isUpdateCorrect(t,p){
  13150. if(this.greyType == false){
  13151. this.isUpdateText = t;
  13152. this.greyType = true;
  13153. }else{
  13154. if(p == 1){
  13155. this.newEnglishList.engText = this.isUpdateText;
  13156. }else if(p == 2){
  13157. this.oldEnglishJson1.engText = this.isUpdateText;
  13158. }else if(p == 3){
  13159. this.newEnglishList.engText = this.isUpdateText;
  13160. }else{
  13161. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  13162. }
  13163. this.greyType = false
  13164. }
  13165. },
  13166. aiCorrect(t,p){
  13167. let aiText = "";
  13168. const loading = this.$loading.service({
  13169. background: "rgba(255, 255, 255)",
  13170. target: document.querySelectorAll(".loadingText")[0],
  13171. });
  13172. let param = {
  13173. model: "gpt-3.5-turbo",
  13174. temperature: 0,
  13175. max_tokens: 2048,
  13176. top_p: 1,
  13177. frequency_penalty: 0,
  13178. presence_penalty: 0,
  13179. messages: [
  13180. {
  13181. role: "user",
  13182. content:
  13183. `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  13184. },
  13185. ],
  13186. uid: this.userid,
  13187. stream: false,
  13188. };
  13189. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13190. (res) => {
  13191. if (
  13192. res.data.FunctionResponse &&
  13193. res.data.FunctionResponse.result &&
  13194. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13195. ) {
  13196. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13197. return;
  13198. }
  13199. aiText =
  13200. res.data.FunctionResponse.choices[0].message.content;
  13201. aiText = aiText.replace(/%/g,"%25");
  13202. // let w = "";
  13203. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13204. // for(var k = 0;k<a.length;k++){
  13205. // //diffWordsWithSpace
  13206. // if(a.length > 1){
  13207. // if(a[k].added == true){
  13208. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13209. // }else if(a[k].removed == true){
  13210. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13211. // }else{
  13212. // w += '<span>' + a[k].value + '</span>';
  13213. // }
  13214. // }else{
  13215. // if(p == 1){
  13216. // w = this.newEnglishList.engText;
  13217. // }else if(p == 2){
  13218. // w = this.oldEnglishJson1.engText;
  13219. // }else if(p == 3){
  13220. // w = this.newEnglishList.engText;
  13221. // }else{
  13222. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13223. // }
  13224. // }
  13225. // }
  13226. if(p == 1){
  13227. this.newEnglishList.engText = aiText;
  13228. }else if(p == 2){
  13229. this.oldEnglishJson1.engText = aiText;
  13230. }else if(p == 3){
  13231. this.newEnglishList.engText = aiText;
  13232. }else{
  13233. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13234. }
  13235. loading.close();
  13236. },
  13237. (err) => {
  13238. console.log(err);
  13239. loading.close();
  13240. }
  13241. );
  13242. },
  13243. addToolChoose() {
  13244. if (!this.checktoolArray.length) {
  13245. this.$message.error("请选择要添加的任务");
  13246. return;
  13247. }
  13248. if (
  13249. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13250. this.taskCount
  13251. ].toolChoose[0].tool.length
  13252. ) {
  13253. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13254. this.taskCount
  13255. ].toolChoose[0].tool = this.checktoolArray;
  13256. } else {
  13257. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13258. this.taskCount
  13259. ].toolChoose.push({
  13260. tool: this.checktoolArray,
  13261. toolDetail: "",
  13262. toolType: 0,
  13263. askCount: 1,
  13264. askTitle: "",
  13265. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13266. });
  13267. }
  13268. let params = [
  13269. {
  13270. cid: this.id,
  13271. chapters: JSON.stringify(this.chapInfoList),
  13272. uid: this.userid,
  13273. unitIndex: this.courseType,
  13274. },
  13275. ];
  13276. this.ajax
  13277. .post(this.$store.state.api + "updateWorkNew4", params)
  13278. .then((res) => {
  13279. this.$message({
  13280. message: "添加成功",
  13281. type: "success",
  13282. });
  13283. this.checktoolArray = [];
  13284. this.getCourseDetail(2);
  13285. this.checkBz(
  13286. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13287. this.taskCount
  13288. ].toolChoose.length - 1
  13289. );
  13290. this.toolDialogVisible = false;
  13291. this.refreshCourse();
  13292. this.$forceUpdate();
  13293. })
  13294. .catch((err) => {
  13295. console.error(err);
  13296. });
  13297. },
  13298. checkBz(index) {
  13299. this.isUpdateToolDetail = false;
  13300. this.$forceUpdate();
  13301. setTimeout(() => {
  13302. document.scrollingElement.scrollTop =
  13303. document.querySelectorAll(".filebox")[index].offsetTop +
  13304. document.querySelector(".student_body").offsetTop;
  13305. }, 500);
  13306. },
  13307. updateToolDetail(i, type) {
  13308. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  13309. this.toolDetailIndex = i
  13310. this.isUpdateToolDetail1 = true;
  13311. setTimeout(() => {
  13312. this.updateToolDetailInner = JSON.parse(
  13313. JSON.stringify(
  13314. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13315. this.taskCount
  13316. ].toolChoose[i].toolDetail
  13317. )
  13318. );
  13319. document.querySelector(".checkTextArea").focus();
  13320. }, 0);
  13321. } else if((this.isUpdateToolDetail1 && type != 2)){
  13322. // this.toolDetailIndex = i;
  13323. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13324. this.taskCount
  13325. ].toolChoose[i].toolDetail = JSON.parse(
  13326. JSON.stringify(this.updateToolDetailInner)
  13327. );
  13328. let params = [
  13329. {
  13330. cid: this.id,
  13331. chapters: JSON.stringify(this.chapInfoList),
  13332. uid: this.userid,
  13333. unitIndex: this.courseType,
  13334. },
  13335. ];
  13336. this.ajax
  13337. .post(this.$store.state.api + "updateWorkNew4", params)
  13338. .then((res) => {
  13339. this.isUpdateToolDetail1 = false;
  13340. this.$message({
  13341. message: "修改成功",
  13342. type: "success",
  13343. });
  13344. this.toolDetailIndex = null;
  13345. this.updateToolDetailInner = "";
  13346. this.getCourseDetail(2);
  13347. this.$forceUpdate();
  13348. })
  13349. .catch((err) => {
  13350. console.error(err);
  13351. });
  13352. } else if((this.isUpdateToolDetail1 && type == 2)){
  13353. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13354. this.taskCount
  13355. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  13356. JSON.stringify(this.updateToolDetailInner)
  13357. );
  13358. let params = [
  13359. {
  13360. cid: this.id,
  13361. chapters: JSON.stringify(this.chapInfoList),
  13362. uid: this.userid,
  13363. unitIndex: this.courseType,
  13364. },
  13365. ];
  13366. this.ajax
  13367. .post(this.$store.state.api + "updateWorkNew4", params)
  13368. .then((res) => {
  13369. this.$message({
  13370. message: "修改成功",
  13371. type: "success",
  13372. });
  13373. this.toolDetailIndex = i;
  13374. this.isUpdateToolDetail1 = true;
  13375. setTimeout(() => {
  13376. this.updateToolDetailInner = JSON.parse(
  13377. JSON.stringify(
  13378. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13379. this.taskCount
  13380. ].toolChoose[i].toolDetail
  13381. )
  13382. );
  13383. document.querySelector(".checkTextArea").focus();
  13384. }, 0);
  13385. this.getCourseDetail(2);
  13386. this.$forceUpdate();
  13387. })
  13388. .catch((err) => {
  13389. console.error(err);
  13390. });
  13391. }
  13392. },
  13393. jumpGj(i, j, k, l) {
  13394. for (var z = 0; z < this.navList.length; z++) {
  13395. for (var q = 0; q < this.navList[z].task.length; q++) {
  13396. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  13397. this.navList[z].task[q].tool[w].isTool = false;
  13398. }
  13399. }
  13400. }
  13401. console.log(this.navList);
  13402. this.navList[i].task[j].tool[k].isTool =
  13403. !this.navList[i].task[j].tool[k].isTool;
  13404. var a = document.scrollingElement;
  13405. let target = document.querySelector(`#gj${k}`);
  13406. if (target) {
  13407. // target.scrollIntoView(true);
  13408. // setTimeout(() => {
  13409. // a.scrollTop = a.scrollTop - 150;
  13410. // }, 0);
  13411. target.scrollIntoView();
  13412. setTimeout(()=>{
  13413. let scrollBody = document.querySelector('.body_student').parentElement
  13414. scrollBody.scrollTop = scrollBody.scrollTop - 100
  13415. }, 0);
  13416. }
  13417. this.navId = ""
  13418. let flag = this.courseType == i;
  13419. let flag2 = this.taskCount == j
  13420. if (l) {
  13421. this.courseType = i;
  13422. // this.navId = l;
  13423. this.taskCount = j;
  13424. this.selectPz();
  13425. this.getHomeWork();
  13426. this.getCourseDetail(2);
  13427. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  13428. if(flag){
  13429. if(flag2){
  13430. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13431. }else{
  13432. 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>`)
  13433. }
  13434. }else{
  13435. 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>`)
  13436. }
  13437. }
  13438. // var b = this.$refs["bz" + k][0];
  13439. // a.scrollTop = b.offsetTop;
  13440. },
  13441. addTools2(i) {
  13442. if (i == 4) {
  13443. // this.openTools2(4);
  13444. this.$message.error("暂未开放");
  13445. return;
  13446. }
  13447. if (i == 45) {
  13448. // this.openTools2(45);
  13449. this.$message.error("暂未开放");
  13450. return;
  13451. }
  13452. if (i == 47) {
  13453. // this.openTools2(47);
  13454. this.$message.error("暂未开放");
  13455. return;
  13456. }
  13457. if (i == 49) {
  13458. // this.openTools2(49);
  13459. this.$message.error("暂未开放");
  13460. return;
  13461. }
  13462. if (i == 62) {
  13463. // this.openTools(itemTaskIndex, 62, toolIndex);
  13464. this.$message.error("暂未开放");
  13465. return;
  13466. }
  13467. if (i == 15) {
  13468. // this.openTools(itemTaskIndex, 15, toolIndex);
  13469. this.$message.error("暂未开放");
  13470. return;
  13471. }
  13472. if (i == 40) {
  13473. // this.openTools(itemTaskIndex, 40, toolIndex);
  13474. this.$message.error("暂未开放");
  13475. return;
  13476. }
  13477. if (i == 41) {
  13478. // this.openTools(itemTaskIndex, 41, toolIndex);
  13479. this.$message.error("暂未开放");
  13480. return;
  13481. }
  13482. if (i == 42) {
  13483. // this.openTools(itemTaskIndex, 42, toolIndex);
  13484. this.$message.error("暂未开放");
  13485. return;
  13486. }
  13487. if (this.checktoolArray.length > 0) {
  13488. if (this.checktoolArray.indexOf(i) != -1) {
  13489. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13490. } else {
  13491. this.checktoolArray = [];
  13492. this.checktoolArray.push(i);
  13493. }
  13494. } else {
  13495. this.checktoolArray.push(i);
  13496. }
  13497. this.$forceUpdate();
  13498. },
  13499. jump() {
  13500. window.topU.postMessage({ tools: "43" }, "*");
  13501. },
  13502. getUpdateMore(f, checkboxList, searchTN, index) {
  13503. this.dialogVisibleMember = f;
  13504. this.checkboxList = checkboxList;
  13505. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13506. this.plIndex = index;
  13507. },
  13508. setPlname(a) {
  13509. if (this.plworkFile.length) {
  13510. this.plworkFile[this.plIndex].username = a;
  13511. } else {
  13512. this.worksSName = a;
  13513. }
  13514. this.dialogVisibleMember = false;
  13515. },
  13516. previewImg(url,w) {
  13517. this.$hevueImgPreview(url);
  13518. if(w){
  13519. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13520. }
  13521. },
  13522. checkImg(list) {
  13523. if (!list.length) {
  13524. return;
  13525. }
  13526. this.$hevueImgPreview({
  13527. multiple: true, // 开启多图预览模式
  13528. imgList: list, // 需要预览的多图数组
  13529. });
  13530. },
  13531. change(val) {
  13532. console.log(val);
  13533. },
  13534. goTo(path) {
  13535. this.$router.push(path);
  13536. },
  13537. handlePictureCardPreview(url) {
  13538. this.dialogImageUrl = url;
  13539. this.pictureDialog = true;
  13540. },
  13541. clean(type) {
  13542. if (type == 1) {
  13543. this.studyJuri[0].cover.splice(0, 1);
  13544. } else if (type == 2) {
  13545. this.studyJuri[0].upVedio.splice(0, 1);
  13546. } else {
  13547. this.studyJuri[0].upFile.splice(0, 1);
  13548. }
  13549. },
  13550. clean2(index) {
  13551. this.plworkFile.splice(index, 1);
  13552. },
  13553. handleClose(done) {
  13554. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13555. this.videoDetail.sources[0].src = "";
  13556. }
  13557. this.commentIndexJson = {};
  13558. this.changeSplitScreenBehavior({code:99})
  13559. done();
  13560. },
  13561. fullTools() {
  13562. this.full = !this.full;
  13563. },
  13564. imgChange(file, fileList, type) {
  13565. if (type == 1) {
  13566. var _tmp = this.studyJuri[0].cover;
  13567. } else if (type == 2) {
  13568. var _tmp = this.studyJuri[0].upVedio;
  13569. } else {
  13570. var _tmp = this.studyJuri[0].upFile;
  13571. }
  13572. this.noneBtnImg = _tmp.length >= 1;
  13573. },
  13574. setContent(bool) {
  13575. this.contentDialog = bool;
  13576. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13577. document.querySelector(".workd_media").style.height = "650px";
  13578. } else if (document.querySelector(".workd_media")) {
  13579. document.querySelector(".workd_media").style.height = "auto";
  13580. }
  13581. },
  13582. setContent2(bool) {
  13583. this.mlDialog = bool;
  13584. if (
  13585. bool &&
  13586. this.contentDialog &&
  13587. document.querySelector(".workd_media")
  13588. ) {
  13589. document.querySelector(".workd_media").style.height = "650px";
  13590. } else if (document.querySelector(".workd_media")) {
  13591. document.querySelector(".workd_media").style.height = "auto";
  13592. }
  13593. },
  13594. openToolAll() {
  13595. this.toolDialogVisible = true;
  13596. },
  13597. addImg(e) {
  13598. var el = e.currentTarget;
  13599. // this.$message.success('触发上传')
  13600. el.getElementsByTagName("input")[0].click();
  13601. e.target.value = "";
  13602. },
  13603. addSelectAnswer() {
  13604. let params = [
  13605. {
  13606. uid: this.userid,
  13607. cid: this.id,
  13608. stage: this.courseType,
  13609. task: this.taskCount,
  13610. tool: this.toolindex,
  13611. content: this.selectAnswer.answer,
  13612. type: 7,
  13613. },
  13614. ];
  13615. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13616. this.homeWorkLoading = true
  13617. this.ajax
  13618. .post(this.$store.state.api + "addCourseWorks", params)
  13619. .then((res) => {
  13620. this.$message({
  13621. message: "提交成功",
  13622. type: "success",
  13623. });
  13624. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13625. setTimeout(() => {
  13626. this.homeWorkLoading = false
  13627. }, 500);
  13628. this.dialogVisibleSelect = false;
  13629. // this.selectAnswer = {};
  13630. this.selectSWorks();
  13631. this.selectStudent();
  13632. })
  13633. .catch((err) => {
  13634. this.$message.error("提交失败");
  13635. console.error(err);
  13636. setTimeout(() => {
  13637. this.homeWorkLoading = false
  13638. }, 500);
  13639. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13640. });
  13641. },
  13642. addSelectAnswerTeacher() {
  13643. let params = [
  13644. {
  13645. uid: this.sStudent.userid,
  13646. cid: this.id,
  13647. stage: this.courseType,
  13648. task: this.taskCount,
  13649. tool: this.toolindex,
  13650. content: this.selectAnswer.answer,
  13651. type: 7,
  13652. },
  13653. ];
  13654. this.ajax
  13655. .post(this.$store.state.api + "addCourseWorks", params)
  13656. .then((res) => {
  13657. this.$message({
  13658. message: "提交成功",
  13659. type: "success",
  13660. });
  13661. this.dialogVisibleSelectTeacher = false;
  13662. // this.selectAnswer = {};
  13663. this.selectSWorks();
  13664. this.selectStudent();
  13665. })
  13666. .catch((err) => {
  13667. this.$message.error("提交失败");
  13668. console.error(err);
  13669. });
  13670. },
  13671. addSenWorks() {
  13672. for (var i = 0; i < this.sentenceList.length; i++) {
  13673. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13674. if (
  13675. this.sentenceList[i].chooseSenList[j] == undefined ||
  13676. this.sentenceList[i].chooseSenList[j] == ""
  13677. ) {
  13678. this.$message.error("请将答案填写完整!");
  13679. return;
  13680. }
  13681. }
  13682. }
  13683. let params = [
  13684. {
  13685. uid: this.userid,
  13686. cid: this.id,
  13687. stage: this.courseType,
  13688. task: this.taskCount,
  13689. tool: this.toolindex,
  13690. content: JSON.stringify(this.sentenceList),
  13691. type: 9,
  13692. },
  13693. ];
  13694. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13695. this.homeWorkLoading = true
  13696. this.ajax
  13697. .post(this.$store.state.api + "addCourseWorks", params)
  13698. .then((res) => {
  13699. this.$message({
  13700. message: "提交成功",
  13701. type: "success",
  13702. });
  13703. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13704. setTimeout(() => {
  13705. this.homeWorkLoading = false
  13706. }, 500);
  13707. this.dialogVisibleSentence = false;
  13708. // this.selectAnswer = {};
  13709. this.selectSWorks();
  13710. this.selectStudent();
  13711. })
  13712. .catch((err) => {
  13713. this.$message.error("提交失败");
  13714. console.error(err);
  13715. setTimeout(() => {
  13716. this.homeWorkLoading = false
  13717. }, 500);
  13718. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13719. });
  13720. },
  13721. addSenWorksTeacher() {
  13722. for (var i = 0; i < this.sentenceList.length; i++) {
  13723. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13724. if (
  13725. this.sentenceList[i].chooseSenList[j] == undefined ||
  13726. this.sentenceList[i].chooseSenList[j] == ""
  13727. ) {
  13728. this.$message.error("请将答案填写完整!");
  13729. return;
  13730. }
  13731. }
  13732. }
  13733. let params = [
  13734. {
  13735. uid: this.sStudent.userid,
  13736. cid: this.id,
  13737. stage: this.courseType,
  13738. task: this.taskCount,
  13739. tool: this.toolindex,
  13740. content: JSON.stringify(this.sentenceList),
  13741. type: 9,
  13742. },
  13743. ];
  13744. this.ajax
  13745. .post(this.$store.state.api + "addCourseWorks", params)
  13746. .then((res) => {
  13747. this.$message({
  13748. message: "提交成功",
  13749. type: "success",
  13750. });
  13751. this.dialogVisibleSentenceTeacher = false;
  13752. // this.selectAnswer = {};
  13753. this.selectSWorks();
  13754. this.selectStudent();
  13755. })
  13756. .catch((err) => {
  13757. this.$message.error("提交失败");
  13758. console.error(err);
  13759. });
  13760. },
  13761. returnTableText() {
  13762. this.$confirm("确定还原此模板吗?", "提示", {
  13763. confirmButtonText: "确定",
  13764. cancelButtonText: "取消",
  13765. type: "warning",
  13766. })
  13767. .then(() => {
  13768. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13769. })
  13770. .catch(() => {});
  13771. },
  13772. addTableWorks() {
  13773. let params = [
  13774. {
  13775. uid: this.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. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13785. this.homeWorkLoading = true
  13786. this.ajax
  13787. .post(this.$store.state.api + "addCourseWorks", params)
  13788. .then((res) => {
  13789. this.$message({
  13790. message: "提交成功",
  13791. type: "success",
  13792. });
  13793. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13794. setTimeout(() => {
  13795. this.homeWorkLoading = false
  13796. }, 500);
  13797. this.dialogVisibleTable = false;
  13798. // this.selectAnswer = {};
  13799. this.selectSWorks();
  13800. this.selectStudent();
  13801. })
  13802. .catch((err) => {
  13803. this.$message.error("提交失败");
  13804. console.error(err);
  13805. setTimeout(() => {
  13806. this.homeWorkLoading = false
  13807. }, 500);
  13808. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13809. });
  13810. },
  13811. tableRowClassName({ row, rowIndex }) {
  13812. if ((rowIndex + 1) % 2 === 0) {
  13813. return "even_row";
  13814. } else {
  13815. return "";
  13816. }
  13817. },
  13818. addTableWorksTeacher() {
  13819. let params = [
  13820. {
  13821. uid: this.sStudent.userid,
  13822. cid: this.id,
  13823. stage: this.courseType,
  13824. task: this.taskCount,
  13825. tool: this.toolindex,
  13826. content: JSON.stringify(this.tableJson),
  13827. type: 10,
  13828. },
  13829. ];
  13830. this.ajax
  13831. .post(this.$store.state.api + "addCourseWorks", params)
  13832. .then((res) => {
  13833. this.$message({
  13834. message: "提交成功",
  13835. type: "success",
  13836. });
  13837. this.dialogVisibleTableTeacher = false;
  13838. // this.selectAnswer = {};
  13839. this.selectSWorks();
  13840. this.selectStudent();
  13841. })
  13842. .catch((err) => {
  13843. this.$message.error("提交失败");
  13844. console.error(err);
  13845. });
  13846. },
  13847. returnWordText() {
  13848. this.$confirm("确定还原此模板吗?", "提示", {
  13849. confirmButtonText: "确定",
  13850. cancelButtonText: "取消",
  13851. type: "warning",
  13852. })
  13853. .then(() => {
  13854. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13855. })
  13856. .catch(() => {});
  13857. },
  13858. addWordWorks() {
  13859. let params = [
  13860. {
  13861. uid: this.userid,
  13862. cid: this.id,
  13863. stage: this.courseType,
  13864. task: this.taskCount,
  13865. tool: this.toolindex,
  13866. content: JSON.stringify(this.wordJson),
  13867. type: 13,
  13868. atool: 52,
  13869. },
  13870. ];
  13871. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13872. this.homeWorkLoading = true
  13873. this.ajax
  13874. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13875. .then((res) => {
  13876. this.$message({
  13877. message: "提交成功",
  13878. type: "success",
  13879. });
  13880. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13881. setTimeout(() => {
  13882. this.homeWorkLoading = false
  13883. }, 500);
  13884. this.dialogVisibleWord = false;
  13885. // this.selectAnswer = {};
  13886. this.selectSWorks();
  13887. this.selectStudent();
  13888. })
  13889. .catch((err) => {
  13890. this.$message.error("提交失败");
  13891. console.error(err);
  13892. setTimeout(() => {
  13893. this.homeWorkLoading = false
  13894. }, 500);
  13895. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13896. });
  13897. },
  13898. addWordWorksTeacher() {
  13899. let params = [
  13900. {
  13901. uid: this.sStudent.userid,
  13902. cid: this.id,
  13903. stage: this.courseType,
  13904. task: this.taskCount,
  13905. tool: this.toolindex,
  13906. content: JSON.stringify(this.wordJson),
  13907. type: 13,
  13908. atool: 52,
  13909. },
  13910. ];
  13911. this.ajax
  13912. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13913. .then((res) => {
  13914. this.$message({
  13915. message: "提交成功",
  13916. type: "success",
  13917. });
  13918. this.dialogVisibleWordTeacher = false;
  13919. // this.selectAnswer = {};
  13920. this.selectSWorks();
  13921. this.selectStudent();
  13922. })
  13923. .catch((err) => {
  13924. this.$message.error("提交失败");
  13925. console.error(err);
  13926. });
  13927. },
  13928. addCourseWorks(i) {
  13929. var typesql;
  13930. if (this.fileType === 0) {
  13931. typesql = 1;
  13932. } else if (this.fileType === 1) {
  13933. typesql = 4;
  13934. } else if (this.fileType === 2) {
  13935. typesql = 5;
  13936. } else if (this.fileType === 3) {
  13937. typesql = 12;
  13938. }
  13939. if (!this.studyJuri[0].cover[0].url) {
  13940. this.$message.error("请上传文件");
  13941. return;
  13942. }
  13943. let params = [
  13944. {
  13945. uid: this.userid,
  13946. cid: this.id,
  13947. stage: this.courseType,
  13948. task: i,
  13949. tool: this.toolindex,
  13950. content: this.studyJuri[0].cover[0].url,
  13951. type: typesql,
  13952. },
  13953. ];
  13954. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  13955. this.homeWorkLoading = true
  13956. this.ajax
  13957. .post(this.$store.state.api + "addCourseWorksR", params)
  13958. .then((res) => {
  13959. this.$message({
  13960. message: "提交成功",
  13961. type: "success",
  13962. });
  13963. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13964. setTimeout(() => {
  13965. this.homeWorkLoading = false
  13966. }, 500);
  13967. this.studyJuri[0].cover = [];
  13968. this.dialogVisible = false;
  13969. this.getCourseDetail(2);
  13970. })
  13971. .catch((err) => {
  13972. this.$message.error("提交失败");
  13973. console.error(err);
  13974. setTimeout(() => {
  13975. this.homeWorkLoading = false
  13976. }, 500);
  13977. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13978. });
  13979. },
  13980. addCourseWorksPl(i) {
  13981. let _files = this.plworkFile;
  13982. var c = 1;
  13983. for (var k = 0; k < _files.length; k++) {
  13984. if (!_files[k].username) {
  13985. c = 2;
  13986. }
  13987. }
  13988. if (c == 2) {
  13989. this.$message.error("请填写学生姓名");
  13990. return;
  13991. }
  13992. let params = [
  13993. {
  13994. ateacher: this.userid,
  13995. cid: this.id,
  13996. stage: this.courseType,
  13997. task: i,
  13998. tool: this.toolindex,
  13999. content: JSON.stringify(_files),
  14000. },
  14001. ];
  14002. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14003. this.homeWorkLoading = true
  14004. this.ajax
  14005. .post(this.$store.state.api + "addCourseWorksPl", params)
  14006. .then((res) => {
  14007. this.$message({
  14008. message: "提交成功",
  14009. type: "success",
  14010. });
  14011. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  14012. setTimeout(() => {
  14013. this.homeWorkLoading = false
  14014. }, 500);
  14015. this.plworkFile = [];
  14016. this.dialogVisiblePl = false;
  14017. this.getCourseDetail(2);
  14018. })
  14019. .catch((err) => {
  14020. this.$message.error("提交失败");
  14021. console.error(err);
  14022. setTimeout(() => {
  14023. this.homeWorkLoading = false
  14024. }, 500);
  14025. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  14026. });
  14027. },
  14028. addCourseWorks2(i) {
  14029. var typesql;
  14030. if (this.fileType === 0) {
  14031. typesql = 0;
  14032. } else if (this.fileType === 1) {
  14033. typesql = 1;
  14034. } else if (this.fileType === 2) {
  14035. typesql = 3;
  14036. } else if (this.fileType === 3) {
  14037. typesql = 12;
  14038. }
  14039. if (!this.studyJuri[0].cover[0].url) {
  14040. this.$message.error("请上传文件");
  14041. return;
  14042. }
  14043. let params = [
  14044. {
  14045. uid: this.userid,
  14046. cid: this.id,
  14047. stage: this.courseType,
  14048. task: i,
  14049. tool: this.toolindex,
  14050. content: JSON.stringify({
  14051. type: typesql,
  14052. groupIndex: this.groupIndex,
  14053. url: this.studyJuri[0].cover[0].url,
  14054. }),
  14055. type: 11,
  14056. atool: 49,
  14057. text: "",
  14058. },
  14059. ];
  14060. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14061. this.homeWorkLoading = true
  14062. this.ajax
  14063. .post(this.$store.state.api + "addCourseWorks5", params)
  14064. .then((res) => {
  14065. this.$message({
  14066. message: "提交成功",
  14067. type: "success",
  14068. });
  14069. setTimeout(() => {
  14070. this.homeWorkLoading = false
  14071. }, 500);
  14072. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14073. type: typesql,
  14074. groupIndex: this.groupIndex,
  14075. url: this.studyJuri[0].cover[0].url,
  14076. }),type: "course_tool_sub" }, "success")
  14077. this.studyJuri[0].cover = [];
  14078. this.dialogVisibleGroupWork = false;
  14079. this.getCourseDetail(2);
  14080. })
  14081. .catch((err) => {
  14082. this.$message.error("提交失败");
  14083. console.error(err);
  14084. setTimeout(() => {
  14085. this.homeWorkLoading = false
  14086. }, 500);
  14087. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  14088. type: typesql,
  14089. groupIndex: this.groupIndex,
  14090. url: this.studyJuri[0].cover[0].url,
  14091. }),type: "course_tool_sub" }, err)
  14092. });
  14093. },
  14094. addEnglishWork() {
  14095. this.myAnList = this.$refs['engJson'].myAnswerList;
  14096. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  14097. this.$message.error("请输入作文标题和正文!");
  14098. return;
  14099. }
  14100. let params = [
  14101. {
  14102. uid: this.userid,
  14103. cid: this.id,
  14104. stage: this.courseType,
  14105. task: this.taskCount,
  14106. tool: this.englishToolIndex,
  14107. content: JSON.stringify(this.myAnList),
  14108. type: 16,
  14109. atool: 69,
  14110. text: "",
  14111. },
  14112. ];
  14113. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  14114. this.homeWorkLoading = true
  14115. this.ajax
  14116. .post(this.$store.state.api + "addCourseWorks5", params)
  14117. .then((res) => {
  14118. this.$message({
  14119. message: "提交成功",
  14120. type: "success",
  14121. });
  14122. setTimeout(() => {
  14123. this.homeWorkLoading = false
  14124. }, 500);
  14125. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14126. data: JSON.stringify(this.myAnList),
  14127. type: "course_tool_sub" }, "success")
  14128. this.myAnList = {};
  14129. this.englishList = {};
  14130. this.englishToolIndex = 0;
  14131. this.engDialogVisible = false;
  14132. this.selectSWorks();
  14133. this.selectStudent();
  14134. })
  14135. .catch((err) => {
  14136. this.$message.error("提交失败");
  14137. console.error(err);
  14138. setTimeout(() => {
  14139. this.homeWorkLoading = false
  14140. }, 500);
  14141. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  14142. data: JSON.stringify(this.myAnList),
  14143. type: "course_tool_sub" }, err)
  14144. });
  14145. },
  14146. addCourseWorksGong(i, data, tool) {
  14147. let params = [
  14148. {
  14149. uid: this.userid,
  14150. cid: this.id,
  14151. stage: this.courseType,
  14152. task: this.taskCount,
  14153. tool: i,
  14154. content: data,
  14155. type: 12,
  14156. atool: tool,
  14157. text: "",
  14158. },
  14159. ];
  14160. this.ajax
  14161. .post(this.$store.state.api + "addCourseWorks5", params)
  14162. .then((res) => {
  14163. this.$message({
  14164. message: "提交成功",
  14165. type: "success",
  14166. });
  14167. this.studyJuri[0].cover = [];
  14168. this.selectSWorks();
  14169. this.selectStudent();
  14170. })
  14171. .catch((err) => {
  14172. this.$message.error("提交失败");
  14173. console.error(err);
  14174. });
  14175. },
  14176. addCourseWorksGongTeacher(i, data, tool) {
  14177. let params = [
  14178. {
  14179. uid: this.sStudent.userid,
  14180. cid: this.id,
  14181. stage: this.courseType,
  14182. task: this.taskCount,
  14183. tool: i,
  14184. content: data,
  14185. type: 12,
  14186. atool: tool,
  14187. text: "",
  14188. },
  14189. ];
  14190. this.ajax
  14191. .post(this.$store.state.api + "addCourseWorks5", params)
  14192. .then((res) => {
  14193. this.$message({
  14194. message: "提交成功",
  14195. type: "success",
  14196. });
  14197. this.studyJuri[0].cover = [];
  14198. this.dialogVisibleWorks = false;
  14199. this.selectSWorks();
  14200. this.selectStudent();
  14201. })
  14202. .catch((err) => {
  14203. this.$message.error("提交失败");
  14204. console.error(err);
  14205. });
  14206. },
  14207. addCourseWorksGongPl(i, data, tool, type) {
  14208. let params = [
  14209. {
  14210. uid: this.sStudent.userid,
  14211. cid: this.id,
  14212. stage: this.courseType,
  14213. task: this.taskCount,
  14214. tool: i,
  14215. content: data,
  14216. type: type,
  14217. atool: tool,
  14218. text: "",
  14219. },
  14220. ];
  14221. this.ajax
  14222. .post(this.$store.state.api + "addCourseWorks5", params)
  14223. .then((res) => {
  14224. this.$message({
  14225. message: "提交成功",
  14226. type: "success",
  14227. });
  14228. this.studyJuri[0].cover = [];
  14229. this.dialogVisibleWorks = false;
  14230. this.selectSWorks();
  14231. this.selectStudent();
  14232. })
  14233. .catch((err) => {
  14234. this.$message.error("提交失败");
  14235. console.error(err);
  14236. });
  14237. },
  14238. addCourseWorksTeacher(i) {
  14239. var typesql;
  14240. if (this.sTool == 32) {
  14241. this.addCourseWorksGongTeacher(
  14242. this.toolindex,
  14243. this.studyJuri[0].cover[0].url,
  14244. this.sTool
  14245. );
  14246. return;
  14247. }
  14248. if (this.fileType === 0) {
  14249. typesql = 1;
  14250. } else if (this.fileType === 1) {
  14251. typesql = 4;
  14252. } else if (this.fileType === 2) {
  14253. typesql = 5;
  14254. } else if (this.fileType === 3) {
  14255. typesql = 12;
  14256. }
  14257. if (this.sTool == 50) {
  14258. this.addCourseWorksGongPl(
  14259. this.toolindex,
  14260. this.studyJuri[0].cover[0].url,
  14261. this.sTool,
  14262. typesql
  14263. );
  14264. return;
  14265. }
  14266. if (!this.studyJuri[0].cover[0].url) {
  14267. this.$message.error("请上传文件");
  14268. return;
  14269. }
  14270. let params = [
  14271. {
  14272. uid: this.sStudent.userid,
  14273. cid: this.id,
  14274. stage: this.courseType,
  14275. task: i,
  14276. tool: this.toolindex,
  14277. content: this.studyJuri[0].cover[0].url,
  14278. type: typesql,
  14279. ateacher: this.userid,
  14280. },
  14281. ];
  14282. this.ajax
  14283. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14284. .then((res) => {
  14285. this.$message({
  14286. message: "提交成功",
  14287. type: "success",
  14288. });
  14289. this.studyJuri[0].cover = [];
  14290. this.dialogVisibleWorks = false;
  14291. this.getCourseDetail(2);
  14292. })
  14293. .catch((err) => {
  14294. this.$message.error("提交失败");
  14295. console.error(err);
  14296. });
  14297. },
  14298. selectUploadStudent(type) {
  14299. const loading = this.$loading.service({
  14300. background: "rgba(255, 255, 255, 0.7)",
  14301. target: document.body,
  14302. });
  14303. let params = {
  14304. cid: this.uploadCid,
  14305. oid: this.oid,
  14306. cn: "",
  14307. };
  14308. this.ajax
  14309. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14310. .then((res) => {
  14311. loading.close();
  14312. var studentK = [];
  14313. if (this.isWorksS[this.toolindex].length > 0) {
  14314. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14315. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14316. }
  14317. studentK = studentK.join(",");
  14318. }
  14319. this.uploadStudentJuri = res.data[0].filter((el) => {
  14320. return studentK.indexOf(el.userid) == -1;
  14321. });
  14322. if (this.worksSName && this.worksSid) {
  14323. this.uploadStudentJuri.push({
  14324. userid: this.worksSid,
  14325. name: this.worksSName,
  14326. });
  14327. }
  14328. if (type == 1) {
  14329. this.plworkFile = [];
  14330. this.dialogVisibleSname = true;
  14331. } else if (type == 2) {
  14332. this.dialogVisiblePl = true;
  14333. }
  14334. })
  14335. .catch((err) => {
  14336. loading.close();
  14337. console.error(err);
  14338. });
  14339. },
  14340. selectPickStudent() {
  14341. const loading = this.$loading.service({
  14342. background: "rgba(255, 255, 255, 0.7)",
  14343. target: document.body,
  14344. });
  14345. let params = {
  14346. cid: this.uploadCid,
  14347. oid: this.oid,
  14348. cn: "",
  14349. };
  14350. this.ajax
  14351. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14352. .then((res) => {
  14353. loading.close();
  14354. this.uploadStudentJuri = res.data[0];
  14355. this.dialogVisiblePickPeople = true;
  14356. })
  14357. .catch((err) => {
  14358. loading.close();
  14359. console.error(err);
  14360. });
  14361. },
  14362. arrayToArray(arrayo, arrayt) {
  14363. let array1 = arrayo;
  14364. let array2 = arrayt;
  14365. let commonElements = [];
  14366. for (let i = 0; i < array1.length; i++) {
  14367. for (let j = 0; j < array2.length; j++) {
  14368. if (array1[i] === array2[j]) {
  14369. commonElements.push(array1[i]);
  14370. }
  14371. }
  14372. }
  14373. return commonElements;
  14374. },
  14375. selectWorksStudent() {
  14376. let params = {
  14377. oid: this.oid,
  14378. cid: this.courseDetail.juri,
  14379. };
  14380. this.ajax
  14381. .get(this.$store.state.api + "selectWorksStudent", params)
  14382. .then((res) => {
  14383. var a = res.data[0];
  14384. for (var i = 0; i < this.isWorksS.length; i++) {
  14385. this.noWorksS[i] = [];
  14386. var studentK = [];
  14387. if (this.isWorksS[i].length > 0) {
  14388. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14389. studentK.push(this.isWorksS[i][z].uid);
  14390. }
  14391. studentK = studentK.join(",");
  14392. for (var j = 0; j < a.length; j++) {
  14393. if (studentK.indexOf(a[j].userid) == -1) {
  14394. if (this.tcid) {
  14395. // a[j].classid.indexOf(this.tcid) != -1
  14396. if (
  14397. this.arrayToArray(
  14398. a[j].classid.split(","),
  14399. this.tcid.split(",")
  14400. ).length
  14401. ) {
  14402. this.noWorksS[i].push({
  14403. student: a[j].name,
  14404. userid: a[j].userid,
  14405. });
  14406. }
  14407. } else {
  14408. this.noWorksS[i].push({
  14409. student: a[j].name,
  14410. userid: a[j].userid,
  14411. });
  14412. }
  14413. }
  14414. }
  14415. } else {
  14416. for (var k = 0; k < a.length; k++) {
  14417. if (this.tcid) {
  14418. if (
  14419. this.arrayToArray(
  14420. a[k].classid.split(","),
  14421. this.tcid.split(",")
  14422. ).length
  14423. ) {
  14424. this.noWorksS[i].push({
  14425. student: a[k].name,
  14426. userid: a[k].userid,
  14427. });
  14428. }
  14429. } else {
  14430. this.noWorksS[i].push({
  14431. student: a[k].name,
  14432. userid: a[k].userid,
  14433. });
  14434. }
  14435. }
  14436. }
  14437. }
  14438. this.$forceUpdate();
  14439. if (
  14440. Object.keys(this.commentDetail).length &&
  14441. Object.keys(this.commentIndexJson).length &&
  14442. !this.dialogVisibleScore && !this.dialogVisibleENScore
  14443. ) {
  14444. let a = 1;
  14445. let c = this.commentIndexJson;
  14446. if (
  14447. this.commentIndexJson.gindex ||
  14448. this.commentIndexJson.gindex === 0
  14449. ) {
  14450. for (
  14451. var i = 0;
  14452. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14453. i++
  14454. ) {
  14455. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  14456. groupA: for (var k = 0; k < _el.length; k++) {
  14457. let el = _el[k];
  14458. if (el.wid == this.commentDetail.wid) {
  14459. a = 2;
  14460. this.commentOther(
  14461. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  14462. this.commentIndexJson.toolIndex,
  14463. k,
  14464. this.commentIndexJson.gindex
  14465. );
  14466. break groupA;
  14467. }
  14468. }
  14469. }
  14470. if (a === 1) {
  14471. this.commentDetail = [];
  14472. this.commentIndexJson = {};
  14473. this.commentDialogVisible = false;
  14474. this.$message("此作业已被删除");
  14475. }
  14476. } else {
  14477. if (this.isGroup && this.commentIndexJson.gid) {
  14478. groupA: for (
  14479. var i = 0;
  14480. i < this.courseGroup.group.length;
  14481. i++
  14482. ) {
  14483. let _group = this.courseGroup.group[i];
  14484. if (_group.id == this.commentIndexJson.gid) {
  14485. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  14486. for (var k = 0; k < _el2.length; k++) {
  14487. let el2 = _el2[k];
  14488. if (el2.wid == this.commentDetail.wid) {
  14489. a = 2;
  14490. this.commentOther(
  14491. _el2[k],
  14492. this.commentIndexJson.toolIndex,
  14493. k,
  14494. null,
  14495. this.commentIndexJson.gid
  14496. );
  14497. break groupA;
  14498. }
  14499. }
  14500. }
  14501. }
  14502. }
  14503. if (a == 1) {
  14504. for (
  14505. var i = 0;
  14506. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14507. i++
  14508. ) {
  14509. let el =
  14510. this.worksStudent[this.commentIndexJson.toolIndex][i];
  14511. if (el.wid == this.commentDetail.wid) {
  14512. a = 2;
  14513. this.commentOther(
  14514. this.worksStudent[this.commentIndexJson.toolIndex][i],
  14515. this.commentIndexJson.toolIndex,
  14516. i
  14517. );
  14518. break;
  14519. }
  14520. }
  14521. }
  14522. if (a === 1) {
  14523. this.commentDetail = [];
  14524. this.commentIndexJson = {};
  14525. this.commentDialogVisible = false;
  14526. this.$message("此作业已被删除");
  14527. }
  14528. }
  14529. }
  14530. })
  14531. .catch((err) => {
  14532. console.error(err);
  14533. });
  14534. },
  14535. selectStudent() {
  14536. if(this.selectStudentLoading) return
  14537. this.selectStudentLoading = true
  14538. //学生查看自己作业
  14539. let params = {
  14540. uid: this.userid,
  14541. cid: this.id,
  14542. s: this.courseType,
  14543. t: this.taskCount,
  14544. };
  14545. this.ajax
  14546. .get(this.$store.state.api + "selectStudentWorks", params)
  14547. .then((res) => {
  14548. var a =
  14549. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14550. this.taskCount
  14551. ].toolChoose;
  14552. var b = res.data[0];
  14553. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14554. var y = [
  14555. "AVI",
  14556. "NAVI",
  14557. "MPEG",
  14558. "ASF",
  14559. "MOV",
  14560. "WMV",
  14561. "3GP",
  14562. "RM",
  14563. "RMVB",
  14564. "FLV",
  14565. "F4V",
  14566. "H.264",
  14567. "H.265",
  14568. "REAL VIDEO",
  14569. "MKV",
  14570. "WebM",
  14571. "HDDVD",
  14572. "MP4",
  14573. "MPG",
  14574. "M4V",
  14575. "MGV",
  14576. "OGV",
  14577. "QTM",
  14578. "STR",
  14579. "AMC",
  14580. "DVX",
  14581. "EVO",
  14582. "DAT",
  14583. "OGG",
  14584. "OGM",
  14585. ];
  14586. for (var i = 0; i < a.length; i++) {
  14587. this.workStudent[i] = [];
  14588. for (var j = 0; j < b.length; j++) {
  14589. if (i == b[j].tool) {
  14590. if (
  14591. (b[j].type == 1 ||
  14592. b[j].type == 4 ||
  14593. b[j].type == 5 ||
  14594. b[j].type == 6 ||
  14595. b[j].type == 12 ||
  14596. b[j].type == 7) &&
  14597. a[i].tool[0] != 15 &&
  14598. a[i].tool[0] != 4 &&
  14599. a[i].tool[0] != 45 &&
  14600. a[i].tool[0] != 50 &&
  14601. a[i].tool[0] != 32 &&
  14602. a[i].tool[0] != 57 &&
  14603. a[i].tool[0] != 52 &&
  14604. a[i].tool[0] != 69
  14605. ) {
  14606. if (
  14607. c.indexOf(
  14608. b[j].content
  14609. .split(".")
  14610. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14611. ) != -1 &&
  14612. a[i].tool[0] == 16 &&
  14613. b[j].atool != 50
  14614. ) {
  14615. this.workStudent[i].push({
  14616. works: b[j].content,
  14617. sName: b[j].name,
  14618. score: b[j].score,
  14619. img: b[j].img,
  14620. type: 1,
  14621. time: b[j].time,
  14622. userid: b[j].userid,
  14623. wid: b[j].id,
  14624. });
  14625. } else if (
  14626. y.indexOf(
  14627. b[j].content
  14628. .split(".")
  14629. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14630. ) != -1 &&
  14631. a[i].tool[0] == 16 &&
  14632. b[j].atool != 50
  14633. ) {
  14634. this.workStudent[i].push({
  14635. userid: b[j].userid,
  14636. wid: b[j].id,
  14637. works: b[j].content,
  14638. sName: b[j].name,
  14639. score: b[j].score,
  14640. img: b[j].img,
  14641. type: 3,
  14642. time: b[j].time,
  14643. });
  14644. } else if (b[j].type == 6 && b[j].atool != 50) {
  14645. this.workStudent[i].push({
  14646. userid: b[j].userid,
  14647. wid: b[j].id,
  14648. works: b[j].content,
  14649. sName: b[j].name,
  14650. score: b[j].score,
  14651. img: b[j].img,
  14652. type: 4,
  14653. time: b[j].time,
  14654. });
  14655. } else if (b[j].type == 7 && b[j].atool != 50) {
  14656. this.workStudent[i].push({
  14657. userid: b[j].userid,
  14658. wid: b[j].id,
  14659. works: b[j].content,
  14660. sName: b[j].name,
  14661. score: b[j].score,
  14662. img: b[j].img,
  14663. type: 5,
  14664. time: b[j].time,
  14665. });
  14666. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14667. this.workStudent[i].push({
  14668. works: b[j].content,
  14669. sName: b[j].name,
  14670. score: b[j].score,
  14671. img: b[j].img,
  14672. type: 12,
  14673. time: b[j].time,
  14674. userid: b[j].userid,
  14675. wid: b[j].id,
  14676. });
  14677. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  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: 0,
  14684. time: b[j].time,
  14685. userid: b[j].userid,
  14686. wid: b[j].id,
  14687. });
  14688. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14689. this.workStudent[i].push({
  14690. works: b[j].content,
  14691. sName: b[j].name,
  14692. score: b[j].score,
  14693. img: b[j].img,
  14694. type: 0,
  14695. time: b[j].time,
  14696. userid: b[j].userid,
  14697. wid: b[j].id,
  14698. });
  14699. }
  14700. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14701. this.workStudent[i].push({
  14702. works: b[j].content,
  14703. sName: b[j].name,
  14704. score: b[j].score,
  14705. img: b[j].img,
  14706. type: 2,
  14707. time: b[j].time,
  14708. userid: b[j].userid,
  14709. wid: b[j].id,
  14710. });
  14711. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14712. this.workStudent[i].push({
  14713. works: b[j].content,
  14714. sName: b[j].name,
  14715. score: b[j].score,
  14716. img: b[j].img,
  14717. type: 20,
  14718. time: b[j].time,
  14719. userid: b[j].userid,
  14720. wid: b[j].id,
  14721. });
  14722. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14723. //问卷
  14724. this.workStudent[i].push({
  14725. works: b[j].content,
  14726. sName: b[j].name,
  14727. score: b[j].score,
  14728. img: b[j].img,
  14729. type: 2,
  14730. time: b[j].time,
  14731. userid: b[j].userid,
  14732. wid: b[j].id,
  14733. });
  14734. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14735. //选择题
  14736. this.workStudent[i].push({
  14737. works: b[j].content,
  14738. sName: b[j].name,
  14739. score: b[j].score,
  14740. img: b[j].img,
  14741. type: 8,
  14742. time: b[j].time,
  14743. userid: b[j].userid,
  14744. wid: b[j].id,
  14745. });
  14746. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14747. //选择题
  14748. this.workStudent[i].push({
  14749. works: b[j].content,
  14750. sName: b[j].name,
  14751. score: b[j].score,
  14752. img: b[j].img,
  14753. type: 9,
  14754. time: b[j].time,
  14755. userid: b[j].userid,
  14756. wid: b[j].id,
  14757. });
  14758. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14759. //选择题
  14760. this.workStudent[i].push({
  14761. works: b[j].content,
  14762. sName: b[j].name,
  14763. score: b[j].score,
  14764. img: b[j].img,
  14765. type: 10,
  14766. time: b[j].time,
  14767. userid: b[j].userid,
  14768. wid: b[j].id,
  14769. });
  14770. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14771. //选择题
  14772. this.workStudent[i].push({
  14773. works: b[j].content,
  14774. sName: b[j].name,
  14775. score: b[j].score,
  14776. img: b[j].img,
  14777. type: 13,
  14778. time: b[j].time,
  14779. userid: b[j].userid,
  14780. wid: b[j].id,
  14781. });
  14782. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14783. //选择题
  14784. this.workStudent[i].push({
  14785. works: b[j].content,
  14786. sName: b[j].name,
  14787. score: b[j].score,
  14788. img: b[j].img,
  14789. type: 12,
  14790. time: b[j].time,
  14791. userid: b[j].userid,
  14792. wid: b[j].id,
  14793. });
  14794. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14795. //选择题
  14796. this.workStudent[i].push({
  14797. works: b[j].content,
  14798. sName: b[j].name,
  14799. score: b[j].score,
  14800. img: b[j].img,
  14801. type: 12,
  14802. time: b[j].time,
  14803. userid: b[j].userid,
  14804. wid: b[j].id,
  14805. });
  14806. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14807. //选择题
  14808. this.workStudent[i].push({
  14809. works: b[j].content,
  14810. sName: b[j].name,
  14811. score: b[j].score,
  14812. img: b[j].img,
  14813. type: 15,
  14814. time: b[j].time,
  14815. userid: b[j].userid,
  14816. wid: b[j].id,
  14817. });
  14818. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14819. //英语写作
  14820. this.workStudent[i].push({
  14821. works: b[j].content,
  14822. sName: b[j].name,
  14823. score: b[j].score,
  14824. img: b[j].img,
  14825. type: 16,
  14826. time: b[j].time,
  14827. userid: b[j].userid,
  14828. wid: b[j].id,
  14829. aiCode: b[j].aiCode,
  14830. teacherCode: b[j].teacherCode
  14831. });
  14832. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14833. //英语口语
  14834. this.workStudent[i].push({
  14835. works: b[j].content,
  14836. sName: b[j].name,
  14837. score: b[j].score,
  14838. img: b[j].img,
  14839. type: 17,
  14840. time: b[j].time,
  14841. userid: b[j].userid,
  14842. wid: b[j].id,
  14843. });
  14844. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14845. //交互视频
  14846. this.workStudent[i].push({
  14847. works: b[j].content,
  14848. sName: b[j].name,
  14849. score: b[j].score,
  14850. img: b[j].img,
  14851. type: 14,
  14852. time: b[j].time,
  14853. userid: b[j].userid,
  14854. wid: b[j].id,
  14855. });
  14856. }
  14857. }
  14858. }
  14859. }
  14860. this.selectStudentLoading = false
  14861. })
  14862. .catch((err) => {
  14863. this.selectStudentLoading = false
  14864. console.error(err);
  14865. });
  14866. },
  14867. openVideo(w) {
  14868. this.videoDetail = {};
  14869. this.playerOptions1.sources[0].src = w.works;
  14870. this.videoDetail = this.playerOptions1;
  14871. this.videoVisible = true;
  14872. },
  14873. isLikes(wid, uid, t, c, isLikes,sName) {
  14874. if (isLikes == false) {
  14875. let params = [
  14876. {
  14877. wid: wid,
  14878. lid: uid,
  14879. t: t,
  14880. c: c,
  14881. },
  14882. ];
  14883. this.ajax
  14884. .post(this.$store.state.api + "insertComment", params)
  14885. .then((res) => {
  14886. this.$message({
  14887. message: "点赞成功",
  14888. type: "success",
  14889. });
  14890. this.selectSWorks();
  14891. this.selectStudent();
  14892. if(this.tType!=2){
  14893. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14894. }
  14895. })
  14896. .catch((err) => {
  14897. this.$message.error("点赞失败");
  14898. console.error(err);
  14899. });
  14900. } else {
  14901. let params = {
  14902. wid: wid,
  14903. lid: uid,
  14904. type: t,
  14905. };
  14906. this.ajax
  14907. .get(this.$store.state.api + "deleteComment", params)
  14908. .then((res) => {
  14909. this.$message({
  14910. message: "取消点赞成功",
  14911. type: "success",
  14912. });
  14913. this.selectSWorks();
  14914. this.selectStudent();
  14915. })
  14916. .catch((err) => {
  14917. console.error(err);
  14918. });
  14919. }
  14920. },
  14921. deleteComment(wid) {
  14922. this.$confirm("确定删除此评论吗?", "提示", {
  14923. confirmButtonText: "确定",
  14924. cancelButtonText: "取消",
  14925. type: "warning",
  14926. })
  14927. .then(() => {
  14928. let params = {
  14929. id: wid,
  14930. };
  14931. this.ajax
  14932. .get(this.$store.state.api + "deleteComment2", params)
  14933. .then((res) => {
  14934. this.$message({
  14935. message: "删除评论成功",
  14936. type: "success",
  14937. });
  14938. this.selectSWorks();
  14939. this.selectStudent();
  14940. })
  14941. .catch((err) => {
  14942. console.error(err);
  14943. });
  14944. })
  14945. .catch(() => {});
  14946. },
  14947. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14948. this.commentIndexJson = {
  14949. toolIndex: toolIndex,
  14950. wIndex: wIndex,
  14951. gindex: gindex,
  14952. gid: gid,
  14953. };
  14954. this.commentDetail = [];
  14955. this.commentDialogVisible = true;
  14956. this.commentDetail = w;
  14957. if (w.works && w.type == 1) {
  14958. // this.pptImgUrl = "";
  14959. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14960. if (
  14961. a.indexOf(
  14962. w.works
  14963. .split(".")
  14964. [w.works.split(".").length - 1].toLocaleUpperCase()
  14965. ) != -1
  14966. ) {
  14967. let _uuurl = await this.checkLink(w.works);
  14968. console.log(_uuurl)
  14969. this.pptImgUrl =
  14970. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14971. this.showPDF = false;
  14972. } else if (
  14973. w.works
  14974. .split(".")
  14975. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14976. ) {
  14977. this.pptImgUrl = w.works;
  14978. this.showPDF = true;
  14979. }
  14980. } else if (w.works && w.type == 3) {
  14981. this.videoDetail = {};
  14982. this.playerOptions1.sources[0].src = w.works;
  14983. this.videoDetail = this.playerOptions1;
  14984. // this.videoVisible = true;
  14985. } else if (w.works && w.type == 4) {
  14986. this.eScore = JSON.parse(w.works);
  14987. this.rateJson =
  14988. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14989. this.taskCount
  14990. ].toolChoose[toolIndex].rateJson;
  14991. } else if (w.works && w.type == 10) {
  14992. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14993. } else if (w.works && w.type == 13) {
  14994. this.wordJson =
  14995. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14996. this.taskCount
  14997. ].toolChoose[toolIndex].wordJson;
  14998. }
  14999. },
  15000. async openScore(w, index) {
  15001. this.wScore = 0;
  15002. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  15003. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  15004. this.commentDetail = [];
  15005. if(w.type == 17){
  15006. this.dialogVisibleENScore = true;
  15007. }else{
  15008. this.dialogVisibleScore = true;
  15009. }
  15010. this.commentDetail = w;
  15011. if (w.works && w.type == 1) {
  15012. this.pptImgUrl = "";
  15013. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15014. if (
  15015. a.indexOf(
  15016. w.works
  15017. .split(".")
  15018. [w.works.split(".").length - 1].toLocaleUpperCase()
  15019. ) != -1
  15020. ) {
  15021. let _uuurl = await this.checkLink(w.works);
  15022. console.log(_uuurl)
  15023. this.pptImgUrl =
  15024. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  15025. this.showPDF = false;
  15026. } else if (
  15027. w.works
  15028. .split(".")
  15029. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15030. ) {
  15031. this.pptImgUrl = w.works;
  15032. this.showPDF = true;
  15033. }
  15034. } else if (w.works && w.type == 3) {
  15035. this.videoDetail = {};
  15036. this.playerOptions1.sources[0].src = w.works;
  15037. this.videoDetail = this.playerOptions1;
  15038. }else if(w.type == 17){
  15039. let englishVoiceJson = {}
  15040. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15041. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  15042. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15043. .toolChoose[index].englishVoiceJson
  15044. : {};
  15045. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  15046. }
  15047. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15048. },
  15049. addComment(wid, uid, t,detail) {
  15050. if (this.commentText == "") {
  15051. this.$message.error("请输入评论");
  15052. return;
  15053. }
  15054. let params2 = [
  15055. {
  15056. wid: wid,
  15057. lid: uid,
  15058. t: t,
  15059. },
  15060. ];
  15061. this.ajax
  15062. .post(this.$store.state.api + "getComment", params2)
  15063. .then((res) => {
  15064. if (res.data[0].length > 0) {
  15065. this.$message.error("一个作业只能评论一条");
  15066. } else {
  15067. let params = [
  15068. {
  15069. wid: wid,
  15070. lid: uid,
  15071. t: t,
  15072. c: this.commentText,
  15073. },
  15074. ];
  15075. this.ajax
  15076. .post(this.$store.state.api + "insertComment", params)
  15077. .then((res) => {
  15078. this.$message({
  15079. message: "评论成功",
  15080. type: "success",
  15081. });
  15082. this.commentText = "";
  15083. this.selectSWorks();
  15084. this.selectStudent();
  15085. if(this.tType!=2){
  15086. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  15087. }
  15088. })
  15089. .catch((err) => {
  15090. this.$message.error("评论失败");
  15091. console.error(err);
  15092. });
  15093. }
  15094. })
  15095. .catch((err) => {
  15096. // this.$message.error("评论失败");
  15097. console.error(err);
  15098. });
  15099. },
  15100. scoreWork(wid,sName) {
  15101. if (this.wScore == 0) {
  15102. this.$message.error("请评分");
  15103. return;
  15104. }
  15105. let params = [
  15106. {
  15107. wid: wid,
  15108. score: JSON.stringify({
  15109. wScore: this.wScore,
  15110. detail: this.scoreDetail,
  15111. }),
  15112. },
  15113. ];
  15114. this.ajax
  15115. .post(this.$store.state.api + "scoreWork", params)
  15116. .then((res) => {
  15117. this.$message({
  15118. message: "评分成功",
  15119. type: "success",
  15120. });
  15121. this.wScore = 0;
  15122. this.scoreDetail = "";
  15123. this.dialogVisibleScore = false;
  15124. this.selectSWorks();
  15125. this.selectStudent();
  15126. if(this.tType!=2){
  15127. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  15128. }
  15129. })
  15130. .catch((err) => {
  15131. this.$message.error("评分失败");
  15132. console.error(err);
  15133. });
  15134. },
  15135. openXz(w, i) {
  15136. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15137. .taskJson[this.taskCount].toolChoose[i].selectJson
  15138. ? JSON.parse(
  15139. JSON.stringify(
  15140. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15141. this.taskCount
  15142. ].toolChoose[i].selectJson
  15143. )
  15144. )
  15145. : { url: "", select: [], answer: [] };
  15146. var a = w.works.split(",");
  15147. for (var k = 0; k < a.length; k++) {
  15148. a[k] = parseInt(a[k]);
  15149. }
  15150. this.selectAnswer = { answer: a, stu: w.sName };
  15151. this.isSelect = true;
  15152. this.dialogVisibleSelect = true;
  15153. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15154. },
  15155. openSen(w, i) {
  15156. this.sentenceList1 = JSON.parse(w.works);
  15157. this.sentenceList1.stuName = w.sName;
  15158. this.dialogVisibleSentence1 = true;
  15159. },
  15160. openPj(w, toolindex) {
  15161. this.isStar = true;
  15162. this.eScore = JSON.parse(w);
  15163. this.rateJson =
  15164. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15165. this.taskCount
  15166. ].toolChoose[toolindex].rateJson;
  15167. this.studentEvalDialogVisible = true;
  15168. },
  15169. openEnglishEva(id,i){
  15170. let params = {
  15171. wid: id
  15172. };
  15173. this.ajax
  15174. .get(this.$store.state.api + "selectEngWork", params)
  15175. .then((res) => {
  15176. this.evaEngJson.message = res.data[0][0];
  15177. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  15178. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15179. .toolChoose[i].englishList;
  15180. this.engEvaDialogVisible = true;
  15181. })
  15182. .catch((err) => {
  15183. console.error(err);
  15184. });
  15185. },
  15186. deleteWorks(id) {
  15187. this.$confirm("确定删除此作业吗?", "提示", {
  15188. confirmButtonText: "确定",
  15189. cancelButtonText: "取消",
  15190. type: "warning",
  15191. })
  15192. .then(() => {
  15193. let params = [
  15194. {
  15195. id: id,
  15196. },
  15197. ];
  15198. this.ajax
  15199. .post(this.$store.state.api + "deleteCourseWork", params)
  15200. .then((res) => {
  15201. this.$message({
  15202. message: "删除成功",
  15203. type: "success",
  15204. });
  15205. this.selectStudent();
  15206. this.selectSWorks();
  15207. this.selectSLook();
  15208. })
  15209. .catch((err) => {
  15210. this.$message.error("网络异常");
  15211. console.error(err);
  15212. });
  15213. })
  15214. .catch(() => {});
  15215. },
  15216. selectSWorks(gindex) {
  15217. if(this.selectSWorksLoading) return
  15218. this.selectSWorksLoading = true
  15219. //教师查看全部作业
  15220. let params = {
  15221. cid: this.id,
  15222. s: this.courseType,
  15223. t: this.taskCount,
  15224. };
  15225. this.ajax
  15226. .get(this.$store.state.api + "selectSWorks", params)
  15227. .then((res) => {
  15228. var a =
  15229. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15230. this.taskCount
  15231. ].toolChoose;
  15232. var b = res.data[0];
  15233. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15234. var y = [
  15235. "AVI",
  15236. "NAVI",
  15237. "MPEG",
  15238. "ASF",
  15239. "MOV",
  15240. "WMV",
  15241. "3GP",
  15242. "RM",
  15243. "RMVB",
  15244. "FLV",
  15245. "F4V",
  15246. "H.264",
  15247. "H.265",
  15248. "REAL VIDEO",
  15249. "MKV",
  15250. "WebM",
  15251. "HDDVD",
  15252. "MP4",
  15253. "MPG",
  15254. "M4V",
  15255. "MGV",
  15256. "OGV",
  15257. "QTM",
  15258. "STR",
  15259. "AMC",
  15260. "DVX",
  15261. "EVO",
  15262. "DAT",
  15263. "OGG",
  15264. "OGM",
  15265. ];
  15266. var d = res.data[1];
  15267. var e = res.data[2];
  15268. var f = res.data[3];
  15269. let _worksStudent = [];
  15270. var _worksStudent2 = [];
  15271. for (var i = 0; i < a.length; i++) {
  15272. _worksStudent[i] = [];
  15273. _worksStudent2[i] = [];
  15274. if (
  15275. !this.isCloseList[i] ||
  15276. this.isCloseList[i].isClose == undefined
  15277. ) {
  15278. this.isCloseList[i] = { isClose: 0 };
  15279. }
  15280. this.groupStudent[i] = [];
  15281. this.groupStudentUid[i] = [];
  15282. if (this.isGroup) {
  15283. for (
  15284. var groupI = 0;
  15285. groupI < this.courseGroup.group.length;
  15286. groupI++
  15287. ) {
  15288. this.courseGroup.group[groupI].works[i] = [];
  15289. }
  15290. }
  15291. this.isWorksS[i] = [];
  15292. this.checkJson[i] = [];
  15293. if (a[i].tool[0] == 49) {
  15294. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15295. this.groupStudent[i][gA] = [];
  15296. this.groupStudentUid[i][gA] = [];
  15297. _worksStudent[i][gA] = [];
  15298. _worksStudent2[i][gA] = [];
  15299. this.isCloseList[i][gA] = [];
  15300. for (var g = 0; g < f.length; g++) {
  15301. if (
  15302. f[g].ttype == 2 &&
  15303. this.tcid &&
  15304. this.arrayToArray(
  15305. (f[g].classid ? f[g].classid.split(",") : []),
  15306. this.tcid.split(",")
  15307. ).length == 0
  15308. ) {
  15309. continue;
  15310. }
  15311. let _classId = this.arrayToArray(
  15312. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15313. this.classId ? this.classId.split(",") : []
  15314. )
  15315. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15316. (f[g].classid ? f[g].classid.split(",") : []),
  15317. this.tcid.split(",")
  15318. ).length !== 0 || this.arrayToArray(
  15319. (f[g].classid ? f[g].classid.split(",") : []),
  15320. _classId
  15321. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15322. this.groupStudent[i][gA].push(f[g]);
  15323. this.groupStudentUid[i][gA].push(f[g].userid);
  15324. }
  15325. }
  15326. }
  15327. this.$forceUpdate();
  15328. }
  15329. for (var j = 0; j < b.length; j++) {
  15330. if (
  15331. b[j].ttype == 2 &&
  15332. this.tcid &&
  15333. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15334. .length == 0
  15335. ) {
  15336. continue;
  15337. }
  15338. var likesCount = 0;
  15339. var commentCount = 0;
  15340. var isLikes = false;
  15341. var commentJson = [];
  15342. var likeJson = [];
  15343. var data = b[j];
  15344. if (i == b[j].tool) {
  15345. if (data.type == 2 && a[i].tool[0] == 4) {
  15346. // if(JSON.parse(data.content)[0].anwer){
  15347. var checkL =
  15348. JSON.parse(data.content)[0].anwer instanceof Array
  15349. ? JSON.parse(data.content)[0].anwer
  15350. : JSON.parse(data.content)[0].anwer.split(",");
  15351. for (var z = 0; z < checkL.length; z++) {
  15352. if (!this.checkJson[i][z]) {
  15353. this.checkJson[i].push({
  15354. checkCount: [],
  15355. checkPerson: [],
  15356. rightPerson: [],
  15357. });
  15358. }
  15359. if (!this.checkJson[i][z].checkCount.length) {
  15360. this.checkJson[i][z].checkCount = [];
  15361. let _askItemCount = JSON.parse(data.content)[0].askJson
  15362. .askJson[z].askItem;
  15363. for (var aic = 0; aic < _askItemCount; aic++) {
  15364. this.checkJson[i][z].checkCount.push(0);
  15365. }
  15366. }
  15367. if (checkL[z] instanceof Array) {
  15368. if (
  15369. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15370. checkL[z].sort().join(",")
  15371. ) {
  15372. this.checkJson[i][z].rightPerson.push(data.name);
  15373. }
  15374. for (var q = 0; q < checkL[z].length; q++) {
  15375. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15376. ? this.checkJson[i][z].checkPerson[
  15377. parseInt(checkL[z][q])
  15378. ].push(data.name)
  15379. : (this.checkJson[i][z].checkPerson[
  15380. parseInt(checkL[z][q])
  15381. ] = [data.name]);
  15382. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15383. ? this.checkJson[i][z].checkCount[
  15384. parseInt(checkL[z][q])
  15385. ]++
  15386. : (this.checkJson[i][z].checkCount[
  15387. parseInt(checkL[z][q])
  15388. ] = 1);
  15389. }
  15390. } else {
  15391. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  15392. this.checkJson[i][z].rightPerson.push(data.name);
  15393. }
  15394. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15395. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15396. ? this.checkJson[i][z].checkPerson[
  15397. parseInt(checkL[z])
  15398. ].push(data.name)
  15399. : (this.checkJson[i][z].checkPerson[
  15400. parseInt(checkL[z])
  15401. ] = [data.name]);
  15402. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15403. ? this.checkJson[i][z].checkCount[
  15404. parseInt(checkL[z])
  15405. ]++
  15406. : (this.checkJson[i][z].checkCount[
  15407. parseInt(checkL[z])
  15408. ] = 1);
  15409. }
  15410. }
  15411. }
  15412. } else if (data.type == 8 && a[i].tool[0] == 45) {
  15413. var checkL = JSON.parse(data.content)[0].anwer;
  15414. for (var z = 0; z < checkL.length; z++) {
  15415. if (!this.checkJson[i][z]) {
  15416. this.checkJson[i].push({
  15417. checkCount: [],
  15418. checkPerson: [],
  15419. rightPerson: [],
  15420. });
  15421. }
  15422. if (!this.checkJson[i][z].checkCount.length) {
  15423. this.checkJson[i][z].checkCount = [];
  15424. let _askItemCount = JSON.parse(data.content)[0].testJson
  15425. .testJson[z].testItem;
  15426. for (var aic = 0; aic < _askItemCount; aic++) {
  15427. this.checkJson[i][z].checkCount.push(0);
  15428. }
  15429. }
  15430. if (checkL[z] instanceof Array) {
  15431. if (
  15432. JSON.parse(data.content)[0]
  15433. .testJson.testJson[z].answer.sort()
  15434. .join(",") == checkL[z].sort().join(",")
  15435. ) {
  15436. this.checkJson[i][z].rightPerson.push(data.name);
  15437. }
  15438. for (var q = 0; q < checkL[z].length; q++) {
  15439. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15440. ? this.checkJson[i][z].checkPerson[
  15441. parseInt(checkL[z][q])
  15442. ].push(data.name)
  15443. : (this.checkJson[i][z].checkPerson[
  15444. parseInt(checkL[z][q])
  15445. ] = [data.name]);
  15446. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15447. ? this.checkJson[i][z].checkCount[
  15448. parseInt(checkL[z][q])
  15449. ]++
  15450. : (this.checkJson[i][z].checkCount[
  15451. parseInt(checkL[z][q])
  15452. ] = 1);
  15453. }
  15454. } else {
  15455. if (
  15456. JSON.parse(data.content)[0].testJson.testJson[z]
  15457. .answer == checkL[z]
  15458. ) {
  15459. this.checkJson[i][z].rightPerson.push(data.name);
  15460. }
  15461. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15462. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15463. ? this.checkJson[i][z].checkPerson[
  15464. parseInt(checkL[z])
  15465. ].push(data.name)
  15466. : (this.checkJson[i][z].checkPerson[
  15467. parseInt(checkL[z])
  15468. ] = [data.name]);
  15469. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15470. ? this.checkJson[i][z].checkCount[
  15471. parseInt(checkL[z])
  15472. ]++
  15473. : (this.checkJson[i][z].checkCount[
  15474. parseInt(checkL[z])
  15475. ] = 1);
  15476. }
  15477. }
  15478. }
  15479. } else if (data.type == 9 && a[i].tool[0] == 47) {
  15480. var checkL = JSON.parse(data.content);
  15481. for (var z = 0; z < checkL.length; z++) {
  15482. if (!this.checkJson[i][z]) {
  15483. this.checkJson[i].push({
  15484. checkCount: [],
  15485. checkPerson: [],
  15486. rightPerson: [],
  15487. });
  15488. }
  15489. this.checkJson[i][z].checkPerson.push(data.name);
  15490. if (
  15491. checkL[z].chooseSenList.toString() ==
  15492. checkL[z].rightAnswer.toString()
  15493. ) {
  15494. this.checkJson[i][z].rightPerson.push(data.name);
  15495. }
  15496. }
  15497. }
  15498. for (var k = 0; k < d.length; k++) {
  15499. //点赞
  15500. if (d[k].workId == b[j].id) {
  15501. likesCount++;
  15502. likeJson.push(d[k])
  15503. if (d[k].likesId == this.userid) {
  15504. isLikes = true;
  15505. }
  15506. }
  15507. }
  15508. for (var l = 0; l < e.length; l++) {
  15509. //评论
  15510. if (e[l].workId == b[j].id) {
  15511. if (e[l].comment != "") {
  15512. commentCount++;
  15513. commentJson.push({
  15514. commentText: e[l].comment,
  15515. commentTime: e[l].commentTime,
  15516. commentPeople: e[l].commentPeople,
  15517. userid: e[l].userid,
  15518. wid: e[l].id,
  15519. });
  15520. }
  15521. }
  15522. }
  15523. if (
  15524. (b[j].type == 1 ||
  15525. b[j].type == 4 ||
  15526. b[j].type == 5 ||
  15527. b[j].type == 6 ||
  15528. b[j].type == 12 ||
  15529. b[j].type == 7) &&
  15530. a[i].tool[0] != 15 &&
  15531. a[i].tool[0] != 4 &&
  15532. a[i].tool[0] != 45 &&
  15533. a[i].tool[0] != 50 &&
  15534. a[i].tool[0] != 32 &&
  15535. a[i].tool[0] != 57 &&
  15536. a[i].tool[0] != 52
  15537. ) {
  15538. if (
  15539. c.indexOf(
  15540. b[j].content
  15541. .split(".")
  15542. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15543. ) != -1 &&
  15544. a[i].tool[0] == 16 &&
  15545. b[j].atool != 50
  15546. ) {
  15547. let _works = {
  15548. userid: b[j].userid,
  15549. ateacher: b[j].ateacher,
  15550. wid: b[j].id,
  15551. works: b[j].content,
  15552. sName: b[j].name,
  15553. type: 1,
  15554. ttype:b[j].ttype,
  15555. time: b[j].time,
  15556. score: b[j].score,
  15557. img: b[j].img,
  15558. likesCount: likesCount,
  15559. commentCount: commentCount,
  15560. isLikes: isLikes,
  15561. commentJson: commentJson,
  15562. likeJson:likeJson
  15563. };
  15564. if (this.isGroup) {
  15565. let isGw = 1;
  15566. for (
  15567. var groupI = 0;
  15568. groupI < this.courseGroup.group.length;
  15569. groupI++
  15570. ) {
  15571. let gid = this.courseGroup.group[groupI].id;
  15572. if (
  15573. this.courseGroupStudentUid[gid].indexOf(
  15574. b[j].userid
  15575. ) != -1
  15576. ) {
  15577. isGw = 2;
  15578. this.courseGroup.group[groupI].works[i].push(_works);
  15579. break;
  15580. }
  15581. }
  15582. if (isGw == 1) {
  15583. _worksStudent[i].push(_works);
  15584. }
  15585. } else {
  15586. _worksStudent[i].push(_works);
  15587. }
  15588. _worksStudent2[i].push(_works);
  15589. this.isWorksS[i].push({
  15590. uid: b[j].userid,
  15591. sName: b[j].name,
  15592. });
  15593. } else if (
  15594. y.indexOf(
  15595. b[j].content
  15596. .split(".")
  15597. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15598. ) != -1 &&
  15599. a[i].tool[0] == 16 &&
  15600. b[j].atool != 50
  15601. ) {
  15602. let _works = {
  15603. userid: b[j].userid,
  15604. ateacher: b[j].ateacher,
  15605. wid: b[j].id,
  15606. works: b[j].content,
  15607. sName: b[j].name,
  15608. type: 3,
  15609. ttype:b[j].ttype,
  15610. time: b[j].time,
  15611. score: b[j].score,
  15612. img: b[j].img,
  15613. likesCount: likesCount,
  15614. commentCount: commentCount,
  15615. isLikes: isLikes,
  15616. commentJson: commentJson,
  15617. likeJson:likeJson
  15618. };
  15619. if (this.isGroup) {
  15620. let isGw = 1;
  15621. for (
  15622. var groupI = 0;
  15623. groupI < this.courseGroup.group.length;
  15624. groupI++
  15625. ) {
  15626. let gid = this.courseGroup.group[groupI].id;
  15627. if (
  15628. this.courseGroupStudentUid[gid].indexOf(
  15629. b[j].userid
  15630. ) != -1
  15631. ) {
  15632. isGw = 2;
  15633. this.courseGroup.group[groupI].works[i].push(_works);
  15634. break;
  15635. }
  15636. }
  15637. if (isGw == 1) {
  15638. _worksStudent[i].push(_works);
  15639. }
  15640. } else {
  15641. _worksStudent[i].push(_works);
  15642. }
  15643. _worksStudent2[i].push(_works);
  15644. this.isWorksS[i].push({
  15645. uid: b[j].userid,
  15646. sName: b[j].name,
  15647. });
  15648. } else if (b[j].type == 6 && b[j].atool != 50) {
  15649. let _works = {
  15650. userid: b[j].userid,
  15651. ateacher: b[j].ateacher,
  15652. wid: b[j].id,
  15653. works: b[j].content,
  15654. sName: b[j].name,
  15655. type: 4,
  15656. ttype:b[j].ttype,
  15657. time: b[j].time,
  15658. score: b[j].score,
  15659. img: b[j].img,
  15660. likesCount: likesCount,
  15661. commentCount: commentCount,
  15662. isLikes: isLikes,
  15663. commentJson: commentJson,
  15664. likeJson:likeJson
  15665. };
  15666. _worksStudent[i].push(_works);
  15667. _worksStudent2[i].push(_works);
  15668. this.isWorksS[i].push({
  15669. uid: b[j].userid,
  15670. sName: b[j].name,
  15671. });
  15672. } else if (b[j].type == 7 && b[j].atool != 50) {
  15673. let _work = {
  15674. userid: b[j].userid,
  15675. ateacher: b[j].ateacher,
  15676. wid: b[j].id,
  15677. works: b[j].content,
  15678. sName: b[j].name,
  15679. type: 5,
  15680. ttype:b[j].ttype,
  15681. time: b[j].time,
  15682. score: b[j].score,
  15683. img: b[j].img,
  15684. likesCount: likesCount,
  15685. commentCount: commentCount,
  15686. isLikes: isLikes,
  15687. commentJson: commentJson,
  15688. likeJson:likeJson
  15689. };
  15690. _worksStudent[i].push(_work);
  15691. _worksStudent2[i].push(_work);
  15692. this.isWorksS[i].push({
  15693. uid: b[j].userid,
  15694. sName: b[j].name,
  15695. });
  15696. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15697. let _works = {
  15698. userid: b[j].userid,
  15699. ateacher: b[j].ateacher,
  15700. wid: b[j].id,
  15701. works: b[j].content,
  15702. sName: b[j].name,
  15703. type: 12,
  15704. ttype:b[j].ttype,
  15705. time: b[j].time,
  15706. score: b[j].score,
  15707. img: b[j].img,
  15708. likesCount: likesCount,
  15709. commentCount: commentCount,
  15710. isLikes: isLikes,
  15711. commentJson: commentJson,
  15712. likeJson:likeJson
  15713. };
  15714. if (this.isGroup) {
  15715. let isGw = 1;
  15716. for (
  15717. var groupI = 0;
  15718. groupI < this.courseGroup.group.length;
  15719. groupI++
  15720. ) {
  15721. let gid = this.courseGroup.group[groupI].id;
  15722. if (
  15723. this.courseGroupStudentUid[gid].indexOf(
  15724. b[j].userid
  15725. ) != -1
  15726. ) {
  15727. isGw = 2;
  15728. this.courseGroup.group[groupI].works[i].push(_works);
  15729. break;
  15730. }
  15731. }
  15732. if (isGw == 1) {
  15733. _worksStudent[i].push(_works);
  15734. }
  15735. } else {
  15736. _worksStudent[i].push(_works);
  15737. }
  15738. _worksStudent2[i].push(_works);
  15739. this.isWorksS[i].push({
  15740. uid: b[j].userid,
  15741. sName: b[j].name,
  15742. });
  15743. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15744. let _works = {
  15745. userid: b[j].userid,
  15746. ateacher: b[j].ateacher,
  15747. wid: b[j].id,
  15748. works: b[j].content,
  15749. sName: b[j].name,
  15750. type: 0,
  15751. ttype:b[j].ttype,
  15752. time: b[j].time,
  15753. score: b[j].score,
  15754. img: b[j].img,
  15755. likesCount: likesCount,
  15756. commentCount: commentCount,
  15757. isLikes: isLikes,
  15758. commentJson: commentJson,
  15759. likeJson:likeJson
  15760. };
  15761. if (this.isGroup) {
  15762. let isGw = 1;
  15763. for (
  15764. var groupI = 0;
  15765. groupI < this.courseGroup.group.length;
  15766. groupI++
  15767. ) {
  15768. let gid = this.courseGroup.group[groupI].id;
  15769. if (
  15770. this.courseGroupStudentUid[gid].indexOf(
  15771. b[j].userid
  15772. ) != -1
  15773. ) {
  15774. isGw = 2;
  15775. this.courseGroup.group[groupI].works[i].push(_works);
  15776. break;
  15777. }
  15778. }
  15779. if (isGw == 1) {
  15780. _worksStudent[i].push(_works);
  15781. }
  15782. } else {
  15783. _worksStudent[i].push(_works);
  15784. }
  15785. _worksStudent2[i].push(_works);
  15786. this.isWorksS[i].push({
  15787. uid: b[j].userid,
  15788. sName: b[j].name,
  15789. });
  15790. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15791. let _works = {
  15792. userid: b[j].userid,
  15793. ateacher: b[j].ateacher,
  15794. wid: b[j].id,
  15795. works: b[j].content,
  15796. sName: b[j].name,
  15797. type: 0,
  15798. ttype:b[j].ttype,
  15799. time: b[j].time,
  15800. score: b[j].score,
  15801. img: b[j].img,
  15802. likesCount: likesCount,
  15803. commentCount: commentCount,
  15804. isLikes: isLikes,
  15805. commentJson: commentJson,
  15806. likeJson:likeJson
  15807. };
  15808. if (this.isGroup) {
  15809. let isGw = 1;
  15810. for (
  15811. var groupI = 0;
  15812. groupI < this.courseGroup.group.length;
  15813. groupI++
  15814. ) {
  15815. let gid = this.courseGroup.group[groupI].id;
  15816. if (
  15817. this.courseGroupStudentUid[gid].indexOf(
  15818. b[j].userid
  15819. ) != -1
  15820. ) {
  15821. isGw = 2;
  15822. this.courseGroup.group[groupI].works[i].push(_works);
  15823. break;
  15824. }
  15825. }
  15826. if (isGw == 1) {
  15827. _worksStudent[i].push(_works);
  15828. }
  15829. } else {
  15830. _worksStudent[i].push(_works);
  15831. }
  15832. _worksStudent2[i].push(_works);
  15833. this.isWorksS[i].push({
  15834. uid: b[j].userid,
  15835. sName: b[j].name,
  15836. });
  15837. }
  15838. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15839. let _works = {
  15840. userid: b[j].userid,
  15841. ateacher: b[j].ateacher,
  15842. wid: b[j].id,
  15843. works: b[j].content,
  15844. sName: b[j].name,
  15845. type: 2,
  15846. ttype:b[j].ttype,
  15847. time: b[j].time,
  15848. score: b[j].score,
  15849. img: b[j].img,
  15850. likesCount: likesCount,
  15851. commentCount: commentCount,
  15852. isLikes: isLikes,
  15853. commentJson: commentJson,
  15854. likeJson:likeJson
  15855. };
  15856. if (this.isGroup) {
  15857. let isGw = 1;
  15858. for (
  15859. var groupI = 0;
  15860. groupI < this.courseGroup.group.length;
  15861. groupI++
  15862. ) {
  15863. let gid = this.courseGroup.group[groupI].id;
  15864. if (
  15865. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15866. -1
  15867. ) {
  15868. isGw = 2;
  15869. this.courseGroup.group[groupI].works[i].push(_works);
  15870. break;
  15871. }
  15872. }
  15873. if (isGw == 1) {
  15874. _worksStudent[i].push(_works);
  15875. }
  15876. } else {
  15877. _worksStudent[i].push(_works);
  15878. }
  15879. _worksStudent2[i].push(_works);
  15880. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15881. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15882. let _works = {
  15883. userid: b[j].userid,
  15884. ateacher: b[j].ateacher,
  15885. wid: b[j].id,
  15886. works: b[j].content,
  15887. sName: b[j].name,
  15888. type: 20,
  15889. ttype:b[j].ttype,
  15890. time: b[j].time,
  15891. score: b[j].score,
  15892. img: b[j].img,
  15893. likesCount: likesCount,
  15894. commentCount: commentCount,
  15895. isLikes: isLikes,
  15896. commentJson: commentJson,
  15897. likeJson:likeJson
  15898. };
  15899. if (this.isGroup) {
  15900. let isGw = 1;
  15901. for (
  15902. var groupI = 0;
  15903. groupI < this.courseGroup.group.length;
  15904. groupI++
  15905. ) {
  15906. let gid = this.courseGroup.group[groupI].id;
  15907. if (
  15908. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15909. -1
  15910. ) {
  15911. isGw = 2;
  15912. this.courseGroup.group[groupI].works[i].push(_works);
  15913. break;
  15914. }
  15915. }
  15916. if (isGw == 1) {
  15917. _worksStudent[i].push(_works);
  15918. }
  15919. } else {
  15920. _worksStudent[i].push(_works);
  15921. }
  15922. _worksStudent2[i].push(_works);
  15923. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15924. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15925. //问卷
  15926. let _work = {
  15927. userid: b[j].userid,
  15928. ateacher: b[j].ateacher,
  15929. wid: b[j].id,
  15930. works: b[j].content,
  15931. sName: b[j].name,
  15932. type: 2,
  15933. ttype:b[j].ttype,
  15934. time: b[j].time,
  15935. score: b[j].score,
  15936. img: b[j].img,
  15937. likesCount: likesCount,
  15938. commentCount: commentCount,
  15939. isLikes: isLikes,
  15940. commentJson: commentJson,
  15941. likeJson:likeJson
  15942. };
  15943. _worksStudent[i].push(_work);
  15944. _worksStudent2[i].push(_work);
  15945. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15946. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15947. //选择题
  15948. let _work = {
  15949. userid: b[j].userid,
  15950. ateacher: b[j].ateacher,
  15951. wid: b[j].id,
  15952. works: b[j].content,
  15953. sName: b[j].name,
  15954. type: 8,
  15955. ttype:b[j].ttype,
  15956. time: b[j].time,
  15957. score: b[j].score,
  15958. img: b[j].img,
  15959. likesCount: likesCount,
  15960. commentCount: commentCount,
  15961. isLikes: isLikes,
  15962. commentJson: commentJson,
  15963. likeJson:likeJson
  15964. };
  15965. _worksStudent[i].push(_work);
  15966. _worksStudent2[i].push(_work);
  15967. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15968. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15969. //选择题
  15970. let _work = {
  15971. userid: b[j].userid,
  15972. ateacher: b[j].ateacher,
  15973. wid: b[j].id,
  15974. works: b[j].content,
  15975. sName: b[j].name,
  15976. type: 9,
  15977. ttype:b[j].ttype,
  15978. time: b[j].time,
  15979. score: b[j].score,
  15980. img: b[j].img,
  15981. likesCount: likesCount,
  15982. commentCount: commentCount,
  15983. isLikes: isLikes,
  15984. commentJson: commentJson,
  15985. likeJson:likeJson
  15986. };
  15987. _worksStudent[i].push(_work);
  15988. _worksStudent2[i].push(_work);
  15989. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15990. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15991. //选择题
  15992. let _work = {
  15993. userid: b[j].userid,
  15994. ateacher: b[j].ateacher,
  15995. wid: b[j].id,
  15996. works: b[j].content,
  15997. sName: b[j].name,
  15998. type: 10,
  15999. ttype:b[j].ttype,
  16000. time: b[j].time,
  16001. score: b[j].score,
  16002. img: b[j].img,
  16003. likesCount: likesCount,
  16004. commentCount: commentCount,
  16005. isLikes: isLikes,
  16006. commentJson: commentJson,
  16007. likeJson:likeJson
  16008. };
  16009. _worksStudent[i].push(_work);
  16010. _worksStudent2[i].push(_work);
  16011. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16012. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  16013. //选择题
  16014. let _work = {
  16015. userid: b[j].userid,
  16016. ateacher: b[j].ateacher,
  16017. wid: b[j].id,
  16018. works: b[j].content,
  16019. sName: b[j].name,
  16020. type: 13,
  16021. ttype:b[j].ttype,
  16022. time: b[j].time,
  16023. score: b[j].score,
  16024. img: b[j].img,
  16025. likesCount: likesCount,
  16026. commentCount: commentCount,
  16027. isLikes: isLikes,
  16028. commentJson: commentJson,
  16029. likeJson:likeJson
  16030. };
  16031. _worksStudent[i].push(_work);
  16032. _worksStudent2[i].push(_work);
  16033. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16034. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  16035. //选择题
  16036. let _work = {
  16037. userid: b[j].userid,
  16038. ateacher: b[j].ateacher,
  16039. wid: b[j].id,
  16040. works: b[j].content,
  16041. sName: b[j].name,
  16042. type: 16,
  16043. ttype:b[j].ttype,
  16044. time: b[j].time,
  16045. score: b[j].score,
  16046. img: b[j].img,
  16047. likesCount: likesCount,
  16048. commentCount: commentCount,
  16049. isLikes: isLikes,
  16050. commentJson: commentJson,
  16051. aiCode: b[j].aiCode,
  16052. teacherCode: b[j].teacherCode,
  16053. likeJson:likeJson
  16054. };
  16055. _worksStudent[i].push(_work);
  16056. _worksStudent2[i].push(_work);
  16057. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16058. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  16059. //英语口语
  16060. let _work = {
  16061. userid: b[j].userid,
  16062. ateacher: b[j].ateacher,
  16063. wid: b[j].id,
  16064. works: b[j].content,
  16065. sName: b[j].name,
  16066. type: 17,
  16067. ttype:b[j].ttype,
  16068. time: b[j].time,
  16069. score: b[j].score,
  16070. img: b[j].img,
  16071. likesCount: likesCount,
  16072. commentCount: commentCount,
  16073. isLikes: isLikes,
  16074. commentJson: commentJson,
  16075. likeJson:likeJson
  16076. };
  16077. _worksStudent[i].push(_work);
  16078. _worksStudent2[i].push(_work);
  16079. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16080. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  16081. //交互视频
  16082. let _work = {
  16083. userid: b[j].userid,
  16084. ateacher: b[j].ateacher,
  16085. wid: b[j].id,
  16086. works: b[j].content,
  16087. sName: b[j].name,
  16088. type: 14,
  16089. ttype:b[j].ttype,
  16090. time: b[j].time,
  16091. score: b[j].score,
  16092. img: b[j].img,
  16093. likesCount: likesCount,
  16094. commentCount: commentCount,
  16095. isLikes: isLikes,
  16096. commentJson: commentJson,
  16097. likeJson:likeJson
  16098. };
  16099. _worksStudent[i].push(_work);
  16100. _worksStudent2[i].push(_work);
  16101. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16102. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  16103. let _gindex = JSON.parse(b[j].content);
  16104. if (
  16105. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  16106. b[j].userid
  16107. ) != -1
  16108. ) {
  16109. let _work = {
  16110. userid: b[j].userid,
  16111. ateacher: b[j].ateacher,
  16112. wid: b[j].id,
  16113. works: _gindex.url,
  16114. sName: b[j].name,
  16115. type: _gindex.type,
  16116. ttype:b[j].ttype,
  16117. time: b[j].time,
  16118. score: b[j].score,
  16119. img: b[j].img,
  16120. likesCount: likesCount,
  16121. commentCount: commentCount,
  16122. isLikes: isLikes,
  16123. commentJson: commentJson,
  16124. likeJson:likeJson
  16125. };
  16126. _worksStudent[i][_gindex.groupIndex].push(_work);
  16127. _worksStudent2[i][_gindex.groupIndex].push(_work);
  16128. }
  16129. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16130. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  16131. let _work = {
  16132. userid: b[j].userid,
  16133. ateacher: b[j].ateacher,
  16134. wid: b[j].id,
  16135. works: b[j].content,
  16136. sName: b[j].name ? b[j].name : b[j].userid,
  16137. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  16138. ttype:b[j].ttype,
  16139. time: b[j].time,
  16140. score: b[j].score,
  16141. img: b[j].img,
  16142. likesCount: likesCount,
  16143. commentCount: commentCount,
  16144. isLikes: isLikes,
  16145. commentJson: commentJson,
  16146. likeJson:likeJson
  16147. };
  16148. _worksStudent[i].push(_work);
  16149. _worksStudent2[i].push(_work);
  16150. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16151. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  16152. let _work = {
  16153. userid: b[j].userid,
  16154. ateacher: b[j].ateacher,
  16155. wid: b[j].id,
  16156. works: b[j].content,
  16157. sName: b[j].name ? b[j].name : b[j].userid,
  16158. type: 12,
  16159. ttype:b[j].ttype,
  16160. time: b[j].time,
  16161. score: b[j].score,
  16162. img: b[j].img,
  16163. likesCount: likesCount,
  16164. commentCount: commentCount,
  16165. isLikes: isLikes,
  16166. commentJson: commentJson,
  16167. likeJson:likeJson
  16168. };
  16169. _worksStudent[i].push(_work);
  16170. _worksStudent2[i].push(_work);
  16171. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16172. } else if (
  16173. a[i].tool[0] == 57 &&
  16174. b[j].atool == 57 &&
  16175. b[j].type == 12
  16176. ) {
  16177. let _work = {
  16178. userid: b[j].userid,
  16179. ateacher: b[j].ateacher,
  16180. wid: b[j].id,
  16181. works: b[j].content,
  16182. sName: b[j].name ? b[j].name : b[j].userid,
  16183. type: 12,
  16184. ttype:b[j].ttype,
  16185. time: b[j].time,
  16186. score: b[j].score,
  16187. img: b[j].img,
  16188. likesCount: likesCount,
  16189. commentCount: commentCount,
  16190. isLikes: isLikes,
  16191. commentJson: commentJson,
  16192. likeJson:likeJson
  16193. };
  16194. _worksStudent[i].push(_work);
  16195. _worksStudent2[i].push(_work);
  16196. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16197. } else if (
  16198. a[i].tool[0] == 57 &&
  16199. b[j].atool == 57 &&
  16200. b[j].type == 15
  16201. ) {
  16202. let _work = {
  16203. userid: b[j].userid,
  16204. ateacher: b[j].ateacher,
  16205. wid: b[j].id,
  16206. works: b[j].content,
  16207. sName: b[j].name ? b[j].name : b[j].userid,
  16208. type: 15,
  16209. ttype:b[j].ttype,
  16210. time: b[j].time,
  16211. score: b[j].score,
  16212. img: b[j].img,
  16213. likesCount: likesCount,
  16214. commentCount: commentCount,
  16215. isLikes: isLikes,
  16216. commentJson: commentJson,
  16217. likeJson:likeJson
  16218. };
  16219. _worksStudent[i].push(_work);
  16220. _worksStudent2[i].push(_work);
  16221. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16222. }
  16223. }
  16224. }
  16225. if (_worksStudent[i] && _worksStudent[i].length) {
  16226. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  16227. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16228. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16229. var scoreA = parseFloat(jscoreA);
  16230. var scoreB = parseFloat(jscoreB);
  16231. if (scoreA == scoreB) {
  16232. return b.likesCount - a.likesCount;
  16233. }
  16234. return scoreB - scoreA;
  16235. });
  16236. if (this.isGroup) {
  16237. for (
  16238. var groupI = 0;
  16239. groupI < this.courseGroup.group.length;
  16240. groupI++
  16241. ) {
  16242. this.courseGroup.group[groupI].works[i] =
  16243. this.courseGroup.group[groupI].works[i].sort(function (
  16244. a,
  16245. b
  16246. ) {
  16247. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16248. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16249. var scoreA = parseFloat(jscoreA);
  16250. var scoreB = parseFloat(jscoreB);
  16251. if (scoreA == scoreB) {
  16252. return b.likesCount - a.likesCount;
  16253. }
  16254. return scoreB - scoreA;
  16255. });
  16256. }
  16257. }
  16258. }
  16259. }
  16260. this.timeWorkList = _worksStudent2;
  16261. for (var i = 0; i < a.length; i++) {
  16262. for (var j = 0; j < b.length; j++) {
  16263. var data = b[j];
  16264. if (i == b[j].tool) {
  16265. if (data.type == 2 || data.type == 8) {
  16266. for (var z = 0; z < this.checkJson[i].length; z++) {
  16267. this.checkJson[i][z].checkPerent = [];
  16268. this.checkJson[i][z].right = Math.round(
  16269. (this.checkJson[i][z].rightPerson.length /
  16270. parseInt(_worksStudent[i].length)) *
  16271. 100
  16272. );
  16273. let aaaa = this.checkJson[i][z];
  16274. for (
  16275. var k = 0;
  16276. k < this.checkJson[i][z].checkCount.length;
  16277. k++
  16278. ) {
  16279. this.checkJson[i][z].checkPerent.push(
  16280. Math.round(
  16281. (this.checkJson[i][z].checkCount[k] /
  16282. parseInt(_worksStudent[i].length)) *
  16283. 100
  16284. )
  16285. );
  16286. }
  16287. }
  16288. } else if (data.type == 9) {
  16289. for (var z = 0; z < this.checkJson[i].length; z++) {
  16290. this.checkJson[i][z].checkPerent = [];
  16291. this.checkJson[i][z].right = Math.round(
  16292. (this.checkJson[i][z].rightPerson.length /
  16293. this.checkJson[i][z].checkPerson.length) *
  16294. 100
  16295. );
  16296. }
  16297. }
  16298. }
  16299. }
  16300. }
  16301. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16302. this.joinGroup(gindex);
  16303. }
  16304. this.worksStudent = _worksStudent;
  16305. this.selectWorksStudent();
  16306. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16307. this.$nextTick(()=>{
  16308. setTimeout(()=>{
  16309. setTimeout(()=>{
  16310. this.panToolHeight('tool-'+ci);
  16311. }, 500)
  16312. }, 0)
  16313. })
  16314. }
  16315. this.selectSWorksLoading = false
  16316. })
  16317. .catch((err) => {
  16318. this.selectSWorksLoading = false
  16319. console.error(err);
  16320. });
  16321. },
  16322. pngToWhiteBg(file) {
  16323. const _file = file;
  16324. let read = new FileReader();
  16325. read.readAsDataURL(file); // 文件转base64
  16326. return new Promise((resolve, reject) => {
  16327. read.onload = (e) => {
  16328. let img = new Image();
  16329. img.src = e.target.result;
  16330. img.onload = async () => {
  16331. // 生成canvas
  16332. let canvas = document.createElement("canvas");
  16333. let context = canvas.getContext("2d");
  16334. // 绘制图片到canvas上
  16335. canvas.width = img.width;
  16336. canvas.height = img.height;
  16337. // 在canvas绘制前填充白色背景
  16338. context.fillStyle = "#fff";
  16339. context.fillRect(0, 0, canvas.width, canvas.height);
  16340. context.drawImage(img, 0, 0);
  16341. let base64 = canvas.toDataURL(file["type"], 1);
  16342. let newFile = this.dataUrlToFile(base64, _file);
  16343. resolve(newFile);
  16344. };
  16345. };
  16346. });
  16347. },
  16348. dataUrlToFile(dataurl, file) {
  16349. let arr = dataurl.split(","),
  16350. mime = arr[0].match(/:(.*?);/)[1],
  16351. bstr = atob(arr[1]),
  16352. n = bstr.length,
  16353. u8arr = new Uint8Array(n);
  16354. while (n--) {
  16355. u8arr[n] = bstr.charCodeAt(n);
  16356. }
  16357. // return new Blob([u8arr], { type: mime });
  16358. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16359. type: mime,
  16360. });
  16361. },
  16362. async beforeUpload1(event, type, i) {
  16363. // this.$message.success('进入上传')
  16364. var file = "";
  16365. if (type == 5) {
  16366. file = event;
  16367. } else {
  16368. file = event.target.files[0];
  16369. }
  16370. var credentials = {
  16371. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16372. secretAccessKey: "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",
  16373. }; //秘钥形式的登录上传
  16374. window.AWS.config.update(credentials);
  16375. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16376. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16377. var _this = this;
  16378. _this.progress = 0;
  16379. _this.proVisible = true;
  16380. _this.isFinishSize = 0;
  16381. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16382. var b = [
  16383. "DOC",
  16384. "DOCX",
  16385. "DOCM",
  16386. "DOTM",
  16387. "DOTX",
  16388. "PPTX",
  16389. "PPSX",
  16390. "PPT",
  16391. "PPS",
  16392. "PPTM",
  16393. "POTM",
  16394. "PPAM",
  16395. "POTX",
  16396. "PPSM",
  16397. ];
  16398. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16399. var photoA = [
  16400. "BMP",
  16401. "GIF",
  16402. "PNG",
  16403. "JPEG",
  16404. "JPEG",
  16405. "JPG",
  16406. "TIF",
  16407. "PCX",
  16408. "TGA",
  16409. "EXIF",
  16410. "FPX",
  16411. "SVG",
  16412. "APNG",
  16413. ];
  16414. // if (
  16415. // b.indexOf(
  16416. // file.name
  16417. // .split(".")
  16418. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16419. // ) != -1
  16420. // ) {
  16421. // if (file.size / 1024 / 1024 > 10) {
  16422. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  16423. // return;
  16424. // }
  16425. // } else if (
  16426. // excelA.indexOf(
  16427. // file.name
  16428. // .split(".")
  16429. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16430. // ) != "-1"
  16431. // ) {
  16432. // if (file.size / 1024 / 1024 > 5) {
  16433. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  16434. // return;
  16435. // }
  16436. // }
  16437. if (
  16438. photoA.indexOf(
  16439. file.name
  16440. .split(".")
  16441. [file.name.split(".").length - 1].toLocaleUpperCase()
  16442. ) != -1 &&
  16443. type != 4
  16444. ) {
  16445. // const blob = await imageConversion.compress(file, 0.8)
  16446. file = await this.pngToWhiteBg(file);
  16447. const blob = await imageConversion.compressAccurately(file, 256);
  16448. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16449. file = new File([blob], file.name, { type: file.type });
  16450. }
  16451. if (file) {
  16452. var params = {
  16453. Key:
  16454. file.name.split(".")[0] +
  16455. new Date().getTime() +
  16456. "." +
  16457. file.name.split(".")[file.name.split(".").length - 1],
  16458. ContentType: file.type,
  16459. Body: file,
  16460. "Access-Control-Allow-Credentials": "*",
  16461. ACL: "public-read",
  16462. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16463. var options = {
  16464. // partSize: 2048 * 1024 * 1024,
  16465. partSize: 1024 * 1024 * 1024,
  16466. queueSize: 2,
  16467. leavePartsOnError: true,
  16468. };
  16469. bucket
  16470. .upload(params, options)
  16471. .on("httpUploadProgress", function (evt) {
  16472. //这里可以写进度条
  16473. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16474. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  16475. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  16476. })
  16477. .send(function (err, data) {
  16478. _this.progress = 100;
  16479. _this.isFinishSize = _this.isAllSize;
  16480. setTimeout(() => {
  16481. _this.proVisible = false;
  16482. }, 1000);
  16483. if (err) {
  16484. var a = _this.$refs.upload1.uploadFiles;
  16485. a.splice(a.length - 1, a.length);
  16486. _this.$message.error("上传失败");
  16487. } else {
  16488. // _this.$message.success('上传成功')
  16489. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16490. var c = [
  16491. "AVI",
  16492. "NAVI",
  16493. "MPEG",
  16494. "ASF",
  16495. "MOV",
  16496. "WMV",
  16497. "3GP",
  16498. "RM",
  16499. "RMVB",
  16500. "FLV",
  16501. "F4V",
  16502. "H.264",
  16503. "H.265",
  16504. "REAL VIDEO",
  16505. "MKV",
  16506. "WebM",
  16507. "HDDVD",
  16508. "MP4",
  16509. "MPG",
  16510. "M4V",
  16511. "MGV",
  16512. "OGV",
  16513. "QTM",
  16514. "STR",
  16515. "AMC",
  16516. "DVX",
  16517. "EVO",
  16518. "DAT",
  16519. "OGG",
  16520. "OGM",
  16521. ];
  16522. if (type == 1) {
  16523. _this.studyJuri[0].cover.push({
  16524. name: file.name,
  16525. url: data.Location,
  16526. uid: file.uid,
  16527. });
  16528. if (
  16529. c.indexOf(
  16530. _this.studyJuri[0].cover[0].url
  16531. .split(".")
  16532. [
  16533. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16534. ].toLocaleUpperCase()
  16535. ) != -1
  16536. ) {
  16537. _this.fileType = 2;
  16538. } else if (
  16539. b.indexOf(
  16540. _this.studyJuri[0].cover[0].url
  16541. .split(".")
  16542. [
  16543. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16544. ].toLocaleUpperCase()
  16545. ) != -1
  16546. ) {
  16547. _this.fileType = 1;
  16548. } else if (
  16549. photoA.indexOf(
  16550. _this.studyJuri[0].cover[0].url
  16551. .split(".")
  16552. [
  16553. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16554. ].toLocaleUpperCase()
  16555. ) != -1
  16556. ) {
  16557. _this.fileType = 0;
  16558. } else {
  16559. _this.fileType = 3;
  16560. }
  16561. _this.imgChange(null, null, type);
  16562. } else if (type == 2) {
  16563. _this.upToolImg = data.Location;
  16564. _this.imgChange(null, null, type);
  16565. _this.addCourseWorks(i);
  16566. } else if (type == 4) {
  16567. _this.addPz("3", data.Location);
  16568. } else if (type == 5) {
  16569. _this.addImgDrawImG(data.Location);
  16570. } else if (type == 6) {
  16571. var _ftype = 1;
  16572. if (
  16573. c.indexOf(
  16574. data.Location.split(".")[
  16575. data.Location.split(".").length - 1
  16576. ].toLocaleUpperCase()
  16577. ) != -1
  16578. ) {
  16579. _ftype = 5;
  16580. } else if (
  16581. b.indexOf(
  16582. data.Location.split(".")[
  16583. data.Location.split(".").length - 1
  16584. ].toLocaleUpperCase()
  16585. ) != -1
  16586. ) {
  16587. _ftype = 4;
  16588. } else {
  16589. _ftype = 1;
  16590. }
  16591. _this.plworkFile.push({
  16592. name: file.name,
  16593. url: data.Location,
  16594. uid: file.uid,
  16595. fileType: _ftype,
  16596. username:
  16597. _this.plworkFile.length > 10
  16598. ? _this.plworkFile.length + 1
  16599. : "0" + (_this.plworkFile.length + 1),
  16600. });
  16601. } else if (type == 7) {
  16602. _this.addCourseWorksGong(i, data.Location, 32);
  16603. } else if (type == 8) {
  16604. _this.addCourseWorksGong(i, data.Location, 57);
  16605. }
  16606. _this.imgChange(null, null, type);
  16607. console.log(data.Location);
  16608. // _this.$message.success('上传成功'+data.Location)
  16609. }
  16610. });
  16611. }
  16612. },
  16613. async beforeUpload3(event, type, i) {
  16614. // this.$message.success('进入上传')
  16615. let file = "";
  16616. let cfindex2 = 0;
  16617. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16618. file = event.target.files[cfindex];
  16619. var credentials = {
  16620. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16621. secretAccessKey: "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",
  16622. }; //秘钥形式的登录上传
  16623. window.AWS.config.update(credentials);
  16624. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16625. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16626. var _this = this;
  16627. // _this.progress = 0;
  16628. _this.proVisible2 = true;
  16629. var b = [
  16630. "DOC",
  16631. "DOCX",
  16632. "DOCM",
  16633. "DOTM",
  16634. "DOTX",
  16635. "PPTX",
  16636. "PPSX",
  16637. "PPT",
  16638. "PPS",
  16639. "PPTM",
  16640. "POTM",
  16641. "PPAM",
  16642. "POTX",
  16643. "PPSM",
  16644. ];
  16645. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16646. var photoA = [
  16647. "BMP",
  16648. "GIF",
  16649. "PNG",
  16650. "JPEG",
  16651. "JPG",
  16652. "TIF",
  16653. "PCX",
  16654. "TGA",
  16655. "EXIF",
  16656. "FPX",
  16657. "SVG",
  16658. "APNG",
  16659. ];
  16660. if (
  16661. photoA.indexOf(
  16662. file.name
  16663. .split(".")
  16664. [file.name.split(".").length - 1].toLocaleUpperCase()
  16665. ) != -1 &&
  16666. type != 4
  16667. ) {
  16668. // const blob = await imageConversion.compress(file, 0.8)
  16669. file = await this.pngToWhiteBg(file);
  16670. const blob = await imageConversion.compressAccurately(file, 256);
  16671. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16672. file = new File([blob], file.name, { type: file.type });
  16673. }
  16674. if (file) {
  16675. var params = {
  16676. Key:
  16677. file.name.split(".")[0] +
  16678. new Date().getTime() +
  16679. "." +
  16680. file.name.split(".")[file.name.split(".").length - 1],
  16681. ContentType: file.type,
  16682. Body: file,
  16683. "Access-Control-Allow-Credentials": "*",
  16684. ACL: "public-read",
  16685. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16686. var options = {
  16687. // partSize: 2048 * 1024 * 1024,
  16688. partSize: 1024 * 1024 * 1024,
  16689. queueSize: 2,
  16690. leavePartsOnError: true,
  16691. };
  16692. bucket
  16693. .upload(params, options)
  16694. .on("httpUploadProgress", function (evt) {
  16695. //这里可以写进度条
  16696. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16697. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16698. })
  16699. .send(function (err, data) {
  16700. // _this.progress = 100;
  16701. cfindex2++;
  16702. setTimeout(() => {
  16703. if (
  16704. cfindex2 == event.target.files.length - 1 ||
  16705. cfindex2 > event.target.files.length - 1
  16706. ) {
  16707. _this.proVisible2 = false;
  16708. }
  16709. }, 1000);
  16710. if (err) {
  16711. var a = _this.$refs.upload1.uploadFiles;
  16712. a.splice(a.length - 1, a.length);
  16713. _this.$message.error("上传失败");
  16714. } else {
  16715. // _this.$message.success('上传成功')
  16716. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16717. var c = [
  16718. "AVI",
  16719. "NAVI",
  16720. "MPEG",
  16721. "ASF",
  16722. "MOV",
  16723. "WMV",
  16724. "3GP",
  16725. "RM",
  16726. "RMVB",
  16727. "FLV",
  16728. "F4V",
  16729. "H.264",
  16730. "H.265",
  16731. "REAL VIDEO",
  16732. "MKV",
  16733. "WebM",
  16734. "HDDVD",
  16735. "MP4",
  16736. "MPG",
  16737. "M4V",
  16738. "MGV",
  16739. "OGV",
  16740. "QTM",
  16741. "STR",
  16742. "AMC",
  16743. "DVX",
  16744. "EVO",
  16745. "DAT",
  16746. "OGG",
  16747. "OGM",
  16748. ];
  16749. if (type == 1) {
  16750. _this.studyJuri[0].cover.push({
  16751. name: file.name,
  16752. url: data.Location,
  16753. uid: file.uid,
  16754. });
  16755. if (
  16756. c.indexOf(
  16757. _this.studyJuri[0].cover[0].url
  16758. .split(".")
  16759. [
  16760. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16761. ].toLocaleUpperCase()
  16762. ) != -1
  16763. ) {
  16764. _this.fileType = 2;
  16765. } else if (
  16766. b.indexOf(
  16767. _this.studyJuri[0].cover[0].url
  16768. .split(".")
  16769. [
  16770. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16771. ].toLocaleUpperCase()
  16772. ) != -1
  16773. ) {
  16774. _this.fileType = 1;
  16775. } else {
  16776. _this.fileType = 0;
  16777. }
  16778. _this.imgChange(null, null, type);
  16779. } else if (type == 2) {
  16780. _this.upToolImg = data.Location;
  16781. _this.imgChange(null, null, type);
  16782. _this.addCourseWorks(i);
  16783. } else if (type == 4) {
  16784. _this.addPz("3", data.Location);
  16785. } else if (type == 5) {
  16786. _this.addImgDrawImG(data.Location);
  16787. } else if (type == 6) {
  16788. var _ftype = 1;
  16789. if (
  16790. c.indexOf(
  16791. data.Location.split(".")[
  16792. data.Location.split(".").length - 1
  16793. ].toLocaleUpperCase()
  16794. ) != -1
  16795. ) {
  16796. _ftype = 5;
  16797. } else if (
  16798. b.indexOf(
  16799. data.Location.split(".")[
  16800. data.Location.split(".").length - 1
  16801. ].toLocaleUpperCase()
  16802. ) != -1
  16803. ) {
  16804. _ftype = 4;
  16805. } else {
  16806. _ftype = 1;
  16807. }
  16808. _this.plworkFile.push({
  16809. name: file.name,
  16810. url: data.Location,
  16811. uid: file.uid,
  16812. fileType: _ftype,
  16813. username:
  16814. _this.plworkFile.length + 1 > 9
  16815. ? _this.plworkFile.length + 1
  16816. : "0" + (_this.plworkFile.length + 1),
  16817. });
  16818. }
  16819. _this.imgChange(null, null, type);
  16820. console.log(data.Location);
  16821. // _this.$message.success('上传成功'+data.Location)
  16822. }
  16823. });
  16824. }
  16825. }
  16826. },
  16827. beforeUpload2(event, type) {
  16828. var file = event.target.files[0];
  16829. var credentials = {
  16830. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16831. secretAccessKey: "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",
  16832. }; //秘钥形式的登录上传
  16833. window.AWS.config.update(credentials);
  16834. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16835. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16836. var _this = this;
  16837. _this.progress = 0;
  16838. _this.proVisible = true;
  16839. if (file) {
  16840. var params = {
  16841. Key:
  16842. file.name.split(".")[0] +
  16843. new Date().getTime() +
  16844. "." +
  16845. file.name.split(".")[file.name.split(".").length - 1],
  16846. ContentType: file.type,
  16847. Body: file,
  16848. "Access-Control-Allow-Credentials": "*",
  16849. ACL: "public-read",
  16850. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16851. var options = {
  16852. partSize: 2048 * 1024 * 1024,
  16853. queueSize: 2,
  16854. leavePartsOnError: true,
  16855. };
  16856. bucket
  16857. .upload(params, options)
  16858. .on("httpUploadProgress", function (evt) {
  16859. //这里可以写进度条
  16860. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16861. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16862. })
  16863. .send(function (err, data) {
  16864. _this.progress = 100;
  16865. setTimeout(() => {
  16866. _this.proVisible = false;
  16867. }, 1000);
  16868. if (err) {
  16869. var a = _this.$refs.upload1.uploadFiles;
  16870. a.splice(a.length - 1, a.length);
  16871. _this.$message.error("上传失败");
  16872. } else {
  16873. if (type == 2) {
  16874. _this.studyJuri[0].upVedio.push({
  16875. name: file.name,
  16876. url: data.Location,
  16877. uid: file.uid,
  16878. });
  16879. _this.imgChange(null, null, type);
  16880. } else if (type == 3) {
  16881. _this.studyJuri[0].upFile.push({
  16882. name: file.name,
  16883. url: data.Location,
  16884. uid: file.uid,
  16885. });
  16886. _this.imgChange(null, null, type);
  16887. }
  16888. console.log(data.Location);
  16889. }
  16890. });
  16891. }
  16892. },
  16893. allScrell() {
  16894. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16895. },
  16896. nextOrpreSteps(t) {
  16897. if (this.IsFollow && this.tType == 2) {
  16898. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16899. return;
  16900. }
  16901. var b = this.chapInfoList.length - 1;
  16902. if (t == 0) {
  16903. if (this.courseType == 0) {
  16904. if (this.taskCount == 0) {
  16905. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16906. if (this.IsLookOpen) {
  16907. if (
  16908. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16909. ) {
  16910. if (
  16911. this.courseDetail.userid != this.userid &&
  16912. (!this.courseDetail.course_teacher ||
  16913. (this.courseDetail.course_teacher &&
  16914. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16915. ) {
  16916. this.$message.error("任务未解锁");
  16917. } else {
  16918. this.$message.error("上一任务未解锁");
  16919. }
  16920. return;
  16921. }
  16922. }
  16923. this.navList[this.courseType].isOpen = false;
  16924. this.courseType = b;
  16925. this.taskCount =
  16926. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16927. .length - 1;
  16928. this.navList[this.courseType].isOpen = true;
  16929. } else {
  16930. this.taskCount--;
  16931. }
  16932. } else {
  16933. if (this.taskCount == 0) {
  16934. this.navList[this.courseType].isOpen = false;
  16935. this.courseType--;
  16936. this.taskCount =
  16937. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16938. .length - 1;
  16939. this.navList[this.courseType].isOpen = true;
  16940. } else {
  16941. this.taskCount--;
  16942. }
  16943. }
  16944. } else {
  16945. if (this.courseType == b) {
  16946. if (
  16947. this.taskCount ==
  16948. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16949. 1
  16950. ) {
  16951. this.navList[this.courseType].isOpen = false;
  16952. this.courseType = 0;
  16953. this.taskCount = 0;
  16954. this.navList[this.courseType].isOpen = true;
  16955. } else {
  16956. var bbb = parseInt(this.taskCount) + 1;
  16957. if (
  16958. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16959. .isLook &&
  16960. this.courseDetail.userid != this.userid &&
  16961. (!this.courseDetail.course_teacher ||
  16962. (this.courseDetail.course_teacher &&
  16963. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16964. this.IsLookOpen
  16965. ) {
  16966. this.$message.error("任务未解锁");
  16967. return;
  16968. }
  16969. this.taskCount++;
  16970. if (this.IsLookOpen) {
  16971. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16972. this.taskCount
  16973. ].isLook = true;
  16974. this.addCourseState(3);
  16975. }
  16976. }
  16977. } else {
  16978. if (
  16979. this.taskCount ==
  16980. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16981. 1
  16982. ) {
  16983. var bbb = parseInt(this.courseType) + 1;
  16984. if (
  16985. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16986. this.courseDetail.userid != this.userid &&
  16987. (!this.courseDetail.course_teacher ||
  16988. (this.courseDetail.course_teacher &&
  16989. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16990. this.IsLookOpen
  16991. ) {
  16992. this.$message.error("任务未解锁");
  16993. return;
  16994. }
  16995. this.navList[this.courseType].isOpen = false;
  16996. this.courseType++;
  16997. this.taskCount = 0;
  16998. this.navList[this.courseType].isOpen = true;
  16999. } else {
  17000. var bbb = parseInt(this.taskCount) + 1;
  17001. if (
  17002. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  17003. .isLook &&
  17004. this.courseDetail.userid != this.userid &&
  17005. (!this.courseDetail.course_teacher ||
  17006. (this.courseDetail.course_teacher &&
  17007. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17008. this.IsLookOpen
  17009. ) {
  17010. this.$message.error("任务未解锁");
  17011. return;
  17012. }
  17013. this.taskCount++;
  17014. }
  17015. if (this.IsLookOpen) {
  17016. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17017. this.taskCount
  17018. ].isLook = true;
  17019. this.addCourseState(3);
  17020. }
  17021. }
  17022. // if (
  17023. // this.taskCount ==
  17024. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  17025. // ) {
  17026. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  17027. // } else {
  17028. // this.taskCount++;
  17029. // }
  17030. }
  17031. document.scrollingElement.scrollTop = 0;
  17032. // this.showType = 7;
  17033. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17034. // if (this.vedio[this.taskCount].length > 0) {
  17035. // var a =
  17036. // document.getElementsByClassName("box_course")[this.taskCount]
  17037. // .offsetHeight;
  17038. // document.getElementsByClassName("vedioList")[
  17039. // this.taskCount
  17040. // ].style.height = a + "px";
  17041. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  17042. // a - 40 + "px";
  17043. // }
  17044. this.isNoHomeWork = false;
  17045. (this.studyJuri = [
  17046. {
  17047. content: "",
  17048. cover: [],
  17049. upVedio: [],
  17050. upFile: [],
  17051. },
  17052. ]),
  17053. (this.radio = []);
  17054. this.isClickNav = "";
  17055. this.selectPz();
  17056. this.getHomeWork();
  17057. this.getCourseDetail(2);
  17058. this.$forceUpdate();
  17059. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  17060. this.setCTask();
  17061. }
  17062. },
  17063. openTask(s, n, i) {
  17064. if (this.IsFollow && this.tType == 2) {
  17065. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17066. return;
  17067. }
  17068. if (this.IsLookOpen &&
  17069. this.courseDetail.userid != this.userid &&
  17070. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  17071. if (
  17072. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  17073. this.courseDetail.userid != this.userid &&
  17074. (!this.courseDetail.course_teacher ||
  17075. (this.courseDetail.course_teacher &&
  17076. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  17077. ) {
  17078. this.$message.error("任务未解锁");
  17079. return;
  17080. }
  17081. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  17082. if (
  17083. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  17084. .isLook
  17085. ) {
  17086. this.$message.error("上一任务未解锁");
  17087. return;
  17088. }
  17089. } else if (s > this.courseType) {
  17090. if (n > 0) {
  17091. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  17092. this.$message.error("上一任务未解锁");
  17093. return;
  17094. }
  17095. } else {
  17096. if (
  17097. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  17098. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  17099. ].isLook
  17100. ) {
  17101. this.$message.error("上一任务未解锁");
  17102. return;
  17103. }
  17104. }
  17105. }
  17106. }
  17107. if (this.navList[s].task[n].isOpen == true) {
  17108. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  17109. return;
  17110. }
  17111. let flag = this.courseType==s;
  17112. this.courseType = s;
  17113. this.navId = i;
  17114. this.taskCount = n;
  17115. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  17116. this.navList[this.courseType].task[this.taskCount].isOpen =
  17117. !this.navList[this.courseType].task[this.taskCount].isOpen;
  17118. if (this.IsLookOpen) {
  17119. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17120. this.taskCount
  17121. ].isLook = true;
  17122. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  17123. this.addCourseState(3,yym);
  17124. }
  17125. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  17126. this.isCloseList[ci].isClose = 0;
  17127. this.isCloseList[ci].isCloseBoolean = false;
  17128. this.$nextTick(()=>{
  17129. setTimeout(()=>{
  17130. setTimeout(()=>{
  17131. this.panToolHeight('tool-'+ci);
  17132. }, 0)
  17133. }, 0)
  17134. })
  17135. }
  17136. // this.showType = 7;
  17137. this.isNoHomeWork = false;
  17138. (this.studyJuri = [
  17139. {
  17140. content: "",
  17141. cover: [],
  17142. upVedio: [],
  17143. upFile: [],
  17144. },
  17145. ]),
  17146. (this.radio = []);
  17147. document.scrollingElement.scrollTop = 0;
  17148. // setTimeout(() => {
  17149. // let a = document.getElementById(i);
  17150. // if (a.offsetTop - 110 == 0) {
  17151. // window.scrollTo(0, 0);
  17152. // } else {
  17153. // window.scrollTo(0, a.offsetTop);
  17154. // }
  17155. // }, 0);
  17156. for (var z = 0; z < this.navList.length; z++) {
  17157. for (var q = 0; q < this.navList[z].task.length; q++) {
  17158. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17159. this.navList[z].task[q].tool[w].isTool = false;
  17160. }
  17161. }
  17162. }
  17163. this.selectPz();
  17164. this.getHomeWork();
  17165. this.getCourseDetail(2);
  17166. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  17167. this.setCTask();
  17168. }
  17169. if(flag){
  17170. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17171. }else{
  17172. 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>`)
  17173. }
  17174. },
  17175. get(i) {
  17176. if (this.IsFollow && this.tType == 2) {
  17177. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17178. return;
  17179. }
  17180. // for(var k=0;k<this.navList.length;k++){
  17181. // this.navList[k].isOpen = false;
  17182. // }
  17183. // this.navList[i].isOpen = true;
  17184. this.navList[i].isOpen = !this.navList[i].isOpen;
  17185. if (this.navList[i].isOpen) {
  17186. this.openTask(i, 0, i + "-0");
  17187. }
  17188. },
  17189. addQuestion() {
  17190. this.answerList.push({
  17191. answerTitle: this.answerQ,
  17192. answer: this.questionAnswer,
  17193. });
  17194. let params = [
  17195. {
  17196. uid: this.userid,
  17197. cid: this.id,
  17198. stage: this.courseType,
  17199. task: this.taskCount,
  17200. tool: this.toolindex,
  17201. content: JSON.stringify(this.answerList),
  17202. type: 3,
  17203. },
  17204. ];
  17205. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17206. this.homeWorkLoading = true
  17207. this.ajax
  17208. .post(this.$store.state.api + "addCourseWorks", params)
  17209. .then((res) => {
  17210. this.$message({
  17211. message: "提交成功",
  17212. type: "success",
  17213. });
  17214. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  17215. setTimeout(() => {
  17216. this.homeWorkLoading = false
  17217. }, 500);
  17218. this.answerList = [];
  17219. this.answerDialogVisible = false;
  17220. this.selectStudent();
  17221. this.selectSWorks();
  17222. this.selectSLook();
  17223. })
  17224. .catch((err) => {
  17225. this.$message.error("提交失败");
  17226. console.error(err);
  17227. setTimeout(() => {
  17228. this.homeWorkLoading = false
  17229. }, 500);
  17230. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  17231. });
  17232. },
  17233. addQuestionTeacher() {
  17234. this.answerList.push({
  17235. answerTitle: this.answerQ,
  17236. answer: this.questionAnswer,
  17237. });
  17238. let params = [
  17239. {
  17240. uid: this.sStudent.userid,
  17241. cid: this.id,
  17242. stage: this.courseType,
  17243. task: this.taskCount,
  17244. tool: this.toolindex,
  17245. content: JSON.stringify(this.answerList),
  17246. type: 3,
  17247. ateacher: this.userid,
  17248. },
  17249. ];
  17250. this.ajax
  17251. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17252. .then((res) => {
  17253. this.$message({
  17254. message: "提交成功",
  17255. type: "success",
  17256. });
  17257. this.answerList = [];
  17258. this.questionAnswer = "";
  17259. this.answerDialogVisibleTeacher = false;
  17260. this.selectStudent();
  17261. this.selectSWorks();
  17262. this.selectSLook();
  17263. })
  17264. .catch((err) => {
  17265. this.$message.error("提交失败");
  17266. console.error(err);
  17267. });
  17268. },
  17269. refreshCourse() {
  17270. // window.location.reload();
  17271. this.navList = [];
  17272. this.getCourseDetail(1);
  17273. },
  17274. getCourseDetail(type, gindex) {
  17275. let loading;
  17276. if (type != 2) {
  17277. loading = this.$loading.service({
  17278. background: "rgba(255, 255, 255, 0.7)",
  17279. target: document.querySelector(".student_table"),
  17280. });
  17281. }
  17282. this.downLoading = false
  17283. // this.navList[0].isOpen = false;
  17284. // this.navList[this.courseType].isOpen = true;
  17285. // this.courseType = this.courseTypeLine;
  17286. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17287. let params = {
  17288. courseId: this.id,
  17289. };
  17290. this.ajax
  17291. .get(this.$store.state.api + "selectCourseDetail3", params)
  17292. .then((res) => {
  17293. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  17294. if (type != 2) {
  17295. loading.close();
  17296. if (
  17297. this.courseType >
  17298. JSON.parse(res.data[0][0].chapters).length - 1
  17299. ) {
  17300. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17301. }
  17302. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17303. .chapterInfo[0].taskJson;
  17304. var b = [
  17305. "AVI",
  17306. "NAVI",
  17307. "MPEG",
  17308. "ASF",
  17309. "MOV",
  17310. "WMV",
  17311. "3GP",
  17312. "RM",
  17313. "RMVB",
  17314. "FLV",
  17315. "F4V",
  17316. "H.264",
  17317. "H.265",
  17318. "REAL VIDEO",
  17319. "MKV",
  17320. "WebM",
  17321. "HDDVD",
  17322. "MP4",
  17323. "MPG",
  17324. "M4V",
  17325. "MGV",
  17326. "OGV",
  17327. "QTM",
  17328. "STR",
  17329. "AMC",
  17330. "DVX",
  17331. "EVO",
  17332. "DAT",
  17333. "OGG",
  17334. "OGM",
  17335. "MP3",
  17336. ];
  17337. let _chapterData = [];
  17338. for (var i = 0; i < a.length; i++) {
  17339. var c = a[i].chapterData;
  17340. this.vedio[i] = [];
  17341. this.textList[i] = [];
  17342. this.lineList[i] = [];
  17343. this.chapToolList[i] = [];
  17344. this.file[i] = [];
  17345. this.fileC[i] = [];
  17346. _chapterData[i] = c.filter((el) => {
  17347. return el.type != 12;
  17348. });
  17349. this.fileC[i] = c.filter((el) => {
  17350. return el.type == 12;
  17351. });
  17352. if (this.tType == 2) {
  17353. if (this.fileC[i].length) {
  17354. let yym1 = this.fileC[i].filter(e=>{
  17355. if(!converter(e.name).includes(converter("教案"))){
  17356. return e
  17357. }
  17358. })
  17359. this.fileC[i] = yym1
  17360. }
  17361. }
  17362. // else if (c[j].type == 12) {
  17363. // this.fileC[i].push(c[j]);
  17364. // }
  17365. for (var j = 0; j < c.length; j++) {
  17366. if (c[j].type == 7) {
  17367. this.chapToolList[i].push(c[j]);
  17368. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17369. this.lineList[i].push(c[j]);
  17370. } else if (c[j].type == 6) {
  17371. this.textList[i].push(c[j]);
  17372. } else {
  17373. if (
  17374. b.indexOf(
  17375. c[j].url
  17376. .split(".")
  17377. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17378. ) != -1
  17379. ) {
  17380. this.vedio[i].push(c[j]);
  17381. } else {
  17382. this.file[i].push(c[j]);
  17383. }
  17384. }
  17385. }
  17386. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17387. d.sources[0].src =
  17388. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17389. this.playerO[i] = d;
  17390. }
  17391. this.courseDetail = res.data[0][0];
  17392. if(this.tType == 2){
  17393. this.tcid = this.arrayToArray(
  17394. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17395. this.classId ? this.classId.split(",") : []
  17396. ).join(",");
  17397. }else{
  17398. this.tcid = this.arrayToArray(
  17399. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17400. this.tcid2 ? this.tcid2.split(",") : []
  17401. ).join(",");
  17402. }
  17403. this.evalua = res.data[0][0].evaId;
  17404. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17405. this.courseType
  17406. ];
  17407. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17408. if (this.tcid && res.data[1].length) {
  17409. let _inviteA = [];
  17410. for (var ik = 0; ik < res.data[1].length; ik++) {
  17411. _inviteA.push({
  17412. cid: res.data[1][ik].classid,
  17413. ic: res.data[1][ik].code,
  17414. });
  17415. }
  17416. for (var ik = 0; ik < _inviteA.length; ik++) {
  17417. if (
  17418. this.arrayToArray(
  17419. _inviteA[ik].cid.split(","),
  17420. this.tcid.split(",")
  17421. ).length
  17422. ) {
  17423. this.inviteCode = _inviteA[ik].ic;
  17424. break;
  17425. }
  17426. }
  17427. }
  17428. for (var l = 0; l < this.chapInfoList.length; l++) {
  17429. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17430. for (var m = 0; m < w.length; m++) {
  17431. w[m].id = l + "-" + m;
  17432. }
  17433. }
  17434. let taskCount = 0;
  17435. if (
  17436. _chapterData[taskCount].length &&
  17437. _chapterData[taskCount][0].type == 2
  17438. ) {
  17439. this.showType = 0;
  17440. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17441. } else {
  17442. if (_chapterData[taskCount].length > 0) {
  17443. let _url = _chapterData[taskCount][0].url;
  17444. if (
  17445. _chapterData[taskCount][0].type == 8 ||
  17446. _chapterData[taskCount][0].type == 14 ||
  17447. _chapterData[taskCount][0].type == 15
  17448. ) {
  17449. this.showType = 2;
  17450. if (
  17451. _url.indexOf("https://") == -1 &&
  17452. _url.indexOf("http://") == -1
  17453. ) {
  17454. _url = "https://" + _url;
  17455. }
  17456. this.pptImgUrl1 = _url;
  17457. } else if (_chapterData[taskCount][0].type == 3) {
  17458. if (
  17459. _url
  17460. .split(".")
  17461. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17462. ) {
  17463. this.showType = 3;
  17464. this.pptImgUrl1 = _url;
  17465. } else if (
  17466. this.isAssetTypeAnImage(
  17467. _url
  17468. .split(".")
  17469. [_url.split(".").length - 1].toLocaleLowerCase()
  17470. )
  17471. ) {
  17472. this.showType = 4;
  17473. this.pptImgUrl1 = _url;
  17474. } else {
  17475. this.showType = 2;
  17476. this.pptImgUrl1 =
  17477. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17478. encodeURIComponent(_url);
  17479. }
  17480. } else if (_chapterData[taskCount][0].type == 13) {
  17481. this.showType = 4;
  17482. this.pptImgUrl1 = _url;
  17483. } else if (_chapterData[taskCount][0].type == 6) {
  17484. this.showType = 1;
  17485. this.text = this.textList[taskCount][0];
  17486. } else if (_chapterData[taskCount][0].type == 16) {
  17487. this.showType = 16;
  17488. this.pptImgUrl1 = _url;
  17489. }
  17490. }
  17491. }
  17492. this.isClickNav = 0;
  17493. if (
  17494. !_chapterData[taskCount].length ||
  17495. _chapterData[taskCount][0].type == 12
  17496. ) {
  17497. this.isClickNav = "";
  17498. this.showType = "";
  17499. }
  17500. if (this.tType == 2) {
  17501. _chapterData.forEach((e,i)=>{
  17502. if (e.length) {
  17503. let yym = e.filter(k=>{
  17504. if(!converter(k.name).includes(converter("教案"))){
  17505. return k
  17506. }
  17507. })
  17508. _chapterData[i] = yym
  17509. }
  17510. })
  17511. }
  17512. this.vChapterData = _chapterData;
  17513. } else {
  17514. // this.showType = 0;
  17515. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17516. .chapterInfo[0].taskJson;
  17517. var b = [
  17518. "AVI",
  17519. "NAVI",
  17520. "MPEG",
  17521. "ASF",
  17522. "MOV",
  17523. "WMV",
  17524. "3GP",
  17525. "RM",
  17526. "RMVB",
  17527. "FLV",
  17528. "F4V",
  17529. "H.264",
  17530. "H.265",
  17531. "REAL VIDEO",
  17532. "MKV",
  17533. "WebM",
  17534. "HDDVD",
  17535. "MP4",
  17536. "MPG",
  17537. "M4V",
  17538. "MGV",
  17539. "OGV",
  17540. "QTM",
  17541. "STR",
  17542. "AMC",
  17543. "DVX",
  17544. "EVO",
  17545. "DAT",
  17546. "OGG",
  17547. "OGM",
  17548. "MP3",
  17549. ];
  17550. let _chapterData = [];
  17551. for (var i = 0; i < a.length; i++) {
  17552. var c = a[i].chapterData;
  17553. this.vedio[i] = [];
  17554. this.textList[i] = [];
  17555. this.lineList[i] = [];
  17556. this.chapToolList[i] = [];
  17557. this.file[i] = [];
  17558. this.fileC[i] = [];
  17559. _chapterData[i] = c.filter((el) => {
  17560. return el.type != 12;
  17561. });
  17562. this.fileC[i] = c.filter((el) => {
  17563. return el.type == 12;
  17564. });
  17565. if (this.tType == 2) {
  17566. if (this.fileC[i].length) {
  17567. let yym1 = this.fileC[i].filter(e=>{
  17568. if(!converter(e.name).includes(converter("教案"))){
  17569. return e
  17570. }
  17571. })
  17572. this.fileC[i] = yym1
  17573. }
  17574. }
  17575. for (var j = 0; j < c.length; j++) {
  17576. if (c[j].type == 7) {
  17577. this.chapToolList[i].push(c[j]);
  17578. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17579. this.lineList[i].push(c[j]);
  17580. } else if (c[j].type == 6) {
  17581. this.textList[i].push(c[j]);
  17582. } else {
  17583. if (
  17584. b.indexOf(
  17585. c[j].url
  17586. .split(".")
  17587. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17588. ) != -1
  17589. ) {
  17590. this.vedio[i].push(c[j]);
  17591. } else {
  17592. this.file[i].push(c[j]);
  17593. }
  17594. }
  17595. }
  17596. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17597. d.sources[0].src =
  17598. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17599. this.playerO[i] = d;
  17600. }
  17601. let taskCount = 0;
  17602. if (
  17603. _chapterData[taskCount].length &&
  17604. _chapterData[taskCount][0].type == 2
  17605. ) {
  17606. // this.showType = 0;
  17607. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17608. } else {
  17609. if (_chapterData[taskCount].length > 0) {
  17610. let _url = _chapterData[taskCount][0].url;
  17611. if (
  17612. _chapterData[taskCount][0].type == 8 ||
  17613. _chapterData[taskCount][0].type == 14||
  17614. _chapterData[taskCount][0].type == 15
  17615. ) {
  17616. // this.showType = 2;
  17617. if (
  17618. _url.indexOf("https://") == -1 &&
  17619. _url.indexOf("http://") == -1
  17620. ) {
  17621. _url = "https://" + _url;
  17622. }
  17623. // this.pptImgUrl1 = _url;
  17624. } else if (_chapterData[taskCount][0].type == 3) {
  17625. if (
  17626. _url
  17627. .split(".")
  17628. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17629. ) {
  17630. // this.showType = 3;
  17631. // this.pptImgUrl1 = _url;
  17632. } else if (
  17633. this.isAssetTypeAnImage(
  17634. _url
  17635. .split(".")
  17636. [_url.split(".").length - 1].toLocaleLowerCase()
  17637. )
  17638. ) {
  17639. // this.showType = 4;
  17640. // this.pptImgUrl1 = _url;
  17641. } else {
  17642. // this.showType = 2;
  17643. // this.pptImgUrl1 =
  17644. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  17645. // encodeURIComponent(_url);
  17646. }
  17647. } else if (_chapterData[taskCount][0].type == 13) {
  17648. // this.showType = 4;
  17649. // this.pptImgUrl1 = _url;
  17650. } else if (_chapterData[taskCount][0].type == 6) {
  17651. this.showType = 1;
  17652. this.text = this.textList[taskCount][0];
  17653. } else if (_chapterData[taskCount][0].type == 16) {
  17654. this.showType = 16;
  17655. this.pptImgUrl1 = _url;
  17656. }
  17657. }
  17658. }
  17659. this.isClickNav = 0;
  17660. if (
  17661. !_chapterData[taskCount].length ||
  17662. _chapterData[taskCount][0].type == 12
  17663. ) {
  17664. this.isClickNav = "";
  17665. // this.showType = "";
  17666. }
  17667. if (this.tType == 2) {
  17668. _chapterData.forEach((e,i)=>{
  17669. if (e.length) {
  17670. let yym = e.filter(k=>{
  17671. if(!converter(k.name).includes(converter("教案"))){
  17672. return k
  17673. }
  17674. })
  17675. _chapterData[i] = yym
  17676. }
  17677. })
  17678. }
  17679. this.vChapterData = _chapterData;
  17680. this.$forceUpdate();
  17681. }
  17682. // else {
  17683. // this.courseDetail = res.data[0][0];
  17684. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17685. // }
  17686. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  17687. if (type == 10) {
  17688. console.log('this.courseDetail.userid',this.courseDetail.userid);
  17689. console.log('this.userid',this.userid);
  17690. if (this.courseDetail.userid == this.userid) {
  17691. // 开局关闭学生查看内容
  17692. this.StulookMode(true)
  17693. // 开局打开跟随模式
  17694. this.followingMode(true)
  17695. }
  17696. }
  17697. let _this = this;
  17698. if (_this.timer) {
  17699. clearInterval(_this.timer);
  17700. _this.timer = null;
  17701. }
  17702. if (_this.tcid) {
  17703. _this.getCourseGroup(gindex);
  17704. } else {
  17705. _this.selectSWorks(gindex);
  17706. }
  17707. _this.selectStudent();
  17708. _this.selectSLook();
  17709. _this.getPick();
  17710. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17711. // _this.setCTask();
  17712. // }
  17713. if (_this.dialogVisibleGroup) {
  17714. _this.groupJson =
  17715. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17716. _this.taskCount
  17717. ].toolChoose[_this.toolindex].groupJson;
  17718. }
  17719. _this.$nextTick(() => {
  17720. setTimeout(() => {
  17721. _this.checkEva();
  17722. }, 1000);
  17723. });
  17724. _this.timer = setInterval(function () {
  17725. // _this.getCourseDetail(2);
  17726. if (_this.tcid) {
  17727. _this.getCourseGroup();
  17728. } else {
  17729. _this.selectSWorks();
  17730. }
  17731. _this.selectStudent();
  17732. _this.selectSLook();
  17733. _this.getPick();
  17734. // _this.getSplitScreenData();//获取分屏数据
  17735. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17736. // _this.setCTask();
  17737. // }
  17738. if (_this.dialogVisibleGroup) {
  17739. _this.groupJson =
  17740. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17741. _this.taskCount
  17742. ].toolChoose[_this.toolindex].groupJson;
  17743. }
  17744. if (_this.tType == 4 || _this.ispzType == 4) {
  17745. _this.selectPz();
  17746. }
  17747. }, 5000);
  17748. if (_this.timer2 == null) {
  17749. _this.timer2 = setInterval(()=> {
  17750. _this.getSplitScreenData();//获取分屏数据
  17751. }, 5000);
  17752. }
  17753. _this.$nextTick(function () {
  17754. setTimeout(() => {
  17755. // var a =
  17756. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17757. // document.getElementsByClassName("vedioList")[0].style.height =
  17758. // a + "px";
  17759. // document.getElementsByClassName("navBox")[0].style.height =
  17760. // a - 40 + "px";
  17761. // if (_this.vedio[_this.taskCount].length > 0) {
  17762. // _this.vedioTime = [];
  17763. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17764. // _this.vedioTime[i] = document.getElementsByClassName(
  17765. // "vjs-duration-display"
  17766. // )[i].textContent;
  17767. // }
  17768. // }
  17769. }, 1000);
  17770. });
  17771. })
  17772. .catch((err) => {
  17773. loading.close();
  17774. console.error(err);
  17775. });
  17776. },
  17777. getCourseGroup(gindex) {
  17778. if(this.getCourseGroupLoading) return
  17779. this.getCourseGroupLoading = true
  17780. let params = {
  17781. cid: this.id,
  17782. classid: this.tcid ? this.tcid : "1",
  17783. };
  17784. this.ajax
  17785. .get(this.$store.state.api + "getCourseGroup", params)
  17786. .then((res) => {
  17787. if (res.data && res.data[0].length) {
  17788. if (!this.isGroup) {
  17789. let courseGroup = JSON.parse(res.data[0][0].group);
  17790. courseGroup.group = courseGroup.group.filter((el) => {
  17791. el.works = [];
  17792. return el;
  17793. });
  17794. if (courseGroup.isopen == 2) {
  17795. this.isGroup = false;
  17796. this.selectSWorks(gindex);
  17797. return;
  17798. }
  17799. this.courseGroup = courseGroup;
  17800. let groupPerson = res.data[1];
  17801. let group = JSON.parse(res.data[0][0].group).group;
  17802. let courseGroupStudent = {};
  17803. let courseGroupStudentUid = {};
  17804. for (var i = 0; i < group.length; i++) {
  17805. courseGroupStudent[group[i].id] = [];
  17806. courseGroupStudentUid[group[i].id] = [];
  17807. for (var j = 0; j < groupPerson.length; j++) {
  17808. if (groupPerson[j].groupCid == group[i].id) {
  17809. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17810. courseGroupStudentUid[group[i].id].push(
  17811. groupPerson[j].userid
  17812. );
  17813. }
  17814. }
  17815. }
  17816. this.courseGroupStudent = courseGroupStudent;
  17817. this.courseGroupStudentUid = courseGroupStudentUid;
  17818. }
  17819. if (this.courseGroup.isopen == 2) {
  17820. this.isGroup = false;
  17821. } else {
  17822. this.isGroup = true;
  17823. }
  17824. this.selectSWorks(gindex);
  17825. } else {
  17826. this.selectSWorks(gindex);
  17827. this.isGroup = false;
  17828. }
  17829. this.getCourseGroupLoading = false
  17830. })
  17831. .catch((err) => {
  17832. this.getCourseGroupLoading = false
  17833. // this.$message.error("网络不佳");
  17834. console.error(err);
  17835. });
  17836. },
  17837. setOperationTime() {
  17838. let _this = this;
  17839. if (_this.opertimer) {
  17840. clearInterval(_this.opertimer);
  17841. _this.opertimer = null;
  17842. }
  17843. _this.opertimer = setInterval(() => {
  17844. _this.setoTime("600");
  17845. }, 600000);
  17846. },
  17847. setoTime(time) {
  17848. let params = [
  17849. {
  17850. uid: this.userid,
  17851. cid: this.id,
  17852. type: "2",
  17853. time: time,
  17854. },
  17855. ];
  17856. this.ajax
  17857. .post(this.$store.state.api + "addOperationTimeT2", params)
  17858. .then((res) => {})
  17859. .catch((err) => {
  17860. console.error(err);
  17861. });
  17862. },
  17863. addPz(type, content) {
  17864. if (type == "1" && this.pzConText == "") {
  17865. this.$message.error("评论不能为空!");
  17866. return;
  17867. }
  17868. let params = [
  17869. {
  17870. cid: this.id,
  17871. uid: this.userid,
  17872. s: this.courseType,
  17873. t: this.taskCount,
  17874. c: type == "1" ? this.pzConText : content,
  17875. type: type,
  17876. },
  17877. ];
  17878. this.ajax
  17879. .post(this.$store.state.api + "addPz2", params)
  17880. .then((res) => {
  17881. this.$message({
  17882. message: "添加成功",
  17883. type: "success",
  17884. });
  17885. this.pzConText = "";
  17886. this.addPzDialog = false;
  17887. this.selectPz();
  17888. if(this.tType!=2){
  17889. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17890. }
  17891. })
  17892. .catch((err) => {
  17893. this.$message.error("添加失败");
  17894. console.error(err);
  17895. });
  17896. },
  17897. setReplyIndex(id, i) {
  17898. this.replyIndex = i;
  17899. this.replyPid = id;
  17900. this.replyDialogVisible = true;
  17901. },
  17902. addHf() {
  17903. if (this.reply == "") {
  17904. this.$message.error("回复不能为空!");
  17905. return;
  17906. }
  17907. let params = [
  17908. {
  17909. cid: this.id,
  17910. uid: this.userid,
  17911. s: this.courseType,
  17912. t: this.taskCount,
  17913. type: "1",
  17914. ct: 2,
  17915. pid: this.replyPid,
  17916. c: this.reply,
  17917. },
  17918. ];
  17919. this.ajax
  17920. .post(this.$store.state.api + "addHf", params)
  17921. .then((res) => {
  17922. this.reply = "";
  17923. this.$message({
  17924. message: "回复成功",
  17925. type: "success",
  17926. });
  17927. this.replyDialogVisible = false;
  17928. this.selectPz();
  17929. })
  17930. .catch((err) => {
  17931. this.$message.error("回复失败");
  17932. console.error(err);
  17933. });
  17934. },
  17935. deletePz(id) {
  17936. this.$confirm("确定删除此评论吗?", "提示", {
  17937. confirmButtonText: "确定",
  17938. cancelButtonText: "取消",
  17939. type: "warning",
  17940. })
  17941. .then(() => {
  17942. let params = [
  17943. {
  17944. id: id,
  17945. },
  17946. ];
  17947. this.ajax
  17948. .post(this.$store.state.api + "deletePz", params)
  17949. .then((res) => {
  17950. this.$message({
  17951. message: "删除成功",
  17952. type: "success",
  17953. });
  17954. this.selectPz();
  17955. })
  17956. .catch((err) => {
  17957. this.$message.error("网络异常");
  17958. console.error(err);
  17959. });
  17960. })
  17961. .catch(() => {});
  17962. },
  17963. deleteReply(id) {
  17964. this.$confirm("确定删除此回复吗?", "提示", {
  17965. confirmButtonText: "确定",
  17966. cancelButtonText: "取消",
  17967. type: "warning",
  17968. })
  17969. .then(() => {
  17970. let params = [
  17971. {
  17972. id: id,
  17973. },
  17974. ];
  17975. this.ajax
  17976. .post(this.$store.state.api + "deleteReply", params)
  17977. .then((res) => {
  17978. this.$message({
  17979. message: "删除成功",
  17980. type: "success",
  17981. });
  17982. this.selectPz();
  17983. })
  17984. .catch((err) => {
  17985. this.$message.error("网络异常");
  17986. console.error(err);
  17987. });
  17988. })
  17989. .catch(() => {});
  17990. },
  17991. setPz() {
  17992. if (this.ispzType == 4) {
  17993. this.ispzType = 0;
  17994. this.pzDialog = false;
  17995. return;
  17996. }
  17997. this.ispzType = 4;
  17998. this.pzDialog = true;
  17999. this.selectPz();
  18000. },
  18001. selectPz() {
  18002. if(this.selectPzLoading) return
  18003. this.selectPzLoading = true
  18004. let params = {
  18005. cid: this.id,
  18006. s: this.courseType,
  18007. t: this.taskCount,
  18008. type: this.pzStype,
  18009. uid: this.userid,
  18010. };
  18011. this.ajax
  18012. .get(this.$store.state.api + "selectPzListType", params)
  18013. .then((res) => {
  18014. this.pzList = res.data[0];
  18015. var a = res.data[1];
  18016. for (var i = 0; i < a.length; i++) {
  18017. for (var j = 0; j < this.pzList.length; j++) {
  18018. if (!this.pzList[j].hfList) {
  18019. this.pzList[j].hfList = [];
  18020. }
  18021. if (a[i].pid == this.pzList[j].id) {
  18022. this.pzList[j].hfList.push(a[i]);
  18023. }
  18024. }
  18025. }
  18026. this.selectPzLoading = false
  18027. })
  18028. .catch((err) => {
  18029. this.selectPzLoading = false
  18030. console.error(err);
  18031. });
  18032. },
  18033. // selectHf() {
  18034. // let params = {
  18035. // cid: this.id,
  18036. // s: this.courseType,
  18037. // t: this.taskCount,
  18038. // };
  18039. // this.ajax
  18040. // .get(this.$store.state.api + "selectHfList", params)
  18041. // .then((res) => {
  18042. // var a = res.data[0];
  18043. // for (var i = 0; i < a.length; i++) {
  18044. // for (var j = 0; j < this.pzList.length; j++) {
  18045. // if (!this.pzList[i].hfList) {
  18046. // this.pzList[i].hfList = [];
  18047. // }
  18048. // if (a[i].pid == this.pzList[j].id) {
  18049. // this.pzList[i].hfList.push(a[i]);
  18050. // }
  18051. // }
  18052. // }
  18053. // })
  18054. // .catch((err) => {
  18055. // console.error(err);
  18056. // });
  18057. // },
  18058. updateSLook() {
  18059. let params = {
  18060. sopen: this.sIsOpen == false ? 1 : 2,
  18061. cid: this.id,
  18062. };
  18063. this.ajax
  18064. .get(this.$store.state.api + "updateCourseSLook", params)
  18065. .then((res) => {
  18066. if (this.sIsOpen == true) {
  18067. this.$message({
  18068. message: "权限设置成功",
  18069. type: "success",
  18070. });
  18071. } else {
  18072. this.$message({
  18073. message: "权限关闭成功",
  18074. type: "success",
  18075. });
  18076. }
  18077. })
  18078. .catch((err) => {
  18079. console.error(err);
  18080. });
  18081. },
  18082. updateIsStulook(){
  18083. let params = [
  18084. {
  18085. sopen: this.IsStulook == false ? 2 : 1,
  18086. cid: this.id
  18087. }
  18088. ];
  18089. this.ajax
  18090. .post(this.$store.state.api + "updateCourseStulook", params)
  18091. .then(res => {
  18092. if (this.IsStulook == true) {
  18093. this.$message({
  18094. message: "学生查看内容资料权限已开启",
  18095. type: "success"
  18096. });
  18097. } else {
  18098. this.$message({
  18099. message: "关闭学生查看内容资料权限",
  18100. type: "success"
  18101. });
  18102. }
  18103. // this.setCTask();
  18104. })
  18105. .catch(err => {
  18106. console.error(err);
  18107. });
  18108. },
  18109. updateFollow() {
  18110. let params = [
  18111. {
  18112. sopen: this.IsFollow == false ? 1 : 2,
  18113. cid: this.id,
  18114. },
  18115. ];
  18116. this.ajax
  18117. .post(this.$store.state.api + "updateCourseFollow", params)
  18118. .then((res) => {
  18119. if (this.IsFollow == true) {
  18120. this.$message({
  18121. message: "跟随模式已开启",
  18122. type: "success",
  18123. });
  18124. } else {
  18125. this.$message({
  18126. message: "跟随模式已关闭",
  18127. type: "success",
  18128. });
  18129. }
  18130. this.setCTask();
  18131. })
  18132. .catch((err) => {
  18133. console.error(err);
  18134. });
  18135. },
  18136. setCTask() {
  18137. let params = [
  18138. {
  18139. sopen: this.courseType + "-" + this.taskCount,
  18140. cid: this.id,
  18141. },
  18142. ];
  18143. this.ajax
  18144. .post(this.$store.state.api + "updateCourseFollowC", params)
  18145. .then((res) => {})
  18146. .catch((err) => {
  18147. console.error(err);
  18148. });
  18149. },
  18150. updateLookOpen() {
  18151. let params = [
  18152. {
  18153. sopen: this.IsLookOpen == false ? 1 : 2,
  18154. cid: this.id,
  18155. },
  18156. ];
  18157. this.ajax
  18158. .post(this.$store.state.api + "updateCourseLookOpen", params)
  18159. .then((res) => {
  18160. if (this.IsLookOpen == true) {
  18161. // if (this.courseType != 0 && this.taskCount != 0) {
  18162. // this.openTask(0, 0, "0-0");
  18163. // }
  18164. this.$message({
  18165. message: "权限设置成功",
  18166. type: "success",
  18167. });
  18168. } else {
  18169. this.$message({
  18170. message: "权限关闭成功",
  18171. type: "success",
  18172. });
  18173. }
  18174. this.getCourseState(2);
  18175. })
  18176. .catch((err) => {
  18177. console.error(err);
  18178. });
  18179. },
  18180. selectSLook() {
  18181. if(this.selectSLookLoading) return
  18182. this.selectSLookLoading = true
  18183. let params = {
  18184. cid: this.id,
  18185. };
  18186. this.ajax
  18187. .get(this.$store.state.api + "selectCourseSLook", params)
  18188. .then((res) => {
  18189. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  18190. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  18191. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  18192. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  18193. if (!this.IsLookOpen) {
  18194. this.setNavList();
  18195. }else {
  18196. this.getCourseState(1);
  18197. }
  18198. if ((this.IsFollow && this.tType == 2)) {
  18199. this.setContent2(false);
  18200. let _followC = res.data[0][0].followC.split("-");
  18201. if (
  18202. this.courseType != _followC[0] ||
  18203. this.taskCount != _followC[1]
  18204. ) {
  18205. this.navList[this.courseType].isOpen = false;
  18206. this.courseType = _followC[0];
  18207. this.navList[this.courseType].isOpen = true;
  18208. this.taskCount = parseInt(_followC[1]);
  18209. this.navId = res.data[0][0].followC;
  18210. document.scrollingElement.scrollTop = 0;
  18211. this.getCourseDetail(2);
  18212. }
  18213. }
  18214. this.selectSLookLoading = false
  18215. })
  18216. .catch((err) => {
  18217. this.selectSLookLoading = false
  18218. console.error(err);
  18219. });
  18220. },
  18221. setNavList() {
  18222. if (this.navList.length == 0) {
  18223. this.navList = [];
  18224. var copyList = [];
  18225. for (var l = 0; l < this.chapInfoList.length; l++) {
  18226. var q = this.chapInfoList[l].dyName;
  18227. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18228. var e;
  18229. copyList.push({
  18230. dyName: q,
  18231. isOpen: l === 0 ? true : false,
  18232. task: [],
  18233. });
  18234. for (var r = 0; r < w.length; r++) {
  18235. e = w[r].task;
  18236. if (this.chapInfoList[l].easy == 1) {
  18237. copyList[l].task.push({
  18238. taskName: q,
  18239. id: l + "-" + r,
  18240. isLook: w[r].isLook,
  18241. isOpen: r === 0 ? true : false,
  18242. tool: [],
  18243. });
  18244. } else {
  18245. copyList[l].task.push({
  18246. taskName: e,
  18247. id: l + "-" + r,
  18248. isLook: w[r].isLook,
  18249. isOpen: r === 0 ? true : false,
  18250. tool: [],
  18251. });
  18252. }
  18253. var t = w[r].toolChoose;
  18254. for (var k = 0; k < t.length; k++) {
  18255. var tool = t[k].tool[0];
  18256. copyList[l].task[r].tool.push({
  18257. tool: tool,
  18258. isTool: false,
  18259. });
  18260. }
  18261. // this.navId = this.navId ? this.navId : l + "-" + r;
  18262. // this.navId = l + "-" + r;
  18263. }
  18264. }
  18265. this.navList = copyList;
  18266. this.navList[0].isOpen = false;
  18267. this.navList[this.courseType].isOpen = true;
  18268. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18269. } else {
  18270. this.setNavList2();
  18271. }
  18272. },
  18273. setNavList2() {
  18274. for (var l = 0; l < this.chapInfoList.length; l++) {
  18275. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18276. for (var r = 0; r < w.length; r++) {
  18277. this.navList[l].task[r].isLook = w[r].isLook;
  18278. }
  18279. }
  18280. if (
  18281. this.IsLookOpen &&
  18282. !this.navList[this.courseType].task[this.taskCount].isLook
  18283. ) {
  18284. this.openTask(0, 0, "0-0");
  18285. }
  18286. this.$forceUpdate();
  18287. },
  18288. getCourseState(type) {
  18289. let params = {
  18290. cid: this.id,
  18291. };
  18292. this.ajax
  18293. .get(this.$store.state.api + "getCourseState", params)
  18294. .then((res) => {
  18295. // if (res.data[0].length > 0) {
  18296. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  18297. // }
  18298. if (res.data[0].length > 0 && type == 1) {
  18299. this.chapInfoList = JSON.parse(res.data[0][0].state);
  18300. this.setNavList();
  18301. this.$forceUpdate();
  18302. } else if (res.data[0].length > 0 && type == 2) {
  18303. this.addCourseState(2);
  18304. } else {
  18305. // this.addCourseState(1);
  18306. }
  18307. })
  18308. .catch((err) => {
  18309. console.error(err);
  18310. });
  18311. },
  18312. addCourseState(type,val = '') {
  18313. let _state = val ? val : this.chapInfoList;
  18314. // this.courseType this.taskCount
  18315. if (type == 1 || type == 2) {
  18316. for (var i = 0; i < _state.length; i++) {
  18317. let el = _state[i].chapterInfo[0].taskJson;
  18318. for (var j = 0; j < el.length; j++) {
  18319. // if (i == 0 && j == 0) {
  18320. // el[j].isLook = true;
  18321. // } else {
  18322. // el[j].isLook = false;
  18323. // }
  18324. if (
  18325. this.courseType > i ||
  18326. (this.courseType == i && this.taskCount + 1 > j)
  18327. ) {
  18328. el[j].isLook = true;
  18329. } else {
  18330. el[j].isLook = false;
  18331. }
  18332. }
  18333. }
  18334. }
  18335. let params = [
  18336. {
  18337. cid: this.id,
  18338. state: JSON.stringify(_state),
  18339. },
  18340. ];
  18341. this.ajax
  18342. .post(
  18343. this.$store.state.api +
  18344. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18345. params
  18346. )
  18347. .then((res) => {
  18348. if (this.IsLookOpen) {
  18349. this.setNavList();
  18350. }
  18351. if (type == 3 && type == 2) {
  18352. this.getCourseState(1);
  18353. }
  18354. })
  18355. .catch((err) => {
  18356. console.error(err);
  18357. });
  18358. },
  18359. getHomeWork() {
  18360. let params = {
  18361. cid: this.id,
  18362. stage: this.courseType,
  18363. task: this.taskCount,
  18364. uid: this.userid,
  18365. };
  18366. this.ajax
  18367. .get(this.$store.state.api + "selectWork", params)
  18368. .then((res) => {
  18369. if (res.data[0].length > 0) {
  18370. this.studyJuri = JSON.parse(res.data[0][0].content);
  18371. this.isNoHomeWork = true;
  18372. }
  18373. })
  18374. .catch((err) => {
  18375. console.error(err);
  18376. });
  18377. },
  18378. isAssetTypeAnImage(ext) {
  18379. return (
  18380. [
  18381. "png",
  18382. "jpg",
  18383. "jpeg",
  18384. "bmp",
  18385. "gif",
  18386. "webp",
  18387. "psd",
  18388. "svg",
  18389. "tiff",
  18390. ].indexOf(ext) !== -1
  18391. );
  18392. },
  18393. switchVideo(media) {
  18394. this.playerO = {};
  18395. this.playerOptions.poster = "";
  18396. this.playerOptions.sources[0].src = media;
  18397. this.playerO = this.playerOptions;
  18398. },
  18399. onPlayerPlay() {},
  18400. onPlayerTimeupdate(player) {
  18401. let gklog = player.cache_.currentTime; //当前播放的秒数
  18402. let a = player.cache_.duration; //视频的总时长
  18403. let gklog2 = parseInt(gklog);
  18404. // if(gklog2 == '3'){
  18405. // player.pause()
  18406. // setTimeout(()=>{
  18407. // player.currentTime(gklog2+1)
  18408. // player.play()
  18409. // },1000)
  18410. // }
  18411. console.log(" onPlayerTimeupdate!", gklog);
  18412. console.log(" onPlayerTimeupdate!", gklog2);
  18413. },
  18414. lookVedio(u, i) {
  18415. this.isClickNav = "";
  18416. // this.playerOptions.sources[0].src = u;
  18417. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18418. d.sources[0].src = u;
  18419. this.playerO[0] = d;
  18420. this.showType = 0;
  18421. // this.isClickNav = "video" + i;
  18422. this.isClickNav = i;
  18423. this.$forceUpdate();
  18424. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18425. },
  18426. lookText(i, t) {
  18427. this.isClickNav = "";
  18428. // this.text = this.textList[i][t];
  18429. this.text = this.vChapterData[i][t];
  18430. // this.dialogVisible1 = true;
  18431. this.showType = 1;
  18432. // this.isClickNav = "text" + t;
  18433. this.isClickNav = t;
  18434. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18435. },
  18436. lookTools(i, t) {
  18437. this.chapTools = this.chapToolList[i][t];
  18438. this.dialogVisible2 = true;
  18439. },
  18440. async openFile(f) {
  18441. this.pptImgUrl = "";
  18442. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18443. if (
  18444. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18445. -1
  18446. ) {
  18447. let _uuurl = await this.checkLink(f);
  18448. console.log(_uuurl)
  18449. this.pptImgUrl =
  18450. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18451. this.showPDF = false;
  18452. this.dialogVisible3 = true;
  18453. } else if (
  18454. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18455. ) {
  18456. this.pptImgUrl = f;
  18457. this.showPDF = true;
  18458. this.dialogVisible3 = true;
  18459. }
  18460. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18461. },
  18462. openTable(f) {
  18463. this.tableJson = JSON.parse(f.works);
  18464. this.dialogVisibleTable2 = true;
  18465. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18466. },
  18467. openWord(f) {
  18468. this.tableJson = JSON.parse(f.works);
  18469. this.dialogVisibleTable3 = true;
  18470. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18471. },
  18472. doUrl(url, i) {
  18473. this.isClickNav = "";
  18474. this.pptImgUrl1 = "";
  18475. this.showType = 2;
  18476. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18477. url = "https://" + url;
  18478. }
  18479. this.pptImgUrl1 = "";
  18480. this.diffKey = new Date().getTime();
  18481. setTimeout(() => {
  18482. this.pptImgUrl1 = url;
  18483. }, 500);
  18484. // this.isClickNav = "line" + i;
  18485. this.isClickNav = i;
  18486. this.$forceUpdate();
  18487. },
  18488. checkPhoto(f, i) {
  18489. this.showType = 4;
  18490. this.pptImgUrl1 = f.url;
  18491. this.isClickNav = i;
  18492. this.$forceUpdate();
  18493. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18494. },
  18495. checkHtml(f, i){
  18496. this.showType = 16;
  18497. this.pptImgUrl1 = f.url;
  18498. this.isClickNav = i;
  18499. this.$forceUpdate();
  18500. },
  18501. async downFile(f, i) {
  18502. this.isClickNav = "";
  18503. this.pptImgUrl1 = "";
  18504. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18505. if (
  18506. a.indexOf(
  18507. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18508. ) != -1
  18509. ) {
  18510. let _uuurl = await this.checkLink(f.url);
  18511. console.log(_uuurl)
  18512. this.pptImgUrl1 =
  18513. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18514. // this.dialogVisible3 = true;
  18515. this.showType = 2;
  18516. } else if (
  18517. this.isAssetTypeAnImage(
  18518. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18519. )
  18520. ) {
  18521. this.showType = 4;
  18522. this.pptImgUrl1 = f.url;
  18523. } else if (
  18524. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18525. "PDF"
  18526. ) {
  18527. this.pptImgUrl1 = f.url;
  18528. // this.dialogVisible3 = true;
  18529. this.showType = 3;
  18530. } else {
  18531. window.open(this.file[i].url);
  18532. }
  18533. // this.isClickNav = "word" + i;
  18534. this.isClickNav = i;
  18535. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18536. },
  18537. downFileList(i) {
  18538. window.open(this.noImgList[i].url);
  18539. },
  18540. openAddWork() {
  18541. this.dialogVisible = true;
  18542. },
  18543. addBzWorks() {
  18544. let params = [
  18545. {
  18546. uid: this.userid,
  18547. cid: this.id,
  18548. stage: this.courseType,
  18549. task: this.taskCount,
  18550. tool: this.toolindex,
  18551. content: JSON.stringify(this.eScore),
  18552. type: 6,
  18553. },
  18554. ];
  18555. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18556. this.homeWorkLoading = true
  18557. this.ajax
  18558. .post(this.$store.state.api + "addCourseWorks", params)
  18559. .then((res) => {
  18560. this.$message({
  18561. message: "提交成功",
  18562. type: "success",
  18563. });
  18564. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  18565. setTimeout(() => {
  18566. this.homeWorkLoading = false
  18567. }, 500);
  18568. this.eScore = { eBzText: "", eStar: [] };
  18569. this.studentEvalDialogVisible = false;
  18570. this.selectSWorks();
  18571. })
  18572. .catch((err) => {
  18573. this.$message.error("提交失败");
  18574. console.error(err);
  18575. setTimeout(() => {
  18576. this.homeWorkLoading = false
  18577. }, 500);
  18578. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18579. });
  18580. },
  18581. addBzWorksTeacher() {
  18582. let params = [
  18583. {
  18584. uid: this.sStudent.userid,
  18585. cid: this.id,
  18586. stage: this.courseType,
  18587. task: this.taskCount,
  18588. tool: this.toolindex,
  18589. content: JSON.stringify(this.eScore),
  18590. type: 6,
  18591. },
  18592. ];
  18593. this.ajax
  18594. .post(this.$store.state.api + "addCourseWorks", params)
  18595. .then((res) => {
  18596. this.$message({
  18597. message: "提交成功",
  18598. type: "success",
  18599. });
  18600. this.eScore = { eBzText: "", eStar: [] };
  18601. this.studentEvalDialogVisibleTeacher = false;
  18602. this.selectSWorks();
  18603. })
  18604. .catch((err) => {
  18605. this.$message.error("提交失败");
  18606. console.error(err);
  18607. });
  18608. },
  18609. addStudentAsk() {
  18610. if (!this.radio.length) {
  18611. this.$message.error("请选择选项");
  18612. return;
  18613. }
  18614. for (var i = 0; i < this.askJson.askCount; i++) {
  18615. if (
  18616. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18617. (this.radio[i] !== 0 && !this.radio[i])
  18618. ) {
  18619. this.$message.error("请选择选项");
  18620. return;
  18621. }
  18622. }
  18623. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18624. let params = [
  18625. {
  18626. uid: this.userid,
  18627. cid: this.id,
  18628. stage: this.courseType,
  18629. task: this.taskCount,
  18630. tool: this.toolindex,
  18631. content: JSON.stringify(this.askList),
  18632. type: 2,
  18633. },
  18634. ];
  18635. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18636. this.homeWorkLoading = true
  18637. this.ajax
  18638. .post(this.$store.state.api + "addCourseWorks", params)
  18639. .then((res) => {
  18640. this.$message({
  18641. message: "提交成功",
  18642. type: "success",
  18643. });
  18644. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18645. setTimeout(() => {
  18646. this.homeWorkLoading = false
  18647. }, 500);
  18648. this.askList = [];
  18649. this.dialogVisible5 = false;
  18650. this.selectStudent();
  18651. this.selectSWorks();
  18652. this.selectSLook();
  18653. })
  18654. .catch((err) => {
  18655. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18656. setTimeout(() => {
  18657. this.homeWorkLoading = false
  18658. }, 500);
  18659. this.$message.error("提交失败");
  18660. console.error(err);
  18661. });
  18662. },
  18663. addStudentAskTeacher() {
  18664. if (!this.radio.length) {
  18665. this.$message.error("请选择选项");
  18666. return;
  18667. }
  18668. for (var i = 0; i < this.askJson.askCount; i++) {
  18669. if (
  18670. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18671. (this.radio[i] !== 0 && !this.radio[i])
  18672. ) {
  18673. this.$message.error("请选择选项");
  18674. return;
  18675. }
  18676. }
  18677. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18678. let params = [
  18679. {
  18680. uid: this.sStudent.userid,
  18681. cid: this.id,
  18682. stage: this.courseType,
  18683. task: this.taskCount,
  18684. tool: this.toolindex,
  18685. content: JSON.stringify(this.askList),
  18686. type: 2,
  18687. },
  18688. ];
  18689. this.ajax
  18690. .post(this.$store.state.api + "addCourseWorks", params)
  18691. .then((res) => {
  18692. this.$message({
  18693. message: "提交成功",
  18694. type: "success",
  18695. });
  18696. this.askList = [];
  18697. this.dialogVisible5Teacher = false;
  18698. this.selectStudent();
  18699. this.selectSWorks();
  18700. this.selectSLook();
  18701. })
  18702. .catch((err) => {
  18703. this.$message.error("提交失败");
  18704. console.error(err);
  18705. });
  18706. },
  18707. addStudentTest() {
  18708. if (!this.radio.length) {
  18709. this.$message.error("请选择选项");
  18710. return;
  18711. }
  18712. for (var i = 0; i < this.testJson.testCount; i++) {
  18713. if (
  18714. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18715. (this.radio[i] !== 0 && !this.radio[i])
  18716. ) {
  18717. this.$message.error("请选择选项");
  18718. return;
  18719. }
  18720. }
  18721. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18722. let params = [
  18723. {
  18724. uid: this.userid,
  18725. cid: this.id,
  18726. stage: this.courseType,
  18727. task: this.taskCount,
  18728. tool: this.toolindex,
  18729. content: JSON.stringify(this.askList),
  18730. type: 8,
  18731. },
  18732. ];
  18733. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18734. this.homeWorkLoading = true
  18735. this.ajax
  18736. .post(this.$store.state.api + "addCourseWorks", params)
  18737. .then((res) => {
  18738. this.$message({
  18739. message: "提交成功",
  18740. type: "success",
  18741. });
  18742. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18743. setTimeout(() => {
  18744. this.homeWorkLoading = false
  18745. }, 500);
  18746. this.askList = [];
  18747. this.dialogVisibleChoice = false;
  18748. this.selectStudent();
  18749. this.selectSWorks();
  18750. this.selectSLook();
  18751. })
  18752. .catch((err) => {
  18753. this.$message.error("提交失败");
  18754. console.error(err);
  18755. setTimeout(() => {
  18756. this.homeWorkLoading = false
  18757. }, 500);
  18758. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18759. });
  18760. },
  18761. addStudentTestTeacher() {
  18762. if (!this.radio.length) {
  18763. this.$message.error("请选择选项");
  18764. return;
  18765. }
  18766. for (var i = 0; i < this.testJson.testCount; i++) {
  18767. if (
  18768. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18769. (this.radio[i] !== 0 && !this.radio[i])
  18770. ) {
  18771. this.$message.error("请选择选项");
  18772. return;
  18773. }
  18774. }
  18775. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18776. let params = [
  18777. {
  18778. uid: this.sStudent.userid,
  18779. cid: this.id,
  18780. stage: this.courseType,
  18781. task: this.taskCount,
  18782. tool: this.toolindex,
  18783. content: JSON.stringify(this.askList),
  18784. type: 8,
  18785. },
  18786. ];
  18787. this.ajax
  18788. .post(this.$store.state.api + "addCourseWorks", params)
  18789. .then((res) => {
  18790. this.$message({
  18791. message: "提交成功",
  18792. type: "success",
  18793. });
  18794. this.askList = [];
  18795. this.dialogVisibleChoiceTeacher = false;
  18796. this.selectStudent();
  18797. this.selectSWorks();
  18798. this.selectSLook();
  18799. })
  18800. .catch((err) => {
  18801. this.$message.error("提交失败");
  18802. console.error(err);
  18803. });
  18804. },
  18805. addWork() {
  18806. if (this.studyJuri[0].content == "") {
  18807. this.$message.error("请将信息填写完整");
  18808. return;
  18809. } else if (this.studyJuri[0].cover.length == 0) {
  18810. this.$message.error("请将信息填写完整");
  18811. return;
  18812. } else if (this.studyJuri[0].upVedio.length == 0) {
  18813. this.$message.error("请将信息填写完整");
  18814. return;
  18815. }
  18816. if (this.isNoHomeWork) {
  18817. this.$confirm(
  18818. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18819. "提示",
  18820. {
  18821. confirmButtonText: "确定",
  18822. cancelButtonText: "取消",
  18823. type: "warning",
  18824. }
  18825. )
  18826. .then(() => {
  18827. let params = [
  18828. {
  18829. uid: this.userid,
  18830. cid: this.id,
  18831. stage: this.courseType,
  18832. task: this.taskCount,
  18833. content: JSON.stringify(this.studyJuri),
  18834. },
  18835. ];
  18836. this.ajax
  18837. .post(this.$store.state.api + "addWorks", params)
  18838. .then((res) => {
  18839. this.$message({
  18840. message: "提交成功",
  18841. type: "success",
  18842. });
  18843. this.isNoHomeWork = true;
  18844. this.dialogVisible = false;
  18845. })
  18846. .catch((err) => {
  18847. this.$message.error("提交失败");
  18848. console.error(err);
  18849. });
  18850. })
  18851. .catch(() => {});
  18852. } else {
  18853. let params = [
  18854. {
  18855. uid: this.userid,
  18856. cid: this.id,
  18857. stage: this.courseType,
  18858. task: this.taskCount,
  18859. content: JSON.stringify(this.studyJuri),
  18860. },
  18861. ];
  18862. this.ajax
  18863. .post(this.$store.state.api + "addWorks", params)
  18864. .then((res) => {
  18865. this.$message({
  18866. message: "提交成功",
  18867. type: "success",
  18868. });
  18869. this.isNoHomeWork = true;
  18870. this.dialogVisible = false;
  18871. })
  18872. .catch((err) => {
  18873. this.$message.error("提交失败");
  18874. console.error(err);
  18875. });
  18876. }
  18877. },
  18878. selectCount() {
  18879. let params = {
  18880. cid: this.id,
  18881. chid: this.courseType,
  18882. uid: this.userid,
  18883. };
  18884. this.ajax
  18885. .get(this.$store.state.api + "selectToolsCount", params)
  18886. .then((res) => {
  18887. for (var i = 0; i < res.data[0].length; i++) {
  18888. if (res.data[0][i].tools == 1) {
  18889. this.wbCount = res.data[0][i].count;
  18890. } else if (res.data[0][i].tools == 2) {
  18891. this.wordCount = res.data[0][i].count;
  18892. } else if (res.data[0][i].tools == 3) {
  18893. this.mindCount = res.data[0][i].count;
  18894. } else if (res.data[0][i].tools == 4) {
  18895. this.askCount = res.data[0][i].count;
  18896. } else if (res.data[0][i].tools == 6) {
  18897. this.noteCount = res.data[0][i].count;
  18898. } else if (res.data[0][i].tools == 7) {
  18899. this.mindNetWorkCount = res.data[0][i].count;
  18900. } else if (res.data[0][i].tools == 8) {
  18901. this.libraryCount = res.data[0][i].count;
  18902. } else if (res.data[0][i].tools == 16) {
  18903. this.workCount = res.data[0][i].count;
  18904. } else if (res.data[0][i].tools == 10) {
  18905. this.timeCount = res.data[0][i].count;
  18906. } else if (res.data[0][i].tools == 15) {
  18907. this.answerCount = res.data[0][i].count;
  18908. } else if (res.data[0][i].tools == 18) {
  18909. this.trainCount = res.data[0][i].count;
  18910. }
  18911. }
  18912. })
  18913. .catch((err) => {
  18914. console.error(err);
  18915. });
  18916. },
  18917. openTools(t, i, index, c, sName,id) {
  18918. var z = JSON.parse(c);
  18919. this.noteName = sName;
  18920. if (t == 4) {
  18921. this.radio = [];
  18922. this.isAnswer = false;
  18923. let b = z[0].anwer;
  18924. this.radio = b;
  18925. this.askJson = z[0].askJson;
  18926. this.isAnswer = true;
  18927. this.dialogVisible5 = true;
  18928. } else if (t == 45) {
  18929. this.radio = [];
  18930. this.isAnswer = false;
  18931. let b = z[0].anwer;
  18932. this.radio = b;
  18933. this.testJson = z[0].testJson;
  18934. this.isAnswer = true;
  18935. this.dialogVisibleChoice = true;
  18936. }else if(t == 69){
  18937. this.oldEnglishJson1 = {}
  18938. this.oldEnglishJson = {}
  18939. this.englishList1 = {}
  18940. this.newEngIndex = -1;
  18941. this.isNoUserid = false;
  18942. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18943. .toolChoose[i].englishList;
  18944. this.oldEnglishJson = z;
  18945. this.engWid = id;
  18946. this.newEnglishList = { engTitle:"",engText:"" }
  18947. this.newEnglishList1 = []
  18948. this.selectEngC(id,z);
  18949. }else if(t == 62){
  18950. this.videoType = 1;
  18951. this.videoJson = {};
  18952. this.videoJson = JSON.parse(c);
  18953. // this.videoJson =
  18954. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18955. // index
  18956. // ].toolChoose[i].videoJson;
  18957. this.dialogVisibleVideo = true;
  18958. }
  18959. // else if (t == 15) {
  18960. // this.answerQ = "";
  18961. // this.questionAnswer = "";
  18962. // this.answerQ = z[0].answerTitle;
  18963. // this.questionAnswer = z[0].answer;
  18964. // this.answerDialogVisible = true;
  18965. // }
  18966. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18967. },
  18968. fastText(p, t) {
  18969. if (t == 1) {
  18970. this.commentText += p;
  18971. } else {
  18972. this.eScore.eBzText += p;
  18973. }
  18974. },
  18975. addTools(t, i, index) {
  18976. var a = 0;
  18977. // this.taskCount = index;
  18978. this.toolindex = i;
  18979. if (t == 1) {
  18980. if (this.wbCount > 0) {
  18981. this.updateCount(this.wbCount, t);
  18982. } else {
  18983. this.wbCount++;
  18984. a = this.wbCount;
  18985. this.toolsCount(a, t);
  18986. }
  18987. window.topU.postMessage(
  18988. {
  18989. tools: "1",
  18990. cid: this.id,
  18991. stage: this.courseType,
  18992. task: this.taskCount,
  18993. tool: i,
  18994. },
  18995. "*"
  18996. );
  18997. } else if (t == 2) {
  18998. if (this.wordCount > 0) {
  18999. this.updateCount(this.wordCount, t);
  19000. } else {
  19001. this.wordCount++;
  19002. a = this.wordCount;
  19003. this.toolsCount(a, t);
  19004. }
  19005. window.topU.postMessage({ tools: "2" }, "*");
  19006. } else if (t == 3) {
  19007. if (this.mindCount > 0) {
  19008. this.updateCount(this.mindCount, t);
  19009. } else {
  19010. this.mindCount++;
  19011. a = this.mindCount;
  19012. this.toolsCount(a, t);
  19013. }
  19014. window.topU.postMessage(
  19015. {
  19016. tools: "3",
  19017. cid: this.id,
  19018. stage: this.courseType,
  19019. task: this.taskCount,
  19020. tool: i,
  19021. },
  19022. "*"
  19023. );
  19024. } else if (t == 4) {
  19025. this.radio = [];
  19026. this.noteName = "";
  19027. this.isAnswer = false;
  19028. if (this.askCount > 0) {
  19029. this.updateCount(this.askCount, t);
  19030. } else {
  19031. this.askCount++;
  19032. a = this.askCount;
  19033. this.toolsCount(a, t);
  19034. }
  19035. if (!this.dialogVisible2) {
  19036. this.askJson.askJson =
  19037. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19038. index
  19039. ].toolChoose[i].askJson;
  19040. this.askJson.askTitle =
  19041. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19042. index
  19043. ].toolChoose[i].askTitle;
  19044. this.askJson.askCount =
  19045. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19046. index
  19047. ].toolChoose[i].askCount;
  19048. } else {
  19049. this.askJson.askJson = this.chapTools.askJson.askJson;
  19050. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19051. this.askJson.askCount = this.chapTools.askJson.askCount;
  19052. }
  19053. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19054. if (this.askJson.askJson[k].type == "2") {
  19055. this.radio.push([]);
  19056. } else {
  19057. this.radio.push("");
  19058. }
  19059. }
  19060. this.dialogVisible5 = true;
  19061. // window.topU.postMessage({ tools: "4" }, "*");
  19062. } else if (t == 45) {
  19063. this.noteName = "";
  19064. this.radio = [];
  19065. this.isAnswer = false;
  19066. if (this.askCount > 0) {
  19067. this.updateCount(this.askCount, t);
  19068. } else {
  19069. this.askCount++;
  19070. a = this.askCount;
  19071. this.toolsCount(a, t);
  19072. }
  19073. this.testJson =
  19074. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19075. index
  19076. ].toolChoose[i].testJson;
  19077. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19078. if (this.testJson.testJson[k].type == "2") {
  19079. this.radio.push([]);
  19080. } else {
  19081. this.radio.push("");
  19082. }
  19083. }
  19084. this.dialogVisibleChoice = true;
  19085. // window.topU.postMessage({ tools: "4" }, "*");
  19086. } else if (t == 5) {
  19087. if (this.scoreCount > 0) {
  19088. this.updateCount(this.scoreCount, t);
  19089. } else {
  19090. this.scoreCount++;
  19091. a = this.scoreCount;
  19092. this.toolsCount(a, t);
  19093. }
  19094. this.dialogVisible4 = true;
  19095. // window.topU.postMessage({ tools: "5" }, "*");
  19096. } else if (t == 6) {
  19097. if (this.noteCount > 0) {
  19098. this.updateCount(this.noteCount, t);
  19099. } else {
  19100. this.noteCount++;
  19101. a = this.noteCount;
  19102. this.toolsCount(a, t);
  19103. }
  19104. window.topU.postMessage(
  19105. {
  19106. tools: "6",
  19107. cid: this.id,
  19108. stage: this.courseType,
  19109. task: this.taskCount,
  19110. tool: i,
  19111. },
  19112. "*"
  19113. );
  19114. } else if (t == 7) {
  19115. if (this.mindNetWorkCount > 0) {
  19116. this.updateCount(this.mindNetWorkCount, t);
  19117. } else {
  19118. this.mindNetWorkCount++;
  19119. a = this.mindNetWorkCount;
  19120. this.toolsCount(a, t);
  19121. }
  19122. window.topU.postMessage(
  19123. {
  19124. tools: "7",
  19125. cid: this.id,
  19126. stage: this.courseType,
  19127. task: this.taskCount,
  19128. tool: i,
  19129. },
  19130. "*"
  19131. );
  19132. } else if (t == 16) {
  19133. if (this.workCount > 0) {
  19134. this.updateCount(this.workCount, t);
  19135. } else {
  19136. this.workCount++;
  19137. a = this.workCount;
  19138. this.toolsCount(a, t);
  19139. }
  19140. this.dialogVisible = true;
  19141. } else if (t == 50) {
  19142. if (this.tType == 2) {
  19143. this.$message.error("不支持学生使用");
  19144. return;
  19145. }
  19146. this.plworkFile = [];
  19147. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19148. if (!this.uploadCid) {
  19149. this.$message.error(
  19150. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19151. );
  19152. return;
  19153. }
  19154. // this.uploadCid =
  19155. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19156. // index
  19157. // ].toolChoose[i].uploadJson[0];
  19158. this.selectUploadStudent(2);
  19159. } else if (t == 8) {
  19160. if (this.libraryCount > 0) {
  19161. this.updateCount(this.libraryCount, t);
  19162. } else {
  19163. this.libraryCount++;
  19164. a = this.libraryCount;
  19165. this.toolsCount(a, t);
  19166. }
  19167. window.topU.postMessage({ tools: "8" }, "*");
  19168. } else if (t == 17) {
  19169. if (this.libraryCount > 0) {
  19170. this.updateCount(this.libraryCount, t);
  19171. } else {
  19172. this.libraryCount++;
  19173. a = this.libraryCount;
  19174. this.toolsCount(a, t);
  19175. }
  19176. window.topU.postMessage({ tools: "17" }, "*");
  19177. } else if (t == 18) {
  19178. if (this.trainCount > 0) {
  19179. this.updateCount(this.trainCount, t);
  19180. } else {
  19181. this.trainCount++;
  19182. a = this.trainCount;
  19183. this.toolsCount(a, t);
  19184. }
  19185. window.topU.postMessage({ tools: "18" }, "*");
  19186. } else if (t == 10) {
  19187. if (this.timeCount > 0) {
  19188. this.updateCount(this.timeCount, t);
  19189. } else {
  19190. this.timeCount++;
  19191. a = this.timeCount;
  19192. this.toolsCount(a, t);
  19193. }
  19194. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  19195. .taskJson[index].toolChoose[i].preTime
  19196. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19197. .toolChoose[i].preTime
  19198. : "";
  19199. this.timeDialogVisible = true;
  19200. } else if (t == 15) {
  19201. this.answerQ = "";
  19202. this.questionAnswer = "";
  19203. if (this.answerCount > 0) {
  19204. this.updateCount(this.answerCount, t);
  19205. } else {
  19206. this.answerCount++;
  19207. a = this.answerCount;
  19208. this.toolsCount(a, t);
  19209. }
  19210. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19211. .taskJson[index].toolChoose[i].answerQ
  19212. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19213. .toolChoose[i].answerQ
  19214. : "";
  19215. this.answerDialogVisible = true;
  19216. } else if (t == 21) {
  19217. window.topU.postMessage({ tools: "21" }, "*");
  19218. } else if (t == 22) {
  19219. window.topU.postMessage({ tools: "22" }, "*");
  19220. } else if (t == 23) {
  19221. window.topU.postMessage({ tools: "23" }, "*");
  19222. } else if (t == 24) {
  19223. window.topU.postMessage({ tools: "24" }, "*");
  19224. } else if (t == 25) {
  19225. window.topU.postMessage({ tools: "25" }, "*");
  19226. } else if (t == 31) {
  19227. window.topU.postMessage({ tools: "31" }, "*");
  19228. } else if (t == 28) {
  19229. window.topU.postMessage({ tools: "28" }, "*");
  19230. } else if (t == 37) {
  19231. window.topU.postMessage({ tools: "37" }, "*");
  19232. } else if (t == 38) {
  19233. window.topU.postMessage({ tools: "38" }, "*");
  19234. } else if (t == 39) {
  19235. window.topU.postMessage({ tools: "39" }, "*");
  19236. } else if (t == 32) {
  19237. window.topU.postMessage({ tools: "32" }, "*");
  19238. } else if (t == 66) {
  19239. window.topU.postMessage({ tools: "66" }, "*");
  19240. } else if (t == 67) {
  19241. window.topU.postMessage({ tools: "67" }, "*");
  19242. } else if (t == 68) {
  19243. window.topU.postMessage({ tools: "68" }, "*");
  19244. } else if (t == 57) {
  19245. // window.topU.postMessage({ tools: "57" }, "*");
  19246. window.topU.postMessage(
  19247. {
  19248. tools: "57u",
  19249. cid: this.id,
  19250. stage: this.courseType,
  19251. task: this.taskCount,
  19252. tool: i,
  19253. },
  19254. "*"
  19255. );
  19256. } else if (t == 58) {
  19257. window.topU.postMessage({ tools: "58" }, "*");
  19258. } else if (t == 59) {
  19259. window.topU.postMessage({ tools: "59" }, "*");
  19260. } else if (t == 60) {
  19261. window.topU.postMessage({ tools: "60" }, "*");
  19262. } else if (t == 61) {
  19263. window.topU.postMessage({ tools: "61" }, "*");
  19264. } else if (t == 63) {
  19265. window.topU.postMessage({ tools: "63" }, "*");
  19266. } else if (t == 71) {
  19267. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  19268. // this.$message.error("该工具不可使用");
  19269. // return
  19270. // }
  19271. window.topU.postMessage({ tools: "71" }, "*");
  19272. } else if (t == 72) {
  19273. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  19274. .taskJson[index].toolChoose[i].appJson
  19275. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19276. .toolChoose[i].appJson
  19277. : "";
  19278. if(!item || !item.url){
  19279. this.$message.error("应用连接为空, 请到课程管理中添加");
  19280. return;
  19281. }
  19282. if (!document.fullscreenElement) {
  19283. this.enterFullScreen();
  19284. }
  19285. this.$refs.appStoreC.getData(item.url,this.userid)
  19286. // window.topU.postMessage({ tools: "72", data: item }, "*");
  19287. // window.open(item.url, "_blank");
  19288. } else if (t == 69) {
  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) {
  19292. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  19293. break;
  19294. } else {
  19295. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19296. }
  19297. }
  19298. } else {
  19299. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19300. }
  19301. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  19302. .taskJson[index].toolChoose[i].englishList
  19303. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19304. .toolChoose[i].englishList
  19305. : {};
  19306. this.englishToolIndex = i;
  19307. this.myAnList = this.myAnswerList1;
  19308. this.engDialogVisible = true;
  19309. } else if (t == 70) {
  19310. if (this.worksStudent[i].length) {
  19311. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19312. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  19313. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  19314. break;
  19315. } else {
  19316. this.englishVoiceJsonWork = [];
  19317. }
  19318. }
  19319. } else {
  19320. this.englishVoiceJsonWork = [];
  19321. }
  19322. let englishVoiceJson = {}
  19323. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19324. .taskJson[index].toolChoose[i].englishVoiceJson
  19325. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19326. .toolChoose[i].englishVoiceJson
  19327. : {};
  19328. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19329. this.EnglishVoiceDialog = true;
  19330. } else if (t == 65) {
  19331. if (this.tType == 2) {
  19332. this.$message.error("不支持学生使用");
  19333. return;
  19334. }
  19335. this.uploadCid = this.tcid;
  19336. if (!this.uploadCid) {
  19337. this.$message.error(
  19338. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  19339. );
  19340. return;
  19341. }
  19342. this.selectPickStudent();
  19343. } else if (t == 26) {
  19344. window.topU.postMessage(
  19345. {
  19346. tools: "26",
  19347. cid: this.id,
  19348. stage: this.courseType,
  19349. task: this.taskCount,
  19350. tool: i,
  19351. },
  19352. "*"
  19353. );
  19354. } else if (t == 40) {
  19355. if (this.evalCount > 0) {
  19356. this.updateCount(this.evalCount, t);
  19357. } else {
  19358. this.evalCount++;
  19359. a = this.evalCount;
  19360. this.toolsCount(a, t);
  19361. }
  19362. this.eScore = { eBzText: "", eStar: [] };
  19363. if (this.worksStudent[i].length) {
  19364. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19365. if (this.userid == this.worksStudent[i][k].userid) {
  19366. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19367. this.rateJson =
  19368. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19369. index
  19370. ].toolChoose[i].rateJson;
  19371. break;
  19372. } else {
  19373. this.rateJson =
  19374. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19375. index
  19376. ].toolChoose[i].rateJson;
  19377. }
  19378. }
  19379. } else {
  19380. this.rateJson =
  19381. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19382. index
  19383. ].toolChoose[i].rateJson;
  19384. }
  19385. this.isStar = false;
  19386. this.studentEvalDialogVisible = true;
  19387. } else if (t == 41) {
  19388. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19389. .taskJson[index].toolChoose[i].selectJson
  19390. ? JSON.parse(
  19391. JSON.stringify(
  19392. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19393. index
  19394. ].toolChoose[i].selectJson
  19395. )
  19396. )
  19397. : { url: "", select: [], answer: [] };
  19398. if (this.worksStudent[i].length) {
  19399. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19400. if (this.userid == this.worksStudent[i][k].userid) {
  19401. var a = this.worksStudent[i][k].works.split(",");
  19402. for (var ki = 0; ki < a.length; ki++) {
  19403. a[ki] = parseInt(a[ki]);
  19404. }
  19405. this.selectAnswer = {
  19406. answer: a,
  19407. stu: this.worksStudent[i][k].sName,
  19408. };
  19409. break;
  19410. } else {
  19411. this.selectAnswer = { answer: [], stu: "" };
  19412. }
  19413. }
  19414. } else {
  19415. this.selectAnswer = { answer: [], stu: "" };
  19416. }
  19417. this.isSelect = false;
  19418. this.dialogVisibleSelect = true;
  19419. } else if (t == 44) {
  19420. window.topU.postMessage({ tools: "44" }, "*");
  19421. } else if (t == 47) {
  19422. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19423. .taskJson[index].toolChoose[i].sentenceList
  19424. ? JSON.parse(
  19425. JSON.stringify(
  19426. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19427. index
  19428. ].toolChoose[i].sentenceList
  19429. )
  19430. )
  19431. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19432. for (var q = 0; q < this.sentenceList.length; q++) {
  19433. this.sentenceList[q].chooseSenList = [];
  19434. this.sentenceList[q].addChangeSen = [];
  19435. this.sentenceList[q].addChangeSen = JSON.parse(
  19436. JSON.stringify(this.sentenceList[q].addSentence)
  19437. );
  19438. this.sentenceList[q].chooseSenList.length =
  19439. this.sentenceList[q].rightAnswer.length;
  19440. }
  19441. this.dialogVisibleSentence = true;
  19442. } else if (t == 48) {
  19443. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19444. .taskJson[index].toolChoose[i].tableJson
  19445. ? JSON.parse(
  19446. JSON.stringify(
  19447. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19448. index
  19449. ].toolChoose[i].tableJson
  19450. )
  19451. )
  19452. : { text: "" };
  19453. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  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.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19458. break;
  19459. }
  19460. }
  19461. }
  19462. this.dialogVisibleTable = true;
  19463. } else if (t == 52) {
  19464. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19465. .taskJson[index].toolChoose[i].wordJson
  19466. ? JSON.parse(
  19467. JSON.stringify(
  19468. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19469. index
  19470. ].toolChoose[i].wordJson
  19471. )
  19472. )
  19473. : { text: "" };
  19474. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19475. if (this.worksStudent[i].length) {
  19476. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19477. if (this.userid == this.worksStudent[i][k].userid) {
  19478. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19479. break;
  19480. }
  19481. }
  19482. }
  19483. this.dialogVisibleWord = true;
  19484. } else if (t == 49) {
  19485. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19486. return
  19487. }
  19488. this.groupJson =
  19489. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19490. index
  19491. ].toolChoose[i].groupJson;
  19492. this.islock = this.groupJson.islock == 1 ? true : false;
  19493. this.dialogVisibleGroup = true;
  19494. } else if (t == 62) {
  19495. this.videoType = 0;
  19496. this.videoJson = {};
  19497. this.videoJson =
  19498. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19499. index
  19500. ].toolChoose[i].videoJson;
  19501. this.dialogVisibleVideo = true;
  19502. }
  19503. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  19504. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19505. },
  19506. teacherWorkSubmit(t, i, index, s) {
  19507. console.log('t',t);
  19508. if(t == 72) return
  19509. this.sStudent = s;
  19510. this.toolindex = i;
  19511. this.sTool = t;
  19512. if (this.tType !== "1" && this.tType !== "4") {
  19513. return;
  19514. }
  19515. if (t == 16 || t == 32 || t == 50) {
  19516. this.dialogVisibleWorks = true;
  19517. } else if (t == 15) {
  19518. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19519. .taskJson[index].toolChoose[i].answerQ
  19520. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19521. .toolChoose[i].answerQ
  19522. : "";
  19523. this.questionAnswer = "";
  19524. this.answerDialogVisibleTeacher = true; //问答
  19525. } else if (t == 52) {
  19526. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19527. .taskJson[index].toolChoose[i].wordJson
  19528. ? JSON.parse(
  19529. JSON.stringify(
  19530. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19531. index
  19532. ].toolChoose[i].wordJson
  19533. )
  19534. )
  19535. : { text: "" };
  19536. if (this.worksStudent[i].length) {
  19537. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19538. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19539. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19540. break;
  19541. }
  19542. }
  19543. }
  19544. this.dialogVisibleWordTeacher = true; //文档
  19545. } else if (t == 4) {
  19546. this.radio = [];
  19547. this.noteName = "";
  19548. this.isAnswer = false;
  19549. if (this.askCount > 0) {
  19550. this.updateCount(this.askCount, t);
  19551. } else {
  19552. this.askCount++;
  19553. a = this.askCount;
  19554. this.toolsCount(a, t);
  19555. }
  19556. if (!this.dialogVisible2) {
  19557. this.askJson.askJson =
  19558. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19559. index
  19560. ].toolChoose[i].askJson;
  19561. this.askJson.askTitle =
  19562. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19563. index
  19564. ].toolChoose[i].askTitle;
  19565. this.askJson.askCount =
  19566. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19567. index
  19568. ].toolChoose[i].askCount;
  19569. } else {
  19570. this.askJson.askJson = this.chapTools.askJson.askJson;
  19571. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19572. this.askJson.askCount = this.chapTools.askJson.askCount;
  19573. }
  19574. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19575. if (this.askJson.askJson[k].type == "2") {
  19576. this.radio.push([]);
  19577. } else {
  19578. this.radio.push("");
  19579. }
  19580. }
  19581. this.dialogVisible5Teacher = true;
  19582. } else if (t == 45) {
  19583. this.noteName = "";
  19584. this.radio = [];
  19585. this.isAnswer = false;
  19586. if (this.askCount > 0) {
  19587. this.updateCount(this.askCount, t);
  19588. } else {
  19589. this.askCount++;
  19590. a = this.askCount;
  19591. this.toolsCount(a, t);
  19592. }
  19593. this.testJson =
  19594. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19595. index
  19596. ].toolChoose[i].testJson;
  19597. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19598. if (this.testJson.testJson[k].type == "2") {
  19599. this.radio.push([]);
  19600. } else {
  19601. this.radio.push("");
  19602. }
  19603. }
  19604. this.dialogVisibleChoiceTeacher = true;
  19605. } else if (t == 41) {
  19606. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19607. .taskJson[index].toolChoose[i].selectJson
  19608. ? JSON.parse(
  19609. JSON.stringify(
  19610. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19611. index
  19612. ].toolChoose[i].selectJson
  19613. )
  19614. )
  19615. : { url: "", select: [], answer: [] };
  19616. if (this.worksStudent[i].length) {
  19617. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19618. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19619. var a = this.worksStudent[i][k].works.split(",");
  19620. for (var ki = 0; ki < a.length; ki++) {
  19621. a[ki] = parseInt(a[ki]);
  19622. }
  19623. this.selectAnswer = {
  19624. answer: a,
  19625. stu: this.worksStudent[i][k].sName,
  19626. };
  19627. break;
  19628. } else {
  19629. this.selectAnswer = { answer: [], stu: "" };
  19630. }
  19631. }
  19632. } else {
  19633. this.selectAnswer = { answer: [], stu: "" };
  19634. }
  19635. this.isSelect = false;
  19636. this.dialogVisibleSelectTeacher = true;
  19637. } else if (t == 47) {
  19638. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19639. .taskJson[index].toolChoose[i].sentenceList
  19640. ? JSON.parse(
  19641. JSON.stringify(
  19642. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19643. index
  19644. ].toolChoose[i].sentenceList
  19645. )
  19646. )
  19647. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19648. for (var q = 0; q < this.sentenceList.length; q++) {
  19649. this.sentenceList[q].chooseSenList = [];
  19650. this.sentenceList[q].addChangeSen = [];
  19651. this.sentenceList[q].addChangeSen = JSON.parse(
  19652. JSON.stringify(this.sentenceList[q].addSentence)
  19653. );
  19654. this.sentenceList[q].chooseSenList.length =
  19655. this.sentenceList[q].rightAnswer.length;
  19656. }
  19657. this.dialogVisibleSentenceTeacher = true;
  19658. } else if (t == 48) {
  19659. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19660. .taskJson[index].toolChoose[i].tableJson
  19661. ? JSON.parse(
  19662. JSON.stringify(
  19663. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19664. index
  19665. ].toolChoose[i].tableJson
  19666. )
  19667. )
  19668. : { text: "" };
  19669. if (this.worksStudent[i].length) {
  19670. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19671. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19672. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19673. break;
  19674. }
  19675. }
  19676. }
  19677. this.dialogVisibleTableTeacher = true;
  19678. } else if (t == 40) {
  19679. if (this.evalCount > 0) {
  19680. this.updateCount(this.evalCount, t);
  19681. } else {
  19682. this.evalCount++;
  19683. a = this.evalCount;
  19684. this.toolsCount(a, t);
  19685. }
  19686. this.eScore = { eBzText: "", eStar: [] };
  19687. if (this.worksStudent[i].length) {
  19688. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19689. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19690. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19691. this.rateJson =
  19692. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19693. index
  19694. ].toolChoose[i].rateJson;
  19695. break;
  19696. } else {
  19697. this.rateJson =
  19698. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19699. index
  19700. ].toolChoose[i].rateJson;
  19701. }
  19702. }
  19703. } else {
  19704. this.rateJson =
  19705. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19706. index
  19707. ].toolChoose[i].rateJson;
  19708. }
  19709. this.isStar = false;
  19710. this.studentEvalDialogVisibleTeacher = true;
  19711. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19712. window.topU.postMessage(
  19713. {
  19714. tools: t + "teacher",
  19715. cid: this.id,
  19716. stage: this.courseType,
  19717. task: this.taskCount,
  19718. tool: i,
  19719. student: this.sStudent,
  19720. },
  19721. "*"
  19722. );
  19723. }else if (t == 72) {
  19724. if (!document.fullscreenElement) {
  19725. this.enterFullScreen();
  19726. }
  19727. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19728. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19729. }
  19730. },
  19731. openCocoPi(tool, i, uid, uname) {
  19732. let student = {
  19733. userid: uid,
  19734. student: uname,
  19735. };
  19736. if (tool == 57) {
  19737. window.topU.postMessage(
  19738. {
  19739. tools: tool + "teacher",
  19740. cid: this.id,
  19741. stage: this.courseType,
  19742. task: this.taskCount,
  19743. tool: i,
  19744. student: student,
  19745. },
  19746. "*"
  19747. );
  19748. }
  19749. },
  19750. setRightAnswer(s, i, j) {
  19751. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19752. if (
  19753. this.sentenceList[i].chooseSenList[q] == undefined ||
  19754. this.sentenceList[i].chooseSenList[q] == ""
  19755. ) {
  19756. this.sentenceList[i].chooseSenList[q] = s;
  19757. this.sentenceList[i].addChangeSen[j] = "";
  19758. break;
  19759. }
  19760. }
  19761. this.$forceUpdate();
  19762. },
  19763. returnCard(r, i, j) {
  19764. var a = this.sentenceList[i].addSentence.indexOf(r);
  19765. this.sentenceList[i].chooseSenList[j] = "";
  19766. this.sentenceList[i].addChangeSen[a] = r;
  19767. this.$forceUpdate();
  19768. },
  19769. // addSentenceTool() {
  19770. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19771. // this.taskCount
  19772. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19773. // this.sentenceList = [
  19774. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19775. // ];
  19776. // this.dialogVisibleSentence = false;
  19777. // },
  19778. toolsCount(a, t) {
  19779. let params = {
  19780. cid: this.id,
  19781. chid: this.courseType,
  19782. uid: this.userid,
  19783. tid: t,
  19784. count: a,
  19785. };
  19786. this.ajax
  19787. .get(this.$store.state.api + "insertToolsCount", params)
  19788. .then((res) => {
  19789. this.selectCount();
  19790. })
  19791. .catch((err) => {
  19792. console.error(err);
  19793. });
  19794. },
  19795. updateCount(c, t) {
  19796. c++;
  19797. let params = {
  19798. cid: this.id,
  19799. chid: this.courseType,
  19800. uid: this.userid,
  19801. tid: t,
  19802. count: c,
  19803. };
  19804. this.ajax
  19805. .get(this.$store.state.api + "updateToolsCount", params)
  19806. .then((res) => {
  19807. this.selectCount();
  19808. })
  19809. .catch((err) => {
  19810. console.error(err);
  19811. });
  19812. },
  19813. checkEva() {
  19814. if (this.evalua != "") {
  19815. for (var i = 0; i < this.evaJuri.length; i++) {
  19816. if (this.evalua == this.evaJuri[i].id) {
  19817. this.eTitle = this.evaJuri[i].title;
  19818. this.eJson = JSON.parse(this.evaJuri[i].content);
  19819. }
  19820. }
  19821. this.$forceUpdate();
  19822. setTimeout(() => {
  19823. this.setMindData();
  19824. }, 0);
  19825. }
  19826. },
  19827. selectEva() {
  19828. let params = {
  19829. oid: this.oid,
  19830. };
  19831. this.ajax
  19832. .get(this.$store.state.api + "selectAllEvaluation", params)
  19833. .then((res) => {
  19834. this.evaJuri = res.data[0];
  19835. })
  19836. .catch((err) => {
  19837. console.error(err);
  19838. });
  19839. },
  19840. setMindData() {
  19841. this.data.data = [];
  19842. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19843. let _eJson = Object.keys(this.eJson);
  19844. let _e = this.eJson;
  19845. for (let i = 0; i < _eJson.length; i++) {
  19846. let element = _e[_eJson[i]];
  19847. this.data.data.push({
  19848. id: element.id,
  19849. parentid: "root",
  19850. topic: element.name,
  19851. });
  19852. let _eJsonc = Object.keys(element.child);
  19853. let _e2 = element.child;
  19854. for (let j = 0; j < _eJsonc.length; j++) {
  19855. let _ec = _e2[_eJsonc[j]];
  19856. this.data.data.push({
  19857. id: _ec.id,
  19858. parentid: element.id,
  19859. topic: _ec.name,
  19860. });
  19861. let _eJsonz = Object.keys(_ec.child);
  19862. let _e3 = _ec.child;
  19863. for (let z = 0; z < _eJsonz.length; z++) {
  19864. let _ez = _e3[_eJsonz[z]];
  19865. this.data.data.push({
  19866. id: _ez.id,
  19867. parentid: _ec.id,
  19868. topic: _ez.name,
  19869. });
  19870. }
  19871. }
  19872. }
  19873. this.$forceUpdate();
  19874. },
  19875. checkFileFull(type, url) {
  19876. this.fullDialogVisible = true;
  19877. this.fulltype = type;
  19878. this.fullUrl = url;
  19879. },
  19880. async checkFileFull1(t, f) {
  19881. this.fullDialogVisible = true;
  19882. if (t == 6) {
  19883. this.fulltype = 1;
  19884. console.log('checkFileFull1',f);
  19885. this.fullUrl = JSON.parse(JSON.stringify(f));
  19886. } else if (t == 8) {
  19887. this.fulltype = 2;
  19888. this.fullUrl = f.url;
  19889. } else if (t == 16) {
  19890. this.fulltype = 16;
  19891. this.fullUrl = f.url;
  19892. } else if (t == 15) {
  19893. this.fulltype = 4;
  19894. this.fullUrl = f.url;
  19895. } else if (
  19896. t == 3 &&
  19897. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19898. "PDF"
  19899. ) {
  19900. this.fulltype = 3;
  19901. this.fullUrl = f.url;
  19902. } else if (t == 3) {
  19903. this.fulltype = 2;
  19904. let _uuurl = await this.checkLink(f.url);
  19905. console.log(_uuurl)
  19906. this.fullUrl =
  19907. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19908. }
  19909. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19910. },
  19911. openSname(n, id, i, uid) {
  19912. this.snameWid = id;
  19913. this.worksSName = n;
  19914. this.worksSid = uid == n ? "" : uid;
  19915. this.toolindex = i;
  19916. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19917. if (!this.uploadCid) {
  19918. this.$message.error(
  19919. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19920. );
  19921. return;
  19922. }
  19923. this.selectUploadStudent(1);
  19924. },
  19925. updateName() {
  19926. let params = {
  19927. n: this.worksSName,
  19928. cid: this.snameWid,
  19929. };
  19930. this.ajax
  19931. .get(this.$store.state.api + "updateCourseWorksName", params)
  19932. .then((res) => {
  19933. this.$message({
  19934. message: "修改成功",
  19935. type: "success",
  19936. });
  19937. this.dialogVisibleSname = false;
  19938. this.getCourseDetail(2);
  19939. this.snameWid = "";
  19940. this.worksSName = "";
  19941. })
  19942. .catch((err) => {
  19943. console.error(err);
  19944. });
  19945. },
  19946. downloadFile2(f) {
  19947. // const loading = this.$loading.service({
  19948. // background: "rgba(255, 255, 255, 0.7)",
  19949. // target: document.body,
  19950. // text: "文件加载中...",
  19951. // });
  19952. // let url2 = f.url;
  19953. // let _url2 = "";
  19954. // if (
  19955. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19956. // ) {
  19957. // _url2 = url2.split(
  19958. // "https://view.officeapps.live.com/op/view.aspx?src="
  19959. // )[1];
  19960. // } else {
  19961. // _url2 = url2;
  19962. // }
  19963. // let params = {
  19964. // url: _url2,
  19965. // name: f.name,
  19966. // };
  19967. // this.ajax
  19968. // .get(this.$store.state.api + "download", params)
  19969. // .then((res) => {
  19970. // loading.close();
  19971. // let content = res.data.data.data;
  19972. // let ab = new ArrayBuffer(content.length);
  19973. // let view = new Uint8Array(ab);
  19974. // for (var i = 0; i < content.length; ++i) {
  19975. // view[i] = content[i];
  19976. // }
  19977. // let elink = document.createElement("a");
  19978. // elink.download = f.name;
  19979. // elink.style.display = "none";
  19980. // let blob = new Blob([ab], {
  19981. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19982. // });
  19983. // elink.href = URL.createObjectURL(blob);
  19984. // document.body.appendChild(elink);
  19985. // elink.click();
  19986. // document.body.removeChild(elink);
  19987. // })
  19988. // .catch((err) => {
  19989. // loading.close();
  19990. // console.error(err);
  19991. // });
  19992. var credentials = {
  19993. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19994. secretAccessKey: "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",
  19995. }; //秘钥形式的登录上传
  19996. window.AWS.config.update(credentials);
  19997. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19998. let url2 = f.url;
  19999. let _url2 = "";
  20000. if (
  20001. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20002. ) {
  20003. _url2 = url2.split(
  20004. "https://view.officeapps.live.com/op/view.aspx?src="
  20005. )[1];
  20006. } else {
  20007. _url2 = url2;
  20008. }
  20009. let _this = this;
  20010. _this.downLoading = true
  20011. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20012. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20013. var params = {
  20014. Bucket: "ccrb",
  20015. Key: name
  20016. };
  20017. s3.getObject(params, function (err, data) {
  20018. _this.downLoading = false
  20019. if (err) console.log(err, err.stack); // an error occurred
  20020. else {
  20021. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20022. let a = document.createElement("a");
  20023. a.name = f.name;
  20024. a.href = url;
  20025. a.download = f.name;
  20026. a.click();
  20027. console.log(data);
  20028. } // sxuccessful response
  20029. });
  20030. return;
  20031. let url = f.url;
  20032. let _url = "";
  20033. if (
  20034. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20035. ) {
  20036. _url = url.split(
  20037. "https://view.officeapps.live.com/op/view.aspx?src="
  20038. )[1];
  20039. } else {
  20040. _url = url;
  20041. }
  20042. _this.downLoading = true
  20043. // const loading = _this.$loading.service({
  20044. // background: "rgba(255, 255, 255, 0.7)",
  20045. // target: document.body,
  20046. // text: "文件加载中...",
  20047. // });
  20048. let x = new XMLHttpRequest();
  20049. x.open("GET", _url, true);
  20050. x.responseType = "blob";
  20051. x.onload = function () {
  20052. _this.downLoading = false
  20053. // loading.close();
  20054. let url = window.URL.createObjectURL(new Blob([x.response]));
  20055. let a = document.createElement("a");
  20056. a.name = f.name;
  20057. a.href = url;
  20058. a.download = f.name;
  20059. a.click();
  20060. };
  20061. x.send();
  20062. },
  20063. downloadFile(url,uid) {
  20064. if (this.tType == 1 || this.userid == uid) {
  20065. var credentials = {
  20066. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20067. secretAccessKey: "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",
  20068. }; //秘钥形式的登录上传
  20069. window.AWS.config.update(credentials);
  20070. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20071. let url2 = url;
  20072. let _url2 = "";
  20073. if (
  20074. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20075. ) {
  20076. _url2 = url2.split(
  20077. "https://view.officeapps.live.com/op/view.aspx?src="
  20078. )[1];
  20079. } else {
  20080. _url2 = url2;
  20081. }
  20082. const loading2 = this.$loading.service({
  20083. background: "rgba(255, 255, 255, 0.7)",
  20084. target: document.body,
  20085. text: "文件加载中...",
  20086. });
  20087. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20088. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20089. var params = {
  20090. Bucket: "ccrb",
  20091. Key: name
  20092. };
  20093. s3.getObject(params, function (err, data) {
  20094. loading2.close();
  20095. if (err) console.log(err, err.stack); // an error occurred
  20096. else {
  20097. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20098. let a = document.createElement("a");
  20099. a.name = name;
  20100. a.href = url;
  20101. a.download = name;
  20102. a.click();
  20103. console.log(data);
  20104. } // sxuccessful response
  20105. });
  20106. }
  20107. return;
  20108. let _this = this;
  20109. let _url = "";
  20110. if (
  20111. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20112. ) {
  20113. _url = url.split(
  20114. "https://view.officeapps.live.com/op/view.aspx?src="
  20115. )[1];
  20116. } else {
  20117. _url = url;
  20118. }
  20119. const x = new XMLHttpRequest();
  20120. x.open("GET", _url, true);
  20121. x.responseType = "blob";
  20122. // this.downLoading = true
  20123. const loading = _this.$loading.service({
  20124. background: "rgba(255, 255, 255, 0.7)",
  20125. target: document.body,
  20126. text: "文件加载中...",
  20127. });
  20128. // _this.$message.success("文件下载中...");
  20129. x.onload = function (e) {
  20130. this.downLoading = false
  20131. loading.close();
  20132. let content = x.response;
  20133. let elink = document.createElement("a");
  20134. elink.download = decodeURI(
  20135. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  20136. );
  20137. elink.style.display = "none";
  20138. let blob = new Blob([content]);
  20139. elink.href = URL.createObjectURL(blob);
  20140. document.body.appendChild(elink);
  20141. elink.click();
  20142. document.body.removeChild(elink);
  20143. };
  20144. x.send();
  20145. },
  20146. openLine(url) {
  20147. window.open(url);
  20148. },
  20149. resize() {
  20150. if (document.getElementsByClassName("box_course").length) {
  20151. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20152. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20153. if (this.showType == 2 || this.showType == 3) {
  20154. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20155. document.getElementsByClassName("navBox")[0].style.height =
  20156. a - 40 + 0+ "px";
  20157. }
  20158. } else {
  20159. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  20160. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  20161. }
  20162. }
  20163. }
  20164. this.Stbodywidth =
  20165. document.getElementsByClassName("student_body").length &&
  20166. document.getElementsByClassName("student_body")[0].offsetWidth;
  20167. },
  20168. closeDraw() {
  20169. this.bg = null;
  20170. this.drawShow = false;
  20171. },
  20172. showPicturePaint(url) {
  20173. let params = {
  20174. img: url,
  20175. };
  20176. this.ajax
  20177. .get(this.$store.state.api + "imgToBase64", params)
  20178. .then((res) => {
  20179. this.drawShow = true;
  20180. this.bg = res.data[0].img;
  20181. })
  20182. .catch((err) => {
  20183. console.error(err);
  20184. });
  20185. },
  20186. addImgDraw(base64) {
  20187. let file = { name: "批注图.png" };
  20188. let img = this.dataUrlToFile(base64, file);
  20189. this.beforeUpload1(img, 5);
  20190. },
  20191. addImgDrawImG(url) {
  20192. // console.log(url);
  20193. let params = [
  20194. {
  20195. wid: this.commentDetail.wid,
  20196. img: url,
  20197. },
  20198. ];
  20199. this.ajax
  20200. .post(this.$store.state.api + "updateCourseWorks", params)
  20201. .then((res) => {
  20202. this.$message({
  20203. message: "提交成功",
  20204. type: "success",
  20205. });
  20206. this.drawShow = false;
  20207. this.bg = "";
  20208. this.selectSWorks();
  20209. this.selectStudent();
  20210. })
  20211. .catch((err) => {
  20212. this.$message.error("提交失败");
  20213. console.error(err);
  20214. });
  20215. },
  20216. deletePicturePaint() {
  20217. this.$confirm("确定删除此批注吗?", "提示", {
  20218. confirmButtonText: "确定",
  20219. cancelButtonText: "取消",
  20220. type: "warning",
  20221. })
  20222. .then(() => {
  20223. let params = [
  20224. {
  20225. wid: this.commentDetail.wid,
  20226. img: "",
  20227. },
  20228. ];
  20229. this.ajax
  20230. .post(this.$store.state.api + "updateCourseWorks", params)
  20231. .then((res) => {
  20232. this.$message({
  20233. message: "删除成功",
  20234. type: "success",
  20235. });
  20236. this.selectSWorks();
  20237. this.selectStudent();
  20238. })
  20239. .catch((err) => {
  20240. this.$message.error("删除失败");
  20241. console.error(err);
  20242. });
  20243. })
  20244. .catch(() => {});
  20245. },
  20246. getAudioVideo(constraintsData) {
  20247. if (navigator.mediaDevices === undefined) {
  20248. navigator.mediaDevices = {};
  20249. }
  20250. if (navigator.mediaDevices.getUserMedia === undefined) {
  20251. navigator.mediaDevices.getUserMedia = function (constraints) {
  20252. // 首先,如果有getUserMedia的话,就获得它
  20253. var getUserMedia =
  20254. navigator.getUserMedia ||
  20255. navigator.webkitGetUserMedia ||
  20256. navigator.mozGetUserMedia ||
  20257. navigator.msGetUserMedia;
  20258. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  20259. if (!getUserMedia) {
  20260. return Promise.reject({ code: 404 });
  20261. }
  20262. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  20263. return new Promise(function (resolve, reject) {
  20264. getUserMedia.call(navigator, constraints, resolve, reject);
  20265. });
  20266. };
  20267. }
  20268. return navigator.mediaDevices.getUserMedia(constraintsData);
  20269. },
  20270. /**
  20271. * 开始录制
  20272. */
  20273. startRecording(callback) {
  20274. let _function = (screenStream) => {
  20275. this.addStreamStopListener(screenStream, () => {
  20276. console.log("流停止监听");
  20277. this.stopRecording();
  20278. this.$emit("streamStop", {});
  20279. // this.stopRecording();
  20280. });
  20281. var options = {
  20282. type: "video",
  20283. mimeType: "video/webm",
  20284. disableLogs: false,
  20285. getNativeBlob: false, // enable it for longer recordings
  20286. ignoreMutedMedia: false,
  20287. };
  20288. // this.video.srcObject = screenStream;
  20289. this.recorder = RecordRTC(screenStream, options);
  20290. this.recorder.startRecording();
  20291. this.recorder.screen = screenStream;
  20292. this.videoStart = true;
  20293. // callback(true);
  20294. };
  20295. this.getAudioVideo({ audio: true })
  20296. .then((res) => {
  20297. this.captureScreen(_function, true);
  20298. console.log("已点击允许,开启成功");
  20299. })
  20300. .catch((err) => {
  20301. // console.log('浏览器不支持,请更换浏览器')
  20302. // } else {
  20303. this.captureScreen(_function, false);
  20304. console.log("请检查是否存在麦克风");
  20305. });
  20306. },
  20307. /**
  20308. * 停止录制
  20309. */
  20310. stopRecording(callback) {
  20311. this.recorder.stopRecording(() => {
  20312. // this.video.src = this.video.srcObject = null;
  20313. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  20314. const url = URL.createObjectURL(this.recorder.getBlob());
  20315. const a = document.createElement("a"); //this.fileName+
  20316. let videoFile = new File(
  20317. [this.recorder.getBlob()],
  20318. this.courseDetail.title + "录屏.mp4",
  20319. {
  20320. type: "video/mp4",
  20321. }
  20322. );
  20323. let downloadUrl = URL.createObjectURL(videoFile);
  20324. if(this.$refs.classRoomHelperRef){
  20325. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  20326. }
  20327. document.body.appendChild(a);
  20328. a.style.display = "none";
  20329. a.href = url;
  20330. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  20331. a.click();
  20332. this.recorder.screen.stop();
  20333. this.recorder.destroy();
  20334. this.recorder = null;
  20335. this.videoStart = false;
  20336. // callback(false);
  20337. });
  20338. },
  20339. //初始化
  20340. captureScreen(callback, type) {
  20341. if (navigator.getDisplayMedia) {
  20342. //录制结束,文件下载
  20343. navigator
  20344. .getDisplayMedia({
  20345. video: true,
  20346. })
  20347. .then((screenStream) => {
  20348. if (type) {
  20349. navigator.mediaDevices
  20350. .getUserMedia({ audio: true })
  20351. .then((mic) => {
  20352. screenStream.addTrack(mic.getTracks()[0]);
  20353. callback(screenStream);
  20354. });
  20355. } else {
  20356. callback(screenStream);
  20357. }
  20358. })
  20359. .catch(function (error) {
  20360. console.log("error", error);
  20361. });
  20362. } else if (navigator.mediaDevices.getDisplayMedia) {
  20363. navigator.mediaDevices
  20364. .getDisplayMedia({
  20365. video: true,
  20366. })
  20367. .then((screenStream) => {
  20368. if (type) {
  20369. navigator.mediaDevices
  20370. .getUserMedia({ audio: true })
  20371. .then((mic) => {
  20372. screenStream.addTrack(mic.getTracks()[0]);
  20373. callback(screenStream);
  20374. });
  20375. } else {
  20376. callback(screenStream);
  20377. }
  20378. })
  20379. .catch(function (error) {
  20380. console.log("error", error);
  20381. });
  20382. } else {
  20383. var error = "getDisplayMedia API are not supported in this browser.";
  20384. console.log("error", error);
  20385. alert(error);
  20386. }
  20387. },
  20388. //流监听
  20389. addStreamStopListener(stream, callback) {
  20390. stream.addEventListener(
  20391. "ended",
  20392. function () {
  20393. callback();
  20394. callback = function () {};
  20395. },
  20396. false
  20397. );
  20398. stream.addEventListener(
  20399. "inactive",
  20400. function () {
  20401. callback();
  20402. callback = function () {};
  20403. },
  20404. false
  20405. );
  20406. stream.getTracks().forEach(function (track) {
  20407. track.addEventListener(
  20408. "ended",
  20409. function () {
  20410. callback();
  20411. callback = function () {};
  20412. },
  20413. false
  20414. );
  20415. track.addEventListener(
  20416. "inactive",
  20417. function () {
  20418. callback();
  20419. callback = function () {};
  20420. },
  20421. false
  20422. );
  20423. });
  20424. },
  20425. updateGroup() {
  20426. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20427. this.dialogVisibleGroup2 = true;
  20428. },
  20429. numberPan() {
  20430. if (
  20431. /[^\d]/.test(this.groupJson.number) ||
  20432. this.groupJson.number < 2 ||
  20433. this.groupJson.number > 10
  20434. ) {
  20435. this.$message.error("请输入2-10的数字");
  20436. this.groupJson.number = "";
  20437. }
  20438. },
  20439. updateGroupJson() {
  20440. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20441. if (
  20442. this.groupStudentUid[this.toolindex][i].length >
  20443. this.groupJson2.number
  20444. ) {
  20445. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20446. return;
  20447. }
  20448. }
  20449. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20450. this.islock = this.groupJson.islock == 1 ? true : false;
  20451. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20452. this.taskCount
  20453. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20454. let params = [
  20455. {
  20456. cid: this.id,
  20457. chapters: JSON.stringify(this.chapInfoList),
  20458. uid: this.userid,
  20459. unitIndex: this.courseType,
  20460. },
  20461. ];
  20462. this.ajax
  20463. .post(this.$store.state.api + "updateWorkNew4", params)
  20464. .then((res) => {
  20465. this.$message.success("设置成功");
  20466. this.getCourseDetail(2);
  20467. this.dialogVisibleGroup2 = false;
  20468. this.groupJson2 = {};
  20469. this.$forceUpdate();
  20470. })
  20471. .catch((err) => {
  20472. this.$message.error("网络不佳");
  20473. console.error(err);
  20474. });
  20475. },
  20476. lockChair() {
  20477. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20478. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20479. this.updateGroupJson();
  20480. },
  20481. selectGroup(index) {
  20482. this.getCourseDetail(2, index);
  20483. },
  20484. joinGroup(index) {
  20485. if (this.groupJson.islock == 2) {
  20486. this.$message.error("位置已被锁定,无法加入");
  20487. return;
  20488. }
  20489. if (
  20490. this.groupStudent[this.toolindex][index].length >
  20491. this.groupJson.number ||
  20492. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20493. ) {
  20494. this.$message.error("位置已满,无法加入");
  20495. return;
  20496. }
  20497. let params = [
  20498. {
  20499. cid: this.id,
  20500. stage: this.courseType,
  20501. task: this.taskCount,
  20502. tool: this.toolindex,
  20503. g: index,
  20504. uid: this.userid,
  20505. },
  20506. ];
  20507. this.ajax
  20508. .post(this.$store.state.api + "joinGroup", params)
  20509. .then((res) => {
  20510. this.$message.success("加入成功");
  20511. this.getCourseDetail(2);
  20512. })
  20513. .catch((err) => {
  20514. this.$message.error("网络不佳");
  20515. console.error(err);
  20516. });
  20517. },
  20518. exitGroup(id) {
  20519. if (this.groupJson.islock == 2) {
  20520. this.$message.error("位置已被锁定,无法退出");
  20521. return;
  20522. }
  20523. let params = [
  20524. {
  20525. gid: id,
  20526. },
  20527. ];
  20528. this.ajax
  20529. .post(this.$store.state.api + "exitGroup", params)
  20530. .then((res) => {
  20531. this.$message.success("退出成功");
  20532. this.getCourseDetail(2);
  20533. })
  20534. .catch((err) => {
  20535. this.$message.error("网络不佳");
  20536. console.error(err);
  20537. });
  20538. },
  20539. groupUpload(index, task, gindex) {
  20540. this.taskCount = task;
  20541. this.toolindex = index;
  20542. this.groupIndex = gindex;
  20543. this.dialogVisibleGroupWork = true;
  20544. },
  20545. updateGroupChair(user) {
  20546. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20547. el.label = index;
  20548. return index != user.group;
  20549. });
  20550. this.updateGroupUser = user;
  20551. this.dialogVisibleUpdateGroup = true;
  20552. },
  20553. updateChair() {
  20554. if (
  20555. this.groupStudent[this.toolindex][this.checkChair].length >
  20556. this.groupJson.number ||
  20557. this.groupStudent[this.toolindex][this.checkChair].length ==
  20558. this.groupJson.number
  20559. ) {
  20560. this.$message.error("位置已满,无法加入");
  20561. return;
  20562. }
  20563. let params = [
  20564. {
  20565. cid: this.id,
  20566. stage: this.courseType,
  20567. task: this.taskCount,
  20568. tool: this.toolindex,
  20569. g: this.checkChair,
  20570. uid: this.updateGroupUser.userid,
  20571. },
  20572. ];
  20573. this.ajax
  20574. .post(this.$store.state.api + "joinGroup", params)
  20575. .then((res) => {
  20576. this.$message.success("修改成功");
  20577. this.updateGroupUser = {};
  20578. this.checkChair = "";
  20579. this.updateGroupArray = {};
  20580. this.dialogVisibleUpdateGroup = false;
  20581. this.getCourseDetail(2);
  20582. })
  20583. .catch((err) => {
  20584. this.$message.error("网络不佳");
  20585. console.error(err);
  20586. });
  20587. },
  20588. deleteGroupChair(gindex) {
  20589. this.checkDeleteGroup = [];
  20590. this.deleteGroupUser = JSON.parse(
  20591. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20592. );
  20593. this.deleteGroupArray = this.groupJson.group[gindex];
  20594. this.groupIndex = gindex;
  20595. this.dialogVisibleDeleteGroup = true;
  20596. },
  20597. async deleteChair() {
  20598. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20599. const gid =
  20600. this.groupStudent[this.toolindex][this.groupIndex][
  20601. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20602. this.checkDeleteGroup[i]
  20603. )
  20604. ];
  20605. let params = [
  20606. {
  20607. gid: gid.id,
  20608. },
  20609. ];
  20610. var a = await this.deleteChairA(params);
  20611. if (i == this.checkDeleteGroup.length - 1) {
  20612. this.$message.success("退出成功");
  20613. this.dialogVisibleDeleteGroup = false;
  20614. this.deleteGroupUser = [];
  20615. this.deleteGroupArray = {};
  20616. this.groupIndex = "";
  20617. this.checkDeleteGroup = [];
  20618. this.getCourseDetail(2);
  20619. }
  20620. }
  20621. },
  20622. deleteChairA(params) {
  20623. return new Promise((resolve, reject) => {
  20624. this.ajax
  20625. .post(this.$store.state.api + "exitGroup", params)
  20626. .then((res) => {
  20627. resolve(1);
  20628. })
  20629. .catch((err) => {
  20630. this.$message.error("网络不佳");
  20631. console.error(err);
  20632. });
  20633. });
  20634. },
  20635. contract(i) {
  20636. if (this.isCloseList[i].isClose == 0) {
  20637. this.isCloseList[i].isClose = 1;
  20638. } else {
  20639. this.isCloseList[i].isClose = 0;
  20640. }
  20641. this.$forceUpdate();
  20642. },
  20643. openWordCloud(toolindex) {
  20644. this.wordCloudData = '';
  20645. let array = [];
  20646. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20647. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20648. array.push({ name: works });
  20649. }
  20650. if (this.isGroup) {
  20651. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20652. let works = this.courseGroup.group[i].works[toolindex];
  20653. for (var j = 0; j < works.length; j++) {
  20654. let answer = JSON.parse(works[j].works)[0].answer;
  20655. array.push({ name: answer });
  20656. }
  20657. }
  20658. }
  20659. let _result = ''
  20660. array.forEach(e=>{
  20661. _result +=e.name+','
  20662. })
  20663. this.wordCloudData = _result;
  20664. this.dialogVisibleWordCloud = true;
  20665. this.wordCloudKey += 1;
  20666. },
  20667. uploadWorks(i) {
  20668. this.$confirm("确定导出作业吗?", "提示", {
  20669. confirmButtonText: "确定",
  20670. cancelButtonText: "取消",
  20671. type: "warning",
  20672. })
  20673. .then(() => {
  20674. const loading = this.$loading.service({
  20675. background: "rgba(255, 255, 255, 0.7)",
  20676. target: document.body,
  20677. text: "文件加载中...",
  20678. });
  20679. const _worksStudent = this.worksStudent;
  20680. let url = [];
  20681. var counts = {};
  20682. for (var l = 0; l < _worksStudent[i].length; l++) {
  20683. var item = _worksStudent[i][l];
  20684. var name = item.sName;
  20685. if (!counts.hasOwnProperty(name)) {
  20686. counts[name] = 0;
  20687. } else {
  20688. counts[name]++;
  20689. }
  20690. if (counts[name] > 0) {
  20691. item.sName += " (" + counts[name] + ")";
  20692. }
  20693. }
  20694. for (var l = 0; l < _worksStudent[i].length; l++) {
  20695. var item = _worksStudent[i][l];
  20696. if (
  20697. item.works.indexOf(
  20698. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20699. ) !== -1 &&
  20700. item.works.indexOf("img") === -1
  20701. ) {
  20702. url.push({ name: item.sName, url: item.works });
  20703. }
  20704. }
  20705. // var toolList = [
  20706. // { name: "电子白板", tool: 1 },
  20707. // { name: "思维导图", tool: 3 },
  20708. // { name: "协同文档", tool: 6 },
  20709. // { name: "思维网格", tool: 7 },
  20710. // { name: "素材库", tool: 8 },
  20711. // { name: "学习资料", tool: 17 },
  20712. // { name: "便签", tool: 2 },
  20713. // { name: "问卷调查", tool: 4 },
  20714. // { name: "选择题", tool: 45 },
  20715. // { name: "倒计时", tool: 10 },
  20716. // { name: "问答", tool: 15 },
  20717. // { name: "课程设计", tool: 26 },
  20718. // { name: "训练服务器", tool: 18 },
  20719. // { name: "作业提交", tool: 16 },
  20720. // { name: "批量上传", tool: 50 },
  20721. // { name: "AIoT Blockly", tool: 21 },
  20722. // { name: "AI Python", tool: 23 },
  20723. // { name: "AI Blockly", tool: 24 },
  20724. // { name: "目标管理", tool: 25 },
  20725. // { name: "数学画板", tool: 31 },
  20726. // { name: "翻译", tool: 28 },
  20727. // { name: "魔盒识字", tool: 37 },
  20728. // { name: "数学画板", tool: 31 },
  20729. // { name: "24点", tool: 38 },
  20730. // { name: "GeoGebra", tool: 39 },
  20731. // { name: "源码编辑", tool: 32 },
  20732. // { name: "个人评价", tool: 40 },
  20733. // { name: "选择匹配", tool: 41 },
  20734. // { name: "汉字宫", tool: 44 },
  20735. // { name: "排序", tool: 47 },
  20736. // { name: "表格", tool: 48 },
  20737. // { name: "文档", tool: 52 },
  20738. // { name: "学生分组", tool: 49 },
  20739. // { name: "CocoPi", tool: 57 },
  20740. // { name: "模拟驾驶", tool: 58 },
  20741. // { name: "路径搜索", tool: 59 },
  20742. // { name: "深度学习", tool: 60 },
  20743. // { name: "全历史", tool: 61 },
  20744. // { name: "交互视频", tool: 62 },
  20745. // { name: "海龟编程", tool: 63 },
  20746. // { name: "挑人", tool: 65 },
  20747. // { name: "公式编辑", tool: 66 },
  20748. // { name: "分子结构", tool: 67 },
  20749. // { name: "时间轴", tool: 68 },
  20750. // ];
  20751. // var toolName = "";
  20752. // for(var w = 0;w<toolList.length;w++){
  20753. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20754. // toolName = toolList[w].name;
  20755. // }
  20756. // }
  20757. console.log(url);
  20758. this.downLoadAll(url, loading);
  20759. })
  20760. .catch(() => {});
  20761. },
  20762. downLoadAll(url, loading) {
  20763. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20764. const zip = new JSZip();
  20765. const cache = {};
  20766. const promises = [];
  20767. data.forEach((item) => {
  20768. const promise = getFile(item.url).then((data) => {
  20769. if (data.data != 1) {
  20770. // 下载文件, 并存成ArrayBuffer对象
  20771. const file_name =
  20772. item.name +
  20773. "." +
  20774. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20775. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20776. cache[file_name] = data.data;
  20777. }
  20778. });
  20779. promises.push(promise);
  20780. });
  20781. Promise.all(promises).then(() => {
  20782. zip.generateAsync({ type: "blob" }).then((content) => {
  20783. // 生成二进制流
  20784. FileSaver.saveAs(
  20785. content,
  20786. this.courseDetail.title + "-" + "作业提交工具.zip"
  20787. ); // 利用file-saver保存文件 自定义文件名
  20788. setTimeout(() => {
  20789. loading.close();
  20790. }, 2000);
  20791. });
  20792. });
  20793. },
  20794. pickStudent(stu) {
  20795. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20796. return;
  20797. }
  20798. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20799. confirmButtonText: "确定",
  20800. cancelButtonText: "取消",
  20801. type: "warning",
  20802. })
  20803. .then(() => {
  20804. let params = [
  20805. {
  20806. uid: stu.userid,
  20807. cid: this.id,
  20808. stage: this.courseType,
  20809. task: this.taskCount,
  20810. tool: this.toolindex,
  20811. },
  20812. ];
  20813. this.ajax
  20814. .post(this.$store.state.api + "updateCoursePick", params)
  20815. .then((res) => {
  20816. this.$message.success("操作成功");
  20817. this.getPick();
  20818. })
  20819. .catch((err) => {
  20820. this.$message.error("网络不佳");
  20821. console.error(err);
  20822. });
  20823. })
  20824. .catch(() => {});
  20825. },
  20826. selectUser(){
  20827. let params = {
  20828. userid: this.userid,
  20829. };
  20830. this.ajax
  20831. .get(this.$store.state.api + "selectUser", params)
  20832. .then((res) => {
  20833. this.userMes = res.data[0];
  20834. })
  20835. .catch((err) => {
  20836. console.error(err);
  20837. });
  20838. },
  20839. setEngText(i){
  20840. this.newEngIndex = i;
  20841. this.$forceUpdate();
  20842. },
  20843. addCorrect(){
  20844. this.$confirm("你确定提交批改嘛?", "提示", {
  20845. confirmButtonText: "确定",
  20846. showCancelButton: false,
  20847. closeOnClickModal: false,
  20848. type: "warning",
  20849. })
  20850. .then(() => {
  20851. let params = {
  20852. cid: this.id,
  20853. s: parseInt(this.courseType),
  20854. t: this.taskCount,
  20855. tool: this.toolindex,
  20856. wid: this.engWid,
  20857. c: this.userid,
  20858. 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) : "",
  20859. };
  20860. this.ajax
  20861. .get(this.$store.state.api + "addEngC", params)
  20862. .then((res) => {
  20863. this.$message.success("提交成功");
  20864. this.engUpdateDialogVisible = false;
  20865. })
  20866. .catch((err) => {
  20867. console.error(err);
  20868. });
  20869. })
  20870. .catch(() => {});
  20871. },
  20872. selectEngC(id,z){
  20873. let params = {
  20874. workid: id,
  20875. };
  20876. this.ajax
  20877. .get(this.$store.state.api + "selectEngC", params)
  20878. .then((res) => {
  20879. if(res.data[0].length == 0){
  20880. this.newEnglishList.engTitle = z.engTitle;
  20881. this.newEnglishList.engText = z.engText;
  20882. }else{
  20883. var a = res.data[0];
  20884. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20885. if(this.userMes[0].type == 2){
  20886. var snum = 0;
  20887. for(var i = 0;i<a.length;i++){
  20888. if(this.userMes[0].userid == a[i].correct){
  20889. this.newEnglishList = JSON.parse(a[i].cWork);
  20890. snum = 1;
  20891. }
  20892. }
  20893. if(snum == 0){
  20894. this.newEnglishList = { engTitle:"",engText:"" };
  20895. this.newEnglishList.engTitle = z.engTitle;
  20896. this.newEnglishList.engText = z.engText;
  20897. }
  20898. }else if(this.userMes[0].type == 1){
  20899. var num = 0;
  20900. for(var w= 0;w<a.length;w++){
  20901. if(this.userMes[0].userid == a[w].correct){
  20902. num = 1;
  20903. }
  20904. }
  20905. if(num == 0){
  20906. this.isNoUserid = true;
  20907. var c = JSON.parse(JSON.stringify(z));
  20908. this.oldEnglishJson1 = c;
  20909. }else{
  20910. this.isNoUserid = false;
  20911. }
  20912. var b = a.sort((item, index) => {
  20913. console.log(item)
  20914. if (item.correct === this.userMes[0].userid) {
  20915. return -1; // 将a移到前面
  20916. } else if (index.correct === this.userMes[0].userid) {
  20917. return 1; // 将b移到前面
  20918. } else {
  20919. return 0; // 保持默认顺序
  20920. }
  20921. });
  20922. for(var p = 0;p<b.length;p++){
  20923. for(var y = 0;y<ppp.length;y++){
  20924. if(b[p].id == ppp[y].id){
  20925. b[p].cWork = JSON.parse(ppp[y].cWork);
  20926. break
  20927. }
  20928. }
  20929. }
  20930. this.newEnglishList1 = b;
  20931. }
  20932. }
  20933. this.greyType = false;
  20934. setTimeout(() => {
  20935. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20936. if(this.newEnglishList1.length > 0){
  20937. if(this.isNoUserid == true){
  20938. this.engListLength = this.newEnglishList1.length + 1;
  20939. this.newEngIndex = -1;
  20940. }else{
  20941. this.engListLength = this.newEnglishList1.length;
  20942. this.newEngIndex = 0;
  20943. }
  20944. }
  20945. if(this.userMes[0].type == 2){
  20946. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20947. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20948. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20949. }else if(this.newEngIndex == -1){
  20950. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20951. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20952. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20953. }
  20954. }, 500);
  20955. this.engUpdateDialogVisible = true;
  20956. this.$forceUpdate();
  20957. })
  20958. .catch((err) => {
  20959. console.error(err);
  20960. });
  20961. },
  20962. getPick() {
  20963. if(this.getPickLoading) return
  20964. this.getPickLoading = true
  20965. let params = {
  20966. cid: this.id,
  20967. };
  20968. this.ajax
  20969. .get(this.$store.state.api + "getPick", params)
  20970. .then((res) => {
  20971. let array = [];
  20972. for (var i = 0; i < res.data[0].length; i++) {
  20973. array.push(res.data[0][i].userid);
  20974. }
  20975. this.isPickStudent = array;
  20976. if (array.indexOf(this.userid) !== -1) {
  20977. this.$confirm("你被老师选到啦!", "提示", {
  20978. confirmButtonText: "确定",
  20979. showCancelButton: false,
  20980. closeOnClickModal: false,
  20981. type: "warning",
  20982. })
  20983. .then(() => {
  20984. let pa = [
  20985. {
  20986. uid: this.userid,
  20987. cid: this.id,
  20988. },
  20989. ];
  20990. this.ajax
  20991. .post(this.$store.state.api + "deletePick", pa)
  20992. .then((res) => {
  20993. this.getPick();
  20994. })
  20995. .catch((err) => {
  20996. this.$message.error("网络不佳");
  20997. console.error(err);
  20998. });
  20999. })
  21000. .catch(() => {});
  21001. }
  21002. this.getPickLoading = false
  21003. })
  21004. .catch((err) => {
  21005. this.getPickLoading = false
  21006. this.$message.error("网络不佳");
  21007. console.error(err);
  21008. });
  21009. },
  21010. foldEva() {
  21011. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  21012. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  21013. } else {
  21014. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  21015. setTimeout(() => {
  21016. this.checkEva();
  21017. setTimeout(() => {
  21018. this.checkEva();
  21019. }, 500);
  21020. }, 0);
  21021. }
  21022. this.$forceUpdate();
  21023. },
  21024. panToolHeight(tool) {
  21025. var _tool = document.querySelectorAll('#'+tool)[0]
  21026. var _toolA = _tool ? _tool.offsetHeight : 0
  21027. var _toolC = 0
  21028. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  21029. let boolean2 = (_toolA > _toolC) ? true : false
  21030. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  21031. this.$forceUpdate();
  21032. },
  21033. async checkLink(url) {
  21034. // console.log(url)
  21035. let _url = url
  21036. try {
  21037. const response = await fetch(url);
  21038. if(!response.ok){
  21039. _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]))
  21040. }
  21041. // console.log(response.ok)
  21042. } catch (error) {
  21043. console.error('Error checking link:', error);
  21044. // console.log(false)
  21045. _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]))
  21046. }
  21047. // console.log(_url)
  21048. return _url
  21049. },
  21050. getScoreList(){
  21051. let params = {
  21052. cid: this.id,
  21053. };
  21054. this.ajax
  21055. .get(this.$store.state.api + "selectTestCourseByCid", params)
  21056. .then((res) => {
  21057. let result = res.data;
  21058. this.scoreList.datalist = result[0];
  21059. this.scoreList.isScoreList = result[1];
  21060. })
  21061. .catch((err) => {
  21062. console.error(err);
  21063. });
  21064. },
  21065. setClassRoomHelperWidth(width){
  21066. this.classRoomHelperWidth = width
  21067. },
  21068. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  21069. this.$refs.choseWorksDetailDialogRef.open({
  21070. toolType:tooc,
  21071. tType: this.tType,
  21072. toolIndex: toolIndex
  21073. });
  21074. this.changeSplitScreenBehavior({
  21075. code: 1,
  21076. form: {
  21077. toolType:tooc,
  21078. toolIndex: toolIndex,
  21079. courseType: this.courseType,
  21080. taskCount: this.taskCount,
  21081. type: 0
  21082. }
  21083. });
  21084. },
  21085. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  21086. this.$refs.statisticalAnalysisRef.open({
  21087. worksStudent: this.worksStudent[toolIndex],
  21088. tType: this.tType,
  21089. toolIndex: toolIndex
  21090. });
  21091. this.changeSplitScreenBehavior({
  21092. code: 2,
  21093. form: {
  21094. toolType:4,
  21095. courseType: this.courseType,
  21096. taskCount: this.taskCount,
  21097. toolIndex: toolIndex,
  21098. type: 0
  21099. }
  21100. });
  21101. },
  21102. statisticalAnalysisRefresh(toolIndex) {
  21103. this.$refs.statisticalAnalysisRef.refreshData({
  21104. worksStudent: this.worksStudent[toolIndex],
  21105. tType: this.tType,
  21106. toolIndex: toolIndex
  21107. });
  21108. },
  21109. async splitScreenBehavior(type = 0) {
  21110. // return;
  21111. if (this.splitScreenData.loading)
  21112. return this.$message.info("操作过快,请稍等");
  21113. if (type == 0) {
  21114. //关闭分屏
  21115. this.splitScreenData.isOpen = false;
  21116. // this.splitScreenData.userId = "";
  21117. // this.splitScreenData.uid = "";
  21118. this.splitScreenData.behavior = null;
  21119. await this.updateSplitScreenData(1);
  21120. this.$message.success("已关闭分屏模式");
  21121. this.studentFreePreview(false);
  21122. this.OpenJobPreview(false);
  21123. // this.followingMode(false);
  21124. } else if (type == 1) {
  21125. //开启分屏
  21126. this.splitScreenData.isOpen = true;
  21127. this.splitScreenData.userId = this.userid;
  21128. this.splitScreenData.uid = this.splitScreenData.myUid;
  21129. this.splitScreenData.behavior = null;
  21130. let status = await this.updateSplitScreenData(0);
  21131. this.changeSplitScreenBehavior({form:{}})
  21132. if (status == 1) {
  21133. this.$message.success("已开启分屏");
  21134. this.studentFreePreview(false);
  21135. this.OpenJobPreview(true);
  21136. // this.followingMode(true);
  21137. } else {
  21138. this.splitScreenData.isOpen = false;
  21139. this.splitScreenData.userId = "";
  21140. this.splitScreenData.uid = "";
  21141. this.splitScreenData.behavior = null;
  21142. this.$message.success("分屏开启失败");
  21143. }
  21144. }
  21145. },
  21146. enterFullScreen() {
  21147. let element = document.documentElement;
  21148. if (element.requestFullscreen) {
  21149. element.requestFullscreen();
  21150. } else if (element.mozRequestFullScreen) { /* Firefox */
  21151. element.mozRequestFullScreen();
  21152. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  21153. element.webkitRequestFullscreen();
  21154. } else if (element.msRequestFullscreen) { /* IE/Edge */
  21155. element.msRequestFullscreen();
  21156. }
  21157. },
  21158. exitFullScreen() {
  21159. if (document.exitFullscreen) {
  21160. document.exitFullscreen();
  21161. } else if (document.mozCancelFullScreen) { /* Firefox */
  21162. document.mozCancelFullScreen();
  21163. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  21164. document.webkitExitFullscreen();
  21165. } else if (document.msExitFullscreen) { /* IE/Edge */
  21166. document.msExitFullscreen();
  21167. }
  21168. },
  21169. confirmOpen(){
  21170. this.splitScreenData.isOpen = true;
  21171. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  21172. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  21173. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  21174. this.confirmOpenDig = false
  21175. if (!document.fullscreenElement) {
  21176. this.enterFullScreen();
  21177. }
  21178. // if (this.timer2) {
  21179. // clearInterval(this.timer2);
  21180. // this.timer2 = null;
  21181. // }
  21182. // this.timer2 = setInterval(()=> {
  21183. // this.getSplitScreenData();//获取分屏数据
  21184. // }, 1000);
  21185. this.$message.success("分屏模式已开启");
  21186. },
  21187. getSplitScreenData() {
  21188. // return;
  21189. // if (this.tType != 1) return;
  21190. if(this.getSplitScreenDataLoading) return
  21191. this.getSplitScreenDataLoading = true
  21192. let params = {
  21193. cid: this.id
  21194. };
  21195. this.ajax
  21196. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  21197. .then(async res => {
  21198. let data = res.data[0][0]["splitScreenData"];
  21199. console.log("获取了分屏数:", data);
  21200. if (data) {
  21201. data = JSON.parse(data);
  21202. if (
  21203. !this.splitScreenData.isOpen &&
  21204. data.isOpen &&
  21205. this.splitScreenData.myUid == data.uid
  21206. ) {
  21207. this.splitScreenData.isOpen = false;
  21208. this.splitScreenData.userId = "";
  21209. this.splitScreenData.uid = "";
  21210. this.splitScreenData.behavior = null;
  21211. await this.updateSplitScreenData(1);
  21212. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  21213. this.confirmOpenDig = true
  21214. this.confirmOpenDigData = data
  21215. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  21216. this.splitScreenData.isOpen = false;
  21217. this.splitScreenData.userId = "";
  21218. this.splitScreenData.uid = "";
  21219. this.splitScreenData.behavior = null;
  21220. this.$message.error("已结束分屏模式");
  21221. } else if (this.splitScreenData.isOpen && data.isOpen) {
  21222. this.splitScreenData.isOpen = true;
  21223. this.splitScreenData.uid = data.uid;
  21224. this.splitScreenData.userId = data.userId;
  21225. this.splitScreenData.behavior = data.behavior;
  21226. }
  21227. this.doSplitScreenBehavior();
  21228. } else {
  21229. if (this.splitScreenData.isOpen) {
  21230. this.splitScreenData.isOpen = false;
  21231. this.splitScreenData.userId = "";
  21232. this.splitScreenData.uid = "";
  21233. this.splitScreenData.behavior = null;
  21234. this.$message.error("已结束分屏模式");
  21235. // if (this.timer2) {
  21236. // clearInterval(this.timer2);
  21237. // this.timer2 = null;
  21238. // }
  21239. // this.timer2 = setInterval(()=> {
  21240. // this.getSplitScreenData();//获取分屏数据
  21241. // }, 5000);
  21242. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  21243. confirmButtonText: '确定', //确认按钮的文字
  21244. showCancelButton: false, //是否显示取消按钮
  21245. showClose: false, //是否显示关闭按钮
  21246. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  21247. type: "warning",
  21248. })
  21249. .then(() => {
  21250. if (document.fullscreenElement) {
  21251. this.exitFullScreen();
  21252. }
  21253. })
  21254. .catch(() => {});
  21255. }
  21256. }
  21257. this.getSplitScreenDataLoading = false
  21258. })
  21259. .catch(e => {
  21260. this.getSplitScreenDataLoading = false
  21261. console.log("获取分屏数出错:", e);
  21262. });
  21263. },
  21264. doSplitScreenBehavior() {
  21265. if (
  21266. this.splitScreenData.isOpen &&
  21267. this.splitScreenData.uid != this.splitScreenData.myUid
  21268. ) {
  21269. let behavior = this.splitScreenData.behavior;
  21270. if (behavior) {
  21271. if (behavior.code === 99) {
  21272. //初始化
  21273. this.fullDialogVisible = false;
  21274. if(this.$refs.choseWorksDetailDialogRef.show){
  21275. this.$refs.choseWorksDetailDialogRef.close();
  21276. }
  21277. if(this.$refs.statisticalAnalysisRef.show){
  21278. this.$refs.statisticalAnalysisRef.close();
  21279. }
  21280. }
  21281. if (behavior.code === 0) {
  21282. //开启内容列表弹窗
  21283. this.checkFileFull1(behavior.form.t, behavior.form.f);
  21284. }else{
  21285. this.fullDialogVisible = false;
  21286. }
  21287. if (behavior.code === 1) {
  21288. //关于选择题的作业详细的操作
  21289. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  21290. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  21291. this.courseType = behavior.form.courseType;
  21292. this.taskCount = behavior.form.taskCount;
  21293. }
  21294. this.$nextTick(() => {
  21295. if (this.$refs.choseWorksDetailDialogRef.show) {
  21296. //已经打开了
  21297. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  21298. } else {
  21299. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  21300. }
  21301. });
  21302. }else{
  21303. this.$refs.choseWorksDetailDialogRef.close()
  21304. }
  21305. if(behavior.code === 2){
  21306. if(this.$refs.statisticalAnalysisRef.show){
  21307. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  21308. }else{
  21309. this.$refs.statisticalAnalysisRef.open({
  21310. worksStudent: this.worksStudent[behavior.form.toolIndex],
  21311. tType: this.tType,
  21312. toolIndex: behavior.form.toolIndex
  21313. });
  21314. }
  21315. }else{
  21316. this.$refs.statisticalAnalysisRef.close();
  21317. }
  21318. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  21319. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  21320. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  21321. if (behavior.form.courseType != this.courseType ||
  21322. behavior.form.taskCount != this.taskCount ||
  21323. behavior.form.toolType != this.toolindex
  21324. ) {
  21325. var a = document.scrollingElement;
  21326. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  21327. if (target) {
  21328. target.scrollIntoView(true);
  21329. setTimeout(()=>{
  21330. let scrollBody = document.querySelector('.body_student').parentElement
  21331. scrollBody.scrollTop = scrollBody.scrollTop - 100
  21332. }, 0);
  21333. // setTimeout(() => {
  21334. // a.scrollTop = 0
  21335. // }, 0);
  21336. }
  21337. }
  21338. if(this.courseType !=behavior.form.courseType){
  21339. this.courseType = behavior.form.courseType;
  21340. }
  21341. if(this.taskCount !=behavior.form.taskCount){
  21342. this.taskCount = behavior.form.taskCount;
  21343. }
  21344. if((behavior.form.toolType || behavior.form.toolType == 0) && (this.toolindex != behavior.form.toolType)){
  21345. this.toolindex = behavior.form.toolType;
  21346. }
  21347. // if(behavior.form.navId){
  21348. // this.navId = behavior.form.navId
  21349. // }
  21350. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  21351. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  21352. console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  21353. this.getCourseDetail()
  21354. }
  21355. this.setContent2(false)
  21356. }
  21357. } else {
  21358. }
  21359. }
  21360. },
  21361. updateSplitScreenData(empty = 0) {
  21362. return new Promise(resolve => {
  21363. if(this.userid!==this.courseDetail.userid){
  21364. if(!this.courseDetail.userid){
  21365. return setTimeout(()=>{
  21366. this.updateSplitScreenData(empty)
  21367. },2000)
  21368. }
  21369. return;
  21370. };
  21371. if (
  21372. this.splitScreenData.uid == this.splitScreenData.myUid &&
  21373. this.splitScreenData.userId == this.userid
  21374. ) {
  21375. this.splitScreenData.loading = true;
  21376. let params = [
  21377. {
  21378. cid: this.id,
  21379. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  21380. }
  21381. ];
  21382. this.ajax
  21383. .post(
  21384. this.$store.state.api + "update_courseSplitScreenData",
  21385. params
  21386. )
  21387. .then(res => {
  21388. this.splitScreenData.loading = false;
  21389. if (res.data == 1) {
  21390. resolve(1);
  21391. console.log("修改分屏数据成功");
  21392. }
  21393. })
  21394. .catch(e => {
  21395. this.splitScreenData.loading = false;
  21396. console.log("修改分屏数据失败", e);
  21397. resoleve(0);
  21398. });
  21399. } else if (empty == 2 && this.tType == 1) {
  21400. let params = [
  21401. {
  21402. cid: this.id,
  21403. nData: ""
  21404. }
  21405. ];
  21406. return this.ajax
  21407. .post(
  21408. this.$store.state.api + "update_courseSplitScreenData",
  21409. params
  21410. )
  21411. .then(_ => resolve(1))
  21412. .catch(_ => resolve(0));
  21413. } else {
  21414. return resolve(0);
  21415. }
  21416. });
  21417. },
  21418. changeSplitScreenBehavior(newValue) {
  21419. if (
  21420. this.splitScreenData.isOpen &&
  21421. this.splitScreenData.uid == this.splitScreenData.myUid
  21422. ) {
  21423. let _behavior = null;
  21424. if(!newValue){
  21425. _behavior = {}
  21426. }else{
  21427. _behavior = newValue
  21428. }
  21429. if(_behavior.form){
  21430. _behavior.form.taskCount = this.taskCount;
  21431. _behavior.form.courseType = this.courseType
  21432. }else{
  21433. _behavior.form = {
  21434. taskCount:this.taskCount,
  21435. courseType:this.courseType
  21436. }
  21437. }
  21438. this.splitScreenData.behavior = _behavior;
  21439. this.updateSplitScreenData(0);
  21440. }
  21441. },
  21442. studentFreePreview(flag) {
  21443. this.IsLookOpen = flag;
  21444. this.followingMode(flag)
  21445. this.updateLookOpen();
  21446. },
  21447. OpenJobPreview(flag) {
  21448. this.sIsOpen = flag;
  21449. this.updateSLook();
  21450. },
  21451. followingMode(flag) {
  21452. this.IsFollow = flag;
  21453. this.updateFollow();
  21454. },
  21455. StulookMode(flag) {
  21456. this.IsStulook = flag;
  21457. this.updateIsStulook();
  21458. }
  21459. },
  21460. directives: {
  21461. // 使用局部注册指令的方式
  21462. resize: {
  21463. // 指令的名称
  21464. bind(el, binding) {
  21465. // el为绑定的元素,binding为绑定给指令的对象
  21466. let width = "",
  21467. height = "";
  21468. function isReize() {
  21469. const style = document.defaultView.getComputedStyle(el);
  21470. if (width !== style.width || height !== style.height) {
  21471. binding.value(); // 关键
  21472. }
  21473. width = style.width;
  21474. height = style.height;
  21475. }
  21476. el.__vueSetInterval__ = setInterval(isReize, 300);
  21477. },
  21478. unbind(el) {
  21479. clearInterval(el.__vueSetInterval__);
  21480. },
  21481. },
  21482. autoHeight: {
  21483. update(el, binding) {
  21484. const { value } = binding
  21485. if (value && typeof value === 'number') {
  21486. el.style.height = `${value}px`
  21487. } else {
  21488. el.style.height = 'auto'
  21489. }
  21490. },
  21491. componentUpdated(el) {
  21492. el.style.height = `${el.scrollHeight + 5}px`
  21493. },
  21494. },
  21495. },
  21496. beforeDestroy() {
  21497. window.onresize = null;
  21498. clearInterval(this.timer);
  21499. this.timer = null;
  21500. clearInterval(this.timer2);
  21501. this.timer2 = null;
  21502. clearInterval(this.opertimer);
  21503. this.opertimer = null;
  21504. this.updateSplitScreenData(1);
  21505. if(this.courseDetail.userid == this.userid && this.tcid2 && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  21506. let endTime = new Date().toLocaleString("zh-CN", {
  21507. hour12: false,
  21508. timeZone: "Asia/Shanghai"
  21509. }).replace(/\//g, "-")
  21510. let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
  21511. this.syncClassData({
  21512. courseId: this.id,
  21513. title: this.courseDetail.title,
  21514. courseGrade: this.tcid2,
  21515. courseTime: courseTime,
  21516. startTime: this.startTime,
  21517. endTime: endTime,
  21518. })
  21519. console.log('同步数据')
  21520. }
  21521. },
  21522. computed: {
  21523. renderedFormula2() {
  21524. return function(val){
  21525. // 处理换行符和HTML实体
  21526. const normalized = val
  21527. .replace(/&amp;/g, '&')
  21528. .replace(/<br\/?>/g, '\n');
  21529. // 匹配行内公式($...$)和块级公式($$...$$)
  21530. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  21531. try {
  21532. return katex.renderToString(expr.trim(), {
  21533. displayMode: false,
  21534. throwOnError: false,
  21535. macros: {
  21536. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  21537. }
  21538. });
  21539. } catch (e) {
  21540. console.warn('KaTeX渲染失败:', e);
  21541. return `<span style="color:red">${expr}</span>`;
  21542. }
  21543. })
  21544. }
  21545. },
  21546. renderedFormula() {
  21547. return function(val){
  21548. try {
  21549. // 判断是否含有HTML标签,<tag ...>...</tag>
  21550. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  21551. if (!hasTag) {
  21552. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21553. // 纯文本,整体渲染
  21554. try {
  21555. return katex.renderToString(val.trim(), {
  21556. throwOnError: false,
  21557. strict: false,
  21558. output: "htmlAndMathml"
  21559. });
  21560. } catch (e) {
  21561. return val; // 渲染失败原样输出
  21562. }
  21563. } else {
  21564. // 有标签,对每个标签内容渲染
  21565. return val.replace(
  21566. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  21567. (match, tag, attrs, inner) => {
  21568. let html;
  21569. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21570. try {
  21571. html = katex.renderToString(inner.trim(), {
  21572. throwOnError: false,
  21573. strict: false,
  21574. output: "htmlAndMathml"
  21575. });
  21576. } catch (e) {
  21577. html = inner;
  21578. }
  21579. return `<${tag}${attrs}>${html}</${tag}>`;
  21580. }
  21581. );
  21582. }
  21583. } catch (e) {
  21584. console.error('KaTeX渲染错误:', e);
  21585. return val;
  21586. }
  21587. }
  21588. },
  21589. isAndroid() {
  21590. return /Android/i.test(navigator.userAgent);
  21591. },
  21592. getHeight(){
  21593. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21594. },
  21595. contentConvent() {
  21596. return function (c) {
  21597. return c
  21598. ? c
  21599. .replaceAll(/\r\n/g, "<br/>")
  21600. .replaceAll(/\n/g, "<br/>")
  21601. .replaceAll(/\s/g, "&nbsp")
  21602. : "";
  21603. };
  21604. },
  21605. MarkdownT() {
  21606. return function (c) {
  21607. let md = new MarkdownIt();
  21608. return c
  21609. ? md.render(c) : "";
  21610. };
  21611. },
  21612. commentRight(){
  21613. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21614. return "35px";
  21615. }
  21616. return `calc(${this.classRoomHelperWidth} + 5px)`
  21617. // if(this.$refs["classRoomHelperRef"].type==0){
  21618. // return "100px";
  21619. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21620. // return "502px"
  21621. // }else{
  21622. // return "0px"
  21623. // }
  21624. },
  21625. checkUpload() {
  21626. return function () {
  21627. var studentK = [];
  21628. if (this.plworkFile.length > 0) {
  21629. for (var z = 0; z < this.plworkFile.length; z++) {
  21630. studentK.push(this.plworkFile[z].username);
  21631. }
  21632. studentK = studentK.join(",");
  21633. }
  21634. var a = this.uploadStudentJuri.filter((el) => {
  21635. return studentK.indexOf(el.userid) == -1;
  21636. });
  21637. return a;
  21638. };
  21639. },
  21640. getSName() {
  21641. return function (name) {
  21642. var check = name;
  21643. this.uploadStudentJuri.forEach((el) => {
  21644. if (el.userid == check) {
  21645. check = el.name ? el.name : el.username;
  21646. }
  21647. });
  21648. return check;
  21649. };
  21650. },
  21651. getImgList() {
  21652. return function (val) {
  21653. let srcList = []; // 定义一个数组用来接收后面的img地址
  21654. val.replace(
  21655. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21656. function (match, capture) {
  21657. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21658. srcList.push(capture);
  21659. }
  21660. );
  21661. return srcList;
  21662. };
  21663. },
  21664. retrnToolHeight(){
  21665. return function (tool) {
  21666. var _tool = document.querySelectorAll('#'+tool)[0]
  21667. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21668. };
  21669. },
  21670. Correct() {
  21671. return function (c,d) {
  21672. let w = "";
  21673. let a = this.correctWord;
  21674. for(var k = 0;k<a.length;k++){
  21675. //diffWordsWithSpace
  21676. if(a.length > 1){
  21677. if(a[k].added == true){
  21678. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21679. }else if(a[k].removed == true){
  21680. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21681. }else{
  21682. w += '<span>' + a[k].value + '</span>';
  21683. }
  21684. }else{
  21685. w = c
  21686. }
  21687. console.log("👇👇!+++==")
  21688. console.log(w)
  21689. //diffChars方法
  21690. // if(w == ""){
  21691. // if(a.length > 1){
  21692. // if(a[k].added == true){
  21693. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21694. // }else if(a[k].removed == true){
  21695. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21696. // }
  21697. // }else{
  21698. // w = c
  21699. // }
  21700. // }else{
  21701. // if(k == a.length - 1){
  21702. // if(a[k].added == true){
  21703. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21704. // }else if(a[k].removed == true){
  21705. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21706. // }
  21707. // }else{
  21708. // if(a[k].added == true){
  21709. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21710. // }else if(a[k].removed == true){
  21711. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21712. // }
  21713. // }
  21714. // }
  21715. }
  21716. c = w;
  21717. return c;
  21718. };
  21719. },
  21720. },
  21721. mounted() {
  21722. this.startTime = new Date().toLocaleString("zh-CN", {
  21723. hour12: false,
  21724. timeZone: "Asia/Shanghai"
  21725. }).replace(/\//g, "-")
  21726. if (this.tType == 1) {
  21727. // 开局关闭学生查看内容
  21728. this.StulookMode(false)
  21729. // 开局打开跟随模式
  21730. this.followingMode(true)
  21731. }
  21732. document.body.addEventListener("click", (e) => {
  21733. if (this.isUpdateToolDetail1) {
  21734. this.updateToolDetail(this.toolDetailIndex);
  21735. }
  21736. });
  21737. try {
  21738. if (this.screenType == 2) {
  21739. window.topU.postMessage({ allScreen: 4 }, "*");
  21740. } else if (this.screenType == 3) {
  21741. window.topU.postMessage({ allScreen: 5 }, "*");
  21742. } else if (this.screenType == 1) {
  21743. window.topU.postMessage({ allScreen: 6 }, "*");
  21744. }
  21745. } catch (error) {
  21746. console.log(error)
  21747. }
  21748. this.setOperationTime();
  21749. this.selectEva();
  21750. this.getCourseDetail(10);
  21751. this.selectCount();
  21752. this.getHomeWork();
  21753. this.selectUser();
  21754. this.getAIJ();
  21755. this.contentDialog = false;
  21756. this.setContent2(true);
  21757. if (this.tType == 4) {
  21758. this.pzDialog = true;
  21759. this.selectPz();
  21760. }
  21761. // 获取评分列表
  21762. this.getScoreList()
  21763. this.updateSplitScreenData(2);
  21764. this.splitScreenData.myUid = uuidv4();
  21765. document.scrollingElement.scrollTop = 0;
  21766. window.addEventListener("resize", () => {
  21767. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21768. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21769. if (this.showType == 2 || this.showType == 3) {
  21770. document.getElementsByClassName("navBox")[0].style.height =
  21771. a - 40 + 0+ "px";
  21772. } else {
  21773. document.getElementsByClassName("navBox")[0].style.height =
  21774. a - 40 + "px";
  21775. }
  21776. });
  21777. let _this = this;
  21778. setTimeout(() => {
  21779. // _this.vedioTime = [];
  21780. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21781. // _this.vedioTime[i] = document.getElementsByClassName(
  21782. // "vjs-duration-display"
  21783. // )[i].textContent;
  21784. // }
  21785. }, 1000);
  21786. },
  21787. };
  21788. </script>
  21789. <style scoped>
  21790. @media screen and (max-width: 1280px) {
  21791. /* .courseIndex > div:first-child(2) {
  21792. width: 15% !important;
  21793. } */
  21794. /* .navText {
  21795. width: 120px !important;
  21796. } */
  21797. .evaCss {
  21798. flex-direction: column !important;
  21799. align-items: center !important;
  21800. }
  21801. .elist_input {
  21802. width: 90% !important;
  21803. }
  21804. .dialog_diy1 >>> .el-dialog {
  21805. width: 100% !important;
  21806. }
  21807. .rightWidthCss {
  21808. width: 100% !important;
  21809. }
  21810. .dialog_diy3 >>> .el-dialog {
  21811. width: 100% !important;
  21812. }
  21813. .addToolCss {
  21814. right: 0 !important;
  21815. width: 100% !important;
  21816. min-width: unset !important;
  21817. }
  21818. }
  21819. .evaCssMax {
  21820. flex-direction: column !important;
  21821. align-items: center !important;
  21822. }
  21823. .dialog_diy >>> .el-dialog {
  21824. margin-top: 10vh !important;
  21825. }
  21826. .body_student {
  21827. width: 77%;
  21828. height: 100%;
  21829. position: absolute;
  21830. left: 22%;
  21831. top: 0;
  21832. }
  21833. .student_head {
  21834. width: 100%;
  21835. margin: 20px auto 0;
  21836. padding-bottom: 20px;
  21837. display: flex;
  21838. flex-direction: column;
  21839. flex-wrap: nowrap;
  21840. align-items: flex-start;
  21841. justify-content: flex-start;
  21842. }
  21843. .pb_left {
  21844. width: 15%;
  21845. margin-right: 10px;
  21846. background: rgb(255, 255, 255);
  21847. position: fixed;
  21848. height: calc(100% - 40px);
  21849. border-radius: 20px;
  21850. padding-bottom: 15px;
  21851. box-sizing: border-box;
  21852. }
  21853. .wheel > img,
  21854. .project > img,
  21855. .star > img,
  21856. .evaluate > img,
  21857. .up_photo > img,
  21858. .chapter_add > img,
  21859. .deleteWord > img,
  21860. .question > img,
  21861. .homework > img {
  21862. width: 100%;
  21863. height: 100%;
  21864. }
  21865. .upCover > img {
  21866. width: 131px;
  21867. height: 69px;
  21868. object-fit: cover;
  21869. }
  21870. .upCover {
  21871. width: calc(100% / 3.5);
  21872. position: relative;
  21873. margin: 0 15px 10px 0;
  21874. display: flex;
  21875. flex-direction: column;
  21876. flex-wrap: nowrap;
  21877. justify-content: center;
  21878. align-content: center;
  21879. align-items: center;
  21880. height: fit-content;
  21881. }
  21882. .upCover2 {
  21883. width: 100%;
  21884. position: relative;
  21885. margin: 0 15px 10px 0;
  21886. display: flex;
  21887. flex-direction: column;
  21888. flex-wrap: nowrap;
  21889. justify-content: center;
  21890. align-content: center;
  21891. align-items: center;
  21892. }
  21893. .upCover2 > img {
  21894. width: 100%;
  21895. height: 90px;
  21896. object-fit: contain;
  21897. }
  21898. .chapter_add {
  21899. width: 120px;
  21900. position: relative;
  21901. text-align: center;
  21902. }
  21903. .isAddThings {
  21904. margin-top: 20px;
  21905. position: relative;
  21906. text-align: center;
  21907. background: #f7f8fa;
  21908. height: 90px;
  21909. width: 90px;
  21910. display: flex;
  21911. flex-direction: column;
  21912. justify-content: center;
  21913. }
  21914. .deleteWord {
  21915. width: 22px;
  21916. height: 22px;
  21917. position: absolute;
  21918. right: -5px;
  21919. top: -5px;
  21920. cursor: pointer;
  21921. }
  21922. .box_course {
  21923. /* width: 60%; */
  21924. width: calc(100% - 300px);
  21925. }
  21926. .wheel {
  21927. width: 100%;
  21928. /* height: 100%; */
  21929. height: 650px;
  21930. }
  21931. .right_box {
  21932. display: flex;
  21933. flex-direction: column;
  21934. margin-left: 30px;
  21935. justify-content: space-around;
  21936. }
  21937. .right_box_title {
  21938. font-size: 23px;
  21939. }
  21940. .people {
  21941. display: flex;
  21942. }
  21943. .student_body {
  21944. width: 100%;
  21945. margin: 0 auto;
  21946. margin-top: 10px;
  21947. padding: 0 0 20px;
  21948. }
  21949. .study_top {
  21950. margin-top: 100px;
  21951. width: 100%;
  21952. height: auto;
  21953. padding-bottom: 20px;
  21954. margin-left: 2px;
  21955. min-height: 90%;
  21956. }
  21957. .study_top .checkbox {
  21958. display: flex;
  21959. align-items: center;
  21960. padding: 15px 0 15px 30px;
  21961. flex: 0 0 auto;
  21962. font-weight: bold;
  21963. border-bottom: 1px solid #eee;
  21964. }
  21965. .study_top .check {
  21966. padding-bottom: 5px;
  21967. text-align: center;
  21968. cursor: pointer;
  21969. height: 30px;
  21970. box-sizing: border-box;
  21971. display: flex;
  21972. }
  21973. .study_top .checked {
  21974. border-bottom: 4px solid #3fc6a0;
  21975. padding-bottom: 5px;
  21976. color: #3fc6a0;
  21977. display: flex;
  21978. height: 35px;
  21979. }
  21980. .study_top .checked > div,
  21981. .study_top .check > div {
  21982. margin-right: 5px;
  21983. }
  21984. .videoTop {
  21985. display: flex;
  21986. flex-direction: row;
  21987. justify-content: space-between;
  21988. background: #fff;
  21989. align-items: center;
  21990. width: 95%;
  21991. padding: 20px;
  21992. }
  21993. .filebox {
  21994. display: flex;
  21995. flex-wrap: wrap;
  21996. flex-direction: column;
  21997. padding: 0 0 5px;
  21998. position: relative;
  21999. }
  22000. .filebox:before {
  22001. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  22002. position: absolute;
  22003. top: 20px;
  22004. left: 13px;
  22005. border-left: 2px dotted #cad1dc;
  22006. height: calc(100% - 15px);
  22007. }
  22008. .toolHeng2 > div:last-child::before {
  22009. height: calc(100% - 43px);
  22010. }
  22011. .filebox .tooldetail {
  22012. width: calc(100%);
  22013. margin: 0px 12px;
  22014. padding: 12px;
  22015. line-height: 30px;
  22016. word-break: break-word;
  22017. background: #ffffff;
  22018. border-radius: 8px 8px 8px 8px;
  22019. opacity: 1;
  22020. border: 1px solid #cad1dc;
  22021. overflow:hidden;
  22022. box-sizing:border-box;
  22023. }
  22024. .pb_content >>> .katex {
  22025. font-size: 16px;
  22026. width: 100%;
  22027. white-space: normal;
  22028. }
  22029. .pb_content >>> .katex .base{
  22030. display: inline !important;
  22031. display: contents !important;
  22032. }
  22033. .pb_content >>> .katex .base .cjk_fallback{
  22034. white-space: normal !important;
  22035. display: inline !important;
  22036. }
  22037. .file {
  22038. display: flex;
  22039. flex-direction: column;
  22040. align-items: center;
  22041. justify-content: center;
  22042. cursor: pointer;
  22043. width: 200px;
  22044. }
  22045. .file div {
  22046. margin-top: 10px;
  22047. width: 150px;
  22048. text-align: center;
  22049. overflow: hidden;
  22050. white-space: nowrap;
  22051. text-overflow: ellipsis;
  22052. }
  22053. .media {
  22054. display: flex;
  22055. flex-direction: column;
  22056. align-items: center;
  22057. justify-content: center;
  22058. margin: 0 20px 20px 0;
  22059. cursor: pointer;
  22060. margin: 12px 0 5px 15px;
  22061. overflow: hidden;
  22062. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  22063. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  22064. box-sizing: border-box;
  22065. }
  22066. .media img {
  22067. height: 90px;
  22068. width: 160px;
  22069. object-fit: cover;
  22070. }
  22071. .media .title {
  22072. padding: 5px;
  22073. text-align: left;
  22074. width: 100%;
  22075. box-sizing: border-box;
  22076. }
  22077. .media .btn {
  22078. width: 100%;
  22079. height: 35px;
  22080. line-height: 35px;
  22081. color: #fff;
  22082. background: #606060;
  22083. text-align: center;
  22084. overflow: hidden;
  22085. white-space: nowrap;
  22086. text-overflow: ellipsis;
  22087. }
  22088. .detail_content_top {
  22089. width: 100%;
  22090. padding: 25px 0 25px 0;
  22091. }
  22092. .detail_title {
  22093. text-align: center;
  22094. font-size: 24px;
  22095. }
  22096. .detail_time {
  22097. font-size: 13px;
  22098. padding: 15px 0 0 40px;
  22099. }
  22100. .detail_content {
  22101. line-height: 2pc;
  22102. width: 90%;
  22103. margin: 0 auto;
  22104. padding-top: 30px;
  22105. text-indent: 30px;
  22106. overflow: auto;
  22107. height: 200px;
  22108. }
  22109. .score_box >>> .el-rate {
  22110. margin-left: 10px;
  22111. }
  22112. .dialog_change >>> .el-dialog {
  22113. border-radius: 5px;
  22114. }
  22115. .dialog_change >>> .el-dialog__header {
  22116. background: #f2f2f2;
  22117. text-align: center;
  22118. }
  22119. .dialog_change >>> .el-dialog__title {
  22120. line-height: 5px;
  22121. }
  22122. .dialog_change >>> .el-dialog__body {
  22123. background: #fff;
  22124. padding: 10px 20px;
  22125. }
  22126. .score_box {
  22127. display: flex;
  22128. align-items: center;
  22129. margin-bottom: 18px;
  22130. margin-top: 20px;
  22131. }
  22132. .up_photo {
  22133. width: 120px;
  22134. cursor: pointer;
  22135. margin-top: 10px;
  22136. }
  22137. .up_photo2 {
  22138. width: 180px;
  22139. box-sizing: border-box;
  22140. min-width: 180px;
  22141. height: 180px;
  22142. max-height: 180px;
  22143. min-height: 180px;
  22144. cursor: pointer;
  22145. display: flex;
  22146. flex-direction: column;
  22147. align-items: center;
  22148. justify-content: center;
  22149. background: rgb(242, 246, 255);
  22150. /* padding: 25px; */
  22151. margin-bottom: 10px;
  22152. }
  22153. .up_photo2 img {
  22154. width: 50%;
  22155. height: auto;
  22156. }
  22157. .up_photo2 span {
  22158. color: #898989;
  22159. }
  22160. .plworkBox {
  22161. display: flex;
  22162. align-items: center;
  22163. margin-top: 10px;
  22164. flex-wrap: wrap;
  22165. }
  22166. .upload_send {
  22167. margin: 30px auto 30px;
  22168. width: 60%;
  22169. background: #3681fc;
  22170. text-align: center;
  22171. height: 35px;
  22172. line-height: 35px;
  22173. color: #fff;
  22174. border-radius: 5px;
  22175. cursor: pointer;
  22176. }
  22177. .marginT {
  22178. margin-top: 20px;
  22179. }
  22180. .cd_content_steps {
  22181. display: flex;
  22182. width: 90%;
  22183. justify-content: space-around;
  22184. border-top: 1px solid #eeeeee;
  22185. }
  22186. .cd_steps_box {
  22187. display: flex;
  22188. justify-content: center;
  22189. align-items: center;
  22190. flex-direction: column;
  22191. cursor: pointer;
  22192. }
  22193. .first {
  22194. display: flex;
  22195. align-items: center;
  22196. margin: 15px 0 20px 0;
  22197. font-size: 20px;
  22198. }
  22199. .first > div:nth-child(2) {
  22200. font-size: 16px !important;
  22201. padding-left: 10px;
  22202. line-height: 26px;
  22203. box-sizing: border-box;
  22204. }
  22205. .blue_box_one {
  22206. text-align: center;
  22207. color: #fff;
  22208. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  22209. border-radius: 7px;
  22210. margin: 10px;
  22211. cursor: pointer;
  22212. width: 95%;
  22213. height: 45px;
  22214. display: flex;
  22215. flex-direction: row;
  22216. justify-content: flex-start;
  22217. align-items: center;
  22218. }
  22219. .blue_box_one > div:nth-child(1) {
  22220. line-height: 30px;
  22221. margin: 0 5px 0 10px;
  22222. width: 30%;
  22223. min-width: 70px;
  22224. border-radius: 4px;
  22225. }
  22226. .blue_box_one > div:nth-child(2) {
  22227. white-space: nowrap;
  22228. text-overflow: ellipsis;
  22229. overflow: hidden;
  22230. word-break: break-all;
  22231. width: 70%;
  22232. text-align: left;
  22233. margin-right: 10px;
  22234. max-width: calc(100% - 85px);
  22235. }
  22236. .blue_box_one > div:nth-child(2):hover {
  22237. overflow: hidden;
  22238. text-overflow: ellipsis;
  22239. white-space: nowrap;
  22240. cursor: pointer;
  22241. }
  22242. .upFile {
  22243. margin: 0 auto;
  22244. width: 120px;
  22245. background: #3681fc;
  22246. color: #fff;
  22247. height: 30px;
  22248. text-align: center;
  22249. line-height: 30px;
  22250. border-radius: 5px;
  22251. font-size: 14px;
  22252. cursor: pointer;
  22253. }
  22254. .courseTitle {
  22255. width: 85%;
  22256. margin: 10px auto 26px auto;
  22257. display: flex;
  22258. flex-direction: row;
  22259. align-items: center;
  22260. justify-content: space-between;
  22261. text-align: center;
  22262. }
  22263. .courseTitle .ctitle {
  22264. font-size: 20px;
  22265. font-weight: bold;
  22266. color: #0e1e33;
  22267. white-space: nowrap;
  22268. overflow: hidden;
  22269. text-overflow: ellipsis;
  22270. }
  22271. .inviteBox {
  22272. font-size: 14px;
  22273. /* margin-top: 5px; */
  22274. color: #00000099;
  22275. text-align: center;
  22276. }
  22277. .courseTitle >>> .el-tooltip {
  22278. width: 100%;
  22279. white-space: nowrap;
  22280. overflow: hidden;
  22281. text-overflow: ellipsis;
  22282. word-break: break-word;
  22283. }
  22284. .ml {
  22285. margin-left: 20px;
  22286. color: #5b7dba;
  22287. border-left: 3px solid #5b7dba;
  22288. padding-left: 5px;
  22289. font-weight: bold;
  22290. }
  22291. .return {
  22292. width: 2rem;
  22293. height: 2rem;
  22294. cursor: pointer;
  22295. }
  22296. .return > img {
  22297. width: 100%;
  22298. height: 100%;
  22299. }
  22300. .returnBtn {
  22301. width: 86px;
  22302. height: 36px;
  22303. background: #3681fc;
  22304. border-radius: 4px;
  22305. color: #fff;
  22306. text-align: center;
  22307. line-height: 36px;
  22308. margin-right: 20px;
  22309. cursor: pointer;
  22310. font-size: 14px;
  22311. font-weight: 400;
  22312. display: flex;
  22313. flex-direction: row;
  22314. flex-wrap: nowrap;
  22315. align-items: center;
  22316. justify-content: center;
  22317. }
  22318. .reBtnIcon,
  22319. .commentIcon,
  22320. .vedioIcon,
  22321. .vedioIcon1 {
  22322. /* width: 36px; */
  22323. height: 36px;
  22324. border-radius: 4px;
  22325. position: relative;
  22326. /* background: #e0eafb; */
  22327. background: #0061ff;
  22328. cursor: pointer;
  22329. margin-right: 12px;
  22330. display: flex;
  22331. align-items: center;
  22332. padding: 0 10px;
  22333. box-sizing: border-box;
  22334. font-size: 14px;
  22335. color: #fff;
  22336. }
  22337. .reBtnIcon::before,
  22338. .commentIcon::before,
  22339. .vedioIcon::before,
  22340. .vedioIcon1::before {
  22341. content: "";
  22342. display: block;
  22343. background-size: 100% 100%;
  22344. background-repeat: no-repeat;
  22345. width: 20px;
  22346. height: 20px;
  22347. margin-right: 5px;
  22348. /* position: absolute; */
  22349. /* top: 8px;
  22350. left: 8px; */
  22351. }
  22352. .vedioIcon1 {
  22353. background: #f63564;
  22354. }
  22355. .reBtnIcon::before {
  22356. background-image: url("../../assets/icon/newIcons/refresh.png");
  22357. }
  22358. .commentIcon::before {
  22359. background-image: url("../../assets/icon/newIcons/comment.png");
  22360. }
  22361. .vedioIcon::before {
  22362. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22363. }
  22364. .vedioIcon1::before {
  22365. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  22366. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22367. }
  22368. .tool {
  22369. display: flex;
  22370. flex-direction: column;
  22371. flex-wrap: nowrap;
  22372. width: 13%;
  22373. margin: 0 30px;
  22374. align-items: center;
  22375. position: relative;
  22376. padding: 10px 25px;
  22377. cursor: pointer;
  22378. }
  22379. .whiteBIcon {
  22380. width: 150px;
  22381. }
  22382. .whiteBIcon > img {
  22383. width: 100%;
  22384. height: 100%;
  22385. }
  22386. .mask {
  22387. background-color: rgba(0, 0, 0, 0);
  22388. position: fixed;
  22389. top: 0;
  22390. left: 0;
  22391. width: 100%;
  22392. height: 100%;
  22393. z-index: 20000;
  22394. display: flex;
  22395. align-items: center;
  22396. justify-content: center;
  22397. }
  22398. .progressBox {
  22399. width: 500px;
  22400. height: 180px;
  22401. background: #fff;
  22402. border-radius: 10px;
  22403. box-shadow: 0 0 6px 1px #bfbfbf;
  22404. display: flex;
  22405. align-items: center;
  22406. justify-content: center;
  22407. flex-direction: column;
  22408. position: relative;
  22409. color: #6c6c6c;
  22410. }
  22411. .progressBox >>> .el-progress-bar__outer {
  22412. background-color: #d1dfff !important;
  22413. }
  22414. .progressBox .lbox {
  22415. height: 50px;
  22416. font-size: 19px;
  22417. display: flex;
  22418. align-items: center;
  22419. color: #747474;
  22420. }
  22421. .progressBox .lbox img {
  22422. width: 40px;
  22423. margin-right: 20px;
  22424. }
  22425. .closeCss {
  22426. position: absolute;
  22427. top: 8px;
  22428. right: 8px;
  22429. cursor: pointer;
  22430. width: 20px;
  22431. height: 20px;
  22432. }
  22433. .closeCss > img {
  22434. width: 100%;
  22435. height: 100%;
  22436. }
  22437. .uploadVedio {
  22438. display: flex;
  22439. flex-direction: column;
  22440. flex-wrap: nowrap;
  22441. justify-content: center;
  22442. align-items: center;
  22443. margin: 0 15px 10px 0;
  22444. }
  22445. .uploadVedio > img {
  22446. width: 30px;
  22447. height: 30px;
  22448. }
  22449. .uploadVedio > span {
  22450. white-space: nowrap;
  22451. overflow: hidden;
  22452. text-overflow: ellipsis;
  22453. width: 75px;
  22454. margin-top: 7px;
  22455. }
  22456. .picName {
  22457. white-space: nowrap;
  22458. overflow: hidden;
  22459. text-overflow: ellipsis;
  22460. width: 75px;
  22461. margin-top: 7px;
  22462. }
  22463. .new_top {
  22464. display: flex;
  22465. background: #fff;
  22466. flex-direction: row;
  22467. justify-content: flex-start;
  22468. align-items: center;
  22469. height: 60px;
  22470. position: fixed;
  22471. top: 20px;
  22472. left: 22%;
  22473. width: 77%;
  22474. z-index: 999;
  22475. border-radius: 12px 12px 0 0;
  22476. border-bottom: 1px solid #cad1dc;
  22477. padding: 10px 0;
  22478. }
  22479. .new_topFixed {
  22480. width: 100%;
  22481. height: 40px;
  22482. position: fixed;
  22483. top: 0px;
  22484. display: block;
  22485. background: #f2f2f2;
  22486. z-index: 998;
  22487. }
  22488. .before {
  22489. position: absolute;
  22490. background: #c3dad4;
  22491. width: 6px;
  22492. height: 100%;
  22493. }
  22494. .courseIndex {
  22495. display: flex;
  22496. flex-direction: row;
  22497. align-items: center;
  22498. width: calc(100% - 745px);
  22499. }
  22500. .courseIndex > div:nth-child(1) {
  22501. margin: 0 0 0 10px;
  22502. font-size: 20px;
  22503. min-width: 100px;
  22504. font-weight: bold;
  22505. border-left: 4px solid #3363b9;
  22506. height: 32px;
  22507. text-align: center;
  22508. line-height: 35px;
  22509. }
  22510. .courseIndex > div:nth-child(2) {
  22511. font-size: 20px;
  22512. /* width: 300px; */
  22513. max-width: calc(100% - 105px);
  22514. white-space: nowrap;
  22515. overflow: hidden;
  22516. text-overflow: ellipsis;
  22517. }
  22518. .courseIndex > div:nth-child(3) {
  22519. border-bottom: 1px solid #d7d7d7;
  22520. padding-bottom: 5px;
  22521. background: #3681fc;
  22522. width: 55px;
  22523. min-width: 55px;
  22524. border-radius: 5px;
  22525. color: #fff;
  22526. text-align: center;
  22527. height: 20px;
  22528. line-height: 26px;
  22529. font-size: 14px;
  22530. margin: 0 0 0 10px;
  22531. }
  22532. .course_text {
  22533. padding: 20px 0 0 15px;
  22534. text-indent: 30px;
  22535. width: 80%;
  22536. min-height: 20px;
  22537. }
  22538. .vedioList {
  22539. background: #f2f2f2;
  22540. border: 1px solid #ececec;
  22541. /* width: 38.8%; */
  22542. /* width: 300px; */
  22543. width: 100%;
  22544. height: 445px;
  22545. border-radius: 10px;
  22546. overflow: hidden;
  22547. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22548. }
  22549. .vedioNav {
  22550. margin: 10px 0 0 15px;
  22551. border-bottom: 1px solid #d7d7d7;
  22552. padding-bottom: 5px;
  22553. background: #3681fc;
  22554. width: 55px;
  22555. min-width: 55px;
  22556. border-radius: 5px;
  22557. color: #fff;
  22558. text-align: center;
  22559. height: 20px;
  22560. line-height: 26px;
  22561. font-size: 14px;
  22562. }
  22563. .queTop {
  22564. display: flex;
  22565. padding: 20px 0 20px 30px;
  22566. width: 100%;
  22567. flex-direction: row;
  22568. justify-content: flex-start;
  22569. align-items: center;
  22570. box-sizing: border-box;
  22571. }
  22572. .queTopTitle {
  22573. display: flex;
  22574. flex-direction: row;
  22575. flex-wrap: nowrap;
  22576. align-items: center;
  22577. font-weight: bold;
  22578. font-size: 20px;
  22579. color: rgb(14, 30, 51);
  22580. }
  22581. .queTopTitle::before {
  22582. content: "";
  22583. width: 2px;
  22584. height: 22px;
  22585. background: #3681fc;
  22586. border-radius: 3px;
  22587. display: block;
  22588. margin: 2px 6px 0 0;
  22589. }
  22590. .queTopRight {
  22591. display: flex;
  22592. flex-direction: row;
  22593. flex-wrap: nowrap;
  22594. align-items: center;
  22595. }
  22596. .queTopClose {
  22597. margin-right: 20px;
  22598. cursor: pointer;
  22599. position: relative;
  22600. display: flex;
  22601. }
  22602. .closeImg,
  22603. .openImg {
  22604. width: 25px;
  22605. height: 25px;
  22606. position: absolute;
  22607. left: -20px;
  22608. top: -1px;
  22609. }
  22610. .closeImg > img,
  22611. .openImg > img {
  22612. width: 100%;
  22613. height: 100%;
  22614. }
  22615. .question {
  22616. width: 40px;
  22617. margin-right: 10px;
  22618. margin-top: 7px;
  22619. }
  22620. .queTitle {
  22621. margin-left: 5px;
  22622. font-size: 25px;
  22623. display: flex;
  22624. align-items: center;
  22625. }
  22626. .addEditor {
  22627. width: 100px;
  22628. height: 30px;
  22629. background: #42cda6;
  22630. color: #fff;
  22631. border-radius: 5px;
  22632. text-align: center;
  22633. line-height: 30px;
  22634. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22635. cursor: pointer;
  22636. }
  22637. /* .vedioName {
  22638. cursor: pointer;
  22639. margin: 0px 0px 10px 5px;
  22640. white-space: nowrap;
  22641. overflow: hidden;
  22642. text-overflow: ellipsis;
  22643. width: 100%;
  22644. } */
  22645. .vedioTime {
  22646. width: 35px;
  22647. position: absolute;
  22648. color: #fff;
  22649. bottom: 0px;
  22650. right: 0px;
  22651. text-align: center;
  22652. background: #46411f;
  22653. height: 20px;
  22654. font-size: 14px;
  22655. line-height: 20px;
  22656. }
  22657. .homework {
  22658. width: 200px;
  22659. display: flex;
  22660. flex-direction: column;
  22661. flex-wrap: nowrap;
  22662. align-items: center;
  22663. cursor: pointer;
  22664. }
  22665. .homebox {
  22666. display: flex;
  22667. flex-wrap: wrap;
  22668. flex-direction: row;
  22669. justify-content: flex-start;
  22670. align-items: center;
  22671. padding: 15px 0;
  22672. }
  22673. .isChooseActive {
  22674. color: #3681fc !important;
  22675. font-weight: bold !important;
  22676. }
  22677. .chooseWho {
  22678. display: flex;
  22679. width: 100%;
  22680. flex-direction: row;
  22681. flex-wrap: nowrap;
  22682. justify-content: flex-start;
  22683. padding-bottom: 10px;
  22684. }
  22685. .chooseWho > div {
  22686. cursor: pointer;
  22687. padding-bottom: 10px;
  22688. margin: 0 30px 0 0;
  22689. font-weight: 400;
  22690. color: #0e1e33;
  22691. }
  22692. .addPoint > div > img {
  22693. cursor: pointer;
  22694. width: 85px;
  22695. border-radius: 15px;
  22696. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22697. }
  22698. .addPoint > div {
  22699. display: flex;
  22700. flex-direction: column;
  22701. flex-wrap: nowrap;
  22702. align-items: center;
  22703. }
  22704. .isBorder > div {
  22705. margin: 0 0 10px 0;
  22706. align-items: flex-start !important;
  22707. }
  22708. .noiframeBox {
  22709. display: flex;
  22710. flex-wrap: wrap;
  22711. }
  22712. .iframeBox iframe {
  22713. width: 100%;
  22714. height: 800px;
  22715. border: none;
  22716. margin-bottom: 20px;
  22717. border: 1px solid #ccc;
  22718. }
  22719. .upload_toolBtn {
  22720. background: #3681fc;
  22721. color: #fff;
  22722. width: 110px;
  22723. text-align: center;
  22724. height: 35px;
  22725. line-height: 35px;
  22726. font-size: 14px;
  22727. border-radius: 5px;
  22728. cursor: pointer;
  22729. position: absolute;
  22730. right: 10px;
  22731. bottom: 0;
  22732. }
  22733. .binfo_input,
  22734. .pj {
  22735. font: inherit;
  22736. color: currentColor;
  22737. width: 100%;
  22738. margin: 0;
  22739. padding: 15px 14px;
  22740. display: block;
  22741. min-width: 0;
  22742. outline: none;
  22743. box-sizing: content-box;
  22744. background: none;
  22745. -webkit-tap-highlight-color: transparent;
  22746. border: 1px solid rgba(0, 0, 0, 0.23);
  22747. border-radius: 4px;
  22748. box-sizing: border-box;
  22749. resize: none;
  22750. }
  22751. .binfo_input:focus-visible {
  22752. border: 1px solid rgba(61, 103, 188);
  22753. }
  22754. .dialog_diy >>> .el-dialog__header,
  22755. .dialog_diy1 >>> .el-dialog__header {
  22756. background: #454545 !important;
  22757. padding: 15px 20px;
  22758. }
  22759. .dialog_diy >>> .el-dialog__title,
  22760. .dialog_diy1 >>> .el-dialog__title {
  22761. color: #fff;
  22762. }
  22763. .dialog_diy >>> .el-dialog__headerbtn,
  22764. .dialog_diy1 >>> .el-dialog__headerbtn {
  22765. top: 19px;
  22766. }
  22767. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22768. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22769. color: #fff;
  22770. }
  22771. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22772. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22773. color: #fff;
  22774. }
  22775. .dialog_diy1 >>> .el-dialog__body {
  22776. padding: 0;
  22777. }
  22778. .dialog_diy >>> .el-dialog__body,
  22779. .dialog_diy >>> .el-dialog__footer,
  22780. .dialog_diy1 >>> .el-dialog__footer {
  22781. background: #fafafa;
  22782. }
  22783. .a_addBox {
  22784. padding: 0 0 0 15px;
  22785. }
  22786. .a_add_box {
  22787. padding: 10px;
  22788. background: #fff;
  22789. margin-bottom: 10px;
  22790. border-radius: 5px;
  22791. box-shadow: 0 0 5px 0 #d5d5d5;
  22792. }
  22793. .a_add_head {
  22794. display: flex;
  22795. align-items: flex-start;
  22796. /* justify-content: space-between; */
  22797. flex-direction: column;
  22798. /* flex-direction: row; */
  22799. margin: 10px 0 20px 0;
  22800. font-size: 18px;
  22801. width: 100%;
  22802. }
  22803. .askIndex {
  22804. background: #3681fc;
  22805. border-radius: 50%;
  22806. color: #fff;
  22807. width: 25px;
  22808. height: 25px;
  22809. min-width: 25px;
  22810. min-height: 25px;
  22811. text-align: center;
  22812. line-height: 25px;
  22813. margin-right: 5px;
  22814. }
  22815. .a_add_head .a_add_head_input {
  22816. width: 300px;
  22817. }
  22818. .a_add_head .a_add_head_div {
  22819. display: flex;
  22820. align-items: center;
  22821. justify-content: space-between;
  22822. }
  22823. .a_add_body {
  22824. display: flex;
  22825. align-items: center;
  22826. }
  22827. .a_add_input {
  22828. display: flex;
  22829. align-items: center;
  22830. flex-wrap: wrap;
  22831. width: 100%;
  22832. }
  22833. .a_add_input >>> .el-radio-group,
  22834. .a_add_input >>> .el-checkbox-group {
  22835. width: 100%;
  22836. }
  22837. .a_add_input >>> .el-radio,
  22838. .a_add_input >>> .el-checkbox {
  22839. display: flex;
  22840. flex-direction: row;
  22841. flex-wrap: nowrap;
  22842. align-items: center;
  22843. padding: 15px 0;
  22844. }
  22845. .a_add_input >>> .el-radio:not(:last-child),
  22846. .a_add_input >>> .el-checkbox:not(:last-child) {
  22847. width: 100%;
  22848. border-bottom: 1px solid #efefef;
  22849. }
  22850. .redioStyle >>> .el-radio__label {
  22851. font-size: 18px;
  22852. }
  22853. .redioStyle >>> .el-radio__label > span,
  22854. .redioStyle >>> .el-checkbox__label > span {
  22855. word-break: break-all;
  22856. white-space: normal;
  22857. }
  22858. .redioStyle >>> .el-checkbox__label {
  22859. font-size: 18px;
  22860. }
  22861. .toolHeng2 {
  22862. width: 100%;
  22863. padding-left: 15px;
  22864. box-sizing: border-box;
  22865. }
  22866. .workNav {
  22867. font-size: 20px;
  22868. font-weight: bold;
  22869. color: #0e1e33;
  22870. display: flex;
  22871. flex-direction: row;
  22872. flex-wrap: nowrap;
  22873. align-items: center;
  22874. padding: 15px 0 15px 0;
  22875. }
  22876. .workNav::before {
  22877. content: "";
  22878. width: 2px;
  22879. height: 22px;
  22880. background: #3681fc;
  22881. border-radius: 3px;
  22882. display: block;
  22883. margin: 2px 6px 0 0;
  22884. }
  22885. .toolHeng {
  22886. display: flex;
  22887. flex-direction: row;
  22888. flex-wrap: wrap;
  22889. justify-content: flex-start;
  22890. align-items: center;
  22891. width: 100%;
  22892. }
  22893. .toolHeng > div {
  22894. padding-left: 20px;
  22895. }
  22896. .isWidth {
  22897. width: 20%;
  22898. }
  22899. .textTitle {
  22900. display: flex;
  22901. flex-direction: row;
  22902. flex-wrap: nowrap;
  22903. align-items: center;
  22904. width: 95%;
  22905. }
  22906. .textTitle >>> .el-form-item__label {
  22907. font-size: 22px;
  22908. color: #918f8f;
  22909. width: 100px;
  22910. }
  22911. .textTitle >>> .el-form-item__content {
  22912. width: calc(100% - 100px);
  22913. }
  22914. .textCss >>> .el-dialog {
  22915. width: 800px !important;
  22916. height: 400px;
  22917. background: #fafafa;
  22918. }
  22919. .textCss >>> .el-dialog__body {
  22920. margin: 55px 8% 0 8%;
  22921. padding: 0 !important;
  22922. }
  22923. .textCss >>> .el-dialog__footer {
  22924. padding-top: 38px;
  22925. }
  22926. .toolsCss >>> .el-dialog__body {
  22927. padding: 20px;
  22928. }
  22929. .lineCss >>> .el-dialog__body {
  22930. display: flex;
  22931. flex-direction: row;
  22932. align-items: center;
  22933. justify-content: center;
  22934. }
  22935. .newNav {
  22936. display: flex;
  22937. flex-direction: row;
  22938. align-items: baseline;
  22939. justify-content: flex-start;
  22940. }
  22941. .navListItem {
  22942. width: calc(100% - 20px);
  22943. height: 50px;
  22944. margin: 0px auto 10px;
  22945. display: flex;
  22946. flex-direction: row;
  22947. flex-wrap: nowrap;
  22948. align-items: center;
  22949. justify-content: space-between;
  22950. background: #f0f4fa;
  22951. border-radius: 6px 6px 6px 6px;
  22952. }
  22953. .navText {
  22954. cursor: pointer;
  22955. white-space: nowrap;
  22956. overflow: hidden;
  22957. text-overflow: ellipsis;
  22958. width: 220px;
  22959. padding: 0 10px;
  22960. font-weight: 400;
  22961. color: #0e1e33;
  22962. }
  22963. .downIcon {
  22964. width: 20px;
  22965. min-width: 20px;
  22966. height: 20px;
  22967. margin-right: 15px;
  22968. cursor: pointer;
  22969. }
  22970. .downIcon > img {
  22971. width: 100%;
  22972. height: 100%;
  22973. }
  22974. .noVedio {
  22975. display: flex;
  22976. flex-direction: row;
  22977. justify-content: center;
  22978. align-content: center;
  22979. }
  22980. .noNavText {
  22981. cursor: pointer;
  22982. margin: 0px 0px 10px 5px;
  22983. width: 112px;
  22984. }
  22985. .listNoVedio {
  22986. margin: 0 0 0 30px;
  22987. width: 97%;
  22988. }
  22989. .video-player >>> .video-js {
  22990. height: 100%;
  22991. }
  22992. .hangVedioList {
  22993. width: 90% !important;
  22994. height: 150px !important;
  22995. margin: 20px 0 0 30px;
  22996. }
  22997. .hangVedio {
  22998. width: 100%;
  22999. height: 170px !important;
  23000. align-items: flex-start !important;
  23001. }
  23002. .hangHand {
  23003. height: 150px !important;
  23004. }
  23005. .twoChild {
  23006. width: 95%;
  23007. margin: 10px;
  23008. border-radius: 5px;
  23009. background: #f2f2f2;
  23010. display: flex;
  23011. flex-direction: column;
  23012. flex-wrap: nowrap;
  23013. justify-content: flex-start;
  23014. align-items: flex-start;
  23015. transition: all 0.5s;
  23016. overflow: hidden;
  23017. height: 0;
  23018. background: #e7f3ff;
  23019. }
  23020. .twoChild > div:nth-child(1) {
  23021. margin-top: 5px;
  23022. }
  23023. .navChild {
  23024. width: 100%;
  23025. cursor: pointer;
  23026. margin-bottom: 10px;
  23027. position: relative;
  23028. }
  23029. .navChild img {
  23030. position: absolute;
  23031. right: 11px;
  23032. width: 15px;
  23033. top: 50%;
  23034. transform: translateY(-50%);
  23035. }
  23036. .navActive,
  23037. .toolActive {
  23038. height: auto !important;
  23039. overflow: auto !important;
  23040. /* padding-bottom: 16px; */
  23041. }
  23042. .toolActive {
  23043. padding: 0;
  23044. }
  23045. .navTask {
  23046. display: flex;
  23047. flex-direction: row;
  23048. flex-wrap: nowrap;
  23049. align-items: center;
  23050. align-content: flex-start;
  23051. height: 40px;
  23052. justify-content: flex-start;
  23053. padding: 0 10px;
  23054. width: 100%;
  23055. box-sizing: border-box;
  23056. }
  23057. .navTaskname {
  23058. white-space: nowrap;
  23059. text-overflow: ellipsis;
  23060. overflow: hidden;
  23061. word-break: break-all;
  23062. padding-left: 5px;
  23063. }
  23064. .openTaskActive {
  23065. /* background-color: #e0eafb !important;
  23066. color: #0061ff; */
  23067. color:#fff;
  23068. background: rgb(55, 129, 252) !important;
  23069. }
  23070. .iframeName {
  23071. margin: 5px 0;
  23072. border-left: 4px solid #41c4a4;
  23073. padding-left: 4px;
  23074. }
  23075. .toolTitle {
  23076. margin: 0px 0px 20px;
  23077. font-size: 20px;
  23078. font-weight: 500;
  23079. border-left: 4px solid #41c4a4;
  23080. padding-left: 4px;
  23081. }
  23082. .cru_selectBox {
  23083. overflow: auto;
  23084. width: 95%;
  23085. margin: 17px auto 0;
  23086. height: calc(100% - 40px - 21px - 20px - 17px);
  23087. background: #fff;
  23088. border-radius: 8px;
  23089. }
  23090. .cru_selectBox::-webkit-scrollbar,
  23091. .study_top::-webkit-scrollbar,
  23092. .textContent::-webkit-scrollbar {
  23093. /*滚动条整体样式*/
  23094. width: 6px;
  23095. /*高宽分别对应横竖滚动条的尺寸*/
  23096. height: 6px;
  23097. }
  23098. /*定义滚动条轨道 内阴影+圆角*/
  23099. .cru_selectBox::-webkit-scrollbar-track,
  23100. .study_top::-webkit-scrollbar-track,
  23101. .textContent::-webkit-scrollbar {
  23102. border-radius: 10px;
  23103. background-color: #b8bdc9;
  23104. }
  23105. /*定义滑块 内阴影+圆角*/
  23106. .cru_selectBox::-webkit-scrollbar-thumb,
  23107. .study_top::-webkit-scrollbar-thumb,
  23108. .textContent::-webkit-scrollbar-thumb {
  23109. border-radius: 10px;
  23110. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  23111. background-color: #2c5ab3;
  23112. }
  23113. .vedioBox {
  23114. border-radius: 0 0 20px 20px;
  23115. background: #fff;
  23116. overflow: auto;
  23117. }
  23118. .taskBox {
  23119. width: 98%;
  23120. background: #f0f4fa;
  23121. margin: 10px auto;
  23122. padding: 0 10px;
  23123. border-radius: 4px;
  23124. box-sizing: border-box;
  23125. }
  23126. .vedioTaskBox {
  23127. width: 100%;
  23128. display: flex;
  23129. flex-direction: row;
  23130. flex-wrap: nowrap;
  23131. align-items: flex-start;
  23132. position: relative;
  23133. }
  23134. .toolBox {
  23135. margin: 15px 0 0 25px;
  23136. display: flex;
  23137. position: relative;
  23138. padding: 18px 20px;
  23139. border-top-left-radius: 5px;
  23140. border-top-right-radius: 5px;
  23141. width: 90%;
  23142. }
  23143. .btnAll {
  23144. position: absolute;
  23145. right: 0;
  23146. display: flex;
  23147. flex-direction: row;
  23148. flex-wrap: nowrap;
  23149. align-items: center;
  23150. }
  23151. .btnLeft,
  23152. .btnRight {
  23153. display: flex;
  23154. flex-direction: row;
  23155. flex-wrap: nowrap;
  23156. align-items: center;
  23157. padding: 5px 0;
  23158. }
  23159. .btnLeft {
  23160. border-right: 1px solid #cad1dc;
  23161. }
  23162. .btnLeft > .custom-tooltip {
  23163. background: #3681fc;
  23164. color: #fff;
  23165. }
  23166. .last:hover {
  23167. background: #3383fa !important;
  23168. color: #fff;
  23169. border: 1px solid #3383fa !important;
  23170. }
  23171. .last,
  23172. .returnBtn1 {
  23173. width: 90px;
  23174. height: 36px;
  23175. background: #ffffff;
  23176. border-radius: 4px;
  23177. border: 1px solid #0061ff;
  23178. color: #0061ff;
  23179. cursor: pointer;
  23180. display: flex;
  23181. flex-direction: row;
  23182. flex-wrap: nowrap;
  23183. align-items: center;
  23184. justify-content: center;
  23185. margin-left: 12px;
  23186. }
  23187. .returnBtn1 {
  23188. background: #f0f4fa;
  23189. border-radius: 4px;
  23190. border: 1px solid #cad1dc;
  23191. margin: 0 12px;
  23192. }
  23193. .lastImg {
  23194. min-width: 15px;
  23195. width: 15px;
  23196. height: 15px;
  23197. display: flex;
  23198. }
  23199. .lastText {
  23200. padding: 0 5px 0 5px;
  23201. box-sizing: border-box;
  23202. font-size: 14px;
  23203. }
  23204. .lastImg > img {
  23205. width: 100%;
  23206. height: 100%;
  23207. }
  23208. /* .vedioTimeBox {
  23209. display: flex;
  23210. flex-direction: row;
  23211. align-items: center;
  23212. flex-wrap: nowrap;
  23213. position: relative;
  23214. } */
  23215. .navBox {
  23216. background: #fff;
  23217. height: calc(100% - 40px);
  23218. overflow-y: auto;
  23219. overflow-x: hidden;
  23220. }
  23221. .worksBox {
  23222. margin: 0 0 10px 25px;
  23223. border-bottom: 1px solid #eeeeee;
  23224. padding: 18px 20px;
  23225. border-radius: 4px;
  23226. width: 90%;
  23227. }
  23228. .worksBTitle {
  23229. font-size: 20px;
  23230. padding-bottom: 15px;
  23231. border-bottom: 1px solid #eeeeee;
  23232. display: flex;
  23233. align-items: center;
  23234. }
  23235. .greenBox {
  23236. width: 5px;
  23237. height: 30px;
  23238. background: #63b6fa;
  23239. margin-right: 5px;
  23240. }
  23241. .worksDetailBox {
  23242. display: flex;
  23243. width: 100%;
  23244. flex-direction: row;
  23245. flex-wrap: wrap;
  23246. align-items: flex-end;
  23247. justify-content: flex-start;
  23248. padding: 15px 5px;
  23249. box-sizing: border-box;
  23250. }
  23251. .works {
  23252. display: flex;
  23253. flex-direction: column;
  23254. flex-wrap: nowrap;
  23255. align-items: flex-start;
  23256. justify-content: flex-start;
  23257. align-content: center;
  23258. max-width: 240px;
  23259. width: calc(100% / 3 - 10px);
  23260. height: auto;
  23261. margin-right: 10px;
  23262. margin-bottom: 10px;
  23263. overflow: hidden;
  23264. height: 140px;
  23265. box-shadow: 0 0 6px 1px #dfdada;
  23266. border-radius: 15px;
  23267. }
  23268. .workImg {
  23269. width: 100%;
  23270. /* height: calc(100% - 40px); */
  23271. height: 105px;
  23272. position: relative;
  23273. }
  23274. .workImg > img {
  23275. width: 100%;
  23276. height: 100%;
  23277. object-fit: contain;
  23278. cursor: pointer;
  23279. }
  23280. .worksName {
  23281. height: 40px;
  23282. line-height: 40px;
  23283. display: flex;
  23284. width: 100%;
  23285. flex-direction: row;
  23286. flex-wrap: nowrap;
  23287. justify-content: space-between;
  23288. align-items: center;
  23289. margin: 0 0 0 10px;
  23290. }
  23291. .worksName > div:nth-child(1) {
  23292. width: 110px;
  23293. white-space: nowrap;
  23294. overflow: hidden;
  23295. text-overflow: ellipsis;
  23296. }
  23297. .worksName > div:nth-child(2) {
  23298. color: #b7b4b5;
  23299. }
  23300. .noWorksS {
  23301. padding: 15px 0;
  23302. display: flex;
  23303. flex-direction: row;
  23304. flex-wrap: wrap;
  23305. align-items: center;
  23306. justify-content: flex-start;
  23307. }
  23308. .noWorksName,
  23309. .isWorksName,
  23310. .isWorksName2 {
  23311. background: #ddebf8;
  23312. color: #000;
  23313. width: 90px;
  23314. height: 25px;
  23315. text-align: center;
  23316. line-height: 25px;
  23317. border-radius: 4px;
  23318. margin: 10px 15px 10px 0;
  23319. white-space: nowrap;
  23320. overflow: hidden;
  23321. padding: 5px;
  23322. text-overflow: ellipsis;
  23323. cursor: pointer;
  23324. border: 1px solid #ddebf8;
  23325. }
  23326. .noWorksName {
  23327. background: #fff;
  23328. color: #0061ff;
  23329. border: 1px solid #0061ff;
  23330. }
  23331. .noWorksName > span{
  23332. max-width: 100%;
  23333. display: block;
  23334. overflow: hidden;
  23335. text-overflow: ellipsis;
  23336. white-space: nowrap;
  23337. }
  23338. .noWorksName2 {
  23339. background: #fff;
  23340. color: #0061ff;
  23341. width: 90px;
  23342. height: 25px;
  23343. text-align: center;
  23344. line-height: 25px;
  23345. border-radius: 4px;
  23346. margin: 10px 15px 10px 0;
  23347. white-space: nowrap;
  23348. overflow: hidden;
  23349. padding: 5px;
  23350. text-overflow: ellipsis;
  23351. cursor: pointer;
  23352. border: 1px solid #0061ff;
  23353. }
  23354. .noWorksName2 > span {
  23355. max-width: 100%;
  23356. display: block;
  23357. overflow: hidden;
  23358. text-overflow: ellipsis;
  23359. white-space: nowrap;
  23360. }
  23361. .isWorksName2 {
  23362. width: 100px;
  23363. height: 40px;
  23364. line-height: 40px;
  23365. position: relative;
  23366. background: #dae6f9;
  23367. }
  23368. .isWorksName {
  23369. background: #e7ebf1 !important;
  23370. width: 100px;
  23371. height: 40px;
  23372. line-height: 40px;
  23373. position: relative;
  23374. color: #acb4bf;
  23375. border: 1px solid #cad1dc !important;
  23376. }
  23377. .isSelectName,
  23378. .noWorksName:hover {
  23379. background: #3383fa !important;
  23380. color: #fff !important;
  23381. border: 1px solid #3383fa !important;
  23382. }
  23383. .title {
  23384. background: #1e5cc9;
  23385. /* width: 98%; */
  23386. height: 45px;
  23387. color: #fff;
  23388. line-height: 45px;
  23389. padding-left: 20px;
  23390. box-sizing: border-box;
  23391. }
  23392. .textBox {
  23393. font-size: 20px;
  23394. width: 90%;
  23395. display: flex;
  23396. flex-direction: column;
  23397. align-items: center;
  23398. margin: 20px auto 0;
  23399. max-height: calc(100% - 75px);
  23400. overflow: auto;
  23401. }
  23402. .textContent {
  23403. font-size: 18px;
  23404. width: 95%;
  23405. max-width: 95%;
  23406. }
  23407. .answerBg {
  23408. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  23409. background-size: 100% 100%;
  23410. width: 100%;
  23411. height: 100%;
  23412. color: #fff;
  23413. text-align: center;
  23414. display: flex;
  23415. flex-direction: column;
  23416. flex-wrap: nowrap;
  23417. align-items: center;
  23418. position: relative;
  23419. justify-content: center;
  23420. }
  23421. /* .answerBg > div:nth-child(1) {
  23422. font-size: 22px;
  23423. padding: 25px 0 10px;
  23424. } */
  23425. .answerContent {
  23426. width: 215px;
  23427. max-height: 60px;
  23428. word-break: break-all;
  23429. text-align: center;
  23430. /* white-space: nowrap; */
  23431. overflow: hidden;
  23432. text-overflow: ellipsis;
  23433. /* padding: 23px 0 0; */
  23434. -webkit-line-clamp: 3;
  23435. -webkit-box-orient: vertical;
  23436. display: -webkit-box;
  23437. font-size: 15px;
  23438. cursor: pointer;
  23439. }
  23440. .elist_input_box {
  23441. display: flex;
  23442. align-items: flex-start;
  23443. flex-wrap: nowrap;
  23444. padding: 10px 0 15px 30px;
  23445. flex-direction: column;
  23446. }
  23447. .elist_input {
  23448. /* width: 40%; */
  23449. width: 45%;
  23450. margin: 20px;
  23451. }
  23452. .elist_input .elist_input_box input {
  23453. font: inherit;
  23454. color: currentColor;
  23455. width: 200px;
  23456. padding: 8px 14px;
  23457. display: block;
  23458. min-width: 0;
  23459. outline: none;
  23460. border: 1px solid rgba(0, 0, 0, 0.23);
  23461. border-radius: 4px;
  23462. box-sizing: border-box;
  23463. background: #fff;
  23464. margin: 0 20px 0 0;
  23465. }
  23466. .elist_input .elist_input_box span {
  23467. height: 36px;
  23468. line-height: 36px;
  23469. color: rgb(82, 82, 82);
  23470. }
  23471. .elist_input .elist_input_box .remove {
  23472. height: 20px;
  23473. width: 20px;
  23474. background-size: 100% 100%;
  23475. background-position: unset;
  23476. margin-left: 5px;
  23477. }
  23478. .elist_input_box >>> .el-rate {
  23479. display: flex;
  23480. height: 36px;
  23481. align-items: center;
  23482. }
  23483. .elist_input_box .elist_inptu_text {
  23484. min-height: 50px;
  23485. /* width: 500px;
  23486. max-height: 150px; */
  23487. width: 100%;
  23488. line-height: 50px;
  23489. color: rgb(82, 82, 82);
  23490. overflow: auto;
  23491. text-indent: 5px;
  23492. background: #f7f6f9;
  23493. border-radius: 10px;
  23494. }
  23495. .elist_input_box .elist_inptu_text input {
  23496. width: 500px;
  23497. }
  23498. .elist_input_box >>> .el-rate__icon {
  23499. font-size: 24px;
  23500. }
  23501. .isClick {
  23502. background: #4d9def;
  23503. }
  23504. .bzBox {
  23505. display: flex;
  23506. flex-direction: row;
  23507. align-items: center;
  23508. }
  23509. .bzBox .yCss {
  23510. width: 7px;
  23511. height: 7px;
  23512. background: #fff;
  23513. margin: 0 16px 0 6px;
  23514. border-radius: 50%;
  23515. border: 5px solid #3681fc;
  23516. z-index: 99;
  23517. }
  23518. .bzBox > div:nth-child(2) {
  23519. font-size: 18px;
  23520. font-weight: bold;
  23521. color: #0e1e33;
  23522. }
  23523. .navTitile {
  23524. padding: 0 0px 0 15px;
  23525. font-size: 16px;
  23526. font-weight: bold;
  23527. color: #0e1e33;
  23528. height: 40px;
  23529. line-height: 40px;
  23530. }
  23531. .isTypeOne {
  23532. width: 240px;
  23533. height: 170px;
  23534. /* border: 1px solid #f8f8f8; */
  23535. border-radius: 10px;
  23536. box-shadow: 0 0 6px 1px #dfdada;
  23537. }
  23538. .e_add_top {
  23539. display: flex;
  23540. justify-content: space-between;
  23541. padding: 10px 20px;
  23542. border-radius: 3px;
  23543. background: #fff;
  23544. }
  23545. .e_add_title2 {
  23546. display: flex;
  23547. align-items: center;
  23548. }
  23549. .e_add_title2 span {
  23550. width: 40px;
  23551. }
  23552. .e_add_title {
  23553. display: flex;
  23554. align-items: center;
  23555. color: #b8b8b8;
  23556. font-size: 18px;
  23557. position: relative;
  23558. height: 40px;
  23559. }
  23560. .e_add_title span {
  23561. margin-right: 10px;
  23562. }
  23563. .e_add_title .el_input {
  23564. width: 300px;
  23565. }
  23566. .e_add_title >>> .el-input__inner {
  23567. width: 400px;
  23568. }
  23569. /* .e_add_btn {
  23570. } */
  23571. .e_add_content {
  23572. display: flex;
  23573. width: 100%;
  23574. max-width: 650px;
  23575. height: 550px;
  23576. }
  23577. .e_add_list {
  23578. background: #fff;
  23579. height: 500px;
  23580. width: 210px;
  23581. position: relative;
  23582. margin: 15px 5px 0 0;
  23583. flex-shrink: 0;
  23584. display: flex;
  23585. flex-direction: column;
  23586. }
  23587. .e_add_list_title {
  23588. font-size: 20px;
  23589. width: 100%;
  23590. box-sizing: border-box;
  23591. padding: 15px 40px;
  23592. text-align: center;
  23593. border-bottom: 1px solid #eaeaea;
  23594. position: relative;
  23595. display: flex;
  23596. align-items: center;
  23597. justify-content: center;
  23598. height: 57px;
  23599. background: #f6f6f6;
  23600. }
  23601. .e_add_list_title span {
  23602. overflow: hidden;
  23603. white-space: nowrap;
  23604. text-overflow: ellipsis;
  23605. }
  23606. .e_add_list_title img {
  23607. position: absolute;
  23608. right: 15px;
  23609. width: 25px;
  23610. cursor: pointer;
  23611. top: 50%;
  23612. transform: translateY(-50%);
  23613. }
  23614. .e_add_list_body {
  23615. height: calc(100% - 187px);
  23616. overflow: auto;
  23617. }
  23618. .e_add_list_child {
  23619. width: 100%;
  23620. display: flex;
  23621. align-items: center;
  23622. justify-content: center;
  23623. position: relative;
  23624. box-sizing: border-box;
  23625. padding: 15px 40px;
  23626. text-align: center;
  23627. }
  23628. .e_add_list_child span {
  23629. overflow: hidden;
  23630. white-space: nowrap;
  23631. text-overflow: ellipsis;
  23632. cursor: pointer;
  23633. }
  23634. .e_add_list_child img {
  23635. position: absolute;
  23636. right: 10px;
  23637. width: 21px;
  23638. cursor: pointer;
  23639. top: 50%;
  23640. transform: translateY(-50%);
  23641. }
  23642. .e_add_list_child + .e_add_list_child {
  23643. border-top: 1px solid #eaeaea;
  23644. }
  23645. .e_add_list_child .active {
  23646. color: #409eff;
  23647. }
  23648. .e_add_list_btn {
  23649. position: absolute;
  23650. bottom: 0;
  23651. height: 50px;
  23652. background: rgb(120, 120, 254);
  23653. width: 100%;
  23654. color: #fff;
  23655. font-size: 16px;
  23656. text-align: center;
  23657. line-height: 50px;
  23658. cursor: pointer;
  23659. }
  23660. .e_add_list_detail {
  23661. position: absolute;
  23662. bottom: 0;
  23663. height: 130px;
  23664. background: rgb(120, 120, 254);
  23665. width: 100%;
  23666. color: #fff;
  23667. font-size: 16px;
  23668. display: flex;
  23669. align-items: center;
  23670. justify-content: center;
  23671. }
  23672. .e_add_list_detail textarea {
  23673. height: 90%;
  23674. width: 95%;
  23675. border: none;
  23676. resize: none;
  23677. outline: none;
  23678. padding: 5px;
  23679. box-sizing: border-box;
  23680. }
  23681. .e_add_list_pbox {
  23682. width: 100%;
  23683. max-width: 650px;
  23684. /* height: 600px; */
  23685. }
  23686. .e_add_list_pbox_title {
  23687. height: 50px;
  23688. background: #fff;
  23689. display: flex;
  23690. align-items: center;
  23691. width: 100%;
  23692. box-sizing: border-box;
  23693. padding: 0 20px;
  23694. }
  23695. .type_title {
  23696. font-size: 18px;
  23697. font-weight: 700;
  23698. }
  23699. .type_content {
  23700. font-size: 16px;
  23701. /* margin-left: 30px; */
  23702. }
  23703. .type_content span + span {
  23704. margin-left: 20px;
  23705. }
  23706. .type_content span {
  23707. cursor: pointer;
  23708. padding-bottom: 5px;
  23709. box-sizing: border-box;
  23710. }
  23711. .type_content .active {
  23712. color: #409eff;
  23713. border-bottom: 2px solid #409eff;
  23714. }
  23715. .e_add_list_pbox_content {
  23716. height: calc(100% - 50px);
  23717. display: flex;
  23718. align-items: center;
  23719. width: 100%;
  23720. background: #fff;
  23721. }
  23722. .evaCss {
  23723. display: flex;
  23724. flex-direction: row;
  23725. flex-wrap: nowrap;
  23726. align-items: flex-start;
  23727. padding: 0 0 20px;
  23728. }
  23729. .cru_line {
  23730. position: absolute;
  23731. bottom: 0px;
  23732. transition: all 0.5s;
  23733. left: 0px;
  23734. width: 125px;
  23735. margin-left: -25px;
  23736. }
  23737. .isNoMessage {
  23738. width: 20%;
  23739. margin: 25% auto 0;
  23740. }
  23741. .isNoMessage > img {
  23742. width: 100%;
  23743. height: 100%;
  23744. }
  23745. .fullStyle >>> .el-dialog__body {
  23746. height: 100% !important;
  23747. }
  23748. .fullStyle >>> .el-dialog,
  23749. .fullStyle {
  23750. width: 100% !important;
  23751. max-width: 100% !important;
  23752. height: 100% !important;
  23753. margin: 0 !important;
  23754. }
  23755. .full_diy >>> .el-dialog {
  23756. margin: 0 !important;
  23757. height: 100%;
  23758. padding: 4px;
  23759. }
  23760. .full_diy >>> .el-dialog__body {
  23761. height: calc(100% - 100px);
  23762. }
  23763. .full_diy2 >>> .el-dialog__body {
  23764. height: calc(100% - 50px);
  23765. padding: 0;
  23766. }
  23767. .switchCss {
  23768. /* width: 100%; */
  23769. display: flex;
  23770. flex-direction: row;
  23771. flex-wrap: nowrap;
  23772. align-items: center;
  23773. /* justify-content: center; */
  23774. }
  23775. .isClickNav {
  23776. /* color: #499eef; */
  23777. color: #000;
  23778. }
  23779. .commentImg {
  23780. width: 25px;
  23781. height: 25px;
  23782. cursor: pointer;
  23783. }
  23784. .commentImg > img {
  23785. width: 100%;
  23786. height: 100%;
  23787. }
  23788. .comment {
  23789. background: #f9f9f9;
  23790. border-radius: 0 0 4px 4px;
  23791. display: flex;
  23792. flex-direction: row;
  23793. flex-wrap: nowrap;
  23794. align-items: center;
  23795. justify-content: flex-end;
  23796. height: 35px;
  23797. }
  23798. .commentList {
  23799. display: flex;
  23800. flex-direction: row;
  23801. flex-wrap: nowrap;
  23802. align-items: center;
  23803. justify-content: center;
  23804. align-content: center;
  23805. /* margin-left: 15px; */
  23806. /* margin-left: 8px; */
  23807. }
  23808. .scoreImg {
  23809. width: 17px;
  23810. height: 17px;
  23811. }
  23812. .studentDetail {
  23813. display: flex;
  23814. flex-direction: row;
  23815. flex-wrap: nowrap;
  23816. /* align-items: center; */
  23817. align-items: flex-start;
  23818. }
  23819. .tx {
  23820. width: 50px;
  23821. }
  23822. .tx > img {
  23823. width: 100%;
  23824. height: 100%;
  23825. }
  23826. .nameAndTime {
  23827. display: flex;
  23828. flex-direction: column;
  23829. flex-wrap: nowrap;
  23830. align-items: flex-start;
  23831. margin-left: 10px;
  23832. }
  23833. .worksAnswer {
  23834. color: #4078dd;
  23835. margin: 10px 0;
  23836. font-size: 16px;
  23837. position: relative;
  23838. }
  23839. .worksAnswer > img {
  23840. width: 500px;
  23841. height: 300px;
  23842. object-fit: contain;
  23843. margin: 0 auto;
  23844. display: block;
  23845. }
  23846. .commentTop {
  23847. border-bottom: 1px solid #eaeaea;
  23848. padding-bottom: 10px;
  23849. }
  23850. .commentBox {
  23851. padding-top: 15px;
  23852. }
  23853. .pl {
  23854. font-size: 18px;
  23855. }
  23856. .plPerson {
  23857. width: 100%;
  23858. }
  23859. .plName {
  23860. display: flex;
  23861. flex-direction: row;
  23862. flex-wrap: nowrap;
  23863. align-items: baseline;
  23864. color: #78787a;
  23865. width: 100%;
  23866. }
  23867. .deleteComment {
  23868. cursor: pointer;
  23869. margin-left: auto;
  23870. color: #237ade;
  23871. }
  23872. .plContent {
  23873. margin-top: 5px;
  23874. }
  23875. .evalCss {
  23876. background: #fff;
  23877. font-size: 18px;
  23878. }
  23879. .nav {
  23880. color: #9d9d9d;
  23881. padding: 5px 0 15px 20px;
  23882. }
  23883. .middleBox {
  23884. padding: 5px 0 15px 20px;
  23885. }
  23886. .pfBox {
  23887. padding-bottom: 30px;
  23888. }
  23889. .nameAndrate {
  23890. display: flex;
  23891. flex-direction: row;
  23892. flex-wrap: nowrap;
  23893. align-items: center;
  23894. padding-bottom: 10px;
  23895. height: 30px;
  23896. line-height: 30px;
  23897. }
  23898. .nameAndrate > div {
  23899. margin-left: 10px;
  23900. color: #000;
  23901. height: 30px;
  23902. }
  23903. .nameAndrate >>> .el-rate__icon {
  23904. font-size: 28px !important;
  23905. }
  23906. .pfBox > div:nth-child(2) {
  23907. background: #f7f6f9;
  23908. width: 400px;
  23909. min-height: 45px;
  23910. border-radius: 10px;
  23911. font-size: 16px;
  23912. display: flex;
  23913. flex-wrap: wrap;
  23914. align-items: center;
  23915. padding: 10px 20px;
  23916. box-sizing: border-box;
  23917. color: #000;
  23918. }
  23919. .bz {
  23920. display: flex;
  23921. flex-direction: row;
  23922. flex-wrap: nowrap;
  23923. align-items: flex-start;
  23924. }
  23925. .bz > div {
  23926. padding: 0 10px;
  23927. }
  23928. .select_box2_title {
  23929. background: #fff;
  23930. border-radius: 5px;
  23931. padding: 15px 10px;
  23932. box-sizing: border-box;
  23933. margin-bottom: 10px;
  23934. display: flex;
  23935. flex-direction: row;
  23936. flex-wrap: nowrap;
  23937. align-items: center;
  23938. }
  23939. .select_box2_title > div:nth-child(2) {
  23940. margin-left: 10px;
  23941. color: #c4c4c4;
  23942. }
  23943. .select_box2_box {
  23944. display: flex;
  23945. height: 500px;
  23946. }
  23947. .select_box2_img {
  23948. width: calc(100% - 310px);
  23949. height: 100%;
  23950. overflow: auto;
  23951. background: #fff;
  23952. border-radius: 5px;
  23953. }
  23954. .select_box2_img img {
  23955. width: 100%;
  23956. }
  23957. .select_box2_answer {
  23958. background: #fff;
  23959. margin-left: 10px;
  23960. border-radius: 5px;
  23961. width: 300px;
  23962. overflow: auto;
  23963. height: 90%;
  23964. display: flex;
  23965. flex-direction: column;
  23966. align-items: flex-start;
  23967. padding-top: 10px;
  23968. box-sizing: border-box;
  23969. position: relative;
  23970. }
  23971. .select_answer_title {
  23972. padding: 0 0 15px 20px;
  23973. color: #c4c4c4;
  23974. }
  23975. .select_box2_answer_box {
  23976. margin: 0 0 10px 20px;
  23977. width: 85%;
  23978. display: flex;
  23979. flex-direction: row;
  23980. flex-wrap: nowrap;
  23981. align-items: center;
  23982. }
  23983. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23984. color: #000;
  23985. }
  23986. .upAnswerCss {
  23987. position: absolute;
  23988. bottom: 15px;
  23989. right: 15px;
  23990. }
  23991. .upAnswerCss >>> .el-button {
  23992. width: 95px;
  23993. height: 35px;
  23994. line-height: 35px;
  23995. padding: 0;
  23996. }
  23997. .rightWidthCss {
  23998. width: 60%;
  23999. display: flex;
  24000. flex-direction: row;
  24001. align-items: flex-start;
  24002. }
  24003. .rightAnswer {
  24004. display: flex;
  24005. flex-direction: row;
  24006. flex-wrap: nowrap;
  24007. align-items: center;
  24008. color: red;
  24009. margin-bottom: 31px;
  24010. }
  24011. .rightAnswerCss {
  24012. display: flex;
  24013. flex-direction: column;
  24014. flex-wrap: nowrap;
  24015. padding-top: 60px;
  24016. }
  24017. .blueCss {
  24018. color: #767de1;
  24019. margin-left: 10px;
  24020. }
  24021. .redCss {
  24022. color: red;
  24023. }
  24024. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  24025. color: rgb(0 123 255) !important;
  24026. }
  24027. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  24028. color: rgb(0 123 255) !important;
  24029. }
  24030. .zuoyeYulan {
  24031. padding-top: 0;
  24032. font-size: 18px;
  24033. display: flex;
  24034. align-items: flex-end;
  24035. }
  24036. .buttonA {
  24037. margin-left: 10px;
  24038. padding: 0;
  24039. }
  24040. .displayBox {
  24041. margin-bottom: 10px;
  24042. display: block;
  24043. border-bottom: 3px solid #eee;
  24044. display: flex;
  24045. align-items: center;
  24046. }
  24047. .easy_comment {
  24048. width: calc(100% - 90px);
  24049. margin-left: 10px;
  24050. display: flex;
  24051. flex-wrap: wrap;
  24052. }
  24053. .easy_comment > div {
  24054. border: 1px solid #4a4a4a;
  24055. color: #666;
  24056. border-radius: 15px;
  24057. padding: 5px 10px;
  24058. font-size: 16px;
  24059. margin-bottom: 10px;
  24060. margin-right: 5px;
  24061. cursor: pointer;
  24062. }
  24063. .easy_comment div:hover {
  24064. border: 1px solid #f7ba2a;
  24065. color: #c69217;
  24066. }
  24067. .xuan_right_box {
  24068. padding: 10px 0;
  24069. background: #f0f4fa;
  24070. margin: 0 15px 0 25px;
  24071. border-bottom-left-radius: 5px;
  24072. border-bottom-right-radius: 5px;
  24073. width: 91.5%;
  24074. }
  24075. .tool_right_box {
  24076. display: flex;
  24077. align-items: center;
  24078. }
  24079. .tool_right_box + .tool_right_box {
  24080. margin-top: 10px;
  24081. }
  24082. .right_box_xuan {
  24083. border-radius: 5px;
  24084. padding: 5px;
  24085. margin-left: 10px;
  24086. min-width: 85px;
  24087. background: #fff;
  24088. color: #0061ff;
  24089. border: 1px solid #0061ff;
  24090. font-size: 14px;
  24091. }
  24092. .pButton:hover {
  24093. opacity: 1 !important;
  24094. }
  24095. .pButton {
  24096. position: fixed;
  24097. text-align: center;
  24098. cursor: pointer;
  24099. z-index: 999;
  24100. right: 20px;
  24101. top: 110px;
  24102. width: 50px;
  24103. height: 50px;
  24104. display: flex;
  24105. align-items: center;
  24106. justify-content: center;
  24107. border-radius: 5px;
  24108. }
  24109. .pzClass {
  24110. width: calc(100% - 340px);
  24111. }
  24112. .newDialogCss {
  24113. /* position: fixed;
  24114. right: 5%;
  24115. top: 50%;
  24116. width: 340px;
  24117. transform: translateY(-50%);
  24118. height: 60%;
  24119. box-shadow: 0px 0 8px 0px #555555;
  24120. border-radius: 15px;
  24121. z-index: 999; */
  24122. position: fixed;
  24123. right: 20px;
  24124. top: 101px;
  24125. width: 330px;
  24126. height: calc(100% - 80px);
  24127. z-index: 999;
  24128. background: #fff;
  24129. border-top-right-radius: 0px;
  24130. border-bottom-right-radius: 0px;
  24131. overflow: hidden;
  24132. }
  24133. .newDialogCss>.scoreList{
  24134. width:100%;
  24135. height:100%;
  24136. box-sizing:border-box;
  24137. padding:10px 15px;
  24138. overflow:auto;
  24139. padding-bottom:80px;
  24140. }
  24141. .pzTop {
  24142. color: #fff;
  24143. background: #000;
  24144. display: flex;
  24145. flex-direction: row;
  24146. flex-wrap: nowrap;
  24147. align-items: center;
  24148. justify-content: space-between;
  24149. height: 40px;
  24150. border-radius: 15px 15px 0 0;
  24151. user-select: none;
  24152. }
  24153. .pzTop2 .checkbox {
  24154. display: flex;
  24155. align-items: center;
  24156. padding: 5px 10px;
  24157. flex: 0 0 auto;
  24158. font-weight: bold;
  24159. border-bottom: 1px solid #eee;
  24160. justify-content: space-between;
  24161. }
  24162. .checkbox>.cb-tabList{
  24163. display:flex;
  24164. align-items:center;
  24165. }
  24166. .cb-tabList>div{
  24167. margin-right:20px;
  24168. font-weight:400;
  24169. cursor:pointer;
  24170. }
  24171. .cb-tabList>.cb-tabItem{
  24172. color:#1684FC;
  24173. position:relative;
  24174. }
  24175. .cb-tabItem::after{
  24176. content:"";
  24177. width:100%;
  24178. height:2px;
  24179. background:#1684FC;
  24180. position:absolute;
  24181. bottom:-5px;
  24182. left:0
  24183. }
  24184. .pzTop2 .check {
  24185. text-align: center;
  24186. cursor: pointer;
  24187. box-sizing: border-box;
  24188. display: flex;
  24189. }
  24190. .pzTop2 img {
  24191. width: 25px;
  24192. cursor: pointer;
  24193. }
  24194. .pzTop > div:nth-child(1) {
  24195. padding-left: 10px;
  24196. }
  24197. .pzTop > div:nth-child(2) {
  24198. width: 15px;
  24199. height: 15px;
  24200. padding-right: 10px;
  24201. cursor: pointer;
  24202. }
  24203. .pzTop > div:nth-child(2) > img {
  24204. width: 100%;
  24205. height: 100%;
  24206. }
  24207. .pzBox,
  24208. .noPzBox {
  24209. height: calc(100% - 60px);
  24210. /* background: #ededed; */
  24211. background: #fff;
  24212. /* border-radius: 0 0 15px 15px; */
  24213. }
  24214. .noPzBox {
  24215. display: flex;
  24216. flex-direction: column;
  24217. flex-wrap: nowrap;
  24218. justify-content: center;
  24219. align-items: center;
  24220. }
  24221. .pzList {
  24222. background: #f7f7f7;
  24223. width: 90%;
  24224. margin: 0 auto 15px;
  24225. border-radius: 5px;
  24226. }
  24227. .pzNavTop {
  24228. display: flex;
  24229. flex-direction: row;
  24230. flex-wrap: nowrap;
  24231. padding: 10px 10px 0 10px;
  24232. align-items: center;
  24233. }
  24234. .pzDelete {
  24235. cursor: pointer;
  24236. margin-left: auto;
  24237. font-size: 14px;
  24238. color: #afafaf;
  24239. }
  24240. .pzNavTop > div:nth-child(1) {
  24241. background: #3760af;
  24242. width: 35px;
  24243. height: 35px;
  24244. color: #fff;
  24245. text-align: center;
  24246. line-height: 35px;
  24247. border-radius: 50%;
  24248. font-size: 14px;
  24249. }
  24250. .pzNavTop > div:nth-child(2) {
  24251. font-size: 18px;
  24252. color: #959595;
  24253. margin-left: 5px;
  24254. }
  24255. .pzContent {
  24256. padding: 10px;
  24257. word-break: break-word;
  24258. }
  24259. .pzContent audio {
  24260. width: 100%;
  24261. }
  24262. .pzContent audio::-webkit-media-controls-panel {
  24263. background: #fff;
  24264. }
  24265. .pzContent >>> img {
  24266. max-width: 100%;
  24267. }
  24268. .pzListBox {
  24269. padding-top: 15px;
  24270. height: calc(100% - 110px);
  24271. overflow: auto;
  24272. }
  24273. .addPzButton {
  24274. position: relative;
  24275. margin-top: 3px;
  24276. width: 100%;
  24277. }
  24278. .addPzButton .img1 {
  24279. position: absolute;
  24280. top: 50%;
  24281. right: 25px;
  24282. transform: translateY(-50%);
  24283. height: 100%;
  24284. display: flex;
  24285. align-items: center;
  24286. }
  24287. .addPzButton .img1 div {
  24288. display: flex;
  24289. }
  24290. .addPzButton .img1 div img {
  24291. width: 28px;
  24292. margin-left: 10px;
  24293. cursor: pointer;
  24294. }
  24295. .addPzButton .img1 div span {
  24296. font-size: 14px;
  24297. margin: 4px 0 0 3px;
  24298. color: #afafaf;
  24299. }
  24300. .addPz {
  24301. background: #4b79ce;
  24302. width: 100px;
  24303. color: #fff;
  24304. font-size: 12px;
  24305. height: 30px;
  24306. margin: 0 auto;
  24307. text-align: center;
  24308. line-height: 30px;
  24309. border-radius: 10px;
  24310. cursor: pointer;
  24311. }
  24312. .addDialogCss {
  24313. position: fixed;
  24314. width: 600px;
  24315. height: 70%;
  24316. min-height: 450px;
  24317. box-shadow: 0px 0 8px 0px #555555;
  24318. border-radius: 15px;
  24319. z-index: 999;
  24320. left: 50%;
  24321. top: 50%;
  24322. margin: -18% 0 0 -300px;
  24323. }
  24324. .teacherPz {
  24325. display: flex;
  24326. flex-direction: row;
  24327. align-items: center;
  24328. flex-wrap: nowrap;
  24329. }
  24330. .teacherPzImg {
  24331. width: 30px;
  24332. height: 30px;
  24333. }
  24334. .teacherPzImg > img {
  24335. width: 100%;
  24336. height: 100%;
  24337. }
  24338. .addPzBox {
  24339. height: calc(100% - 40px);
  24340. background: #ededed;
  24341. border-bottom-left-radius: 15px;
  24342. border-bottom-right-radius: 15px;
  24343. }
  24344. .pzAudioClass {
  24345. margin: 15px 14px;
  24346. background: #fff;
  24347. height: 100%;
  24348. display: flex;
  24349. justify-content: center;
  24350. align-items: center;
  24351. }
  24352. .pzConText {
  24353. width: 95%;
  24354. height: 100%;
  24355. margin: 10px auto 0;
  24356. border: none;
  24357. background: #fff;
  24358. border-radius: 0px;
  24359. }
  24360. .pzConText >>> .text {
  24361. height: calc(100% - 82px);
  24362. }
  24363. .addTextCss {
  24364. background: #4b79ce;
  24365. width: 80px;
  24366. height: 30px;
  24367. text-align: center;
  24368. color: #fff;
  24369. line-height: 30px;
  24370. border-radius: 10px;
  24371. margin: 10px auto 0;
  24372. cursor: pointer;
  24373. }
  24374. .pzConText:focus-visible {
  24375. border: none !important;
  24376. }
  24377. .maxWidth {
  24378. width: 1000px;
  24379. }
  24380. .noPz {
  24381. width: 150px;
  24382. margin: 0 auto 20%;
  24383. }
  24384. .noPz > img {
  24385. width: 100%;
  24386. height: 100%;
  24387. }
  24388. .timeAndReply {
  24389. display: flex;
  24390. flex-direction: row;
  24391. flex-wrap: nowrap;
  24392. justify-content: space-between;
  24393. align-items: center;
  24394. font-size: 14px;
  24395. box-sizing: border-box;
  24396. padding: 0 10px 10px 0px;
  24397. }
  24398. .timeAndReply .time {
  24399. color: #bfbfbf;
  24400. padding: 0 0 0 10px;
  24401. box-sizing: border-box;
  24402. }
  24403. .timeAndReply > div:last-child {
  24404. cursor: pointer;
  24405. color: #777;
  24406. }
  24407. /* table 样式 */
  24408. .cont >>> table {
  24409. border-top: 1px solid #ccc;
  24410. border-left: 1px solid #ccc;
  24411. }
  24412. .cont >>> table td,
  24413. .cont >>> table th {
  24414. border-bottom: 1px solid #ccc;
  24415. border-right: 1px solid #ccc;
  24416. /* padding: 20px 5px; */
  24417. padding: 5px 10px;
  24418. max-width: 0px;
  24419. height: 30px;
  24420. vertical-align: baseline;
  24421. box-sizing: border-box;
  24422. }
  24423. .cont >>> table th {
  24424. border-bottom: 2px solid #ccc;
  24425. text-align: center;
  24426. }
  24427. /* blockquote 样式 */
  24428. .cont >>> blockquote {
  24429. display: block;
  24430. border-left: 8px solid #d0e5f2;
  24431. padding: 5px 10px;
  24432. margin: 10px 0;
  24433. line-height: 1.4;
  24434. font-size: 100%;
  24435. background-color: #f1f1f1;
  24436. }
  24437. /* code 样式 */
  24438. .cont >>> code {
  24439. display: inline-block;
  24440. /* *display: inline; */
  24441. zoom: 1;
  24442. background-color: #f1f1f1;
  24443. border-radius: 3px;
  24444. padding: 3px 5px;
  24445. margin: 0 3px;
  24446. }
  24447. .cont >>> pre code {
  24448. display: block;
  24449. }
  24450. /* ul ol 样式 */
  24451. .cont >>> ul,
  24452. ol {
  24453. margin: 10px 0 10px 20px;
  24454. }
  24455. .addPzCheck {
  24456. display: flex;
  24457. flex-direction: row;
  24458. flex-wrap: nowrap;
  24459. padding: 10px 15px 0;
  24460. }
  24461. .addPzCheck span {
  24462. cursor: pointer;
  24463. padding-bottom: 5px;
  24464. font-weight: bold;
  24465. }
  24466. .addPzCheck span + span {
  24467. margin-left: 10px;
  24468. }
  24469. .addPzCheck .isChooseActive {
  24470. color: #3e88f4;
  24471. border-bottom: 2px solid #2f80f3;
  24472. }
  24473. /* code 样式 */
  24474. .cont {
  24475. /* -webkit-user-modify: read-write; */
  24476. overflow-wrap: break-word;
  24477. -webkit-line-break: after-white-space;
  24478. word-break: break-word;
  24479. white-space: pre-line;
  24480. }
  24481. .scoreBox,
  24482. .scoreDetailBox {
  24483. display: flex;
  24484. align-items: center;
  24485. justify-content: flex-start;
  24486. margin-top: 20px;
  24487. font-size: 18px;
  24488. width: 100%;
  24489. }
  24490. .scoreBox .t,
  24491. .scoreDetailBox .t {
  24492. margin-right: 10px;
  24493. width: 100px;
  24494. text-align: right;
  24495. }
  24496. .scoreDetailBox {
  24497. align-items: flex-start;
  24498. }
  24499. .scoreDetailBox >>> .el-textarea {
  24500. width: calc(100% - 200px);
  24501. }
  24502. .scoreBox >>> .el-input {
  24503. width: 130px;
  24504. font-size: 38px;
  24505. }
  24506. .scoreBox >>> .el-input__inner {
  24507. height: 60px;
  24508. }
  24509. .answerScore {
  24510. position: absolute;
  24511. top: 10px;
  24512. right: 10px;
  24513. background: #0000008f;
  24514. border-radius: 5px;
  24515. padding: 3px 5px;
  24516. font-size: 14px;
  24517. color: #fff;
  24518. cursor: pointer;
  24519. }
  24520. .open_box .switch_box {
  24521. width: 100%;
  24522. margin: 0 auto;
  24523. display: flex;
  24524. justify-content: space-between;
  24525. }
  24526. .open_box .switch_box + .switch_box {
  24527. margin-top: 10px;
  24528. }
  24529. .deleteImg,.deleteImg1 {
  24530. width: 25px !important;
  24531. height: 25px !important;
  24532. cursor: pointer;
  24533. position: absolute;
  24534. top: 10px;
  24535. right: 10px;
  24536. }
  24537. .deleteImg2 {
  24538. width: 23px !important;
  24539. height: 23px !important;
  24540. top: 5px;
  24541. right: 5px;
  24542. }
  24543. .deleteImg1{
  24544. width: 23px !important;
  24545. height: 23px !important;
  24546. top: 5px !important;
  24547. right: 30px !important;
  24548. }
  24549. .rightW {
  24550. right: 40px;
  24551. }
  24552. .drawPBox {
  24553. display: flex;
  24554. flex-direction: column;
  24555. position: relative;
  24556. }
  24557. .drawPBox span {
  24558. font-size: 18px;
  24559. color: #606266;
  24560. padding-bottom: 10px;
  24561. margin: 10px 0;
  24562. border-bottom: 1px solid #eaeaea;
  24563. }
  24564. .drawPBox img {
  24565. width: 500px;
  24566. height: 300px;
  24567. object-fit: contain;
  24568. cursor: pointer;
  24569. margin: 0 auto;
  24570. }
  24571. .sentenBox {
  24572. background: #fff;
  24573. height: 450px;
  24574. overflow: auto;
  24575. background-image: url("../../assets/icon/conSentences/stuBg.png");
  24576. background-position: 102%;
  24577. background-repeat: no-repeat;
  24578. background-size: 60%;
  24579. }
  24580. .addSen {
  24581. background: #409efe;
  24582. width: 90px;
  24583. color: #fff;
  24584. height: 35px;
  24585. text-align: center;
  24586. line-height: 35px;
  24587. border-radius: 5px;
  24588. float: right;
  24589. margin: 10px 20px 0 0;
  24590. cursor: pointer;
  24591. }
  24592. .sentenTop {
  24593. display: flex;
  24594. flex-direction: row;
  24595. flex-wrap: nowrap;
  24596. align-items: center;
  24597. padding: 55px 0 0 20px;
  24598. box-sizing: border-box;
  24599. }
  24600. .sentenTop > div:nth-child(2) {
  24601. width: 300px;
  24602. margin: 0 15px;
  24603. }
  24604. .sentenTop > div:nth-child(3) {
  24605. background: #409efe;
  24606. color: #fff;
  24607. width: 65px;
  24608. height: 35px;
  24609. text-align: center;
  24610. line-height: 35px;
  24611. border-radius: 5px;
  24612. cursor: pointer;
  24613. }
  24614. .cardList,
  24615. .cardList1 {
  24616. padding: 10px 0 10px 0;
  24617. display: flex;
  24618. flex-direction: row;
  24619. flex-wrap: wrap;
  24620. align-items: center;
  24621. box-sizing: border-box;
  24622. border-bottom: 1px solid #f4f4f4;
  24623. width: 98%;
  24624. margin: 0 auto;
  24625. min-width: 60%;
  24626. max-width: 85%;
  24627. }
  24628. .cardList1 {
  24629. padding: 10px 0 10px 10px !important;
  24630. margin: 0 !important;
  24631. }
  24632. .cardBox {
  24633. display: flex;
  24634. flex-direction: row;
  24635. flex-wrap: wrap;
  24636. align-items: center;
  24637. align-content: center;
  24638. }
  24639. .cardBox > div {
  24640. margin-bottom: 10px;
  24641. }
  24642. .isCard,
  24643. .isChooseCard,
  24644. .noCard,
  24645. .isCard1 {
  24646. min-width: 130px;
  24647. width: auto;
  24648. height: 60px;
  24649. text-align: center;
  24650. line-height: 60px;
  24651. font-size: 20px;
  24652. cursor: pointer;
  24653. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  24654. background-size: cover;
  24655. transition: all 2s;
  24656. margin-right: 20px;
  24657. background-size: 100% 100%;
  24658. padding: 0 20px;
  24659. box-sizing: border-box;
  24660. }
  24661. .isCard > div,
  24662. .noCard > div,
  24663. .isCard1 > div {
  24664. white-space: nowrap;
  24665. overflow: hidden;
  24666. text-overflow: ellipsis;
  24667. width: 100%;
  24668. margin: 0 auto;
  24669. }
  24670. .noCard {
  24671. background-image: none;
  24672. }
  24673. .isCard1 {
  24674. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  24675. }
  24676. .isChooseCard {
  24677. background-image: none;
  24678. border: 1px dashed #b9b9b9;
  24679. border-radius: 10px;
  24680. }
  24681. .card {
  24682. width: 130px;
  24683. height: 60px;
  24684. }
  24685. .card > img {
  24686. width: 100%;
  24687. height: 100%;
  24688. }
  24689. .rightCardBox {
  24690. margin: 10px 0 0 10px;
  24691. }
  24692. .rightCardBox > div:nth-child(1) {
  24693. margin-bottom: 10px;
  24694. }
  24695. .cardCss {
  24696. display: flex;
  24697. flex-direction: column;
  24698. flex-wrap: nowrap;
  24699. align-items: center;
  24700. border-bottom: 3px solid #b4c3d3;
  24701. padding: 0 0 5px 0;
  24702. margin-right: 10px;
  24703. }
  24704. .cardCss > div:nth-child(2) {
  24705. background: #5b7b9d;
  24706. color: #fff;
  24707. width: 20px;
  24708. height: 20px;
  24709. border-radius: 50%;
  24710. text-align: center;
  24711. line-height: 20px;
  24712. }
  24713. .isWrong {
  24714. display: flex;
  24715. flex-direction: row;
  24716. flex-wrap: nowrap;
  24717. align-content: center;
  24718. align-items: center;
  24719. }
  24720. .answerRight {
  24721. width: 25%;
  24722. }
  24723. .isTj {
  24724. display: flex;
  24725. flex-direction: row;
  24726. flex-wrap: nowrap;
  24727. align-items: center;
  24728. }
  24729. .isTj > div:nth-child(2) {
  24730. color: #727070;
  24731. margin-left: 10px;
  24732. }
  24733. .isTjImg {
  24734. width: 30px;
  24735. height: 30px;
  24736. }
  24737. .isTjImg > img {
  24738. width: 100%;
  24739. height: 100%;
  24740. }
  24741. .cardAnswerBox {
  24742. font-size: 18px;
  24743. width: 97%;
  24744. border: 5px;
  24745. padding: 0;
  24746. border-radius: 5px;
  24747. margin: 10px auto;
  24748. word-break: break-word;
  24749. }
  24750. .w_name {
  24751. margin-bottom: 10px;
  24752. }
  24753. .w_name span {
  24754. font-size: 16px;
  24755. }
  24756. .w_teachert {
  24757. width: 50px !important;
  24758. position: absolute;
  24759. height: auto !important;
  24760. z-index: 10;
  24761. right: 25px;
  24762. top: -25px;
  24763. }
  24764. /* .group_workBox {
  24765. } */
  24766. .group_workBox + .group_workBox {
  24767. margin-top: 20px;
  24768. }
  24769. .group_box {
  24770. padding-bottom: 20px;
  24771. border-bottom: 2px solid #f0f0f0;
  24772. margin-top: 10px;
  24773. }
  24774. .group_title {
  24775. display: flex;
  24776. align-items: center;
  24777. justify-content: space-between;
  24778. width: 95%;
  24779. }
  24780. .group_name {
  24781. background-image: url(../../assets/icon/groupN.png);
  24782. width: 220px;
  24783. background-size: 100% 100%;
  24784. height: 67px;
  24785. padding: 0 20px 0 43px;
  24786. box-sizing: border-box;
  24787. line-height: 63px;
  24788. color: #fff;
  24789. overflow: hidden;
  24790. white-space: nowrap;
  24791. text-overflow: ellipsis;
  24792. }
  24793. .group_work {
  24794. width: 100%;
  24795. padding: 0 10px;
  24796. box-sizing: border-box;
  24797. display: flex;
  24798. flex-wrap: wrap;
  24799. }
  24800. .g_d_box {
  24801. display: flex;
  24802. flex-flow: wrap;
  24803. justify-content: space-around;
  24804. }
  24805. .g_d_box .isChair {
  24806. background-image: url(../../assets/avatar.png) !important;
  24807. }
  24808. .g_d_group {
  24809. width: 500px;
  24810. margin-bottom: 80px;
  24811. }
  24812. .g_d_group_chair {
  24813. display: flex;
  24814. align-items: center;
  24815. justify-content: center;
  24816. }
  24817. .g_d_group_chair > div + div {
  24818. margin-left: 30px;
  24819. }
  24820. .g_d_group_chair > div,
  24821. .g_d_group_chair2 > div {
  24822. display: flex;
  24823. flex-direction: column;
  24824. align-items: center;
  24825. }
  24826. .g_d_group_chair > div > span:nth-child(1),
  24827. .g_d_group_chair2 > div > span:nth-child(1) {
  24828. background-image: url(../../assets/icon/chair.png);
  24829. width: 50px;
  24830. height: 50px;
  24831. display: block;
  24832. background-size: 100% 100%;
  24833. }
  24834. .g_d_group_tableBox {
  24835. display: flex;
  24836. align-items: center;
  24837. justify-content: center;
  24838. }
  24839. .g_d_group_chair2 {
  24840. display: flex;
  24841. flex-direction: column;
  24842. align-items: center;
  24843. justify-content: center;
  24844. }
  24845. .g_d_group_chair2 > div + div {
  24846. margin-top: 10px;
  24847. }
  24848. .g_d_group_table {
  24849. background-image: url(../../assets/icon/groupBg.png);
  24850. width: 354px;
  24851. height: 196px;
  24852. background-size: 100% 100%;
  24853. display: flex;
  24854. align-items: center;
  24855. justify-content: center;
  24856. flex-direction: column;
  24857. color: #fff;
  24858. }
  24859. .g_d_group_table > div:nth-child(1) {
  24860. font-size: 24px;
  24861. margin-bottom: 5px;
  24862. }
  24863. .g_d_group_table > div:nth-child(2) div {
  24864. cursor: pointer;
  24865. background: #2e77bf;
  24866. padding: 4px 10px;
  24867. border-radius: 5px;
  24868. }
  24869. /* .groupBox {
  24870. } */
  24871. .groupContent + .groupContent {
  24872. margin-top: 30px;
  24873. }
  24874. .groupTitle {
  24875. font-size: 24px;
  24876. color: rgb(80, 80, 80);
  24877. margin-bottom: 20px;
  24878. }
  24879. .groupName {
  24880. display: flex;
  24881. align-items: center;
  24882. }
  24883. .groupn {
  24884. font-size: 15px;
  24885. margin-right: 10px;
  24886. }
  24887. .groupName + .groupName {
  24888. margin-top: 15px;
  24889. }
  24890. .groupBtn {
  24891. margin-left: 10px;
  24892. }
  24893. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24894. text-align: left;
  24895. }
  24896. .g_d_btnBox {
  24897. display: flex;
  24898. justify-content: flex-end;
  24899. align-items: center;
  24900. margin-bottom: 20px;
  24901. }
  24902. .updateChair {
  24903. position: relative;
  24904. }
  24905. .updateChairBtn {
  24906. position: absolute;
  24907. width: 50px;
  24908. height: 50px;
  24909. overflow: hidden;
  24910. /* display: flex; */
  24911. align-items: center;
  24912. justify-content: center;
  24913. background: #00000087;
  24914. color: #fff;
  24915. border-radius: 50px;
  24916. display: none;
  24917. cursor: pointer;
  24918. }
  24919. .updateChair:hover .updateChairBtn {
  24920. display: flex;
  24921. }
  24922. .group_staic_box {
  24923. display: flex;
  24924. padding: 30px 40px 10px;
  24925. flex-wrap: wrap;
  24926. }
  24927. .group_staic {
  24928. /* width: 50%; */
  24929. margin-bottom: 20px;
  24930. display: flex;
  24931. align-items: center;
  24932. }
  24933. .group_staic span:nth-child(1) {
  24934. width: 150px;
  24935. text-align: right;
  24936. margin-right: 15px;
  24937. }
  24938. .group_staic span:nth-child(2) {
  24939. background: rgb(0 123 255);
  24940. color: #fff;
  24941. border-radius: 5px;
  24942. padding: 5px;
  24943. }
  24944. .codeFileBox {
  24945. height: 300px;
  24946. background: #fff;
  24947. display: flex;
  24948. align-items: center;
  24949. justify-content: center;
  24950. }
  24951. .codeFileBox img {
  24952. width: 200px;
  24953. margin: 0;
  24954. height: auto;
  24955. }
  24956. .codeFileBox div {
  24957. background: rgb(80, 142, 226);
  24958. color: #fff;
  24959. padding: 10px 20px;
  24960. border-radius: 25px;
  24961. cursor: pointer;
  24962. margin-left: 15px;
  24963. }
  24964. .radioBox {
  24965. display: flex;
  24966. flex-direction: column;
  24967. flex-wrap: nowrap;
  24968. align-items: flex-start;
  24969. }
  24970. .radioBox > div {
  24971. margin: 10px 0 0 10px;
  24972. }
  24973. /* .radioBox >>> .el-radio__input,
  24974. .radioBox >>> .el-checkbox__inner {
  24975. margin-left: 10px;
  24976. } */
  24977. .radioBox >>> .el-radio__label,
  24978. .radioBox >>> .el-checkbox__label {
  24979. display: flex;
  24980. align-items: center;
  24981. width: 100%;
  24982. }
  24983. .radioBox >>> .el-radio__label > span {
  24984. width: 100%;
  24985. display: -webkit-box;
  24986. overflow: hidden;
  24987. white-space: normal !important;
  24988. text-overflow: ellipsis;
  24989. word-wrap: break-word;
  24990. }
  24991. .inImg {
  24992. width: 100px;
  24993. cursor: pointer;
  24994. }
  24995. .inImg > img {
  24996. width: 100%;
  24997. height: 100%;
  24998. object-fit: cover;
  24999. }
  25000. .timuImgBox {
  25001. margin: 10px 0;
  25002. display: flex;
  25003. flex-direction: column;
  25004. flex-wrap: wrap;
  25005. align-items: flex-start;
  25006. }
  25007. .timuImg {
  25008. width: 150px;
  25009. margin: 5px 0;
  25010. cursor: pointer;
  25011. }
  25012. .timuImg > img {
  25013. width: 100%;
  25014. height: 100%;
  25015. object-fit: cover;
  25016. }
  25017. .worksTop {
  25018. display: flex;
  25019. flex-direction: row;
  25020. align-items: flex-end;
  25021. }
  25022. .worksTitle {
  25023. display: flex;
  25024. flex-direction: row;
  25025. flex-wrap: nowrap;
  25026. align-items: center;
  25027. }
  25028. .worksTitle::before,
  25029. .worksTop::before {
  25030. content: "";
  25031. display: block;
  25032. width: 3px;
  25033. height: 20px;
  25034. background: #0061ff;
  25035. border-radius: 3px;
  25036. margin: 0 5px 0 0;
  25037. }
  25038. .corOpen {
  25039. margin: 0 0 0 10px;
  25040. font-size: 14px;
  25041. cursor: pointer;
  25042. color: #505050;
  25043. }
  25044. .corOpen:hover {
  25045. color: #499eef;
  25046. }
  25047. .navCorOpenBox {
  25048. display: flex;
  25049. flex-direction: row;
  25050. align-items: center;
  25051. justify-content: space-between;
  25052. height: 55px;
  25053. background: #ffffff;
  25054. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  25055. border-radius: 8px 8px 0px 0px;
  25056. z-index: 9;
  25057. position: relative;
  25058. }
  25059. .navCorOpen {
  25060. padding-right: 15px;
  25061. cursor: pointer;
  25062. width: 45px;
  25063. display: flex;
  25064. }
  25065. .navCorOpen > img {
  25066. width: 100%;
  25067. height: 100%;
  25068. }
  25069. .mlImg {
  25070. width: 40px !important;
  25071. min-width: 40px;
  25072. cursor: pointer;
  25073. transform: rotate(180deg);
  25074. }
  25075. .mlImg > img {
  25076. width: 100%;
  25077. height: 100%;
  25078. }
  25079. .navLeftCss {
  25080. width: 100% !important;
  25081. left: 0 !important;
  25082. }
  25083. .isContentCss {
  25084. width: 100% !important;
  25085. }
  25086. .isAllWidth {
  25087. width: 100% !important;
  25088. }
  25089. .group_switch {
  25090. margin-right: 10px;
  25091. height: 30px;
  25092. display: flex;
  25093. align-items: center;
  25094. }
  25095. .group_switch > span {
  25096. margin-right: 5px;
  25097. }
  25098. .fileC_box {
  25099. padding-top: 15px;
  25100. }
  25101. .fileC_box > .fileC_title {
  25102. padding: 10px 5px 14px 10px;
  25103. border-top: 1px solid #cad1dc;
  25104. font-size: 14px;
  25105. font-weight: 400;
  25106. color: #cad1dc;
  25107. width: calc(100% - 20px);
  25108. margin: 0 auto;
  25109. box-sizing: border-box;
  25110. }
  25111. .pl_select_box {
  25112. height: 40px;
  25113. line-height: 40px;
  25114. width: 100%;
  25115. cursor: pointer;
  25116. padding: 0 20px;
  25117. box-sizing: border-box;
  25118. border-radius: 5px;
  25119. border: 1px solid #d6d6d6;
  25120. white-space: nowrap;
  25121. overflow: hidden;
  25122. text-overflow: ellipsis;
  25123. background: #fff;
  25124. text-align: left;
  25125. }
  25126. .newButton {
  25127. width: 102px;
  25128. height: 36px;
  25129. background: #e7ebf1;
  25130. border-radius: 4px;
  25131. color: #0e1e33;
  25132. font-weight: 400;
  25133. font-size: 14px;
  25134. border: none;
  25135. float: right;
  25136. margin-left: 10px;
  25137. }
  25138. .el-table >>> .even_row {
  25139. background-color: #f0f4fa;
  25140. }
  25141. .stageBoxCss,
  25142. .stageBoxIsCss {
  25143. display: flex;
  25144. flex-direction: row;
  25145. flex-wrap: nowrap;
  25146. align-items: center;
  25147. height: 50px;
  25148. border-bottom: 1px solid #e2f5fc;
  25149. cursor: pointer;
  25150. width: 100%;
  25151. }
  25152. .stageBoxIsCss {
  25153. background: #0061ff;
  25154. color: #fff;
  25155. border-radius: 8px;
  25156. }
  25157. .closeTri,
  25158. .closeTri1 {
  25159. min-width: 15px;
  25160. width: 15px;
  25161. height: 15px;
  25162. }
  25163. .closeTri1 {
  25164. padding-left: 10px;
  25165. cursor: pointer;
  25166. }
  25167. .closeTri > img,
  25168. .closeTri1 > img {
  25169. width: 100%;
  25170. height: 100%;
  25171. /* transition: all .5s; */
  25172. }
  25173. .noToolBlue {
  25174. min-width: 10px;
  25175. width: 10px;
  25176. height: 10px;
  25177. background: #0061ff;
  25178. border-radius: 50%;
  25179. margin-left: 13px;
  25180. }
  25181. .stageChild,
  25182. .toolChild {
  25183. height: 0;
  25184. overflow: hidden;
  25185. transition: all 0.5s;
  25186. }
  25187. /* .toolChild { */
  25188. /* margin: 0 0 0 17px;
  25189. padding: 0 0 0 20px;
  25190. border-left: 1px solid #d7d7d7; */
  25191. /* } */
  25192. .toolChild > div + div{
  25193. margin-top:5px;
  25194. }
  25195. .gjCss {
  25196. display: flex;
  25197. flex-direction: row;
  25198. flex-wrap: nowrap;
  25199. align-items: center;
  25200. padding: 10px 0 10px 40px;
  25201. box-sizing: border-box;
  25202. font-size: 14px;
  25203. cursor: pointer;
  25204. border-radius:5px;
  25205. }
  25206. .toolChild > div {
  25207. position: relative;
  25208. width: 100%;
  25209. }
  25210. /* .toolChild > div::before { */
  25211. /* content: "";
  25212. width: 15px;
  25213. height: 1px;
  25214. background: #cad1dc;
  25215. position: absolute;
  25216. top: 24px;
  25217. left: -20px;
  25218. display: block; */
  25219. /* } */
  25220. .isGjCss {
  25221. /* color: #0061ff; */
  25222. color:#fff;
  25223. background: rgb(55, 129, 252);
  25224. /* background-color: #e0eafb !important;
  25225. color: #0061ff !important; */
  25226. }
  25227. .navItem {
  25228. background: #ffffff;
  25229. border-radius: 4px;
  25230. width: 100%;
  25231. margin: 10px auto;
  25232. position: relative;
  25233. height: 40px;
  25234. display: flex;
  25235. flex-direction: row;
  25236. flex-wrap: nowrap;
  25237. align-items: center;
  25238. }
  25239. .navItemList {
  25240. display: flex;
  25241. flex-direction: row;
  25242. flex-wrap: nowrap;
  25243. align-items: center;
  25244. padding: 0 13px;
  25245. cursor: pointer;
  25246. width: calc(100% - 60px);
  25247. height: 100%;
  25248. }
  25249. .navItemList > div:first-child {
  25250. min-width: 60px;
  25251. }
  25252. .navItemList > div:last-child {
  25253. width: calc(100% - 80px);
  25254. white-space: nowrap;
  25255. overflow: hidden;
  25256. text-overflow: ellipsis;
  25257. word-break: break-word;
  25258. }
  25259. /* .isItemList > div {
  25260. color: #fff !important;
  25261. } */
  25262. .tool_work_box {
  25263. width: 100%;
  25264. padding: 0 37px 0;
  25265. box-sizing: border-box;
  25266. }
  25267. .tool_box {
  25268. width: 100%;
  25269. padding: 0 0 0 20px;
  25270. }
  25271. .tool_type_box {
  25272. display: flex;
  25273. flex-direction: row;
  25274. align-items: baseline;
  25275. flex-wrap: nowrap;
  25276. justify-content: flex-start;
  25277. position: relative;
  25278. }
  25279. .toolSort {
  25280. display: flex;
  25281. flex-direction: row;
  25282. flex-wrap: wrap;
  25283. justify-content: flex-start;
  25284. align-items: flex-start;
  25285. padding: 0 0 15px 0;
  25286. }
  25287. .toolSort > div {
  25288. margin: 0 10px 0 0;
  25289. width: 135px;
  25290. box-sizing: border-box;
  25291. border: 2px solid transparent;
  25292. }
  25293. .tools {
  25294. width: 100%;
  25295. display: flex;
  25296. flex-direction: column;
  25297. flex-wrap: nowrap;
  25298. align-items: flex-start;
  25299. }
  25300. .whiteBIcon {
  25301. width: fit-content;
  25302. cursor: pointer;
  25303. display: flex;
  25304. flex-direction: column;
  25305. flex-wrap: nowrap;
  25306. align-items: center;
  25307. font-size: 14px;
  25308. }
  25309. .tool:hover {
  25310. border: 2px solid #a5c7ff;
  25311. border-radius: 5px;
  25312. }
  25313. .whiteBIcon > img {
  25314. width: 65px;
  25315. height: 100%;
  25316. }
  25317. .whiteBIcon > img {
  25318. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25319. border-radius: 15px;
  25320. }
  25321. .check {
  25322. /* width: 20px;
  25323. height: 20px; */
  25324. cursor: pointer;
  25325. margin: 10px 0;
  25326. position: absolute;
  25327. right: 2px;
  25328. top: -5px;
  25329. }
  25330. .noChoose,
  25331. .isChoose {
  25332. width: 15px;
  25333. height: 15px;
  25334. border-radius: 50%;
  25335. border: 1px solid #adadad;
  25336. }
  25337. .isChoose {
  25338. border: 4px solid #0363ff !important;
  25339. width: 10px;
  25340. height: 10px;
  25341. }
  25342. .isToolChoose {
  25343. border: 2px solid #5394ff !important;
  25344. border-radius: 5px;
  25345. box-shadow: 0 0 6px 0px #5394ff;
  25346. }
  25347. .checkDiv {
  25348. display: flex;
  25349. align-items: center;
  25350. }
  25351. .checkDiv span {
  25352. margin-left: 5px;
  25353. color: #858585;
  25354. }
  25355. .check img {
  25356. width: 20px;
  25357. height: 20px;
  25358. }
  25359. .lockTaskIcon {
  25360. width: 20px;
  25361. height: 20px;
  25362. position: absolute;
  25363. right: 10px;
  25364. top: 10px;
  25365. }
  25366. .lockTaskIcon > img {
  25367. width: 100%;
  25368. height: 100%;
  25369. }
  25370. .pick_box {
  25371. display: flex;
  25372. align-items: flex-start;
  25373. flex-wrap: wrap;
  25374. }
  25375. .selectBox {
  25376. width: 110px;
  25377. margin-left: 10px;
  25378. margin: 0 10px 0 auto;
  25379. }
  25380. .selectBox >>> .el-input__inner {
  25381. height: 30px;
  25382. line-height: 30px;
  25383. }
  25384. .selectBox >>> .el-input__icon {
  25385. line-height: 30px;
  25386. }
  25387. .sentenceTitle {
  25388. display: flex;
  25389. flex-direction: row;
  25390. flex-wrap: nowrap;
  25391. align-items: center;
  25392. }
  25393. .sentenceTitle::before {
  25394. content: attr(index);
  25395. background: #3681fc;
  25396. border-radius: 50%;
  25397. color: #fff;
  25398. width: 25px;
  25399. height: 25px;
  25400. min-width: 25px;
  25401. min-height: 25px;
  25402. text-align: center;
  25403. line-height: 25px;
  25404. margin-right: 5px;
  25405. }
  25406. .hfBox {
  25407. padding: 10px;
  25408. box-sizing: border-box;
  25409. }
  25410. .whoReplyWho {
  25411. display: flex;
  25412. flex-direction: row;
  25413. flex-wrap: nowrap;
  25414. align-items: baseline;
  25415. justify-content: flex-start;
  25416. }
  25417. .hfBottom {
  25418. display: flex;
  25419. flex-direction: row;
  25420. flex-wrap: nowrap;
  25421. align-items: center;
  25422. justify-content: space-between;
  25423. font-size: 14px;
  25424. }
  25425. .deleteHfItem {
  25426. cursor: pointer;
  25427. width: 20px;
  25428. height: 20px;
  25429. }
  25430. .deleteHfItem > img {
  25431. width: 100%;
  25432. height: 100%;
  25433. }
  25434. .whoReplyWho > .hfImg {
  25435. width: 12px;
  25436. height: 12px;
  25437. margin: 0 5px;
  25438. }
  25439. .whoReplyWho > .hfImg > img {
  25440. width: 100%;
  25441. height: 100%;
  25442. }
  25443. .hfContent {
  25444. padding-top: 10px;
  25445. box-sizing: border-box;
  25446. display: -webkit-box;
  25447. overflow: hidden;
  25448. white-space: normal !important;
  25449. text-overflow: ellipsis;
  25450. word-wrap: break-word;
  25451. -webkit-box-orient: vertical;
  25452. }
  25453. .hfTime {
  25454. text-align: left;
  25455. box-sizing: border-box;
  25456. padding: 10px 0 10px 0px;
  25457. color: #bfbfbf;
  25458. font-size: 14px;
  25459. }
  25460. .btnAllNT {
  25461. position: fixed;
  25462. bottom: 100px;
  25463. right: 40px;
  25464. z-index: 999;
  25465. display: flex;
  25466. flex-direction: row;
  25467. }
  25468. .btnAllNT > img {
  25469. cursor: pointer;
  25470. width: 80px;
  25471. }
  25472. .toolMask {
  25473. position: fixed;
  25474. width: 100%;
  25475. height: 100%;
  25476. background: #3f3c3c;
  25477. opacity: 0.5;
  25478. top: 0;
  25479. left: 0;
  25480. z-index: 999;
  25481. }
  25482. .addToolCss {
  25483. position: fixed;
  25484. z-index: 999;
  25485. background: #fff;
  25486. right: 5%;
  25487. bottom: 18%;
  25488. min-width: 1035px;
  25489. min-height: 300px;
  25490. border-radius: 10px;
  25491. box-shadow: 0 0 8px 1px #b2b2b2;
  25492. }
  25493. .toolTop {
  25494. display: flex;
  25495. flex-direction: row;
  25496. flex-wrap: nowrap;
  25497. justify-content: space-between;
  25498. align-items: center;
  25499. padding: 20px;
  25500. }
  25501. .toolTop > div:nth-child(2) {
  25502. width: 15px;
  25503. height: 15px;
  25504. padding-right: 10px;
  25505. cursor: pointer;
  25506. }
  25507. .toolTop > div:nth-child(2) > img {
  25508. width: 100%;
  25509. height: 100%;
  25510. }
  25511. .fullStyle>>>.el-dialog__body {
  25512. height: calc(100% - 125px) !important;
  25513. box-sizing: border-box;
  25514. padding: 30px 0 !important;
  25515. background: #fff !important;
  25516. }
  25517. .fullStyle>>>.el-dialog {
  25518. width: 100% !important;
  25519. max-width: 100% !important;
  25520. height: 100% !important;
  25521. margin: 0 !important;
  25522. }
  25523. .fullStyle {
  25524. width: 100% !important;
  25525. max-width: 100% !important;
  25526. height: 100% !important;
  25527. margin: 0 auto !important;
  25528. }
  25529. .fullStyle>>>.el-dialog__footer{
  25530. background: #fff !important;
  25531. }
  25532. .engUpBox {
  25533. width: 100%;
  25534. height: 100%;
  25535. }
  25536. .engTitle,
  25537. .engText {
  25538. display: flex;
  25539. flex-direction: row;
  25540. flex-wrap: nowrap;
  25541. align-items: flex-start;
  25542. padding: 0 20px 20px 20px;
  25543. box-sizing: border-box;
  25544. }
  25545. .engTitle > .div:first-child,
  25546. .engText > div:first-child {
  25547. min-width: 75px;
  25548. }
  25549. .correctBox{
  25550. width: 100%;
  25551. display: flex;
  25552. flex-direction: row;
  25553. flex-wrap: nowrap;
  25554. align-items: flex-start;
  25555. }
  25556. .oldBox{
  25557. width: 50%;
  25558. height: 100%;
  25559. display: flex;
  25560. flex-direction: column;
  25561. flex-wrap: nowrap;
  25562. align-items: center;
  25563. border-top: 1px solid #d9d9d9;
  25564. border-left: 1px solid #d9d9d9;
  25565. border-right: 1px solid #d9d9d9;
  25566. }
  25567. .oldBox>div:first-child{
  25568. width: 100%;
  25569. text-align: center;
  25570. background: #d9d9d9;
  25571. height: 35px;
  25572. line-height: 35px;
  25573. font-weight: bold;
  25574. }
  25575. .oldText{
  25576. width: 100%;
  25577. height: calc(100% - 35px);
  25578. overflow: auto;
  25579. margin: 10px 0;
  25580. display: flex;
  25581. flex-direction: column;
  25582. flex-wrap: nowrap;
  25583. align-content: center;
  25584. align-items: center;
  25585. }
  25586. .detailBox{
  25587. width: 50%;
  25588. padding: 10px;
  25589. background: #f6f6f6;
  25590. border-radius: 5px;
  25591. }
  25592. .oldDetail,.oldDetail1{
  25593. padding-bottom: 30px;
  25594. }
  25595. .oldImg{
  25596. width:30px;
  25597. height: 30px;
  25598. }
  25599. .oldImg>img{
  25600. width: 100%;
  25601. height: 100%;
  25602. }
  25603. .allName{
  25604. min-width: 200px;
  25605. white-space: nowrap;
  25606. overflow: hidden;
  25607. text-overflow: ellipsis;
  25608. word-break: break-word;
  25609. cursor: pointer;
  25610. text-align: center;
  25611. border: 1px solid #bcc2cc;
  25612. box-sizing: border-box;
  25613. }
  25614. .engUpTop{
  25615. max-height: 300px;
  25616. overflow: auto;
  25617. }
  25618. .isUpdateToolDetailClass{
  25619. padding: 0 !important;
  25620. }
  25621. .isUpdateToolDetailClass textarea{
  25622. padding:12px;
  25623. font-size: 16px;
  25624. min-height:100%;
  25625. width: 100%;
  25626. box-sizing:border-box;
  25627. outline: none;
  25628. border:none;
  25629. line-height: 30px;
  25630. resize: none;
  25631. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25632. color: #838383;
  25633. }
  25634. .show_taskD {
  25635. min-width: fit-content;
  25636. margin-left: 10px;
  25637. display: flex;
  25638. align-items: center;
  25639. font-size: 14px;
  25640. cursor: pointer;
  25641. color: #717c8d;
  25642. }
  25643. .show_taskD > img {
  25644. width: 15px;
  25645. margin-right: 5px;
  25646. transition: 0.2s all;
  25647. transform: rotate(-90deg);
  25648. }
  25649. .show_taskD.show > img {
  25650. transform: rotate(0deg);
  25651. }
  25652. .dialog_diyCopy >>> .el-dialog__header {
  25653. display: none !important;
  25654. }
  25655. .dialog_diyCopy >>> .el-dialog__body {
  25656. padding: 0 !important;
  25657. height: 100% !important;
  25658. }
  25659. .confirmOpenDigCss > div{
  25660. font-size: 14px;
  25661. color: rgba(0, 0, 0, 0.6);
  25662. }
  25663. .confirmOpenDigCss >>> .el-dialog{
  25664. border-radius: 6px;
  25665. }
  25666. .confirmOpenDigCss >>> .el-dialog__body{
  25667. padding: 25px !important;
  25668. }
  25669. .confirmOpenDigCss > span{
  25670. font-size: 16px;
  25671. font-weight: 600;
  25672. color: rgba(0, 0, 0, 0.8);
  25673. }
  25674. .correctCss{
  25675. position: absolute;
  25676. bottom: -70px;
  25677. background: #409eff;
  25678. color: #fff;
  25679. }
  25680. div::-webkit-scrollbar {
  25681. width: 10px;
  25682. height: 6px;
  25683. }
  25684. .Ovh{
  25685. margin: 5px 0;
  25686. width: 4em;
  25687. -webkit-line-clamp: 2;
  25688. display: -webkit-box;
  25689. -webkit-box-orient: vertical;
  25690. overflow: hidden;
  25691. text-overflow: ellipsis;
  25692. }
  25693. .renderedFor >>> .katex {
  25694. font-size: 18px;
  25695. width: 100%;
  25696. white-space: normal;
  25697. font-family: '黑体' !important;
  25698. }
  25699. .renderedFor >>> .katex .base{
  25700. display: inline !important;
  25701. display: contents !important;
  25702. }
  25703. .renderedFor >>> .katex .base .cjk_fallback{
  25704. white-space: normal !important;
  25705. display: inline !important;
  25706. }
  25707. </style>