studyStudent.vue 872 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895
  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="lang.ssCollapse" 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>{{ lang.ssInviteCodeLabel }}{{ Code2 ? Code2 + inviteCode : inviteCode }}</span>
  107. <!-- <span>识别码:{{ inviteCode }}</span> -->
  108. </div>
  109. </div>
  110. </div>
  111. <div class="cru_selectBox">
  112. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  113. <div class="stageChild" :class="{ navActive: item.isOpen }">
  114. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  115. <div
  116. class="navItem"
  117. :class="{
  118. openTaskActive:
  119. navIndex == taskCount &&
  120. nav.id == navId &&
  121. stageIndex == courseType,
  122. }"
  123. >
  124. <div v-if="nav.tool[0].tool != undefined">
  125. <div
  126. class="closeTri1"
  127. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  128. @click="openTask(stageIndex, navIndex, nav.id)"
  129. >
  130. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  131. </div>
  132. <div
  133. class="closeTri1"
  134. v-else
  135. @click="openTask(stageIndex, navIndex, nav.id)"
  136. >
  137. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  138. </div>
  139. </div>
  140. <div v-else class="noToolBlue"></div>
  141. <div
  142. @click="openTask(stageIndex, navIndex, nav.id)"
  143. class="navItemList"
  144. :class="{
  145. isItemList:
  146. navIndex == taskCount &&
  147. nav.id == navId &&
  148. stageIndex == courseType,
  149. }"
  150. >
  151. <div>{{lang.ssTaskNumFormat.replace(/\*/g, navIndex + 1)}}</div>
  152. <el-tooltip
  153. effect="light"
  154. :content="nav.taskName"
  155. placement="top"
  156. >
  157. <div
  158. :style="{
  159. width:
  160. IsLookOpen && !nav.isLook
  161. ? 'calc(100% - 75px)'
  162. : 'auto',
  163. }"
  164. >
  165. {{ nav.taskName }}
  166. </div>
  167. </el-tooltip>
  168. </div>
  169. <div class="lockTaskIcon">
  170. <img
  171. src="../../assets/lock.png"
  172. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  173. courseDetail.course_teacher.indexOf(userid) ==-1"
  174. alt=""
  175. />
  176. </div>
  177. </div>
  178. <div
  179. v-if="nav.tool[0].tool != undefined"
  180. class="toolChild"
  181. :class="{ toolActive: nav.isOpen }"
  182. >
  183. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  184. <div
  185. class="gjCss"
  186. :class="{
  187. isGjCss: t.isTool,
  188. }"
  189. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  190. >
  191. <div>{{lang.ssToolNum.replace(/\*/g, toolIndex2 + 1)}}</div>
  192. <div v-if="t.tool == 58">{{lang.ssSimulateDrive}}</div>
  193. <div v-if="t.tool == 59">{{lang.ssPathSearch}}</div>
  194. <div v-if="t.tool == 60">{{lang.ssDeepLearning}}</div>
  195. <div v-if="t.tool == 10">{{lang.ssCountdown}}</div>
  196. <div v-if="t.tool == 65">{{lang.ssPickPerson}}</div>
  197. <div v-if="t.tool == 7">{{lang.ssMindGrid}}</div>
  198. <div v-if="t.tool == 1">{{lang.ssWhiteboard}}</div>
  199. <div v-if="t.tool == 52">{{lang.ssDocument}}</div>
  200. <div v-if="t.tool == 3">{{lang.ssMindMap}}</div>
  201. <div v-if="t.tool == 48">{{lang.ssTable}}</div>
  202. <div v-if="t.tool == 49">{{lang.ssStudentGroup}}</div>
  203. <div v-if="t.tool == 4">{{lang.ssSurvey}}</div>
  204. <div v-if="t.tool == 45">{{lang.ssChoice}}</div>
  205. <div v-if="t.tool == 15">{{lang.ssQa}}</div>
  206. <div v-if="t.tool == 16">{{lang.ssHomework}}</div>
  207. <div v-if="t.tool == 50">{{lang.ssBatchUpload}}</div>
  208. <div v-if="t.tool == 41">{{lang.ssMatch}}</div>
  209. <div v-if="t.tool == 47">{{lang.ssSort}}</div>
  210. <div v-if="t.tool == 40">{{lang.ssPersonalEval}}</div>
  211. <div v-if="t.tool == 18">{{lang.ssTraining}}</div>
  212. <div v-if="t.tool == 21">AIoT Blockly</div>
  213. <div v-if="t.tool == 23">AI Python</div>
  214. <div v-if="t.tool == 24">AI Blockly</div>
  215. <div v-if="t.tool == 32">{{lang.ssCodeEdit}}</div>
  216. <div v-if="t.tool == 57">CocoPi</div>
  217. <div v-if="t.tool == 63">{{lang.ssTurtle}}</div>
  218. <div v-if="t.tool == 28">{{lang.ssTranslate}}</div>
  219. <div v-if="t.tool == 31">{{lang.ssDigitalBoard}}</div>
  220. <div v-if="t.tool == 39">GeoGebra</div>
  221. <div v-if="t.tool == 66">{{lang.ssFormula}}</div>
  222. <div v-if="t.tool == 67">{{lang.ssMolecule}}</div>
  223. <div v-if="t.tool == 68">{{lang.ssTimeline}}</div>
  224. <div v-if="t.tool == 69">{{lang.ssEnglishWrite}}</div>
  225. <div v-if="t.tool == 70">{{lang.ssEnglishSpeak}}</div>
  226. <div v-if="t.tool == 25">{{lang.ssGoalManage}}</div>
  227. <div v-if="t.tool == 26">{{lang.ssCourseDesign}}</div>
  228. <div v-if="t.tool == 62">{{lang.ssInteractiveVideo}}</div>
  229. <div v-if="t.tool == 71">{{lang.ssAiAgent}}</div>
  230. <div v-if="t.tool == 72">{{lang.ssAppCenter}}</div>
  231. <div v-if="t.tool == 73">PPT</div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  241. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  242. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  243. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  244. <div>{{lang.ssTaskNum.replace(/\*/g, taskCount + 1)}}</div>
  245. <el-tooltip
  246. effect="light"
  247. :content="
  248. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  249. "
  250. placement="top"
  251. >
  252. <div>
  253. {{
  254. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  255. .task
  256. }}
  257. </div>
  258. </el-tooltip>
  259. </div>
  260. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  261. <div class="btnAll" v-show="(!orgArray.includes(org) && !oidArray.includes(oid)) || $region == 'hk'">
  262. <div class="btnLeft">
  263. <el-tooltip effect="light" :content="lang.ssRefresh" placement="top">
  264. <div class="reBtnIcon" @click="refreshCourse">
  265. <span>{{lang.ssRefresh}}</span>
  266. </div>
  267. </el-tooltip>
  268. <el-tooltip effect="light" :content="lang.ssComment" placement="top">
  269. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  270. <span>{{lang.ssComment}}</span>
  271. </div>
  272. </el-tooltip>
  273. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  274. <el-tooltip effect="light" :content="lang.ssRecord" placement="top">
  275. <div class="vedioIcon" @click="startRecording">
  276. <span>{{lang.ssRecord}}</span>
  277. </div>
  278. </el-tooltip>
  279. </div>
  280. <div v-else-if="tType == 1 || tType == 4">
  281. <el-tooltip effect="light" :content="lang.ssDownload" placement="top">
  282. <div class="vedioIcon1" @click="stopRecording">
  283. <span>{{lang.ssDownload}}</span>
  284. </div>
  285. </el-tooltip>
  286. </div>
  287. </div>
  288. <div class="btnRight">
  289. <div
  290. class="last"
  291. @click="nextOrpreSteps(0)"
  292. v-if="!(IsFollow && tType == 2)"
  293. @mouseover="isHovered = true"
  294. @mouseout="isHovered = false"
  295. >
  296. <div class="lastImg">
  297. <img
  298. :src="
  299. isHovered
  300. ? require('../../assets/icon/newIcons/whiteLast.png')
  301. : require('../../assets/icon/newIcons/last.png')
  302. "
  303. alt=""
  304. />
  305. </div>
  306. <div class="lastText">{{lang.ssPrevious}}</div>
  307. </div>
  308. <div
  309. class="last"
  310. @click="nextOrpreSteps(1)"
  311. v-if="!(IsFollow && tType == 2)"
  312. @mouseover="isHovered1 = true"
  313. @mouseout="isHovered1 = false"
  314. >
  315. <div class="lastText">{{lang.ssNext}}</div>
  316. <div class="lastImg">
  317. <img
  318. :src="
  319. isHovered1
  320. ? require('../../assets/icon/newIcons/whiteNext.png')
  321. : require('../../assets/icon/newIcons/next.png')
  322. "
  323. alt=""
  324. />
  325. </div>
  326. </div>
  327. <div
  328. class="last"
  329. @click="juriVisible = true"
  330. v-if="tType == 1"
  331. @mouseover="isHovered2 = true"
  332. @mouseout="isHovered2 = false"
  333. >
  334. <div class="lastImg">
  335. <img
  336. :src="
  337. isHovered2
  338. ? require('../../assets/icon/newIcons/whiteLock.png')
  339. : require('../../assets/icon/newIcons/lock.png')
  340. "
  341. alt=""
  342. />
  343. </div>
  344. <div class="lastText">{{lang.ssPermission}}</div>
  345. </div>
  346. <div
  347. class="returnBtn1 returnIcon"
  348. @click.stop="
  349. goTo(
  350. '/courseDetail?userid=' +
  351. userid +
  352. '&oid=' +
  353. oid +
  354. '&org=' +
  355. org +
  356. '&cid=' +
  357. classId +
  358. '&courseId=' +
  359. id +
  360. '&tType=' +
  361. tType +
  362. '&screenType=' +
  363. screenType
  364. )
  365. "
  366. >
  367. <div class="lastImg">
  368. <img src="../../assets/icon/newIcon/return.png" alt="" />
  369. </div>
  370. <div class="lastText" style="color: #000">{{lang.ssReturn}}</div>
  371. </div>
  372. </div>
  373. <!-- <div
  374. class="returnBtn lockIcon"
  375. @click="juriVisible = true"
  376. v-if="tType == 1"
  377. >
  378. 权限
  379. </div>
  380. <div
  381. class="returnBtn vedioIcon"
  382. @click="startRecording"
  383. v-if="!videoStart && (tType == 1 || tType == 4)"
  384. >
  385. 录制
  386. </div>
  387. <div
  388. class="returnBtn"
  389. @click="stopRecording"
  390. v-else-if="tType == 1 || tType == 4"
  391. style="background: #ee5255"
  392. >
  393. 下载
  394. </div>
  395. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  396. 评论
  397. </div>
  398. <div
  399. class="returnBtn"
  400. @click="nextOrpreSteps(0)"
  401. v-if="!(IsFollow && tType == 2)"
  402. >
  403. 上一步
  404. </div>
  405. <div
  406. class="returnBtn"
  407. @click="nextOrpreSteps(1)"
  408. v-if="!(IsFollow && tType == 2)"
  409. >
  410. 下一步
  411. </div>
  412. <div class="returnBtn" @click="refreshCourse">刷新</div>
  413. <div
  414. class="returnBtn returnIcon"
  415. @click.stop="
  416. goTo(
  417. '/courseDetail?userid=' +
  418. userid +
  419. '&oid=' +
  420. oid +
  421. '&org=' +
  422. org +
  423. '&cid=' +
  424. classId +
  425. '&courseId=' +
  426. id +
  427. '&tType=' +
  428. tType +
  429. '&screenType=' +
  430. screenType
  431. )
  432. "
  433. >
  434. 返回
  435. </div> -->
  436. </div>
  437. </div>
  438. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  439. .taskDetail3 && -->
  440. <div
  441. class="isNoMessage"
  442. v-if="
  443. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  444. .chapterData.length == 0 &&
  445. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  446. .toolChoose[0].tool.length == 0 &&
  447. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .taskDetail == '' &&
  449. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  450. .eList &&
  451. !(
  452. courseDetail.userid == userid ||
  453. (courseDetail.course_teacher &&
  454. courseDetail.course_teacher.indexOf(userid) != -1)
  455. )
  456. "
  457. >
  458. <img src="../../assets/icon/isNoMessage.png" alt />
  459. </div>
  460. <div class="study_top" :class="{ pzClass: pzDialog }">
  461. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  462. .taskDetail3 || -->
  463. <div
  464. class="vedioBox"
  465. v-if="
  466. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  467. .taskDetail != '' ||
  468. vChapterData[0].length > 0 ||
  469. fileC[0].length > 0) && (tType == 1 || (tType == 2 && IsStulook))
  470. "
  471. style="border-radius: 0 0 20px 20px"
  472. >
  473. <!-- <div
  474. class="taskBox"
  475. v-if="
  476. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  477. .taskDetail3
  478. "
  479. >
  480. <div
  481. style="
  482. display: flex;
  483. flex-wrap: nowrap;
  484. flex-direction: column;
  485. position: relative;
  486. "
  487. >
  488. <div
  489. style="
  490. padding: 15px 0;
  491. line-height: 29px;
  492. font-size: 18px;
  493. color: #0e1e33;
  494. "
  495. class="cont"
  496. v-if="
  497. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  498. .taskDetail3 != ''
  499. "
  500. v-html="
  501. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  502. .taskDetail3
  503. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  504. taskCount
  505. ].taskDetail3)
  506. : '暂无描述'
  507. "
  508. ></div>
  509. </div>
  510. </div> -->
  511. <div
  512. class="taskBox"
  513. v-if="
  514. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  515. .taskDetail != ''
  516. "
  517. >
  518. <div
  519. style="
  520. display: flex;
  521. flex-wrap: nowrap;
  522. flex-direction: column;
  523. position: relative;
  524. "
  525. class="renderedFor"
  526. >
  527. <div
  528. style="
  529. padding: 15px 0;
  530. line-height: 29px;
  531. font-size: 18px;
  532. color: #0e1e33;
  533. "
  534. class="cont"
  535. v-if="
  536. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  537. .taskDetail != ''
  538. "
  539. v-html="
  540. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  541. .taskDetail
  542. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  543. taskCount
  544. ].taskDetail
  545. : lang.ssNoDesc
  546. "
  547. ></div>
  548. </div>
  549. </div>
  550. <div
  551. class="student_head"
  552. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  553. >
  554. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  555. <div
  556. :class="
  557. contentDialog == false
  558. ? 'box_course isContentCss'
  559. : 'box_course'
  560. "
  561. v-if="
  562. vChapterData.length > 0 &&
  563. vChapterData[0] &&
  564. showType !== ''
  565. "
  566. >
  567. <div class="wheel" style="height: auto" v-if="showType === 0">
  568. <div
  569. class="workd_media"
  570. style="height: 650px; width: calc(100% - 50px)"
  571. >
  572. <video-player
  573. class="video-player vjs-custom-skin notop"
  574. :class="contentDialog == false ? 'isAllWidth' : ''"
  575. :playsinline="true"
  576. :options="playerO[0]"
  577. @play="onPlayerPlay($event)"
  578. style="width: 100%; height: 650px; margin: 0 0 0 30px"
  579. ></video-player>
  580. </div>
  581. </div>
  582. <div
  583. class="wheel"
  584. v-if="showType == 1"
  585. style="
  586. box-shadow: 0 0 6px 1px #f2f2f2;
  587. width: 95%;
  588. margin: 0 auto;
  589. background: #f1f1f1;
  590. "
  591. >
  592. <div class="title">{{lang.ssViewDoc}}</div>
  593. <el-form class="textBox">
  594. <el-form-item class="textTitle">
  595. <div style="font-size: 22px">
  596. {{ text.name }}
  597. </div>
  598. </el-form-item>
  599. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  600. <div v-html="text.url" class="textContent cont"></div>
  601. </el-form>
  602. </div>
  603. <div
  604. class="wheel"
  605. v-if="
  606. pptImgUrl1.indexOf(
  607. 'https://view.officeapps.live.com/op/view.aspx?src='
  608. ) != -1 && showType == 2
  609. "
  610. style="width: 95%; margin: 0 auto"
  611. >
  612. <iframe
  613. style="width: 100%; height: 100%; border: none"
  614. :src="pptImgUrl1"
  615. ></iframe>
  616. </div>
  617. <div
  618. class="wheel"
  619. v-else-if="showType == 2"
  620. style="width: 95%; margin: 0 auto"
  621. >
  622. <iframe
  623. style="width: 100%; height: 100%; border: none"
  624. :key="diffKey"
  625. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  626. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  627. :src="pptImgUrl1"
  628. ></iframe>
  629. <iframe
  630. style="width: 100%; height: 100%; border: none"
  631. security="restricted"
  632. v-else
  633. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  634. :src="pptImgUrl1"
  635. ></iframe>
  636. </div>
  637. <div
  638. class="wheel"
  639. v-if="showType === 16"
  640. style="width: 95%; margin: 0 auto"
  641. >
  642. <iframe
  643. style="width: 100%; height: 100%; border: none"
  644. :src="pptImgUrl1"
  645. ></iframe>
  646. </div>
  647. <div
  648. class="wheel"
  649. v-if="showType == 3"
  650. style="width: 95%; margin: 0 auto"
  651. >
  652. <pdf
  653. :pdfUrl="pptImgUrl1"
  654. style="width: 100%; height: 100%; overflow: auto"
  655. ></pdf>
  656. </div>
  657. <div
  658. class="wheel"
  659. v-if="showType == 4"
  660. style="width: 95%; margin: 0 auto"
  661. >
  662. <el-image
  663. :src="pptImgUrl1"
  664. fit="contain"
  665. style="width: 100%; height: 100%; cursor: pointer"
  666. @click="previewImg(pptImgUrl1)"
  667. ></el-image>
  668. </div>
  669. </div>
  670. <div
  671. class="pButton"
  672. style="position: absolute; right: 20px; top: 0; z-index: 998"
  673. v-if="!contentDialog"
  674. @click="setContent(true)"
  675. >
  676. <!-- 批 -->
  677. <img
  678. src="../../assets/icon/newIcons/isLeft.png"
  679. style="width: 45px"
  680. alt=""
  681. />
  682. </div>
  683. <div
  684. v-if="contentDialog == true"
  685. :style="{
  686. width:
  687. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  688. showType === ''
  689. ? 'calc(100%)'
  690. : '300px',
  691. margin:
  692. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  693. showType === ''
  694. ? '0 15px'
  695. : '0 15px 0 0',
  696. }"
  697. >
  698. <div
  699. class="vedioList"
  700. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  701. style="height: 650px"
  702. >
  703. <div class="navCorOpenBox">
  704. <div class="navTitile">{{lang.ssContentListLabel}}</div>
  705. <div class="navCorOpen" @click="setContent(false)">
  706. <img
  707. src="../../assets/icon/newIcons/isRight.png"
  708. alt=""
  709. />
  710. </div>
  711. </div>
  712. <div class="navBox">
  713. <div
  714. v-show="
  715. vChapterData[0].length > 0 || fileC[0].length > 0
  716. "
  717. style="padding: 10px 0 25px 0"
  718. >
  719. <div
  720. class="vedioTimeBox"
  721. v-for="(vitem, vindex) in vChapterData[0]"
  722. :key="vindex + '1'"
  723. >
  724. <div class="navListItem" v-if="vitem.type == 2">
  725. <div
  726. @click="lookVedio(vitem.url, vindex)"
  727. class="navText"
  728. :class="isClickNav == vindex ? 'isClickNav' : ''"
  729. >
  730. <span v-if="vitem.text">{{ vitem.text }}-</span
  731. >{{ vitem.name }}
  732. </div>
  733. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  734. <img
  735. src="../../assets/icon/newIcon/down.png"
  736. alt
  737. />
  738. </div> -->
  739. </div>
  740. <div class="navListItem" v-if="vitem.type == 6">
  741. <div
  742. @click="lookText(0, vindex)"
  743. class="navText"
  744. :class="isClickNav == vindex ? 'isClickNav' : ''"
  745. >
  746. {{ vitem.name }}.doc
  747. </div>
  748. <div
  749. class="downIcon"
  750. @click="checkFileFull1(vitem.type, vitem)"
  751. >
  752. <img
  753. src="../../assets/icon/newIcon/allScreen.png"
  754. alt
  755. />
  756. </div>
  757. </div>
  758. <div
  759. class="navListItem"
  760. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  761. >
  762. <div
  763. @click="doUrl(vitem.url, vindex)"
  764. class="navText"
  765. :class="isClickNav == vindex ? 'isClickNav' : ''"
  766. >
  767. {{ vitem.title ? vitem.title : vitem.url }}
  768. </div>
  769. <div
  770. class="downIcon"
  771. @click="checkFileFull1(vitem.type, vitem)"
  772. >
  773. <img
  774. src="../../assets/icon/newIcon/allScreen.png"
  775. alt
  776. />
  777. </div>
  778. </div>
  779. <div class="navListItem" v-if="vitem.type == 3">
  780. <div
  781. @click="downFile(vitem, vindex)"
  782. class="navText"
  783. :class="isClickNav == vindex ? 'isClickNav' : ''"
  784. >
  785. <span v-if="vitem.text">{{ vitem.text }}-</span
  786. >{{ vitem.name }}
  787. </div>
  788. <div
  789. class="downIcon"
  790. @click="checkFileFull1(vitem.type, vitem)"
  791. >
  792. <img
  793. src="../../assets/icon/newIcon/allScreen.png"
  794. alt
  795. />
  796. </div>
  797. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  798. <img
  799. src="../../assets/icon/newIcon/down.png"
  800. alt
  801. />
  802. </div> -->
  803. </div>
  804. <div class="navListItem" v-if="vitem.type == 12">
  805. <div class="navText" @click="downloadFile2(vitem)">
  806. <span v-if="vitem.text">{{ vitem.text }}-</span
  807. >{{ vitem.name }}
  808. </div>
  809. <div
  810. class="downIcon"
  811. @click="checkFileFull1(vitem.type, vitem)"
  812. >
  813. <img
  814. src="../../assets/icon/newIcon/allScreen.png"
  815. alt
  816. />
  817. </div>
  818. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  819. <img
  820. src="../../assets/icon/newIcon/down.png"
  821. alt
  822. />
  823. </div> -->
  824. </div>
  825. <div class="navListItem" v-if="vitem.type == 13">
  826. <div
  827. class="navText"
  828. @click="checkPhoto(vitem, vindex)"
  829. :class="isClickNav == vindex ? 'isClickNav' : ''"
  830. >
  831. {{ vitem.name }}
  832. </div>
  833. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  834. <img
  835. src="../../assets/icon/newIcon/down.png"
  836. alt
  837. />
  838. </div> -->
  839. </div>
  840. <div class="navListItem" v-if="vitem.type == 16">
  841. <div
  842. class="navText"
  843. @click="checkHtml(vitem, vindex)"
  844. :class="isClickNav == vindex ? 'isClickNav' : ''"
  845. >
  846. {{ vitem.name }}
  847. </div>
  848. <div
  849. class="downIcon"
  850. @click="checkFileFull1(vitem.type, vitem)"
  851. >
  852. <img
  853. src="../../assets/icon/newIcon/allScreen.png"
  854. alt
  855. />
  856. </div>
  857. </div>
  858. <div class="navListItem" v-if="vitem.type == 17">
  859. <div
  860. class="navText"
  861. @click="checkHtml(vitem, vindex)"
  862. :class="isClickNav == vindex ? 'isClickNav' : ''"
  863. >
  864. {{ vitem.name }}
  865. </div>
  866. <div
  867. class="downIcon"
  868. @click="checkFileFull1(vitem.type, vitem)"
  869. >
  870. <img
  871. src="../../assets/icon/newIcon/allScreen.png"
  872. alt
  873. />
  874. </div>
  875. </div>
  876. </div>
  877. <div class="fileC_box" v-if="fileC[0].length > 0">
  878. <div class="fileC_title">{{lang.ssNoPreview}}</div>
  879. <div
  880. class="vedioTimeBox"
  881. v-for="(vitem, vindex) in fileC[0]"
  882. :key="vindex + '1'"
  883. >
  884. <div class="navListItem" v-if="vitem.type == 12">
  885. <div class="navText" style="color: #acb4bf">
  886. <span v-if="vitem.text">{{ vitem.text }}-</span
  887. >{{ vitem.name }}
  888. </div>
  889. <div
  890. class="downIcon"
  891. @click="downloadFile2(vitem)"
  892. >
  893. <img
  894. src="../../assets/icon/newIcon/down.png"
  895. alt
  896. />
  897. </div>
  898. </div>
  899. </div>
  900. </div>
  901. </div>
  902. </div>
  903. </div>
  904. </div>
  905. </div>
  906. <div style="width: calc(100% - 315px)">
  907. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  908. <!-- <el-button
  909. type="primary"
  910. class="newButton"
  911. @click="checkFileFull(showType, pptImgUrl1)"
  912. >全屏查看</el-button
  913. >
  914. <el-button
  915. type="primary"
  916. class="newButton"
  917. @click="downloadFile(pptImgUrl1)"
  918. v-if="showType != 2"
  919. >文件下载</el-button
  920. > -->
  921. <el-button
  922. v-if="
  923. showType == 2 &&
  924. pptImgUrl1.indexOf(
  925. 'https://view.officeapps.live.com/op/view.aspx?src='
  926. ) == -1
  927. "
  928. type="primary"
  929. class="newButton"
  930. @click="openLine(pptImgUrl1)"
  931. >{{lang.ssOpenLink}}
  932. </el-button>
  933. </div>
  934. <!-- <div
  935. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  936. v-if="showType == 1"
  937. >
  938. <el-button
  939. type="primary"
  940. class="newButton"
  941. @click="checkFileFull(showType, text)"
  942. >全屏查看</el-button
  943. >
  944. </div> -->
  945. </div>
  946. </div>
  947. </div>
  948. <div class="student_body" v-resize="resize">
  949. <div
  950. class="vedioBox"
  951. :style="{
  952. borderRadius:
  953. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  954. .taskDetail == '' &&
  955. vChapterData[taskCount].length == 0 &&
  956. fileC[taskCount].length == 0
  957. ? '0 0 20px 20px'
  958. : '20px',
  959. }"
  960. v-if="
  961. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  962. .toolChoose[0].tool &&
  963. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  964. .toolChoose[0].tool.length > 0
  965. "
  966. >
  967. <div
  968. class="toolHeng2"
  969. style="position: relative"
  970. v-if="
  971. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  972. .toolChoose[0].tool &&
  973. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  974. .toolChoose[0].tool.length &&
  975. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  976. .toolChoose[0].tool.length > 0
  977. "
  978. >
  979. <div class="workNav">{{ lang.ssWorkArea }}</div>
  980. <div
  981. class="filebox"
  982. style="flex-wrap: nowrap"
  983. v-for="(tool, toolIndex) in chapInfoList[courseType]
  984. .chapterInfo[0].taskJson[taskCount].toolChoose"
  985. :key="toolIndex"
  986. >
  987. <div class="bzBox">
  988. <div class="yCss"></div>
  989. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  990. {{ lang.ssToolNum.replace(/\*/g, toolIndex + 1) }}
  991. </div>
  992. <div
  993. v-if="timeWorkList[toolIndex].length > 0"
  994. style="margin: 0 0 0 10px"
  995. >
  996. {{
  997. timeWorkList[toolIndex][0].time
  998. ? lang.ssTimeLabel + timeWorkList[toolIndex][0].time
  999. : ""
  1000. }}
  1001. </div>
  1002. </div>
  1003. <div class="toolBox">
  1004. <div>
  1005. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  1006. :key="indexTool"-->
  1007. <!-- <div class="iframeBox">
  1008. <div
  1009. class="addPoint isBorder"
  1010. v-for="(tooC, toolCIndex) in tool.tool"
  1011. :key="toolCIndex"
  1012. >
  1013. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  1014. <div
  1015. class="iframeName"
  1016. >
  1017. 电子白板
  1018. </div>
  1019. <iframe
  1020. src="https://iwb.cocorobo.cn/"
  1021. ref="whiteBoard"
  1022. ></iframe>
  1023. </div>
  1024. </div>
  1025. </div>-->
  1026. <div class="noiframeBox">
  1027. <div
  1028. class="addPoint"
  1029. v-for="(tooC, toolCIndex) in tool.tool"
  1030. :key="toolCIndex"
  1031. >
  1032. <div v-if="tooC == 1">
  1033. <img
  1034. src="../../assets/icon/secondToolList/whiteBoard.png"
  1035. alt
  1036. @click="addTools(tooC, toolIndex, taskCount)"
  1037. />
  1038. <div style="margin: 5px 0">{{ lang.ssWhiteboard }}</div>
  1039. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1040. style="position: absolute;right: 33px;top: -30px;">
  1041. {{ lang.ssAnalyze }}
  1042. </div>
  1043. </div>
  1044. <div v-if="tooC == 3">
  1045. <img
  1046. src="../../assets/icon/secondToolList/mindMapping.png"
  1047. alt
  1048. @click="addTools(tooC, toolIndex, taskCount)"
  1049. />
  1050. <div style="margin: 5px 0">{{ lang.ssMindMap }}</div>
  1051. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1052. style="position: absolute;right: 33px;top: -30px;">
  1053. {{ lang.ssAnalyze }}
  1054. </div>
  1055. </div>
  1056. <div v-if="tooC == 6">
  1057. <img
  1058. src="../../assets/icon/secondToolList/doc.png"
  1059. alt
  1060. @click="addTools(tooC, toolIndex, taskCount)"
  1061. />
  1062. <div style="margin: 5px 0">{{ lang.ssCoDoc }}</div>
  1063. </div>
  1064. <div v-if="tooC == 7">
  1065. <img
  1066. src="../../assets/icon/secondToolList/mindNetwork.png"
  1067. alt
  1068. @click="addTools(tooC, toolIndex, taskCount)"
  1069. />
  1070. <div style="margin: 5px 0">{{ lang.ssMindGrid }}</div>
  1071. <!-- && worksStudent[toolIndex].length>0 -->
  1072. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1073. style="position: absolute;right: 33px;top: -30px;">
  1074. {{ lang.ssAnalyze }}
  1075. </div>
  1076. </div>
  1077. <div v-if="tooC == 8">
  1078. <img
  1079. src="../../assets/icon/secondToolList/library.png"
  1080. alt
  1081. @click="addTools(tooC, toolIndex, taskCount)"
  1082. />
  1083. <div style="margin: 5px 0">{{ lang.ssMaterialLib }}</div>
  1084. </div>
  1085. <div v-if="tooC == 17">
  1086. <img
  1087. src="../../assets/icon/secondToolList/library.png"
  1088. alt
  1089. @click="addTools(tooC, toolIndex, taskCount)"
  1090. />
  1091. <div style="margin: 5px 0">{{ lang.ssLearningMaterial }}</div>
  1092. </div>
  1093. <div v-if="tooC == 2">
  1094. <img
  1095. @click="addTools(tooC, toolIndex, taskCount)"
  1096. src="../../assets/icon/secondToolList/note.png"
  1097. alt
  1098. />
  1099. <div style="margin: 5px 0">{{ lang.ssNote }}</div>
  1100. </div>
  1101. <div v-if="tooC == 4">
  1102. <img
  1103. @click="addTools(tooC, toolIndex, taskCount)"
  1104. src="../../assets/icon/thirdToolList/ask.png"
  1105. alt
  1106. />
  1107. <div style="margin: 5px 0">{{ lang.ssSurvey }}</div>
  1108. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1109. style="position: absolute;right: 153px;top: -30px;">
  1110. {{ lang.ssAnalyze }}
  1111. </div>
  1112. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1113. style="position: absolute;right: 33px;top: -30px;">
  1114. {{ lang.ssStatisticalAnalysis }}
  1115. </div>
  1116. </div>
  1117. <div v-if="tooC == 45">
  1118. <img
  1119. @click="addTools(tooC, toolIndex, taskCount)"
  1120. src="../../assets/icon/thirdToolList/choose.png"
  1121. alt
  1122. />
  1123. <div style="margin: 5px 0">{{ lang.ssChoice }}</div>
  1124. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1125. style="position: absolute;right: 33px;top: -30px;">
  1126. {{ lang.ssAnalyze }}
  1127. </div>
  1128. </div>
  1129. <!-- <div v-if="tooC == 5">
  1130. <img
  1131. @click="addTools(tooC, toolIndex, taskCount)"
  1132. src="../../assets/icon/thirdToolList/score.png"
  1133. alt
  1134. />
  1135. <div style="margin: 5px 0">量规评分</div>
  1136. </div> -->
  1137. <div v-if="tooC == 10">
  1138. <img
  1139. @click="addTools(tooC, toolIndex, taskCount)"
  1140. src="../../assets/icon/thirdToolList/time.png"
  1141. alt
  1142. />
  1143. <div style="margin: 5px 0">{{ lang.ssCountdown }}</div>
  1144. </div>
  1145. <div v-if="tooC == 15">
  1146. <img
  1147. @click="addTools(tooC, toolIndex, taskCount)"
  1148. src="../../assets/icon/thirdToolList/answer.png"
  1149. alt
  1150. />
  1151. <div style="margin: 5px 0">{{ lang.ssQa }}</div>
  1152. <div class="upload_toolBtn" v-if="tType == 1"
  1153. :style="{ right: lang.lang == 'com' ? '220px' : '135px' }"
  1154. @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1155. style="position: absolute;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1156. {{ lang.ssAnalyze }}
  1157. </div>
  1158. </div>
  1159. <div v-if="tooC == 26">
  1160. <img
  1161. @click="addTools(tooC, toolIndex, taskCount)"
  1162. src="../../assets/icon/thirdToolList/courseDesign.png"
  1163. alt
  1164. />
  1165. <div style="margin: 5px 0">{{ lang.ssCourseDesign }}</div>
  1166. </div>
  1167. <div v-if="tooC == 18">
  1168. <img
  1169. @click="addTools(tooC, toolIndex, taskCount)"
  1170. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1171. alt
  1172. />
  1173. <div style="margin: 5px 0">{{ lang.ssTrainingServer }}</div>
  1174. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1175. style="position: absolute;right: 33px;top: -30px;">
  1176. {{ lang.ssAnalyze }}
  1177. </div>
  1178. </div>
  1179. <div v-if="tooC == 16">
  1180. <img
  1181. @click="addTools(tooC, toolIndex, taskCount)"
  1182. src="../../assets/icon/thirdToolList/work.png"
  1183. alt
  1184. />
  1185. <div style="margin: 5px 0">{{ lang.ssHomework }}</div>
  1186. </div>
  1187. <div v-if="tooC == 50">
  1188. <img
  1189. @click="addTools(tooC, toolIndex, taskCount)"
  1190. src="../../assets/icon/thirdToolList/plwork.png"
  1191. alt
  1192. />
  1193. <div style="margin: 5px 0">{{ lang.ssBatchUpload }}</div>
  1194. </div>
  1195. <div v-if="tooC == 21">
  1196. <img
  1197. @click="addTools(tooC, toolIndex, taskCount)"
  1198. src="../../assets/icon/fourthToolList/program.png"
  1199. alt
  1200. />
  1201. <div style="margin: 5px 0">AIoT Blockly</div>
  1202. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1203. style="position: absolute;right: 33px;top: -30px;">
  1204. {{ lang.ssAnalyze }}
  1205. </div>
  1206. </div>
  1207. <!-- <div v-if="tooC == 22">
  1208. <img
  1209. @click="addTools(tooC, toolIndex, taskCount)"
  1210. src="../../assets/icon/fourthToolList/program.png"
  1211. alt
  1212. />
  1213. <div style="margin: 5px 0">AI体验</div>
  1214. </div> -->
  1215. <div v-if="tooC == 23">
  1216. <img
  1217. @click="addTools(tooC, toolIndex, taskCount)"
  1218. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1219. alt
  1220. />
  1221. <div style="margin: 5px 0">AI Python</div>
  1222. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1223. style="position: absolute;right: 33px;top: -30px;">
  1224. {{ lang.ssAnalyze }}
  1225. </div>
  1226. </div>
  1227. <div v-if="tooC == 24">
  1228. <img
  1229. @click="addTools(tooC, toolIndex, taskCount)"
  1230. src="../../assets/icon/fourthToolList/AIprogram.png"
  1231. alt
  1232. />
  1233. <div style="margin: 5px 0">AI Blockly</div>
  1234. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1235. style="position: absolute;right: 33px;top: -30px;">
  1236. {{ lang.ssAnalyze }}
  1237. </div>
  1238. </div>
  1239. <div v-if="tooC == 25">
  1240. <img
  1241. @click="addTools(tooC, toolIndex, taskCount)"
  1242. src="../../assets/icon/thirdToolList/evalua.png"
  1243. alt
  1244. />
  1245. <div style="margin: 5px 0">{{ lang.ssGoalManage }}</div>
  1246. </div>
  1247. <div v-if="tooC == 31">
  1248. <img
  1249. @click="addTools(tooC, toolIndex, taskCount)"
  1250. src="../../assets/icon/secondToolList/networkPanel.png"
  1251. alt
  1252. />
  1253. <div style="margin: 5px 0">{{ lang.ssMathBoard }}</div>
  1254. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1255. style="position: absolute;right: 33px;top: -30px;">
  1256. {{ lang.ssAnalyze }}
  1257. </div>
  1258. </div>
  1259. <div v-if="tooC == 28">
  1260. <img
  1261. @click="addTools(tooC, toolIndex, taskCount)"
  1262. src="../../assets/icon/secondToolList/translation.png"
  1263. alt
  1264. />
  1265. <div style="margin: 5px 0">{{ lang.ssTranslate }}</div>
  1266. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1267. style="position: absolute;right: 33px;top: -30px;">
  1268. {{ lang.ssAnalyze }}
  1269. </div>
  1270. </div>
  1271. <div v-if="tooC == 37">
  1272. <img
  1273. @click="addTools(tooC, toolIndex, taskCount)"
  1274. src="../../assets/icon/secondToolList/mohe.png"
  1275. alt
  1276. />
  1277. <div style="margin: 5px 0">{{ lang.ssMohe }}</div>
  1278. </div>
  1279. <div v-if="tooC == 38">
  1280. <img
  1281. @click="addTools(tooC, toolIndex, taskCount)"
  1282. src="../../assets/icon/secondToolList/24game.png"
  1283. alt
  1284. />
  1285. <div style="margin: 5px 0">{{ lang.ss24Game }}</div>
  1286. </div>
  1287. <div v-if="tooC == 39">
  1288. <img
  1289. @click="addTools(tooC, toolIndex, taskCount)"
  1290. src="../../assets/icon/secondToolList/GeoGebra.png"
  1291. alt
  1292. />
  1293. <div style="margin: 5px 0">GeoGebra</div>
  1294. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1295. style="position: absolute;right: 33px;top: -30px;">
  1296. {{ lang.ssAnalyze }}
  1297. </div>
  1298. </div>
  1299. <div v-if="tooC == 32">
  1300. <img
  1301. @click="addTools(tooC, toolIndex, taskCount)"
  1302. src="../../assets/icon/thirdToolList/code.png"
  1303. alt
  1304. />
  1305. <div style="margin: 5px 0">{{ lang.ssCodeEdit }}</div>
  1306. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1307. style="position: absolute;right: 153px;top: -42px;">
  1308. {{ lang.ssAnalyze }}
  1309. </div>
  1310. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1311. style="position: absolute;left: 110px;bottom: 30px;">
  1312. 上传文件
  1313. <input type="file" accept="*" style="display: none"
  1314. @change="beforeUpload1($event, 7, toolIndex)" />
  1315. </div> -->
  1316. </div>
  1317. <div v-if="tooC == 40">
  1318. <img
  1319. @click="addTools(tooC, toolIndex, taskCount)"
  1320. src="../../assets/icon/secondToolList/eval.png"
  1321. alt
  1322. />
  1323. <div style="margin: 5px 0">{{ lang.ssPersonalEval }}</div>
  1324. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1325. style="position: absolute;right: 33px;top: -30px;">
  1326. {{ lang.ssAnalyze }}
  1327. </div>
  1328. </div>
  1329. <div v-if="tooC == 41">
  1330. <img
  1331. @click="addTools(tooC, toolIndex, taskCount)"
  1332. src="../../assets/icon/thirdToolList/select.png"
  1333. alt
  1334. />
  1335. <div style="margin: 5px 0">{{ lang.ssMatch }}</div>
  1336. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1337. style="position: absolute;right: 33px;top: -30px;">
  1338. {{ lang.ssAnalyze }}
  1339. </div>
  1340. </div>
  1341. <div v-if="tooC == 44">
  1342. <img
  1343. @click="addTools(tooC, toolIndex, taskCount)"
  1344. src="../../assets/icon/thirdToolList/hanClass.png"
  1345. alt
  1346. />
  1347. <div style="margin: 5px 0">{{ lang.ssHanziPalace }}</div>
  1348. </div>
  1349. <div v-if="tooC == 47">
  1350. <img
  1351. @click="addTools(tooC, toolIndex, taskCount)"
  1352. src="../../assets/icon/fourthToolList/conSentences.png"
  1353. alt
  1354. />
  1355. <div style="margin: 5px 0">{{ lang.ssSort }}</div>
  1356. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1357. style="position: absolute;right: 33px;top: -30px;">
  1358. {{ lang.ssAnalyze }}
  1359. </div>
  1360. </div>
  1361. <div v-if="tooC == 48">
  1362. <img
  1363. @click="addTools(tooC, toolIndex, taskCount)"
  1364. src="../../assets/icon/fourthToolList/table.png"
  1365. alt
  1366. />
  1367. <div style="margin: 5px 0">{{ lang.ssTable }}</div>
  1368. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1369. style="position: absolute;right: 33px;top: -30px;">
  1370. {{ lang.ssAnalyze }}
  1371. </div>
  1372. </div>
  1373. <div v-if="tooC == 52">
  1374. <img
  1375. @click="addTools(tooC, toolIndex, taskCount)"
  1376. src="../../assets/icon/fourthToolList/text.png"
  1377. alt
  1378. />
  1379. <div style="margin: 5px 0">{{ lang.ssDocument }}</div>
  1380. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1381. style="position: absolute;right: 33px;top: -30px;">
  1382. {{ lang.ssAnalyze }}
  1383. </div>
  1384. </div>
  1385. <div v-if="tooC == 49">
  1386. <img
  1387. @click="addTools(tooC, toolIndex, taskCount)"
  1388. src="../../assets/icon/fourthToolList/group.png"
  1389. alt
  1390. />
  1391. <div style="margin: 5px 0">{{ lang.ssStudentGroup }}</div>
  1392. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1393. style="position: absolute;right: 33px;top: -30px;">
  1394. {{ lang.ssAnalyze }}
  1395. </div>
  1396. </div>
  1397. <div v-if="tooC == 57">
  1398. <img
  1399. @click="addTools(tooC, toolIndex, taskCount)"
  1400. src="../../assets/icon/fourthToolList/cocopi.png"
  1401. alt
  1402. />
  1403. <div style="margin: 5px 0">CocoPi</div>
  1404. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1405. style="position: absolute;right: 33px;top: -30px;">
  1406. {{ lang.ssAnalyze }}
  1407. </div>
  1408. </div>
  1409. <div v-if="tooC == 58">
  1410. <img
  1411. @click="addTools(tooC, toolIndex, taskCount)"
  1412. src="../../assets/icon/fourthToolList/car.png"
  1413. alt
  1414. />
  1415. <div style="margin: 5px 0">{{ lang.ssSimulateDrive }}</div>
  1416. </div>
  1417. <div v-if="tooC == 59">
  1418. <img
  1419. @click="addTools(tooC, toolIndex, taskCount)"
  1420. src="../../assets/icon/fourthToolList/lineSearch.png"
  1421. alt
  1422. />
  1423. <div style="margin: 5px 0">{{ lang.ssPathSearch }}</div>
  1424. </div>
  1425. <div v-if="tooC == 60">
  1426. <img
  1427. @click="addTools(tooC, toolIndex, taskCount)"
  1428. src="../../assets/icon/fourthToolList/deepLearning.png"
  1429. alt
  1430. />
  1431. <div style="margin: 5px 0">{{ lang.ssDeepLearning }}</div>
  1432. </div>
  1433. <div v-if="tooC == 61">
  1434. <img
  1435. @click="addTools(tooC, toolIndex, taskCount)"
  1436. src="../../assets/icon/fourthToolList/allHistory.png"
  1437. alt
  1438. />
  1439. <div style="margin: 5px 0">{{ lang.ssAllHistory }}</div>
  1440. </div>
  1441. <div v-if="tooC == 62">
  1442. <img
  1443. @click="addTools(tooC, toolIndex, taskCount)"
  1444. src="../../assets/icon/fourthToolList/interVideo.png"
  1445. alt
  1446. />
  1447. <div style="margin: 5px 0">{{ lang.ssInteractiveVideo }}</div>
  1448. </div>
  1449. <div v-if="tooC == 63">
  1450. <img
  1451. @click="addTools(tooC, toolIndex, taskCount)"
  1452. src="../../assets/icon/fourthToolList/Wood.png"
  1453. alt
  1454. />
  1455. <div style="margin: 5px 0">{{ lang.ssTurtle }}</div>
  1456. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1457. style="position: absolute;right: 33px;top: -30px;">
  1458. {{ lang.ssAnalyze }}
  1459. </div>
  1460. </div>
  1461. <div v-if="tooC == 71">
  1462. <img
  1463. @click="addTools(tooC, toolIndex, taskCount)"
  1464. src="../../assets/icon/fourthToolList/chatgpt.png"
  1465. alt
  1466. />
  1467. <div style="margin: 5px 0">{{ lang.ssAiAgent }}</div>
  1468. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1469. style="position: absolute;right: 33px;top: -30px;">
  1470. {{ lang.ssAnalyze }}
  1471. </div>
  1472. </div>
  1473. <div v-if="tooC == 72">
  1474. <img
  1475. style="height: 85px;object-fit: cover;"
  1476. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1477. @click="addTools(tooC, toolIndex, taskCount)"
  1478. :src="tool.appJson.json.icon"
  1479. alt
  1480. />
  1481. <img
  1482. v-else
  1483. @click="addTools(tooC, toolIndex, taskCount)"
  1484. src="../../assets/icon/firstToolList/appStore.png"
  1485. alt
  1486. />
  1487. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : lang.ssAppCenter" placement="top" effect="dark">
  1488. <!-- content to trigger tooltip here -->
  1489. <div class="Ovh">
  1490. {{tool.appJson && tool.appJson.name ? tool.appJson.name : lang.ssAppCenter}}
  1491. </div>
  1492. </el-tooltip>
  1493. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1494. style="position: absolute;right: 33px;top: -30px;">
  1495. {{ lang.ssAnalyze }}
  1496. </div>
  1497. </div>
  1498. <div v-if="tooC == 73">
  1499. <img
  1500. src="../../assets/icon/secondToolList/ppt.png"
  1501. alt
  1502. @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,73)"
  1503. />
  1504. <div style="margin: 5px 0">PPT</div>
  1505. </div>
  1506. <div v-if="tooC == 65">
  1507. <img
  1508. @click="addTools(tooC, toolIndex, taskCount)"
  1509. src="../../assets/icon/firstToolList/pickPeople.png"
  1510. alt
  1511. />
  1512. <div style="margin: 5px 0">{{ lang.ssPickPerson }}</div>
  1513. </div>
  1514. <div v-if="tooC == 66">
  1515. <img
  1516. @click="addTools(tooC, toolIndex, taskCount)"
  1517. src="../../assets/icon/secondToolList/formulaEdi.png"
  1518. alt
  1519. />
  1520. <div style="margin: 5px 0">{{ lang.ssFormula }}</div>
  1521. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1522. style="position: absolute;right: 33px;top: -30px;">
  1523. {{ lang.ssAnalyze }}
  1524. </div>
  1525. </div>
  1526. <div v-if="tooC == 67">
  1527. <img
  1528. @click="addTools(tooC, toolIndex, taskCount)"
  1529. src="../../assets/icon/secondToolList/molStr.png"
  1530. alt
  1531. />
  1532. <div style="margin: 5px 0">{{ lang.ssMolecule }}</div>
  1533. </div>
  1534. <div v-if="tooC == 68">
  1535. <img
  1536. @click="addTools(tooC, toolIndex, taskCount)"
  1537. src="../../assets/icon/secondToolList/timeAxis.png"
  1538. alt
  1539. />
  1540. <div style="margin: 5px 0">{{ lang.ssTimeline }}</div>
  1541. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1542. style="position: absolute;right: 33px;top: -30px;">
  1543. 分析
  1544. </div> -->
  1545. </div>
  1546. <div v-if="tooC == 69">
  1547. <img
  1548. @click="addTools(tooC, toolIndex, taskCount)"
  1549. src="../../assets/icon/secondToolList/english.png"
  1550. alt
  1551. />
  1552. <div style="margin: 5px 0">{{ lang.ssEnglishWrite }}</div>
  1553. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1554. style="position: absolute;right: 33px;top: -30px;">
  1555. {{ lang.ssAnalyze }}
  1556. </div>
  1557. </div>
  1558. <div v-if="tooC == 70">
  1559. <img
  1560. @click="addTools(tooC, toolIndex, taskCount)"
  1561. src="../../assets/icon/thirdToolList/englishVoice.png"
  1562. alt
  1563. />
  1564. <div style="margin: 5px 0">{{ lang.ssEnglishSpeak }}</div>
  1565. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1566. style="position: absolute;right: 33px;top: -30px;">
  1567. {{ lang.ssAnalyze }}
  1568. </div>
  1569. </div>
  1570. </div>
  1571. </div>
  1572. </div>
  1573. <div class="tooldetail renderedFor" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1574. <!-- <div class="toolTitle">工具描述</div> -->
  1575. <!-- @click.stop="updateToolDetail(toolIndex, 2)" 点击开启修改-->
  1576. <div style="height:100%;"
  1577. v-html="tool.toolDetail"
  1578. v-if="toolDetailIndex != toolIndex"
  1579. ></div>
  1580. <div v-else @click.stop="" style="height:100%;">
  1581. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" :placeholder="lang.ssEnterTaskDesc" v-model="updateToolDetailInner"></textarea>
  1582. </div>
  1583. </div>
  1584. <el-button
  1585. type="primary"
  1586. v-if="tool.tool[0] == 32"
  1587. style="position: absolute; right: 30px; top: -45px"
  1588. @click="addImg($event)"
  1589. >{{ lang.ssUploadHomework }}<input
  1590. type="file"
  1591. accept="*"
  1592. style="display: none"
  1593. @change="beforeUpload1($event, 7, toolIndex)"
  1594. /></el-button>
  1595. <el-button
  1596. type="primary"
  1597. v-if="tool.tool[0] == 15"
  1598. style="position: absolute; right: 30px; top: -45px"
  1599. @click="openWordCloud(toolIndex)"
  1600. >{{ lang.ssGenerateWordCloud }}
  1601. </el-button>
  1602. <el-button
  1603. type="primary"
  1604. v-if="
  1605. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1 && tType==1
  1606. "
  1607. style="position: absolute; right: 30px; top: -45px"
  1608. @click="uploadWorks(toolIndex)"
  1609. >{{ lang.ssExportHomework }}
  1610. </el-button>
  1611. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1612. position: absolute;
  1613. right: 30px;
  1614. transform: translateY(-130%);
  1615. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1616. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1617. </div>
  1618. <div
  1619. v-if="
  1620. tType &&
  1621. tType == 2 &&
  1622. !sIsOpen &&
  1623. tool.tool.indexOf(16) != -1
  1624. "
  1625. class="worksBox"
  1626. >
  1627. <div
  1628. class="zuoyeYulan"
  1629. v-if="workStudent[toolIndex].length > 0"
  1630. >
  1631. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1632. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1633. </div>
  1634. <div
  1635. class="worksDetailBox"
  1636. v-if="workStudent[toolIndex].length > 0"
  1637. >
  1638. <div
  1639. class="works"
  1640. style="
  1641. width: 200px;
  1642. height: 140px;
  1643. margin: 10px 10px 10px 0;
  1644. box-shadow: 0 0 6px 1px #dfdada;
  1645. "
  1646. v-for="(w, wIndex) in workStudent[toolIndex]"
  1647. :key="wIndex"
  1648. >
  1649. <div class="workImg" v-if="w.type == 0">
  1650. <img
  1651. :src="w.works"
  1652. @click="previewImg(w.works,w)"
  1653. alt
  1654. />
  1655. <div
  1656. class="answerScore"
  1657. v-if="w.score"
  1658. @click.stop="openScore(w)"
  1659. :class="{
  1660. rightW:
  1661. w.userid == userid || tType == 1 || tType == 4,
  1662. }"
  1663. >
  1664. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1665. </div>
  1666. <div
  1667. class="answerScore"
  1668. @click.stop="openScore(w)"
  1669. v-else-if="courseDetail.userid == userid"
  1670. :class="{
  1671. rightW:
  1672. w.userid == userid || tType == 1 || tType == 4,
  1673. }"
  1674. >
  1675. {{ lang.ssMarkScore }}
  1676. </div>
  1677. <img
  1678. class="deleteImg"
  1679. src="../../assets/deleteworks.png"
  1680. v-if="
  1681. w.userid == userid || tType == 1 || tType == 4
  1682. "
  1683. @click.stop="deleteWorks(w.wid)"
  1684. alt
  1685. />
  1686. </div>
  1687. <div class="workImg" v-if="w.type == 1">
  1688. <img :src="word" @click="openFile(w.works)" alt />
  1689. <div
  1690. class="answerScore"
  1691. v-if="w.score"
  1692. @click.stop="openScore(w)"
  1693. :class="{
  1694. rightW:
  1695. w.userid == userid || tType == 1 || tType == 4,
  1696. }"
  1697. >
  1698. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1699. </div>
  1700. <div
  1701. class="answerScore"
  1702. @click.stop="openScore(w)"
  1703. v-else-if="courseDetail.userid == userid"
  1704. :class="{
  1705. rightW:
  1706. w.userid == userid || tType == 1 || tType == 4,
  1707. }"
  1708. >
  1709. {{ lang.ssMarkScore }}
  1710. </div>
  1711. <img
  1712. class="deleteImg"
  1713. src="../../assets/deleteworks.png"
  1714. v-if="
  1715. w.userid == userid || tType == 1 || tType == 4
  1716. "
  1717. @click.stop="deleteWorks(w.wid)"
  1718. alt
  1719. />
  1720. </div>
  1721. <div class="workImg" v-if="w.type == 3">
  1722. <img
  1723. style="cursor: pointer"
  1724. :src="video"
  1725. @click="openVideo(w)"
  1726. alt
  1727. />
  1728. <div
  1729. class="answerScore"
  1730. v-if="w.score"
  1731. @click.stop="openScore(w)"
  1732. :class="{
  1733. rightW:
  1734. w.userid == userid || tType == 1 || tType == 4,
  1735. }"
  1736. >
  1737. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1738. </div>
  1739. <div
  1740. class="answerScore"
  1741. @click.stop="openScore(w)"
  1742. v-else-if="courseDetail.userid == userid"
  1743. :class="{
  1744. rightW:
  1745. w.userid == userid || tType == 1 || tType == 4,
  1746. }"
  1747. >
  1748. {{ lang.ssMarkScore }}
  1749. </div>
  1750. <img
  1751. class="deleteImg"
  1752. src="../../assets/deleteworks.png"
  1753. v-if="
  1754. w.userid == userid || tType == 1 || tType == 4
  1755. "
  1756. @click.stop="deleteWorks(w.wid)"
  1757. alt
  1758. />
  1759. </div>
  1760. <div class="workImg" v-if="w.type == 12">
  1761. <img
  1762. style="cursor: pointer"
  1763. :src="word2"
  1764. @click="downloadFile(w.works,w.userid)"
  1765. alt
  1766. />
  1767. <div
  1768. class="answerScore"
  1769. v-if="w.score"
  1770. @click.stop="openScore(w)"
  1771. :class="{
  1772. rightW:
  1773. w.userid == userid || tType == 1 || tType == 4,
  1774. }"
  1775. >
  1776. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1777. </div>
  1778. <div
  1779. class="answerScore"
  1780. @click.stop="openScore(w)"
  1781. v-else-if="courseDetail.userid == userid"
  1782. :class="{
  1783. rightW:
  1784. w.userid == userid || tType == 1 || tType == 4,
  1785. }"
  1786. >
  1787. {{ lang.ssMarkScore }}
  1788. </div>
  1789. <img
  1790. class="deleteImg"
  1791. src="../../assets/deleteworks.png"
  1792. v-if="
  1793. w.userid == userid || tType == 1 || tType == 4
  1794. "
  1795. @click.stop="deleteWorks(w.wid)"
  1796. alt
  1797. />
  1798. </div>
  1799. <div class="worksName">
  1800. <div>{{ w.sName }}</div>
  1801. </div>
  1802. </div>
  1803. </div>
  1804. </div>
  1805. <div
  1806. v-if="
  1807. tType &&
  1808. tType == 2 &&
  1809. !sIsOpen &&
  1810. tool.tool.indexOf(32) != -1
  1811. "
  1812. class="worksBox"
  1813. >
  1814. <div
  1815. class="zuoyeYulan"
  1816. v-if="workStudent[toolIndex].length > 0"
  1817. >
  1818. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1819. </div>
  1820. <div
  1821. class="worksDetailBox"
  1822. v-if="workStudent[toolIndex].length > 0"
  1823. >
  1824. <div
  1825. class="works"
  1826. style="
  1827. width: 200px;
  1828. height: 140px;
  1829. margin: 10px 10px 10px 0;
  1830. box-shadow: 0 0 6px 1px #dfdada;
  1831. "
  1832. v-for="(w, wIndex) in workStudent[toolIndex]"
  1833. :key="wIndex"
  1834. >
  1835. <div class="workImg">
  1836. <img
  1837. :src="word2"
  1838. @click="downloadFile(w.works,w.userid)"
  1839. alt
  1840. />
  1841. <div
  1842. class="answerScore"
  1843. v-if="w.score"
  1844. @click.stop="openScore(w)"
  1845. :class="{
  1846. rightW:
  1847. w.userid == userid || tType == 1 || tType == 4,
  1848. }"
  1849. >
  1850. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1851. </div>
  1852. <div
  1853. class="answerScore"
  1854. @click.stop="openScore(w)"
  1855. v-else-if="courseDetail.userid == userid"
  1856. :class="{
  1857. rightW:
  1858. w.userid == userid || tType == 1 || tType == 4,
  1859. }"
  1860. >
  1861. {{ lang.ssMarkScore }}
  1862. </div>
  1863. <img
  1864. class="deleteImg"
  1865. src="../../assets/deleteworks.png"
  1866. v-if="
  1867. w.userid == userid || tType == 1 || tType == 4
  1868. "
  1869. @click.stop="deleteWorks(w.wid)"
  1870. alt
  1871. />
  1872. </div>
  1873. <div class="worksName">
  1874. <div>{{ w.sName }}</div>
  1875. </div>
  1876. </div>
  1877. </div>
  1878. </div>
  1879. <div
  1880. v-if="
  1881. tType &&
  1882. tType == 2 &&
  1883. !sIsOpen &&
  1884. tool.tool.indexOf(57) != -1
  1885. "
  1886. class="worksBox"
  1887. >
  1888. <div
  1889. class="zuoyeYulan"
  1890. v-if="workStudent[toolIndex].length > 0"
  1891. >
  1892. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1893. </div>
  1894. <div
  1895. class="worksDetailBox"
  1896. v-if="workStudent[toolIndex].length > 0"
  1897. >
  1898. <div
  1899. class="works"
  1900. style="
  1901. width: 200px;
  1902. height: 140px;
  1903. margin: 10px 10px 10px 0;
  1904. box-shadow: 0 0 6px 1px #dfdada;
  1905. "
  1906. v-for="(w, wIndex) in workStudent[toolIndex]"
  1907. :key="wIndex"
  1908. >
  1909. <div class="workImg">
  1910. <img
  1911. :src="word2"
  1912. @click="downloadFile(w.works,w.userid)"
  1913. v-if="w.type == 12"
  1914. alt
  1915. />
  1916. <img
  1917. :src="word2"
  1918. @click="
  1919. openCocoPi(57, toolIndex, w.userid, w.sName)
  1920. "
  1921. v-else-if="w.type == 15"
  1922. alt
  1923. />
  1924. <div
  1925. class="answerScore"
  1926. v-if="w.score"
  1927. @click.stop="openScore(w)"
  1928. :class="{
  1929. rightW:
  1930. w.userid == userid || tType == 1 || tType == 4,
  1931. }"
  1932. >
  1933. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1934. </div>
  1935. <div
  1936. class="answerScore"
  1937. @click.stop="openScore(w)"
  1938. v-else-if="courseDetail.userid == userid"
  1939. :class="{
  1940. rightW:
  1941. w.userid == userid || tType == 1 || tType == 4,
  1942. }"
  1943. >
  1944. {{ lang.ssMarkScore }}
  1945. </div>
  1946. <img
  1947. class="deleteImg"
  1948. src="../../assets/deleteworks.png"
  1949. v-if="
  1950. w.userid == userid || tType == 1 || tType == 4
  1951. "
  1952. @click.stop="deleteWorks(w.wid)"
  1953. alt
  1954. />
  1955. </div>
  1956. <div class="worksName">
  1957. <div>{{ w.sName }}</div>
  1958. </div>
  1959. </div>
  1960. </div>
  1961. </div>
  1962. <div
  1963. v-if="
  1964. tType &&
  1965. tType == 2 &&
  1966. !sIsOpen &&
  1967. tool.tool.indexOf(4) != -1
  1968. "
  1969. class="worksBox"
  1970. >
  1971. <div
  1972. class="zuoyeYulan"
  1973. v-if="workStudent[toolIndex].length > 0"
  1974. >
  1975. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1976. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1977. </div>
  1978. <div
  1979. class="worksDetailBox"
  1980. v-if="workStudent[toolIndex].length > 0"
  1981. >
  1982. <div
  1983. class="isWorksName2"
  1984. v-for="(w, wIndex) in workStudent[toolIndex]"
  1985. :key="wIndex"
  1986. @click="
  1987. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1988. "
  1989. >
  1990. {{ w.sName }}
  1991. <img
  1992. class="deleteImg deleteImg2"
  1993. src="../../assets/deleteworks.png"
  1994. v-if="w.userid == userid || tType == 1 || tType == 4"
  1995. @click.stop="deleteWorks(w.wid)"
  1996. alt
  1997. />
  1998. </div>
  1999. <!-- <div
  2000. class="works"
  2001. style="
  2002. width: 200px;
  2003. height: 140px;
  2004. border-radius: 10px;
  2005. box-shadow: 0 0 6px 1px #dfdada;
  2006. overflow: hidden;
  2007. "
  2008. v-for="(w, wIndex) in workStudent[toolIndex]"
  2009. :key="wIndex"
  2010. >
  2011. <div class="workImg">
  2012. <img
  2013. src="../../assets/icon/works/noImg.png"
  2014. @click="
  2015. openTools(
  2016. 4,
  2017. toolIndex,
  2018. taskCount,
  2019. w.works,
  2020. w.sName
  2021. )
  2022. "
  2023. alt
  2024. />
  2025. </div>
  2026. <div class="worksName">
  2027. <div>{{ w.sName }}</div>
  2028. <div>{{ w.time }}</div>
  2029. </div>
  2030. </div> -->
  2031. </div>
  2032. </div>
  2033. <div
  2034. v-if="
  2035. tType &&
  2036. ((tType == 2 && sIsOpen == true) ||
  2037. tType == 1 ||
  2038. tType == 4) &&
  2039. tool.tool.indexOf(62) != -1
  2040. "
  2041. class="worksBox"
  2042. >
  2043. <div
  2044. class="zuoyeYulan"
  2045. v-if="
  2046. worksStudent.length &&
  2047. worksStudent[toolIndex].length > 0
  2048. "
  2049. >
  2050. <div class="worksTop">
  2051. <div>{{ lang.ssHomeworkPreview }}</div>
  2052. <div
  2053. class="corOpen"
  2054. @click="contract(toolIndex)"
  2055. v-if="
  2056. (isCloseList[toolIndex].isCloseBoolean) &&
  2057. isCloseList[toolIndex].isClose == 0
  2058. "
  2059. >
  2060. {{ lang.ssFold }}
  2061. </div>
  2062. <div
  2063. class="corOpen"
  2064. @click="contract(toolIndex)"
  2065. v-if="isCloseList[toolIndex].isClose == 1"
  2066. >
  2067. {{ lang.ssExpand }}
  2068. </div>
  2069. </div>
  2070. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2071. </div>
  2072. <div>
  2073. <div
  2074. :id="'tool-' + toolIndex"
  2075. :style="{
  2076. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2077. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2078. }"
  2079. class="worksDetailBox"
  2080. v-if="
  2081. worksStudent.length &&
  2082. worksStudent[toolIndex].length > 0
  2083. "
  2084. >
  2085. <div
  2086. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2087. :key="wIndex"
  2088. class="isWorksName2"
  2089. @click="
  2090. openTools(
  2091. 62,
  2092. toolIndex,
  2093. taskCount,
  2094. w.works,
  2095. w.sName
  2096. )
  2097. "
  2098. >
  2099. {{ w.sName }}
  2100. <img
  2101. class="deleteImg deleteImg2"
  2102. src="../../assets/deleteworks.png"
  2103. v-if="
  2104. w.userid == userid || tType == 1 || tType == 4
  2105. "
  2106. @click.stop="deleteWorks(w.wid)"
  2107. alt
  2108. />
  2109. </div>
  2110. </div>
  2111. </div>
  2112. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2113. {{ lang.ssNotSubmitted }}
  2114. </div>
  2115. <div
  2116. class="noWorksS"
  2117. v-if="noWorksS && noWorksS[toolIndex].length"
  2118. >
  2119. <div
  2120. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2121. :key="sIndex"
  2122. class="noWorksName"
  2123. >
  2124. <el-tooltip effect="dark" :content="s.student" placement="top">
  2125. <span>{{ s.student }}</span>
  2126. </el-tooltip>
  2127. </div>
  2128. </div>
  2129. </div>
  2130. <div
  2131. v-if="
  2132. tType &&
  2133. tType == 2 &&
  2134. !sIsOpen &&
  2135. tool.tool.indexOf(62) != -1
  2136. "
  2137. class="worksBox"
  2138. >
  2139. <div
  2140. class="zuoyeYulan"
  2141. v-if="workStudent[toolIndex].length > 0"
  2142. >
  2143. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2144. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2145. </div>
  2146. <div
  2147. class="worksDetailBox"
  2148. v-if="workStudent[toolIndex].length > 0"
  2149. >
  2150. <div
  2151. class="isWorksName2"
  2152. v-for="(w, wIndex) in workStudent[toolIndex]"
  2153. :key="wIndex"
  2154. @click="
  2155. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2156. "
  2157. >
  2158. {{ w.sName }}
  2159. <img
  2160. class="deleteImg deleteImg2"
  2161. src="../../assets/deleteworks.png"
  2162. v-if="w.userid == userid || tType == 1 || tType == 4"
  2163. @click.stop="deleteWorks(w.wid)"
  2164. alt
  2165. />
  2166. </div>
  2167. </div>
  2168. </div>
  2169. <div
  2170. v-if="
  2171. tType &&
  2172. tType == 2 &&
  2173. !sIsOpen &&
  2174. tool.tool.indexOf(45) != -1
  2175. "
  2176. class="worksBox"
  2177. >
  2178. <div
  2179. class="zuoyeYulan"
  2180. v-if="workStudent[toolIndex].length > 0"
  2181. >
  2182. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2183. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2184. </div>
  2185. <div
  2186. class="worksDetailBox"
  2187. v-if="workStudent[toolIndex].length > 0"
  2188. >
  2189. <div
  2190. class="isWorksName2"
  2191. v-for="(w, wIndex) in workStudent[toolIndex]"
  2192. :key="wIndex"
  2193. @click="
  2194. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2195. "
  2196. >
  2197. {{ w.sName }}
  2198. <img
  2199. class="deleteImg deleteImg2"
  2200. src="../../assets/deleteworks.png"
  2201. v-if="w.userid == userid || tType == 1 || tType == 4"
  2202. @click.stop="deleteWorks(w.wid)"
  2203. alt
  2204. />
  2205. </div>
  2206. </div>
  2207. </div>
  2208. <div
  2209. v-if="
  2210. tType &&
  2211. tType == 2 &&
  2212. !sIsOpen &&
  2213. tool.tool.indexOf(69) != -1
  2214. "
  2215. class="worksBox"
  2216. >
  2217. <div
  2218. class="zuoyeYulan"
  2219. v-if="workStudent[toolIndex].length > 0"
  2220. >
  2221. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2222. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2223. </div>
  2224. <div
  2225. class="worksDetailBox"
  2226. v-if="workStudent[toolIndex].length > 0"
  2227. >
  2228. <div
  2229. class="isWorksName2"
  2230. v-for="(w, wIndex) in workStudent[toolIndex]"
  2231. :key="wIndex"
  2232. @click="
  2233. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2234. "
  2235. >
  2236. {{ w.sName }}
  2237. <img
  2238. class="deleteImg deleteImg2"
  2239. src="../../assets/deleteworks.png"
  2240. v-if="w.userid == userid || tType == 1 || tType == 4"
  2241. @click.stop="deleteWorks(w.wid)"
  2242. alt
  2243. />
  2244. </div>
  2245. </div>
  2246. </div>
  2247. <div
  2248. v-if="
  2249. tType &&
  2250. tType == 2 &&
  2251. !sIsOpen &&
  2252. tool.tool.indexOf(15) != -1
  2253. "
  2254. class="worksBox"
  2255. >
  2256. <div
  2257. class="zuoyeYulan"
  2258. v-if="workStudent[toolIndex].length > 0"
  2259. >
  2260. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2261. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2262. </div>
  2263. <div
  2264. class="worksDetailBox"
  2265. v-if="workStudent[toolIndex].length > 0"
  2266. >
  2267. <div
  2268. class="works"
  2269. v-for="(w, wIndex) in workStudent[toolIndex]"
  2270. :key="wIndex"
  2271. >
  2272. <div class="workImg">
  2273. <!-- <img
  2274. src="../../assets/icon/works/noImg.png"
  2275. @click="openTools(15, toolIndex, taskCount, w.works)"
  2276. alt=""
  2277. />-->
  2278. <div class="answerBg">
  2279. <!-- <div>{{ w.sName }}</div> -->
  2280. <el-tooltip
  2281. class="item"
  2282. effect="light"
  2283. :content="JSON.parse(w.works)[0].answer"
  2284. placement="top"
  2285. >
  2286. <div class="answerContent">
  2287. {{ JSON.parse(w.works)[0].answer }}
  2288. </div>
  2289. </el-tooltip>
  2290. <div
  2291. class="answerScore"
  2292. v-if="w.score"
  2293. @click.stop="openScore(w)"
  2294. :class="{
  2295. rightW:
  2296. w.userid == userid ||
  2297. tType == 1 ||
  2298. tType == 4,
  2299. }"
  2300. >
  2301. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2302. </div>
  2303. <div
  2304. class="answerScore"
  2305. @click.stop="openScore(w)"
  2306. v-else-if="courseDetail.userid == userid"
  2307. :class="{
  2308. rightW:
  2309. w.userid == userid ||
  2310. tType == 1 ||
  2311. tType == 4,
  2312. }"
  2313. >
  2314. {{ lang.ssMarkScore }}
  2315. </div>
  2316. <img
  2317. class="deleteImg"
  2318. src="../../assets/deleteworks.png"
  2319. v-if="
  2320. w.userid == userid || tType == 1 || tType == 4
  2321. "
  2322. @click.stop="deleteWorks(w.wid)"
  2323. alt
  2324. />
  2325. </div>
  2326. <div class="comment">
  2327. <div class="worksName">
  2328. <div>{{ w.sName }}</div>
  2329. </div>
  2330. </div>
  2331. </div>
  2332. </div>
  2333. </div>
  2334. </div>
  2335. <div
  2336. v-if="
  2337. tType &&
  2338. tType == 2 &&
  2339. !sIsOpen &&
  2340. tool.tool.indexOf(1) != -1
  2341. "
  2342. class="worksBox"
  2343. >
  2344. <div
  2345. class="zuoyeYulan"
  2346. v-if="workStudent[toolIndex].length > 0"
  2347. >
  2348. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2349. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2350. </div>
  2351. <div
  2352. class="worksDetailBox"
  2353. v-if="workStudent[toolIndex].length > 0"
  2354. >
  2355. <div
  2356. class="works"
  2357. style="
  2358. width: 200px;
  2359. height: 140px;
  2360. margin: 10px 10px 10px 0;
  2361. box-shadow: 0 0 6px 1px #dfdada;
  2362. "
  2363. v-for="(w, wIndex) in workStudent[toolIndex]"
  2364. :key="wIndex"
  2365. >
  2366. <div class="workImg">
  2367. <img
  2368. :src="w.works"
  2369. @click="previewImg(w.works,w)"
  2370. alt
  2371. />
  2372. <div
  2373. class="answerScore"
  2374. v-if="w.score"
  2375. @click.stop="openScore(w)"
  2376. :class="{
  2377. rightW:
  2378. w.userid == userid || tType == 1 || tType == 4,
  2379. }"
  2380. >
  2381. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2382. </div>
  2383. <div
  2384. class="answerScore"
  2385. @click.stop="openScore(w)"
  2386. v-else-if="courseDetail.userid == userid"
  2387. :class="{
  2388. rightW:
  2389. w.userid == userid || tType == 1 || tType == 4,
  2390. }"
  2391. >
  2392. {{ lang.ssMarkScore }}
  2393. </div>
  2394. <img
  2395. class="deleteImg"
  2396. src="../../assets/deleteworks.png"
  2397. v-if="
  2398. w.userid == userid || tType == 1 || tType == 4
  2399. "
  2400. @click.stop="deleteWorks(w.wid)"
  2401. alt
  2402. />
  2403. </div>
  2404. <div class="worksName">
  2405. <div>{{ w.sName }}</div>
  2406. </div>
  2407. </div>
  2408. </div>
  2409. </div>
  2410. <div
  2411. v-if="
  2412. tType &&
  2413. tType == 2 &&
  2414. !sIsOpen &&
  2415. tool.tool.indexOf(3) != -1
  2416. "
  2417. class="worksBox"
  2418. >
  2419. <div
  2420. class="zuoyeYulan"
  2421. v-if="workStudent[toolIndex].length > 0"
  2422. >
  2423. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2424. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2425. </div>
  2426. <div
  2427. class="worksDetailBox"
  2428. v-if="workStudent[toolIndex].length > 0"
  2429. >
  2430. <div
  2431. class="works"
  2432. style="
  2433. width: 200px;
  2434. height: 140px;
  2435. margin: 10px 10px 10px 0;
  2436. box-shadow: 0 0 6px 1px #dfdada;
  2437. "
  2438. v-for="(w, wIndex) in workStudent[toolIndex]"
  2439. :key="wIndex"
  2440. >
  2441. <div class="workImg">
  2442. <img
  2443. :src="w.works"
  2444. @click="previewImg(w.works,w)"
  2445. alt
  2446. />
  2447. <div
  2448. class="answerScore"
  2449. v-if="w.score"
  2450. @click.stop="openScore(w)"
  2451. :class="{
  2452. rightW:
  2453. w.userid == userid || tType == 1 || tType == 4,
  2454. }"
  2455. >
  2456. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2457. </div>
  2458. <div
  2459. class="answerScore"
  2460. @click.stop="openScore(w)"
  2461. v-else-if="courseDetail.userid == userid"
  2462. :class="{
  2463. rightW:
  2464. w.userid == userid || tType == 1 || tType == 4,
  2465. }"
  2466. >
  2467. {{ lang.ssMarkScore }}
  2468. </div>
  2469. <img
  2470. class="deleteImg"
  2471. src="../../assets/deleteworks.png"
  2472. v-if="
  2473. w.userid == userid || tType == 1 || tType == 4
  2474. "
  2475. @click.stop="deleteWorks(w.wid)"
  2476. alt
  2477. />
  2478. </div>
  2479. <div class="worksName">
  2480. <div>{{ w.sName }}</div>
  2481. </div>
  2482. </div>
  2483. </div>
  2484. </div>
  2485. <div
  2486. v-if="
  2487. tType &&
  2488. tType == 2 &&
  2489. !sIsOpen &&
  2490. tool.tool.indexOf(6) != -1
  2491. "
  2492. class="worksBox"
  2493. >
  2494. <div
  2495. class="zuoyeYulan"
  2496. v-if="workStudent[toolIndex].length > 0"
  2497. >
  2498. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2499. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2500. </div>
  2501. <div
  2502. class="worksDetailBox"
  2503. v-if="workStudent[toolIndex].length > 0"
  2504. >
  2505. <div
  2506. class="works"
  2507. style="
  2508. width: 200px;
  2509. height: 140px;
  2510. margin: 10px 10px 10px 0;
  2511. box-shadow: 0 0 6px 1px #dfdada;
  2512. "
  2513. v-for="(w, wIndex) in workStudent[toolIndex]"
  2514. :key="wIndex"
  2515. >
  2516. <div class="workImg">
  2517. <img
  2518. :src="w.works"
  2519. @click="previewImg(w.works,w)"
  2520. alt
  2521. />
  2522. <div
  2523. class="answerScore"
  2524. v-if="w.score"
  2525. @click.stop="openScore(w)"
  2526. :class="{
  2527. rightW:
  2528. w.userid == userid || tType == 1 || tType == 4,
  2529. }"
  2530. >
  2531. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2532. </div>
  2533. <div
  2534. class="answerScore"
  2535. @click.stop="openScore(w)"
  2536. v-else-if="courseDetail.userid == userid"
  2537. :class="{
  2538. rightW:
  2539. w.userid == userid || tType == 1 || tType == 4,
  2540. }"
  2541. >
  2542. {{ lang.ssMarkScore }}
  2543. </div>
  2544. <img
  2545. class="deleteImg"
  2546. src="../../assets/deleteworks.png"
  2547. v-if="
  2548. w.userid == userid || tType == 1 || tType == 4
  2549. "
  2550. @click.stop="deleteWorks(w.wid)"
  2551. alt
  2552. />
  2553. </div>
  2554. <div class="worksName">
  2555. <div>{{ w.sName }}</div>
  2556. </div>
  2557. </div>
  2558. </div>
  2559. </div>
  2560. <div
  2561. v-if="
  2562. tType &&
  2563. tType == 2 &&
  2564. !sIsOpen &&
  2565. tool.tool.indexOf(7) != -1
  2566. "
  2567. class="worksBox"
  2568. >
  2569. <div
  2570. class="zuoyeYulan"
  2571. v-if="workStudent[toolIndex].length > 0"
  2572. >
  2573. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2574. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2575. </div>
  2576. <div
  2577. class="worksDetailBox"
  2578. v-if="workStudent[toolIndex].length > 0"
  2579. >
  2580. <div
  2581. class="works"
  2582. style="
  2583. width: 200px;
  2584. height: 140px;
  2585. margin: 10px 10px 10px 0;
  2586. box-shadow: 0 0 6px 1px #dfdada;
  2587. "
  2588. v-for="(w, wIndex) in workStudent[toolIndex]"
  2589. :key="wIndex"
  2590. >
  2591. <div class="workImg">
  2592. <img
  2593. :src="w.works"
  2594. @click="previewImg(w.works,w)"
  2595. alt
  2596. />
  2597. <div
  2598. class="answerScore"
  2599. v-if="w.score"
  2600. @click.stop="openScore(w)"
  2601. :class="{
  2602. rightW:
  2603. w.userid == userid || tType == 1 || tType == 4,
  2604. }"
  2605. >
  2606. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2607. </div>
  2608. <div
  2609. class="answerScore"
  2610. @click.stop="openScore(w)"
  2611. v-else-if="courseDetail.userid == userid"
  2612. :class="{
  2613. rightW:
  2614. w.userid == userid || tType == 1 || tType == 4,
  2615. }"
  2616. >
  2617. {{ lang.ssMarkScore }}
  2618. </div>
  2619. <img
  2620. class="deleteImg"
  2621. src="../../assets/deleteworks.png"
  2622. v-if="
  2623. w.userid == userid || tType == 1 || tType == 4
  2624. "
  2625. @click.stop="deleteWorks(w.wid)"
  2626. alt
  2627. />
  2628. </div>
  2629. <div class="worksName">
  2630. <div>{{ w.sName }}</div>
  2631. </div>
  2632. </div>
  2633. </div>
  2634. </div>
  2635. <div
  2636. v-if="
  2637. tType &&
  2638. tType == 2 &&
  2639. !sIsOpen &&
  2640. tool.tool.indexOf(26) != -1
  2641. "
  2642. class="worksBox"
  2643. >
  2644. <div
  2645. class="zuoyeYulan"
  2646. v-if="workStudent[toolIndex].length > 0"
  2647. >
  2648. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2649. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2650. </div>
  2651. <div
  2652. class="worksDetailBox"
  2653. v-if="workStudent[toolIndex].length > 0"
  2654. >
  2655. <div
  2656. class="works"
  2657. style="
  2658. width: 200px;
  2659. height: 140px;
  2660. margin: 10px 10px 10px 0;
  2661. box-shadow: 0 0 6px 1px #dfdada;
  2662. "
  2663. v-for="(w, wIndex) in workStudent[toolIndex]"
  2664. :key="wIndex"
  2665. >
  2666. <div class="workImg">
  2667. <img
  2668. :src="w.works"
  2669. @click="previewImg(w.works,w)"
  2670. alt
  2671. />
  2672. <img
  2673. class="deleteImg"
  2674. src="../../assets/deleteworks.png"
  2675. v-if="
  2676. w.userid == userid || tType == 1 || tType == 4
  2677. "
  2678. @click.stop="deleteWorks(w.wid)"
  2679. alt
  2680. />
  2681. </div>
  2682. <div class="worksName">
  2683. <div>{{ w.sName }}</div>
  2684. </div>
  2685. </div>
  2686. </div>
  2687. </div>
  2688. <div
  2689. v-if="
  2690. tType &&
  2691. ((tType == 2 && sIsOpen == true) ||
  2692. tType == 1 ||
  2693. tType == 4) &&
  2694. tool.tool.indexOf(16) != -1
  2695. "
  2696. class="worksBox"
  2697. >
  2698. <div
  2699. class="zuoyeYulan"
  2700. v-if="
  2701. (worksStudent.length &&
  2702. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2703. "
  2704. >
  2705. <div class="worksTop">
  2706. <div>{{ lang.ssHomeworkPreview }}</div>
  2707. <div
  2708. class="corOpen"
  2709. @click="contract(toolIndex)"
  2710. v-if="
  2711. (isCloseList[toolIndex].isCloseBoolean) &&
  2712. isCloseList[toolIndex].isClose == 0
  2713. "
  2714. >
  2715. {{ lang.ssFold }}
  2716. </div>
  2717. <div
  2718. class="corOpen"
  2719. @click="contract(toolIndex)"
  2720. v-if="isCloseList[toolIndex].isClose == 1"
  2721. >
  2722. {{ lang.ssExpand }}
  2723. </div>
  2724. </div>
  2725. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2726. </div>
  2727. <div
  2728. class="group_workBox"
  2729. v-for="(g, gindex) in courseGroup.group"
  2730. :key="gindex"
  2731. >
  2732. <div class="group_box">
  2733. <div class="group_title">
  2734. <el-tooltip
  2735. class="item"
  2736. effect="light"
  2737. :content="g.name"
  2738. placement="top"
  2739. >
  2740. <div class="group_name">{{ g.name }}</div>
  2741. </el-tooltip>
  2742. </div>
  2743. <div
  2744. class="group_work"
  2745. v-if="
  2746. g.works &&
  2747. g.works.length &&
  2748. g.works[toolIndex].length
  2749. "
  2750. >
  2751. <div
  2752. class="works"
  2753. style="
  2754. width: 200px;
  2755. height: 140px;
  2756. margin: 10px 10px 10px 0;
  2757. border-radius: 15px;
  2758. box-shadow: 0 0 6px 1px #dfdada;
  2759. "
  2760. v-for="(w, wIndex) in g.works[toolIndex]"
  2761. :key="wIndex"
  2762. :class="w.type == 1 ? 'isTypeOne' : ''"
  2763. >
  2764. <div class="workImg" v-if="w.type == 0">
  2765. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2766. <img
  2767. :src="w.works"
  2768. @click="previewImg(w.works,w)"
  2769. alt
  2770. />
  2771. <div
  2772. class="answerScore"
  2773. v-if="w.score"
  2774. @click.stop="openScore(w)"
  2775. :class="{
  2776. rightW:
  2777. w.userid == userid ||
  2778. tType == 1 ||
  2779. tType == 4 ||
  2780. w.ateacher == userid,
  2781. }"
  2782. >
  2783. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2784. </div>
  2785. <div
  2786. class="answerScore"
  2787. @click.stop="openScore(w)"
  2788. v-else-if="courseDetail.userid == userid"
  2789. :class="{
  2790. rightW:
  2791. w.userid == userid ||
  2792. tType == 1 ||
  2793. tType == 4 ||
  2794. w.ateacher == userid,
  2795. }"
  2796. >
  2797. {{ lang.ssMarkScore }}
  2798. </div>
  2799. <img
  2800. class="deleteImg"
  2801. src="../../assets/deleteworks.png"
  2802. v-if="
  2803. w.userid == userid || tType == 1 || tType == 4
  2804. "
  2805. @click.stop="deleteWorks(w.wid)"
  2806. alt
  2807. />
  2808. </div>
  2809. <div class="workImg" v-if="w.type == 1">
  2810. <img :src="word" @click="openFile(w.works)" alt />
  2811. <!-- @click="openFile(w.works)" -->
  2812. <div
  2813. class="answerScore"
  2814. v-if="w.score"
  2815. @click.stop="openScore(w)"
  2816. :class="{
  2817. rightW:
  2818. w.userid == userid ||
  2819. tType == 1 ||
  2820. tType == 4 ||
  2821. w.ateacher == userid,
  2822. }"
  2823. >
  2824. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2825. </div>
  2826. <div
  2827. class="answerScore"
  2828. @click.stop="openScore(w)"
  2829. v-else-if="courseDetail.userid == userid"
  2830. :class="{
  2831. rightW:
  2832. w.userid == userid ||
  2833. tType == 1 ||
  2834. tType == 4 ||
  2835. w.ateacher == userid,
  2836. }"
  2837. >
  2838. {{ lang.ssMarkScore }}
  2839. </div>
  2840. <img
  2841. class="deleteImg"
  2842. src="../../assets/deleteworks.png"
  2843. v-if="
  2844. w.userid == userid || tType == 1 || tType == 4
  2845. "
  2846. @click.stop="deleteWorks(w.wid)"
  2847. alt
  2848. />
  2849. </div>
  2850. <div class="workImg" v-if="w.type == 3">
  2851. <img
  2852. style="cursor: pointer"
  2853. :src="video"
  2854. @click="openVideo(w)"
  2855. alt
  2856. />
  2857. <!-- @click="openVideo(w.works)" -->
  2858. <div
  2859. class="answerScore"
  2860. v-if="w.score"
  2861. @click.stop="openScore(w)"
  2862. :class="{
  2863. rightW:
  2864. w.userid == userid ||
  2865. tType == 1 ||
  2866. tType == 4 ||
  2867. w.ateacher == userid,
  2868. }"
  2869. >
  2870. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2871. </div>
  2872. <div
  2873. class="answerScore"
  2874. @click.stop="openScore(w)"
  2875. v-else-if="courseDetail.userid == userid"
  2876. :class="{
  2877. rightW:
  2878. w.userid == userid ||
  2879. tType == 1 ||
  2880. tType == 4 ||
  2881. w.ateacher == userid,
  2882. }"
  2883. >
  2884. {{ lang.ssMarkScore }}
  2885. </div>
  2886. <img
  2887. class="deleteImg"
  2888. src="../../assets/deleteworks.png"
  2889. v-if="
  2890. w.userid == userid || tType == 1 || tType == 4
  2891. "
  2892. @click.stop="deleteWorks(w.wid)"
  2893. alt
  2894. />
  2895. </div>
  2896. <div class="workImg" v-if="w.type == 12">
  2897. <img
  2898. style="cursor: pointer"
  2899. :src="word2"
  2900. @click="downloadFile(w.works,w.userid)"
  2901. alt
  2902. />
  2903. <!-- @click="openVideo(w.works)" -->
  2904. <div
  2905. class="answerScore"
  2906. v-if="w.score"
  2907. @click.stop="openScore(w)"
  2908. :class="{
  2909. rightW:
  2910. w.userid == userid ||
  2911. tType == 1 ||
  2912. tType == 4 ||
  2913. w.ateacher == userid,
  2914. }"
  2915. >
  2916. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2917. </div>
  2918. <div
  2919. class="answerScore"
  2920. @click.stop="openScore(w)"
  2921. v-else-if="courseDetail.userid == userid"
  2922. :class="{
  2923. rightW:
  2924. w.userid == userid ||
  2925. tType == 1 ||
  2926. tType == 4 ||
  2927. w.ateacher == userid,
  2928. }"
  2929. >
  2930. {{ lang.ssMarkScore }}
  2931. </div>
  2932. <img
  2933. class="deleteImg"
  2934. src="../../assets/deleteworks.png"
  2935. v-if="
  2936. w.userid == userid || tType == 1 || tType == 4
  2937. "
  2938. @click.stop="deleteWorks(w.wid)"
  2939. alt
  2940. />
  2941. </div>
  2942. <div class="comment" style="min-width: 200px">
  2943. <div class="worksName">
  2944. <div>{{ w.sName }}</div>
  2945. </div>
  2946. <div class="commentList">
  2947. <div class="commentList">
  2948. <div
  2949. class="commentImg"
  2950. @click="
  2951. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2952. "
  2953. >
  2954. <img
  2955. :src="w.isLikes == true ? likes : noLikes"
  2956. alt=""
  2957. />
  2958. </div>
  2959. <div>{{ w.likesCount }}</div>
  2960. </div>
  2961. <div
  2962. class="commentList"
  2963. style="margin-right: 15px"
  2964. >
  2965. <div
  2966. class="commentImg"
  2967. @click="
  2968. commentOther(
  2969. w,
  2970. toolIndex,
  2971. wIndex,
  2972. null,
  2973. g.id
  2974. )
  2975. "
  2976. >
  2977. <img
  2978. src="../../assets/icon/comment/comment.png"
  2979. alt=""
  2980. />
  2981. </div>
  2982. <div>{{ w.commentCount }}</div>
  2983. </div>
  2984. </div>
  2985. </div>
  2986. </div>
  2987. </div>
  2988. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  2989. </div>
  2990. </div>
  2991. <div
  2992. :id="'tool-' + toolIndex"
  2993. :style="{
  2994. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2995. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2996. }"
  2997. class="worksDetailBox"
  2998. v-if="
  2999. worksStudent.length &&
  3000. worksStudent[toolIndex].length > 0
  3001. "
  3002. >
  3003. <div
  3004. class="works"
  3005. style="
  3006. width: 200px;
  3007. height: 140px;
  3008. margin: 10px 10px 10px 0;
  3009. border-radius: 15px;
  3010. box-shadow: 0 0 6px 1px #dfdada;
  3011. "
  3012. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3013. :key="wIndex"
  3014. :class="w.type == 1 ? 'isTypeOne' : ''"
  3015. >
  3016. <div class="workImg" v-if="w.type == 0">
  3017. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3018. <img
  3019. :src="w.works"
  3020. @click="previewImg(w.works,w)"
  3021. alt
  3022. />
  3023. <div
  3024. class="answerScore"
  3025. v-if="w.score"
  3026. @click.stop="openScore(w)"
  3027. :class="{
  3028. rightW:
  3029. w.userid == userid ||
  3030. tType == 1 ||
  3031. tType == 4 ||
  3032. w.ateacher == userid,
  3033. }"
  3034. >
  3035. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3036. </div>
  3037. <div
  3038. class="answerScore"
  3039. @click.stop="openScore(w)"
  3040. v-else-if="courseDetail.userid == userid"
  3041. :class="{
  3042. rightW:
  3043. w.userid == userid ||
  3044. tType == 1 ||
  3045. tType == 4 ||
  3046. w.ateacher == userid,
  3047. }"
  3048. >
  3049. {{ lang.ssMarkScore }}
  3050. </div>
  3051. <img
  3052. class="deleteImg"
  3053. src="../../assets/deleteworks.png"
  3054. v-if="
  3055. w.userid == userid || tType == 1 || tType == 4
  3056. "
  3057. @click.stop="deleteWorks(w.wid)"
  3058. alt
  3059. />
  3060. </div>
  3061. <div class="workImg" v-if="w.type == 1">
  3062. <img :src="word" @click="openFile(w.works)" alt />
  3063. <!-- @click="openFile(w.works)" -->
  3064. <div
  3065. class="answerScore"
  3066. v-if="w.score"
  3067. @click.stop="openScore(w)"
  3068. :class="{
  3069. rightW:
  3070. w.userid == userid ||
  3071. tType == 1 ||
  3072. tType == 4 ||
  3073. w.ateacher == userid,
  3074. }"
  3075. >
  3076. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3077. </div>
  3078. <div
  3079. class="answerScore"
  3080. @click.stop="openScore(w)"
  3081. v-else-if="courseDetail.userid == userid"
  3082. :class="{
  3083. rightW:
  3084. w.userid == userid ||
  3085. tType == 1 ||
  3086. tType == 4 ||
  3087. w.ateacher == userid,
  3088. }"
  3089. >
  3090. {{ lang.ssMarkScore }}
  3091. </div>
  3092. <img
  3093. class="deleteImg"
  3094. src="../../assets/deleteworks.png"
  3095. v-if="
  3096. w.userid == userid || tType == 1 || tType == 4
  3097. "
  3098. @click.stop="deleteWorks(w.wid)"
  3099. alt
  3100. />
  3101. </div>
  3102. <div class="workImg" v-if="w.type == 3">
  3103. <img
  3104. style="cursor: pointer"
  3105. :src="video"
  3106. @click="openVideo(w)"
  3107. alt
  3108. />
  3109. <!-- @click="openVideo(w.works)" -->
  3110. <div
  3111. class="answerScore"
  3112. v-if="w.score"
  3113. @click.stop="openScore(w)"
  3114. :class="{
  3115. rightW:
  3116. w.userid == userid ||
  3117. tType == 1 ||
  3118. tType == 4 ||
  3119. w.ateacher == userid,
  3120. }"
  3121. >
  3122. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3123. </div>
  3124. <div
  3125. class="answerScore"
  3126. @click.stop="openScore(w)"
  3127. v-else-if="courseDetail.userid == userid"
  3128. :class="{
  3129. rightW:
  3130. w.userid == userid ||
  3131. tType == 1 ||
  3132. tType == 4 ||
  3133. w.ateacher == userid,
  3134. }"
  3135. >
  3136. {{ lang.ssMarkScore }}
  3137. </div>
  3138. <img
  3139. class="deleteImg"
  3140. src="../../assets/deleteworks.png"
  3141. v-if="
  3142. w.userid == userid || tType == 1 || tType == 4
  3143. "
  3144. @click.stop="deleteWorks(w.wid)"
  3145. alt
  3146. />
  3147. </div>
  3148. <div class="workImg" v-if="w.type == 12">
  3149. <img
  3150. style="cursor: pointer"
  3151. :src="word2"
  3152. @click="downloadFile(w.works,w.userid)"
  3153. alt
  3154. />
  3155. <!-- @click="openVideo(w.works)" -->
  3156. <div
  3157. class="answerScore"
  3158. v-if="w.score"
  3159. @click.stop="openScore(w)"
  3160. :class="{
  3161. rightW:
  3162. w.userid == userid ||
  3163. tType == 1 ||
  3164. tType == 4 ||
  3165. w.ateacher == userid,
  3166. }"
  3167. >
  3168. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3169. </div>
  3170. <div
  3171. class="answerScore"
  3172. @click.stop="openScore(w)"
  3173. v-else-if="courseDetail.userid == userid"
  3174. :class="{
  3175. rightW:
  3176. w.userid == userid ||
  3177. tType == 1 ||
  3178. tType == 4 ||
  3179. w.ateacher == userid,
  3180. }"
  3181. >
  3182. {{ lang.ssMarkScore }}
  3183. </div>
  3184. <img
  3185. class="deleteImg"
  3186. src="../../assets/deleteworks.png"
  3187. v-if="
  3188. w.userid == userid || tType == 1 || tType == 4
  3189. "
  3190. @click.stop="deleteWorks(w.wid)"
  3191. alt
  3192. />
  3193. </div>
  3194. <div class="comment" style="min-width: 200px">
  3195. <div class="worksName">
  3196. <div>{{ w.sName }}</div>
  3197. </div>
  3198. <div class="commentList">
  3199. <div class="commentList">
  3200. <div
  3201. class="commentImg"
  3202. @click="
  3203. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3204. "
  3205. >
  3206. <img
  3207. :src="w.isLikes == true ? likes : noLikes"
  3208. alt=""
  3209. />
  3210. </div>
  3211. <div>{{ w.likesCount }}</div>
  3212. </div>
  3213. <div class="commentList" style="margin-right: 15px">
  3214. <div
  3215. class="commentImg"
  3216. @click="commentOther(w, toolIndex, wIndex)"
  3217. >
  3218. <img
  3219. src="../../assets/icon/comment/comment.png"
  3220. alt=""
  3221. />
  3222. </div>
  3223. <div>{{ w.commentCount }}</div>
  3224. </div>
  3225. </div>
  3226. </div>
  3227. </div>
  3228. </div>
  3229. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3230. {{ lang.ssNotSubmitted }}
  3231. </div>
  3232. <div
  3233. class="noWorksS"
  3234. v-if="noWorksS && noWorksS[toolIndex].length"
  3235. >
  3236. <div
  3237. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3238. :key="sIndex"
  3239. class="noWorksName"
  3240. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3241. >
  3242. <el-tooltip effect="dark" :content="s.student" placement="top">
  3243. <span>{{ s.student }}</span>
  3244. </el-tooltip>
  3245. </div>
  3246. </div>
  3247. </div>
  3248. <div
  3249. v-if="
  3250. tType &&
  3251. ((tType == 2 && sIsOpen == true) ||
  3252. tType == 1 ||
  3253. tType == 4) &&
  3254. tool.tool.indexOf(70) != -1
  3255. "
  3256. class="worksBox"
  3257. >
  3258. <div
  3259. class="zuoyeYulan"
  3260. v-if="
  3261. (worksStudent.length &&
  3262. worksStudent[toolIndex].length > 0)
  3263. "
  3264. >
  3265. <div class="worksTop">
  3266. <div>{{ lang.ssHomeworkPreview }}</div>
  3267. <div
  3268. class="corOpen"
  3269. @click="contract(toolIndex)"
  3270. v-if="
  3271. (isCloseList[toolIndex].isCloseBoolean) &&
  3272. isCloseList[toolIndex].isClose == 0
  3273. "
  3274. >
  3275. {{ lang.ssFold }}
  3276. </div>
  3277. <div
  3278. class="corOpen"
  3279. @click="contract(toolIndex)"
  3280. v-if="isCloseList[toolIndex].isClose == 1"
  3281. >
  3282. {{ lang.ssExpand }}
  3283. </div>
  3284. </div>
  3285. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3286. </div>
  3287. <div
  3288. :id="'tool-' + toolIndex"
  3289. :style="{
  3290. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3291. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3292. }"
  3293. class="worksDetailBox"
  3294. v-if="
  3295. worksStudent.length &&
  3296. worksStudent[toolIndex].length > 0
  3297. "
  3298. >
  3299. <div
  3300. class="works"
  3301. style="
  3302. width: 200px;
  3303. height: 140px;
  3304. margin: 10px 10px 10px 0;
  3305. border-radius: 15px;
  3306. box-shadow: 0 0 6px 1px #dfdada;
  3307. "
  3308. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3309. :key="wIndex"
  3310. :class="w.type == 1 ? 'isTypeOne' : ''"
  3311. >
  3312. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3313. <img :src="word" alt />
  3314. <img
  3315. class="deleteImg"
  3316. src="../../assets/deleteworks.png"
  3317. v-if="
  3318. w.userid == userid || tType == 1 || tType == 4
  3319. "
  3320. @click.stop="deleteWorks(w.wid)"
  3321. alt
  3322. />
  3323. </div>
  3324. <div class="comment" style="min-width: 200px">
  3325. <div class="worksName">
  3326. <div>{{ w.sName }}</div>
  3327. </div>
  3328. </div>
  3329. </div>
  3330. </div>
  3331. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3332. {{ lang.ssNotSubmitted }}
  3333. </div>
  3334. <div
  3335. class="noWorksS"
  3336. v-if="noWorksS && noWorksS[toolIndex].length"
  3337. >
  3338. <div
  3339. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3340. :key="sIndex"
  3341. class="noWorksName"
  3342. >
  3343. <el-tooltip effect="dark" :content="s.student" placement="top">
  3344. <span>{{ s.student }}</span>
  3345. </el-tooltip>
  3346. </div>
  3347. </div>
  3348. </div>
  3349. <div
  3350. v-if="
  3351. tType &&
  3352. tType == 2 &&
  3353. !sIsOpen &&
  3354. tool.tool.indexOf(70) != -1
  3355. "
  3356. class="worksBox"
  3357. >
  3358. <div
  3359. class="zuoyeYulan"
  3360. v-if="workStudent[toolIndex].length > 0"
  3361. >
  3362. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  3363. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3364. </div>
  3365. <div
  3366. class="worksDetailBox"
  3367. v-if="workStudent[toolIndex].length > 0"
  3368. >
  3369. <div
  3370. class="works"
  3371. style="
  3372. width: 200px;
  3373. height: 140px;
  3374. margin: 10px 10px 10px 0;
  3375. box-shadow: 0 0 6px 1px #dfdada;
  3376. "
  3377. v-for="(w, wIndex) in workStudent[toolIndex]"
  3378. :key="wIndex"
  3379. >
  3380. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3381. <img :src="word" alt />
  3382. <img
  3383. class="deleteImg"
  3384. src="../../assets/deleteworks.png"
  3385. v-if="
  3386. w.userid == userid || tType == 1 || tType == 4
  3387. "
  3388. @click.stop="deleteWorks(w.wid)"
  3389. alt
  3390. />
  3391. </div>
  3392. <div class="worksName">
  3393. <div>{{ w.sName }}</div>
  3394. </div>
  3395. </div>
  3396. </div>
  3397. </div>
  3398. <div
  3399. v-if="
  3400. tType &&
  3401. ((tType == 2 && sIsOpen == true) ||
  3402. tType == 1 ||
  3403. tType == 4) &&
  3404. tool.tool.indexOf(32) != -1
  3405. "
  3406. class="worksBox"
  3407. >
  3408. <div
  3409. class="zuoyeYulan"
  3410. v-if="
  3411. worksStudent.length &&
  3412. worksStudent[toolIndex].length > 0
  3413. "
  3414. >
  3415. <div class="worksTop">
  3416. <div>{{ lang.ssHomeworkPreview }}</div>
  3417. <div
  3418. class="corOpen"
  3419. @click="contract(toolIndex)"
  3420. v-if="
  3421. (isCloseList[toolIndex].isCloseBoolean) &&
  3422. isCloseList[toolIndex].isClose == 0
  3423. "
  3424. >
  3425. {{ lang.ssFold }}
  3426. </div>
  3427. <div
  3428. class="corOpen"
  3429. @click="contract(toolIndex)"
  3430. v-if="isCloseList[toolIndex].isClose == 1"
  3431. >
  3432. {{ lang.ssExpand }}
  3433. </div>
  3434. </div>
  3435. </div>
  3436. <div
  3437. :id="'tool-' + toolIndex"
  3438. :style="{
  3439. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3440. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3441. }"
  3442. class="worksDetailBox"
  3443. v-if="
  3444. worksStudent.length &&
  3445. worksStudent[toolIndex].length > 0
  3446. "
  3447. >
  3448. <div
  3449. class="works"
  3450. style="
  3451. width: 200px;
  3452. height: 140px;
  3453. margin: 10px 10px 10px 0;
  3454. border-radius: 15px;
  3455. box-shadow: 0 0 6px 1px #dfdada;
  3456. "
  3457. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3458. :key="wIndex"
  3459. :class="w.type == 1 ? 'isTypeOne' : ''"
  3460. >
  3461. <div class="workImg">
  3462. <img
  3463. :src="word2"
  3464. @click="downloadFile(w.works,w.userid)"
  3465. alt
  3466. />
  3467. <div
  3468. class="answerScore"
  3469. v-if="w.score"
  3470. @click.stop="openScore(w)"
  3471. :class="{
  3472. rightW:
  3473. w.userid == userid ||
  3474. tType == 1 ||
  3475. tType == 4 ||
  3476. w.ateacher == userid,
  3477. }"
  3478. >
  3479. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3480. </div>
  3481. <div
  3482. class="answerScore"
  3483. @click.stop="openScore(w)"
  3484. v-else-if="courseDetail.userid == userid"
  3485. :class="{
  3486. rightW:
  3487. w.userid == userid ||
  3488. tType == 1 ||
  3489. tType == 4 ||
  3490. w.ateacher == userid,
  3491. }"
  3492. >
  3493. {{ lang.ssMarkScore }}
  3494. </div>
  3495. <img
  3496. class="deleteImg"
  3497. src="../../assets/deleteworks.png"
  3498. v-if="
  3499. w.userid == userid || tType == 1 || tType == 4
  3500. "
  3501. @click.stop="deleteWorks(w.wid)"
  3502. alt
  3503. />
  3504. </div>
  3505. <div class="comment" style="min-width: 200px">
  3506. <div class="worksName">
  3507. <div>{{ w.sName }}</div>
  3508. </div>
  3509. <div class="commentList">
  3510. <div class="commentList">
  3511. <div
  3512. class="commentImg"
  3513. @click="
  3514. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3515. "
  3516. >
  3517. <img
  3518. :src="w.isLikes == true ? likes : noLikes"
  3519. alt=""
  3520. />
  3521. </div>
  3522. <div>{{ w.likesCount }}</div>
  3523. </div>
  3524. <div class="commentList" style="margin-right: 15px">
  3525. <div
  3526. class="commentImg"
  3527. @click="commentOther(w, toolIndex, wIndex)"
  3528. >
  3529. <img
  3530. src="../../assets/icon/comment/comment.png"
  3531. alt=""
  3532. />
  3533. </div>
  3534. <div>{{ w.commentCount }}</div>
  3535. </div>
  3536. </div>
  3537. </div>
  3538. </div>
  3539. </div>
  3540. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3541. {{ lang.ssNotSubmitted }}
  3542. </div>
  3543. <div
  3544. class="noWorksS"
  3545. v-if="noWorksS && noWorksS[toolIndex].length"
  3546. >
  3547. <div
  3548. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3549. :key="sIndex"
  3550. class="noWorksName"
  3551. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3552. >
  3553. <el-tooltip effect="dark" :content="s.student" placement="top">
  3554. <span>{{ s.student }}</span>
  3555. </el-tooltip>
  3556. </div>
  3557. </div>
  3558. </div>
  3559. <div
  3560. v-if="
  3561. tType &&
  3562. ((tType == 2 && sIsOpen == true) ||
  3563. tType == 1 ||
  3564. tType == 4) &&
  3565. tool.tool.indexOf(57) != -1
  3566. "
  3567. class="worksBox"
  3568. >
  3569. <div
  3570. class="zuoyeYulan"
  3571. v-if="
  3572. worksStudent.length &&
  3573. worksStudent[toolIndex].length > 0
  3574. "
  3575. >
  3576. <div class="worksTop">
  3577. <div>{{ lang.ssHomeworkPreview }}</div>
  3578. <div
  3579. class="corOpen"
  3580. @click="contract(toolIndex)"
  3581. v-if="
  3582. (isCloseList[toolIndex].isCloseBoolean) &&
  3583. isCloseList[toolIndex].isClose == 0
  3584. "
  3585. >
  3586. {{ lang.ssFold }}
  3587. </div>
  3588. <div
  3589. class="corOpen"
  3590. @click="contract(toolIndex)"
  3591. v-if="isCloseList[toolIndex].isClose == 1"
  3592. >
  3593. {{ lang.ssExpand }}
  3594. </div>
  3595. </div>
  3596. </div>
  3597. <div
  3598. :id="'tool-' + toolIndex"
  3599. :style="{
  3600. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3601. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3602. }"
  3603. class="worksDetailBox"
  3604. v-if="
  3605. worksStudent.length &&
  3606. worksStudent[toolIndex].length > 0
  3607. "
  3608. >
  3609. <div
  3610. class="works"
  3611. style="
  3612. width: 200px;
  3613. height: 140px;
  3614. margin: 10px 10px 10px 0;
  3615. border-radius: 15px;
  3616. box-shadow: 0 0 6px 1px #dfdada;
  3617. "
  3618. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3619. :key="wIndex"
  3620. :class="w.type == 1 ? 'isTypeOne' : ''"
  3621. >
  3622. <div class="workImg">
  3623. <img
  3624. :src="word2"
  3625. @click="downloadFile(w.works,w.userid)"
  3626. v-if="w.type == 12"
  3627. alt
  3628. />
  3629. <img
  3630. :src="word2"
  3631. @click="
  3632. openCocoPi(57, toolIndex, w.userid, w.sName)
  3633. "
  3634. v-else-if="w.type == 15"
  3635. alt
  3636. />
  3637. <div
  3638. class="answerScore"
  3639. v-if="w.score"
  3640. @click.stop="openScore(w)"
  3641. :class="{
  3642. rightW:
  3643. w.userid == userid ||
  3644. tType == 1 ||
  3645. tType == 4 ||
  3646. w.ateacher == userid,
  3647. }"
  3648. >
  3649. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3650. </div>
  3651. <div
  3652. class="answerScore"
  3653. @click.stop="openScore(w)"
  3654. v-else-if="courseDetail.userid == userid"
  3655. :class="{
  3656. rightW:
  3657. w.userid == userid ||
  3658. tType == 1 ||
  3659. tType == 4 ||
  3660. w.ateacher == userid,
  3661. }"
  3662. >
  3663. {{ lang.ssMarkScore }}
  3664. </div>
  3665. <img
  3666. class="deleteImg"
  3667. src="../../assets/deleteworks.png"
  3668. v-if="
  3669. w.userid == userid || tType == 1 || tType == 4
  3670. "
  3671. @click.stop="deleteWorks(w.wid)"
  3672. alt
  3673. />
  3674. </div>
  3675. <div class="comment" style="min-width: 200px">
  3676. <div class="worksName">
  3677. <div>{{ w.sName }}</div>
  3678. </div>
  3679. <div class="commentList">
  3680. <div class="commentList">
  3681. <div
  3682. class="commentImg"
  3683. @click="
  3684. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3685. "
  3686. >
  3687. <img
  3688. :src="w.isLikes == true ? likes : noLikes"
  3689. alt=""
  3690. />
  3691. </div>
  3692. <div>{{ w.likesCount }}</div>
  3693. </div>
  3694. <div class="commentList" style="margin-right: 15px">
  3695. <div
  3696. class="commentImg"
  3697. @click="commentOther(w, toolIndex, wIndex)"
  3698. >
  3699. <img
  3700. src="../../assets/icon/comment/comment.png"
  3701. alt=""
  3702. />
  3703. </div>
  3704. <div>{{ w.commentCount }}</div>
  3705. </div>
  3706. </div>
  3707. </div>
  3708. </div>
  3709. </div>
  3710. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3711. {{ lang.ssNotSubmitted }}
  3712. </div>
  3713. <div
  3714. class="noWorksS"
  3715. v-if="noWorksS && noWorksS[toolIndex].length"
  3716. >
  3717. <div
  3718. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3719. :key="sIndex"
  3720. class="noWorksName"
  3721. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3722. >
  3723. <el-tooltip effect="dark" :content="s.student" placement="top">
  3724. <span>{{ s.student }}</span>
  3725. </el-tooltip>
  3726. </div>
  3727. </div>
  3728. </div>
  3729. <div
  3730. v-if="
  3731. tType &&
  3732. ((tType == 2 && sIsOpen == true) ||
  3733. tType == 1 ||
  3734. tType == 4) &&
  3735. tool.tool.indexOf(72) != -1
  3736. "
  3737. class="worksBox"
  3738. >
  3739. <div
  3740. class="zuoyeYulan"
  3741. v-if="
  3742. worksStudent.length &&
  3743. worksStudent[toolIndex].length > 0
  3744. "
  3745. >
  3746. <div class="worksTop">
  3747. <div>{{ lang.ssHomeworkPreview }}</div>
  3748. <div
  3749. class="corOpen"
  3750. @click="contract(toolIndex)"
  3751. v-if="
  3752. isCloseList[toolIndex].isCloseBoolean &&
  3753. isCloseList[toolIndex].isClose == 0
  3754. "
  3755. >
  3756. {{ lang.ssFold }}
  3757. </div>
  3758. <div
  3759. class="corOpen"
  3760. @click="contract(toolIndex)"
  3761. v-if="isCloseList[toolIndex].isClose == 1"
  3762. >
  3763. {{ lang.ssExpand }}
  3764. </div>
  3765. </div>
  3766. </div>
  3767. <div
  3768. :id="'tool-' + toolIndex"
  3769. :style="{
  3770. height:
  3771. isCloseList[toolIndex].isClose == 1
  3772. ? retrnToolHeight('tool-' + toolIndex)
  3773. : 'auto',
  3774. overflow:
  3775. isCloseList[toolIndex].isClose == 1
  3776. ? 'hidden'
  3777. : 'unset'
  3778. }"
  3779. class="worksDetailBox"
  3780. v-if="
  3781. worksStudent.length &&
  3782. worksStudent[toolIndex].length > 0
  3783. "
  3784. >
  3785. <div
  3786. class="works"
  3787. style="
  3788. width: 200px;
  3789. height: 140px;
  3790. margin: 10px 10px 10px 0;
  3791. border-radius: 15px;
  3792. box-shadow: 0 0 6px 1px #dfdada;
  3793. "
  3794. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3795. :key="wIndex"
  3796. :class="w.type == 1 ? 'isTypeOne' : ''"
  3797. >
  3798. <div class="workImg">
  3799. <!-- <img
  3800. :src="word2"
  3801. @click="downloadFile(w.works)"
  3802. v-if="w.type == 12"
  3803. alt
  3804. /> -->
  3805. <img
  3806. :src="word2"
  3807. @click="
  3808. openCocoFlow(w)
  3809. "
  3810. alt
  3811. />
  3812. <div
  3813. class="answerScore"
  3814. v-if="w.score"
  3815. @click.stop="openScore(w)"
  3816. :class="{
  3817. rightW:
  3818. w.userid == userid ||
  3819. tType == 1 ||
  3820. tType == 4 ||
  3821. w.ateacher == userid
  3822. }"
  3823. >
  3824. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3825. </div>
  3826. <div
  3827. class="answerScore"
  3828. @click.stop="openScore(w)"
  3829. v-else-if="
  3830. courseDetail.userid == userid &&
  3831. courseDetail.state != 5 &&
  3832. chapInfoList[courseType].chapterInfo[0]
  3833. .taskJson[taskCount].eList &&
  3834. chapInfoList[courseType].chapterInfo[0]
  3835. .taskJson[taskCount].eList.length
  3836. "
  3837. :class="{
  3838. rightW:
  3839. w.userid == userid ||
  3840. tType == 1 ||
  3841. tType == 4 ||
  3842. w.ateacher == userid
  3843. }"
  3844. >
  3845. {{ lang.ssMarkScore }}
  3846. </div>
  3847. <img
  3848. class="deleteImg"
  3849. src="../../assets/deleteworks.png"
  3850. v-if="
  3851. w.userid == userid || tType == 1 || tType == 4
  3852. "
  3853. @click.stop="deleteWorks(w.wid)"
  3854. alt
  3855. />
  3856. </div>
  3857. <div class="comment" style="min-width: 200px">
  3858. <div class="worksName">
  3859. <div>{{ w.sName }}</div>
  3860. </div>
  3861. <div class="commentList">
  3862. <div class="commentList">
  3863. <div
  3864. class="commentImg"
  3865. @click="
  3866. isLikes(
  3867. w.wid,
  3868. userid,
  3869. 1,
  3870. null,
  3871. w.isLikes,
  3872. w.sName
  3873. )
  3874. "
  3875. >
  3876. <img
  3877. :src="w.isLikes == true ? likes : noLikes"
  3878. alt=""
  3879. />
  3880. </div>
  3881. <div>{{ w.likesCount }}</div>
  3882. </div>
  3883. <div class="commentList" style="margin-right: 15px">
  3884. <div
  3885. class="commentImg"
  3886. @click="commentOther(w, toolIndex, wIndex)"
  3887. >
  3888. <img
  3889. src="../../assets/icon/comment/comment.png"
  3890. alt=""
  3891. />
  3892. </div>
  3893. <div>{{ w.commentCount }}</div>
  3894. </div>
  3895. </div>
  3896. </div>
  3897. </div>
  3898. </div>
  3899. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3900. {{ lang.ssNotSubmitted }}
  3901. </div>
  3902. <div
  3903. class="noWorksS"
  3904. v-if="noWorksS && noWorksS[toolIndex].length"
  3905. >
  3906. <div
  3907. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3908. :key="sIndex"
  3909. class="noWorksName2"
  3910. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3911. >
  3912. <el-tooltip
  3913. effect="dark"
  3914. :content="s.student"
  3915. placement="top"
  3916. >
  3917. <span>{{ s.student }}</span>
  3918. </el-tooltip>
  3919. </div>
  3920. </div>
  3921. </div>
  3922. <div
  3923. v-if="
  3924. tType &&
  3925. tType == 2 &&
  3926. !sIsOpen &&
  3927. tool.tool.indexOf(72) != -1
  3928. "
  3929. class="worksBox"
  3930. >
  3931. <div
  3932. class="zuoyeYulan"
  3933. v-if="workStudent[toolIndex].length > 0"
  3934. >
  3935. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  3936. </div>
  3937. <div
  3938. class="worksDetailBox"
  3939. v-if="workStudent[toolIndex].length > 0"
  3940. >
  3941. <div
  3942. class="works"
  3943. style="
  3944. width: 200px;
  3945. height: 140px;
  3946. margin: 10px 10px 10px 0;
  3947. box-shadow: 0 0 6px 1px #dfdada;
  3948. "
  3949. v-for="(w, wIndex) in workStudent[toolIndex]"
  3950. :key="wIndex"
  3951. >
  3952. <div class="workImg">
  3953. <!-- <img
  3954. :src="word2"
  3955. @click="downloadFile(w.works)"
  3956. v-if="w.type == 12"
  3957. alt
  3958. /> -->
  3959. <img
  3960. :src="word2"
  3961. @click="
  3962. openCocoFlow(w)
  3963. "
  3964. alt
  3965. />
  3966. <div
  3967. class="answerScore"
  3968. v-if="w.score"
  3969. @click.stop="openScore(w)"
  3970. :class="{
  3971. rightW:
  3972. w.userid == userid || tType == 1 || tType == 4
  3973. }"
  3974. >
  3975. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3976. </div>
  3977. <div
  3978. class="answerScore"
  3979. @click.stop="openScore(w)"
  3980. v-else-if="courseDetail.userid == userid"
  3981. :class="{
  3982. rightW:
  3983. w.userid == userid || tType == 1 || tType == 4
  3984. }"
  3985. >
  3986. {{ lang.ssMarkScore }}
  3987. </div>
  3988. <img
  3989. class="deleteImg"
  3990. src="../../assets/deleteworks.png"
  3991. v-if="
  3992. w.userid == userid || tType == 1 || tType == 4
  3993. "
  3994. @click.stop="deleteWorks(w.wid)"
  3995. alt
  3996. />
  3997. </div>
  3998. <div class="worksName">
  3999. <div>{{ w.sName }}</div>
  4000. </div>
  4001. </div>
  4002. </div>
  4003. </div>
  4004. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4005. <div
  4006. class="zuoyeYulan"
  4007. v-if="
  4008. worksStudent.length &&
  4009. worksStudent[toolIndex].length > 0
  4010. "
  4011. >
  4012. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  4013. <div
  4014. class="corOpen"
  4015. @click="contract(toolIndex)"
  4016. v-if="
  4017. (isCloseList[toolIndex].isCloseBoolean) &&
  4018. isCloseList[toolIndex].isClose == 0
  4019. "
  4020. >
  4021. {{ lang.ssFold }}
  4022. </div>
  4023. <div
  4024. class="corOpen"
  4025. @click="contract(toolIndex)"
  4026. v-if="isCloseList[toolIndex].isClose == 1"
  4027. >
  4028. {{ lang.ssExpand }}
  4029. </div>
  4030. </div>
  4031. <div
  4032. :id="'tool-' + toolIndex"
  4033. :style="{
  4034. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4035. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4036. }"
  4037. class="worksDetailBox"
  4038. v-if="
  4039. worksStudent.length &&
  4040. worksStudent[toolIndex].length > 0
  4041. "
  4042. >
  4043. <div
  4044. class="works"
  4045. style="
  4046. width: 200px;
  4047. height: 140px;
  4048. margin: 10px 10px 10px 0;
  4049. border-radius: 15px;
  4050. box-shadow: 0 0 6px 1px #dfdada;
  4051. "
  4052. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4053. :key="wIndex"
  4054. :class="w.type == 1 ? 'isTypeOne' : ''"
  4055. >
  4056. <div class="workImg" v-if="w.type == 0">
  4057. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4058. <img
  4059. :src="w.works"
  4060. @click="previewImg(w.works,w)"
  4061. alt
  4062. />
  4063. <div
  4064. class="answerScore"
  4065. v-if="w.score"
  4066. @click.stop="openScore(w)"
  4067. :class="{
  4068. rightW:
  4069. w.userid == userid ||
  4070. tType == 1 ||
  4071. tType == 4 ||
  4072. w.ateacher == userid,
  4073. }"
  4074. >
  4075. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4076. </div>
  4077. <div
  4078. class="answerScore"
  4079. @click.stop="openScore(w)"
  4080. v-else-if="courseDetail.userid == userid"
  4081. :class="{
  4082. rightW:
  4083. w.userid == userid ||
  4084. tType == 1 ||
  4085. tType == 4 ||
  4086. w.ateacher == userid,
  4087. }"
  4088. >
  4089. {{ lang.ssMarkScore }}
  4090. </div>
  4091. <img
  4092. class="deleteImg"
  4093. src="../../assets/deleteworks.png"
  4094. v-if="
  4095. w.userid == userid || tType == 1 || tType == 4
  4096. "
  4097. @click.stop="deleteWorks(w.wid)"
  4098. alt
  4099. />
  4100. </div>
  4101. <div
  4102. class="workImg"
  4103. style="cursor: pointer"
  4104. v-if="w.type == 1"
  4105. >
  4106. <img :src="word" @click="openFile(w.works)" alt />
  4107. <!-- @click="openFile(w.works)" -->
  4108. <div
  4109. class="answerScore"
  4110. v-if="w.score"
  4111. @click.stop="openScore(w)"
  4112. :class="{
  4113. rightW:
  4114. w.userid == userid ||
  4115. tType == 1 ||
  4116. tType == 4 ||
  4117. w.ateacher == userid,
  4118. }"
  4119. >
  4120. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4121. </div>
  4122. <div
  4123. class="answerScore"
  4124. @click.stop="openScore(w)"
  4125. v-else-if="courseDetail.userid == userid"
  4126. :class="{
  4127. rightW:
  4128. w.userid == userid ||
  4129. tType == 1 ||
  4130. tType == 4 ||
  4131. w.ateacher == userid,
  4132. }"
  4133. >
  4134. {{ lang.ssMarkScore }}
  4135. </div>
  4136. <img
  4137. class="deleteImg"
  4138. src="../../assets/deleteworks.png"
  4139. v-if="
  4140. w.userid == userid || tType == 1 || tType == 4
  4141. "
  4142. @click.stop="deleteWorks(w.wid)"
  4143. alt
  4144. />
  4145. </div>
  4146. <div class="workImg" v-if="w.type == 3">
  4147. <img
  4148. style="cursor: pointer"
  4149. :src="video"
  4150. @click="openVideo(w)"
  4151. alt
  4152. />
  4153. <!-- @click="openVideo(w.works)" -->
  4154. <div
  4155. class="answerScore"
  4156. v-if="w.score"
  4157. @click.stop="openScore(w)"
  4158. :class="{
  4159. rightW:
  4160. w.userid == userid ||
  4161. tType == 1 ||
  4162. tType == 4 ||
  4163. w.ateacher == userid,
  4164. }"
  4165. >
  4166. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4167. </div>
  4168. <div
  4169. class="answerScore"
  4170. @click.stop="openScore(w)"
  4171. v-else-if="courseDetail.userid == userid"
  4172. :class="{
  4173. rightW:
  4174. w.userid == userid ||
  4175. tType == 1 ||
  4176. tType == 4 ||
  4177. w.ateacher == userid,
  4178. }"
  4179. >
  4180. {{ lang.ssMarkScore }}
  4181. </div>
  4182. <img
  4183. class="deleteImg"
  4184. src="../../assets/deleteworks.png"
  4185. v-if="
  4186. w.userid == userid || tType == 1 || tType == 4
  4187. "
  4188. @click.stop="deleteWorks(w.wid)"
  4189. alt
  4190. />
  4191. </div>
  4192. <div class="comment" style="min-width: 200px">
  4193. <div class="worksName">
  4194. <div
  4195. style="cursor: pointer"
  4196. @click="
  4197. openSname(w.sName, w.wid, toolIndex, w.userid)
  4198. "
  4199. >
  4200. {{ w.sName }}
  4201. </div>
  4202. </div>
  4203. <div class="commentList">
  4204. <div class="commentList">
  4205. <div
  4206. class="commentImg"
  4207. @click="
  4208. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4209. "
  4210. >
  4211. <img
  4212. :src="w.isLikes == true ? likes : noLikes"
  4213. alt=""
  4214. />
  4215. </div>
  4216. <div>{{ w.likesCount }}</div>
  4217. </div>
  4218. <div class="commentList" style="margin-right: 15px">
  4219. <div
  4220. class="commentImg"
  4221. @click="commentOther(w, toolIndex, wIndex)"
  4222. >
  4223. <img
  4224. src="../../assets/icon/comment/comment.png"
  4225. alt=""
  4226. />
  4227. </div>
  4228. <div>{{ w.commentCount }}</div>
  4229. </div>
  4230. </div>
  4231. </div>
  4232. </div>
  4233. </div>
  4234. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4235. {{ lang.ssNotSubmitted }}
  4236. </div>
  4237. <div
  4238. class="noWorksS"
  4239. v-if="noWorksS && noWorksS[toolIndex].length"
  4240. >
  4241. <div
  4242. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4243. :key="sIndex"
  4244. class="noWorksName"
  4245. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4246. >
  4247. <el-tooltip effect="dark" :content="s.student" placement="top">
  4248. <span>{{ s.student }}</span>
  4249. </el-tooltip>
  4250. </div>
  4251. </div>
  4252. </div>
  4253. <div
  4254. v-if="
  4255. tType &&
  4256. ((tType == 2 && sIsOpen == true) ||
  4257. tType == 1 ||
  4258. tType == 4) &&
  4259. tool.tool.indexOf(4) != -1 &&
  4260. (tool.askJson[0].answer ||
  4261. tool.askJson[0].answer === 0) &&
  4262. checkJson[toolIndex].length
  4263. "
  4264. class="xuan_right_box"
  4265. >
  4266. <div
  4267. class="tool_right_box"
  4268. v-for="(item, index) in tool.askJson"
  4269. :key="index"
  4270. >
  4271. <div style="width: calc(100% - 30px);">
  4272. <el-tooltip
  4273. effect="light"
  4274. :content="index + 1 + '、' + item.askstitle"
  4275. placement="top"
  4276. popper-class="text_tooltip"
  4277. >
  4278. <div
  4279. style="
  4280. width: calc(100% - 130px);
  4281. display: block;
  4282. white-space: nowrap;
  4283. overflow: hidden;
  4284. text-overflow: ellipsis;
  4285. word-break: break-word;
  4286. cursor: pointer;
  4287. "
  4288. >
  4289. {{ index + 1 + "、" + item.askstitle }}
  4290. </div>
  4291. </el-tooltip>
  4292. </div>
  4293. <div class="right_box_xuan">
  4294. <span>{{ lang.ssCorrectRate }}</span>
  4295. <span>{{
  4296. (checkJson[toolIndex][index].right
  4297. ? checkJson[toolIndex][index].right
  4298. : 0) + "%"
  4299. }}</span>
  4300. </div>
  4301. </div>
  4302. </div>
  4303. <div
  4304. class="xuan_right_box"
  4305. style="background: unset; padding: 0 10px"
  4306. v-if="
  4307. tType &&
  4308. ((tType == 2 && sIsOpen == true) ||
  4309. tType == 1 ||
  4310. tType == 4) &&
  4311. tool.tool.indexOf(4) != -1
  4312. "
  4313. >
  4314. <AskStatic
  4315. v-if="
  4316. worksStudent.length &&
  4317. worksStudent[toolIndex].length > 0
  4318. "
  4319. :askJSON="tool"
  4320. :checkJson="checkJson[toolIndex]"
  4321. ></AskStatic>
  4322. </div>
  4323. <div
  4324. v-if="
  4325. tType &&
  4326. ((tType == 2 && sIsOpen == true) ||
  4327. tType == 1 ||
  4328. tType == 4) &&
  4329. tool.tool.indexOf(4) != -1
  4330. "
  4331. class="worksBox"
  4332. >
  4333. <div
  4334. class="zuoyeYulan"
  4335. v-if="
  4336. worksStudent.length &&
  4337. worksStudent[toolIndex].length > 0
  4338. "
  4339. >
  4340. <div class="worksTop">
  4341. <div>{{ lang.ssHomeworkPreview }}</div>
  4342. <div
  4343. class="corOpen"
  4344. @click="contract(toolIndex)"
  4345. v-if="
  4346. (isCloseList[toolIndex].isCloseBoolean) &&
  4347. isCloseList[toolIndex].isClose == 0
  4348. "
  4349. >
  4350. {{ lang.ssFold }}
  4351. </div>
  4352. <div
  4353. class="corOpen"
  4354. @click="contract(toolIndex)"
  4355. v-if="isCloseList[toolIndex].isClose == 1"
  4356. >
  4357. {{ lang.ssExpand }}
  4358. </div>
  4359. </div>
  4360. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4361. </div>
  4362. <div>
  4363. <div
  4364. :id="'tool-' + toolIndex"
  4365. :style="{
  4366. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4367. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4368. }"
  4369. class="worksDetailBox"
  4370. v-if="
  4371. worksStudent.length &&
  4372. worksStudent[toolIndex].length > 0
  4373. "
  4374. >
  4375. <div
  4376. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4377. :key="wIndex"
  4378. class="isWorksName2"
  4379. @click="
  4380. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4381. "
  4382. >
  4383. {{ w.sName }}
  4384. <img
  4385. class="deleteImg deleteImg2"
  4386. src="../../assets/deleteworks.png"
  4387. v-if="
  4388. w.userid == userid || tType == 1 || tType == 4
  4389. "
  4390. @click.stop="deleteWorks(w.wid)"
  4391. alt
  4392. />
  4393. </div>
  4394. <!-- <div class="works" style="
  4395. width: 200px;
  4396. height: 140px;
  4397. border-radius: 10px;
  4398. box-shadow: 0 0 6px 1px #dfdada;
  4399. overflow: hidden;
  4400. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4401. <div class="workImg">
  4402. <img src="../../assets/icon/works/noImg.png" @click="
  4403. openTools(
  4404. 4,
  4405. toolIndex,
  4406. taskCount,
  4407. w.works,
  4408. w.sName
  4409. )
  4410. " alt />
  4411. </div>
  4412. <div class="worksName">
  4413. <div>{{ w.sName }}</div>
  4414. <div>{{ w.time }}</div>
  4415. </div>
  4416. </div> -->
  4417. </div>
  4418. </div>
  4419. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4420. {{ lang.ssNotSubmitted }}
  4421. </div>
  4422. <div
  4423. class="noWorksS"
  4424. v-if="noWorksS && noWorksS[toolIndex].length"
  4425. >
  4426. <div
  4427. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4428. :key="sIndex"
  4429. class="noWorksName"
  4430. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4431. >
  4432. <el-tooltip effect="dark" :content="s.student" placement="top">
  4433. <span>{{ s.student }}</span>
  4434. </el-tooltip>
  4435. </div>
  4436. </div>
  4437. </div>
  4438. <div
  4439. v-if="
  4440. tType &&
  4441. ((tType == 2 && sIsOpen == true) ||
  4442. tType == 1 ||
  4443. tType == 4) &&
  4444. tool.tool.indexOf(45) != -1 &&
  4445. (tool.testJson.testJson[0].answer ||
  4446. tool.testJson.testJson[0].answer === 0) &&
  4447. checkJson[toolIndex].length
  4448. "
  4449. class="xuan_right_box"
  4450. >
  4451. <div
  4452. class="tool_right_box"
  4453. v-for="(item, index) in tool.testJson.testJson"
  4454. :key="index"
  4455. >
  4456. <div class="right_box_xuan" style="margin-right: 10px">
  4457. <span>{{ lang.ssCorrectRate }}</span>
  4458. <span>{{
  4459. (checkJson[toolIndex][index].right
  4460. ? checkJson[toolIndex][index].right
  4461. : 0) + "%"
  4462. }}</span>
  4463. </div>
  4464. <div style="width: calc(100% - 30px);">
  4465. <el-tooltip
  4466. effect="light"
  4467. :content="index + 1 + '、' + item.teststitle"
  4468. placement="top"
  4469. popper-class="text_tooltip"
  4470. >
  4471. <div
  4472. style="
  4473. width: calc(100% - 130px);
  4474. display: flex;
  4475. white-space: nowrap;
  4476. overflow: hidden;
  4477. text-overflow: ellipsis;
  4478. word-break: break-word;
  4479. cursor: pointer;
  4480. "
  4481. class="renderedFor"
  4482. >
  4483. {{ index + 1 + "、" }} <span v-html="item.teststitle"></span>
  4484. </div>
  4485. </el-tooltip>
  4486. </div>
  4487. </div>
  4488. </div>
  4489. <div
  4490. class="xuan_right_box"
  4491. style="background: unset; padding: 0 10px; width: 91.5%"
  4492. v-if="
  4493. tType &&
  4494. ((tType == 2 && sIsOpen == true) ||
  4495. tType == 1 ||
  4496. tType == 4) &&
  4497. tool.tool.indexOf(45) != -1
  4498. "
  4499. >
  4500. <AskStatic2
  4501. v-if="
  4502. worksStudent.length &&
  4503. worksStudent[toolIndex].length > 0
  4504. "
  4505. :askJSON="tool"
  4506. :checkJson="checkJson[toolIndex]"
  4507. ></AskStatic2>
  4508. </div>
  4509. <div
  4510. v-if="
  4511. tType &&
  4512. ((tType == 2 && sIsOpen == true) ||
  4513. tType == 1 ||
  4514. tType == 4) &&
  4515. tool.tool.indexOf(45) != -1
  4516. "
  4517. class="worksBox"
  4518. >
  4519. <div
  4520. class="zuoyeYulan"
  4521. v-if="
  4522. worksStudent.length &&
  4523. worksStudent[toolIndex].length > 0
  4524. "
  4525. >
  4526. <div class="worksTop">
  4527. <div>{{ lang.ssHomeworkPreview }}</div>
  4528. <div
  4529. class="corOpen"
  4530. @click="contract(toolIndex)"
  4531. v-if="
  4532. (isCloseList[toolIndex].isCloseBoolean) &&
  4533. isCloseList[toolIndex].isClose == 0
  4534. "
  4535. >
  4536. {{ lang.ssFold }}
  4537. </div>
  4538. <div
  4539. class="corOpen"
  4540. @click="contract(toolIndex)"
  4541. v-if="isCloseList[toolIndex].isClose == 1"
  4542. >
  4543. {{ lang.ssExpand }}
  4544. </div>
  4545. </div>
  4546. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4547. </div>
  4548. <div>
  4549. <div
  4550. :id="'tool-' + toolIndex"
  4551. :style="{
  4552. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4553. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4554. }"
  4555. class="worksDetailBox"
  4556. v-if="
  4557. worksStudent.length &&
  4558. worksStudent[toolIndex].length > 0
  4559. "
  4560. >
  4561. <div
  4562. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4563. :key="wIndex"
  4564. class="isWorksName2"
  4565. @click="
  4566. openTools(
  4567. 45,
  4568. toolIndex,
  4569. taskCount,
  4570. w.works,
  4571. w.sName
  4572. )
  4573. "
  4574. >
  4575. {{ w.sName }}
  4576. <img
  4577. class="deleteImg deleteImg2"
  4578. src="../../assets/deleteworks.png"
  4579. v-if="
  4580. w.userid == userid || tType == 1 || tType == 4
  4581. "
  4582. @click.stop="deleteWorks(w.wid)"
  4583. alt
  4584. />
  4585. </div>
  4586. </div>
  4587. </div>
  4588. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4589. {{ lang.ssNotSubmitted }}
  4590. </div>
  4591. <div
  4592. class="noWorksS"
  4593. v-if="noWorksS && noWorksS[toolIndex].length"
  4594. >
  4595. <div
  4596. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4597. :key="sIndex"
  4598. class="noWorksName"
  4599. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4600. >
  4601. <el-tooltip effect="dark" :content="s.student" placement="top">
  4602. <span>{{ s.student }}</span>
  4603. </el-tooltip>
  4604. </div>
  4605. </div>
  4606. </div>
  4607. <div
  4608. v-if="
  4609. tType &&
  4610. ((tType == 2 && sIsOpen == true) ||
  4611. tType == 1 ||
  4612. tType == 4) &&
  4613. tool.tool.indexOf(69) != -1
  4614. "
  4615. class="worksBox"
  4616. >
  4617. <div
  4618. class="zuoyeYulan"
  4619. v-if="
  4620. worksStudent.length &&
  4621. worksStudent[toolIndex].length > 0
  4622. "
  4623. >
  4624. <div class="worksTop">
  4625. <div>{{ lang.ssHomeworkPreview }}</div>
  4626. <div
  4627. class="corOpen"
  4628. @click="contract(toolIndex)"
  4629. v-if="
  4630. (isCloseList[toolIndex].isCloseBoolean) &&
  4631. isCloseList[toolIndex].isClose == 0
  4632. "
  4633. >
  4634. {{ lang.ssFold }}
  4635. </div>
  4636. <div
  4637. class="corOpen"
  4638. @click="contract(toolIndex)"
  4639. v-if="isCloseList[toolIndex].isClose == 1"
  4640. >
  4641. {{ lang.ssExpand }}
  4642. </div>
  4643. </div>
  4644. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4645. </div>
  4646. <div>
  4647. <div
  4648. :id="'tool-' + toolIndex"
  4649. :style="{
  4650. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4651. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4652. }"
  4653. class="worksDetailBox"
  4654. v-if="
  4655. worksStudent.length &&
  4656. worksStudent[toolIndex].length > 0
  4657. "
  4658. >
  4659. <div
  4660. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4661. :key="wIndex"
  4662. class="isWorksName2"
  4663. style="width: 160px;height: 65px;line-height: 65px;"
  4664. @click="
  4665. openTools(
  4666. 69,
  4667. toolIndex,
  4668. taskCount,
  4669. w.works,
  4670. w.sName,
  4671. w.wid
  4672. )
  4673. "
  4674. >
  4675. {{ w.sName }}
  4676. <img
  4677. class="deleteImg1"
  4678. src="../../assets/evaEnglish.png"
  4679. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4680. alt
  4681. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4682. />
  4683. <img
  4684. class="deleteImg deleteImg2"
  4685. src="../../assets/deleteworks.png"
  4686. v-if="
  4687. w.userid == userid || tType == 1 || tType == 4
  4688. "
  4689. @click.stop="deleteWorks(w.wid)"
  4690. alt
  4691. />
  4692. </div>
  4693. </div>
  4694. </div>
  4695. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4696. {{ lang.ssNotSubmitted }}
  4697. </div>
  4698. <div
  4699. class="noWorksS"
  4700. v-if="noWorksS && noWorksS[toolIndex].length"
  4701. >
  4702. <div
  4703. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4704. :key="sIndex"
  4705. class="noWorksName"
  4706. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4707. >
  4708. <el-tooltip effect="dark" :content="s.student" placement="top">
  4709. <span>{{ s.student }}</span>
  4710. </el-tooltip>
  4711. </div>
  4712. </div>
  4713. </div>
  4714. <div
  4715. v-if="
  4716. tType &&
  4717. ((tType == 2 && sIsOpen == true) ||
  4718. tType == 1 ||
  4719. tType == 4) &&
  4720. tool.tool.indexOf(15) != -1
  4721. "
  4722. class="worksBox"
  4723. >
  4724. <div
  4725. class="zuoyeYulan"
  4726. v-if="
  4727. (worksStudent.length &&
  4728. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4729. "
  4730. >
  4731. <div class="worksTop">
  4732. <div>{{ lang.ssHomeworkPreview }}</div>
  4733. <div
  4734. class="corOpen"
  4735. @click="contract(toolIndex)"
  4736. v-if="
  4737. (isCloseList[toolIndex].isCloseBoolean) &&
  4738. isCloseList[toolIndex].isClose == 0
  4739. "
  4740. >
  4741. {{ lang.ssFold }}
  4742. </div>
  4743. <div
  4744. class="corOpen"
  4745. @click="contract(toolIndex)"
  4746. v-if="isCloseList[toolIndex].isClose == 1"
  4747. >
  4748. {{ lang.ssExpand }}
  4749. </div>
  4750. </div>
  4751. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4752. </div>
  4753. <div
  4754. class="group_workBox"
  4755. v-for="(g, gindex) in courseGroup.group"
  4756. :key="gindex"
  4757. >
  4758. <div class="group_box">
  4759. <div class="group_title">
  4760. <el-tooltip
  4761. class="item"
  4762. effect="light"
  4763. :content="g.name"
  4764. placement="top"
  4765. >
  4766. <div class="group_name">{{ g.name }}</div>
  4767. </el-tooltip>
  4768. </div>
  4769. <div
  4770. class="group_work"
  4771. v-if="
  4772. g.works &&
  4773. g.works.length &&
  4774. g.works[toolIndex].length
  4775. "
  4776. >
  4777. <div
  4778. class="works"
  4779. v-for="(w, wIndex) in g.works[toolIndex]"
  4780. :key="wIndex"
  4781. >
  4782. <div
  4783. class="workImg"
  4784. style="
  4785. border-radius: 15px;
  4786. box-shadow: 0px 0px 5px 5px #eee;
  4787. "
  4788. >
  4789. <div
  4790. class="answerBg"
  4791. style="border-radius: 15px 15px 0 0"
  4792. @click="
  4793. commentOther(w, toolIndex, wIndex, null, g.id)
  4794. "
  4795. >
  4796. <div class="answerContent">
  4797. {{ JSON.parse(w.works)[0].answer }}
  4798. </div>
  4799. <div
  4800. class="answerScore"
  4801. v-if="w.score"
  4802. @click.stop="openScore(w)"
  4803. :class="{
  4804. rightW:
  4805. w.userid == userid ||
  4806. tType == 1 ||
  4807. tType == 4,
  4808. }"
  4809. >
  4810. {{ JSON.parse(w.score).wScore }}{{ lang.ssScoreUnit }}
  4811. </div>
  4812. <div
  4813. class="answerScore"
  4814. @click.stop="openScore(w)"
  4815. v-else-if="courseDetail.userid == userid"
  4816. :class="{
  4817. rightW:
  4818. w.userid == userid ||
  4819. tType == 1 ||
  4820. tType == 4,
  4821. }"
  4822. >
  4823. {{ lang.ssMarkScore }}
  4824. </div>
  4825. <img
  4826. class="deleteImg"
  4827. src="../../assets/deleteworks.png"
  4828. v-if="
  4829. w.userid == userid ||
  4830. tType == 1 ||
  4831. tType == 4
  4832. "
  4833. @click.stop="deleteWorks(w.wid)"
  4834. alt
  4835. />
  4836. </div>
  4837. <div class="comment">
  4838. <div class="worksName">
  4839. <div>{{ w.sName }}</div>
  4840. </div>
  4841. <div class="commentList">
  4842. <div
  4843. class="commentImg"
  4844. @click="
  4845. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4846. "
  4847. >
  4848. <img
  4849. :src="w.isLikes == true ? likes : noLikes"
  4850. alt=""
  4851. />
  4852. </div>
  4853. <div>{{ w.likesCount }}</div>
  4854. </div>
  4855. <div
  4856. class="commentList"
  4857. style="margin-right: 15px"
  4858. >
  4859. <div
  4860. class="commentImg"
  4861. @click="
  4862. commentOther(
  4863. w,
  4864. toolIndex,
  4865. wIndex,
  4866. null,
  4867. g.id
  4868. )
  4869. "
  4870. >
  4871. <img
  4872. src="../../assets/icon/comment/comment.png"
  4873. alt=""
  4874. />
  4875. </div>
  4876. <div>{{ w.commentCount }}</div>
  4877. </div>
  4878. </div>
  4879. </div>
  4880. </div>
  4881. </div>
  4882. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  4883. </div>
  4884. </div>
  4885. <div
  4886. :id="'tool-' + toolIndex"
  4887. :style="{
  4888. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4889. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4890. }"
  4891. class="worksDetailBox"
  4892. v-if="
  4893. worksStudent.length &&
  4894. worksStudent[toolIndex].length > 0
  4895. "
  4896. >
  4897. <div
  4898. class="works"
  4899. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4900. :key="wIndex"
  4901. >
  4902. <div
  4903. class="workImg"
  4904. style="
  4905. border-radius: 15px;
  4906. box-shadow: 0px 0px 5px 5px #eee;
  4907. "
  4908. >
  4909. <!-- <img
  4910. src="../../assets/icon/works/noImg.png"
  4911. @click="openTools(15, toolIndex, taskCount, w.works)"
  4912. alt=""
  4913. />-->
  4914. <div
  4915. class="answerBg"
  4916. style="border-radius: 15px 15px 0 0"
  4917. @click="commentOther(w, toolIndex, wIndex)"
  4918. >
  4919. <!-- <div>{{ w.sName }}</div> -->
  4920. <div class="answerContent">
  4921. {{ JSON.parse(w.works)[0].answer }}
  4922. </div>
  4923. <div
  4924. class="answerScore"
  4925. v-if="w.score"
  4926. @click.stop="openScore(w)"
  4927. :class="{
  4928. rightW:
  4929. w.userid == userid ||
  4930. tType == 1 ||
  4931. tType == 4,
  4932. }"
  4933. >
  4934. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4935. </div>
  4936. <div
  4937. class="answerScore"
  4938. @click.stop="openScore(w)"
  4939. v-else-if="courseDetail.userid == userid"
  4940. :class="{
  4941. rightW:
  4942. w.userid == userid ||
  4943. tType == 1 ||
  4944. tType == 4,
  4945. }"
  4946. >
  4947. {{ lang.ssMarkScore }}
  4948. </div>
  4949. <img
  4950. class="deleteImg"
  4951. src="../../assets/deleteworks.png"
  4952. v-if="
  4953. w.userid == userid || tType == 1 || tType == 4
  4954. "
  4955. @click.stop="deleteWorks(w.wid)"
  4956. alt
  4957. />
  4958. </div>
  4959. <div class="comment">
  4960. <div class="worksName">
  4961. <div>{{ w.sName }}</div>
  4962. </div>
  4963. <div class="commentList">
  4964. <div
  4965. class="commentImg"
  4966. @click="
  4967. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4968. "
  4969. >
  4970. <img
  4971. :src="w.isLikes == true ? likes : noLikes"
  4972. alt=""
  4973. />
  4974. </div>
  4975. <div>{{ w.likesCount }}</div>
  4976. </div>
  4977. <div class="commentList" style="margin-right: 15px">
  4978. <div
  4979. class="commentImg"
  4980. @click="commentOther(w, toolIndex, wIndex)"
  4981. >
  4982. <img
  4983. src="../../assets/icon/comment/comment.png"
  4984. alt=""
  4985. />
  4986. </div>
  4987. <div>{{ w.commentCount }}</div>
  4988. </div>
  4989. </div>
  4990. </div>
  4991. </div>
  4992. </div>
  4993. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4994. {{ lang.ssNotSubmitted }}
  4995. </div>
  4996. <div
  4997. class="noWorksS"
  4998. v-if="noWorksS && noWorksS[toolIndex].length"
  4999. >
  5000. <div
  5001. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5002. :key="sIndex"
  5003. class="noWorksName"
  5004. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  5005. >
  5006. <el-tooltip effect="dark" :content="s.student" placement="top">
  5007. <span>{{ s.student }}</span>
  5008. </el-tooltip>
  5009. </div>
  5010. </div>
  5011. </div>
  5012. <div
  5013. v-if="
  5014. tType &&
  5015. ((tType == 2 && sIsOpen == true) ||
  5016. tType == 1 ||
  5017. tType == 4) &&
  5018. tool.tool.indexOf(1) != -1
  5019. "
  5020. class="worksBox"
  5021. >
  5022. <div
  5023. class="zuoyeYulan"
  5024. v-if="
  5025. (worksStudent.length &&
  5026. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5027. "
  5028. >
  5029. <div class="worksTop">
  5030. <div>{{ lang.ssHomeworkPreview }}</div>
  5031. <div
  5032. class="corOpen"
  5033. @click="contract(toolIndex)"
  5034. v-if="
  5035. (isCloseList[toolIndex].isCloseBoolean) &&
  5036. isCloseList[toolIndex].isClose == 0
  5037. "
  5038. >
  5039. {{ lang.ssFold }}
  5040. </div>
  5041. <div
  5042. class="corOpen"
  5043. @click="contract(toolIndex)"
  5044. v-if="isCloseList[toolIndex].isClose == 1"
  5045. >
  5046. {{ lang.ssExpand }}
  5047. </div>
  5048. </div>
  5049. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5050. </div>
  5051. <div
  5052. class="group_workBox"
  5053. v-for="(g, gindex) in courseGroup.group"
  5054. :key="gindex"
  5055. >
  5056. <div class="group_box">
  5057. <div class="group_title">
  5058. <el-tooltip
  5059. class="item"
  5060. effect="light"
  5061. :content="g.name"
  5062. placement="top"
  5063. >
  5064. <div class="group_name">{{ g.name }}</div>
  5065. </el-tooltip>
  5066. </div>
  5067. <div
  5068. class="group_work"
  5069. v-if="
  5070. g.works &&
  5071. g.works.length &&
  5072. g.works[toolIndex].length
  5073. "
  5074. >
  5075. <div
  5076. class="works"
  5077. style="
  5078. width: 200px;
  5079. height: 140px;
  5080. margin: 10px 10px 10px 0;
  5081. border-radius: 15px;
  5082. box-shadow: 0 0 6px 1px #dfdada;
  5083. "
  5084. v-for="(w, wIndex) in g.works[toolIndex]"
  5085. :key="wIndex"
  5086. :class="w.type == 1 ? 'isTypeOne' : ''"
  5087. >
  5088. <div class="workImg">
  5089. <img
  5090. :src="w.works"
  5091. @click="previewImg(w.works,w)"
  5092. alt
  5093. />
  5094. <div
  5095. class="answerScore"
  5096. v-if="w.score"
  5097. @click.stop="openScore(w)"
  5098. :class="{
  5099. rightW:
  5100. w.userid == userid ||
  5101. tType == 1 ||
  5102. tType == 4,
  5103. }"
  5104. >
  5105. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5106. </div>
  5107. <div
  5108. class="answerScore"
  5109. @click.stop="openScore(w)"
  5110. v-else-if="courseDetail.userid == userid"
  5111. :class="{
  5112. rightW:
  5113. w.userid == userid ||
  5114. tType == 1 ||
  5115. tType == 4,
  5116. }"
  5117. >
  5118. {{ lang.ssMarkScore }}
  5119. </div>
  5120. <img
  5121. class="deleteImg"
  5122. src="../../assets/deleteworks.png"
  5123. v-if="
  5124. w.userid == userid || tType == 1 || tType == 4
  5125. "
  5126. @click.stop="deleteWorks(w.wid)"
  5127. alt
  5128. />
  5129. </div>
  5130. <div class="comment" style="min-width: 200px">
  5131. <div class="worksName">
  5132. <div>{{ w.sName }}</div>
  5133. </div>
  5134. <div class="commentList">
  5135. <div class="commentList">
  5136. <div
  5137. class="commentImg"
  5138. @click="
  5139. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5140. "
  5141. >
  5142. <img
  5143. :src="w.isLikes == true ? likes : noLikes"
  5144. alt=""
  5145. />
  5146. </div>
  5147. <div>{{ w.likesCount }}</div>
  5148. </div>
  5149. <div
  5150. class="commentList"
  5151. style="margin-right: 15px"
  5152. >
  5153. <div
  5154. class="commentImg"
  5155. @click="
  5156. commentOther(
  5157. w,
  5158. toolIndex,
  5159. wIndex,
  5160. null,
  5161. g.id
  5162. )
  5163. "
  5164. >
  5165. <img
  5166. src="../../assets/icon/comment/comment.png"
  5167. alt=""
  5168. />
  5169. </div>
  5170. <div>{{ w.commentCount }}</div>
  5171. </div>
  5172. </div>
  5173. </div>
  5174. </div>
  5175. </div>
  5176. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  5177. </div>
  5178. </div>
  5179. <div
  5180. :id="'tool-' + toolIndex"
  5181. :style="{
  5182. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5183. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5184. }"
  5185. class="worksDetailBox"
  5186. v-if="
  5187. worksStudent.length &&
  5188. worksStudent[toolIndex].length > 0
  5189. "
  5190. >
  5191. <div
  5192. class="works"
  5193. style="
  5194. width: 200px;
  5195. height: 140px;
  5196. margin: 10px 10px 10px 0;
  5197. border-radius: 15px;
  5198. box-shadow: 0 0 6px 1px #dfdada;
  5199. "
  5200. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5201. :key="wIndex"
  5202. >
  5203. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5204. <div class="workImg">
  5205. <img
  5206. :src="w.works"
  5207. @click="previewImg(w.works,w)"
  5208. alt
  5209. />
  5210. <div
  5211. class="answerScore"
  5212. v-if="w.score"
  5213. @click.stop="openScore(w)"
  5214. :class="{
  5215. rightW:
  5216. w.userid == userid || tType == 1 || tType == 4,
  5217. }"
  5218. >
  5219. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5220. </div>
  5221. <div
  5222. class="answerScore"
  5223. @click.stop="openScore(w)"
  5224. v-else-if="courseDetail.userid == userid"
  5225. :class="{
  5226. rightW:
  5227. w.userid == userid || tType == 1 || tType == 4,
  5228. }"
  5229. >
  5230. {{ lang.ssMarkScore }}
  5231. </div>
  5232. <img
  5233. class="deleteImg"
  5234. src="../../assets/deleteworks.png"
  5235. v-if="
  5236. w.userid == userid || tType == 1 || tType == 4
  5237. "
  5238. @click.stop="deleteWorks(w.wid)"
  5239. alt
  5240. />
  5241. </div>
  5242. <div class="comment" style="min-width: 200px">
  5243. <div class="worksName">
  5244. <div>{{ w.sName }}</div>
  5245. </div>
  5246. <div class="commentList">
  5247. <div class="commentList">
  5248. <div
  5249. class="commentImg"
  5250. @click="
  5251. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5252. "
  5253. >
  5254. <img
  5255. :src="w.isLikes == true ? likes : noLikes"
  5256. alt=""
  5257. />
  5258. </div>
  5259. <div>{{ w.likesCount }}</div>
  5260. </div>
  5261. <div class="commentList" style="margin-right: 15px">
  5262. <div
  5263. class="commentImg"
  5264. @click="commentOther(w, toolIndex, wIndex)"
  5265. >
  5266. <img
  5267. src="../../assets/icon/comment/comment.png"
  5268. alt=""
  5269. />
  5270. </div>
  5271. <div>{{ w.commentCount }}</div>
  5272. </div>
  5273. </div>
  5274. </div>
  5275. </div>
  5276. </div>
  5277. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5278. {{ lang.ssNotSubmitted }}
  5279. </div>
  5280. <div
  5281. class="noWorksS"
  5282. v-if="noWorksS && noWorksS[toolIndex].length"
  5283. >
  5284. <div
  5285. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5286. :key="sIndex"
  5287. class="noWorksName"
  5288. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5289. >
  5290. <el-tooltip effect="dark" :content="s.student" placement="top">
  5291. <span>{{ s.student }}</span>
  5292. </el-tooltip>
  5293. </div>
  5294. </div>
  5295. </div>
  5296. <div
  5297. v-if="
  5298. tType &&
  5299. ((tType == 2 && sIsOpen == true) ||
  5300. tType == 1 ||
  5301. tType == 4) &&
  5302. tool.tool.indexOf(3) != -1
  5303. "
  5304. class="worksBox"
  5305. >
  5306. <div
  5307. class="zuoyeYulan"
  5308. v-if="
  5309. (worksStudent.length &&
  5310. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5311. "
  5312. >
  5313. <div class="worksTop">
  5314. <div>{{ lang.ssHomeworkPreview }}</div>
  5315. <div
  5316. class="corOpen"
  5317. @click="contract(toolIndex)"
  5318. v-if="
  5319. (isCloseList[toolIndex].isCloseBoolean) &&
  5320. isCloseList[toolIndex].isClose == 0
  5321. "
  5322. >
  5323. {{ lang.ssFold }}
  5324. </div>
  5325. <div
  5326. class="corOpen"
  5327. @click="contract(toolIndex)"
  5328. v-if="isCloseList[toolIndex].isClose == 1"
  5329. >
  5330. {{ lang.ssExpand }}
  5331. </div>
  5332. </div>
  5333. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5334. </div>
  5335. <div
  5336. class="group_workBox"
  5337. v-for="(g, gindex) in courseGroup.group"
  5338. :key="gindex"
  5339. >
  5340. <div class="group_box">
  5341. <div class="group_title">
  5342. <el-tooltip
  5343. class="item"
  5344. effect="light"
  5345. :content="g.name"
  5346. placement="top"
  5347. >
  5348. <div class="group_name">{{ g.name }}</div>
  5349. </el-tooltip>
  5350. </div>
  5351. <div
  5352. class="group_work"
  5353. v-if="
  5354. g.works &&
  5355. g.works.length &&
  5356. g.works[toolIndex].length
  5357. "
  5358. >
  5359. <div
  5360. class="works"
  5361. style="
  5362. width: 200px;
  5363. height: 140px;
  5364. margin: 10px 10px 10px 0;
  5365. border-radius: 15px;
  5366. box-shadow: 0 0 6px 1px #dfdada;
  5367. "
  5368. v-for="(w, wIndex) in g.works[toolIndex]"
  5369. :key="wIndex"
  5370. :class="w.type == 1 ? 'isTypeOne' : ''"
  5371. >
  5372. <div class="workImg">
  5373. <img
  5374. :src="w.works"
  5375. @click="previewImg(w.works,w)"
  5376. alt
  5377. />
  5378. <div
  5379. class="answerScore"
  5380. v-if="w.score"
  5381. @click.stop="openScore(w)"
  5382. :class="{
  5383. rightW:
  5384. w.userid == userid ||
  5385. tType == 1 ||
  5386. tType == 4,
  5387. }"
  5388. >
  5389. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5390. </div>
  5391. <div
  5392. class="answerScore"
  5393. @click.stop="openScore(w)"
  5394. v-else-if="courseDetail.userid == userid"
  5395. :class="{
  5396. rightW:
  5397. w.userid == userid ||
  5398. tType == 1 ||
  5399. tType == 4,
  5400. }"
  5401. >
  5402. {{ lang.ssMarkScore }}
  5403. </div>
  5404. <img
  5405. class="deleteImg"
  5406. src="../../assets/deleteworks.png"
  5407. v-if="
  5408. w.userid == userid || tType == 1 || tType == 4
  5409. "
  5410. @click.stop="deleteWorks(w.wid)"
  5411. alt
  5412. />
  5413. </div>
  5414. <div class="comment" style="min-width: 200px">
  5415. <div class="worksName">
  5416. <div>{{ w.sName }}</div>
  5417. </div>
  5418. <div class="commentList">
  5419. <div class="commentList">
  5420. <div
  5421. class="commentImg"
  5422. @click="
  5423. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5424. "
  5425. >
  5426. <img
  5427. :src="w.isLikes == true ? likes : noLikes"
  5428. alt=""
  5429. />
  5430. </div>
  5431. <div>{{ w.likesCount }}</div>
  5432. </div>
  5433. <div
  5434. class="commentList"
  5435. style="margin-right: 15px"
  5436. >
  5437. <div
  5438. class="commentImg"
  5439. @click="
  5440. commentOther(
  5441. w,
  5442. toolIndex,
  5443. wIndex,
  5444. null,
  5445. g.id
  5446. )
  5447. "
  5448. >
  5449. <img
  5450. src="../../assets/icon/comment/comment.png"
  5451. alt=""
  5452. />
  5453. </div>
  5454. <div>{{ w.commentCount }}</div>
  5455. </div>
  5456. </div>
  5457. </div>
  5458. </div>
  5459. </div>
  5460. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  5461. </div>
  5462. </div>
  5463. <div
  5464. :id="'tool-' + toolIndex"
  5465. :style="{
  5466. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5467. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5468. }"
  5469. class="worksDetailBox"
  5470. v-if="
  5471. worksStudent.length &&
  5472. worksStudent[toolIndex].length > 0
  5473. "
  5474. >
  5475. <div
  5476. class="works"
  5477. style="
  5478. width: 200px;
  5479. height: 140px;
  5480. margin: 10px 10px 10px 0;
  5481. border-radius: 15px;
  5482. box-shadow: 0 0 6px 1px #dfdada;
  5483. "
  5484. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5485. :key="wIndex"
  5486. >
  5487. <!-- @click="previewImg(w.works)" -->
  5488. <div class="workImg">
  5489. <img
  5490. :src="w.works"
  5491. @click="previewImg(w.works,w)"
  5492. alt
  5493. />
  5494. <div
  5495. class="answerScore"
  5496. v-if="w.score"
  5497. @click.stop="openScore(w)"
  5498. :class="{
  5499. rightW:
  5500. w.userid == userid || tType == 1 || tType == 4,
  5501. }"
  5502. >
  5503. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5504. </div>
  5505. <div
  5506. class="answerScore"
  5507. @click.stop="openScore(w)"
  5508. v-else-if="courseDetail.userid == userid"
  5509. :class="{
  5510. rightW:
  5511. w.userid == userid || tType == 1 || tType == 4,
  5512. }"
  5513. >
  5514. {{ lang.ssMarkScore }}
  5515. </div>
  5516. <img
  5517. class="deleteImg"
  5518. src="../../assets/deleteworks.png"
  5519. v-if="
  5520. w.userid == userid || tType == 1 || tType == 4
  5521. "
  5522. @click.stop="deleteWorks(w.wid)"
  5523. alt
  5524. />
  5525. </div>
  5526. <div class="comment" style="min-width: 200px">
  5527. <div class="worksName">
  5528. <div>{{ w.sName }}</div>
  5529. </div>
  5530. <div class="commentList">
  5531. <div class="commentList">
  5532. <div
  5533. class="commentImg"
  5534. @click="
  5535. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5536. "
  5537. >
  5538. <img
  5539. :src="w.isLikes == true ? likes : noLikes"
  5540. alt=""
  5541. />
  5542. </div>
  5543. <div>{{ w.likesCount }}</div>
  5544. </div>
  5545. <div class="commentList" style="margin-right: 15px">
  5546. <div
  5547. class="commentImg"
  5548. @click="commentOther(w, toolIndex, wIndex)"
  5549. >
  5550. <img
  5551. src="../../assets/icon/comment/comment.png"
  5552. alt=""
  5553. />
  5554. </div>
  5555. <div>{{ w.commentCount }}</div>
  5556. </div>
  5557. </div>
  5558. </div>
  5559. </div>
  5560. </div>
  5561. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5562. {{ lang.ssNotSubmitted }}
  5563. </div>
  5564. <div
  5565. class="noWorksS"
  5566. v-if="noWorksS && noWorksS[toolIndex].length"
  5567. >
  5568. <div
  5569. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5570. :key="sIndex"
  5571. class="noWorksName"
  5572. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5573. >
  5574. <el-tooltip effect="dark" :content="s.student" placement="top">
  5575. <span>{{ s.student }}</span>
  5576. </el-tooltip>
  5577. </div>
  5578. </div>
  5579. </div>
  5580. <div
  5581. v-if="
  5582. tType &&
  5583. ((tType == 2 && sIsOpen == true) ||
  5584. tType == 1 ||
  5585. tType == 4) &&
  5586. tool.tool.indexOf(6) != -1
  5587. "
  5588. class="worksBox"
  5589. >
  5590. <div
  5591. class="zuoyeYulan"
  5592. v-if="
  5593. (worksStudent.length &&
  5594. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5595. "
  5596. >
  5597. <div class="worksTop">
  5598. <div>{{ lang.ssHomeworkPreview }}</div>
  5599. <div
  5600. class="corOpen"
  5601. @click="contract(toolIndex)"
  5602. v-if="
  5603. (isCloseList[toolIndex].isCloseBoolean) &&
  5604. isCloseList[toolIndex].isClose == 0
  5605. "
  5606. >
  5607. {{ lang.ssFold }}
  5608. </div>
  5609. <div
  5610. class="corOpen"
  5611. @click="contract(toolIndex)"
  5612. v-if="isCloseList[toolIndex].isClose == 1"
  5613. >
  5614. {{ lang.ssExpand }}
  5615. </div>
  5616. </div>
  5617. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5618. </div>
  5619. <div
  5620. class="group_workBox"
  5621. v-for="(g, gindex) in courseGroup.group"
  5622. :key="gindex"
  5623. >
  5624. <div class="group_box">
  5625. <div class="group_title">
  5626. <el-tooltip
  5627. class="item"
  5628. effect="light"
  5629. :content="g.name"
  5630. placement="top"
  5631. >
  5632. <div class="group_name">{{ g.name }}</div>
  5633. </el-tooltip>
  5634. </div>
  5635. <div
  5636. class="group_work"
  5637. v-if="
  5638. g.works &&
  5639. g.works.length &&
  5640. g.works[toolIndex].length
  5641. "
  5642. >
  5643. <div
  5644. class="works"
  5645. style="
  5646. width: 200px;
  5647. height: 140px;
  5648. margin: 10px 10px 10px 0;
  5649. border-radius: 15px;
  5650. box-shadow: 0 0 6px 1px #dfdada;
  5651. "
  5652. v-for="(w, wIndex) in g.works[toolIndex]"
  5653. :key="wIndex"
  5654. :class="w.type == 1 ? 'isTypeOne' : ''"
  5655. >
  5656. <div class="workImg">
  5657. <img
  5658. :src="w.works"
  5659. @click="previewImg(w.works,w)"
  5660. alt
  5661. />
  5662. <div
  5663. class="answerScore"
  5664. v-if="w.score"
  5665. @click.stop="openScore(w)"
  5666. :class="{
  5667. rightW:
  5668. w.userid == userid ||
  5669. tType == 1 ||
  5670. tType == 4,
  5671. }"
  5672. >
  5673. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5674. </div>
  5675. <div
  5676. class="answerScore"
  5677. @click.stop="openScore(w)"
  5678. v-else-if="courseDetail.userid == userid"
  5679. :class="{
  5680. rightW:
  5681. w.userid == userid ||
  5682. tType == 1 ||
  5683. tType == 4,
  5684. }"
  5685. >
  5686. {{ lang.ssMarkScore }}
  5687. </div>
  5688. <img
  5689. class="deleteImg"
  5690. src="../../assets/deleteworks.png"
  5691. v-if="
  5692. w.userid == userid || tType == 1 || tType == 4
  5693. "
  5694. @click.stop="deleteWorks(w.wid)"
  5695. alt
  5696. />
  5697. </div>
  5698. <div class="comment" style="min-width: 200px">
  5699. <div class="worksName">
  5700. <div>{{ w.sName }}</div>
  5701. </div>
  5702. <div class="commentList">
  5703. <div class="commentList">
  5704. <div
  5705. class="commentImg"
  5706. @click="
  5707. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5708. "
  5709. >
  5710. <img
  5711. :src="w.isLikes == true ? likes : noLikes"
  5712. alt=""
  5713. />
  5714. </div>
  5715. <div>{{ w.likesCount }}</div>
  5716. </div>
  5717. <div
  5718. class="commentList"
  5719. style="margin-right: 15px"
  5720. >
  5721. <div
  5722. class="commentImg"
  5723. @click="
  5724. commentOther(
  5725. w,
  5726. toolIndex,
  5727. wIndex,
  5728. null,
  5729. g.id
  5730. )
  5731. "
  5732. >
  5733. <img
  5734. src="../../assets/icon/comment/comment.png"
  5735. alt=""
  5736. />
  5737. </div>
  5738. <div>{{ w.commentCount }}</div>
  5739. </div>
  5740. </div>
  5741. </div>
  5742. </div>
  5743. </div>
  5744. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  5745. </div>
  5746. </div>
  5747. <div
  5748. :id="'tool-' + toolIndex"
  5749. :style="{
  5750. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5751. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5752. }"
  5753. class="worksDetailBox"
  5754. v-if="
  5755. worksStudent.length &&
  5756. worksStudent[toolIndex].length > 0
  5757. "
  5758. >
  5759. <div
  5760. class="works"
  5761. style="
  5762. width: 200px;
  5763. height: 140px;
  5764. margin: 10px 10px 10px 0;
  5765. border-radius: 15px;
  5766. box-shadow: 0 0 6px 1px #dfdada;
  5767. "
  5768. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5769. :key="wIndex"
  5770. >
  5771. <!-- @click="previewImg(w.works)" -->
  5772. <div class="workImg">
  5773. <img
  5774. :src="w.works"
  5775. @click="previewImg(w.works,w)"
  5776. alt
  5777. />
  5778. <div
  5779. class="answerScore"
  5780. v-if="w.score"
  5781. @click.stop="openScore(w)"
  5782. :class="{
  5783. rightW:
  5784. w.userid == userid || tType == 1 || tType == 4,
  5785. }"
  5786. >
  5787. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5788. </div>
  5789. <div
  5790. class="answerScore"
  5791. @click.stop="openScore(w)"
  5792. v-else-if="courseDetail.userid == userid"
  5793. :class="{
  5794. rightW:
  5795. w.userid == userid || tType == 1 || tType == 4,
  5796. }"
  5797. >
  5798. {{ lang.ssMarkScore }}
  5799. </div>
  5800. <img
  5801. class="deleteImg"
  5802. src="../../assets/deleteworks.png"
  5803. v-if="
  5804. w.userid == userid || tType == 1 || tType == 4
  5805. "
  5806. @click.stop="deleteWorks(w.wid)"
  5807. alt
  5808. />
  5809. </div>
  5810. <div class="comment" style="min-width: 200px">
  5811. <div class="worksName">
  5812. <div>{{ w.sName }}</div>
  5813. </div>
  5814. <div class="commentList">
  5815. <div class="commentList">
  5816. <div
  5817. class="commentImg"
  5818. @click="
  5819. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5820. "
  5821. >
  5822. <img
  5823. :src="w.isLikes == true ? likes : noLikes"
  5824. alt=""
  5825. />
  5826. </div>
  5827. <div>{{ w.likesCount }}</div>
  5828. </div>
  5829. <div class="commentList" style="margin-right: 15px">
  5830. <div
  5831. class="commentImg"
  5832. @click="commentOther(w, toolIndex, wIndex)"
  5833. >
  5834. <img
  5835. src="../../assets/icon/comment/comment.png"
  5836. alt=""
  5837. />
  5838. </div>
  5839. <div>{{ w.commentCount }}</div>
  5840. </div>
  5841. </div>
  5842. </div>
  5843. </div>
  5844. </div>
  5845. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5846. {{ lang.ssNotSubmitted }}
  5847. </div>
  5848. <div
  5849. class="noWorksS"
  5850. v-if="noWorksS && noWorksS[toolIndex].length"
  5851. >
  5852. <div
  5853. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5854. :key="sIndex"
  5855. class="noWorksName"
  5856. >
  5857. <el-tooltip effect="dark" :content="s.student" placement="top">
  5858. <span>{{ s.student }}</span>
  5859. </el-tooltip>
  5860. </div>
  5861. </div>
  5862. </div>
  5863. <div
  5864. v-if="
  5865. tType &&
  5866. ((tType == 2 && sIsOpen == true) ||
  5867. tType == 1 ||
  5868. tType == 4) &&
  5869. tool.tool.indexOf(7) != -1
  5870. "
  5871. class="worksBox"
  5872. >
  5873. <div
  5874. class="zuoyeYulan"
  5875. v-if="
  5876. (worksStudent.length &&
  5877. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5878. "
  5879. >
  5880. <div class="worksTop">
  5881. <div>{{ lang.ssHomeworkPreview }}</div>
  5882. <div
  5883. class="corOpen"
  5884. @click="contract(toolIndex)"
  5885. v-if="
  5886. (isCloseList[toolIndex].isCloseBoolean) &&
  5887. isCloseList[toolIndex].isClose == 0
  5888. "
  5889. >
  5890. {{ lang.ssFold }}
  5891. </div>
  5892. <div
  5893. class="corOpen"
  5894. @click="contract(toolIndex)"
  5895. v-if="isCloseList[toolIndex].isClose == 1"
  5896. >
  5897. {{ lang.ssExpand }}
  5898. </div>
  5899. </div>
  5900. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5901. </div>
  5902. <div
  5903. class="group_workBox"
  5904. v-for="(g, gindex) in courseGroup.group"
  5905. :key="gindex"
  5906. >
  5907. <div class="group_box">
  5908. <div class="group_title">
  5909. <el-tooltip
  5910. class="item"
  5911. effect="light"
  5912. :content="g.name"
  5913. placement="top"
  5914. >
  5915. <div class="group_name">{{ g.name }}</div>
  5916. </el-tooltip>
  5917. </div>
  5918. <div
  5919. class="group_work"
  5920. v-if="
  5921. g.works &&
  5922. g.works.length &&
  5923. g.works[toolIndex].length
  5924. "
  5925. >
  5926. <div
  5927. class="works"
  5928. style="
  5929. width: 200px;
  5930. height: 140px;
  5931. margin: 10px 10px 10px 0;
  5932. border-radius: 15px;
  5933. box-shadow: 0 0 6px 1px #dfdada;
  5934. "
  5935. v-for="(w, wIndex) in g.works[toolIndex]"
  5936. :key="wIndex"
  5937. :class="w.type == 1 ? 'isTypeOne' : ''"
  5938. >
  5939. <div class="workImg">
  5940. <img
  5941. :src="w.works"
  5942. @click="previewImg(w.works,w)"
  5943. alt
  5944. />
  5945. <div
  5946. class="answerScore"
  5947. v-if="w.score"
  5948. @click.stop="openScore(w)"
  5949. :class="{
  5950. rightW:
  5951. w.userid == userid ||
  5952. tType == 1 ||
  5953. tType == 4,
  5954. }"
  5955. >
  5956. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5957. </div>
  5958. <div
  5959. class="answerScore"
  5960. @click.stop="openScore(w)"
  5961. v-else-if="courseDetail.userid == userid"
  5962. :class="{
  5963. rightW:
  5964. w.userid == userid ||
  5965. tType == 1 ||
  5966. tType == 4,
  5967. }"
  5968. >
  5969. {{ lang.ssMarkScore }}
  5970. </div>
  5971. <img
  5972. class="deleteImg"
  5973. src="../../assets/deleteworks.png"
  5974. v-if="
  5975. w.userid == userid || tType == 1 || tType == 4
  5976. "
  5977. @click.stop="deleteWorks(w.wid)"
  5978. alt
  5979. />
  5980. </div>
  5981. <div class="comment" style="min-width: 200px">
  5982. <div class="worksName">
  5983. <div>{{ w.sName }}</div>
  5984. </div>
  5985. <div class="commentList">
  5986. <div class="commentList">
  5987. <div
  5988. class="commentImg"
  5989. @click="
  5990. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5991. "
  5992. >
  5993. <img
  5994. :src="w.isLikes == true ? likes : noLikes"
  5995. alt=""
  5996. />
  5997. </div>
  5998. <div>{{ w.likesCount }}</div>
  5999. </div>
  6000. <div
  6001. class="commentList"
  6002. style="margin-right: 15px"
  6003. >
  6004. <div
  6005. class="commentImg"
  6006. @click="
  6007. commentOther(
  6008. w,
  6009. toolIndex,
  6010. wIndex,
  6011. null,
  6012. g.id
  6013. )
  6014. "
  6015. >
  6016. <img
  6017. src="../../assets/icon/comment/comment.png"
  6018. alt=""
  6019. />
  6020. </div>
  6021. <div>{{ w.commentCount }}</div>
  6022. </div>
  6023. </div>
  6024. </div>
  6025. </div>
  6026. </div>
  6027. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  6028. </div>
  6029. </div>
  6030. <div
  6031. :id="'tool-' + toolIndex"
  6032. :style="{
  6033. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6034. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6035. }"
  6036. class="worksDetailBox"
  6037. v-if="
  6038. worksStudent.length &&
  6039. worksStudent[toolIndex].length > 0
  6040. "
  6041. >
  6042. <div
  6043. class="works"
  6044. style="
  6045. width: 200px;
  6046. height: 140px;
  6047. margin: 10px 10px 10px 0;
  6048. border-radius: 15px;
  6049. box-shadow: 0 0 6px 1px #dfdada;
  6050. "
  6051. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6052. :key="wIndex"
  6053. >
  6054. <!-- @click="previewImg(w.works)" -->
  6055. <div class="workImg">
  6056. <img
  6057. :src="w.works"
  6058. @click="previewImg(w.works,w)"
  6059. alt
  6060. />
  6061. <div
  6062. class="answerScore"
  6063. v-if="w.score"
  6064. @click.stop="openScore(w)"
  6065. :class="{
  6066. rightW:
  6067. w.userid == userid || tType == 1 || tType == 4,
  6068. }"
  6069. >
  6070. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  6071. </div>
  6072. <div
  6073. class="answerScore"
  6074. @click.stop="openScore(w)"
  6075. v-else-if="courseDetail.userid == userid"
  6076. :class="{
  6077. rightW:
  6078. w.userid == userid || tType == 1 || tType == 4,
  6079. }"
  6080. >
  6081. {{ lang.ssMarkScore }}
  6082. </div>
  6083. <img
  6084. class="deleteImg"
  6085. src="../../assets/deleteworks.png"
  6086. v-if="
  6087. w.userid == userid || tType == 1 || tType == 4
  6088. "
  6089. @click.stop="deleteWorks(w.wid)"
  6090. alt
  6091. />
  6092. </div>
  6093. <div class="comment" style="min-width: 200px">
  6094. <div class="worksName">
  6095. <div>{{ w.sName }}</div>
  6096. </div>
  6097. <div class="commentList">
  6098. <div class="commentList">
  6099. <div
  6100. class="commentImg"
  6101. @click="
  6102. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6103. "
  6104. >
  6105. <img
  6106. :src="w.isLikes == true ? likes : noLikes"
  6107. alt=""
  6108. />
  6109. </div>
  6110. <div>{{ w.likesCount }}</div>
  6111. </div>
  6112. <div class="commentList" style="margin-right: 15px">
  6113. <div
  6114. class="commentImg"
  6115. @click="commentOther(w, toolIndex, wIndex)"
  6116. >
  6117. <img
  6118. src="../../assets/icon/comment/comment.png"
  6119. alt=""
  6120. />
  6121. </div>
  6122. <div>{{ w.commentCount }}</div>
  6123. </div>
  6124. </div>
  6125. </div>
  6126. </div>
  6127. </div>
  6128. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6129. {{ lang.ssNotSubmitted }}
  6130. </div>
  6131. <div
  6132. class="noWorksS"
  6133. v-if="noWorksS && noWorksS[toolIndex].length"
  6134. >
  6135. <div
  6136. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6137. :key="sIndex"
  6138. class="noWorksName"
  6139. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6140. >
  6141. <el-tooltip effect="dark" :content="s.student" placement="top">
  6142. <span>{{ s.student }}</span>
  6143. </el-tooltip>
  6144. </div>
  6145. </div>
  6146. </div>
  6147. <div
  6148. v-if="
  6149. tType &&
  6150. ((tType == 2 && sIsOpen == true) ||
  6151. tType == 1 ||
  6152. tType == 4) &&
  6153. tool.tool.indexOf(26) != -1
  6154. "
  6155. class="worksBox"
  6156. >
  6157. <div
  6158. class="zuoyeYulan"
  6159. v-if="
  6160. worksStudent.length &&
  6161. worksStudent[toolIndex].length > 0
  6162. "
  6163. >
  6164. <div class="worksTop">
  6165. <div>{{ lang.ssHomeworkPreview }}</div>
  6166. <div
  6167. class="corOpen"
  6168. @click="contract(toolIndex)"
  6169. v-if="
  6170. (isCloseList[toolIndex].isCloseBoolean) &&
  6171. isCloseList[toolIndex].isClose == 0
  6172. "
  6173. >
  6174. {{ lang.ssFold }}
  6175. </div>
  6176. <div
  6177. class="corOpen"
  6178. @click="contract(toolIndex)"
  6179. v-if="isCloseList[toolIndex].isClose == 1"
  6180. >
  6181. {{ lang.ssExpand }}
  6182. </div>
  6183. </div>
  6184. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6185. </div>
  6186. <div
  6187. :id="'tool-' + toolIndex"
  6188. :style="{
  6189. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6190. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6191. }"
  6192. class="worksDetailBox"
  6193. v-if="
  6194. worksStudent.length &&
  6195. worksStudent[toolIndex].length > 0
  6196. "
  6197. >
  6198. <div
  6199. class="works"
  6200. style="width: 240px; height: 140px; overflow: hidden"
  6201. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6202. :key="wIndex"
  6203. :class="w.type == 1 ? 'isTypeOne' : ''"
  6204. >
  6205. <div class="workImg" v-if="w.type == 0">
  6206. <img
  6207. :src="w.works"
  6208. @click="previewImg(w.works,w)"
  6209. alt
  6210. />
  6211. <img
  6212. class="deleteImg"
  6213. src="../../assets/deleteworks.png"
  6214. v-if="
  6215. w.userid == userid || tType == 1 || tType == 4
  6216. "
  6217. @click.stop="deleteWorks(w.wid)"
  6218. alt
  6219. />
  6220. </div>
  6221. <div class="workImg" v-if="w.type == 1">
  6222. <img :src="word" @click="openFile(w.works)" alt />
  6223. <img
  6224. class="deleteImg"
  6225. src="../../assets/deleteworks.png"
  6226. v-if="
  6227. w.userid == userid || tType == 1 || tType == 4
  6228. "
  6229. @click.stop="deleteWorks(w.wid)"
  6230. alt
  6231. />
  6232. </div>
  6233. <div class="worksName">
  6234. <div>{{ w.sName }}</div>
  6235. </div>
  6236. </div>
  6237. </div>
  6238. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6239. {{ lang.ssNotSubmitted }}
  6240. </div>
  6241. <div
  6242. class="noWorksS"
  6243. v-if="noWorksS && noWorksS[toolIndex].length"
  6244. >
  6245. <div
  6246. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6247. :key="sIndex"
  6248. class="noWorksName"
  6249. >
  6250. <el-tooltip effect="dark" :content="s.student" placement="top">
  6251. <span>{{ s.student }}</span>
  6252. </el-tooltip>
  6253. </div>
  6254. </div>
  6255. </div>
  6256. <div
  6257. v-if="
  6258. tType &&
  6259. ((tType == 2 && sIsOpen == true) ||
  6260. tType == 1 ||
  6261. tType == 4) &&
  6262. tool.tool.indexOf(40) != -1
  6263. "
  6264. class="worksBox"
  6265. >
  6266. <div
  6267. class="zuoyeYulan"
  6268. v-if="
  6269. worksStudent.length &&
  6270. worksStudent[toolIndex].length > 0
  6271. "
  6272. >
  6273. <div class="worksTop">
  6274. <div>{{ lang.ssHomeworkPreview }}</div>
  6275. <div
  6276. class="corOpen"
  6277. @click="contract(toolIndex)"
  6278. v-if="
  6279. (isCloseList[toolIndex].isCloseBoolean) &&
  6280. isCloseList[toolIndex].isClose == 0
  6281. "
  6282. >
  6283. {{ lang.ssFold }}
  6284. </div>
  6285. <div
  6286. class="corOpen"
  6287. @click="contract(toolIndex)"
  6288. v-if="isCloseList[toolIndex].isClose == 1"
  6289. >
  6290. {{ lang.ssExpand }}
  6291. </div>
  6292. </div>
  6293. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6294. </div>
  6295. <div
  6296. :id="'tool-' + toolIndex"
  6297. :style="{
  6298. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6299. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6300. }"
  6301. class="worksDetailBox"
  6302. v-if="
  6303. worksStudent.length &&
  6304. worksStudent[toolIndex].length > 0
  6305. "
  6306. >
  6307. <div
  6308. class="works"
  6309. style="
  6310. width: 200px;
  6311. height: 140px;
  6312. margin: 10px 10px 10px 0;
  6313. border-radius: 15px;
  6314. box-shadow: 0 0 6px 1px #dfdada;
  6315. "
  6316. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6317. :key="wIndex"
  6318. :class="w.type == 1 ? 'isTypeOne' : ''"
  6319. >
  6320. <div class="workImg">
  6321. <img
  6322. src="../../assets/icon/works/noImg.png"
  6323. @click="openPj(w.works, toolIndex)"
  6324. alt
  6325. />
  6326. <img
  6327. class="deleteImg"
  6328. src="../../assets/deleteworks.png"
  6329. v-if="
  6330. w.userid == userid || tType == 1 || tType == 4
  6331. "
  6332. @click.stop="deleteWorks(w.wid)"
  6333. alt
  6334. />
  6335. </div>
  6336. <div class="comment" style="min-width: 200px">
  6337. <div class="worksName">
  6338. <div>{{ w.sName }}</div>
  6339. </div>
  6340. <div class="commentList">
  6341. <div class="commentList">
  6342. <div
  6343. class="commentImg"
  6344. @click="
  6345. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6346. "
  6347. >
  6348. <img
  6349. :src="w.isLikes == true ? likes : noLikes"
  6350. alt=""
  6351. />
  6352. </div>
  6353. <div>{{ w.likesCount }}</div>
  6354. </div>
  6355. <div class="commentList" style="margin-right: 15px">
  6356. <div
  6357. class="commentImg"
  6358. @click="commentOther(w, toolIndex, wIndex)"
  6359. >
  6360. <img
  6361. src="../../assets/icon/comment/comment.png"
  6362. alt=""
  6363. />
  6364. </div>
  6365. <div>{{ w.commentCount }}</div>
  6366. </div>
  6367. </div>
  6368. </div>
  6369. </div>
  6370. </div>
  6371. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6372. {{ lang.ssNotSubmitted }}
  6373. </div>
  6374. <div
  6375. class="noWorksS"
  6376. v-if="noWorksS && noWorksS[toolIndex].length"
  6377. >
  6378. <div
  6379. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6380. :key="sIndex"
  6381. class="noWorksName"
  6382. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6383. >
  6384. <el-tooltip effect="dark" :content="s.student" placement="top">
  6385. <span>{{ s.student }}</span>
  6386. </el-tooltip>
  6387. </div>
  6388. </div>
  6389. </div>
  6390. <div
  6391. v-if="
  6392. tType &&
  6393. tType == 2 &&
  6394. !sIsOpen &&
  6395. tool.tool.indexOf(40) != -1
  6396. "
  6397. class="worksBox"
  6398. >
  6399. <div
  6400. class="zuoyeYulan"
  6401. v-if="workStudent[toolIndex].length > 0"
  6402. >
  6403. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6404. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6405. </div>
  6406. <div
  6407. class="worksDetailBox"
  6408. v-if="workStudent[toolIndex].length > 0"
  6409. >
  6410. <div
  6411. class="works"
  6412. style="
  6413. width: 200px;
  6414. height: 140px;
  6415. margin: 10px 10px 10px 0;
  6416. "
  6417. v-for="(w, wIndex) in workStudent[toolIndex]"
  6418. :key="wIndex"
  6419. >
  6420. <div class="workImg">
  6421. <img
  6422. src="../../assets/icon/works/noImg.png"
  6423. @click="openPj(w.works, toolIndex)"
  6424. alt
  6425. />
  6426. <img
  6427. class="deleteImg"
  6428. src="../../assets/deleteworks.png"
  6429. v-if="
  6430. w.userid == userid || tType == 1 || tType == 4
  6431. "
  6432. @click.stop="deleteWorks(w.wid)"
  6433. alt
  6434. />
  6435. </div>
  6436. <div class="worksName">
  6437. <div>{{ w.sName }}</div>
  6438. </div>
  6439. </div>
  6440. </div>
  6441. </div>
  6442. <div
  6443. v-if="
  6444. tType &&
  6445. ((tType == 2 && sIsOpen == true) ||
  6446. tType == 1 ||
  6447. tType == 4) &&
  6448. tool.tool.indexOf(41) != -1
  6449. "
  6450. >
  6451. <AnswerData2
  6452. v-if="
  6453. worksStudent.length &&
  6454. worksStudent[toolIndex].length > 0
  6455. "
  6456. :problemJson="tool.selectJson.answer"
  6457. :people="worksStudent[toolIndex]"
  6458. ></AnswerData2>
  6459. </div>
  6460. <div
  6461. v-if="
  6462. tType &&
  6463. ((tType == 2 && sIsOpen == true) ||
  6464. tType == 1 ||
  6465. tType == 4) &&
  6466. tool.tool.indexOf(41) != -1
  6467. "
  6468. class="worksBox"
  6469. >
  6470. <div
  6471. class="zuoyeYulan"
  6472. v-if="
  6473. worksStudent.length &&
  6474. worksStudent[toolIndex].length > 0
  6475. "
  6476. >
  6477. <div class="worksTop">
  6478. <div>{{ lang.ssHomeworkPreview }}</div>
  6479. <div
  6480. class="corOpen"
  6481. @click="contract(toolIndex)"
  6482. v-if="
  6483. (isCloseList[toolIndex].isCloseBoolean) &&
  6484. isCloseList[toolIndex].isClose == 0
  6485. "
  6486. >
  6487. {{ lang.ssFold }}
  6488. </div>
  6489. <div
  6490. class="corOpen"
  6491. @click="contract(toolIndex)"
  6492. v-if="isCloseList[toolIndex].isClose == 1"
  6493. >
  6494. {{ lang.ssExpand }}
  6495. </div>
  6496. </div>
  6497. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6498. </div>
  6499. <div
  6500. :id="'tool-' + toolIndex"
  6501. :style="{
  6502. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6503. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6504. }"
  6505. class="worksDetailBox"
  6506. v-if="
  6507. worksStudent.length &&
  6508. worksStudent[toolIndex].length > 0
  6509. "
  6510. >
  6511. <div
  6512. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6513. :key="wIndex"
  6514. class="isWorksName2"
  6515. @click="openXz(w, toolIndex)"
  6516. >
  6517. {{ w.sName }}
  6518. <img
  6519. class="deleteImg deleteImg2"
  6520. src="../../assets/deleteworks.png"
  6521. v-if="w.userid == userid || tType == 1 || tType == 4"
  6522. @click.stop="deleteWorks(w.wid)"
  6523. alt
  6524. />
  6525. </div>
  6526. <!-- <div
  6527. class="works"
  6528. style="
  6529. width: 200px;
  6530. height: 140px;
  6531. margin: 10px 10px 10px 0;
  6532. border-radius: 15px;
  6533. box-shadow: 0 0 6px 1px #dfdada;
  6534. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6535. :class="w.type == 5 ? 'isTypeOne' : ''">
  6536. <div class="workImg">
  6537. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6538. </div>
  6539. <div class="worksName">
  6540. <div>{{ w.sName }}</div>
  6541. </div>
  6542. </div> -->
  6543. </div>
  6544. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6545. {{ lang.ssNotSubmitted }}
  6546. </div>
  6547. <div
  6548. class="noWorksS"
  6549. v-if="noWorksS && noWorksS[toolIndex].length"
  6550. >
  6551. <div
  6552. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6553. :key="sIndex"
  6554. class="noWorksName"
  6555. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6556. >
  6557. <el-tooltip effect="dark" :content="s.student" placement="top">
  6558. <span>{{ s.student }}</span>
  6559. </el-tooltip>
  6560. </div>
  6561. </div>
  6562. </div>
  6563. <div
  6564. v-if="
  6565. tType &&
  6566. tType == 2 &&
  6567. !sIsOpen &&
  6568. tool.tool.indexOf(41) != -1
  6569. "
  6570. class="worksBox"
  6571. >
  6572. <div
  6573. class="zuoyeYulan"
  6574. v-if="workStudent[toolIndex].length > 0"
  6575. >
  6576. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6577. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6578. </div>
  6579. <div
  6580. class="worksDetailBox"
  6581. v-if="workStudent[toolIndex].length > 0"
  6582. >
  6583. <div
  6584. class="works"
  6585. style="
  6586. width: 200px;
  6587. height: 140px;
  6588. margin: 10px 10px 10px 0;
  6589. "
  6590. v-for="(w, wIndex) in workStudent[toolIndex]"
  6591. :key="wIndex"
  6592. >
  6593. <div class="workImg">
  6594. <img
  6595. src="../../assets/icon/works/noImg.png"
  6596. @click="openXz(w, toolIndex)"
  6597. alt
  6598. />
  6599. <img
  6600. class="deleteImg"
  6601. src="../../assets/deleteworks.png"
  6602. v-if="
  6603. w.userid == userid || tType == 1 || tType == 4
  6604. "
  6605. @click.stop="deleteWorks(w.wid)"
  6606. alt
  6607. />
  6608. </div>
  6609. <div class="worksName">
  6610. <div>{{ w.sName }}</div>
  6611. </div>
  6612. </div>
  6613. </div>
  6614. </div>
  6615. <div v-if="false" class="xuan_right_box">
  6616. <div
  6617. class="tool_right_box"
  6618. v-for="(item, index) in tool.sentenceList"
  6619. :key="index"
  6620. >
  6621. <div>
  6622. <span
  6623. style="word-break: break-all; white-space: normal"
  6624. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6625. >
  6626. </div>
  6627. <div class="right_box_xuan">
  6628. <span>{{ lang.ssCorrectRate }}</span>
  6629. <span>{{
  6630. (checkJson[toolIndex][index].right
  6631. ? checkJson[toolIndex][index].right
  6632. : 0) + "%"
  6633. }}</span>
  6634. </div>
  6635. <div class="right_box_xuan">
  6636. <span>{{ lang.ssRightPerson }}</span>
  6637. <span>{{
  6638. checkJson[toolIndex][index].rightPerson.length
  6639. }}</span>
  6640. </div>
  6641. </div>
  6642. </div>
  6643. <div
  6644. v-if="
  6645. tType &&
  6646. ((tType == 2 && sIsOpen == true) ||
  6647. tType == 1 ||
  6648. tType == 4) &&
  6649. tool.tool.indexOf(47) != -1
  6650. "
  6651. >
  6652. <!-- <AnswerData
  6653. v-if="
  6654. checkJson[toolIndex].length &&
  6655. (tool.sentenceList || tool.sentenceList.length > 0)
  6656. "
  6657. :people="checkJson[toolIndex]"
  6658. ></AnswerData> -->
  6659. <sortToolWorkShow v-if="
  6660. worksStudent[toolIndex].length
  6661. "
  6662. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  6663. </div>
  6664. <div
  6665. v-if="
  6666. tType &&
  6667. tType == 2 &&
  6668. !sIsOpen &&
  6669. tool.tool.indexOf(47) != -1
  6670. "
  6671. class="worksBox"
  6672. >
  6673. <div
  6674. class="zuoyeYulan"
  6675. v-if="workStudent[toolIndex].length > 0"
  6676. >
  6677. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6678. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6679. </div>
  6680. <div
  6681. class="worksDetailBox"
  6682. v-if="workStudent[toolIndex].length > 0"
  6683. >
  6684. <div
  6685. class="works"
  6686. style="
  6687. width: 200px;
  6688. height: 140px;
  6689. margin: 10px 10px 10px 0;
  6690. "
  6691. v-for="(w, wIndex) in workStudent[toolIndex]"
  6692. :key="wIndex"
  6693. >
  6694. <!-- @click="openXz(w, toolIndex)" -->
  6695. <div class="workImg" @click="openSen(w, toolIndex)">
  6696. <img src="../../assets/icon/works/noImg.png" alt />
  6697. <img
  6698. class="deleteImg"
  6699. src="../../assets/deleteworks.png"
  6700. v-if="
  6701. w.userid == userid || tType == 1 || tType == 4
  6702. "
  6703. @click.stop="deleteWorks(w.wid)"
  6704. alt
  6705. />
  6706. </div>
  6707. <div class="worksName">
  6708. <div>
  6709. {{ w.sName }}
  6710. </div>
  6711. </div>
  6712. </div>
  6713. </div>
  6714. </div>
  6715. <div
  6716. v-if="
  6717. tType &&
  6718. ((tType == 2 && sIsOpen == true) ||
  6719. tType == 1 ||
  6720. tType == 4) &&
  6721. tool.tool.indexOf(47) != -1
  6722. "
  6723. class="worksBox"
  6724. >
  6725. <div
  6726. class="zuoyeYulan"
  6727. v-if="
  6728. worksStudent.length &&
  6729. worksStudent[toolIndex].length > 0
  6730. "
  6731. >
  6732. <div class="worksTop">
  6733. <div>{{ lang.ssHomeworkPreview }}</div>
  6734. <div
  6735. class="corOpen"
  6736. @click="contract(toolIndex)"
  6737. v-if="
  6738. (isCloseList[toolIndex].isCloseBoolean) &&
  6739. isCloseList[toolIndex].isClose == 0
  6740. "
  6741. >
  6742. {{ lang.ssFold }}
  6743. </div>
  6744. <div
  6745. class="corOpen"
  6746. @click="contract(toolIndex)"
  6747. v-if="isCloseList[toolIndex].isClose == 1"
  6748. >
  6749. {{ lang.ssExpand }}
  6750. </div>
  6751. </div>
  6752. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6753. </div>
  6754. <div
  6755. :id="'tool-' + toolIndex"
  6756. :style="{
  6757. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6758. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6759. }"
  6760. class="worksDetailBox"
  6761. v-if="
  6762. worksStudent.length &&
  6763. worksStudent[toolIndex].length > 0
  6764. "
  6765. >
  6766. <!-- @click="openXz(w, toolIndex)" -->
  6767. <div
  6768. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6769. :key="wIndex"
  6770. class="isWorksName2"
  6771. @click="openSen(w, toolIndex)"
  6772. >
  6773. {{ w.sName }}
  6774. <img
  6775. class="deleteImg deleteImg2"
  6776. src="../../assets/deleteworks.png"
  6777. v-if="w.userid == userid || tType == 1 || tType == 4"
  6778. @click.stop="deleteWorks(w.wid)"
  6779. alt
  6780. />
  6781. </div>
  6782. </div>
  6783. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6784. {{ lang.ssNotSubmitted }}
  6785. </div>
  6786. <div
  6787. class="noWorksS"
  6788. v-if="noWorksS && noWorksS[toolIndex].length"
  6789. >
  6790. <div
  6791. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6792. :key="sIndex"
  6793. class="noWorksName"
  6794. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6795. >
  6796. <el-tooltip effect="dark" :content="s.student" placement="top">
  6797. <span>{{ s.student }}</span>
  6798. </el-tooltip>
  6799. </div>
  6800. </div>
  6801. </div>
  6802. <div
  6803. v-if="
  6804. tType &&
  6805. ((tType == 2 && sIsOpen == true) ||
  6806. tType == 1 ||
  6807. tType == 4) &&
  6808. tool.tool.indexOf(48) != -1
  6809. "
  6810. class="worksBox"
  6811. >
  6812. <div
  6813. class="zuoyeYulan"
  6814. v-if="
  6815. worksStudent.length &&
  6816. worksStudent[toolIndex].length > 0
  6817. "
  6818. >
  6819. <div class="worksTop">
  6820. <div>{{ lang.ssHomeworkPreview }}</div>
  6821. <div
  6822. class="corOpen"
  6823. @click="contract(toolIndex)"
  6824. v-if="
  6825. (isCloseList[toolIndex].isCloseBoolean) &&
  6826. isCloseList[toolIndex].isClose == 0
  6827. "
  6828. >
  6829. {{ lang.ssFold }}
  6830. </div>
  6831. <div
  6832. class="corOpen"
  6833. @click="contract(toolIndex)"
  6834. v-if="isCloseList[toolIndex].isClose == 1"
  6835. >
  6836. {{ lang.ssExpand }}
  6837. </div>
  6838. </div>
  6839. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6840. </div>
  6841. <div
  6842. :id="'tool-' + toolIndex"
  6843. :style="{
  6844. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6845. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6846. }"
  6847. class="worksDetailBox"
  6848. v-if="
  6849. worksStudent.length &&
  6850. worksStudent[toolIndex].length > 0
  6851. "
  6852. >
  6853. <div
  6854. class="works"
  6855. style="
  6856. width: 200px;
  6857. height: 140px;
  6858. margin: 10px 10px 10px 0;
  6859. border-radius: 15px;
  6860. box-shadow: 0 0 6px 1px #dfdada;
  6861. "
  6862. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6863. :key="wIndex"
  6864. :class="w.type == 1 ? 'isTypeOne' : ''"
  6865. >
  6866. <div class="workImg">
  6867. <img :src="word" @click="openTable(w)" alt />
  6868. <!-- @click="openFile(w.works)" -->
  6869. <div
  6870. class="answerScore"
  6871. v-if="w.score"
  6872. @click.stop="openScore(w)"
  6873. :class="{
  6874. rightW:
  6875. w.userid == userid ||
  6876. tType == 1 ||
  6877. tType == 4 ||
  6878. w.ateacher == userid,
  6879. }"
  6880. >
  6881. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  6882. </div>
  6883. <div
  6884. class="answerScore"
  6885. @click.stop="openScore(w)"
  6886. v-else-if="courseDetail.userid == userid"
  6887. :class="{
  6888. rightW:
  6889. w.userid == userid ||
  6890. tType == 1 ||
  6891. tType == 4 ||
  6892. w.ateacher == userid,
  6893. }"
  6894. >
  6895. {{ lang.ssMarkScore }}
  6896. </div>
  6897. <img
  6898. class="deleteImg"
  6899. src="../../assets/deleteworks.png"
  6900. v-if="
  6901. w.userid == userid || tType == 1 || tType == 4
  6902. "
  6903. @click.stop="deleteWorks(w.wid)"
  6904. alt
  6905. />
  6906. </div>
  6907. <div class="comment" style="min-width: 200px">
  6908. <div class="worksName">
  6909. <div>{{ w.sName }}</div>
  6910. </div>
  6911. <div class="commentList">
  6912. <div class="commentList">
  6913. <div
  6914. class="commentImg"
  6915. @click="
  6916. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6917. "
  6918. >
  6919. <img
  6920. :src="w.isLikes == true ? likes : noLikes"
  6921. alt=""
  6922. />
  6923. </div>
  6924. <div>{{ w.likesCount }}</div>
  6925. </div>
  6926. <div class="commentList" style="margin-right: 15px">
  6927. <div
  6928. class="commentImg"
  6929. @click="commentOther(w, toolIndex, wIndex)"
  6930. >
  6931. <img
  6932. src="../../assets/icon/comment/comment.png"
  6933. alt=""
  6934. />
  6935. </div>
  6936. <div>{{ w.commentCount }}</div>
  6937. </div>
  6938. </div>
  6939. </div>
  6940. </div>
  6941. </div>
  6942. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6943. {{ lang.ssNotSubmitted }}
  6944. </div>
  6945. <div
  6946. class="noWorksS"
  6947. v-if="noWorksS && noWorksS[toolIndex].length"
  6948. >
  6949. <div
  6950. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6951. :key="sIndex"
  6952. class="noWorksName"
  6953. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6954. >
  6955. <el-tooltip effect="dark" :content="s.student" placement="top">
  6956. <span>{{ s.student }}</span>
  6957. </el-tooltip>
  6958. </div>
  6959. </div>
  6960. </div>
  6961. <div
  6962. v-if="
  6963. tType &&
  6964. tType == 2 &&
  6965. !sIsOpen &&
  6966. tool.tool.indexOf(48) != -1
  6967. "
  6968. class="worksBox"
  6969. >
  6970. <div
  6971. class="zuoyeYulan"
  6972. v-if="workStudent[toolIndex].length > 0"
  6973. >
  6974. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6975. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6976. </div>
  6977. <div
  6978. class="worksDetailBox"
  6979. v-if="workStudent[toolIndex].length > 0"
  6980. >
  6981. <div
  6982. class="works"
  6983. style="
  6984. width: 200px;
  6985. height: 140px;
  6986. margin: 10px 10px 10px 0;
  6987. box-shadow: 0 0 6px 1px #dfdada;
  6988. "
  6989. v-for="(w, wIndex) in workStudent[toolIndex]"
  6990. :key="wIndex"
  6991. >
  6992. <div class="workImg">
  6993. <img :src="word" @click="openTable(w)" alt />
  6994. <div
  6995. class="answerScore"
  6996. v-if="w.score"
  6997. @click.stop="openScore(w)"
  6998. :class="{
  6999. rightW:
  7000. w.userid == userid || tType == 1 || tType == 4,
  7001. }"
  7002. >
  7003. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7004. </div>
  7005. <div
  7006. class="answerScore"
  7007. @click.stop="openScore(w)"
  7008. v-else-if="courseDetail.userid == userid"
  7009. :class="{
  7010. rightW:
  7011. w.userid == userid || tType == 1 || tType == 4,
  7012. }"
  7013. >
  7014. {{ lang.ssMarkScore }}
  7015. </div>
  7016. <img
  7017. class="deleteImg"
  7018. src="../../assets/deleteworks.png"
  7019. v-if="
  7020. w.userid == userid || tType == 1 || tType == 4
  7021. "
  7022. @click.stop="deleteWorks(w.wid)"
  7023. alt
  7024. />
  7025. </div>
  7026. <div class="worksName">
  7027. <div>{{ w.sName }}</div>
  7028. </div>
  7029. </div>
  7030. </div>
  7031. </div>
  7032. <div
  7033. v-if="
  7034. tType &&
  7035. ((tType == 2 && sIsOpen == true) ||
  7036. tType == 1 ||
  7037. tType == 4) &&
  7038. tool.tool.indexOf(52) != -1
  7039. "
  7040. class="worksBox"
  7041. >
  7042. <div
  7043. class="zuoyeYulan"
  7044. v-if="
  7045. worksStudent.length &&
  7046. worksStudent[toolIndex].length > 0
  7047. "
  7048. >
  7049. <div class="worksTop">
  7050. <div>{{ lang.ssHomeworkPreview }}</div>
  7051. <div
  7052. class="corOpen"
  7053. @click="contract(toolIndex)"
  7054. v-if="
  7055. (isCloseList[toolIndex].isCloseBoolean) &&
  7056. isCloseList[toolIndex].isClose == 0
  7057. "
  7058. >
  7059. {{ lang.ssFold }}
  7060. </div>
  7061. <div
  7062. class="corOpen"
  7063. @click="contract(toolIndex)"
  7064. v-if="isCloseList[toolIndex].isClose == 1"
  7065. >
  7066. {{ lang.ssExpand }}
  7067. </div>
  7068. </div>
  7069. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7070. </div>
  7071. <div
  7072. :id="'tool-' + toolIndex"
  7073. :style="{
  7074. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7075. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7076. }"
  7077. class="worksDetailBox"
  7078. v-if="
  7079. worksStudent.length &&
  7080. worksStudent[toolIndex].length > 0
  7081. "
  7082. >
  7083. <div
  7084. class="works"
  7085. style="
  7086. width: 200px;
  7087. height: 140px;
  7088. margin: 10px 10px 10px 0;
  7089. border-radius: 15px;
  7090. box-shadow: 0 0 6px 1px #dfdada;
  7091. "
  7092. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7093. :key="wIndex"
  7094. :class="w.type == 1 ? 'isTypeOne' : ''"
  7095. >
  7096. <div class="workImg">
  7097. <img :src="word" @click="openWord(w)" alt />
  7098. <!-- @click="openFile(w.works)" -->
  7099. <div
  7100. class="answerScore"
  7101. v-if="w.score"
  7102. @click.stop="openScore(w)"
  7103. :class="{
  7104. rightW:
  7105. w.userid == userid ||
  7106. tType == 1 ||
  7107. tType == 4 ||
  7108. w.ateacher == userid,
  7109. }"
  7110. >
  7111. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7112. </div>
  7113. <div
  7114. class="answerScore"
  7115. @click.stop="openScore(w)"
  7116. v-else-if="courseDetail.userid == userid"
  7117. :class="{
  7118. rightW:
  7119. w.userid == userid ||
  7120. tType == 1 ||
  7121. tType == 4 ||
  7122. w.ateacher == userid,
  7123. }"
  7124. >
  7125. {{ lang.ssMarkScore }}
  7126. </div>
  7127. <img
  7128. class="deleteImg"
  7129. src="../../assets/deleteworks.png"
  7130. v-if="
  7131. w.userid == userid || tType == 1 || tType == 4
  7132. "
  7133. @click.stop="deleteWorks(w.wid)"
  7134. alt
  7135. />
  7136. </div>
  7137. <div class="comment" style="min-width: 200px">
  7138. <div class="worksName">
  7139. <div>{{ w.sName }}</div>
  7140. </div>
  7141. <div class="commentList">
  7142. <div class="commentList">
  7143. <div
  7144. class="commentImg"
  7145. @click="
  7146. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7147. "
  7148. >
  7149. <img
  7150. :src="w.isLikes == true ? likes : noLikes"
  7151. alt=""
  7152. />
  7153. </div>
  7154. <div>{{ w.likesCount }}</div>
  7155. </div>
  7156. <div class="commentList" style="margin-right: 15px">
  7157. <div
  7158. class="commentImg"
  7159. @click="commentOther(w, toolIndex, wIndex)"
  7160. >
  7161. <img
  7162. src="../../assets/icon/comment/comment.png"
  7163. alt=""
  7164. />
  7165. </div>
  7166. <div>{{ w.commentCount }}</div>
  7167. </div>
  7168. </div>
  7169. </div>
  7170. </div>
  7171. </div>
  7172. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7173. {{ lang.ssNotSubmitted }}
  7174. </div>
  7175. <div
  7176. class="noWorksS"
  7177. v-if="noWorksS && noWorksS[toolIndex].length"
  7178. >
  7179. <div
  7180. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7181. :key="sIndex"
  7182. class="noWorksName"
  7183. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7184. >
  7185. <el-tooltip effect="dark" :content="s.student" placement="top">
  7186. <span>{{ s.student }}</span>
  7187. </el-tooltip>
  7188. </div>
  7189. </div>
  7190. </div>
  7191. <div
  7192. v-if="
  7193. tType &&
  7194. tType == 2 &&
  7195. !sIsOpen &&
  7196. tool.tool.indexOf(52) != -1
  7197. "
  7198. class="worksBox"
  7199. >
  7200. <div
  7201. class="zuoyeYulan"
  7202. v-if="workStudent[toolIndex].length > 0"
  7203. >
  7204. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  7205. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7206. </div>
  7207. <div
  7208. class="worksDetailBox"
  7209. v-if="workStudent[toolIndex].length > 0"
  7210. >
  7211. <div
  7212. class="works"
  7213. style="
  7214. width: 200px;
  7215. height: 140px;
  7216. margin: 10px 10px 10px 0;
  7217. box-shadow: 0 0 6px 1px #dfdada;
  7218. "
  7219. v-for="(w, wIndex) in workStudent[toolIndex]"
  7220. :key="wIndex"
  7221. >
  7222. <div class="workImg">
  7223. <img :src="word" @click="openWord(w)" alt />
  7224. <div
  7225. class="answerScore"
  7226. v-if="w.score"
  7227. @click.stop="openScore(w)"
  7228. :class="{
  7229. rightW:
  7230. w.userid == userid || tType == 1 || tType == 4,
  7231. }"
  7232. >
  7233. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7234. </div>
  7235. <div
  7236. class="answerScore"
  7237. @click.stop="openScore(w)"
  7238. v-else-if="courseDetail.userid == userid"
  7239. :class="{
  7240. rightW:
  7241. w.userid == userid || tType == 1 || tType == 4,
  7242. }"
  7243. >
  7244. {{ lang.ssMarkScore }}
  7245. </div>
  7246. <img
  7247. class="deleteImg"
  7248. src="../../assets/deleteworks.png"
  7249. v-if="
  7250. w.userid == userid || tType == 1 || tType == 4
  7251. "
  7252. @click.stop="deleteWorks(w.wid)"
  7253. alt
  7254. />
  7255. </div>
  7256. <div class="worksName">
  7257. <div>{{ w.sName }}</div>
  7258. </div>
  7259. </div>
  7260. </div>
  7261. </div>
  7262. <div
  7263. v-if="tool.tool.indexOf(49) != -1"
  7264. class="xuan_right_box"
  7265. style="margin: 0 15px 0 25px; width: 93%"
  7266. >
  7267. <div
  7268. v-if="courseDetail.userid == userid"
  7269. style="
  7270. display: flex;
  7271. justify-content: flex-end;
  7272. margin-right: 10px;
  7273. "
  7274. >
  7275. <el-button
  7276. type="primary"
  7277. size="small"
  7278. @click="addTools(49, toolIndex, taskCount)"
  7279. >{{ lang.ssGroupSetting }}</el-button
  7280. >
  7281. </div>
  7282. <div
  7283. v-if="groupStudentUid[toolIndex]"
  7284. class="group_staic_box"
  7285. >
  7286. <div
  7287. v-for="(gp, gd) in tool.groupJson.group"
  7288. :key="gd"
  7289. class="group_staic"
  7290. >
  7291. <span> {{ gp.name }}</span>
  7292. <span>
  7293. {{ lang.ssCurrentCountNum.replace(/\*/g, groupStudentUid[toolIndex][gd].length) }}</span
  7294. >
  7295. </div>
  7296. </div>
  7297. </div>
  7298. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7299. <div
  7300. class="zuoyeYulan"
  7301. v-if="
  7302. worksStudent.length &&
  7303. worksStudent[toolIndex].length > 0
  7304. "
  7305. >
  7306. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  7307. </div>
  7308. <div>
  7309. <div
  7310. class="group_workBox"
  7311. v-for="(g, gindex) in tool.groupJson.group"
  7312. :key="gindex"
  7313. >
  7314. <div
  7315. class="group_box"
  7316. v-if="
  7317. groupStudentUid[toolIndex] &&
  7318. worksStudent[toolIndex] &&
  7319. (worksStudent[toolIndex][gindex].length ||
  7320. groupStudentUid[toolIndex][gindex].indexOf(
  7321. userid
  7322. ) != -1)
  7323. "
  7324. >
  7325. <div class="group_title">
  7326. <el-tooltip
  7327. class="item"
  7328. effect="light"
  7329. :content="g.name"
  7330. placement="top"
  7331. >
  7332. <div class="group_name">{{ g.name }}</div>
  7333. </el-tooltip>
  7334. <el-button
  7335. type="primary"
  7336. v-if="
  7337. groupStudentUid[toolIndex][gindex].indexOf(
  7338. userid
  7339. ) != -1
  7340. "
  7341. @click="groupUpload(toolIndex, taskCount, gindex)"
  7342. >{{ lang.ssUploadHomework }}</el-button
  7343. >
  7344. </div>
  7345. <div class="group_work">
  7346. <div
  7347. class="works"
  7348. style="
  7349. width: 200px;
  7350. height: 140px;
  7351. margin: 10px 10px 10px 0;
  7352. border-radius: 15px;
  7353. box-shadow: 0 0 6px 1px #dfdada;
  7354. "
  7355. v-for="(w, wIndex) in worksStudent[toolIndex][
  7356. gindex
  7357. ]"
  7358. :key="wIndex"
  7359. :class="w.type == 1 ? 'isTypeOne' : ''"
  7360. >
  7361. <div class="workImg" v-if="w.type == 0">
  7362. <img
  7363. :src="w.works"
  7364. @click="previewImg(w.works,w)"
  7365. alt
  7366. />
  7367. <div
  7368. class="answerScore"
  7369. v-if="w.score"
  7370. @click.stop="openScore(w)"
  7371. :class="{
  7372. rightW:
  7373. w.userid == userid ||
  7374. tType == 1 ||
  7375. tType == 4 ||
  7376. w.ateacher == userid,
  7377. }"
  7378. >
  7379. {{ JSON.parse(w.score).wScore }}{{ lang.ssScoreUnit }}
  7380. </div>
  7381. <div
  7382. class="answerScore"
  7383. @click.stop="openScore(w)"
  7384. v-else-if="courseDetail.userid == userid"
  7385. :class="{
  7386. rightW:
  7387. w.userid == userid ||
  7388. tType == 1 ||
  7389. tType == 4 ||
  7390. w.ateacher == userid,
  7391. }"
  7392. >
  7393. {{ lang.ssMarkScore }}
  7394. </div>
  7395. <img
  7396. class="deleteImg"
  7397. src="../../assets/deleteworks.png"
  7398. v-if="
  7399. w.userid == userid ||
  7400. tType == 1 ||
  7401. tType == 4
  7402. "
  7403. @click.stop="deleteWorks(w.wid)"
  7404. alt
  7405. />
  7406. </div>
  7407. <div class="workImg" v-if="w.type == 1">
  7408. <img
  7409. :src="word"
  7410. @click="openFile(w.works)"
  7411. alt
  7412. />
  7413. <!-- @click="openFile(w.works)" -->
  7414. <div
  7415. class="answerScore"
  7416. v-if="w.score"
  7417. @click.stop="openScore(w)"
  7418. :class="{
  7419. rightW:
  7420. w.userid == userid ||
  7421. tType == 1 ||
  7422. tType == 4 ||
  7423. w.ateacher == userid,
  7424. }"
  7425. >
  7426. {{ JSON.parse(w.score).wScore }}{{ lang.ssScoreUnit }}
  7427. </div>
  7428. <div
  7429. class="answerScore"
  7430. @click.stop="openScore(w)"
  7431. v-else-if="courseDetail.userid == userid"
  7432. :class="{
  7433. rightW:
  7434. w.userid == userid ||
  7435. tType == 1 ||
  7436. tType == 4 ||
  7437. w.ateacher == userid,
  7438. }"
  7439. >
  7440. {{ lang.ssMarkScore }}
  7441. </div>
  7442. <img
  7443. class="deleteImg"
  7444. src="../../assets/deleteworks.png"
  7445. v-if="
  7446. w.userid == userid ||
  7447. tType == 1 ||
  7448. tType == 4
  7449. "
  7450. @click.stop="deleteWorks(w.wid)"
  7451. alt
  7452. />
  7453. </div>
  7454. <div class="workImg" v-if="w.type == 3">
  7455. <img
  7456. style="cursor: pointer"
  7457. :src="video"
  7458. @click="openVideo(w)"
  7459. alt
  7460. />
  7461. <!-- @click="openVideo(w.works)" -->
  7462. <div
  7463. class="answerScore"
  7464. v-if="w.score"
  7465. @click.stop="openScore(w)"
  7466. :class="{
  7467. rightW:
  7468. w.userid == userid ||
  7469. tType == 1 ||
  7470. tType == 4 ||
  7471. w.ateacher == userid,
  7472. }"
  7473. >
  7474. {{ JSON.parse(w.score).wScore }}{{ lang.ssScoreUnit }}
  7475. </div>
  7476. <div
  7477. class="answerScore"
  7478. @click.stop="openScore(w)"
  7479. v-else-if="courseDetail.userid == userid"
  7480. :class="{
  7481. rightW:
  7482. w.userid == userid ||
  7483. tType == 1 ||
  7484. tType == 4 ||
  7485. w.ateacher == userid,
  7486. }"
  7487. >
  7488. {{ lang.ssMarkScore }}
  7489. </div>
  7490. <img
  7491. class="deleteImg"
  7492. src="../../assets/deleteworks.png"
  7493. v-if="
  7494. w.userid == userid ||
  7495. tType == 1 ||
  7496. tType == 4
  7497. "
  7498. @click.stop="deleteWorks(w.wid)"
  7499. alt
  7500. />
  7501. </div>
  7502. <div class="workImg" v-if="w.type == 12">
  7503. <img
  7504. style="cursor: pointer"
  7505. :src="word2"
  7506. @click="downloadFile(w.works,w.userid)"
  7507. alt
  7508. />
  7509. <!-- @click="openVideo(w.works)" -->
  7510. <div
  7511. class="answerScore"
  7512. v-if="w.score"
  7513. @click.stop="openScore(w)"
  7514. :class="{
  7515. rightW:
  7516. w.userid == userid ||
  7517. tType == 1 ||
  7518. tType == 4 ||
  7519. w.ateacher == userid,
  7520. }"
  7521. >
  7522. {{ JSON.parse(w.score).wScore }}{{ lang.ssScoreUnit }}
  7523. </div>
  7524. <div
  7525. class="answerScore"
  7526. @click.stop="openScore(w)"
  7527. v-else-if="courseDetail.userid == userid"
  7528. :class="{
  7529. rightW:
  7530. w.userid == userid ||
  7531. tType == 1 ||
  7532. tType == 4 ||
  7533. w.ateacher == userid,
  7534. }"
  7535. >
  7536. {{ lang.ssMarkScore }}
  7537. </div>
  7538. <img
  7539. class="deleteImg"
  7540. src="../../assets/deleteworks.png"
  7541. v-if="
  7542. w.userid == userid ||
  7543. tType == 1 ||
  7544. tType == 4
  7545. "
  7546. @click.stop="deleteWorks(w.wid)"
  7547. alt
  7548. />
  7549. </div>
  7550. <div class="comment" style="min-width: 200px">
  7551. <div class="worksName">
  7552. <div>{{ w.sName }}</div>
  7553. </div>
  7554. <div class="commentList">
  7555. <div class="commentList">
  7556. <div
  7557. class="commentImg"
  7558. @click="
  7559. isLikes(
  7560. w.wid,
  7561. userid,
  7562. 1,
  7563. null,
  7564. w.isLikes,
  7565. w.sName
  7566. )
  7567. "
  7568. >
  7569. <img
  7570. :src="
  7571. w.isLikes == true ? likes : noLikes
  7572. "
  7573. alt=""
  7574. />
  7575. </div>
  7576. <div>{{ w.likesCount }}</div>
  7577. </div>
  7578. <div
  7579. class="commentList"
  7580. style="margin-right: 15px"
  7581. >
  7582. <div
  7583. class="commentImg"
  7584. @click="
  7585. commentOther(
  7586. w,
  7587. toolIndex,
  7588. wIndex,
  7589. gindex
  7590. )
  7591. "
  7592. >
  7593. <img
  7594. src="../../assets/icon/comment/comment.png"
  7595. alt=""
  7596. />
  7597. </div>
  7598. <div>{{ w.commentCount }}</div>
  7599. </div>
  7600. </div>
  7601. </div>
  7602. </div>
  7603. </div>
  7604. </div>
  7605. </div>
  7606. </div>
  7607. </div>
  7608. </div>
  7609. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7610. 上传文件
  7611. <input
  7612. type="file"
  7613. accept="image/png, image/gif, image/jpeg"
  7614. style="display: none"
  7615. @change="beforeUpload1($event, 2, index)"
  7616. />
  7617. </div>-->
  7618. </div>
  7619. </div>
  7620. <div
  7621. class="vedioBox"
  7622. style="margin-top: 10px; border-radius: 20px"
  7623. v-if="
  7624. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7625. .eList &&
  7626. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7627. .eList.length &&
  7628. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7629. .eList.length > 0 &&
  7630. tType != 2
  7631. "
  7632. >
  7633. <div
  7634. class="queTop"
  7635. style="
  7636. font-size: 20px;
  7637. padding: 15px 0 15px 37px;
  7638. font-weight: bold;
  7639. "
  7640. >
  7641. <!-- <div class="question" style="width: 30px">
  7642. <img src="../assets/icon/toolIcon.png" alt />
  7643. </div>
  7644. <div class="queTitle">
  7645. <div>工具</div>
  7646. </div>-->
  7647. {{ lang.ssEvaluate }}
  7648. </div>
  7649. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7650. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7651. <el-table
  7652. :data="
  7653. chapInfoList[courseType].chapterInfo[0].taskJson[
  7654. taskCount
  7655. ].eList
  7656. "
  7657. :header-cell-style="{ background: '#F0F4FA' }"
  7658. :row-class-name="tableRowClassName"
  7659. border
  7660. stripe
  7661. style="width: 100%"
  7662. >
  7663. <el-table-column
  7664. :label="lang.ssEvalName"
  7665. align="center"
  7666. >
  7667. <template slot-scope="scope"
  7668. ><div>{{ scope.row.value }}</div></template
  7669. >
  7670. </el-table-column>
  7671. <el-table-column
  7672. :label="lang.ssEvalDesc"
  7673. align="center"
  7674. >
  7675. <template slot-scope="scope"
  7676. ><div>
  7677. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7678. </div></template
  7679. >
  7680. </el-table-column>
  7681. <el-table-column :label="lang.ssTarget" align="center">
  7682. <template slot-scope="scope"
  7683. ><div>
  7684. {{
  7685. scope.row.target
  7686. ? scope.row.target[scope.row.target.length - 1]
  7687. : "-"
  7688. }}
  7689. </div></template
  7690. ></el-table-column
  7691. >
  7692. </el-table>
  7693. <!-- <div
  7694. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7695. .chapterInfo[0].taskJson[taskCount].eList"
  7696. :key="eIndex"
  7697. class="elist_input_box"
  7698. >
  7699. <div style="width: 95%">
  7700. <div
  7701. style="
  7702. display: flex;
  7703. flex-direction: row;
  7704. flex-wrap: nowrap;
  7705. align-items: center;
  7706. "
  7707. >
  7708. <div style="max-width: calc(100% - 285px)">
  7709. <span>{{ eItem.value }}</span>
  7710. </div>
  7711. <div
  7712. style="
  7713. padding-left: 25px;
  7714. display: flex;
  7715. flex-direction: row;
  7716. align-items: center;
  7717. "
  7718. >
  7719. <el-rate
  7720. v-model="eItem.score"
  7721. :colors="colors"
  7722. disabled
  7723. ></el-rate>
  7724. </div>
  7725. </div>
  7726. <div class="elist_inptu_text" style="padding-left: 10px">
  7727. <span v-if="eItem.detail != ''">{{
  7728. eItem.detail
  7729. }}</span>
  7730. <span v-else style="color: #b2b1b3; font-size: 14px"
  7731. >暂无描述...</span
  7732. >
  7733. </div>
  7734. </div>
  7735. </div> -->
  7736. </div>
  7737. <div
  7738. v-if="evalua"
  7739. style="
  7740. border: 1px solid #e5e5e5;
  7741. max-width: 650px;
  7742. width: 100%;
  7743. margin-top: 20px;
  7744. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7745. "
  7746. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7747. >
  7748. <div class="e_add_top">
  7749. <div class="e_add_title" style="width: 100%">
  7750. <!-- <span>目标管理名称</span> -->
  7751. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7752. <img
  7753. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7754. src="../../assets/line.png"
  7755. class="cru_line"
  7756. style="
  7757. width: 125px;
  7758. height: 20px;
  7759. bottom: -10px;
  7760. left: 5px;
  7761. "
  7762. />
  7763. <!-- <el-input
  7764. v-model="eTitle"
  7765. placeholder="请输入名称"
  7766. @change="setMindData"
  7767. ></el-input>-->
  7768. <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" />{{ lang.ssCollapseTarget }}</div>
  7769. <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" />{{ lang.ssExpandTarget }}</div>
  7770. </div>
  7771. </div>
  7772. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7773. <div class="e_add_list_pbox">
  7774. <div class="e_add_list_pbox_title">
  7775. <!-- <span class="type_title">切换模式</span> -->
  7776. <div class="type_content">
  7777. <span
  7778. :class="{ active: typeMode == 1 }"
  7779. @click="typeMode = 1"
  7780. >{{ lang.ssTargetTree }}</span
  7781. >
  7782. <span
  7783. :class="{ active: typeMode == 2 }"
  7784. @click="typeMode = 2"
  7785. >{{ lang.ssTargetCompass }}</span
  7786. >
  7787. <!-- <span
  7788. :class="{ active: typeMode == 3 }"
  7789. @click="typeMode = 3"
  7790. >目标看板</span
  7791. > -->
  7792. </div>
  7793. </div>
  7794. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7795. <Mind
  7796. :showBar="false"
  7797. :mindData="data"
  7798. style="width: 100%"
  7799. v-show="typeMode == 1"
  7800. ></Mind>
  7801. <Sunburst
  7802. :Josn="eJson"
  7803. :num="eJSONNum"
  7804. style="width: 100%"
  7805. v-if="typeMode == 2"
  7806. ></Sunburst>
  7807. <SeeBoard
  7808. :Josn="eJson"
  7809. :num="eJSONNum"
  7810. :ename="eTitle"
  7811. style="width: 100%"
  7812. v-if="typeMode == 3"
  7813. >
  7814. </SeeBoard>
  7815. </div>
  7816. </div>
  7817. </div>
  7818. </div>
  7819. </div>
  7820. </div>
  7821. <!-- <div
  7822. class="project_box"
  7823. style="margin-top: 15px; padding-bottom: 30px"
  7824. >
  7825. <div
  7826. style="
  7827. display: flex;
  7828. flex-wrap: nowrap;
  7829. flex-direction: column;
  7830. position: relative;
  7831. "
  7832. >
  7833. <div class="queTop">
  7834. <div class="question">
  7835. <img src="../../assets/icon/homeWork.png" alt="" />
  7836. </div>
  7837. <div class="queTitle">
  7838. <div>作业提交<span>(提交图文视频等)</span></div>
  7839. <div>:任务:{{ task.task }}</div>
  7840. </div>
  7841. </div>
  7842. <div class="ediBottom">
  7843. <div
  7844. class="addEditor"
  7845. style="margin-top: 23px"
  7846. @click="openAddWork"
  7847. v-if="!isNoHomeWork"
  7848. >
  7849. 选择文件
  7850. </div>
  7851. <div
  7852. class="addEditor"
  7853. style="margin-top: 23px"
  7854. @click="openAddWork"
  7855. v-else
  7856. >
  7857. 已提交
  7858. </div>
  7859. </div>
  7860. </div>
  7861. </div>-->
  7862. </div>
  7863. </div>
  7864. <el-dialog
  7865. :title="lang.ssHomework"
  7866. :visible.sync="dialogVisible"
  7867. :append-to-body="true"
  7868. width="500px"
  7869. :before-close="handleClose"
  7870. class="dialog_change"
  7871. >
  7872. <div class="marginT">
  7873. <div>{{ lang.ssUpFile }}</div>
  7874. <div style="display: flex; gap: 10px">
  7875. <div
  7876. class="chapter_add"
  7877. @click="addImg($event)"
  7878. v-if="studyJuri[0].cover.length == 0"
  7879. >
  7880. <div class="up_photo">
  7881. <img src="../../assets/icon/uploadImg.png" alt />
  7882. </div>
  7883. <!-- <input
  7884. type="file"
  7885. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7886. style="display: none"
  7887. @change="beforeUpload1($event, 1)"
  7888. /> -->
  7889. <input
  7890. type="file"
  7891. accept="*"
  7892. style="display: none"
  7893. @change="beforeUpload1($event, 1)"
  7894. />
  7895. <!-- <input
  7896. type="file"
  7897. accept="image/*"
  7898. capture="camera"
  7899. style="display: none"
  7900. @change="beforeUpload1($event, 1)"
  7901. /> -->
  7902. </div>
  7903. <div
  7904. class="chapter_add"
  7905. @click="addImg($event)"
  7906. v-if="studyJuri[0].cover.length == 0"
  7907. >
  7908. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  7909. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  7910. </div>
  7911. <input
  7912. type="file"
  7913. accept="image/*"
  7914. capture="camera"
  7915. style="display: none"
  7916. @change="beforeUpload1($event, 1)"
  7917. />
  7918. </div>
  7919. </div>
  7920. <div
  7921. class="chapter_add"
  7922. style="
  7923. display: flex;
  7924. width: 100%;
  7925. flex-direction: row;
  7926. flex-wrap: wrap;
  7927. justify-content: flex-start;
  7928. padding: 15px 0;
  7929. "
  7930. v-if="studyJuri[0].cover.length > 0"
  7931. >
  7932. <div class="upCover">
  7933. <img
  7934. :src="studyJuri[0].cover[0].url"
  7935. alt
  7936. v-if="fileType == 0"
  7937. />
  7938. <img :src="word" alt v-else-if="fileType == 1" />
  7939. <img :src="video" alt v-else-if="fileType == 2" />
  7940. <img :src="word2" alt v-else-if="fileType == 3" />
  7941. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7942. <div class="deleteWord" @click="clean(1)">
  7943. <img src="../../assets/icon/deleteWorks.png" alt />
  7944. </div>
  7945. </div>
  7946. </div>
  7947. </div>
  7948. <div
  7949. class="upload_send"
  7950. @click="addCourseWorks(taskCount)"
  7951. v-if="!proVisible"
  7952. >
  7953. {{ lang.ssSubmit }}
  7954. </div>
  7955. </el-dialog>
  7956. </div>
  7957. </div>
  7958. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  7959. <classRoomHelper v-if="!['2'].includes(tType) && $region != 'hk'" @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(
  7960. '/courseDetail?userid=' +
  7961. userid +
  7962. '&oid=' +
  7963. oid +
  7964. '&org=' +
  7965. org +
  7966. '&cid=' +
  7967. classId +
  7968. '&courseId=' +
  7969. id +
  7970. '&tType=' +
  7971. tType +
  7972. '&screenType=' +
  7973. screenType+
  7974. '&role=' +
  7975. role
  7976. )"></classRoomHelper>
  7977. <studentClassRoomHelper v-else-if="['2'].includes(tType) && $region != 'hk'" @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(
  7978. '/courseDetail?userid=' +
  7979. userid +
  7980. '&oid=' +
  7981. oid +
  7982. '&org=' +
  7983. org +
  7984. '&cid=' +
  7985. classId +
  7986. '&courseId=' +
  7987. id +
  7988. '&tType=' +
  7989. tType +
  7990. '&screenType=' +
  7991. screenType+
  7992. '&role=' +
  7993. role
  7994. )"></studentClassRoomHelper>
  7995. <div
  7996. class="pButton"
  7997. @click="(pzDialog = true), selectPz()"
  7998. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7999. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8000. >
  8001. <!-- 批 -->
  8002. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8003. </div>
  8004. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8005. <div class="pzTop2">
  8006. <!-- <div>评论</div>
  8007. <div @click="pzDialog = false">
  8008. <img src="../../assets/close1.png" alt="" />
  8009. </div> -->
  8010. <div class="checkbox">
  8011. <!-- <div class="check" style="font-size: 25px; position: unset">
  8012. 评论
  8013. </div> -->
  8014. <div class="cb-tabList">
  8015. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">{{ lang.ssComment }}</div>
  8016. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8017. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8018. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">{{ lang.ssTotalEval }}</div>
  8019. </div>
  8020. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8021. <el-option :label="lang.ssTimeDesc" :value="1"></el-option>
  8022. <el-option :label="lang.ssTimeAsc" :value="2"></el-option>
  8023. <el-option :label="lang.ssMyComment" :value="3"></el-option>
  8024. </el-select>
  8025. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8026. </div>
  8027. </div>
  8028. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8029. <div class="pzListBox" v-if="pzList && pzList.length">
  8030. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8031. <div class="pzNavTop">
  8032. <div>{{ lang.ssEval }}</div>
  8033. <div>
  8034. {{
  8035. pz.username && pz.username.length > 5
  8036. ? pz.username.substring(0, 5) + "..."
  8037. : pz.username
  8038. }}{{ lang.ssCommentOf }}
  8039. </div>
  8040. <div
  8041. class="pzDelete"
  8042. v-if="pz.userid == userid"
  8043. @click="deletePz(pz.id)"
  8044. >
  8045. {{ lang.ssDelete }}
  8046. </div>
  8047. </div>
  8048. <div
  8049. @click="checkImg(getImgList(pz.content))"
  8050. class="pzContent cont"
  8051. v-html="pz.content"
  8052. v-if="pz.type == '1'"
  8053. ></div>
  8054. <div class="pzContent" v-if="pz.type == '2'">
  8055. <audio :src="pz.content" controls="controls" ref="audio">
  8056. Your browser does not support the audio element.
  8057. </audio>
  8058. </div>
  8059. <div class="pzContent" v-if="pz.type == '3'">
  8060. <img
  8061. :src="pz.content"
  8062. style="width: 90%; margin: 0 auto; display: block"
  8063. @click="previewImg(pz.content)"
  8064. />
  8065. </div>
  8066. <div class="timeAndReply">
  8067. <div class="time">
  8068. {{ pz.time }}
  8069. </div>
  8070. <div @click="setReplyIndex(pz.id, pzIndex)">{{ lang.ssReply }}</div>
  8071. </div>
  8072. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8073. <div
  8074. v-for="(h, hIndex) in pz.hfList"
  8075. :key="hIndex"
  8076. class="hfItem"
  8077. >
  8078. <div class="whoReplyWho">
  8079. <div class="hfName">{{ h.username }}</div>
  8080. <div class="hfImg">
  8081. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8082. </div>
  8083. <div class="hfName">{{ pz.username }}</div>
  8084. </div>
  8085. <div class="hfContent" v-html="h.content"></div>
  8086. <div class="hfBottom">
  8087. <div class="hfTime">{{ h.time }}</div>
  8088. <div
  8089. class="deleteHfItem"
  8090. @click="deleteReply(h.id)"
  8091. v-if="userid == h.userid"
  8092. >
  8093. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8094. </div>
  8095. </div>
  8096. </div>
  8097. </div>
  8098. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8099. <div class="replyInput">
  8100. <el-input v-model="reply[pzIndex]"></el-input>
  8101. </div>
  8102. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8103. </div> -->
  8104. </div>
  8105. </div>
  8106. <div class="noPz" v-else>
  8107. <img src="../../assets/icon/noPz.png" alt="" />
  8108. </div>
  8109. <div class="addPzButton">
  8110. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8111. {{ lang.ssAddComment }}
  8112. </div>
  8113. <!-- <div class="img1">
  8114. <div @click="(addPzDialog = true), (pzType = 2)">
  8115. <img src="../../assets/audio.png" /><span>音频</span>
  8116. </div>
  8117. </div> -->
  8118. </div>
  8119. </div>
  8120. <div class="scoreList" v-if="commentTagShow==1">
  8121. <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"/>
  8122. </div>
  8123. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8124. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8125. </div>
  8126. </div>
  8127. <div
  8128. v-if="toolDialogVisible == true"
  8129. class="toolMask"
  8130. @click="toolDialogVisible = false"
  8131. ></div>
  8132. <div v-if="toolDialogVisible == true" class="addToolCss">
  8133. <div class="toolTop">
  8134. <div style="font-weight: bold">{{ lang.ssNewTool }}</div>
  8135. <div @click="toolDialogVisible = false">
  8136. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8137. </div>
  8138. </div>
  8139. <div class="tool_box">
  8140. <div class="tool_type_box">
  8141. <div class="chooseWho">
  8142. <div
  8143. :class="toolType == 0 ? 'isChooseActive' : ''"
  8144. @click="(toolType = 0), $forceUpdate()"
  8145. >
  8146. {{ lang.ssInteract }}
  8147. </div>
  8148. <div
  8149. :class="toolType == 1 ? 'isChooseActive' : ''"
  8150. @click="(toolType = 1), $forceUpdate()"
  8151. >
  8152. {{ lang.ssThinking }}
  8153. </div>
  8154. <div
  8155. :class="toolType == 2 ? 'isChooseActive' : ''"
  8156. @click="(toolType = 2), $forceUpdate()"
  8157. >
  8158. {{ lang.ssEvalType }}
  8159. </div>
  8160. <div
  8161. :class="toolType == 3 ? 'isChooseActive' : ''"
  8162. @click="(toolType = 3), $forceUpdate()"
  8163. >
  8164. {{ lang.ssProgram }}
  8165. </div>
  8166. <div
  8167. :class="toolType == 5 ? 'isChooseActive' : ''"
  8168. @click="(toolType = 5), $forceUpdate()"
  8169. >
  8170. {{ lang.ssSubject }}
  8171. </div>
  8172. </div>
  8173. </div>
  8174. <div>
  8175. <div class="toolSort" v-if="toolType == 0">
  8176. <div
  8177. class="tool"
  8178. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8179. @click="addTools2(10)"
  8180. >
  8181. <div class="whiteBIcon">
  8182. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8183. <div style="margin: 5px 0">{{ lang.ssCountdown }}</div>
  8184. </div>
  8185. <div class="check">
  8186. <div
  8187. v-if="checktoolArray.indexOf(10) == -1"
  8188. class="noChoose"
  8189. ></div>
  8190. <div v-else class="isChoose"></div>
  8191. </div>
  8192. </div>
  8193. <div
  8194. class="tool"
  8195. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8196. @click="addTools2(65)"
  8197. >
  8198. <div class="whiteBIcon">
  8199. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8200. <div style="margin: 5px 0">{{ lang.ssPickPerson }}</div>
  8201. </div>
  8202. <div class="check">
  8203. <div
  8204. v-if="checktoolArray.indexOf(65) == -1"
  8205. class="noChoose"
  8206. ></div>
  8207. <div v-else class="isChoose"></div>
  8208. </div>
  8209. </div>
  8210. </div>
  8211. <div class="toolSort" v-if="toolType == 1">
  8212. <div
  8213. class="tool"
  8214. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8215. @click="addTools2(7)"
  8216. >
  8217. <div class="whiteBIcon">
  8218. <img
  8219. src="../../assets/icon/secondToolList/mindNetwork.png"
  8220. alt
  8221. />
  8222. <div style="margin: 5px 0">{{ lang.ssMindGrid }}</div>
  8223. </div>
  8224. <div class="check">
  8225. <div
  8226. v-if="checktoolArray.indexOf(7) == -1"
  8227. class="noChoose"
  8228. ></div>
  8229. <div v-else class="isChoose"></div>
  8230. </div>
  8231. </div>
  8232. <div
  8233. class="tool"
  8234. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8235. @click="addTools2(1)"
  8236. >
  8237. <div class="whiteBIcon">
  8238. <img
  8239. src="../../assets/icon/secondToolList/whiteBoard.png"
  8240. alt
  8241. />
  8242. <div style="margin: 5px 0">{{ lang.ssWhiteboard }}</div>
  8243. </div>
  8244. <div class="check">
  8245. <div
  8246. v-if="checktoolArray.indexOf(1) == -1"
  8247. class="noChoose"
  8248. ></div>
  8249. <div v-else class="isChoose"></div>
  8250. </div>
  8251. </div>
  8252. <div
  8253. class="tool"
  8254. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8255. @click="addTools2(52)"
  8256. >
  8257. <div class="whiteBIcon">
  8258. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8259. <div style="margin: 5px 0">{{ lang.ssDocument }}</div>
  8260. </div>
  8261. <div class="check">
  8262. <div
  8263. v-if="checktoolArray.indexOf(52) == -1"
  8264. class="noChoose"
  8265. ></div>
  8266. <div v-else class="isChoose"></div>
  8267. </div>
  8268. </div>
  8269. <div
  8270. class="tool"
  8271. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8272. @click="addTools2(3)"
  8273. >
  8274. <div class="whiteBIcon">
  8275. <img
  8276. src="../../assets/icon/secondToolList/mindMapping.png"
  8277. alt
  8278. />
  8279. <div style="margin: 5px 0">{{ lang.ssMindMap }}</div>
  8280. </div>
  8281. <div class="check">
  8282. <div
  8283. v-if="checktoolArray.indexOf(3) == -1"
  8284. class="noChoose"
  8285. ></div>
  8286. <div v-else class="isChoose"></div>
  8287. </div>
  8288. </div>
  8289. <div
  8290. class="tool"
  8291. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8292. @click="addTools2(48)"
  8293. >
  8294. <div class="whiteBIcon">
  8295. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8296. <div style="margin: 5px 0">{{ lang.ssTable }}</div>
  8297. </div>
  8298. <div class="check">
  8299. <div
  8300. v-if="checktoolArray.indexOf(48) == -1"
  8301. class="noChoose"
  8302. ></div>
  8303. <div v-else class="isChoose"></div>
  8304. </div>
  8305. </div>
  8306. </div>
  8307. <div class="toolSort" v-if="toolType == 6">
  8308. <div v-show="tooC == 49">
  8309. <img
  8310. @click="addTools(tooC, toolIndex, taskCount)"
  8311. src="../../assets/icon/fourthToolList/group.png"
  8312. alt
  8313. />
  8314. <div style="margin: 5px 0">{{ lang.ssStudentGroup }}</div>
  8315. </div>
  8316. </div>
  8317. <div class="toolSort" v-if="toolType == 2">
  8318. <div
  8319. class="tool"
  8320. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8321. @click="addTools2(16)"
  8322. >
  8323. <div class="whiteBIcon">
  8324. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8325. <div style="margin: 5px 0">{{ lang.ssHomework }}</div>
  8326. </div>
  8327. <div class="check">
  8328. <div
  8329. v-if="checktoolArray.indexOf(16) == -1"
  8330. class="noChoose"
  8331. ></div>
  8332. <div v-else class="isChoose"></div>
  8333. </div>
  8334. </div>
  8335. <div
  8336. class="tool"
  8337. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8338. @click="addTools2(50)"
  8339. >
  8340. <div class="whiteBIcon">
  8341. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8342. <div style="margin: 5px 0">{{ lang.ssBatchUpload }}</div>
  8343. </div>
  8344. <div class="check">
  8345. <div
  8346. v-if="checktoolArray.indexOf(50) == -1"
  8347. class="noChoose"
  8348. ></div>
  8349. <div v-else class="isChoose"></div>
  8350. </div>
  8351. </div>
  8352. </div>
  8353. <div class="toolSort" v-if="toolType == 3">
  8354. <div
  8355. class="tool"
  8356. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8357. @click="addTools2(18)"
  8358. >
  8359. <div class="whiteBIcon">
  8360. <img
  8361. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8362. alt
  8363. />
  8364. <div style="margin: 5px 0">{{ lang.ssTraining }}</div>
  8365. </div>
  8366. <div class="check">
  8367. <div
  8368. v-if="checktoolArray.indexOf(18) == -1"
  8369. class="noChoose"
  8370. ></div>
  8371. <div v-else class="isChoose"></div>
  8372. </div>
  8373. </div>
  8374. <div
  8375. class="tool"
  8376. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8377. @click="addTools2(21)"
  8378. >
  8379. <div class="whiteBIcon">
  8380. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8381. <div style="margin: 5px 0">{{ lang.ssAiotBlockly }}</div>
  8382. </div>
  8383. <div class="check">
  8384. <div
  8385. v-if="checktoolArray.indexOf(21) == -1"
  8386. class="noChoose"
  8387. ></div>
  8388. <div v-else class="isChoose"></div>
  8389. </div>
  8390. </div>
  8391. <div
  8392. class="tool"
  8393. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8394. @click="addTools2(23)"
  8395. >
  8396. <div class="whiteBIcon">
  8397. <img
  8398. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8399. alt
  8400. />
  8401. <div style="margin: 5px 0">{{ lang.ssAiPython }}</div>
  8402. </div>
  8403. <div class="check">
  8404. <div
  8405. v-if="checktoolArray.indexOf(23) == -1"
  8406. class="noChoose"
  8407. ></div>
  8408. <div v-else class="isChoose"></div>
  8409. </div>
  8410. </div>
  8411. <div
  8412. class="tool"
  8413. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8414. @click="addTools2(24)"
  8415. >
  8416. <div class="whiteBIcon">
  8417. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8418. <div style="margin: 5px 0">{{ lang.ssAiBlockly }}</div>
  8419. </div>
  8420. <div class="check">
  8421. <div
  8422. v-if="checktoolArray.indexOf(24) == -1"
  8423. class="noChoose"
  8424. ></div>
  8425. <div v-else class="isChoose"></div>
  8426. </div>
  8427. </div>
  8428. <div
  8429. class="tool"
  8430. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8431. @click="addTools2(32)"
  8432. >
  8433. <div class="whiteBIcon">
  8434. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8435. <div style="margin: 5px 0">{{ lang.ssCodeEdit }}</div>
  8436. </div>
  8437. <div class="check">
  8438. <div
  8439. v-if="checktoolArray.indexOf(32) == -1"
  8440. class="noChoose"
  8441. ></div>
  8442. <div v-else class="isChoose"></div>
  8443. </div>
  8444. </div>
  8445. <div
  8446. class="tool"
  8447. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8448. @click="addTools2(57)"
  8449. >
  8450. <div class="whiteBIcon">
  8451. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8452. <div style="margin: 5px 0">{{ lang.ssCocoPi }}</div>
  8453. </div>
  8454. <div class="check">
  8455. <div
  8456. v-if="checktoolArray.indexOf(57) == -1"
  8457. class="noChoose"
  8458. ></div>
  8459. <div v-else class="isChoose"></div>
  8460. </div>
  8461. </div>
  8462. <div
  8463. class="tool"
  8464. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8465. @click="addTools2(63)"
  8466. >
  8467. <div class="whiteBIcon">
  8468. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8469. <div style="margin: 5px 0">{{ lang.ssTurtle }}</div>
  8470. </div>
  8471. <div class="check">
  8472. <div
  8473. v-if="checktoolArray.indexOf(63) == -1"
  8474. class="noChoose"
  8475. ></div>
  8476. <div v-else class="isChoose"></div>
  8477. </div>
  8478. </div>
  8479. <div
  8480. class="tool"
  8481. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8482. @click="addTools2(71)"
  8483. >
  8484. <div class="whiteBIcon">
  8485. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  8486. <div style="margin: 5px 0">{{ lang.ssAiAgent }}</div>
  8487. </div>
  8488. <div class="check">
  8489. <div
  8490. v-if="checktoolArray.indexOf(71) == -1"
  8491. class="noChoose"
  8492. ></div>
  8493. <div v-else class="isChoose"></div>
  8494. </div>
  8495. </div>
  8496. </div>
  8497. <div class="toolSort" v-if="toolType == 7">
  8498. <div
  8499. class="tool"
  8500. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8501. @click="addTools2(40)"
  8502. >
  8503. <div class="whiteBIcon">
  8504. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8505. <div style="margin: 5px 0">{{ lang.ssPersonalEval }}</div>
  8506. </div>
  8507. <div class="check">
  8508. <div
  8509. v-if="checktoolArray.indexOf(40) == -1"
  8510. class="noChoose"
  8511. ></div>
  8512. <div v-else class="isChoose"></div>
  8513. </div>
  8514. </div>
  8515. </div>
  8516. <div class="toolSort" v-if="toolType == 5">
  8517. <div
  8518. class="tool"
  8519. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8520. @click="addTools2(28)"
  8521. >
  8522. <div class="whiteBIcon">
  8523. <img
  8524. src="../../assets/icon/secondToolList/translation.png"
  8525. alt
  8526. />
  8527. <div style="margin: 5px 0">{{ lang.ssTranslate }}</div>
  8528. </div>
  8529. <div class="check">
  8530. <div
  8531. v-if="checktoolArray.indexOf(28) == -1"
  8532. class="noChoose"
  8533. ></div>
  8534. <div v-else class="isChoose"></div>
  8535. </div>
  8536. </div>
  8537. <div
  8538. class="tool"
  8539. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8540. @click="addTools2(31)"
  8541. >
  8542. <div class="whiteBIcon">
  8543. <img
  8544. src="../../assets/icon/secondToolList/networkPanel.png"
  8545. alt
  8546. />
  8547. <div style="margin: 5px 0">{{ lang.ssDigitalBoard }}</div>
  8548. </div>
  8549. <div class="check">
  8550. <div
  8551. v-if="checktoolArray.indexOf(31) == -1"
  8552. class="noChoose"
  8553. ></div>
  8554. <div v-else class="isChoose"></div>
  8555. </div>
  8556. </div>
  8557. <div
  8558. class="tool"
  8559. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8560. @click="addTools2(39)"
  8561. >
  8562. <div class="whiteBIcon">
  8563. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8564. <div style="margin: 5px 0">{{ lang.ssGeogebra }}</div>
  8565. </div>
  8566. <div class="check">
  8567. <div
  8568. v-if="checktoolArray.indexOf(39) == -1"
  8569. class="noChoose"
  8570. ></div>
  8571. <div v-else class="isChoose"></div>
  8572. </div>
  8573. </div>
  8574. <div
  8575. class="tool"
  8576. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8577. @click="addTools2(66)"
  8578. >
  8579. <div class="whiteBIcon">
  8580. <img
  8581. src="../../assets/icon/secondToolList/formulaEdi.png"
  8582. alt
  8583. />
  8584. <div style="margin: 5px 0">{{ lang.ssFormula }}</div>
  8585. </div>
  8586. <div class="check">
  8587. <div
  8588. v-if="checktoolArray.indexOf(66) == -1"
  8589. class="noChoose"
  8590. ></div>
  8591. <div v-else class="isChoose"></div>
  8592. </div>
  8593. </div>
  8594. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8595. <div class="whiteBIcon" @click="addTools2(67)">
  8596. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8597. <div style="margin: 5px 0">分子结构</div>
  8598. </div>
  8599. <div class="check" @click="addTools2(67)">
  8600. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8601. <div v-else class="isChoose"></div>
  8602. </div>
  8603. </div> -->
  8604. <div
  8605. class="tool"
  8606. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8607. @click="addTools2(68)"
  8608. >
  8609. <div class="whiteBIcon">
  8610. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8611. <div style="margin: 5px 0">{{ lang.ssTimeline }}</div>
  8612. </div>
  8613. <div class="check">
  8614. <div
  8615. v-if="checktoolArray.indexOf(68) == -1"
  8616. class="noChoose"
  8617. ></div>
  8618. <div v-else class="isChoose"></div>
  8619. </div>
  8620. </div>
  8621. <!-- <div
  8622. class="tool"
  8623. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8624. @click="addTools2(69)"
  8625. >
  8626. <div class="whiteBIcon">
  8627. <img src="../../assets/icon/secondToolList/english.png" alt />
  8628. <div style="margin: 5px 0">英语写作</div>
  8629. </div>
  8630. <div class="check">
  8631. <div
  8632. v-if="checktoolArray.indexOf(69) == -1"
  8633. class="noChoose"
  8634. ></div>
  8635. <div v-else class="isChoose"></div>
  8636. </div>
  8637. </div> -->
  8638. </div>
  8639. <div class="toolSort" v-if="toolType == 4">
  8640. <div
  8641. class="tool"
  8642. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8643. @click="addTools2(26)"
  8644. >
  8645. <div class="whiteBIcon">
  8646. <img
  8647. src="../../assets/icon/thirdToolList/courseDesign.png"
  8648. alt
  8649. />
  8650. <div style="margin: 5px 0">{{ lang.ssCourseDesign }}</div>
  8651. </div>
  8652. <div class="check">
  8653. <div
  8654. v-if="checktoolArray.indexOf(26) == -1"
  8655. class="noChoose"
  8656. ></div>
  8657. <div v-else class="isChoose"></div>
  8658. </div>
  8659. </div>
  8660. <div
  8661. class="tool"
  8662. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8663. @click="addTools2(25)"
  8664. >
  8665. <div class="whiteBIcon">
  8666. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8667. <div style="margin: 5px 0">{{ lang.ssGoalManage }}</div>
  8668. </div>
  8669. <div class="check">
  8670. <div
  8671. v-if="checktoolArray.indexOf(25) == -1"
  8672. class="noChoose"
  8673. ></div>
  8674. <div v-else class="isChoose"></div>
  8675. </div>
  8676. </div>
  8677. </div>
  8678. </div>
  8679. </div>
  8680. <span
  8681. slot="footer"
  8682. class="dialog-footer"
  8683. style="display: block; text-align: center; padding: 0 0 10px 0"
  8684. >
  8685. <el-button @click="toolDialogVisible = false">{{ lang.ssCancel }}</el-button>
  8686. <el-button type="primary" @click.stop="addToolChoose">{{ lang.ssConfirm }}</el-button>
  8687. </span>
  8688. </div>
  8689. <div
  8690. v-if="replyDialogVisible == true"
  8691. class="addDialogCss"
  8692. v-el-drag-dialog
  8693. >
  8694. <div class="pzTop">
  8695. <div class="teacherPz">
  8696. <div class="teacherPzImg">
  8697. <img src="../../assets/icon/teacherPz.png" alt="" />
  8698. </div>
  8699. <div style="margin-left: 10px; height: 25px">{{ lang.ssAddReply }}</div>
  8700. </div>
  8701. <div @click="replyDialogVisible = false">
  8702. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8703. </div>
  8704. </div>
  8705. <div class="addPzBox">
  8706. <!-- <div class="addPzCheck">
  8707. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8708. >文本</span
  8709. >
  8710. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8711. >音频</span
  8712. >
  8713. </div> -->
  8714. <div style="height: calc(100% - 50px)">
  8715. <editor-bar
  8716. class="binfo_input pzConText"
  8717. style="width: 100% !important; margin: 0 auto"
  8718. :placeholder="lang.ssEnterReply"
  8719. v-model="reply"
  8720. @change="change"
  8721. ></editor-bar>
  8722. </div>
  8723. <div class="addTextCss" @click="addHf">{{ lang.ssConfirm }}</div>
  8724. </div>
  8725. </div>
  8726. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8727. <div class="pzTop">
  8728. <div class="teacherPz">
  8729. <div class="teacherPzImg">
  8730. <img src="../../assets/icon/teacherPz.png" alt="" />
  8731. </div>
  8732. <div style="margin-left: 10px; height: 25px">{{ lang.ssTeacherComment }}</div>
  8733. </div>
  8734. <div @click="addPzDialog = false">
  8735. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8736. </div>
  8737. </div>
  8738. <div class="addPzBox">
  8739. <div class="addPzCheck">
  8740. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8741. >{{ lang.ssText }}</span
  8742. >
  8743. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8744. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8745. >{{ lang.ssAudio }}</span
  8746. >
  8747. </div>
  8748. <div style="height: calc(100% - 95px)">
  8749. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8750. v-if="pzType == 1"></textarea> -->
  8751. <editor-bar
  8752. class="binfo_input pzConText"
  8753. style="width: 100% !important"
  8754. :placeholder="lang.ssEnterTaskDesc"
  8755. v-model="pzConText"
  8756. @change="change"
  8757. v-if="pzType == 1"
  8758. ></editor-bar>
  8759. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8760. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8761. <div @click="addImg($event)">
  8762. <el-button type="primary">上传图片</el-button>
  8763. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8764. @change="beforeUpload1($event, 4)" />
  8765. </div>
  8766. </div> -->
  8767. </div>
  8768. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8769. {{ lang.ssConfirm }}
  8770. </div>
  8771. </div>
  8772. </div>
  8773. <div v-if="proVisible" class="mask">
  8774. <div class="progressBox">
  8775. <!-- <div id="closePro" class="closeCss">
  8776. <img src="../../assets/icon/close.png" alt />
  8777. </div> -->
  8778. <div class="lbox">
  8779. <img src="../../assets/loading.gif" />{{ lang.ssUploading }}
  8780. </div>
  8781. <div style="margin-bottom: 10px">
  8782. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8783. </div>
  8784. <el-progress
  8785. :text-inside="true"
  8786. :stroke-width="20"
  8787. :percentage="progress"
  8788. style="width: 80%"
  8789. ></el-progress>
  8790. </div>
  8791. </div>
  8792. <div v-if="proVisible2" class="mask">
  8793. <div class="progressBox">
  8794. <div class="lbox">
  8795. <img src="../../assets/loading.gif" />{{lang.ssUploading}}
  8796. </div>
  8797. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8798. </div>
  8799. </div>
  8800. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8801. <img width="100%" :src="dialogImageUrl" alt />
  8802. </el-dialog>
  8803. <el-dialog
  8804. :title="noteName != '' ? noteName : lang.ssViewSurvey"
  8805. :visible.sync="dialogVisible5"
  8806. :append-to-body="true"
  8807. width="1000px"
  8808. :before-close="handleClose"
  8809. class="dialog_diy dialog_diy3"
  8810. >
  8811. <div>
  8812. <div
  8813. class="a_add_title"
  8814. style="
  8815. display: flex;
  8816. flex-direction: row;
  8817. align-items: center;
  8818. justify-content: center;
  8819. "
  8820. >
  8821. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitle }}:</div>
  8822. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8823. </div>
  8824. <div class="a_addBox">
  8825. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8826. {{ lang.ssQuestionContent }}
  8827. </div>
  8828. <div
  8829. class="a_add_box"
  8830. v-for="(item1, index1) in askJson.askCount"
  8831. :key="index1"
  8832. >
  8833. <div class="a_add_head">
  8834. <div style="display: flex">
  8835. <span class="askIndex"> {{ index1 + 1 }}</span>
  8836. <div>{{ lang.ssQuestion }}:{{ askJson.askJson[index1].askstitle }}</div>
  8837. </div>
  8838. <img
  8839. v-if="askJson.askJson[index1].img"
  8840. :src="askJson.askJson[index1].img"
  8841. style="height: 300px; margin-top: 10px; max-width: 100%"
  8842. />
  8843. </div>
  8844. <div class="a_add_body">
  8845. <div class="a_add_input">
  8846. <el-radio-group
  8847. v-model="radio[index1]"
  8848. v-if="
  8849. askJson.askJson[index1].type == '1' ||
  8850. !askJson.askJson[index1].type
  8851. "
  8852. >
  8853. <el-radio
  8854. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8855. .checkList"
  8856. :key="checkIndex"
  8857. :label="checkIndex"
  8858. :disabled="isAnswer"
  8859. class="redioStyle"
  8860. ><span v-html="item2"></span
  8861. ></el-radio>
  8862. </el-radio-group>
  8863. <el-checkbox-group
  8864. v-model="radio[index1]"
  8865. v-if="askJson.askJson[index1].type == '2'"
  8866. >
  8867. <el-checkbox
  8868. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8869. .checkList"
  8870. :key="checkIndex1"
  8871. :label="checkIndex1"
  8872. :disabled="isAnswer"
  8873. class="redioStyle"
  8874. ><span v-html="item2"></span>
  8875. </el-checkbox>
  8876. </el-checkbox-group>
  8877. </div>
  8878. </div>
  8879. </div>
  8880. </div>
  8881. </div>
  8882. <span slot="footer" class="dialog-footer">
  8883. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8884. >{{lang.ssCancel}}</el-button
  8885. >
  8886. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8887. >{{lang.ssConfirm}}</el-button
  8888. >
  8889. </span>
  8890. </el-dialog>
  8891. <el-dialog
  8892. :title="noteName != '' ? noteName : lang.ssViewSurvey"
  8893. :visible.sync="dialogVisible5Teacher"
  8894. :append-to-body="true"
  8895. width="1000px"
  8896. :before-close="handleClose"
  8897. class="dialog_diy dialog_diy3"
  8898. >
  8899. <div>
  8900. <div class="w_name">
  8901. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  8902. </div>
  8903. <div
  8904. class="a_add_title"
  8905. style="
  8906. display: flex;
  8907. flex-direction: row;
  8908. align-items: center;
  8909. justify-content: center;
  8910. "
  8911. >
  8912. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitle }}:</div>
  8913. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8914. </div>
  8915. <div class="a_addBox">
  8916. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8917. {{ lang.ssQuestionContent }}
  8918. </div>
  8919. <div
  8920. class="a_add_box"
  8921. v-for="(item1, index1) in askJson.askCount"
  8922. :key="index1"
  8923. >
  8924. <div class="a_add_head">
  8925. <div style="display: flex">
  8926. <span class="askIndex">{{ index1 + 1 }}</span>
  8927. <div>{{ lang.ssQuestion }}:{{ askJson.askJson[index1].askstitle }}</div>
  8928. </div>
  8929. <img
  8930. v-if="askJson.askJson[index1].img"
  8931. :src="askJson.askJson[index1].img"
  8932. style="height: 300px; margin-top: 10px; max-width: 100%"
  8933. />
  8934. </div>
  8935. <div class="a_add_body">
  8936. <div class="a_add_input">
  8937. <el-radio-group
  8938. v-model="radio[index1]"
  8939. v-if="
  8940. askJson.askJson[index1].type == '1' ||
  8941. !askJson.askJson[index1].type
  8942. "
  8943. >
  8944. <el-radio
  8945. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8946. .checkList"
  8947. :key="checkIndex"
  8948. :label="checkIndex"
  8949. :disabled="isAnswer"
  8950. class="redioStyle"
  8951. ><span v-html="item2"></span
  8952. ></el-radio>
  8953. </el-radio-group>
  8954. <el-checkbox-group
  8955. v-model="radio[index1]"
  8956. v-if="askJson.askJson[index1].type == '2'"
  8957. >
  8958. <el-checkbox
  8959. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8960. .checkList"
  8961. :key="checkIndex1"
  8962. :label="checkIndex1"
  8963. :disabled="isAnswer"
  8964. class="redioStyle"
  8965. ><span v-html="item2"></span>
  8966. </el-checkbox>
  8967. </el-checkbox-group>
  8968. </div>
  8969. </div>
  8970. </div>
  8971. </div>
  8972. </div>
  8973. <span slot="footer" class="dialog-footer">
  8974. <el-button
  8975. @click="dialogVisible5Teacher = false"
  8976. v-show="noteName == ''"
  8977. >{{lang.ssCancel}}</el-button
  8978. >
  8979. <el-button
  8980. type="primary"
  8981. @click="addStudentAskTeacher"
  8982. v-show="noteName == ''"
  8983. >{{lang.ssConfirm}}</el-button
  8984. >
  8985. </span>
  8986. </el-dialog>
  8987. <el-dialog
  8988. :title="noteName != '' ? noteName : lang.ssViewChoice"
  8989. :visible.sync="dialogVisibleChoice"
  8990. :append-to-body="true"
  8991. width="1000px"
  8992. :before-close="handleClose"
  8993. class="dialog_diy dialog_diy3"
  8994. >
  8995. <div>
  8996. <!-- <div class="a_add_title" style="
  8997. display: flex;
  8998. flex-direction: row;
  8999. align-items: center;
  9000. justify-content: center;
  9001. ">
  9002. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitle }}:</div>
  9003. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9004. </div> -->
  9005. <div class="a_addBox">
  9006. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9007. {{ lang.ssQuestionContent }}
  9008. </div>
  9009. <div
  9010. class="a_add_box"
  9011. v-for="(item1, index1) in testJson.testCount"
  9012. :key="index1"
  9013. >
  9014. <div class="a_add_head">
  9015. <div style="display: flex;">
  9016. <span class="askIndex">{{ index1 + 1 }}</span>
  9017. <div
  9018. v-if="testJson.testJson[index1].type == '1'"
  9019. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9020. >
  9021. ({{ lang.ssSingleChoice }})
  9022. </div>
  9023. <div
  9024. v-if="testJson.testJson[index1].type == '2'"
  9025. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9026. >
  9027. ({{ lang.ssMultiChoice }})
  9028. </div>
  9029. <div class="renderedFor">{{lang.ssQuestion}}:<span v-html="testJson.testJson[index1].teststitle"></span></div>
  9030. </div>
  9031. <img
  9032. v-if="testJson.testJson[index1].img"
  9033. :src="testJson.testJson[index1].img"
  9034. style="height: 300px; margin-top: 10px; max-width: 100%"
  9035. />
  9036. </div>
  9037. <div
  9038. class="timuImgBox"
  9039. v-if="
  9040. testJson.testJson[index1].timuList &&
  9041. testJson.testJson[index1].timuList.length
  9042. "
  9043. >
  9044. <div
  9045. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9046. :key="tIndex"
  9047. class="timuImg"
  9048. @click.stop="previewImg(timg.src)"
  9049. >
  9050. <img :src="timg.src" alt="" />
  9051. </div>
  9052. </div>
  9053. <div class="a_add_body">
  9054. <div class="a_add_input">
  9055. <el-radio-group
  9056. v-model="radio[index1]"
  9057. v-if="testJson.testJson[index1].type == '1'"
  9058. >
  9059. <div class="radioBox">
  9060. <el-radio
  9061. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9062. .checkList"
  9063. :key="checkIndex"
  9064. :label="checkIndex"
  9065. :disabled="isAnswer"
  9066. class="redioStyle"
  9067. >
  9068. <div
  9069. style="margin-right: 10px"
  9070. v-if="item2 && item2.imgType && item2.imgType == 1"
  9071. >
  9072. <div class="inImg" @click.stop="previewImg(item2.src)">
  9073. <img :src="item2.src" alt="" />
  9074. </div>
  9075. </div>
  9076. <span v-else v-html="item2"></span>
  9077. </el-radio>
  9078. </div>
  9079. </el-radio-group>
  9080. <el-checkbox-group
  9081. v-model="radio[index1]"
  9082. v-if="testJson.testJson[index1].type == '2'"
  9083. >
  9084. <div class="radioBox">
  9085. <el-checkbox
  9086. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9087. .checkList"
  9088. :key="checkIndex"
  9089. :label="checkIndex"
  9090. :disabled="isAnswer"
  9091. class="redioStyle"
  9092. >
  9093. <div
  9094. style="margin-right: 10px"
  9095. v-if="item2 && item2.imgType && item2.imgType == 1"
  9096. >
  9097. <div class="inImg" @click.stop="previewImg(item2.src)">
  9098. <img :src="item2.src" alt="" />
  9099. </div>
  9100. </div>
  9101. <span v-else v-html="item2"></span>
  9102. </el-checkbox>
  9103. </div>
  9104. </el-checkbox-group>
  9105. </div>
  9106. </div>
  9107. </div>
  9108. </div>
  9109. </div>
  9110. <span slot="footer" class="dialog-footer">
  9111. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9112. >{{lang.ssCancel}}</el-button
  9113. >
  9114. <el-button
  9115. type="primary"
  9116. @click="addStudentTest"
  9117. v-show="noteName == ''"
  9118. >{{lang.ssConfirm}}</el-button
  9119. >
  9120. </span>
  9121. </el-dialog>
  9122. <el-dialog
  9123. :title="noteName != '' ? noteName : lang.ssViewChoice"
  9124. :visible.sync="dialogVisibleChoiceTeacher"
  9125. :append-to-body="true"
  9126. width="1000px"
  9127. :before-close="handleClose"
  9128. class="dialog_diy dialog_diy3"
  9129. >
  9130. <div>
  9131. <div class="w_name">
  9132. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  9133. </div>
  9134. <div class="a_addBox">
  9135. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9136. {{ lang.ssQuestionContent }}
  9137. </div>
  9138. <div
  9139. class="a_add_box"
  9140. v-for="(item1, index1) in testJson.testCount"
  9141. :key="index1"
  9142. >
  9143. <div class="a_add_head">
  9144. <div style="display: flex">
  9145. <span class="askIndex">{{ index1 + 1 }}</span>
  9146. <div
  9147. v-if="testJson.testJson[index1].type == '1'"
  9148. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9149. >
  9150. ({{ lang.ssSingleChoice }})
  9151. </div>
  9152. <div
  9153. v-if="testJson.testJson[index1].type == '2'"
  9154. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9155. >
  9156. ({{ lang.ssMultiChoice }})
  9157. </div>
  9158. <div>{{lang.ssQuestion}}:{{ testJson.testJson[index1].teststitle }}</div>
  9159. </div>
  9160. <img
  9161. v-if="testJson.testJson[index1].img"
  9162. :src="testJson.testJson[index1].img"
  9163. style="height: 300px; margin-top: 10px; max-width: 100%"
  9164. />
  9165. </div>
  9166. <div
  9167. class="timuImgBox"
  9168. v-if="
  9169. testJson.testJson[index1].timuList &&
  9170. testJson.testJson[index1].timuList.length
  9171. "
  9172. >
  9173. <div
  9174. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9175. :key="tIndex"
  9176. class="timuImg"
  9177. @click.stop="previewImg(timg.src)"
  9178. >
  9179. <img :src="timg.src" alt="" />
  9180. </div>
  9181. </div>
  9182. <div class="a_add_body">
  9183. <div class="a_add_input">
  9184. <el-radio-group
  9185. v-model="radio[index1]"
  9186. v-if="testJson.testJson[index1].type == '1'"
  9187. >
  9188. <div class="radioBox">
  9189. <el-radio
  9190. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9191. .checkList"
  9192. :key="checkIndex"
  9193. :label="checkIndex"
  9194. :disabled="isAnswer"
  9195. class="redioStyle"
  9196. >
  9197. <div
  9198. style="margin-right: 10px"
  9199. v-if="item2 && item2.imgType && item2.imgType == 1"
  9200. >
  9201. <div class="inImg" @click.stop="previewImg(item2.src)">
  9202. <img :src="item2.src" alt="" />
  9203. </div>
  9204. </div>
  9205. <span v-else v-html="item2"></span>
  9206. </el-radio>
  9207. </div>
  9208. </el-radio-group>
  9209. <el-checkbox-group
  9210. v-model="radio[index1]"
  9211. v-if="testJson.testJson[index1].type == '2'"
  9212. >
  9213. <div class="radioBox">
  9214. <el-checkbox
  9215. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9216. .checkList"
  9217. :key="checkIndex"
  9218. :label="checkIndex"
  9219. :disabled="isAnswer"
  9220. class="redioStyle"
  9221. >
  9222. <div
  9223. style="margin-right: 10px"
  9224. v-if="item2 && item2.imgType && item2.imgType == 1"
  9225. >
  9226. <div class="inImg" @click.stop="previewImg(item2.src)">
  9227. <img :src="item2.src" alt="" />
  9228. </div>
  9229. </div>
  9230. <span v-else v-html="item2"></span>
  9231. </el-checkbox>
  9232. </div>
  9233. </el-checkbox-group>
  9234. </div>
  9235. </div>
  9236. </div>
  9237. </div>
  9238. </div>
  9239. <span slot="footer" class="dialog-footer">
  9240. <el-button
  9241. @click="dialogVisibleChoiceTeacher = false"
  9242. v-show="noteName == ''"
  9243. >{{lang.ssCancel}}</el-button
  9244. >
  9245. <el-button
  9246. type="primary"
  9247. @click="addStudentTestTeacher"
  9248. v-show="noteName == ''"
  9249. >{{lang.ssConfirm}}</el-button
  9250. >
  9251. </span>
  9252. </el-dialog>
  9253. <el-dialog
  9254. :title="lang.ssViewRichText"
  9255. :visible.sync="dialogVisible1"
  9256. :append-to-body="true"
  9257. width="500px"
  9258. :before-close="handleClose"
  9259. class="dialog_diy textCss"
  9260. >
  9261. <el-form style="font-size: 20px">
  9262. <el-form-item :label="lang.ssTextTitle" class="textTitle">
  9263. <div style="font-size: 20px">{{ text.name }}</div>
  9264. </el-form-item>
  9265. <div>{{ lang.ssRichTextContent }}</div>
  9266. <div
  9267. v-html="text.url"
  9268. style="font-size: 18px; padding: 40px 0 0 0"
  9269. ></div>
  9270. </el-form>
  9271. <span slot="footer" class="dialog-footer">
  9272. <el-button type="primary" @click="dialogVisible1 = false"
  9273. >{{ lang.ssConfirm }}</el-button
  9274. >
  9275. </span>
  9276. </el-dialog>
  9277. <el-dialog
  9278. :title="lang.ssFilePreview"
  9279. :visible.sync="dialogVisible3"
  9280. width="50%"
  9281. :before-close="handleClose"
  9282. class="dialog_diy"
  9283. :class="{ fullStyle: full }"
  9284. >
  9285. <div slot="title" class="header-title">
  9286. <div style="color: #fff">{{lang.ssFilePreview}}</div>
  9287. <div style="position: absolute; top: 19px; right: 50px">
  9288. <img
  9289. src="../../assets/full.png"
  9290. style="height: 16px; cursor: pointer"
  9291. alt=""
  9292. @click="fullTools"
  9293. />
  9294. </div>
  9295. </div>
  9296. <pdf
  9297. v-if="showPDF"
  9298. :pdfUrl="pptImgUrl"
  9299. style="width: 100%; height: 520px; overflow: auto"
  9300. :class="{ fullStyle: full }"
  9301. ></pdf>
  9302. <iframe
  9303. v-else
  9304. :src="pptImgUrl"
  9305. frameborder="0"
  9306. width="100%"
  9307. height="600"
  9308. :class="{ fullStyle: full }"
  9309. ></iframe>
  9310. </el-dialog>
  9311. <el-dialog
  9312. :title="lang.ssFilePreview"
  9313. :visible.sync="dialogVisible6"
  9314. width="50%"
  9315. :before-close="handleClose"
  9316. class="dialog_diy"
  9317. >
  9318. <iframe
  9319. :src="pptImgUrl1"
  9320. frameborder="0"
  9321. width="100%"
  9322. height="600"
  9323. ></iframe>
  9324. </el-dialog>
  9325. <el-dialog
  9326. :title="lang.ssPrompt"
  9327. :visible.sync="dialogVisible4"
  9328. :append-to-body="true"
  9329. width="800px"
  9330. :before-close="handleClose"
  9331. class="dialog_diy notice"
  9332. >
  9333. <div>{{lang.ssFeatureNotAvail}}</div>
  9334. <el-button type="primary" @click="dialogVisible4 = false">{{lang.ssConfirm}}</el-button>
  9335. </el-dialog>
  9336. <el-dialog
  9337. :title="lang.ssQa"
  9338. :visible.sync="answerDialogVisible"
  9339. :append-to-body="true"
  9340. width="800px"
  9341. :before-close="handleClose"
  9342. class="dialog_diy"
  9343. >
  9344. <div>
  9345. <div
  9346. style="
  9347. display: flex;
  9348. flex-wrap: nowrap;
  9349. flex-direction: column;
  9350. position: relative;
  9351. "
  9352. >
  9353. <div class="queTop" style="padding: 20px 0 20px 0">
  9354. <div class="question">
  9355. <img src="../../assets/icon/question.png" alt />
  9356. </div>
  9357. <div class="queTitle">
  9358. <div style="min-width: 60px">{{lang.ssAsk}}:</div>
  9359. <div>{{ answerQ }}</div>
  9360. </div>
  9361. </div>
  9362. <div class="ediBottom">
  9363. <textarea
  9364. rows="6"
  9365. class="binfo_input"
  9366. cols
  9367. style="width: 95%; height: 120px"
  9368. v-model="questionAnswer"
  9369. ></textarea>
  9370. </div>
  9371. </div>
  9372. </div>
  9373. <div slot="footer">
  9374. <el-button @click="answerDialogVisible = false">{{lang.ssCancel}}</el-button>
  9375. <el-button type="primary" @click="addQuestion">{{lang.ssSubmitAnswer}}</el-button>
  9376. </div>
  9377. </el-dialog>
  9378. <el-dialog
  9379. :title="lang.ssQa"
  9380. :visible.sync="answerDialogVisibleTeacher"
  9381. :append-to-body="true"
  9382. width="800px"
  9383. :before-close="handleClose"
  9384. class="dialog_diy"
  9385. >
  9386. <div>
  9387. <div class="w_name">
  9388. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  9389. </div>
  9390. <div
  9391. style="
  9392. display: flex;
  9393. flex-wrap: nowrap;
  9394. flex-direction: column;
  9395. position: relative;
  9396. "
  9397. >
  9398. <div class="queTop" style="padding: 20px 0 20px 0">
  9399. <div class="question">
  9400. <img src="../../assets/icon/question.png" alt />
  9401. </div>
  9402. <div class="queTitle">
  9403. <div style="min-width: 60px">{{lang.ssAsk}}:</div>
  9404. <div>{{ answerQ }}</div>
  9405. </div>
  9406. </div>
  9407. <div class="ediBottom">
  9408. <textarea
  9409. rows="6"
  9410. class="binfo_input"
  9411. cols
  9412. style="width: 95%; height: 120px"
  9413. v-model="questionAnswer"
  9414. ></textarea>
  9415. </div>
  9416. </div>
  9417. </div>
  9418. <div slot="footer">
  9419. <el-button @click="answerDialogVisibleTeacher = false">{{lang.ssCancel}}</el-button>
  9420. <el-button type="primary" @click="addQuestionTeacher">{{lang.ssSubmitAnswer}}</el-button>
  9421. </div>
  9422. </el-dialog>
  9423. <el-dialog
  9424. :title="lang.ssCountdown"
  9425. :visible.sync="timeDialogVisible"
  9426. :append-to-body="true"
  9427. width="800px"
  9428. :before-close="handleClose"
  9429. class="dialog_diy"
  9430. >
  9431. <div>
  9432. <div style="margin-bottom: 20px; color: #999">
  9433. {{lang.ssCountdownHint}}
  9434. </div>
  9435. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9436. </div>
  9437. <div slot="footer">
  9438. <el-button @click="timeDialogVisible = false">{{lang.ssCloseBtn}}</el-button>
  9439. </div>
  9440. </el-dialog>
  9441. <el-dialog
  9442. :title="lang.ssPermissionSetting"
  9443. :visible.sync="juriVisible"
  9444. :append-to-body="true"
  9445. width="400px"
  9446. :before-close="handleClose"
  9447. class="dialog_diy"
  9448. >
  9449. <div>
  9450. <div class="open_box">
  9451. <div class="switch_box">
  9452. <span>{{ lang.ssAllowViewAllHomework }}</span>
  9453. <el-switch
  9454. v-model="sIsOpen"
  9455. active-text=""
  9456. class="switchCss"
  9457. @change="updateSLook"
  9458. ></el-switch>
  9459. </div>
  9460. <div
  9461. class="switch_box"
  9462. v-if="
  9463. (courseDetail.userid == userid ||
  9464. (courseDetail.course_teacher &&
  9465. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  9466. "
  9467. >
  9468. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9469. <span>{{ lang.ssProhibitViewStage }}</span>
  9470. <el-switch
  9471. v-model="IsLookOpen"
  9472. active-text=""
  9473. class="switchCss"
  9474. @change="updateLookOpen"
  9475. ></el-switch>
  9476. </div>
  9477. <div class="switch_box" v-if="(courseDetail.userid == userid ||
  9478. (courseDetail.course_teacher &&
  9479. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen">
  9480. <span>{{ lang.ssEnableFollowMode }}</span>
  9481. <el-switch
  9482. v-model="IsFollow"
  9483. active-text=""
  9484. class="switchCss"
  9485. @change="updateFollow"
  9486. ></el-switch>
  9487. </div>
  9488. <div class="switch_box" v-if="courseDetail.userid == userid">
  9489. <span>{{ lang.ssAllowViewContent }}</span>
  9490. <el-switch
  9491. v-model="IsStulook"
  9492. active-text=""
  9493. class="switchCss"
  9494. @change="updateIsStulook"
  9495. ></el-switch>
  9496. </div>
  9497. </div>
  9498. </div>
  9499. <div slot="footer">
  9500. <el-button
  9501. style="background: #409efe; color: #fff"
  9502. @click="juriVisible = false"
  9503. >{{lang.ssCloseBtn}}</el-button
  9504. >
  9505. </div>
  9506. </el-dialog>
  9507. <el-dialog
  9508. :title="lang.ssViewVideo"
  9509. :visible.sync="videoVisible"
  9510. :append-to-body="true"
  9511. width="1000px"
  9512. :before-close="handleClose"
  9513. class="dialog_diy1"
  9514. >
  9515. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9516. <video-player
  9517. class="video-player vjs-custom-skin"
  9518. :playsinline="true"
  9519. :options="videoDetail"
  9520. @play="onPlayerPlay($event)"
  9521. style="width: 100%; height: 100%"
  9522. ></video-player>
  9523. </div>
  9524. <div slot="footer">
  9525. <el-button
  9526. style="background: #409efe; color: #fff"
  9527. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9528. >
  9529. {{ lang.ssCloseBtn }}</el-button
  9530. >
  9531. </div>
  9532. </el-dialog>
  9533. <el-dialog
  9534. :title="lang.ssViewDetails"
  9535. :visible.sync="commentDialogVisible"
  9536. :append-to-body="true"
  9537. width="800px"
  9538. :before-close="handleClose"
  9539. class="dialog_diy"
  9540. >
  9541. <div class="commentTop">
  9542. <div class="studentDetail">
  9543. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9544. <div class="nameAndTime">
  9545. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9546. <div>{{ commentDetail.time }}</div>
  9547. </div>
  9548. <div
  9549. class="returnBtn"
  9550. style="margin-left: auto; width: 80px"
  9551. v-if="
  9552. commentDetail.works &&
  9553. commentDetail.type == 0 &&
  9554. (tType == 1 || tType == 4)
  9555. "
  9556. @click="
  9557. showPicturePaint(
  9558. commentDetail.img ? commentDetail.img : commentDetail.works
  9559. )
  9560. "
  9561. >
  9562. {{ lang.ssTeacherAnnotation }}
  9563. </div>
  9564. </div>
  9565. <div
  9566. class="worksAnswer"
  9567. v-if="commentDetail.works && commentDetail.type == 2"
  9568. >
  9569. {{ JSON.parse(commentDetail.works)[0].answer }}
  9570. </div>
  9571. <div
  9572. class="worksAnswer"
  9573. v-if="commentDetail.works && commentDetail.type == 1"
  9574. >
  9575. <img
  9576. src="../../assets/teacherWork.png"
  9577. v-if="commentDetail.ateacher"
  9578. class="w_teachert"
  9579. />
  9580. <pdf
  9581. v-if="showPDF"
  9582. :pdfUrl="pptImgUrl"
  9583. style="width: 100%; height: 520px; overflow: auto"
  9584. :class="{ fullStyle: full }"
  9585. ></pdf>
  9586. <iframe
  9587. v-else
  9588. :src="pptImgUrl"
  9589. frameborder="0"
  9590. width="100%"
  9591. height="600"
  9592. :class="{ fullStyle: full }"
  9593. ></iframe>
  9594. </div>
  9595. <div
  9596. class="worksAnswer"
  9597. v-if="commentDetail.works && commentDetail.type == 0"
  9598. >
  9599. <img
  9600. src="../../assets/teacherWork.png"
  9601. v-if="commentDetail.ateacher"
  9602. class="w_teachert"
  9603. style="right: 105px"
  9604. />
  9605. <img
  9606. :src="commentDetail.works"
  9607. alt=""
  9608. @click="previewImg(commentDetail.works)"
  9609. />
  9610. </div>
  9611. <div
  9612. class="worksAnswer"
  9613. v-if="commentDetail.works && commentDetail.type == 3"
  9614. >
  9615. <img
  9616. src="../../assets/teacherWork.png"
  9617. v-if="commentDetail.ateacher"
  9618. class="w_teachert"
  9619. />
  9620. <video-player
  9621. class="video-player vjs-custom-skin"
  9622. :playsinline="true"
  9623. :options="videoDetail"
  9624. @play="onPlayerPlay($event)"
  9625. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9626. ></video-player>
  9627. </div>
  9628. <div
  9629. class="worksAnswer"
  9630. v-if="commentDetail.works && commentDetail.type == 10"
  9631. >
  9632. <div class="cont" v-html="commentDetail.works.text"></div>
  9633. </div>
  9634. <div
  9635. class="worksAnswer codeFileBox"
  9636. v-if="commentDetail.works && commentDetail.type == 12"
  9637. @click="downloadFile(commentDetail.works)"
  9638. >
  9639. <img src="../../assets/icon/codeFile.png" />
  9640. <div>{{ lang.ssClickDownloadFile }}</div>
  9641. </div>
  9642. <div
  9643. class="worksAnswer codeFileBox"
  9644. v-if="commentDetail.works && commentDetail.type == 15"
  9645. @click="
  9646. openCocoPi(
  9647. 57,
  9648. commentIndexJson.toolIndex,
  9649. commentDetail.userid,
  9650. commentDetail.sName
  9651. )
  9652. "
  9653. >
  9654. <img src="../../assets/icon/codeFile.png" />
  9655. <div>{{ lang.ssClickOpenCocoPi }}</div>
  9656. </div>
  9657. <div
  9658. class="worksAnswer"
  9659. v-if="commentDetail.works && commentDetail.type == 13"
  9660. >
  9661. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9662. </div>
  9663. <div
  9664. class="worksAnswer"
  9665. v-if="commentDetail.works && commentDetail.type == 4"
  9666. >
  9667. <div class="evalCss">
  9668. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  9669. <div class="middleBox" v-if="eScore.eStar">
  9670. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9671. <div class="nameAndrate">
  9672. <div>{{ e.value }}</div>
  9673. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9674. </div>
  9675. <div v-if="e.detail">{{ e.detail }}</div>
  9676. </div>
  9677. <div class="bz">
  9678. <textarea
  9679. disabled
  9680. rows="4"
  9681. class="pj"
  9682. style="
  9683. padding: 10px 5px;
  9684. width: 70%;
  9685. background: #f7f6f9;
  9686. font-size: 14px;
  9687. text-indent: 10px;
  9688. color: #000;
  9689. "
  9690. cols
  9691. v-model="eScore.eBzText"
  9692. :placeholder="lang.ssEnterEvalContent"
  9693. ></textarea>
  9694. </div>
  9695. </div>
  9696. </div>
  9697. </div>
  9698. <div class="comment">
  9699. <div class="commentList">
  9700. <div class="commentImg">
  9701. <img
  9702. @click="
  9703. isLikes(
  9704. commentDetail.wid,
  9705. userid,
  9706. 1,
  9707. null,
  9708. commentDetail.isLikes,
  9709. commentDetail.sName
  9710. )
  9711. "
  9712. :src="commentDetail.isLikes == true ? likes : noLikes"
  9713. alt=""
  9714. />
  9715. </div>
  9716. <div>{{ commentDetail.likesCount }}</div>
  9717. </div>
  9718. <div class="commentList">
  9719. <div class="commentImg">
  9720. <img src="../../assets/icon/comment/comment.png" alt="" />
  9721. </div>
  9722. <div>{{ commentDetail.commentCount }}</div>
  9723. </div>
  9724. </div>
  9725. <div class="drawPBox" v-if="commentDetail.img">
  9726. <span>{{ lang.ssTeacherAnnotation }}</span>
  9727. <img
  9728. :src="commentDetail.img"
  9729. alt=""
  9730. @click="previewImg(commentDetail.img)"
  9731. />
  9732. <span
  9733. class="deleteImg"
  9734. v-if="tType == 1 || tType == 4"
  9735. @click.stop="deletePicturePaint(commentDetail.wid)"
  9736. style="
  9737. font-size: 14px;
  9738. width: auto !important;
  9739. color: #b4b4b4;
  9740. top: unset;
  9741. bottom: 0;
  9742. border: none;
  9743. padding: 0;
  9744. height: auto !important;
  9745. margin: 0;
  9746. "
  9747. >{{lang.ssDelete}}</span
  9748. >
  9749. </div>
  9750. </div>
  9751. <div class="commentBox">
  9752. <div class="pl">{{lang.ssCommentLabel}}</div>
  9753. <div style="max-height: 200px; overflow: auto">
  9754. <div
  9755. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9756. style="padding: 10px 0 0 0"
  9757. >
  9758. <div
  9759. class="studentDetail"
  9760. style="padding-top: 10px"
  9761. v-for="(co, coIndex) in commentDetail.commentJson"
  9762. :key="coIndex"
  9763. >
  9764. <div class="tx" style="min-width: 50px">
  9765. <img src="../../assets/avatar.png" alt="" />
  9766. </div>
  9767. <div class="plPerson">
  9768. <div class="plName">
  9769. <div>{{ co.commentPeople }}</div>
  9770. <div style="margin-left: 5px">
  9771. {{ co.commentTime }}
  9772. </div>
  9773. <div
  9774. class="deleteComment"
  9775. v-if="userid == co.userid"
  9776. @click="deleteComment(co.wid)"
  9777. >
  9778. {{lang.ssDelete}}
  9779. </div>
  9780. </div>
  9781. <div class="plContent">{{ co.commentText }}</div>
  9782. </div>
  9783. </div>
  9784. </div>
  9785. <div v-else style="padding: 10px 0 0 0">{{ lang.ssNoComments }}</div>
  9786. </div>
  9787. </div>
  9788. <div style="margin-top: 10px">
  9789. <div class="displayBox">
  9790. <div
  9791. style="
  9792. color: #556db4;
  9793. font-size: 14px;
  9794. font-weight: bold;
  9795. padding-bottom: 10px;
  9796. "
  9797. >
  9798. {{ lang.ssEvaluation }}
  9799. </div>
  9800. <div class="easy_comment" v-if="false">
  9801. <div
  9802. v-for="(p, pIndex) in PlTextList"
  9803. :key="pIndex"
  9804. @click="fastText(p, 1)"
  9805. >
  9806. {{ p }}
  9807. </div>
  9808. </div>
  9809. </div>
  9810. <div>
  9811. <textarea
  9812. rows="3"
  9813. class="pj"
  9814. style="padding: 10px 5px"
  9815. cols
  9816. v-model="commentText"
  9817. :placeholder="lang.ssEnterComment"
  9818. ></textarea>
  9819. </div>
  9820. </div>
  9821. <div slot="footer">
  9822. <el-button
  9823. @click="
  9824. (commentDialogVisible = false),
  9825. (commentIndexJson = {}),
  9826. videoDetail.sources && videoDetail.sources[0]
  9827. ? (videoDetail.sources[0].src = '')
  9828. : ''
  9829. "
  9830. >{{lang.ssCancel}}</el-button
  9831. >
  9832. <el-button
  9833. type="primary"
  9834. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  9835. >{{lang.ssConfirm}}</el-button
  9836. >
  9837. </div>
  9838. </el-dialog>
  9839. <el-dialog
  9840. :title="lang.ssViewDoc"
  9841. :visible.sync="fullDialogVisible"
  9842. :append-to-body="true"
  9843. width="100%"
  9844. :before-close="handleClose"
  9845. :show-close="false"
  9846. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  9847. >
  9848. <div slot="title" class="header-title">
  9849. <div v-if="fulltype == 4" style="color: #fff">{{ lang.ssAIApplication }}</div>
  9850. <div v-else style="color: #fff">{{ lang.ssViewDoc }}</div>
  9851. <div
  9852. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  9853. style="
  9854. cursor: pointer;
  9855. position: absolute;
  9856. top: 20px;
  9857. right: 20px;
  9858. color: #fff;
  9859. "
  9860. >
  9861. {{ lang.ssExitFullscreen }}
  9862. </div>
  9863. </div>
  9864. <div style="height: 100%;position: relative;">
  9865. <el-button
  9866. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  9867. size="medium"
  9868. type="primary"
  9869. @click="
  9870. () => {
  9871. (fullDialogVisible = false),
  9872. changeSplitScreenBehavior({ code: 99 });
  9873. }
  9874. "
  9875. style="
  9876. cursor: pointer;
  9877. position: absolute;
  9878. top: 10px;
  9879. right: 20px;
  9880. color: #fff;
  9881. "
  9882. >
  9883. {{ lang.ssExitFullscreen }}
  9884. </el-button>
  9885. <div
  9886. class="wheel"
  9887. v-if="fulltype == 1"
  9888. style="
  9889. box-shadow: 0 0 6px 1px #f2f2f2;
  9890. height:100%;
  9891. width: 100%;
  9892. background: #f1f1f1;
  9893. "
  9894. >
  9895. <div class="title" style="width: 100%; box-sizing: border-box">
  9896. {{ lang.ssViewDoc }}
  9897. </div>
  9898. <el-form class="textBox" style="height: 90%">
  9899. <el-form-item class="textTitle">
  9900. <div style="font-size: 22px">
  9901. {{ fullUrl.name }}
  9902. </div>
  9903. </el-form-item>
  9904. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9905. <div
  9906. v-html="fullUrl.url"
  9907. class="textContent"
  9908. style="height: auto"
  9909. ></div>
  9910. </el-form>
  9911. </div>
  9912. <div
  9913. class="wheel"
  9914. v-else-if="
  9915. (fulltype == 2 || fulltype == 4) &&
  9916. fullUrl.indexOf(
  9917. 'https://view.officeapps.live.com/op/view.aspx?src='
  9918. ) != -1
  9919. "
  9920. style="width: 100%;height:100%; margin: 0 auto"
  9921. >
  9922. <iframe
  9923. style="width: 100%; height: 100%; border: none"
  9924. :src="fullUrl"
  9925. ></iframe>
  9926. </div>
  9927. <iframe
  9928. style="width: 100%; height: 100%; border: none"
  9929. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  9930. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo')!=-1)"
  9931. :src="fullUrl"
  9932. ></iframe>
  9933. <iframe
  9934. style="width: 100%; height: 100%; border: none"
  9935. security="restricted"
  9936. v-else-if="(fulltype == 2 || fulltype == 4)"
  9937. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9938. :src="fullUrl"
  9939. ></iframe>
  9940. <pdf
  9941. v-else-if="fulltype == 3"
  9942. :pdfUrl="fullUrl"
  9943. style="width: 100%; height: 100%; overflow: auto"
  9944. ></pdf>
  9945. <iframe
  9946. style="width: 100%; height: 100%; border: none"
  9947. security="restricted"
  9948. v-if="(fulltype == 16) && (fullUrl.indexOf('cocorobo')!=-1)"
  9949. :src="fullUrl"
  9950. ></iframe>
  9951. <iframe
  9952. style="width: 100%; height: 100%; border: none"
  9953. security="restricted"
  9954. v-else
  9955. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9956. :src="fullUrl"
  9957. ></iframe>
  9958. </div>
  9959. <!-- <div slot="footer">
  9960. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9961. </div> -->
  9962. </el-dialog>
  9963. <el-dialog
  9964. :title="lang.ssPersonalEval"
  9965. :visible.sync="studentEvalDialogVisible"
  9966. :append-to-body="true"
  9967. width="800px"
  9968. :before-close="handleClose"
  9969. class="dialog_diy"
  9970. >
  9971. <div class="evalCss">
  9972. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  9973. <div class="middleBox" v-if="eScore.eStar">
  9974. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9975. <div class="nameAndrate">
  9976. <div>{{ e.value }}</div>
  9977. <el-rate
  9978. v-model="eScore.eStar[eIndex]"
  9979. :disabled="isStar"
  9980. ></el-rate>
  9981. </div>
  9982. <div v-if="e.detail">{{ e.detail }}</div>
  9983. </div>
  9984. <div class="easy_comment" v-if="false">
  9985. <div
  9986. v-for="(p, pIndex) in PlTextList"
  9987. :key="pIndex"
  9988. @click="fastText(p, 2)"
  9989. >
  9990. {{ p }}
  9991. </div>
  9992. </div>
  9993. <div class="bz">
  9994. <textarea
  9995. :disabled="isStar"
  9996. rows="4"
  9997. class="pj"
  9998. style="
  9999. padding: 10px 5px;
  10000. width: 70%;
  10001. background: #f7f6f9;
  10002. font-size: 14px;
  10003. text-indent: 10px;
  10004. "
  10005. cols
  10006. v-model="eScore.eBzText"
  10007. :placeholder="lang.ssEnterEvalContent"
  10008. ></textarea>
  10009. </div>
  10010. </div>
  10011. </div>
  10012. <div slot="footer">
  10013. <el-button @click="studentEvalDialogVisible = false">{{lang.ssCancel}}</el-button>
  10014. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10015. >{{lang.ssConfirm}}</el-button
  10016. >
  10017. </div>
  10018. </el-dialog>
  10019. <el-dialog
  10020. :title="lang.ssPersonalEval"
  10021. :visible.sync="studentEvalDialogVisibleTeacher"
  10022. :append-to-body="true"
  10023. width="800px"
  10024. :before-close="handleClose"
  10025. class="dialog_diy"
  10026. >
  10027. <div class="w_name">
  10028. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  10029. </div>
  10030. <div class="evalCss">
  10031. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  10032. <div class="middleBox" v-if="eScore.eStar">
  10033. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10034. <div class="nameAndrate">
  10035. <div>{{ e.value }}</div>
  10036. <el-rate
  10037. v-model="eScore.eStar[eIndex]"
  10038. :disabled="isStar"
  10039. ></el-rate>
  10040. </div>
  10041. <div v-if="e.detail">{{ e.detail }}</div>
  10042. </div>
  10043. <div class="easy_comment" v-if="false">
  10044. <div
  10045. v-for="(p, pIndex) in PlTextList"
  10046. :key="pIndex"
  10047. @click="fastText(p, 2)"
  10048. >
  10049. {{ p }}
  10050. </div>
  10051. </div>
  10052. <div class="bz">
  10053. <textarea
  10054. :disabled="isStar"
  10055. rows="4"
  10056. class="pj"
  10057. style="
  10058. padding: 10px 5px;
  10059. width: 70%;
  10060. background: #f7f6f9;
  10061. font-size: 14px;
  10062. text-indent: 10px;
  10063. "
  10064. cols
  10065. v-model="eScore.eBzText"
  10066. :placeholder="lang.ssEnterEvalContent"
  10067. ></textarea>
  10068. </div>
  10069. </div>
  10070. </div>
  10071. <div slot="footer">
  10072. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10073. >{{lang.ssCancel}}</el-button
  10074. >
  10075. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10076. >{{lang.ssConfirm}}</el-button
  10077. >
  10078. </div>
  10079. </el-dialog>
  10080. <el-dialog
  10081. :title="lang.ssMatch"
  10082. :visible.sync="dialogVisibleSelect"
  10083. :append-to-body="true"
  10084. width="90%"
  10085. :before-close="handleClose"
  10086. class="dialog_diy dialog_diy3"
  10087. >
  10088. <div v-if="selectJson">
  10089. <div class="select_box2">
  10090. <div class="select_box2_title">
  10091. <div>{{ lang.ssMatch }}</div>
  10092. <div>{{ lang.ssSelectCorrespondingAnswer }}</div>
  10093. </div>
  10094. <div class="select_box2_box">
  10095. <div class="select_box2_img">
  10096. <img
  10097. :src="selectJson.url"
  10098. @click="previewImg(selectJson.url)"
  10099. alt=""
  10100. />
  10101. </div>
  10102. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10103. <div style="padding-top: 15px">
  10104. <div class="select_answer_title" v-if="isSelect">
  10105. {{ selectAnswer.stu }}
  10106. </div>
  10107. <div class="select_answer_title" v-else>
  10108. {{ lang.ssSelectAnswerByQuestion }}
  10109. </div>
  10110. <div
  10111. class="select_box2_answer_box"
  10112. v-for="(item2, checkIndex) in selectJson.select"
  10113. :key="checkIndex"
  10114. >
  10115. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10116. <el-select
  10117. :disabled="isSelect"
  10118. v-model="selectAnswer.answer[checkIndex]"
  10119. :placeholder="lang.ssSelectCorrectAnswer"
  10120. >
  10121. <el-option
  10122. v-for="(e, eIndex) in selectJson.select"
  10123. :key="eIndex"
  10124. :label="e"
  10125. :value="eIndex"
  10126. >
  10127. </el-option>
  10128. </el-select>
  10129. </div>
  10130. </div>
  10131. <div
  10132. class="rightAnswerCss"
  10133. v-if="isSelect && (tType == 1 || tType == 4)"
  10134. >
  10135. <div
  10136. v-for="(a, aIndex) in selectJson.answer"
  10137. :key="aIndex"
  10138. class="rightAnswer"
  10139. >
  10140. <div
  10141. v-if="selectAnswer.answer[aIndex] === a"
  10142. style="color: #767de1"
  10143. >
  10144. {{ lang.ssAnswerCorrect }}
  10145. </div>
  10146. <div v-else>{{ lang.ssAnswerWrong }}</div>
  10147. <div
  10148. style="margin-left: 10px"
  10149. v-if="selectAnswer.answer[aIndex] !== a"
  10150. >
  10151. {{ lang.ssCorrectAnswer }}
  10152. </div>
  10153. <div
  10154. :class="
  10155. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10156. "
  10157. >
  10158. {{ selectJson.select[a] }}
  10159. </div>
  10160. </div>
  10161. </div>
  10162. </div>
  10163. <div class="upAnswerCss">
  10164. <el-button
  10165. type="primary"
  10166. @click="addSelectAnswer"
  10167. v-if="!isSelect"
  10168. >{{ lang.ssSubmitAnswer }}</el-button
  10169. >
  10170. </div>
  10171. </div>
  10172. </div>
  10173. </div>
  10174. </el-dialog>
  10175. <el-dialog
  10176. :title="lang.ssMatch"
  10177. :visible.sync="dialogVisibleSelectTeacher"
  10178. :append-to-body="true"
  10179. width="90%"
  10180. :before-close="handleClose"
  10181. class="dialog_diy dialog_diy3"
  10182. >
  10183. <div v-if="selectJson">
  10184. <div class="w_name">
  10185. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  10186. </div>
  10187. <div class="select_box2">
  10188. <div class="select_box2_title">
  10189. <div>{{ lang.ssMatch }}</div>
  10190. <div>{{ lang.ssSelectCorrespondingAnswer }}</div>
  10191. </div>
  10192. <div class="select_box2_box">
  10193. <div class="select_box2_img">
  10194. <img
  10195. :src="selectJson.url"
  10196. @click="previewImg(selectJson.url)"
  10197. alt=""
  10198. />
  10199. </div>
  10200. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10201. <div style="padding-top: 15px">
  10202. <div class="select_answer_title" v-if="isSelect">
  10203. {{ selectAnswer.stu }}
  10204. </div>
  10205. <div class="select_answer_title" v-else>
  10206. {{ lang.ssSelectAnswerByQuestion }}
  10207. </div>
  10208. <div
  10209. class="select_box2_answer_box"
  10210. v-for="(item2, checkIndex) in selectJson.select"
  10211. :key="checkIndex"
  10212. >
  10213. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10214. <el-select
  10215. :disabled="isSelect"
  10216. v-model="selectAnswer.answer[checkIndex]"
  10217. :placeholder="lang.ssSelectCorrectAnswer"
  10218. >
  10219. <el-option
  10220. v-for="(e, eIndex) in selectJson.select"
  10221. :key="eIndex"
  10222. :label="e"
  10223. :value="eIndex"
  10224. >
  10225. </el-option>
  10226. </el-select>
  10227. </div>
  10228. </div>
  10229. <div
  10230. class="rightAnswerCss"
  10231. v-if="isSelect && (tType == 1 || tType == 4)"
  10232. >
  10233. <div
  10234. v-for="(a, aIndex) in selectJson.answer"
  10235. :key="aIndex"
  10236. class="rightAnswer"
  10237. >
  10238. <div
  10239. v-if="selectAnswer.answer[aIndex] === a"
  10240. style="color: #767de1"
  10241. >
  10242. {{ lang.ssAnswerCorrect }}
  10243. </div>
  10244. <div v-else>{{ lang.ssAnswerWrong }}</div>
  10245. <div
  10246. style="margin-left: 10px"
  10247. v-if="selectAnswer.answer[aIndex] !== a"
  10248. >
  10249. {{ lang.ssCorrectAnswer }}
  10250. </div>
  10251. <div
  10252. :class="
  10253. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10254. "
  10255. >
  10256. {{ selectJson.select[a] }}
  10257. </div>
  10258. </div>
  10259. </div>
  10260. </div>
  10261. <div class="upAnswerCss">
  10262. <el-button
  10263. type="primary"
  10264. @click="addSelectAnswerTeacher"
  10265. v-if="!isSelect"
  10266. >{{ lang.ssSubmitAnswer }}</el-button
  10267. >
  10268. </div>
  10269. </div>
  10270. </div>
  10271. </div>
  10272. </el-dialog>
  10273. <el-dialog
  10274. :title="lang.ssTeacherScoring"
  10275. :visible.sync="dialogVisibleScore"
  10276. :append-to-body="true"
  10277. width="800px"
  10278. :before-close="handleClose"
  10279. class="dialog_diy"
  10280. >
  10281. <div>
  10282. <div class="studentDetail">
  10283. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10284. <div class="nameAndTime">
  10285. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10286. <div>{{ commentDetail.time }}</div>
  10287. </div>
  10288. </div>
  10289. <div
  10290. class="worksAnswer"
  10291. v-if="commentDetail.works && commentDetail.type == 2"
  10292. >
  10293. {{ JSON.parse(commentDetail.works)[0].answer }}
  10294. </div>
  10295. <div
  10296. class="worksAnswer"
  10297. v-if="commentDetail.works && commentDetail.type == 1"
  10298. >
  10299. <pdf
  10300. v-if="showPDF"
  10301. :pdfUrl="pptImgUrl"
  10302. style="width: 100%; height: 520px; overflow: auto"
  10303. :class="{ fullStyle: full }"
  10304. ></pdf>
  10305. <iframe
  10306. v-else
  10307. :src="pptImgUrl"
  10308. frameborder="0"
  10309. width="100%"
  10310. height="600"
  10311. :class="{ fullStyle: full }"
  10312. ></iframe>
  10313. </div>
  10314. <div
  10315. class="worksAnswer"
  10316. v-if="commentDetail.works && commentDetail.type == 0"
  10317. >
  10318. <img
  10319. :src="commentDetail.works"
  10320. alt=""
  10321. @click="previewImg(commentDetail.works)"
  10322. />
  10323. </div>
  10324. <div
  10325. class="worksAnswer"
  10326. v-if="commentDetail.works && commentDetail.type == 3"
  10327. >
  10328. <video-player
  10329. class="video-player vjs-custom-skin"
  10330. :playsinline="true"
  10331. :options="videoDetail"
  10332. @play="onPlayerPlay($event)"
  10333. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10334. ></video-player>
  10335. </div>
  10336. <div
  10337. class="worksAnswer codeFileBox"
  10338. v-if="commentDetail.works && commentDetail.type == 12"
  10339. @click="downloadFile(commentDetail.works)"
  10340. >
  10341. <img src="../../assets/icon/codeFile.png" />
  10342. <div>{{ lang.ssClickDownloadFile }}</div>
  10343. </div>
  10344. <div
  10345. class="worksAnswer codeFileBox"
  10346. v-if="commentDetail.works && commentDetail.type == 15"
  10347. @click="
  10348. openCocoPi(
  10349. 57,
  10350. commentIndexJson.toolIndex,
  10351. commentDetail.userid,
  10352. commentDetail.sName
  10353. )
  10354. "
  10355. >
  10356. <img src="../../assets/icon/codeFile.png" />
  10357. <div>{{ lang.ssClickOpenCocoPi }}</div>
  10358. </div>
  10359. <div
  10360. class="worksAnswer"
  10361. v-if="commentDetail.works && commentDetail.type == 13"
  10362. >
  10363. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10364. </div>
  10365. <div class="scoreBox">
  10366. <span class="t">{{ lang.ssEnterScore }}</span>
  10367. <el-input-number
  10368. :disabled="courseDetail.userid != userid"
  10369. v-model="wScore"
  10370. :controls="false"
  10371. :min="0"
  10372. :max="100"
  10373. ></el-input-number>
  10374. </div>
  10375. <div class="scoreDetailBox">
  10376. <span class="t">{{ lang.ssScoringComment }}</span>
  10377. <el-input
  10378. type="textarea"
  10379. :rows="5"
  10380. :disabled="courseDetail.userid != userid"
  10381. resize="none"
  10382. v-model="scoreDetail"
  10383. :placeholder="lang.ssEnterStudentEvaluation"
  10384. >
  10385. </el-input>
  10386. </div>
  10387. </div>
  10388. <span slot="footer" class="dialog-footer">
  10389. <el-button
  10390. @click="
  10391. (dialogVisibleScore = false),
  10392. (commentIndexJson = {}),
  10393. videoDetail.sources && videoDetail.sources[0]
  10394. ? (videoDetail.sources[0].src = '')
  10395. : ''
  10396. "
  10397. >{{lang.ssCancel}}</el-button
  10398. >
  10399. <el-button
  10400. type="primary"
  10401. v-if="courseDetail.userid == userid"
  10402. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10403. >{{lang.ssConfirm}}
  10404. </el-button>
  10405. </span>
  10406. </el-dialog>
  10407. <el-dialog
  10408. :title="lang.ssSort"
  10409. :visible.sync="dialogVisibleSentence"
  10410. :append-to-body="true"
  10411. width="1000px"
  10412. :before-close="handleClose"
  10413. class="dialog_diy dialog_diy3"
  10414. >
  10415. <div>
  10416. <div class="sentenBox">
  10417. <div
  10418. v-for="(st, stIndex) in sentenceList"
  10419. :key="stIndex"
  10420. style="padding-bottom: 20px"
  10421. >
  10422. <div
  10423. style="padding: 15px 0 10px 20px"
  10424. class="sentenceTitle"
  10425. :index="stIndex + 1"
  10426. >
  10427. {{ lang.ssQuestion }}{{ stIndex + 1 }}:{{ lang.ssSelectCorrectOrder }}
  10428. </div>
  10429. <div class="cardList" v-if="st.chooseSenList">
  10430. <div class="cardBox">
  10431. <div
  10432. v-for="(r, rIndex) in st.chooseSenList"
  10433. :key="rIndex"
  10434. @click="returnCard(r, stIndex, rIndex)"
  10435. >
  10436. <el-tooltip
  10437. class="item"
  10438. effect="light"
  10439. :content="r"
  10440. placement="top"
  10441. v-if="r != '' && r != undefined"
  10442. >
  10443. <div
  10444. :class="{
  10445. isCard: r,
  10446. isChooseCard: r == '' || r == undefined,
  10447. }"
  10448. >
  10449. <div>{{ r }}</div>
  10450. </div>
  10451. </el-tooltip>
  10452. <div
  10453. :class="{
  10454. isCard: r,
  10455. isChooseCard: r == '' || r == undefined,
  10456. }"
  10457. v-else
  10458. >
  10459. <div>{{ r }}</div>
  10460. </div>
  10461. </div>
  10462. </div>
  10463. </div>
  10464. <div class="cardList" v-if="st.addChangeSen">
  10465. <div class="cardBox">
  10466. <div
  10467. v-for="(s, sIndex) in st.addChangeSen"
  10468. :key="sIndex"
  10469. @click="setRightAnswer(s, stIndex, sIndex)"
  10470. >
  10471. <el-tooltip
  10472. class="item"
  10473. effect="light"
  10474. :content="s"
  10475. placement="top"
  10476. v-if="s != '' && s != undefined"
  10477. >
  10478. <div
  10479. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10480. >
  10481. <div>{{ s }}</div>
  10482. </div>
  10483. </el-tooltip>
  10484. <div
  10485. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10486. v-else
  10487. >
  10488. <div>{{ s }}</div>
  10489. </div>
  10490. </div>
  10491. </div>
  10492. </div>
  10493. </div>
  10494. </div>
  10495. </div>
  10496. <span slot="footer" class="dialog-footer">
  10497. <el-button @click="dialogVisibleSentence = false">{{lang.ssCancel}}</el-button>
  10498. <el-button type="primary" @click="addSenWorks">{{lang.ssConfirm}}</el-button>
  10499. </span>
  10500. </el-dialog>
  10501. <el-dialog
  10502. :title="lang.ssSort"
  10503. :visible.sync="dialogVisibleSentenceTeacher"
  10504. :append-to-body="true"
  10505. width="1000px"
  10506. :before-close="handleClose"
  10507. class="dialog_diy dialog_diy3"
  10508. >
  10509. <div>
  10510. <div class="w_name">
  10511. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  10512. </div>
  10513. <div class="sentenBox">
  10514. <div
  10515. v-for="(st, stIndex) in sentenceList"
  10516. :key="stIndex"
  10517. style="padding-bottom: 20px"
  10518. >
  10519. <div
  10520. style="padding: 15px 0 10px 20px"
  10521. class="sentenceTitle"
  10522. :index="stIndex + 1"
  10523. >
  10524. {{ lang.ssQuestion }}{{ stIndex + 1 }}:{{ lang.ssSelectCorrectOrder }}
  10525. </div>
  10526. <div class="cardList" v-if="st.chooseSenList">
  10527. <div class="cardBox">
  10528. <div
  10529. v-for="(r, rIndex) in st.chooseSenList"
  10530. :key="rIndex"
  10531. @click="returnCard(r, stIndex, rIndex)"
  10532. >
  10533. <el-tooltip
  10534. class="item"
  10535. effect="light"
  10536. :content="r"
  10537. placement="top"
  10538. v-if="r != '' && r != undefined"
  10539. >
  10540. <div
  10541. :class="{
  10542. isCard: r,
  10543. isChooseCard: r == '' || r == undefined,
  10544. }"
  10545. >
  10546. <div>{{ r }}</div>
  10547. </div>
  10548. </el-tooltip>
  10549. <div
  10550. :class="{
  10551. isCard: r,
  10552. isChooseCard: r == '' || r == undefined,
  10553. }"
  10554. v-else
  10555. >
  10556. <div>{{ r }}</div>
  10557. </div>
  10558. </div>
  10559. </div>
  10560. </div>
  10561. <div class="cardList" v-if="st.addChangeSen">
  10562. <div class="cardBox">
  10563. <div
  10564. v-for="(s, sIndex) in st.addChangeSen"
  10565. :key="sIndex"
  10566. @click="setRightAnswer(s, stIndex, sIndex)"
  10567. >
  10568. <el-tooltip
  10569. class="item"
  10570. effect="light"
  10571. :content="s"
  10572. placement="top"
  10573. v-if="s != '' && s != undefined"
  10574. >
  10575. <div
  10576. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10577. >
  10578. <div>{{ s }}</div>
  10579. </div>
  10580. </el-tooltip>
  10581. <div
  10582. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10583. v-else
  10584. >
  10585. <div>{{ s }}</div>
  10586. </div>
  10587. </div>
  10588. </div>
  10589. </div>
  10590. </div>
  10591. </div>
  10592. </div>
  10593. <span slot="footer" class="dialog-footer">
  10594. <el-button @click="dialogVisibleSentenceTeacher = false"
  10595. >{{lang.ssCancel}}</el-button
  10596. >
  10597. <el-button type="primary" @click="addSenWorksTeacher">{{lang.ssConfirm}}</el-button>
  10598. </span>
  10599. </el-dialog>
  10600. <el-dialog
  10601. :title="lang.ssSort"
  10602. :visible.sync="dialogVisibleSentence1"
  10603. :append-to-body="true"
  10604. width="1000px"
  10605. :before-close="handleClose"
  10606. class="dialog_diy dialog_diy3"
  10607. >
  10608. <div>
  10609. <div class="sentenBox">
  10610. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10611. {{ sentenceList1.stuName }}{{ lang.ssHomeworkOf }}
  10612. </div>
  10613. <div
  10614. v-for="(st, stIndex) in sentenceList1"
  10615. :key="stIndex"
  10616. style="padding-bottom: 20px"
  10617. >
  10618. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10619. {{ lang.ssQuestionNum.replace(/\*/g, stIndex + 1) }}
  10620. </div>
  10621. <div class="isWrong">
  10622. <div class="cardList1" v-if="st.chooseSenList">
  10623. <div class="cardBox">
  10624. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10625. <el-tooltip
  10626. class="item"
  10627. effect="light"
  10628. :content="s"
  10629. placement="top"
  10630. >
  10631. <div class="isCard">
  10632. <div>{{ s }}</div>
  10633. </div>
  10634. </el-tooltip>
  10635. </div>
  10636. </div>
  10637. <div class="cardAnswerBox">
  10638. {{ lang.ssFormSentence }}{{ st.chooseSenList.join(" ") }}
  10639. </div>
  10640. </div>
  10641. <div v-if="tType == 2" class="isTj">
  10642. <div class="isTjImg">
  10643. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10644. </div>
  10645. <div>{{ lang.ssSubmitted }}</div>
  10646. </div>
  10647. <div
  10648. class="answerRight isTj"
  10649. v-if="
  10650. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10651. (tType == 1 || tType == 4)
  10652. "
  10653. >
  10654. <div class="isTjImg">
  10655. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10656. </div>
  10657. <div>{{ lang.ssAnswerCorrect }}</div>
  10658. </div>
  10659. <div
  10660. class="answerRight isTj"
  10661. v-if="
  10662. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10663. (tType == 1 || tType == 4)
  10664. "
  10665. >
  10666. <div class="isTjImg">
  10667. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10668. </div>
  10669. <div>{{ lang.ssAnswerWrong }}</div>
  10670. </div>
  10671. </div>
  10672. <div
  10673. v-if="
  10674. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10675. (tType == 1 || tType == 4)
  10676. "
  10677. >
  10678. <div style="padding: 15px 0 10px 20px">{{ lang.ssCorrectAnswerBelow }}</div>
  10679. <div
  10680. class="cardList"
  10681. v-if="st.rightAnswer"
  10682. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10683. >
  10684. <div class="cardBox">
  10685. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10686. <el-tooltip
  10687. class="item"
  10688. effect="light"
  10689. :content="r"
  10690. placement="top"
  10691. >
  10692. <div class="isCard1">
  10693. <div>{{ r }}</div>
  10694. </div>
  10695. </el-tooltip>
  10696. </div>
  10697. </div>
  10698. <div class="cardAnswerBox">
  10699. {{ lang.ssFormSentence }}{{ st.rightAnswer.join(" ") }}
  10700. </div>
  10701. </div>
  10702. </div>
  10703. </div>
  10704. </div>
  10705. </div>
  10706. <span slot="footer" class="dialog-footer">
  10707. <el-button @click="dialogVisibleSentence1 = false">{{lang.ssCancel}}</el-button>
  10708. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10709. >{{lang.ssConfirm}}</el-button
  10710. >
  10711. </span>
  10712. </el-dialog>
  10713. <el-dialog
  10714. :title="lang.ssTeacherSubmitWork"
  10715. :visible.sync="dialogVisibleWorks"
  10716. :append-to-body="true"
  10717. width="500px"
  10718. :before-close="handleClose"
  10719. class="dialog_change"
  10720. >
  10721. <div class="marginT">
  10722. <div class="w_name">
  10723. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  10724. </div>
  10725. <div>{{ lang.ssUpFile }}</div>
  10726. <div style="display: flex; gap: 10px">
  10727. <div
  10728. class="chapter_add"
  10729. @click="addImg($event)"
  10730. v-if="studyJuri[0].cover.length == 0"
  10731. >
  10732. <div class="up_photo">
  10733. <img src="../../assets/icon/uploadImg.png" alt />
  10734. </div>
  10735. <!-- <input
  10736. type="file"
  10737. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10738. style="display: none"
  10739. @change="beforeUpload1($event, 1)"
  10740. /> -->
  10741. <input
  10742. type="file"
  10743. accept="*"
  10744. style="display: none"
  10745. @change="beforeUpload1($event, 1)"
  10746. />
  10747. <!-- <input
  10748. type="file"
  10749. accept="image/*"
  10750. capture="camera"
  10751. style="display: none"
  10752. @change="beforeUpload1($event, 1)"
  10753. /> -->
  10754. </div>
  10755. <div
  10756. class="chapter_add"
  10757. @click="addImg($event)"
  10758. v-if="studyJuri[0].cover.length == 0"
  10759. >
  10760. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  10761. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  10762. </div>
  10763. <input
  10764. type="file"
  10765. accept="image/*"
  10766. capture="camera"
  10767. style="display: none"
  10768. @change="beforeUpload1($event, 1)"
  10769. />
  10770. </div>
  10771. </div>
  10772. <!-- capture="camera" -->
  10773. <div
  10774. class="chapter_add"
  10775. style="
  10776. display: flex;
  10777. width: 100%;
  10778. flex-direction: row;
  10779. flex-wrap: wrap;
  10780. justify-content: flex-start;
  10781. padding: 15px 0;
  10782. "
  10783. v-if="studyJuri[0].cover.length > 0"
  10784. >
  10785. <div class="upCover">
  10786. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10787. <img :src="word" alt v-else-if="fileType == 1" />
  10788. <img :src="video" alt v-else-if="fileType == 2" />
  10789. <img :src="word2" alt v-else-if="fileType == 3" />
  10790. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10791. <div class="deleteWord" @click="clean(1)">
  10792. <img src="../../assets/icon/deleteWorks.png" alt />
  10793. </div>
  10794. </div>
  10795. </div>
  10796. </div>
  10797. <div
  10798. class="upload_send"
  10799. @click="addCourseWorksTeacher(taskCount)"
  10800. v-if="!proVisible"
  10801. >
  10802. {{ lang.ssSubmit }}
  10803. </div>
  10804. </el-dialog>
  10805. <ImgDraw
  10806. :drawShow="drawShow"
  10807. @closeDraw="closeDraw"
  10808. @addImgDraw="addImgDraw"
  10809. :bg="bg"
  10810. ></ImgDraw>
  10811. <el-dialog
  10812. :title="lang.ssTable"
  10813. :visible.sync="dialogVisibleTable"
  10814. :append-to-body="true"
  10815. width="95%"
  10816. :before-close="handleClose"
  10817. class="dialog_diy"
  10818. >
  10819. <el-form>
  10820. <div
  10821. style="
  10822. display: flex;
  10823. align-items: center;
  10824. justify-content: space-between;
  10825. "
  10826. >
  10827. <span>{{ lang.ssTableContent }}</span>
  10828. <el-button type="primary" size="small" @click="returnTableText"
  10829. >{{ lang.ssRestoreTemplate }}</el-button
  10830. >
  10831. </div>
  10832. <Table
  10833. v-model="tableJson.text"
  10834. @change="change"
  10835. v-if="dialogVisibleTable"
  10836. ></Table>
  10837. </el-form>
  10838. <span slot="footer" class="dialog-footer">
  10839. <el-button @click="dialogVisibleTable = false">{{lang.ssCancel}}</el-button>
  10840. <el-button type="primary" @click="addTableWorks">{{lang.ssConfirm}}</el-button>
  10841. </span>
  10842. </el-dialog>
  10843. <el-dialog
  10844. :title="lang.ssTable"
  10845. :visible.sync="dialogVisibleTableTeacher"
  10846. :append-to-body="true"
  10847. width="95%"
  10848. :before-close="handleClose"
  10849. class="dialog_diy"
  10850. >
  10851. <el-form>
  10852. <div class="w_name">
  10853. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  10854. </div>
  10855. <div>{{ lang.ssTableContent }}</div>
  10856. <Table
  10857. v-model="tableJson.text"
  10858. @change="change"
  10859. v-if="dialogVisibleTableTeacher"
  10860. ></Table>
  10861. </el-form>
  10862. <span slot="footer" class="dialog-footer">
  10863. <el-button @click="dialogVisibleTableTeacher = false">{{lang.ssCancel}}</el-button>
  10864. <el-button type="primary" @click="addTableWorksTeacher">{{ lang.ssConfirm }}</el-button>
  10865. </span>
  10866. </el-dialog>
  10867. <el-dialog
  10868. :title="lang.ssDocument"
  10869. :visible.sync="dialogVisibleWord"
  10870. :append-to-body="true"
  10871. width="95%"
  10872. :before-close="handleClose"
  10873. class="dialog_diy"
  10874. >
  10875. <el-form>
  10876. <div
  10877. style="
  10878. display: flex;
  10879. align-items: center;
  10880. justify-content: space-between;
  10881. "
  10882. >
  10883. <span>{{ lang.ssDocumentContent }}</span>
  10884. <el-button type="primary" size="small" @click="returnWordText"
  10885. >{{ lang.ssRestoreTemplate }}</el-button
  10886. >
  10887. </div>
  10888. <editor-bar
  10889. v-model="wordJson.text"
  10890. v-if="dialogVisibleWord"
  10891. ></editor-bar>
  10892. </el-form>
  10893. <span slot="footer" class="dialog-footer">
  10894. <el-button @click="dialogVisibleWord = false">{{lang.ssCancel}}</el-button>
  10895. <el-button type="primary" @click="addWordWorks">{{ lang.ssConfirm }}</el-button>
  10896. </span>
  10897. </el-dialog>
  10898. <el-dialog
  10899. :title="lang.ssDocument"
  10900. :visible.sync="dialogVisibleWordTeacher"
  10901. :append-to-body="true"
  10902. width="95%"
  10903. :before-close="handleClose"
  10904. class="dialog_diy"
  10905. >
  10906. <el-form>
  10907. <div class="w_name">
  10908. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  10909. </div>
  10910. <div>{{ lang.ssDocumentContent }}</div>
  10911. <editor-bar
  10912. v-model="wordJson.text"
  10913. v-if="dialogVisibleWordTeacher"
  10914. ></editor-bar>
  10915. </el-form>
  10916. <span slot="footer" class="dialog-footer">
  10917. <el-button @click="dialogVisibleWordTeacher = false">{{lang.ssCancel}}</el-button>
  10918. <el-button type="primary" @click="addWordWorksTeacher">{{ lang.ssConfirm }}</el-button>
  10919. </span>
  10920. </el-dialog>
  10921. <el-dialog
  10922. :title="lang.ssTable"
  10923. :visible.sync="dialogVisibleTable2"
  10924. :append-to-body="true"
  10925. width="95%"
  10926. :before-close="handleClose"
  10927. class="dialog_diy"
  10928. >
  10929. <el-form>
  10930. <div class="cont" v-html="tableJson.text"></div>
  10931. </el-form>
  10932. <span slot="footer" class="dialog-footer">
  10933. <el-button @click="dialogVisibleTable2 = false">{{ lang.ssCloseBtn }}</el-button>
  10934. </span>
  10935. </el-dialog>
  10936. <el-dialog
  10937. :title="lang.ssDocument"
  10938. :visible.sync="dialogVisibleTable3"
  10939. :append-to-body="true"
  10940. width="95%"
  10941. :before-close="handleClose"
  10942. class="dialog_diy"
  10943. >
  10944. <el-form>
  10945. <div class="cont" v-html="tableJson.text"></div>
  10946. </el-form>
  10947. <span slot="footer" class="dialog-footer">
  10948. <el-button @click="dialogVisibleTable3 = false">{{ lang.ssCloseBtn }}</el-button>
  10949. </span>
  10950. </el-dialog>
  10951. <el-dialog
  10952. :title="lang.ssGroupSetting"
  10953. :visible.sync="dialogVisibleGroup"
  10954. :append-to-body="true"
  10955. width="95%"
  10956. :before-close="handleClose"
  10957. class="dialog_diy"
  10958. >
  10959. <div v-if="dialogVisibleGroup">
  10960. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10961. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10962. {{ lang.ssOpenSeatTip }}
  10963. </div>
  10964. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10965. @click="lockChair">
  10966. 锁定位置
  10967. </div>
  10968. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10969. 解锁位置
  10970. </div> -->
  10971. <div class="group_switch">
  10972. <span>开放选座</span>
  10973. <el-switch
  10974. v-model="islock"
  10975. active-text=""
  10976. class="switchCss"
  10977. @change="lockChair"
  10978. ></el-switch>
  10979. </div>
  10980. <div
  10981. type="primary"
  10982. @click="updateGroup"
  10983. class="returnBtn"
  10984. style="background-color: #225bc7"
  10985. >
  10986. {{ lang.ssGroupSetting }}
  10987. </div>
  10988. </div>
  10989. <div>
  10990. <div
  10991. class="g_d_box"
  10992. v-if="groupJson.group && groupStudent[toolindex]"
  10993. >
  10994. <div
  10995. class="g_d_group"
  10996. v-for="(g, gindex) in groupJson.group"
  10997. :key="gindex"
  10998. >
  10999. <div class="g_d_group_chair">
  11000. <div v-if="groupJson.number > 1">
  11001. <span
  11002. :class="{
  11003. isChair:
  11004. groupStudent[toolindex][gindex] &&
  11005. groupStudent[toolindex][gindex][0],
  11006. updateChair:
  11007. courseDetail.userid == userid &&
  11008. groupStudent[toolindex][gindex] &&
  11009. groupStudent[toolindex][gindex][0] &&
  11010. groupJson.islock == 2,
  11011. }"
  11012. ><span
  11013. class="updateChairBtn"
  11014. @click="
  11015. updateGroupChair(
  11016. groupStudent[toolindex][gindex] &&
  11017. groupStudent[toolindex][gindex][0]
  11018. )
  11019. "
  11020. >{{ lang.ssModify }}</span
  11021. ></span
  11022. ><span>{{
  11023. groupStudent[toolindex][gindex] &&
  11024. groupStudent[toolindex][gindex][0]
  11025. ? groupStudent[toolindex][gindex] &&
  11026. groupStudent[toolindex][gindex][0].name
  11027. : lang.ssEmptyPosition
  11028. }}</span>
  11029. </div>
  11030. <div v-if="groupJson.number > 4">
  11031. <span
  11032. :class="{
  11033. isChair:
  11034. groupStudent[toolindex][gindex] &&
  11035. groupStudent[toolindex][gindex][4],
  11036. updateChair:
  11037. courseDetail.userid == userid &&
  11038. groupStudent[toolindex][gindex] &&
  11039. groupStudent[toolindex][gindex][4] &&
  11040. groupJson.islock == 2,
  11041. }"
  11042. ><span
  11043. class="updateChairBtn"
  11044. @click="
  11045. updateGroupChair(
  11046. groupStudent[toolindex][gindex] &&
  11047. groupStudent[toolindex][gindex][4]
  11048. )
  11049. "
  11050. >{{ lang.ssModify }}</span
  11051. ></span
  11052. ><span>{{
  11053. groupStudent[toolindex][gindex] &&
  11054. groupStudent[toolindex][gindex][4]
  11055. ? groupStudent[toolindex][gindex] &&
  11056. groupStudent[toolindex][gindex][4].name
  11057. : lang.ssEmptyPosition
  11058. }}</span>
  11059. </div>
  11060. <div v-if="groupJson.number > 8">
  11061. <span
  11062. :class="{
  11063. isChair:
  11064. groupStudent[toolindex][gindex] &&
  11065. groupStudent[toolindex][gindex][8],
  11066. updateChair:
  11067. courseDetail.userid == userid &&
  11068. groupStudent[toolindex][gindex] &&
  11069. groupStudent[toolindex][gindex][8] &&
  11070. groupJson.islock == 2,
  11071. }"
  11072. ><span
  11073. class="updateChairBtn"
  11074. @click="
  11075. updateGroupChair(
  11076. groupStudent[toolindex][gindex] &&
  11077. groupStudent[toolindex][gindex][8]
  11078. )
  11079. "
  11080. >{{ lang.ssModify }}</span
  11081. ></span
  11082. ><span>{{
  11083. groupStudent[toolindex][gindex] &&
  11084. groupStudent[toolindex][gindex][8]
  11085. ? groupStudent[toolindex][gindex] &&
  11086. groupStudent[toolindex][gindex][8].name
  11087. : lang.ssEmptyPosition
  11088. }}</span>
  11089. </div>
  11090. </div>
  11091. <div class="g_d_group_tableBox">
  11092. <div class="g_d_group_chair2">
  11093. <div v-if="groupJson.number > 2">
  11094. <span
  11095. :class="{
  11096. isChair:
  11097. groupStudent[toolindex][gindex] &&
  11098. groupStudent[toolindex][gindex][2],
  11099. updateChair:
  11100. courseDetail.userid == userid &&
  11101. groupStudent[toolindex][gindex] &&
  11102. groupStudent[toolindex][gindex][2] &&
  11103. groupJson.islock == 2,
  11104. }"
  11105. ><span
  11106. class="updateChairBtn"
  11107. @click="
  11108. updateGroupChair(
  11109. groupStudent[toolindex][gindex] &&
  11110. groupStudent[toolindex][gindex][2]
  11111. )
  11112. "
  11113. >{{ lang.ssModify }}</span
  11114. ></span
  11115. ><span>{{
  11116. groupStudent[toolindex][gindex] &&
  11117. groupStudent[toolindex][gindex][2]
  11118. ? groupStudent[toolindex][gindex] &&
  11119. groupStudent[toolindex][gindex][2].name
  11120. : lang.ssEmptyPosition
  11121. }}</span>
  11122. </div>
  11123. <div v-if="groupJson.number > 6">
  11124. <span
  11125. :class="{
  11126. isChair:
  11127. groupStudent[toolindex][gindex] &&
  11128. groupStudent[toolindex][gindex][6],
  11129. updateChair:
  11130. courseDetail.userid == userid &&
  11131. groupStudent[toolindex][gindex] &&
  11132. groupStudent[toolindex][gindex][6] &&
  11133. groupJson.islock == 2,
  11134. }"
  11135. ><span
  11136. class="updateChairBtn"
  11137. @click="
  11138. updateGroupChair(
  11139. groupStudent[toolindex][gindex] &&
  11140. groupStudent[toolindex][gindex][6]
  11141. )
  11142. "
  11143. >{{ lang.ssModify }}</span
  11144. ></span
  11145. ><span>{{
  11146. groupStudent[toolindex][gindex] &&
  11147. groupStudent[toolindex][gindex][6]
  11148. ? groupStudent[toolindex][gindex] &&
  11149. groupStudent[toolindex][gindex][6].name
  11150. : lang.ssEmptyPosition
  11151. }}</span>
  11152. </div>
  11153. </div>
  11154. <div class="g_d_group_table">
  11155. <div>
  11156. {{ g.name }}
  11157. </div>
  11158. <div>
  11159. <div
  11160. v-if="
  11161. courseDetail.userid == userid && groupJson.islock == 2
  11162. "
  11163. @click="deleteGroupChair(gindex)"
  11164. >
  11165. {{ lang.ssRemoveGroupMember }}
  11166. </div>
  11167. <div
  11168. @click="selectGroup(gindex)"
  11169. v-else-if="
  11170. groupStudentUid[toolindex] &&
  11171. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11172. "
  11173. >
  11174. {{ lang.ssJoinGroup }}
  11175. </div>
  11176. <div
  11177. @click="
  11178. exitGroup(
  11179. groupStudent[toolindex][gindex] &&
  11180. groupStudent[toolindex][gindex][
  11181. groupStudentUid[toolindex][gindex].indexOf(userid)
  11182. ].id
  11183. )
  11184. "
  11185. v-else-if="
  11186. groupStudentUid[toolindex] &&
  11187. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11188. "
  11189. >
  11190. {{ lang.ssExitGroup }}
  11191. </div>
  11192. </div>
  11193. </div>
  11194. <div class="g_d_group_chair2">
  11195. <div v-if="groupJson.number > 3">
  11196. <span
  11197. :class="{
  11198. isChair:
  11199. groupStudent[toolindex][gindex] &&
  11200. groupStudent[toolindex][gindex][3],
  11201. updateChair:
  11202. courseDetail.userid == userid &&
  11203. groupStudent[toolindex][gindex] &&
  11204. groupStudent[toolindex][gindex][3] &&
  11205. groupJson.islock == 2,
  11206. }"
  11207. ><span
  11208. class="updateChairBtn"
  11209. @click="
  11210. updateGroupChair(
  11211. groupStudent[toolindex][gindex] &&
  11212. groupStudent[toolindex][gindex][3]
  11213. )
  11214. "
  11215. >{{ lang.ssModify }}</span
  11216. ></span
  11217. ><span>{{
  11218. groupStudent[toolindex][gindex] &&
  11219. groupStudent[toolindex][gindex][3]
  11220. ? groupStudent[toolindex][gindex] &&
  11221. groupStudent[toolindex][gindex][3].name
  11222. : lang.ssEmptyPosition
  11223. }}</span>
  11224. </div>
  11225. <div v-if="groupJson.number > 7">
  11226. <span
  11227. :class="{
  11228. isChair:
  11229. groupStudent[toolindex][gindex] &&
  11230. groupStudent[toolindex][gindex][7],
  11231. updateChair:
  11232. courseDetail.userid == userid &&
  11233. groupStudent[toolindex][gindex] &&
  11234. groupStudent[toolindex][gindex][7] &&
  11235. groupJson.islock == 2,
  11236. }"
  11237. ><span
  11238. class="updateChairBtn"
  11239. @click="
  11240. updateGroupChair(
  11241. groupStudent[toolindex][gindex] &&
  11242. groupStudent[toolindex][gindex][7]
  11243. )
  11244. "
  11245. >{{ lang.ssModify }}</span
  11246. ></span
  11247. ><span>{{
  11248. groupStudent[toolindex][gindex] &&
  11249. groupStudent[toolindex][gindex][7]
  11250. ? groupStudent[toolindex][gindex] &&
  11251. groupStudent[toolindex][gindex][7].name
  11252. : lang.ssEmptyPosition
  11253. }}</span>
  11254. </div>
  11255. </div>
  11256. </div>
  11257. <div class="g_d_group_chair">
  11258. <div v-if="groupJson.number > 1">
  11259. <span
  11260. :class="{
  11261. isChair:
  11262. groupStudent[toolindex][gindex] &&
  11263. groupStudent[toolindex][gindex][1],
  11264. updateChair:
  11265. courseDetail.userid == userid &&
  11266. groupStudent[toolindex][gindex] &&
  11267. groupStudent[toolindex][gindex][1] &&
  11268. groupJson.islock == 2,
  11269. }"
  11270. ><span
  11271. class="updateChairBtn"
  11272. @click="
  11273. updateGroupChair(
  11274. groupStudent[toolindex][gindex] &&
  11275. groupStudent[toolindex][gindex][1]
  11276. )
  11277. "
  11278. >{{ lang.ssModify }}</span
  11279. ></span
  11280. ><span>{{
  11281. groupStudent[toolindex][gindex] &&
  11282. groupStudent[toolindex][gindex][1]
  11283. ? groupStudent[toolindex][gindex] &&
  11284. groupStudent[toolindex][gindex][1].name
  11285. : lang.ssEmptyPosition
  11286. }}</span>
  11287. </div>
  11288. <div v-if="groupJson.number > 5">
  11289. <span
  11290. :class="{
  11291. isChair:
  11292. groupStudent[toolindex][gindex] &&
  11293. groupStudent[toolindex][gindex][5],
  11294. updateChair:
  11295. courseDetail.userid == userid &&
  11296. groupStudent[toolindex][gindex] &&
  11297. groupStudent[toolindex][gindex][5] &&
  11298. groupJson.islock == 2,
  11299. }"
  11300. ><span
  11301. class="updateChairBtn"
  11302. @click="
  11303. updateGroupChair(
  11304. groupStudent[toolindex][gindex] &&
  11305. groupStudent[toolindex][gindex][5]
  11306. )
  11307. "
  11308. >{{ lang.ssModify }}</span
  11309. ></span
  11310. ><span>{{
  11311. groupStudent[toolindex][gindex] &&
  11312. groupStudent[toolindex][gindex][5]
  11313. ? groupStudent[toolindex][gindex] &&
  11314. groupStudent[toolindex][gindex][5].name
  11315. : lang.ssEmptyPosition
  11316. }}</span>
  11317. </div>
  11318. <div v-if="groupJson.number > 9">
  11319. <span
  11320. :class="{
  11321. isChair:
  11322. groupStudent[toolindex][gindex] &&
  11323. groupStudent[toolindex][gindex][9],
  11324. updateChair:
  11325. courseDetail.userid == userid &&
  11326. groupStudent[toolindex][gindex] &&
  11327. groupStudent[toolindex][gindex][9] &&
  11328. groupJson.islock == 2,
  11329. }"
  11330. ><span
  11331. class="updateChairBtn"
  11332. @click="
  11333. updateGroupChair(
  11334. groupStudent[toolindex][gindex] &&
  11335. groupStudent[toolindex][gindex][9]
  11336. )
  11337. "
  11338. >{{ lang.ssModify }}</span
  11339. ></span
  11340. ><span>{{
  11341. groupStudent[toolindex][gindex] &&
  11342. groupStudent[toolindex][gindex][9]
  11343. ? groupStudent[toolindex][gindex] &&
  11344. groupStudent[toolindex][gindex][9].name
  11345. : lang.ssEmptyPosition
  11346. }}</span>
  11347. </div>
  11348. </div>
  11349. </div>
  11350. </div>
  11351. </div>
  11352. </div>
  11353. <span slot="footer" class="dialog-footer">
  11354. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11355. </span>
  11356. </el-dialog>
  11357. <el-dialog
  11358. :title="lang.ssGroupSetting"
  11359. :visible.sync="dialogVisibleGroup2"
  11360. :append-to-body="true"
  11361. width="650px"
  11362. :before-close="handleClose"
  11363. class="dialog_diy"
  11364. >
  11365. <div class="groupBox">
  11366. <div v-if="groupJson2.group" class="groupContent">
  11367. <div class="groupTitle">{{ lang.ssSetGroupCountAndName }}</div>
  11368. <div
  11369. v-for="(item, index) in groupJson2.group"
  11370. :key="index"
  11371. class="groupName"
  11372. >
  11373. <span class="groupn">{{ lang.ssGroupNameFormat.replace(/\*/g, index + 1) }}</span>
  11374. <el-input
  11375. v-model="item.name"
  11376. :placeholder="lang.ssEnterName"
  11377. style="width: 250px"
  11378. ></el-input>
  11379. <!-- <div class="groupBtn">
  11380. <el-button type="primary" size="small" @click="addGroup(index)">
  11381. 添加</el-button>
  11382. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11383. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11384. </div> -->
  11385. </div>
  11386. </div>
  11387. <div class="groupContent">
  11388. <div class="groupTitle">{{ lang.ssSetGroupMemberCount }}</div>
  11389. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11390. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11391. <el-input
  11392. v-model="groupJson2.number"
  11393. style="width: 150px"
  11394. :placeholder="lang.ssEnterNumber2To10"
  11395. @change="numberPan"
  11396. ></el-input>
  11397. </div>
  11398. </div>
  11399. <span slot="footer" class="dialog-footer">
  11400. <el-button @click="dialogVisibleGroup2 = false">{{lang.ssCancel}}</el-button>
  11401. <el-button type="primary" @click="updateGroupJson">{{ lang.ssConfirm }}</el-button>
  11402. </span>
  11403. </el-dialog>
  11404. <el-dialog
  11405. :title="lang.ssHomework"
  11406. :visible.sync="dialogVisibleGroupWork"
  11407. :append-to-body="true"
  11408. width="500px"
  11409. :before-close="handleClose"
  11410. class="dialog_change"
  11411. >
  11412. <div class="marginT">
  11413. <div>{{ lang.ssUpFile }}</div>
  11414. <div
  11415. class="chapter_add"
  11416. @click="addImg($event)"
  11417. v-if="studyJuri[0].cover.length == 0"
  11418. >
  11419. <div class="up_photo">
  11420. <img src="../../assets/icon/uploadImg.png" alt />
  11421. </div>
  11422. <!-- <input
  11423. type="file"
  11424. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11425. style="display: none"
  11426. @change="beforeUpload1($event, 1)"
  11427. /> -->
  11428. <input
  11429. type="file"
  11430. accept="*"
  11431. style="display: none"
  11432. @change="beforeUpload1($event, 1)"
  11433. />
  11434. </div>
  11435. <!-- capture="camera" -->
  11436. <div
  11437. class="chapter_add"
  11438. style="
  11439. display: flex;
  11440. width: 100%;
  11441. flex-direction: row;
  11442. flex-wrap: wrap;
  11443. justify-content: flex-start;
  11444. padding: 15px 0;
  11445. "
  11446. v-if="studyJuri[0].cover.length > 0"
  11447. >
  11448. <div class="upCover">
  11449. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11450. <img :src="word" alt v-else-if="fileType == 1" />
  11451. <img :src="video" alt v-else-if="fileType == 2" />
  11452. <img :src="word2" alt v-else-if="fileType == 3" />
  11453. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11454. <div class="deleteWord" @click="clean(1)">
  11455. <img src="../../assets/icon/deleteWorks.png" alt />
  11456. </div>
  11457. </div>
  11458. </div>
  11459. </div>
  11460. <div
  11461. class="upload_send"
  11462. @click="addCourseWorks2(taskCount)"
  11463. v-if="!proVisible"
  11464. >
  11465. {{ lang.ssSubmit }}
  11466. </div>
  11467. </el-dialog>
  11468. <el-dialog
  11469. :title="lang.ssModifyGroup"
  11470. :visible.sync="dialogVisibleUpdateGroup"
  11471. :append-to-body="true"
  11472. width="350px"
  11473. :before-close="handleClose"
  11474. class="dialog_diy"
  11475. >
  11476. <div>
  11477. <h2>
  11478. {{ this.updateGroupUser.name }}
  11479. </h2>
  11480. <div style="color: rgb(171 171 171); margin-top: 10px">
  11481. {{ lang.ssSelectGroupToJoin }}
  11482. </div>
  11483. <el-radio-group v-model="checkChair">
  11484. <el-radio
  11485. style="display: block; margin-top: 20px"
  11486. v-for="(item, index) in updateGroupArray"
  11487. :label="item.label"
  11488. :key="index"
  11489. >{{ item.name }}</el-radio
  11490. >
  11491. </el-radio-group>
  11492. </div>
  11493. <span slot="footer" class="dialog-footer">
  11494. <el-button @click="dialogVisibleUpdateGroup = false">{{lang.ssCancel}}</el-button>
  11495. <el-button type="primary" @click="updateChair">{{ lang.ssConfirm }}</el-button>
  11496. </span>
  11497. </el-dialog>
  11498. <el-dialog
  11499. :title="lang.ssRemoveGroupMember"
  11500. :visible.sync="dialogVisibleDeleteGroup"
  11501. :append-to-body="true"
  11502. width="350px"
  11503. :before-close="handleClose"
  11504. class="dialog_diy"
  11505. >
  11506. <div>
  11507. <h2>
  11508. {{ this.deleteGroupArray.name }}
  11509. </h2>
  11510. <div style="color: rgb(171 171 171); margin-top: 10px">
  11511. {{ lang.ssSelectMemberToDelete }}
  11512. </div>
  11513. <el-checkbox-group v-model="checkDeleteGroup">
  11514. <el-checkbox
  11515. style="display: flex; margin-top: 20px"
  11516. v-for="(item, index) in deleteGroupUser"
  11517. :label="item.userid"
  11518. :key="index"
  11519. >{{ item.name }}</el-checkbox
  11520. >
  11521. </el-checkbox-group>
  11522. </div>
  11523. <span slot="footer" class="dialog-footer">
  11524. <el-button @click="dialogVisibleDeleteGroup = false">{{lang.ssCancel}}</el-button>
  11525. <el-button type="primary" @click="deleteChair">{{ lang.ssConfirm }}</el-button>
  11526. </span>
  11527. </el-dialog>
  11528. <el-dialog
  11529. :title="lang.ssBatchUpload"
  11530. :visible.sync="dialogVisiblePl"
  11531. :append-to-body="true"
  11532. width="700px"
  11533. :before-close="handleClose"
  11534. class="dialog_change"
  11535. >
  11536. <div class="marginT">
  11537. <div class="plworkBox">
  11538. <div
  11539. class="chapter_add"
  11540. style="
  11541. display: flex;
  11542. width: 150px;
  11543. flex-direction: row;
  11544. flex-wrap: wrap;
  11545. justify-content: flex-start;
  11546. margin: 0 10px 10px 0;
  11547. "
  11548. v-for="(item, index) in plworkFile"
  11549. :key="index"
  11550. >
  11551. <div class="upCover2">
  11552. <img
  11553. :src="item.url"
  11554. alt
  11555. v-if="item.fileType == 1"
  11556. @click="previewImg(item.url)"
  11557. />
  11558. <img :src="word" alt v-else-if="item.fileType == 4" />
  11559. <img :src="video" alt v-else />
  11560. <!-- <span class="picName">{{ item.name }}</span> -->
  11561. <!-- <el-input
  11562. v-model="item.username"
  11563. placeholder="请输入学生名字"
  11564. style="margin-top: 10px"
  11565. ></el-input> -->
  11566. <div
  11567. class="pl_select_box"
  11568. @click="
  11569. getUpdateMore(true, checkUpload(), item.username, index)
  11570. "
  11571. >
  11572. {{ getSName(item.username) }}
  11573. </div>
  11574. <!-- <el-select
  11575. style="margin-top: 10px"
  11576. v-model="item.username"
  11577. filterable
  11578. allow-create
  11579. placeholder="请选择学生"
  11580. >
  11581. <el-option
  11582. v-for="item1 in checkUpload()"
  11583. :key="item1.userid"
  11584. :label="item1.name ? item1.name : item1.username"
  11585. :value="item1.userid"
  11586. >
  11587. </el-option>
  11588. </el-select> -->
  11589. <div class="deleteWord" @click="clean2(index)">
  11590. <img src="../../assets/icon/deleteWorks.png" alt />
  11591. </div>
  11592. </div>
  11593. </div>
  11594. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11595. <div class="up_photo2">
  11596. <img src="../../assets/icon/plwork.png" alt />
  11597. <span>{{ lang.ssClickUploadFile }}</span>
  11598. </div>
  11599. <input
  11600. type="file"
  11601. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11602. multiple="multiple"
  11603. style="display: none"
  11604. @change="beforeUpload3($event, 6)"
  11605. />
  11606. </div>
  11607. </div>
  11608. </div>
  11609. <!-- capture="camera" -->
  11610. <div
  11611. class="upload_send"
  11612. @click="addCourseWorksPl(taskCount)"
  11613. v-if="!proVisible2"
  11614. >
  11615. {{ lang.ssSubmit }}
  11616. </div>
  11617. </el-dialog>
  11618. <el-dialog
  11619. :title="lang.ssModifyName"
  11620. :visible.sync="dialogVisibleSname"
  11621. width="500px"
  11622. :before-close="handleClose"
  11623. class="dialog_diy"
  11624. center
  11625. >
  11626. <div
  11627. style="
  11628. text-align: center;
  11629. display: flex;
  11630. align-items: center;
  11631. justify-content: center;
  11632. "
  11633. >
  11634. <span class="tian1">{{ lang.ssName }}</span>
  11635. <div
  11636. class="pl_select_box"
  11637. style="margin-left: 10px; width: 200px"
  11638. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11639. >
  11640. {{ getSName(worksSName) }}
  11641. </div>
  11642. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11643. placeholder="请选择学生">
  11644. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11645. :value="item.userid">
  11646. </el-option>
  11647. </el-select> -->
  11648. <!-- <el-input
  11649. v-model="worksSName"
  11650. style="width: 250px; margin: 15px 0px"
  11651. ></el-input> -->
  11652. </div>
  11653. <span slot="footer" class="dialog-footer">
  11654. <el-button @click="dialogVisibleSname = false">{{lang.ssCancel}}</el-button>
  11655. <el-button type="primary" @click="updateName">{{lang.ssConfirm}}</el-button>
  11656. </span>
  11657. </el-dialog>
  11658. <el-dialog
  11659. :title="lang.ssEnglishWrite"
  11660. :visible.sync="engDialogVisible"
  11661. :append-to-body="true"
  11662. width="800px"
  11663. :before-close="handleClose"
  11664. class="dialog_diy"
  11665. >
  11666. <onlineWrite
  11667. v-if="engDialogVisible"
  11668. :englishList="englishList"
  11669. :myAnswerList1="myAnswerList1"
  11670. ref="engJson"
  11671. ></onlineWrite>
  11672. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11673. <el-button @click="engDialogVisible = false">{{lang.ssCancel}}</el-button>
  11674. <el-button type="primary" @click="addEnglishWork">{{lang.ssConfirm}}</el-button>
  11675. </span>
  11676. </el-dialog>
  11677. <el-dialog
  11678. :title="lang.ssEnglishWrite"
  11679. :visible.sync="engUpdateDialogVisible"
  11680. :append-to-body="true"
  11681. width="800px"
  11682. :before-close="handleClose"
  11683. class="dialog_diy fullStyle"
  11684. >
  11685. <div class="engUpBox">
  11686. <div class="engUpTop">
  11687. <div class="engTitle">
  11688. <div>{{lang.ssEssayTitle}}</div>
  11689. <div>{{ englishList1.engTitle }}</div>
  11690. </div>
  11691. <div class="engText">
  11692. <div>{{lang.ssEssayContent}}</div>
  11693. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11694. </div>
  11695. </div>
  11696. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11697. <div class="oldBox">
  11698. <div class="oldMes">{{lang.ssOriginalAuthor}}{{ noteName }} )</div>
  11699. <div class="oldText">
  11700. <div class="detailBox">
  11701. <div class="oldDetail">
  11702. <div>{{lang.ssTitleColon}}</div>
  11703. <div>{{ oldEnglishJson.engTitle }} </div>
  11704. </div>
  11705. <div class="oldDetail1">
  11706. <div>{{lang.ssContentColon}}</div>
  11707. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11708. </div>
  11709. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11710. <div>{{lang.ssImageColon}}</div>
  11711. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11712. </div>
  11713. </div>
  11714. </div>
  11715. </div>
  11716. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11717. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11718. <div class="oldText">
  11719. <div class="detailBox" style="position: relative;">
  11720. <div class="oldDetail">
  11721. <div>{{lang.ssTitleColon}}</div>
  11722. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11723. <div v-else v-html="newEnglishList.engTitle"></div>
  11724. </div>
  11725. <div class="oldDetail">
  11726. <div>{{lang.ssContentColon}}</div>
  11727. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11728. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11729. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11730. </div>
  11731. <div style="position: absolute;bottom: -25px;">{{lang.ssNoteRedDeleteGreenAdd}}</div>
  11732. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11733. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">{{lang.ssAIAnnotation}}</el-button>
  11734. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{lang.ssConfirm}}</el-button>
  11735. </div>
  11736. </div>
  11737. </div>
  11738. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11739. <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">
  11740. <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>
  11741. <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>
  11742. </div>
  11743. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11744. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11745. <div class="detailBox" style="position: relative;">
  11746. <div class="oldDetail">
  11747. <div>{{lang.ssTitleColon}}</div>
  11748. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11749. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11750. </div>
  11751. <div class="oldDetail">
  11752. <div>{{lang.ssContentColon}}</div>
  11753. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11754. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11755. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  11756. </div>
  11757. <div style="position: absolute;bottom: -25px;">{{lang.ssNoteRedDeleteGreenAdd}}</div>
  11758. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11759. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">{{lang.ssAIAnnotation}}</el-button>
  11760. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{lang.ssConfirm}}</el-button>
  11761. </div>
  11762. </div>
  11763. <div class="oldText" v-else-if="newEngIndex == -1">
  11764. <div class="detailBox" style="position: relative;">
  11765. <div class="oldDetail">
  11766. <div>{{lang.ssTitleColon}}</div>
  11767. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11768. <div v-else v-html="newEnglishList.engTitle"></div>
  11769. </div>
  11770. <div class="oldDetail">
  11771. <div>{{lang.ssContentColon}}</div>
  11772. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11773. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11774. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11775. </div>
  11776. <div style="position: absolute;bottom: -25px;">{{lang.ssNoteRedDeleteGreenAdd}}</div>
  11777. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11778. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">{{lang.ssAIAnnotation}}</el-button>
  11779. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{lang.ssConfirm}}</el-button>
  11780. </div>
  11781. </div>
  11782. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11783. <div class="detailBox" style="position: relative;">
  11784. <div class="oldDetail">
  11785. <div>{{lang.ssTitleColon}}</div>
  11786. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11787. <div v-else>
  11788. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  11789. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11790. </div>
  11791. </div>
  11792. <div class="oldDetail">
  11793. <div>{{lang.ssContentColon}}</div>
  11794. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  11795. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11796. <div v-else>
  11797. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11798. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11799. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  11800. </div>
  11801. </div>
  11802. <div style="position: absolute;bottom: -25px;">{{lang.ssNoteRedDeleteGreenAdd}}</div>
  11803. <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 ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11804. <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">{{lang.ssAIAnnotation}}</el-button>
  11805. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{lang.ssConfirm}}</el-button>
  11806. </div>
  11807. </div>
  11808. </div>
  11809. </div>
  11810. </div>
  11811. <span slot="footer" class="dialog-footer">
  11812. <el-button @click="engUpdateDialogVisible = false">{{lang.ssCancel}}</el-button>
  11813. <el-button type="primary" @click="addCorrect">{{lang.ssConfirm}}</el-button>
  11814. </span>
  11815. </el-dialog>
  11816. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11817. <interVideo
  11818. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11819. :videoJson="videoJson"
  11820. :userid="userid"
  11821. :id="id"
  11822. :courseType="courseType"
  11823. :taskCount="taskCount"
  11824. :toolindex="toolindex"
  11825. :videoType="videoType"
  11826. ></interVideo>
  11827. <UpdateMore
  11828. :dialogVisibleMember.sync="dialogVisibleMember"
  11829. :cList="uploadStudentJuri"
  11830. :userid="userid"
  11831. :searchTN="worksSName2"
  11832. @setPlname="setPlname"
  11833. ></UpdateMore>
  11834. <!-- <wordCloud
  11835. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11836. :data="wordCloudData"
  11837. ></wordCloud> -->
  11838. <el-dialog
  11839. :title="lang.ssWordCloud"
  11840. :visible.sync="dialogVisibleWordCloud"
  11841. width="30%"
  11842. class="dialog_diy"
  11843. :before-close="handleClose">
  11844. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  11845. </el-dialog>
  11846. <el-dialog
  11847. :title="lang.ssPickPerson"
  11848. :visible.sync="dialogVisiblePickPeople"
  11849. width="650px"
  11850. :before-close="handleClose"
  11851. class="dialog_diy"
  11852. center
  11853. >
  11854. <div class="pick_box">
  11855. <div
  11856. class="noWorksName"
  11857. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11858. v-for="(item, index) in uploadStudentJuri"
  11859. :key="index"
  11860. @click="pickStudent(item)"
  11861. >
  11862. {{ item.name }}
  11863. </div>
  11864. </div>
  11865. </el-dialog>
  11866. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11867. :englishVoiceJson='englishVoiceJson'
  11868. :userid="userid"
  11869. :id="id"
  11870. :courseType="courseType"
  11871. :taskCount="taskCount"
  11872. :toolindex="toolindex"
  11873. @selectSWorks="selectSWorks"
  11874. @selectStudent="selectStudent"
  11875. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11876. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11877. :userid="userid"
  11878. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11879. :commentDetail="commentDetail"
  11880. :courseDetail="courseDetail"
  11881. :wScore="wScore"
  11882. :scoreDetail="scoreDetail"
  11883. @selectSWorks="selectSWorks"
  11884. @selectStudent="selectStudent"></checkEnglishVoice>
  11885. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  11886. <choseWorksDetailDialog
  11887. ref="choseWorksDetailDialogRef"
  11888. :worksStudentData="worksStudent"
  11889. :noWorksSData="noWorksS"
  11890. :chapInfoListData="chapInfoList"
  11891. :courseType="courseType"
  11892. :taskCount="taskCount"
  11893. :tType="tType"
  11894. :sIsOpen="sIsOpen"
  11895. :courseDetail="courseDetail"
  11896. :groupStudent2="groupStudent"
  11897. :groupStudentUid2="groupStudentUid"
  11898. :oid="oid"
  11899. :org="org"
  11900. @getCourseDetail="getCourseDetail"
  11901. @selectSLook="selectSLook"
  11902. @selectSWorks="selectSWorks"
  11903. @selectStudent="selectStudent"
  11904. @deleteWorks="deleteWorks"
  11905. @openTools="openTools"
  11906. @openWord="openWord"
  11907. @openScore="openScore"
  11908. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  11909. />
  11910. <el-dialog
  11911. :visible.sync="confirmOpenDig"
  11912. width="500px"
  11913. :modal="false"
  11914. class="confirmOpenDigCss dialog_diyCopy"
  11915. :before-close="handleClose">
  11916. <div style="display: flex;align-items: center;">
  11917. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  11918. <span>"{{ courseDetail.title }}"{{lang.ssCourseStarted}}</span>
  11919. </div>
  11920. <div style="margin: 20px 0 35px;">
  11921. <div style="margin-bottom: 10px;">{{lang.ssFollowTeacherLearning}}</div>
  11922. <div>{{lang.ssStudyHard}}</div>
  11923. </div>
  11924. <div style="text-align: center;">
  11925. <el-button type="primary" style="width: 95%;" @click="confirmOpen">{{lang.ssStartLearningBtn}}</el-button>
  11926. </div>
  11927. </el-dialog>
  11928. <appStoreC ref="appStoreC"
  11929. :sStudent="sStudent"
  11930. :courseType="courseType"
  11931. :taskCount="taskCount"
  11932. :toolindex="toolindex"
  11933. @selectSWorks="selectSWorks"
  11934. @selectStudent="selectStudent"
  11935. ></appStoreC>
  11936. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  11937. </div>
  11938. </template>
  11939. <script>
  11940. import "../../common/aws-sdk-2.235.1.min.js";
  11941. // import pdf from "../components/pdf3";
  11942. import pdf from "../components/vpdf";
  11943. import AskStatic from "../components/askStatic";
  11944. import AskStatic2 from "../components/askStatic2";
  11945. import AnswerData2 from "../components/answerData2";
  11946. import AnswerData from "../components/answerData";
  11947. import sortToolWorkShow from "../components/sortToolWorkShow.vue";
  11948. import EditorBar from "../tools/wangEnduit.vue";
  11949. import Table from "../tools/table.vue";
  11950. import Time from "../tools/time.vue";
  11951. import Mind from "../tools/jsmind.vue";
  11952. import Sunburst from "../tools/sunburst";
  11953. import SeeBoard from "../tools/seeBoard";
  11954. import * as imageConversion from "image-conversion";
  11955. import Audio from "../components/audio.vue";
  11956. import ImgDraw from "../tools/imgDraw/imgDraw";
  11957. import { Empty } from "element-ui";
  11958. import RecordRTC from "recordrtc";
  11959. import interVideo from "../interVideo/index.vue";
  11960. import UpdateMore from "../updateMore/updateMore.vue";
  11961. import wordCloud from "../wordCloud/index.vue";
  11962. import axios from "axios";
  11963. import JSZip from "jszip";
  11964. import FileSaver from "file-saver";
  11965. import onlineWrite from "./commpont/onlineWrite";
  11966. import englishEva from "../components/englishEva";
  11967. import * as Diff from 'diff'
  11968. import EnglishVoice from '../EnglishVoice2/index.vue'
  11969. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  11970. import correctText from '../components/correctText.vue'
  11971. import scoreItem from '../scoreList/scoreItem.vue'
  11972. import scoreZong from '../scoreZong/index.vue'
  11973. import classRoomHelper from '../classRoomHelper/index.vue'
  11974. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  11975. import MarkdownIt from "markdown-it";
  11976. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  11977. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  11978. import { v4 as uuidv4 } from "uuid";
  11979. var OpenCC = require("opencc-js");
  11980. import choseWordCloud from '../components/choseWordCloud.vue'
  11981. import appStoreC from "../components/appStoreC.vue";
  11982. import cocoFlowDia from "../components/cocoFlowDia.vue";
  11983. import { myMixin } from "@/mixins/mixin.js"
  11984. import { tools as toolsList } from "@/common/tools2.js";
  11985. import katex from 'katex'
  11986. import 'katex/dist/katex.min.css'
  11987. let converter = OpenCC.Converter({
  11988. from: "hk",
  11989. to: "cn"
  11990. });
  11991. const getFile = (url) => {
  11992. return new Promise((resolve, reject) => {
  11993. var credentials = {
  11994. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11995. secretAccessKey: "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",
  11996. }; //秘钥形式的登录上传
  11997. window.AWS.config.update(credentials);
  11998. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11999. let url2 = url;
  12000. let _url2 = "";
  12001. if (
  12002. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12003. ) {
  12004. _url2 = url2.split(
  12005. "https://view.officeapps.live.com/op/view.aspx?src="
  12006. )[1];
  12007. } else {
  12008. _url2 = url2;
  12009. }
  12010. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12011. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12012. var params = {
  12013. Bucket: "ccrb",
  12014. Key: name
  12015. };
  12016. s3.getObject(params, function (err, data) {
  12017. if (err) {
  12018. console.log(err, err.stack)
  12019. resolve({ data: 1 });
  12020. }else {
  12021. resolve({ data: data.Body });
  12022. console.log(data);
  12023. } // sxuccessful response
  12024. });
  12025. // axios({
  12026. // method: "get",
  12027. // url,
  12028. // responseType: "blob",
  12029. // })
  12030. // .then((data) => {
  12031. // resolve({ data: data.data });
  12032. // })
  12033. // .catch((error) => {
  12034. // resolve({ data: 1 });
  12035. // // reject(error.toString());
  12036. // });
  12037. });
  12038. };
  12039. export default {
  12040. mixins: [ myMixin ],
  12041. components: {
  12042. choseWordCloud,
  12043. EditorBar,
  12044. Time,
  12045. pdf,
  12046. AskStatic,
  12047. AskStatic2,
  12048. Mind,
  12049. Sunburst,
  12050. SeeBoard,
  12051. AnswerData2,
  12052. AnswerData,
  12053. sortToolWorkShow,
  12054. Audio,
  12055. ImgDraw,
  12056. Table,
  12057. interVideo,
  12058. UpdateMore,
  12059. wordCloud,
  12060. onlineWrite,
  12061. englishEva,
  12062. EnglishVoice,
  12063. checkEnglishVoice,
  12064. correctText,
  12065. scoreItem,
  12066. classRoomHelper,
  12067. scoreZong,
  12068. statisticalAnalysis,
  12069. choseWorksDetailDialog,
  12070. appStoreC,
  12071. cocoFlowDia,
  12072. studentClassRoomHelper
  12073. },
  12074. data() {
  12075. return {
  12076. // 学校或者组织随机码
  12077. Code2:'',
  12078. startTime: "",
  12079. // 是否允许学生查看内容资料 2不可以 1可以
  12080. IsStulook:false,
  12081. homeWorkLoading:false,
  12082. toolsList: toolsList,
  12083. wordCloudKey: 0,
  12084. bg: null,
  12085. drawShow: false,
  12086. dialogVisible: false,
  12087. dialogVisiblePl: false,
  12088. commentDialogVisible: false,
  12089. dialogVisibleMember: false,
  12090. dialogVisibleWordCloud: false,
  12091. videoVisible: false,
  12092. isStar: false,
  12093. studentEvalDialogVisible: false,
  12094. studentEvalDialogVisibleTeacher: false,
  12095. dialogVisibleSelect: false,
  12096. dialogVisibleSelectTeacher: false,
  12097. dialogVisibleScore: false,
  12098. dialogVisibleENScore: false,
  12099. dialogVisibleSentence: false,
  12100. dialogVisibleSentenceTeacher: false,
  12101. dialogVisibleSentence1: false,
  12102. dialogVisibleWorks: false,
  12103. dialogVisibleTable: false,
  12104. dialogVisibleTableTeacher: false,
  12105. dialogVisibleWord: false,
  12106. dialogVisibleWordTeacher: false,
  12107. dialogVisibleTable2: false,
  12108. dialogVisibleTable3: false,
  12109. dialogVisibleGroupWork: false,
  12110. dialogVisibleUpdateGroup: false,
  12111. dialogVisibleDeleteGroup: false,
  12112. dialogVisibleSname: false,
  12113. dialogVisibleVideo: false,
  12114. dialogVisiblePickPeople: false,
  12115. worksSName: "",
  12116. classJuri: [],
  12117. uploadStudentJuri: [],
  12118. uploadCid: "",
  12119. snameWid: "",
  12120. sStudent: {},
  12121. sTool: "",
  12122. bzText: "",
  12123. commentDetail: [],
  12124. selectAnswer: [],
  12125. videoDetail: {},
  12126. selectJson: {},
  12127. eScore: { eBzText: "", eStar: [] },
  12128. id: this.$route.query.courseId,
  12129. userid: this.$route.query.userid,
  12130. classId: this.$route.query.cid,
  12131. role: this.$route.query.role,
  12132. // courseTypeLine: this.$route.query.type,
  12133. oid: this.$route.query.oid,
  12134. org: this.$route.query.org,
  12135. tType: this.$route.query.tType,
  12136. courseType: this.$route.query.type,
  12137. screenType: this.$route.query.screenType,
  12138. tcid2: this.$route.query.tcid,
  12139. tcid: "",
  12140. pptImgUrl: "",
  12141. pptImgUrl1: "",
  12142. commentText: "",
  12143. full: false,
  12144. sIsOpen: false,
  12145. IsLookOpen: false,
  12146. IsFollow: false,
  12147. pzDialog: false,
  12148. contentDialog: false,
  12149. mlDialog: false,
  12150. type: 1,
  12151. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12152. sentenceList1: [],
  12153. tableJson: [],
  12154. tableJsonO: [],
  12155. wordJson: [],
  12156. wordJsonO: [],
  12157. vedio: [],
  12158. text: [],
  12159. textList: [],
  12160. line: [],
  12161. lineList: [],
  12162. chapTools: [],
  12163. chapToolList: [],
  12164. file: [],
  12165. fileC: [],
  12166. vedioTime: [],
  12167. upToolImg: "",
  12168. preTime: 0,
  12169. rateList: {
  12170. ca: 0,
  12171. },
  12172. rateParams: [],
  12173. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12174. studyJuri: [
  12175. {
  12176. content: "",
  12177. cover: [],
  12178. upVedio: [],
  12179. upFile: [],
  12180. },
  12181. ],
  12182. isClose: 0,
  12183. plworkFile: [],
  12184. mr: require("../../assets/vedioPic.png"),
  12185. word: require("../../assets/icon/isWord.png"),
  12186. word2: require("../../assets/icon/word2.png"),
  12187. video: require("../../assets/icon/isVideo.png"),
  12188. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12189. likes: require("../../assets/icon/comment/likes.png"),
  12190. scoreImg: require("../../assets/score.png"),
  12191. courseDetail: {},
  12192. reply: "",
  12193. isSelect: false,
  12194. chapInfo: [],
  12195. chapInfoList: [],
  12196. taskCount: 0,
  12197. imgList: [],
  12198. noImgList: [],
  12199. pzList: [],
  12200. timeWorkList: [],
  12201. PlTextList: [
  12202. "Excellent!",
  12203. "nice!",
  12204. this.lang.ssVeryCreative,
  12205. this.lang.ssNotBad,
  12206. this.lang.ssKeepTrying,
  12207. ],
  12208. isClickNav: "",
  12209. navId: "",
  12210. playerOptions: {
  12211. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12212. autoplay: false, //如果true,浏览器准备好时开始回放。
  12213. muted: false, // 默认情况下将会消除任何音频。
  12214. loop: false, // 导致视频一结束就重新开始。
  12215. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12216. language: "zh-CN",
  12217. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12218. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12219. sources: [
  12220. {
  12221. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12222. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12223. },
  12224. ],
  12225. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12226. // poster: dataRes.imgUrl, //你的封面地址
  12227. notSupportedMessage: this.lang.ssVideoNotSupported, //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12228. controlBar: {
  12229. timeDivider: true, //当前时间和持续时间的分隔符
  12230. durationDisplay: true, //显示持续时间
  12231. remainingTimeDisplay: false, //是否显示剩余时间功能
  12232. fullscreenToggle: true, //全屏按钮
  12233. },
  12234. },
  12235. playerOptions1: {
  12236. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12237. autoplay: false, //如果true,浏览器准备好时开始回放。
  12238. muted: false, // 默认情况下将会消除任何音频。
  12239. loop: false, // 导致视频一结束就重新开始。
  12240. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12241. language: "zh-CN",
  12242. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12243. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12244. sources: [
  12245. {
  12246. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12247. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12248. },
  12249. ],
  12250. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12251. // poster: dataRes.imgUrl, //你的封面地址
  12252. notSupportedMessage: this.lang.ssVideoNotSupported, //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12253. controlBar: {
  12254. timeDivider: true, //当前时间和持续时间的分隔符
  12255. durationDisplay: true, //显示持续时间
  12256. remainingTimeDisplay: false, //是否显示剩余时间功能
  12257. fullscreenToggle: true, //全屏按钮
  12258. },
  12259. },
  12260. playerO: {},
  12261. noneBtnImg: false,
  12262. proVisible: false,
  12263. proVisible2: false,
  12264. progress: 0,
  12265. isFinishSize: 0,
  12266. isAllSize: 0,
  12267. questionAnswer: "",
  12268. answerQ: "", //问答标题
  12269. rateJson: [],
  12270. wbCount: 0,
  12271. wordCount: 0,
  12272. mindCount: 0,
  12273. askCount: 0,
  12274. noteCount: 0,
  12275. mindNetWorkCount: 0,
  12276. libraryCount: 0,
  12277. workCount: 0,
  12278. timeCount: 0,
  12279. answerCount: 0,
  12280. trainCount: 0,
  12281. evalCount: 0,
  12282. dialogImageUrl: "",
  12283. pictureDialog: false,
  12284. toolTypeList: [],
  12285. dialogVisible1: false,
  12286. dialogVisible2: false,
  12287. dialogVisible3: false,
  12288. dialogVisible6: false,
  12289. dialogVisible4: false,
  12290. isNoHomeWork: false,
  12291. dialogVisible5: false,
  12292. dialogVisible5Teacher: false,
  12293. dialogVisibleChoice: false,
  12294. dialogVisibleChoiceTeacher: false,
  12295. answerDialogVisible: false,
  12296. answerDialogVisibleTeacher: false,
  12297. juriVisible: false,
  12298. timeDialogVisible: false,
  12299. replyDialogVisible: false,
  12300. toolDialogVisible: false,
  12301. engDialogVisible: false,
  12302. engUpdateDialogVisible:false,
  12303. engEvaDialogVisible: false,
  12304. evaEngJson: {
  12305. teacherJson: {},
  12306. studentJson: {},
  12307. message: {},
  12308. },
  12309. isNoUserid:false,
  12310. engListLength:0,
  12311. engWid:"",
  12312. newEnglishList:{
  12313. engTitle:"",
  12314. engText:"",
  12315. },
  12316. newEnglishList1:[],
  12317. oldEnglishJson:{},
  12318. oldEnglishJson1:{},
  12319. englishList1:{},
  12320. englishList:{},
  12321. myAnswerList1:{},
  12322. topHeight:0,
  12323. newEngIndex:-1,
  12324. englishToolIndex:0,
  12325. userMes:{},
  12326. englishToolIndex:0,
  12327. replyIndex: 0,
  12328. replyPid: "",
  12329. radio: [],
  12330. isAsk: false,
  12331. askJson: {
  12332. askCount: 1,
  12333. askTitle: "",
  12334. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12335. },
  12336. testJson: {},
  12337. englishList: {},
  12338. topHeight:0,
  12339. checkJson: [],
  12340. askList: [],
  12341. answerList: [],
  12342. navList: [],
  12343. addPzDialog: false,
  12344. pzConText: "",
  12345. worksStudent: [],
  12346. isCloseList: [],
  12347. workStudent: [],
  12348. groupStudent: [],
  12349. groupStudentUid: [],
  12350. noWorksS: [],
  12351. isWorksS: [],
  12352. noWorksStudent: [],
  12353. toolindex: 0,
  12354. toolDetailIndex: null,
  12355. groupIndex: 0,
  12356. workTypeB: false,
  12357. workTypeC: false,
  12358. isAnswer: false,
  12359. isHovered: false,
  12360. isHovered1: false,
  12361. isHovered2: false,
  12362. commentTagShow:0,
  12363. timer: null,
  12364. timer2: null,
  12365. opertimer: null,
  12366. showType: '',
  12367. fileType: 0,
  12368. showPDF: false,
  12369. noteName: "",
  12370. evaJuri: [],
  12371. evalua: "",
  12372. eTitle: "",
  12373. eName: "",
  12374. eJson: {},
  12375. fid: "", //一级
  12376. sid: "", //二级
  12377. tid: "", //二级
  12378. typeMode: 1,
  12379. eJSONNum: 0,
  12380. Etype: 1,
  12381. data: {
  12382. meta: {
  12383. name: "example",
  12384. author: "dd@163.com",
  12385. version: "0.2",
  12386. },
  12387. format: "node_array",
  12388. data: [{ id: "root", isroot: true, topic: "" }],
  12389. },
  12390. fullDialogVisible: false,
  12391. fulltype: "",
  12392. fullUrl: "",
  12393. commentIndexJson: {},
  12394. Stbodywidth: 0,
  12395. ispzType: 0,
  12396. pzType: 1,
  12397. wScore: 0,
  12398. scoreDetail: "",
  12399. videoStart: false,
  12400. recorder: null,
  12401. groupJson: {},
  12402. islock: false,
  12403. groupJson2: {},
  12404. dialogVisibleGroup: false,
  12405. dialogVisibleGroup2: false,
  12406. updateGroupArray: [],
  12407. updateGroupUser: {},
  12408. deleteGroupUser: [],
  12409. deleteGroupArray: {},
  12410. checkChair: "",
  12411. checkDeleteGroup: [],
  12412. inviteCode: "",
  12413. courseGroupStudent: [],
  12414. courseGroupStudentUid: [],
  12415. courseGroup: {},
  12416. isGroup: false,
  12417. toolIndex: null,
  12418. tool: {},
  12419. isWorkTool: [
  12420. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12421. ], //, 40
  12422. videoJson: {},
  12423. videoType:0,
  12424. toolType: 0,
  12425. checktoolArray: [],
  12426. vChapterData: [],
  12427. isUpdateToolDetail: false,
  12428. isUpdateToolDetail1: false,
  12429. updateToolDetailInner: "",
  12430. checkboxList: [],
  12431. plIndex: "",
  12432. worksSName2: "",
  12433. worksSid: "",
  12434. wordCloudData: [],
  12435. isPickStudent: [],
  12436. pzStype: 1,
  12437. myAnList: {},
  12438. downLoading: false,
  12439. greyType: false,
  12440. correctWord: [],
  12441. EnglishVoiceDialog: false,
  12442. englishVoiceJson: {},
  12443. englishVoiceJsonWork:[],
  12444. scoreList:{
  12445. listdata:[],
  12446. isScoreList:[],
  12447. },
  12448. classRoomHelperWidth: this.$region != 'hk' ? '85px' : '15px',
  12449. orgArray:[],
  12450. oidArray:[],
  12451. splitScreenData:{
  12452. isOpen:false,
  12453. userId:"",
  12454. uid:"",
  12455. myUid:"",
  12456. loading:false,
  12457. behavior:null,
  12458. },
  12459. confirmOpenDig:false,
  12460. confirmOpenDigData:'',
  12461. diffKey:"1",
  12462. getCourseGroupLoading: false,
  12463. selectSWorksLoading:false,
  12464. selectStudentLoading:false,
  12465. selectSLookLoading:false,
  12466. getPickLoading:false,
  12467. selectPzLoading:false,
  12468. getSplitScreenDataLoading:false,
  12469. };
  12470. },
  12471. methods: {
  12472. // 获取学校或组织随机码
  12473. getCode2(){
  12474. let params = {
  12475. oid: this.oid,
  12476. org: this.org
  12477. };
  12478. this.ajax
  12479. .get(this.$store.state.api + "getCode2", params)
  12480. .then(res => {
  12481. this.Code2 = res.data[0] && res.data[0][0] && res.data[0][0].code2 ? res.data[0][0].code2 : ''
  12482. })
  12483. .catch(err => {
  12484. console.error(err);
  12485. });
  12486. },
  12487. //查看应用中心作业
  12488. openCocoFlow(w){
  12489. this.$refs.cocoFlowDiaRef.openAppWork(w)
  12490. },
  12491. getAIJ(){
  12492. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12493. let oid = res.data[0];
  12494. let org = res.data[1];
  12495. let oidArray = [];
  12496. let orgArray = [];
  12497. oid.forEach(i=>oidArray.push(i.oid))
  12498. org.forEach(i=>orgArray.push(i.oid))
  12499. this.orgArray = orgArray;
  12500. this.oidArray = oidArray;
  12501. })
  12502. },
  12503. insertMemorandum(_html){//保存行为操作
  12504. //variable
  12505. //btn
  12506. let params = [{
  12507. uid:this.userid,
  12508. courseId:this.id+(this.tcid2?this.tcid2:''),
  12509. content:_html
  12510. }]
  12511. console.log(params)
  12512. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12513. if(res.data==1){
  12514. console.log('保存操作成功')
  12515. }else{
  12516. console.log('保存操作失败')
  12517. }
  12518. }).catch(e=>{
  12519. console.log('保存操作失败')
  12520. console.log(e)
  12521. })
  12522. },
  12523. gx(){
  12524. this.$forceUpdate();
  12525. },
  12526. isUpdateCorrect(t,p){
  12527. if(this.greyType == false){
  12528. this.isUpdateText = t;
  12529. this.greyType = true;
  12530. }else{
  12531. if(p == 1){
  12532. this.newEnglishList.engText = this.isUpdateText;
  12533. }else if(p == 2){
  12534. this.oldEnglishJson1.engText = this.isUpdateText;
  12535. }else if(p == 3){
  12536. this.newEnglishList.engText = this.isUpdateText;
  12537. }else{
  12538. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12539. }
  12540. this.greyType = false
  12541. }
  12542. },
  12543. aiCorrect(t,p){
  12544. let aiText = "";
  12545. const loading = this.$loading.service({
  12546. background: "rgba(255, 255, 255)",
  12547. target: document.querySelectorAll(".loadingText")[0],
  12548. });
  12549. let param = {
  12550. model: "gpt-3.5-turbo",
  12551. temperature: 0,
  12552. max_tokens: 2048,
  12553. top_p: 1,
  12554. frequency_penalty: 0,
  12555. presence_penalty: 0,
  12556. messages: [
  12557. {
  12558. role: "user",
  12559. content:
  12560. `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12561. },
  12562. ],
  12563. uid: this.userid,
  12564. stream: false,
  12565. };
  12566. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12567. (res) => {
  12568. if (
  12569. res.data.FunctionResponse &&
  12570. res.data.FunctionResponse.result &&
  12571. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12572. ) {
  12573. this.$message.error(this.lang.ssEssayTooLongForAI);
  12574. return;
  12575. }
  12576. aiText =
  12577. res.data.FunctionResponse.choices[0].message.content;
  12578. aiText = aiText.replace(/%/g,"%25");
  12579. // let w = "";
  12580. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12581. // for(var k = 0;k<a.length;k++){
  12582. // //diffWordsWithSpace
  12583. // if(a.length > 1){
  12584. // if(a[k].added == true){
  12585. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12586. // }else if(a[k].removed == true){
  12587. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12588. // }else{
  12589. // w += '<span>' + a[k].value + '</span>';
  12590. // }
  12591. // }else{
  12592. // if(p == 1){
  12593. // w = this.newEnglishList.engText;
  12594. // }else if(p == 2){
  12595. // w = this.oldEnglishJson1.engText;
  12596. // }else if(p == 3){
  12597. // w = this.newEnglishList.engText;
  12598. // }else{
  12599. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12600. // }
  12601. // }
  12602. // }
  12603. if(p == 1){
  12604. this.newEnglishList.engText = aiText;
  12605. }else if(p == 2){
  12606. this.oldEnglishJson1.engText = aiText;
  12607. }else if(p == 3){
  12608. this.newEnglishList.engText = aiText;
  12609. }else{
  12610. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12611. }
  12612. loading.close();
  12613. },
  12614. (err) => {
  12615. console.log(err);
  12616. loading.close();
  12617. }
  12618. );
  12619. },
  12620. addToolChoose() {
  12621. if (!this.checktoolArray.length) {
  12622. this.$message.error(this.lang.ssSelectTaskToAdd);
  12623. return;
  12624. }
  12625. if (
  12626. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12627. this.taskCount
  12628. ].toolChoose[0].tool.length
  12629. ) {
  12630. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12631. this.taskCount
  12632. ].toolChoose[0].tool = this.checktoolArray;
  12633. } else {
  12634. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12635. this.taskCount
  12636. ].toolChoose.push({
  12637. tool: this.checktoolArray,
  12638. toolDetail: "",
  12639. toolType: 0,
  12640. askCount: 1,
  12641. askTitle: "",
  12642. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12643. });
  12644. }
  12645. let params = [
  12646. {
  12647. cid: this.id,
  12648. chapters: JSON.stringify(this.chapInfoList),
  12649. uid: this.userid,
  12650. unitIndex: this.courseType,
  12651. },
  12652. ];
  12653. this.ajax
  12654. .post(this.$store.state.api + "updateWorkNew4", params)
  12655. .then((res) => {
  12656. this.$message({
  12657. message: this.lang.ssAddSuccess,
  12658. type: "success",
  12659. });
  12660. this.checktoolArray = [];
  12661. this.getCourseDetail(2);
  12662. this.checkBz(
  12663. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12664. this.taskCount
  12665. ].toolChoose.length - 1
  12666. );
  12667. this.toolDialogVisible = false;
  12668. this.refreshCourse();
  12669. this.$forceUpdate();
  12670. })
  12671. .catch((err) => {
  12672. console.error(err);
  12673. });
  12674. },
  12675. checkBz(index) {
  12676. this.isUpdateToolDetail = false;
  12677. this.$forceUpdate();
  12678. setTimeout(() => {
  12679. document.scrollingElement.scrollTop =
  12680. document.querySelectorAll(".filebox")[index].offsetTop +
  12681. document.querySelector(".student_body").offsetTop;
  12682. }, 500);
  12683. },
  12684. updateToolDetail(i, type) {
  12685. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12686. this.toolDetailIndex = i
  12687. this.isUpdateToolDetail1 = true;
  12688. setTimeout(() => {
  12689. this.updateToolDetailInner = JSON.parse(
  12690. JSON.stringify(
  12691. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12692. this.taskCount
  12693. ].toolChoose[i].toolDetail
  12694. )
  12695. );
  12696. document.querySelector(".checkTextArea").focus();
  12697. }, 0);
  12698. } else if((this.isUpdateToolDetail1 && type != 2)){
  12699. // this.toolDetailIndex = i;
  12700. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12701. this.taskCount
  12702. ].toolChoose[i].toolDetail = JSON.parse(
  12703. JSON.stringify(this.updateToolDetailInner)
  12704. );
  12705. let params = [
  12706. {
  12707. cid: this.id,
  12708. chapters: JSON.stringify(this.chapInfoList),
  12709. uid: this.userid,
  12710. unitIndex: this.courseType,
  12711. },
  12712. ];
  12713. this.ajax
  12714. .post(this.$store.state.api + "updateWorkNew4", params)
  12715. .then((res) => {
  12716. this.isUpdateToolDetail1 = false;
  12717. this.$message({
  12718. message: this.lang.ssModifySuccess,
  12719. type: "success",
  12720. });
  12721. this.toolDetailIndex = null;
  12722. this.updateToolDetailInner = "";
  12723. this.getCourseDetail(2);
  12724. this.$forceUpdate();
  12725. })
  12726. .catch((err) => {
  12727. console.error(err);
  12728. });
  12729. } else if((this.isUpdateToolDetail1 && type == 2)){
  12730. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12731. this.taskCount
  12732. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12733. JSON.stringify(this.updateToolDetailInner)
  12734. );
  12735. let params = [
  12736. {
  12737. cid: this.id,
  12738. chapters: JSON.stringify(this.chapInfoList),
  12739. uid: this.userid,
  12740. unitIndex: this.courseType,
  12741. },
  12742. ];
  12743. this.ajax
  12744. .post(this.$store.state.api + "updateWorkNew4", params)
  12745. .then((res) => {
  12746. this.$message({
  12747. message: this.lang.ssModifySuccess,
  12748. type: "success",
  12749. });
  12750. this.toolDetailIndex = i;
  12751. this.isUpdateToolDetail1 = true;
  12752. setTimeout(() => {
  12753. this.updateToolDetailInner = JSON.parse(
  12754. JSON.stringify(
  12755. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12756. this.taskCount
  12757. ].toolChoose[i].toolDetail
  12758. )
  12759. );
  12760. document.querySelector(".checkTextArea").focus();
  12761. }, 0);
  12762. this.getCourseDetail(2);
  12763. this.$forceUpdate();
  12764. })
  12765. .catch((err) => {
  12766. console.error(err);
  12767. });
  12768. }
  12769. },
  12770. jumpGj(i, j, k, l) {
  12771. for (var z = 0; z < this.navList.length; z++) {
  12772. for (var q = 0; q < this.navList[z].task.length; q++) {
  12773. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12774. this.navList[z].task[q].tool[w].isTool = false;
  12775. }
  12776. }
  12777. }
  12778. console.log(this.navList);
  12779. this.navList[i].task[j].tool[k].isTool =
  12780. !this.navList[i].task[j].tool[k].isTool;
  12781. var a = document.scrollingElement;
  12782. let target = document.querySelector(`#gj${k}`);
  12783. if (target) {
  12784. // target.scrollIntoView(true);
  12785. // setTimeout(() => {
  12786. // a.scrollTop = a.scrollTop - 150;
  12787. // }, 0);
  12788. target.scrollIntoView();
  12789. setTimeout(()=>{
  12790. let scrollBody = document.querySelector('.body_student').parentElement
  12791. scrollBody.scrollTop = scrollBody.scrollTop - 100
  12792. }, 0);
  12793. }
  12794. this.navId = ""
  12795. let flag = this.courseType == i;
  12796. let flag2 = this.taskCount == j
  12797. if (l) {
  12798. this.courseType = i;
  12799. // this.navId = l;
  12800. this.taskCount = j;
  12801. this.selectPz();
  12802. this.getHomeWork();
  12803. this.getCourseDetail(2);
  12804. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  12805. if(flag){
  12806. if(flag2){
  12807. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12808. }else{
  12809. 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>`)
  12810. }
  12811. }else{
  12812. 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>`)
  12813. }
  12814. }
  12815. if ((this.courseDetail.userid == this.userid ||
  12816. (this.courseDetail.course_teacher &&
  12817. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
  12818. this.IsFollow) {
  12819. this.setCTask();
  12820. }
  12821. // var b = this.$refs["bz" + k][0];
  12822. // a.scrollTop = b.offsetTop;
  12823. },
  12824. addTools2(i) {
  12825. if (i == 4) {
  12826. // this.openTools2(4);
  12827. this.$message.error(this.lang.ssNotAvailable);
  12828. return;
  12829. }
  12830. if (i == 45) {
  12831. // this.openTools2(45);
  12832. this.$message.error(this.lang.ssNotAvailable);
  12833. return;
  12834. }
  12835. if (i == 47) {
  12836. // this.openTools2(47);
  12837. this.$message.error(this.lang.ssNotAvailable);
  12838. return;
  12839. }
  12840. if (i == 49) {
  12841. // this.openTools2(49);
  12842. this.$message.error(this.lang.ssNotAvailable);
  12843. return;
  12844. }
  12845. if (i == 62) {
  12846. // this.openTools(itemTaskIndex, 62, toolIndex);
  12847. this.$message.error(this.lang.ssNotAvailable);
  12848. return;
  12849. }
  12850. if (i == 15) {
  12851. // this.openTools(itemTaskIndex, 15, toolIndex);
  12852. this.$message.error(this.lang.ssNotAvailable);
  12853. return;
  12854. }
  12855. if (i == 40) {
  12856. // this.openTools(itemTaskIndex, 40, toolIndex);
  12857. this.$message.error(this.lang.ssNotAvailable);
  12858. return;
  12859. }
  12860. if (i == 41) {
  12861. // this.openTools(itemTaskIndex, 41, toolIndex);
  12862. this.$message.error(this.lang.ssNotAvailable);
  12863. return;
  12864. }
  12865. if (i == 42) {
  12866. // this.openTools(itemTaskIndex, 42, toolIndex);
  12867. this.$message.error(this.lang.ssNotAvailable);
  12868. return;
  12869. }
  12870. if (this.checktoolArray.length > 0) {
  12871. if (this.checktoolArray.indexOf(i) != -1) {
  12872. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12873. } else {
  12874. this.checktoolArray = [];
  12875. this.checktoolArray.push(i);
  12876. }
  12877. } else {
  12878. this.checktoolArray.push(i);
  12879. }
  12880. this.$forceUpdate();
  12881. },
  12882. jump() {
  12883. window.topU.postMessage({ tools: "43" }, "*");
  12884. },
  12885. getUpdateMore(f, checkboxList, searchTN, index) {
  12886. this.dialogVisibleMember = f;
  12887. this.checkboxList = checkboxList;
  12888. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12889. this.plIndex = index;
  12890. },
  12891. setPlname(a) {
  12892. if (this.plworkFile.length) {
  12893. this.plworkFile[this.plIndex].username = a;
  12894. } else {
  12895. this.worksSName = a;
  12896. }
  12897. this.dialogVisibleMember = false;
  12898. },
  12899. previewImg(url,w) {
  12900. this.$hevueImgPreview(url);
  12901. if(w){
  12902. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  12903. }
  12904. },
  12905. checkImg(list) {
  12906. if (!list.length) {
  12907. return;
  12908. }
  12909. this.$hevueImgPreview({
  12910. multiple: true, // 开启多图预览模式
  12911. imgList: list, // 需要预览的多图数组
  12912. });
  12913. },
  12914. change(val) {
  12915. console.log(val);
  12916. },
  12917. goTo(path) {
  12918. this.$router.push(path);
  12919. },
  12920. handlePictureCardPreview(url) {
  12921. this.dialogImageUrl = url;
  12922. this.pictureDialog = true;
  12923. },
  12924. clean(type) {
  12925. if (type == 1) {
  12926. this.studyJuri[0].cover.splice(0, 1);
  12927. } else if (type == 2) {
  12928. this.studyJuri[0].upVedio.splice(0, 1);
  12929. } else {
  12930. this.studyJuri[0].upFile.splice(0, 1);
  12931. }
  12932. },
  12933. clean2(index) {
  12934. this.plworkFile.splice(index, 1);
  12935. },
  12936. handleClose(done) {
  12937. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12938. this.videoDetail.sources[0].src = "";
  12939. }
  12940. this.commentIndexJson = {};
  12941. this.changeSplitScreenBehavior({code:99})
  12942. done();
  12943. },
  12944. fullTools() {
  12945. this.full = !this.full;
  12946. },
  12947. imgChange(file, fileList, type) {
  12948. if (type == 1) {
  12949. var _tmp = this.studyJuri[0].cover;
  12950. } else if (type == 2) {
  12951. var _tmp = this.studyJuri[0].upVedio;
  12952. } else {
  12953. var _tmp = this.studyJuri[0].upFile;
  12954. }
  12955. this.noneBtnImg = _tmp.length >= 1;
  12956. },
  12957. setContent(bool) {
  12958. this.contentDialog = bool;
  12959. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12960. document.querySelector(".workd_media").style.height = "650px";
  12961. } else if (document.querySelector(".workd_media")) {
  12962. document.querySelector(".workd_media").style.height = "auto";
  12963. }
  12964. },
  12965. setContent2(bool) {
  12966. this.mlDialog = bool;
  12967. if (
  12968. bool &&
  12969. this.contentDialog &&
  12970. document.querySelector(".workd_media")
  12971. ) {
  12972. document.querySelector(".workd_media").style.height = "650px";
  12973. } else if (document.querySelector(".workd_media")) {
  12974. document.querySelector(".workd_media").style.height = "auto";
  12975. }
  12976. },
  12977. openToolAll() {
  12978. this.toolDialogVisible = true;
  12979. },
  12980. addImg(e) {
  12981. var el = e.currentTarget;
  12982. // this.$message.success('触发上传')
  12983. el.getElementsByTagName("input")[0].click();
  12984. e.target.value = "";
  12985. },
  12986. addSelectAnswer() {
  12987. let params = [
  12988. {
  12989. uid: this.userid,
  12990. cid: this.id,
  12991. stage: this.courseType,
  12992. task: this.taskCount,
  12993. tool: this.toolindex,
  12994. content: this.selectAnswer.answer,
  12995. type: 7,
  12996. },
  12997. ];
  12998. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  12999. this.homeWorkLoading = true
  13000. this.ajax
  13001. .post(this.$store.state.api + "addCourseWorks", params)
  13002. .then((res) => {
  13003. this.$message({
  13004. message: this.lang.ssSubmitSuccess,
  13005. type: "success",
  13006. });
  13007. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13008. setTimeout(() => {
  13009. this.homeWorkLoading = false
  13010. }, 500);
  13011. this.dialogVisibleSelect = false;
  13012. // this.selectAnswer = {};
  13013. this.selectSWorks();
  13014. this.selectStudent();
  13015. })
  13016. .catch((err) => {
  13017. this.$message.error(this.lang.ssSubmitFailed);
  13018. console.error(err);
  13019. setTimeout(() => {
  13020. this.homeWorkLoading = false
  13021. }, 500);
  13022. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13023. });
  13024. },
  13025. addSelectAnswerTeacher() {
  13026. let params = [
  13027. {
  13028. uid: this.sStudent.userid,
  13029. cid: this.id,
  13030. stage: this.courseType,
  13031. task: this.taskCount,
  13032. tool: this.toolindex,
  13033. content: this.selectAnswer.answer,
  13034. type: 7,
  13035. },
  13036. ];
  13037. this.ajax
  13038. .post(this.$store.state.api + "addCourseWorks", params)
  13039. .then((res) => {
  13040. this.$message({
  13041. message: this.lang.ssSubmitSuccess,
  13042. type: "success",
  13043. });
  13044. this.dialogVisibleSelectTeacher = false;
  13045. // this.selectAnswer = {};
  13046. this.selectSWorks();
  13047. this.selectStudent();
  13048. })
  13049. .catch((err) => {
  13050. this.$message.error(this.lang.ssSubmitFailed);
  13051. console.error(err);
  13052. });
  13053. },
  13054. addSenWorks() {
  13055. for (var i = 0; i < this.sentenceList.length; i++) {
  13056. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13057. if (
  13058. this.sentenceList[i].chooseSenList[j] == undefined ||
  13059. this.sentenceList[i].chooseSenList[j] == ""
  13060. ) {
  13061. this.$message.error(this.lang.ssFillAnswersComplete);
  13062. return;
  13063. }
  13064. }
  13065. }
  13066. let params = [
  13067. {
  13068. uid: this.userid,
  13069. cid: this.id,
  13070. stage: this.courseType,
  13071. task: this.taskCount,
  13072. tool: this.toolindex,
  13073. content: JSON.stringify(this.sentenceList),
  13074. type: 9,
  13075. },
  13076. ];
  13077. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13078. this.homeWorkLoading = true
  13079. this.ajax
  13080. .post(this.$store.state.api + "addCourseWorks", params)
  13081. .then((res) => {
  13082. this.$message({
  13083. message: this.lang.ssSubmitSuccess,
  13084. type: "success",
  13085. });
  13086. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13087. setTimeout(() => {
  13088. this.homeWorkLoading = false
  13089. }, 500);
  13090. this.dialogVisibleSentence = false;
  13091. // this.selectAnswer = {};
  13092. this.selectSWorks();
  13093. this.selectStudent();
  13094. })
  13095. .catch((err) => {
  13096. this.$message.error(this.lang.ssSubmitFailed);
  13097. console.error(err);
  13098. setTimeout(() => {
  13099. this.homeWorkLoading = false
  13100. }, 500);
  13101. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13102. });
  13103. },
  13104. addSenWorksTeacher() {
  13105. for (var i = 0; i < this.sentenceList.length; i++) {
  13106. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13107. if (
  13108. this.sentenceList[i].chooseSenList[j] == undefined ||
  13109. this.sentenceList[i].chooseSenList[j] == ""
  13110. ) {
  13111. this.$message.error(this.lang.ssFillAnswersComplete);
  13112. return;
  13113. }
  13114. }
  13115. }
  13116. let params = [
  13117. {
  13118. uid: this.sStudent.userid,
  13119. cid: this.id,
  13120. stage: this.courseType,
  13121. task: this.taskCount,
  13122. tool: this.toolindex,
  13123. content: JSON.stringify(this.sentenceList),
  13124. type: 9,
  13125. },
  13126. ];
  13127. this.ajax
  13128. .post(this.$store.state.api + "addCourseWorks", params)
  13129. .then((res) => {
  13130. this.$message({
  13131. message: this.lang.ssSubmitSuccess,
  13132. type: "success",
  13133. });
  13134. this.dialogVisibleSentenceTeacher = false;
  13135. // this.selectAnswer = {};
  13136. this.selectSWorks();
  13137. this.selectStudent();
  13138. })
  13139. .catch((err) => {
  13140. this.$message.error(this.lang.ssSubmitFailed);
  13141. console.error(err);
  13142. });
  13143. },
  13144. returnTableText() {
  13145. this.$confirm(this.lang.ssConfirmRestoreTemplate, this.lang.ssPrompt, {
  13146. confirmButtonText: this.lang.ssConfirm,
  13147. cancelButtonText: this.lang.ssCancel,
  13148. type: "warning",
  13149. })
  13150. .then(() => {
  13151. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13152. })
  13153. .catch(() => {});
  13154. },
  13155. addTableWorks() {
  13156. let params = [
  13157. {
  13158. uid: this.userid,
  13159. cid: this.id,
  13160. stage: this.courseType,
  13161. task: this.taskCount,
  13162. tool: this.toolindex,
  13163. content: JSON.stringify(this.tableJson),
  13164. type: 10,
  13165. },
  13166. ];
  13167. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13168. this.homeWorkLoading = true
  13169. this.ajax
  13170. .post(this.$store.state.api + "addCourseWorks", params)
  13171. .then((res) => {
  13172. this.$message({
  13173. message: this.lang.ssSubmitSuccess,
  13174. type: "success",
  13175. });
  13176. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13177. setTimeout(() => {
  13178. this.homeWorkLoading = false
  13179. }, 500);
  13180. this.dialogVisibleTable = false;
  13181. // this.selectAnswer = {};
  13182. this.selectSWorks();
  13183. this.selectStudent();
  13184. })
  13185. .catch((err) => {
  13186. this.$message.error(this.lang.ssSubmitFailed);
  13187. console.error(err);
  13188. setTimeout(() => {
  13189. this.homeWorkLoading = false
  13190. }, 500);
  13191. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13192. });
  13193. },
  13194. tableRowClassName({ row, rowIndex }) {
  13195. if ((rowIndex + 1) % 2 === 0) {
  13196. return "even_row";
  13197. } else {
  13198. return "";
  13199. }
  13200. },
  13201. addTableWorksTeacher() {
  13202. let params = [
  13203. {
  13204. uid: this.sStudent.userid,
  13205. cid: this.id,
  13206. stage: this.courseType,
  13207. task: this.taskCount,
  13208. tool: this.toolindex,
  13209. content: JSON.stringify(this.tableJson),
  13210. type: 10,
  13211. },
  13212. ];
  13213. this.ajax
  13214. .post(this.$store.state.api + "addCourseWorks", params)
  13215. .then((res) => {
  13216. this.$message({
  13217. message: this.lang.ssSubmitSuccess,
  13218. type: "success",
  13219. });
  13220. this.dialogVisibleTableTeacher = false;
  13221. // this.selectAnswer = {};
  13222. this.selectSWorks();
  13223. this.selectStudent();
  13224. })
  13225. .catch((err) => {
  13226. this.$message.error(this.lang.ssSubmitFailed);
  13227. console.error(err);
  13228. });
  13229. },
  13230. returnWordText() {
  13231. this.$confirm(this.lang.ssConfirmRestoreTemplate, this.lang.ssPrompt, {
  13232. confirmButtonText: this.lang.ssConfirm,
  13233. cancelButtonText: this.lang.ssCancel,
  13234. type: "warning",
  13235. })
  13236. .then(() => {
  13237. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13238. })
  13239. .catch(() => {});
  13240. },
  13241. addWordWorks() {
  13242. let params = [
  13243. {
  13244. uid: this.userid,
  13245. cid: this.id,
  13246. stage: this.courseType,
  13247. task: this.taskCount,
  13248. tool: this.toolindex,
  13249. content: JSON.stringify(this.wordJson),
  13250. type: 13,
  13251. atool: 52,
  13252. },
  13253. ];
  13254. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13255. this.homeWorkLoading = true
  13256. this.ajax
  13257. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13258. .then((res) => {
  13259. this.$message({
  13260. message: this.lang.ssSubmitSuccess,
  13261. type: "success",
  13262. });
  13263. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13264. setTimeout(() => {
  13265. this.homeWorkLoading = false
  13266. }, 500);
  13267. this.dialogVisibleWord = false;
  13268. // this.selectAnswer = {};
  13269. this.selectSWorks();
  13270. this.selectStudent();
  13271. })
  13272. .catch((err) => {
  13273. this.$message.error(this.lang.ssSubmitFailed);
  13274. console.error(err);
  13275. setTimeout(() => {
  13276. this.homeWorkLoading = false
  13277. }, 500);
  13278. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13279. });
  13280. },
  13281. addWordWorksTeacher() {
  13282. let params = [
  13283. {
  13284. uid: this.sStudent.userid,
  13285. cid: this.id,
  13286. stage: this.courseType,
  13287. task: this.taskCount,
  13288. tool: this.toolindex,
  13289. content: JSON.stringify(this.wordJson),
  13290. type: 13,
  13291. atool: 52,
  13292. },
  13293. ];
  13294. this.ajax
  13295. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13296. .then((res) => {
  13297. this.$message({
  13298. message: this.lang.ssSubmitSuccess,
  13299. type: "success",
  13300. });
  13301. this.dialogVisibleWordTeacher = false;
  13302. // this.selectAnswer = {};
  13303. this.selectSWorks();
  13304. this.selectStudent();
  13305. })
  13306. .catch((err) => {
  13307. this.$message.error(this.lang.ssSubmitFailed);
  13308. console.error(err);
  13309. });
  13310. },
  13311. addCourseWorks(i) {
  13312. var typesql;
  13313. if (this.fileType === 0) {
  13314. typesql = 1;
  13315. } else if (this.fileType === 1) {
  13316. typesql = 4;
  13317. } else if (this.fileType === 2) {
  13318. typesql = 5;
  13319. } else if (this.fileType === 3) {
  13320. typesql = 12;
  13321. }
  13322. if (!this.studyJuri[0].cover[0].url) {
  13323. this.$message.error(this.lang.ssUploadFileRequired);
  13324. return;
  13325. }
  13326. let params = [
  13327. {
  13328. uid: this.userid,
  13329. cid: this.id,
  13330. stage: this.courseType,
  13331. task: i,
  13332. tool: this.toolindex,
  13333. content: this.studyJuri[0].cover[0].url,
  13334. type: typesql,
  13335. },
  13336. ];
  13337. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13338. this.homeWorkLoading = true
  13339. this.ajax
  13340. .post(this.$store.state.api + "addCourseWorksR", params)
  13341. .then((res) => {
  13342. this.$message({
  13343. message: this.lang.ssSubmitSuccess,
  13344. type: "success",
  13345. });
  13346. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13347. setTimeout(() => {
  13348. this.homeWorkLoading = false
  13349. }, 500);
  13350. this.studyJuri[0].cover = [];
  13351. this.dialogVisible = false;
  13352. this.getCourseDetail(2);
  13353. })
  13354. .catch((err) => {
  13355. this.$message.error(this.lang.ssSubmitFailed);
  13356. console.error(err);
  13357. setTimeout(() => {
  13358. this.homeWorkLoading = false
  13359. }, 500);
  13360. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13361. });
  13362. },
  13363. addCourseWorksPl(i) {
  13364. let _files = this.plworkFile;
  13365. var c = 1;
  13366. for (var k = 0; k < _files.length; k++) {
  13367. if (!_files[k].username) {
  13368. c = 2;
  13369. }
  13370. }
  13371. if (c == 2) {
  13372. this.$message.error(this.lang.ssEnterStudentName);
  13373. return;
  13374. }
  13375. let params = [
  13376. {
  13377. ateacher: this.userid,
  13378. cid: this.id,
  13379. stage: this.courseType,
  13380. task: i,
  13381. tool: this.toolindex,
  13382. content: JSON.stringify(_files),
  13383. },
  13384. ];
  13385. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13386. this.homeWorkLoading = true
  13387. this.ajax
  13388. .post(this.$store.state.api + "addCourseWorksPl", params)
  13389. .then((res) => {
  13390. this.$message({
  13391. message: this.lang.ssSubmitSuccess,
  13392. type: "success",
  13393. });
  13394. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  13395. setTimeout(() => {
  13396. this.homeWorkLoading = false
  13397. }, 500);
  13398. this.plworkFile = [];
  13399. this.dialogVisiblePl = false;
  13400. this.getCourseDetail(2);
  13401. })
  13402. .catch((err) => {
  13403. this.$message.error(this.lang.ssSubmitFailed);
  13404. console.error(err);
  13405. setTimeout(() => {
  13406. this.homeWorkLoading = false
  13407. }, 500);
  13408. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  13409. });
  13410. },
  13411. addCourseWorks2(i) {
  13412. var typesql;
  13413. if (this.fileType === 0) {
  13414. typesql = 0;
  13415. } else if (this.fileType === 1) {
  13416. typesql = 1;
  13417. } else if (this.fileType === 2) {
  13418. typesql = 3;
  13419. } else if (this.fileType === 3) {
  13420. typesql = 12;
  13421. }
  13422. if (!this.studyJuri[0].cover[0].url) {
  13423. this.$message.error(this.lang.ssUploadFileRequired);
  13424. return;
  13425. }
  13426. let params = [
  13427. {
  13428. uid: this.userid,
  13429. cid: this.id,
  13430. stage: this.courseType,
  13431. task: i,
  13432. tool: this.toolindex,
  13433. content: JSON.stringify({
  13434. type: typesql,
  13435. groupIndex: this.groupIndex,
  13436. url: this.studyJuri[0].cover[0].url,
  13437. }),
  13438. type: 11,
  13439. atool: 49,
  13440. text: "",
  13441. },
  13442. ];
  13443. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13444. this.homeWorkLoading = true
  13445. this.ajax
  13446. .post(this.$store.state.api + "addCourseWorks5", params)
  13447. .then((res) => {
  13448. this.$message({
  13449. message: this.lang.ssSubmitSuccess,
  13450. type: "success",
  13451. });
  13452. setTimeout(() => {
  13453. this.homeWorkLoading = false
  13454. }, 500);
  13455. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13456. type: typesql,
  13457. groupIndex: this.groupIndex,
  13458. url: this.studyJuri[0].cover[0].url,
  13459. }),type: "course_tool_sub" }, "success")
  13460. this.studyJuri[0].cover = [];
  13461. this.dialogVisibleGroupWork = false;
  13462. this.getCourseDetail(2);
  13463. })
  13464. .catch((err) => {
  13465. this.$message.error(this.lang.ssSubmitFailed);
  13466. console.error(err);
  13467. setTimeout(() => {
  13468. this.homeWorkLoading = false
  13469. }, 500);
  13470. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13471. type: typesql,
  13472. groupIndex: this.groupIndex,
  13473. url: this.studyJuri[0].cover[0].url,
  13474. }),type: "course_tool_sub" }, err)
  13475. });
  13476. },
  13477. addEnglishWork() {
  13478. this.myAnList = this.$refs['engJson'].myAnswerList;
  13479. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13480. this.$message.error(this.lang.ssEnterEssayContent);
  13481. return;
  13482. }
  13483. let params = [
  13484. {
  13485. uid: this.userid,
  13486. cid: this.id,
  13487. stage: this.courseType,
  13488. task: this.taskCount,
  13489. tool: this.englishToolIndex,
  13490. content: JSON.stringify(this.myAnList),
  13491. type: 16,
  13492. atool: 69,
  13493. text: "",
  13494. },
  13495. ];
  13496. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13497. this.homeWorkLoading = true
  13498. this.ajax
  13499. .post(this.$store.state.api + "addCourseWorks5", params)
  13500. .then((res) => {
  13501. this.$message({
  13502. message: this.lang.ssSubmitSuccess,
  13503. type: "success",
  13504. });
  13505. setTimeout(() => {
  13506. this.homeWorkLoading = false
  13507. }, 500);
  13508. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  13509. data: JSON.stringify(this.myAnList),
  13510. type: "course_tool_sub" }, "success")
  13511. this.myAnList = {};
  13512. this.englishList = {};
  13513. this.englishToolIndex = 0;
  13514. this.engDialogVisible = false;
  13515. this.selectSWorks();
  13516. this.selectStudent();
  13517. })
  13518. .catch((err) => {
  13519. this.$message.error(this.lang.ssSubmitFailed);
  13520. console.error(err);
  13521. setTimeout(() => {
  13522. this.homeWorkLoading = false
  13523. }, 500);
  13524. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  13525. data: JSON.stringify(this.myAnList),
  13526. type: "course_tool_sub" }, err)
  13527. });
  13528. },
  13529. addCourseWorksGong(i, data, tool) {
  13530. let params = [
  13531. {
  13532. uid: this.userid,
  13533. cid: this.id,
  13534. stage: this.courseType,
  13535. task: this.taskCount,
  13536. tool: i,
  13537. content: data,
  13538. type: 12,
  13539. atool: tool,
  13540. text: "",
  13541. },
  13542. ];
  13543. this.ajax
  13544. .post(this.$store.state.api + "addCourseWorks5", params)
  13545. .then((res) => {
  13546. this.$message({
  13547. message: this.lang.ssSubmitSuccess,
  13548. type: "success",
  13549. });
  13550. this.studyJuri[0].cover = [];
  13551. this.selectSWorks();
  13552. this.selectStudent();
  13553. })
  13554. .catch((err) => {
  13555. this.$message.error(this.lang.ssSubmitFailed);
  13556. console.error(err);
  13557. });
  13558. },
  13559. addCourseWorksGongTeacher(i, data, tool) {
  13560. let params = [
  13561. {
  13562. uid: this.sStudent.userid,
  13563. cid: this.id,
  13564. stage: this.courseType,
  13565. task: this.taskCount,
  13566. tool: i,
  13567. content: data,
  13568. type: 12,
  13569. atool: tool,
  13570. text: "",
  13571. },
  13572. ];
  13573. this.ajax
  13574. .post(this.$store.state.api + "addCourseWorks5", params)
  13575. .then((res) => {
  13576. this.$message({
  13577. message: this.lang.ssSubmitSuccess,
  13578. type: "success",
  13579. });
  13580. this.studyJuri[0].cover = [];
  13581. this.dialogVisibleWorks = false;
  13582. this.selectSWorks();
  13583. this.selectStudent();
  13584. })
  13585. .catch((err) => {
  13586. this.$message.error(this.lang.ssSubmitFailed);
  13587. console.error(err);
  13588. });
  13589. },
  13590. addCourseWorksGongPl(i, data, tool, type) {
  13591. let params = [
  13592. {
  13593. uid: this.sStudent.userid,
  13594. cid: this.id,
  13595. stage: this.courseType,
  13596. task: this.taskCount,
  13597. tool: i,
  13598. content: data,
  13599. type: type,
  13600. atool: tool,
  13601. text: "",
  13602. },
  13603. ];
  13604. this.ajax
  13605. .post(this.$store.state.api + "addCourseWorks5", params)
  13606. .then((res) => {
  13607. this.$message({
  13608. message: this.lang.ssSubmitSuccess,
  13609. type: "success",
  13610. });
  13611. this.studyJuri[0].cover = [];
  13612. this.dialogVisibleWorks = false;
  13613. this.selectSWorks();
  13614. this.selectStudent();
  13615. })
  13616. .catch((err) => {
  13617. this.$message.error(this.lang.ssSubmitFailed);
  13618. console.error(err);
  13619. });
  13620. },
  13621. addCourseWorksTeacher(i) {
  13622. var typesql;
  13623. if (this.sTool == 32) {
  13624. this.addCourseWorksGongTeacher(
  13625. this.toolindex,
  13626. this.studyJuri[0].cover[0].url,
  13627. this.sTool
  13628. );
  13629. return;
  13630. }
  13631. if (this.fileType === 0) {
  13632. typesql = 1;
  13633. } else if (this.fileType === 1) {
  13634. typesql = 4;
  13635. } else if (this.fileType === 2) {
  13636. typesql = 5;
  13637. } else if (this.fileType === 3) {
  13638. typesql = 12;
  13639. }
  13640. if (this.sTool == 50) {
  13641. this.addCourseWorksGongPl(
  13642. this.toolindex,
  13643. this.studyJuri[0].cover[0].url,
  13644. this.sTool,
  13645. typesql
  13646. );
  13647. return;
  13648. }
  13649. if (!this.studyJuri[0].cover[0].url) {
  13650. this.$message.error(this.lang.ssUploadFileRequired);
  13651. return;
  13652. }
  13653. let params = [
  13654. {
  13655. uid: this.sStudent.userid,
  13656. cid: this.id,
  13657. stage: this.courseType,
  13658. task: i,
  13659. tool: this.toolindex,
  13660. content: this.studyJuri[0].cover[0].url,
  13661. type: typesql,
  13662. ateacher: this.userid,
  13663. },
  13664. ];
  13665. this.ajax
  13666. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13667. .then((res) => {
  13668. this.$message({
  13669. message: this.lang.ssSubmitSuccess,
  13670. type: "success",
  13671. });
  13672. this.studyJuri[0].cover = [];
  13673. this.dialogVisibleWorks = false;
  13674. this.getCourseDetail(2);
  13675. })
  13676. .catch((err) => {
  13677. this.$message.error(this.lang.ssSubmitFailed);
  13678. console.error(err);
  13679. });
  13680. },
  13681. selectUploadStudent(type) {
  13682. const loading = this.$loading.service({
  13683. background: "rgba(255, 255, 255, 0.7)",
  13684. target: document.body,
  13685. });
  13686. let params = {
  13687. cid: this.uploadCid,
  13688. oid: this.oid,
  13689. cn: "",
  13690. };
  13691. this.ajax
  13692. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13693. .then((res) => {
  13694. loading.close();
  13695. var studentK = [];
  13696. if (this.isWorksS[this.toolindex].length > 0) {
  13697. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13698. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13699. }
  13700. studentK = studentK.join(",");
  13701. }
  13702. this.uploadStudentJuri = res.data[0].filter((el) => {
  13703. return studentK.indexOf(el.userid) == -1;
  13704. });
  13705. if (this.worksSName && this.worksSid) {
  13706. this.uploadStudentJuri.push({
  13707. userid: this.worksSid,
  13708. name: this.worksSName,
  13709. });
  13710. }
  13711. if (type == 1) {
  13712. this.plworkFile = [];
  13713. this.dialogVisibleSname = true;
  13714. } else if (type == 2) {
  13715. this.dialogVisiblePl = true;
  13716. }
  13717. })
  13718. .catch((err) => {
  13719. loading.close();
  13720. console.error(err);
  13721. });
  13722. },
  13723. selectPickStudent() {
  13724. const loading = this.$loading.service({
  13725. background: "rgba(255, 255, 255, 0.7)",
  13726. target: document.body,
  13727. });
  13728. let params = {
  13729. cid: this.uploadCid,
  13730. oid: this.oid,
  13731. cn: "",
  13732. };
  13733. this.ajax
  13734. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13735. .then((res) => {
  13736. loading.close();
  13737. this.uploadStudentJuri = res.data[0];
  13738. this.dialogVisiblePickPeople = true;
  13739. })
  13740. .catch((err) => {
  13741. loading.close();
  13742. console.error(err);
  13743. });
  13744. },
  13745. arrayToArray(arrayo, arrayt) {
  13746. let array1 = arrayo;
  13747. let array2 = arrayt;
  13748. let commonElements = [];
  13749. for (let i = 0; i < array1.length; i++) {
  13750. for (let j = 0; j < array2.length; j++) {
  13751. if (array1[i] === array2[j]) {
  13752. commonElements.push(array1[i]);
  13753. }
  13754. }
  13755. }
  13756. return commonElements;
  13757. },
  13758. selectWorksStudent() {
  13759. let params = {
  13760. oid: this.oid,
  13761. cid: this.courseDetail.juri,
  13762. };
  13763. this.ajax
  13764. .get(this.$store.state.api + "selectWorksStudent", params)
  13765. .then((res) => {
  13766. var a = res.data[0];
  13767. for (var i = 0; i < this.isWorksS.length; i++) {
  13768. this.noWorksS[i] = [];
  13769. var studentK = [];
  13770. if (this.isWorksS[i].length > 0) {
  13771. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13772. studentK.push(this.isWorksS[i][z].uid);
  13773. }
  13774. studentK = studentK.join(",");
  13775. for (var j = 0; j < a.length; j++) {
  13776. if (studentK.indexOf(a[j].userid) == -1) {
  13777. if (this.tcid) {
  13778. // a[j].classid.indexOf(this.tcid) != -1
  13779. if (
  13780. this.arrayToArray(
  13781. a[j].classid.split(","),
  13782. this.tcid.split(",")
  13783. ).length
  13784. ) {
  13785. this.noWorksS[i].push({
  13786. student: a[j].name,
  13787. userid: a[j].userid,
  13788. });
  13789. }
  13790. } else {
  13791. this.noWorksS[i].push({
  13792. student: a[j].name,
  13793. userid: a[j].userid,
  13794. });
  13795. }
  13796. }
  13797. }
  13798. } else {
  13799. for (var k = 0; k < a.length; k++) {
  13800. if (this.tcid) {
  13801. if (
  13802. this.arrayToArray(
  13803. a[k].classid.split(","),
  13804. this.tcid.split(",")
  13805. ).length
  13806. ) {
  13807. this.noWorksS[i].push({
  13808. student: a[k].name,
  13809. userid: a[k].userid,
  13810. });
  13811. }
  13812. } else {
  13813. this.noWorksS[i].push({
  13814. student: a[k].name,
  13815. userid: a[k].userid,
  13816. });
  13817. }
  13818. }
  13819. }
  13820. }
  13821. this.$forceUpdate();
  13822. if (
  13823. Object.keys(this.commentDetail).length &&
  13824. Object.keys(this.commentIndexJson).length &&
  13825. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13826. ) {
  13827. let a = 1;
  13828. let c = this.commentIndexJson;
  13829. if (
  13830. this.commentIndexJson.gindex ||
  13831. this.commentIndexJson.gindex === 0
  13832. ) {
  13833. for (
  13834. var i = 0;
  13835. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13836. i++
  13837. ) {
  13838. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13839. groupA: for (var k = 0; k < _el.length; k++) {
  13840. let el = _el[k];
  13841. if (el.wid == this.commentDetail.wid) {
  13842. a = 2;
  13843. this.commentOther(
  13844. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13845. this.commentIndexJson.toolIndex,
  13846. k,
  13847. this.commentIndexJson.gindex
  13848. );
  13849. break groupA;
  13850. }
  13851. }
  13852. }
  13853. if (a === 1) {
  13854. this.commentDetail = [];
  13855. this.commentIndexJson = {};
  13856. this.commentDialogVisible = false;
  13857. this.$message(this.lang.ssHomeworkDeleted);
  13858. }
  13859. } else {
  13860. if (this.isGroup && this.commentIndexJson.gid) {
  13861. groupA: for (
  13862. var i = 0;
  13863. i < this.courseGroup.group.length;
  13864. i++
  13865. ) {
  13866. let _group = this.courseGroup.group[i];
  13867. if (_group.id == this.commentIndexJson.gid) {
  13868. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13869. for (var k = 0; k < _el2.length; k++) {
  13870. let el2 = _el2[k];
  13871. if (el2.wid == this.commentDetail.wid) {
  13872. a = 2;
  13873. this.commentOther(
  13874. _el2[k],
  13875. this.commentIndexJson.toolIndex,
  13876. k,
  13877. null,
  13878. this.commentIndexJson.gid
  13879. );
  13880. break groupA;
  13881. }
  13882. }
  13883. }
  13884. }
  13885. }
  13886. if (a == 1) {
  13887. for (
  13888. var i = 0;
  13889. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13890. i++
  13891. ) {
  13892. let el =
  13893. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13894. if (el.wid == this.commentDetail.wid) {
  13895. a = 2;
  13896. this.commentOther(
  13897. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13898. this.commentIndexJson.toolIndex,
  13899. i
  13900. );
  13901. break;
  13902. }
  13903. }
  13904. }
  13905. if (a === 1) {
  13906. this.commentDetail = [];
  13907. this.commentIndexJson = {};
  13908. this.commentDialogVisible = false;
  13909. this.$message(this.lang.ssHomeworkDeleted);
  13910. }
  13911. }
  13912. }
  13913. })
  13914. .catch((err) => {
  13915. console.error(err);
  13916. });
  13917. },
  13918. selectStudent() {
  13919. if(this.selectStudentLoading) return
  13920. this.selectStudentLoading = true
  13921. //学生查看自己作业
  13922. let params = {
  13923. uid: this.userid,
  13924. cid: this.id,
  13925. s: this.courseType,
  13926. t: this.taskCount,
  13927. };
  13928. this.ajax
  13929. .get(this.$store.state.api + "selectStudentWorks", params)
  13930. .then((res) => {
  13931. var a =
  13932. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13933. this.taskCount
  13934. ].toolChoose;
  13935. var b = res.data[0];
  13936. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13937. var y = [
  13938. "AVI",
  13939. "NAVI",
  13940. "MPEG",
  13941. "ASF",
  13942. "MOV",
  13943. "WMV",
  13944. "3GP",
  13945. "RM",
  13946. "RMVB",
  13947. "FLV",
  13948. "F4V",
  13949. "H.264",
  13950. "H.265",
  13951. "REAL VIDEO",
  13952. "MKV",
  13953. "WebM",
  13954. "HDDVD",
  13955. "MP4",
  13956. "MPG",
  13957. "M4V",
  13958. "MGV",
  13959. "OGV",
  13960. "QTM",
  13961. "STR",
  13962. "AMC",
  13963. "DVX",
  13964. "EVO",
  13965. "DAT",
  13966. "OGG",
  13967. "OGM",
  13968. ];
  13969. for (var i = 0; i < a.length; i++) {
  13970. this.workStudent[i] = [];
  13971. for (var j = 0; j < b.length; j++) {
  13972. if (i == b[j].tool) {
  13973. if (
  13974. (b[j].type == 1 ||
  13975. b[j].type == 4 ||
  13976. b[j].type == 5 ||
  13977. b[j].type == 6 ||
  13978. b[j].type == 12 ||
  13979. b[j].type == 7) &&
  13980. a[i].tool[0] != 15 &&
  13981. a[i].tool[0] != 4 &&
  13982. a[i].tool[0] != 45 &&
  13983. a[i].tool[0] != 50 &&
  13984. a[i].tool[0] != 32 &&
  13985. a[i].tool[0] != 57 &&
  13986. a[i].tool[0] != 52 &&
  13987. a[i].tool[0] != 69
  13988. ) {
  13989. if (
  13990. c.indexOf(
  13991. b[j].content
  13992. .split(".")
  13993. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13994. ) != -1 &&
  13995. a[i].tool[0] == 16 &&
  13996. b[j].atool != 50
  13997. ) {
  13998. this.workStudent[i].push({
  13999. works: b[j].content,
  14000. sName: b[j].name,
  14001. score: b[j].score,
  14002. img: b[j].img,
  14003. type: 1,
  14004. time: b[j].time,
  14005. userid: b[j].userid,
  14006. wid: b[j].id,
  14007. });
  14008. } else if (
  14009. y.indexOf(
  14010. b[j].content
  14011. .split(".")
  14012. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14013. ) != -1 &&
  14014. a[i].tool[0] == 16 &&
  14015. b[j].atool != 50
  14016. ) {
  14017. this.workStudent[i].push({
  14018. userid: b[j].userid,
  14019. wid: b[j].id,
  14020. works: b[j].content,
  14021. sName: b[j].name,
  14022. score: b[j].score,
  14023. img: b[j].img,
  14024. type: 3,
  14025. time: b[j].time,
  14026. });
  14027. } else if (b[j].type == 6 && b[j].atool != 50) {
  14028. this.workStudent[i].push({
  14029. userid: b[j].userid,
  14030. wid: b[j].id,
  14031. works: b[j].content,
  14032. sName: b[j].name,
  14033. score: b[j].score,
  14034. img: b[j].img,
  14035. type: 4,
  14036. time: b[j].time,
  14037. });
  14038. } else if (b[j].type == 7 && b[j].atool != 50) {
  14039. this.workStudent[i].push({
  14040. userid: b[j].userid,
  14041. wid: b[j].id,
  14042. works: b[j].content,
  14043. sName: b[j].name,
  14044. score: b[j].score,
  14045. img: b[j].img,
  14046. type: 5,
  14047. time: b[j].time,
  14048. });
  14049. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14050. this.workStudent[i].push({
  14051. works: b[j].content,
  14052. sName: b[j].name,
  14053. score: b[j].score,
  14054. img: b[j].img,
  14055. type: 12,
  14056. time: b[j].time,
  14057. userid: b[j].userid,
  14058. wid: b[j].id,
  14059. });
  14060. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14061. this.workStudent[i].push({
  14062. works: b[j].content,
  14063. sName: b[j].name,
  14064. score: b[j].score,
  14065. img: b[j].img,
  14066. type: 0,
  14067. time: b[j].time,
  14068. userid: b[j].userid,
  14069. wid: b[j].id,
  14070. });
  14071. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14072. this.workStudent[i].push({
  14073. works: b[j].content,
  14074. sName: b[j].name,
  14075. score: b[j].score,
  14076. img: b[j].img,
  14077. type: 0,
  14078. time: b[j].time,
  14079. userid: b[j].userid,
  14080. wid: b[j].id,
  14081. });
  14082. }
  14083. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14084. this.workStudent[i].push({
  14085. works: b[j].content,
  14086. sName: b[j].name,
  14087. score: b[j].score,
  14088. img: b[j].img,
  14089. type: 2,
  14090. time: b[j].time,
  14091. userid: b[j].userid,
  14092. wid: b[j].id,
  14093. });
  14094. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14095. this.workStudent[i].push({
  14096. works: b[j].content,
  14097. sName: b[j].name,
  14098. score: b[j].score,
  14099. img: b[j].img,
  14100. type: 20,
  14101. time: b[j].time,
  14102. userid: b[j].userid,
  14103. wid: b[j].id,
  14104. });
  14105. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14106. //问卷
  14107. this.workStudent[i].push({
  14108. works: b[j].content,
  14109. sName: b[j].name,
  14110. score: b[j].score,
  14111. img: b[j].img,
  14112. type: 2,
  14113. time: b[j].time,
  14114. userid: b[j].userid,
  14115. wid: b[j].id,
  14116. });
  14117. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14118. //选择题
  14119. this.workStudent[i].push({
  14120. works: b[j].content,
  14121. sName: b[j].name,
  14122. score: b[j].score,
  14123. img: b[j].img,
  14124. type: 8,
  14125. time: b[j].time,
  14126. userid: b[j].userid,
  14127. wid: b[j].id,
  14128. });
  14129. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14130. //选择题
  14131. this.workStudent[i].push({
  14132. works: b[j].content,
  14133. sName: b[j].name,
  14134. score: b[j].score,
  14135. img: b[j].img,
  14136. type: 9,
  14137. time: b[j].time,
  14138. userid: b[j].userid,
  14139. wid: b[j].id,
  14140. });
  14141. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14142. //选择题
  14143. this.workStudent[i].push({
  14144. works: b[j].content,
  14145. sName: b[j].name,
  14146. score: b[j].score,
  14147. img: b[j].img,
  14148. type: 10,
  14149. time: b[j].time,
  14150. userid: b[j].userid,
  14151. wid: b[j].id,
  14152. });
  14153. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14154. //选择题
  14155. this.workStudent[i].push({
  14156. works: b[j].content,
  14157. sName: b[j].name,
  14158. score: b[j].score,
  14159. img: b[j].img,
  14160. type: 13,
  14161. time: b[j].time,
  14162. userid: b[j].userid,
  14163. wid: b[j].id,
  14164. });
  14165. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14166. //选择题
  14167. this.workStudent[i].push({
  14168. works: b[j].content,
  14169. sName: b[j].name,
  14170. score: b[j].score,
  14171. img: b[j].img,
  14172. type: 12,
  14173. time: b[j].time,
  14174. userid: b[j].userid,
  14175. wid: b[j].id,
  14176. });
  14177. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14178. //选择题
  14179. this.workStudent[i].push({
  14180. works: b[j].content,
  14181. sName: b[j].name,
  14182. score: b[j].score,
  14183. img: b[j].img,
  14184. type: 12,
  14185. time: b[j].time,
  14186. userid: b[j].userid,
  14187. wid: b[j].id,
  14188. });
  14189. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14190. //选择题
  14191. this.workStudent[i].push({
  14192. works: b[j].content,
  14193. sName: b[j].name,
  14194. score: b[j].score,
  14195. img: b[j].img,
  14196. type: 15,
  14197. time: b[j].time,
  14198. userid: b[j].userid,
  14199. wid: b[j].id,
  14200. });
  14201. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14202. //英语写作
  14203. this.workStudent[i].push({
  14204. works: b[j].content,
  14205. sName: b[j].name,
  14206. score: b[j].score,
  14207. img: b[j].img,
  14208. type: 16,
  14209. time: b[j].time,
  14210. userid: b[j].userid,
  14211. wid: b[j].id,
  14212. aiCode: b[j].aiCode,
  14213. teacherCode: b[j].teacherCode
  14214. });
  14215. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14216. //英语口语
  14217. this.workStudent[i].push({
  14218. works: b[j].content,
  14219. sName: b[j].name,
  14220. score: b[j].score,
  14221. img: b[j].img,
  14222. type: 17,
  14223. time: b[j].time,
  14224. userid: b[j].userid,
  14225. wid: b[j].id,
  14226. });
  14227. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14228. //交互视频
  14229. this.workStudent[i].push({
  14230. works: b[j].content,
  14231. sName: b[j].name,
  14232. score: b[j].score,
  14233. img: b[j].img,
  14234. type: 14,
  14235. time: b[j].time,
  14236. userid: b[j].userid,
  14237. wid: b[j].id,
  14238. });
  14239. }
  14240. }
  14241. }
  14242. }
  14243. this.selectStudentLoading = false
  14244. })
  14245. .catch((err) => {
  14246. this.selectStudentLoading = false
  14247. console.error(err);
  14248. });
  14249. },
  14250. openVideo(w) {
  14251. this.videoDetail = {};
  14252. this.playerOptions1.sources[0].src = w.works;
  14253. this.videoDetail = this.playerOptions1;
  14254. this.videoVisible = true;
  14255. },
  14256. isLikes(wid, uid, t, c, isLikes,sName) {
  14257. if (isLikes == false) {
  14258. let params = [
  14259. {
  14260. wid: wid,
  14261. lid: uid,
  14262. t: t,
  14263. c: c,
  14264. },
  14265. ];
  14266. this.ajax
  14267. .post(this.$store.state.api + "insertComment", params)
  14268. .then((res) => {
  14269. this.$message({
  14270. message: this.lang.ssLikeSuccess,
  14271. type: "success",
  14272. });
  14273. this.selectSWorks();
  14274. this.selectStudent();
  14275. if(this.tType!=2){
  14276. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14277. }
  14278. })
  14279. .catch((err) => {
  14280. this.$message.error(this.lang.ssLikeFailed);
  14281. console.error(err);
  14282. });
  14283. } else {
  14284. let params = {
  14285. wid: wid,
  14286. lid: uid,
  14287. type: t,
  14288. };
  14289. this.ajax
  14290. .get(this.$store.state.api + "deleteComment", params)
  14291. .then((res) => {
  14292. this.$message({
  14293. message: this.lang.ssCancelLikeSuccess,
  14294. type: "success",
  14295. });
  14296. this.selectSWorks();
  14297. this.selectStudent();
  14298. })
  14299. .catch((err) => {
  14300. console.error(err);
  14301. });
  14302. }
  14303. },
  14304. deleteComment(wid) {
  14305. this.$confirm(this.lang.ssConfirmDeleteComment, this.lang.ssPrompt, {
  14306. confirmButtonText: this.lang.ssConfirm,
  14307. cancelButtonText: this.lang.ssCancel,
  14308. type: "warning",
  14309. })
  14310. .then(() => {
  14311. let params = {
  14312. id: wid,
  14313. };
  14314. this.ajax
  14315. .get(this.$store.state.api + "deleteComment2", params)
  14316. .then((res) => {
  14317. this.$message({
  14318. message: this.lang.ssDeleteCommentSuccess,
  14319. type: "success",
  14320. });
  14321. this.selectSWorks();
  14322. this.selectStudent();
  14323. })
  14324. .catch((err) => {
  14325. console.error(err);
  14326. });
  14327. })
  14328. .catch(() => {});
  14329. },
  14330. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14331. this.commentIndexJson = {
  14332. toolIndex: toolIndex,
  14333. wIndex: wIndex,
  14334. gindex: gindex,
  14335. gid: gid,
  14336. };
  14337. this.commentDetail = [];
  14338. this.commentDialogVisible = true;
  14339. this.commentDetail = w;
  14340. if (w.works && w.type == 1) {
  14341. // this.pptImgUrl = "";
  14342. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14343. if (
  14344. a.indexOf(
  14345. w.works
  14346. .split(".")
  14347. [w.works.split(".").length - 1].toLocaleUpperCase()
  14348. ) != -1
  14349. ) {
  14350. let _uuurl = await this.checkLink(w.works);
  14351. console.log(_uuurl)
  14352. this.pptImgUrl =
  14353. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14354. this.showPDF = false;
  14355. } else if (
  14356. w.works
  14357. .split(".")
  14358. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14359. ) {
  14360. this.pptImgUrl = w.works;
  14361. this.showPDF = true;
  14362. }
  14363. } else if (w.works && w.type == 3) {
  14364. this.videoDetail = {};
  14365. this.playerOptions1.sources[0].src = w.works;
  14366. this.videoDetail = this.playerOptions1;
  14367. // this.videoVisible = true;
  14368. } else if (w.works && w.type == 4) {
  14369. this.eScore = JSON.parse(w.works);
  14370. this.rateJson =
  14371. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14372. this.taskCount
  14373. ].toolChoose[toolIndex].rateJson;
  14374. } else if (w.works && w.type == 10) {
  14375. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14376. } else if (w.works && w.type == 13) {
  14377. this.wordJson =
  14378. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14379. this.taskCount
  14380. ].toolChoose[toolIndex].wordJson;
  14381. }
  14382. },
  14383. async openScore(w, index) {
  14384. this.wScore = 0;
  14385. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14386. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14387. this.commentDetail = [];
  14388. if(w.type == 17){
  14389. this.dialogVisibleENScore = true;
  14390. }else{
  14391. this.dialogVisibleScore = true;
  14392. }
  14393. this.commentDetail = w;
  14394. if (w.works && w.type == 1) {
  14395. this.pptImgUrl = "";
  14396. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14397. if (
  14398. a.indexOf(
  14399. w.works
  14400. .split(".")
  14401. [w.works.split(".").length - 1].toLocaleUpperCase()
  14402. ) != -1
  14403. ) {
  14404. let _uuurl = await this.checkLink(w.works);
  14405. console.log(_uuurl)
  14406. this.pptImgUrl =
  14407. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14408. this.showPDF = false;
  14409. } else if (
  14410. w.works
  14411. .split(".")
  14412. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14413. ) {
  14414. this.pptImgUrl = w.works;
  14415. this.showPDF = true;
  14416. }
  14417. } else if (w.works && w.type == 3) {
  14418. this.videoDetail = {};
  14419. this.playerOptions1.sources[0].src = w.works;
  14420. this.videoDetail = this.playerOptions1;
  14421. }else if(w.type == 17){
  14422. let englishVoiceJson = {}
  14423. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14424. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14425. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14426. .toolChoose[index].englishVoiceJson
  14427. : {};
  14428. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14429. }
  14430. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14431. },
  14432. addComment(wid, uid, t,detail) {
  14433. if (this.commentText == "") {
  14434. this.$message.error(this.lang.ssEnterComment);
  14435. return;
  14436. }
  14437. let params2 = [
  14438. {
  14439. wid: wid,
  14440. lid: uid,
  14441. t: t,
  14442. },
  14443. ];
  14444. this.ajax
  14445. .post(this.$store.state.api + "getComment", params2)
  14446. .then((res) => {
  14447. if (res.data[0].length > 0) {
  14448. this.$message.error(this.lang.ssOnlyOneCommentPerHomework);
  14449. } else {
  14450. let params = [
  14451. {
  14452. wid: wid,
  14453. lid: uid,
  14454. t: t,
  14455. c: this.commentText,
  14456. },
  14457. ];
  14458. this.ajax
  14459. .post(this.$store.state.api + "insertComment", params)
  14460. .then((res) => {
  14461. this.$message({
  14462. message: this.lang.ssCommentSuccess,
  14463. type: "success",
  14464. });
  14465. this.commentText = "";
  14466. this.selectSWorks();
  14467. this.selectStudent();
  14468. if(this.tType!=2){
  14469. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14470. }
  14471. })
  14472. .catch((err) => {
  14473. this.$message.error(this.lang.ssCommentFailed);
  14474. console.error(err);
  14475. });
  14476. }
  14477. })
  14478. .catch((err) => {
  14479. // this.$message.error("评论失败");
  14480. console.error(err);
  14481. });
  14482. },
  14483. scoreWork(wid,sName) {
  14484. if (this.wScore == 0) {
  14485. this.$message.error(this.lang.ssPleaseRate);
  14486. return;
  14487. }
  14488. let params = [
  14489. {
  14490. wid: wid,
  14491. score: JSON.stringify({
  14492. wScore: this.wScore,
  14493. detail: this.scoreDetail,
  14494. }),
  14495. },
  14496. ];
  14497. this.ajax
  14498. .post(this.$store.state.api + "scoreWork", params)
  14499. .then((res) => {
  14500. this.$message({
  14501. message: this.lang.ssRatingSuccess,
  14502. type: "success",
  14503. });
  14504. this.wScore = 0;
  14505. this.scoreDetail = "";
  14506. this.dialogVisibleScore = false;
  14507. this.selectSWorks();
  14508. this.selectStudent();
  14509. if(this.tType!=2){
  14510. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14511. }
  14512. })
  14513. .catch((err) => {
  14514. this.$message.error(this.lang.ssRatingFailed);
  14515. console.error(err);
  14516. });
  14517. },
  14518. openXz(w, i) {
  14519. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14520. .taskJson[this.taskCount].toolChoose[i].selectJson
  14521. ? JSON.parse(
  14522. JSON.stringify(
  14523. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14524. this.taskCount
  14525. ].toolChoose[i].selectJson
  14526. )
  14527. )
  14528. : { url: "", select: [], answer: [] };
  14529. var a = w.works.split(",");
  14530. for (var k = 0; k < a.length; k++) {
  14531. a[k] = parseInt(a[k]);
  14532. }
  14533. this.selectAnswer = { answer: a, stu: w.sName };
  14534. this.isSelect = true;
  14535. this.dialogVisibleSelect = true;
  14536. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14537. },
  14538. openSen(w, i) {
  14539. this.sentenceList1 = JSON.parse(w.works);
  14540. this.sentenceList1.stuName = w.sName;
  14541. this.dialogVisibleSentence1 = true;
  14542. },
  14543. openPj(w, toolindex) {
  14544. this.isStar = true;
  14545. this.eScore = JSON.parse(w);
  14546. this.rateJson =
  14547. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14548. this.taskCount
  14549. ].toolChoose[toolindex].rateJson;
  14550. this.studentEvalDialogVisible = true;
  14551. },
  14552. openEnglishEva(id,i){
  14553. let params = {
  14554. wid: id
  14555. };
  14556. this.ajax
  14557. .get(this.$store.state.api + "selectEngWork", params)
  14558. .then((res) => {
  14559. this.evaEngJson.message = res.data[0][0];
  14560. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14561. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14562. .toolChoose[i].englishList;
  14563. this.engEvaDialogVisible = true;
  14564. })
  14565. .catch((err) => {
  14566. console.error(err);
  14567. });
  14568. },
  14569. deleteWorks(id) {
  14570. this.$confirm(this.lang.ssConfirmDeleteWork, this.lang.ssPrompt, {
  14571. confirmButtonText: this.lang.ssConfirm,
  14572. cancelButtonText: this.lang.ssCancel,
  14573. type: "warning",
  14574. })
  14575. .then(() => {
  14576. let params = [
  14577. {
  14578. id: id,
  14579. },
  14580. ];
  14581. this.ajax
  14582. .post(this.$store.state.api + "deleteCourseWork", params)
  14583. .then((res) => {
  14584. this.$message({
  14585. message: this.lang.ssDeleteSuccess,
  14586. type: "success",
  14587. });
  14588. this.selectStudent();
  14589. this.selectSWorks();
  14590. this.selectSLook();
  14591. })
  14592. .catch((err) => {
  14593. this.$message.error(this.lang.ssNetworkError);
  14594. console.error(err);
  14595. });
  14596. })
  14597. .catch(() => {});
  14598. },
  14599. selectSWorks(gindex) {
  14600. if(this.selectSWorksLoading) return
  14601. this.selectSWorksLoading = true
  14602. //教师查看全部作业
  14603. let params = {
  14604. cid: this.id,
  14605. s: this.courseType,
  14606. t: this.taskCount,
  14607. };
  14608. this.ajax
  14609. .get(this.$store.state.api + "selectSWorks", params)
  14610. .then((res) => {
  14611. var a =
  14612. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14613. this.taskCount
  14614. ].toolChoose;
  14615. var b = res.data[0];
  14616. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14617. var y = [
  14618. "AVI",
  14619. "NAVI",
  14620. "MPEG",
  14621. "ASF",
  14622. "MOV",
  14623. "WMV",
  14624. "3GP",
  14625. "RM",
  14626. "RMVB",
  14627. "FLV",
  14628. "F4V",
  14629. "H.264",
  14630. "H.265",
  14631. "REAL VIDEO",
  14632. "MKV",
  14633. "WebM",
  14634. "HDDVD",
  14635. "MP4",
  14636. "MPG",
  14637. "M4V",
  14638. "MGV",
  14639. "OGV",
  14640. "QTM",
  14641. "STR",
  14642. "AMC",
  14643. "DVX",
  14644. "EVO",
  14645. "DAT",
  14646. "OGG",
  14647. "OGM",
  14648. ];
  14649. var d = res.data[1];
  14650. var e = res.data[2];
  14651. var f = res.data[3];
  14652. let _worksStudent = [];
  14653. var _worksStudent2 = [];
  14654. for (var i = 0; i < a.length; i++) {
  14655. _worksStudent[i] = [];
  14656. _worksStudent2[i] = [];
  14657. if (
  14658. !this.isCloseList[i] ||
  14659. this.isCloseList[i].isClose == undefined
  14660. ) {
  14661. this.isCloseList[i] = { isClose: 0 };
  14662. }
  14663. this.groupStudent[i] = [];
  14664. this.groupStudentUid[i] = [];
  14665. if (this.isGroup) {
  14666. for (
  14667. var groupI = 0;
  14668. groupI < this.courseGroup.group.length;
  14669. groupI++
  14670. ) {
  14671. this.courseGroup.group[groupI].works[i] = [];
  14672. }
  14673. }
  14674. this.isWorksS[i] = [];
  14675. this.checkJson[i] = [];
  14676. if (a[i].tool[0] == 49) {
  14677. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14678. this.groupStudent[i][gA] = [];
  14679. this.groupStudentUid[i][gA] = [];
  14680. _worksStudent[i][gA] = [];
  14681. _worksStudent2[i][gA] = [];
  14682. this.isCloseList[i][gA] = [];
  14683. for (var g = 0; g < f.length; g++) {
  14684. if (
  14685. f[g].ttype == 2 &&
  14686. this.tcid &&
  14687. this.arrayToArray(
  14688. (f[g].classid ? f[g].classid.split(",") : []),
  14689. this.tcid.split(",")
  14690. ).length == 0
  14691. ) {
  14692. continue;
  14693. }
  14694. let _classId = this.arrayToArray(
  14695. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14696. this.classId ? this.classId.split(",") : []
  14697. )
  14698. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14699. (f[g].classid ? f[g].classid.split(",") : []),
  14700. this.tcid.split(",")
  14701. ).length !== 0 || this.arrayToArray(
  14702. (f[g].classid ? f[g].classid.split(",") : []),
  14703. _classId
  14704. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14705. this.groupStudent[i][gA].push(f[g]);
  14706. this.groupStudentUid[i][gA].push(f[g].userid);
  14707. }
  14708. }
  14709. }
  14710. this.$forceUpdate();
  14711. }
  14712. for (var j = 0; j < b.length; j++) {
  14713. if (
  14714. b[j].ttype == 2 &&
  14715. this.tcid &&
  14716. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14717. .length == 0
  14718. ) {
  14719. continue;
  14720. }
  14721. var likesCount = 0;
  14722. var commentCount = 0;
  14723. var isLikes = false;
  14724. var commentJson = [];
  14725. var likeJson = [];
  14726. var data = b[j];
  14727. if (i == b[j].tool) {
  14728. if (data.type == 2 && a[i].tool[0] == 4) {
  14729. // if(JSON.parse(data.content)[0].anwer){
  14730. var checkL =
  14731. JSON.parse(data.content)[0].anwer instanceof Array
  14732. ? JSON.parse(data.content)[0].anwer
  14733. : JSON.parse(data.content)[0].anwer.split(",");
  14734. for (var z = 0; z < checkL.length; z++) {
  14735. if (!this.checkJson[i][z]) {
  14736. this.checkJson[i].push({
  14737. checkCount: [],
  14738. checkPerson: [],
  14739. rightPerson: [],
  14740. });
  14741. }
  14742. if (!this.checkJson[i][z].checkCount.length) {
  14743. this.checkJson[i][z].checkCount = [];
  14744. let _askItemCount = JSON.parse(data.content)[0].askJson
  14745. .askJson[z].askItem;
  14746. for (var aic = 0; aic < _askItemCount; aic++) {
  14747. this.checkJson[i][z].checkCount.push(0);
  14748. }
  14749. }
  14750. if (checkL[z] instanceof Array) {
  14751. if (
  14752. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14753. checkL[z].sort().join(",")
  14754. ) {
  14755. this.checkJson[i][z].rightPerson.push(data.name);
  14756. }
  14757. for (var q = 0; q < checkL[z].length; q++) {
  14758. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14759. ? this.checkJson[i][z].checkPerson[
  14760. parseInt(checkL[z][q])
  14761. ].push(data.name)
  14762. : (this.checkJson[i][z].checkPerson[
  14763. parseInt(checkL[z][q])
  14764. ] = [data.name]);
  14765. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14766. ? this.checkJson[i][z].checkCount[
  14767. parseInt(checkL[z][q])
  14768. ]++
  14769. : (this.checkJson[i][z].checkCount[
  14770. parseInt(checkL[z][q])
  14771. ] = 1);
  14772. }
  14773. } else {
  14774. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14775. this.checkJson[i][z].rightPerson.push(data.name);
  14776. }
  14777. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14778. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14779. ? this.checkJson[i][z].checkPerson[
  14780. parseInt(checkL[z])
  14781. ].push(data.name)
  14782. : (this.checkJson[i][z].checkPerson[
  14783. parseInt(checkL[z])
  14784. ] = [data.name]);
  14785. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14786. ? this.checkJson[i][z].checkCount[
  14787. parseInt(checkL[z])
  14788. ]++
  14789. : (this.checkJson[i][z].checkCount[
  14790. parseInt(checkL[z])
  14791. ] = 1);
  14792. }
  14793. }
  14794. }
  14795. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14796. var checkL = JSON.parse(data.content)[0].anwer;
  14797. if(a[i].testJson.testCount != JSON.parse(data.content)[0].testJson.testCount){
  14798. continue
  14799. }
  14800. // console.log('选择题')
  14801. for (var z = 0; z < checkL.length; z++) {
  14802. if (!this.checkJson[i][z]) {
  14803. this.checkJson[i].push({
  14804. checkCount: [],
  14805. checkPerson: [],
  14806. rightPerson: [],
  14807. });
  14808. }
  14809. if (!this.checkJson[i][z].checkCount.length) {
  14810. this.checkJson[i][z].checkCount = [];
  14811. let _askItemCount = JSON.parse(data.content)[0].testJson
  14812. .testJson[z].testItem;
  14813. for (var aic = 0; aic < _askItemCount; aic++) {
  14814. this.checkJson[i][z].checkCount.push(0);
  14815. }
  14816. }
  14817. if (checkL[z] instanceof Array) {
  14818. if (
  14819. JSON.parse(data.content)[0]
  14820. .testJson.testJson[z].answer.sort()
  14821. .join(",") == checkL[z].sort().join(",")
  14822. ) {
  14823. this.checkJson[i][z].rightPerson.push(data.name);
  14824. }
  14825. for (var q = 0; q < checkL[z].length; q++) {
  14826. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14827. ? this.checkJson[i][z].checkPerson[
  14828. parseInt(checkL[z][q])
  14829. ].push(data.name)
  14830. : (this.checkJson[i][z].checkPerson[
  14831. parseInt(checkL[z][q])
  14832. ] = [data.name]);
  14833. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14834. ? this.checkJson[i][z].checkCount[
  14835. parseInt(checkL[z][q])
  14836. ]++
  14837. : (this.checkJson[i][z].checkCount[
  14838. parseInt(checkL[z][q])
  14839. ] = 1);
  14840. }
  14841. } else {
  14842. if (
  14843. JSON.parse(data.content)[0].testJson.testJson[z]
  14844. .answer == checkL[z]
  14845. ) {
  14846. this.checkJson[i][z].rightPerson.push(data.name);
  14847. }
  14848. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14849. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14850. ? this.checkJson[i][z].checkPerson[
  14851. parseInt(checkL[z])
  14852. ].push(data.name)
  14853. : (this.checkJson[i][z].checkPerson[
  14854. parseInt(checkL[z])
  14855. ] = [data.name]);
  14856. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14857. ? this.checkJson[i][z].checkCount[
  14858. parseInt(checkL[z])
  14859. ]++
  14860. : (this.checkJson[i][z].checkCount[
  14861. parseInt(checkL[z])
  14862. ] = 1);
  14863. }
  14864. }
  14865. }
  14866. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14867. var checkL = JSON.parse(data.content);
  14868. for (var z = 0; z < checkL.length; z++) {
  14869. if (!this.checkJson[i][z]) {
  14870. this.checkJson[i].push({
  14871. checkCount: [],
  14872. checkPerson: [],
  14873. rightPerson: [],
  14874. });
  14875. }
  14876. this.checkJson[i][z].checkPerson.push(data.name);
  14877. if (
  14878. checkL[z].chooseSenList.toString() ==
  14879. checkL[z].rightAnswer.toString()
  14880. ) {
  14881. this.checkJson[i][z].rightPerson.push(data.name);
  14882. }
  14883. }
  14884. }
  14885. for (var k = 0; k < d.length; k++) {
  14886. //点赞
  14887. if (d[k].workId == b[j].id) {
  14888. likesCount++;
  14889. likeJson.push(d[k])
  14890. if (d[k].likesId == this.userid) {
  14891. isLikes = true;
  14892. }
  14893. }
  14894. }
  14895. for (var l = 0; l < e.length; l++) {
  14896. //评论
  14897. if (e[l].workId == b[j].id) {
  14898. if (e[l].comment != "") {
  14899. commentCount++;
  14900. commentJson.push({
  14901. commentText: e[l].comment,
  14902. commentTime: e[l].commentTime,
  14903. commentPeople: e[l].commentPeople,
  14904. userid: e[l].userid,
  14905. wid: e[l].id,
  14906. });
  14907. }
  14908. }
  14909. }
  14910. if (
  14911. (b[j].type == 1 ||
  14912. b[j].type == 4 ||
  14913. b[j].type == 5 ||
  14914. b[j].type == 6 ||
  14915. b[j].type == 12 ||
  14916. b[j].type == 7) &&
  14917. a[i].tool[0] != 15 &&
  14918. a[i].tool[0] != 4 &&
  14919. a[i].tool[0] != 45 &&
  14920. a[i].tool[0] != 50 &&
  14921. a[i].tool[0] != 32 &&
  14922. a[i].tool[0] != 57 &&
  14923. a[i].tool[0] != 52
  14924. ) {
  14925. if (
  14926. c.indexOf(
  14927. b[j].content
  14928. .split(".")
  14929. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14930. ) != -1 &&
  14931. a[i].tool[0] == 16 &&
  14932. b[j].atool != 50
  14933. ) {
  14934. let _works = {
  14935. userid: b[j].userid,
  14936. ateacher: b[j].ateacher,
  14937. wid: b[j].id,
  14938. works: b[j].content,
  14939. sName: b[j].name,
  14940. type: 1,
  14941. ttype:b[j].ttype,
  14942. time: b[j].time,
  14943. score: b[j].score,
  14944. img: b[j].img,
  14945. likesCount: likesCount,
  14946. commentCount: commentCount,
  14947. isLikes: isLikes,
  14948. commentJson: commentJson,
  14949. likeJson:likeJson
  14950. };
  14951. if (this.isGroup) {
  14952. let isGw = 1;
  14953. for (
  14954. var groupI = 0;
  14955. groupI < this.courseGroup.group.length;
  14956. groupI++
  14957. ) {
  14958. let gid = this.courseGroup.group[groupI].id;
  14959. if (
  14960. this.courseGroupStudentUid[gid].indexOf(
  14961. b[j].userid
  14962. ) != -1
  14963. ) {
  14964. isGw = 2;
  14965. this.courseGroup.group[groupI].works[i].push(_works);
  14966. break;
  14967. }
  14968. }
  14969. if (isGw == 1) {
  14970. _worksStudent[i].push(_works);
  14971. }
  14972. } else {
  14973. _worksStudent[i].push(_works);
  14974. }
  14975. _worksStudent2[i].push(_works);
  14976. this.isWorksS[i].push({
  14977. uid: b[j].userid,
  14978. sName: b[j].name,
  14979. });
  14980. } else if (
  14981. y.indexOf(
  14982. b[j].content
  14983. .split(".")
  14984. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14985. ) != -1 &&
  14986. a[i].tool[0] == 16 &&
  14987. b[j].atool != 50
  14988. ) {
  14989. let _works = {
  14990. userid: b[j].userid,
  14991. ateacher: b[j].ateacher,
  14992. wid: b[j].id,
  14993. works: b[j].content,
  14994. sName: b[j].name,
  14995. type: 3,
  14996. ttype:b[j].ttype,
  14997. time: b[j].time,
  14998. score: b[j].score,
  14999. img: b[j].img,
  15000. likesCount: likesCount,
  15001. commentCount: commentCount,
  15002. isLikes: isLikes,
  15003. commentJson: commentJson,
  15004. likeJson:likeJson
  15005. };
  15006. if (this.isGroup) {
  15007. let isGw = 1;
  15008. for (
  15009. var groupI = 0;
  15010. groupI < this.courseGroup.group.length;
  15011. groupI++
  15012. ) {
  15013. let gid = this.courseGroup.group[groupI].id;
  15014. if (
  15015. this.courseGroupStudentUid[gid].indexOf(
  15016. b[j].userid
  15017. ) != -1
  15018. ) {
  15019. isGw = 2;
  15020. this.courseGroup.group[groupI].works[i].push(_works);
  15021. break;
  15022. }
  15023. }
  15024. if (isGw == 1) {
  15025. _worksStudent[i].push(_works);
  15026. }
  15027. } else {
  15028. _worksStudent[i].push(_works);
  15029. }
  15030. _worksStudent2[i].push(_works);
  15031. this.isWorksS[i].push({
  15032. uid: b[j].userid,
  15033. sName: b[j].name,
  15034. });
  15035. } else if (b[j].type == 6 && b[j].atool != 50) {
  15036. let _works = {
  15037. userid: b[j].userid,
  15038. ateacher: b[j].ateacher,
  15039. wid: b[j].id,
  15040. works: b[j].content,
  15041. sName: b[j].name,
  15042. type: 4,
  15043. ttype:b[j].ttype,
  15044. time: b[j].time,
  15045. score: b[j].score,
  15046. img: b[j].img,
  15047. likesCount: likesCount,
  15048. commentCount: commentCount,
  15049. isLikes: isLikes,
  15050. commentJson: commentJson,
  15051. likeJson:likeJson
  15052. };
  15053. _worksStudent[i].push(_works);
  15054. _worksStudent2[i].push(_works);
  15055. this.isWorksS[i].push({
  15056. uid: b[j].userid,
  15057. sName: b[j].name,
  15058. });
  15059. } else if (b[j].type == 7 && b[j].atool != 50) {
  15060. let _work = {
  15061. userid: b[j].userid,
  15062. ateacher: b[j].ateacher,
  15063. wid: b[j].id,
  15064. works: b[j].content,
  15065. sName: b[j].name,
  15066. type: 5,
  15067. ttype:b[j].ttype,
  15068. time: b[j].time,
  15069. score: b[j].score,
  15070. img: b[j].img,
  15071. likesCount: likesCount,
  15072. commentCount: commentCount,
  15073. isLikes: isLikes,
  15074. commentJson: commentJson,
  15075. likeJson:likeJson
  15076. };
  15077. _worksStudent[i].push(_work);
  15078. _worksStudent2[i].push(_work);
  15079. this.isWorksS[i].push({
  15080. uid: b[j].userid,
  15081. sName: b[j].name,
  15082. });
  15083. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15084. let _works = {
  15085. userid: b[j].userid,
  15086. ateacher: b[j].ateacher,
  15087. wid: b[j].id,
  15088. works: b[j].content,
  15089. sName: b[j].name,
  15090. type: 12,
  15091. ttype:b[j].ttype,
  15092. time: b[j].time,
  15093. score: b[j].score,
  15094. img: b[j].img,
  15095. likesCount: likesCount,
  15096. commentCount: commentCount,
  15097. isLikes: isLikes,
  15098. commentJson: commentJson,
  15099. likeJson:likeJson
  15100. };
  15101. if (this.isGroup) {
  15102. let isGw = 1;
  15103. for (
  15104. var groupI = 0;
  15105. groupI < this.courseGroup.group.length;
  15106. groupI++
  15107. ) {
  15108. let gid = this.courseGroup.group[groupI].id;
  15109. if (
  15110. this.courseGroupStudentUid[gid].indexOf(
  15111. b[j].userid
  15112. ) != -1
  15113. ) {
  15114. isGw = 2;
  15115. this.courseGroup.group[groupI].works[i].push(_works);
  15116. break;
  15117. }
  15118. }
  15119. if (isGw == 1) {
  15120. _worksStudent[i].push(_works);
  15121. }
  15122. } else {
  15123. _worksStudent[i].push(_works);
  15124. }
  15125. _worksStudent2[i].push(_works);
  15126. this.isWorksS[i].push({
  15127. uid: b[j].userid,
  15128. sName: b[j].name,
  15129. });
  15130. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15131. let _works = {
  15132. userid: b[j].userid,
  15133. ateacher: b[j].ateacher,
  15134. wid: b[j].id,
  15135. works: b[j].content,
  15136. sName: b[j].name,
  15137. type: 0,
  15138. ttype:b[j].ttype,
  15139. time: b[j].time,
  15140. score: b[j].score,
  15141. img: b[j].img,
  15142. likesCount: likesCount,
  15143. commentCount: commentCount,
  15144. isLikes: isLikes,
  15145. commentJson: commentJson,
  15146. likeJson:likeJson
  15147. };
  15148. if (this.isGroup) {
  15149. let isGw = 1;
  15150. for (
  15151. var groupI = 0;
  15152. groupI < this.courseGroup.group.length;
  15153. groupI++
  15154. ) {
  15155. let gid = this.courseGroup.group[groupI].id;
  15156. if (
  15157. this.courseGroupStudentUid[gid].indexOf(
  15158. b[j].userid
  15159. ) != -1
  15160. ) {
  15161. isGw = 2;
  15162. this.courseGroup.group[groupI].works[i].push(_works);
  15163. break;
  15164. }
  15165. }
  15166. if (isGw == 1) {
  15167. _worksStudent[i].push(_works);
  15168. }
  15169. } else {
  15170. _worksStudent[i].push(_works);
  15171. }
  15172. _worksStudent2[i].push(_works);
  15173. this.isWorksS[i].push({
  15174. uid: b[j].userid,
  15175. sName: b[j].name,
  15176. });
  15177. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15178. let _works = {
  15179. userid: b[j].userid,
  15180. ateacher: b[j].ateacher,
  15181. wid: b[j].id,
  15182. works: b[j].content,
  15183. sName: b[j].name,
  15184. type: 0,
  15185. ttype:b[j].ttype,
  15186. time: b[j].time,
  15187. score: b[j].score,
  15188. img: b[j].img,
  15189. likesCount: likesCount,
  15190. commentCount: commentCount,
  15191. isLikes: isLikes,
  15192. commentJson: commentJson,
  15193. likeJson:likeJson
  15194. };
  15195. if (this.isGroup) {
  15196. let isGw = 1;
  15197. for (
  15198. var groupI = 0;
  15199. groupI < this.courseGroup.group.length;
  15200. groupI++
  15201. ) {
  15202. let gid = this.courseGroup.group[groupI].id;
  15203. if (
  15204. this.courseGroupStudentUid[gid].indexOf(
  15205. b[j].userid
  15206. ) != -1
  15207. ) {
  15208. isGw = 2;
  15209. this.courseGroup.group[groupI].works[i].push(_works);
  15210. break;
  15211. }
  15212. }
  15213. if (isGw == 1) {
  15214. _worksStudent[i].push(_works);
  15215. }
  15216. } else {
  15217. _worksStudent[i].push(_works);
  15218. }
  15219. _worksStudent2[i].push(_works);
  15220. this.isWorksS[i].push({
  15221. uid: b[j].userid,
  15222. sName: b[j].name,
  15223. });
  15224. }
  15225. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15226. let _works = {
  15227. userid: b[j].userid,
  15228. ateacher: b[j].ateacher,
  15229. wid: b[j].id,
  15230. works: b[j].content,
  15231. sName: b[j].name,
  15232. type: 2,
  15233. ttype:b[j].ttype,
  15234. time: b[j].time,
  15235. score: b[j].score,
  15236. img: b[j].img,
  15237. likesCount: likesCount,
  15238. commentCount: commentCount,
  15239. isLikes: isLikes,
  15240. commentJson: commentJson,
  15241. likeJson:likeJson
  15242. };
  15243. if (this.isGroup) {
  15244. let isGw = 1;
  15245. for (
  15246. var groupI = 0;
  15247. groupI < this.courseGroup.group.length;
  15248. groupI++
  15249. ) {
  15250. let gid = this.courseGroup.group[groupI].id;
  15251. if (
  15252. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15253. -1
  15254. ) {
  15255. isGw = 2;
  15256. this.courseGroup.group[groupI].works[i].push(_works);
  15257. break;
  15258. }
  15259. }
  15260. if (isGw == 1) {
  15261. _worksStudent[i].push(_works);
  15262. }
  15263. } else {
  15264. _worksStudent[i].push(_works);
  15265. }
  15266. _worksStudent2[i].push(_works);
  15267. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15268. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15269. let _works = {
  15270. userid: b[j].userid,
  15271. ateacher: b[j].ateacher,
  15272. wid: b[j].id,
  15273. works: b[j].content,
  15274. sName: b[j].name,
  15275. type: 20,
  15276. ttype:b[j].ttype,
  15277. time: b[j].time,
  15278. score: b[j].score,
  15279. img: b[j].img,
  15280. likesCount: likesCount,
  15281. commentCount: commentCount,
  15282. isLikes: isLikes,
  15283. commentJson: commentJson,
  15284. likeJson:likeJson
  15285. };
  15286. if (this.isGroup) {
  15287. let isGw = 1;
  15288. for (
  15289. var groupI = 0;
  15290. groupI < this.courseGroup.group.length;
  15291. groupI++
  15292. ) {
  15293. let gid = this.courseGroup.group[groupI].id;
  15294. if (
  15295. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15296. -1
  15297. ) {
  15298. isGw = 2;
  15299. this.courseGroup.group[groupI].works[i].push(_works);
  15300. break;
  15301. }
  15302. }
  15303. if (isGw == 1) {
  15304. _worksStudent[i].push(_works);
  15305. }
  15306. } else {
  15307. _worksStudent[i].push(_works);
  15308. }
  15309. _worksStudent2[i].push(_works);
  15310. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15311. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15312. //问卷
  15313. let _work = {
  15314. userid: b[j].userid,
  15315. ateacher: b[j].ateacher,
  15316. wid: b[j].id,
  15317. works: b[j].content,
  15318. sName: b[j].name,
  15319. type: 2,
  15320. ttype:b[j].ttype,
  15321. time: b[j].time,
  15322. score: b[j].score,
  15323. img: b[j].img,
  15324. likesCount: likesCount,
  15325. commentCount: commentCount,
  15326. isLikes: isLikes,
  15327. commentJson: commentJson,
  15328. likeJson:likeJson
  15329. };
  15330. _worksStudent[i].push(_work);
  15331. _worksStudent2[i].push(_work);
  15332. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15333. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15334. //选择题
  15335. let _work = {
  15336. userid: b[j].userid,
  15337. ateacher: b[j].ateacher,
  15338. wid: b[j].id,
  15339. works: b[j].content,
  15340. sName: b[j].name,
  15341. type: 8,
  15342. ttype:b[j].ttype,
  15343. time: b[j].time,
  15344. score: b[j].score,
  15345. img: b[j].img,
  15346. likesCount: likesCount,
  15347. commentCount: commentCount,
  15348. isLikes: isLikes,
  15349. commentJson: commentJson,
  15350. likeJson:likeJson
  15351. };
  15352. _worksStudent[i].push(_work);
  15353. _worksStudent2[i].push(_work);
  15354. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15355. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15356. //选择题
  15357. let _work = {
  15358. userid: b[j].userid,
  15359. ateacher: b[j].ateacher,
  15360. wid: b[j].id,
  15361. works: b[j].content,
  15362. sName: b[j].name,
  15363. type: 9,
  15364. ttype:b[j].ttype,
  15365. time: b[j].time,
  15366. score: b[j].score,
  15367. img: b[j].img,
  15368. likesCount: likesCount,
  15369. commentCount: commentCount,
  15370. isLikes: isLikes,
  15371. commentJson: commentJson,
  15372. likeJson:likeJson
  15373. };
  15374. _worksStudent[i].push(_work);
  15375. _worksStudent2[i].push(_work);
  15376. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15377. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15378. //选择题
  15379. let _work = {
  15380. userid: b[j].userid,
  15381. ateacher: b[j].ateacher,
  15382. wid: b[j].id,
  15383. works: b[j].content,
  15384. sName: b[j].name,
  15385. type: 10,
  15386. ttype:b[j].ttype,
  15387. time: b[j].time,
  15388. score: b[j].score,
  15389. img: b[j].img,
  15390. likesCount: likesCount,
  15391. commentCount: commentCount,
  15392. isLikes: isLikes,
  15393. commentJson: commentJson,
  15394. likeJson:likeJson
  15395. };
  15396. _worksStudent[i].push(_work);
  15397. _worksStudent2[i].push(_work);
  15398. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15399. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15400. //选择题
  15401. let _work = {
  15402. userid: b[j].userid,
  15403. ateacher: b[j].ateacher,
  15404. wid: b[j].id,
  15405. works: b[j].content,
  15406. sName: b[j].name,
  15407. type: 13,
  15408. ttype:b[j].ttype,
  15409. time: b[j].time,
  15410. score: b[j].score,
  15411. img: b[j].img,
  15412. likesCount: likesCount,
  15413. commentCount: commentCount,
  15414. isLikes: isLikes,
  15415. commentJson: commentJson,
  15416. likeJson:likeJson
  15417. };
  15418. _worksStudent[i].push(_work);
  15419. _worksStudent2[i].push(_work);
  15420. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15421. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15422. //选择题
  15423. let _work = {
  15424. userid: b[j].userid,
  15425. ateacher: b[j].ateacher,
  15426. wid: b[j].id,
  15427. works: b[j].content,
  15428. sName: b[j].name,
  15429. type: 16,
  15430. ttype:b[j].ttype,
  15431. time: b[j].time,
  15432. score: b[j].score,
  15433. img: b[j].img,
  15434. likesCount: likesCount,
  15435. commentCount: commentCount,
  15436. isLikes: isLikes,
  15437. commentJson: commentJson,
  15438. aiCode: b[j].aiCode,
  15439. teacherCode: b[j].teacherCode,
  15440. likeJson:likeJson
  15441. };
  15442. _worksStudent[i].push(_work);
  15443. _worksStudent2[i].push(_work);
  15444. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15445. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15446. //英语口语
  15447. let _work = {
  15448. userid: b[j].userid,
  15449. ateacher: b[j].ateacher,
  15450. wid: b[j].id,
  15451. works: b[j].content,
  15452. sName: b[j].name,
  15453. type: 17,
  15454. ttype:b[j].ttype,
  15455. time: b[j].time,
  15456. score: b[j].score,
  15457. img: b[j].img,
  15458. likesCount: likesCount,
  15459. commentCount: commentCount,
  15460. isLikes: isLikes,
  15461. commentJson: commentJson,
  15462. likeJson:likeJson
  15463. };
  15464. _worksStudent[i].push(_work);
  15465. _worksStudent2[i].push(_work);
  15466. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15467. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15468. //交互视频
  15469. let _work = {
  15470. userid: b[j].userid,
  15471. ateacher: b[j].ateacher,
  15472. wid: b[j].id,
  15473. works: b[j].content,
  15474. sName: b[j].name,
  15475. type: 14,
  15476. ttype:b[j].ttype,
  15477. time: b[j].time,
  15478. score: b[j].score,
  15479. img: b[j].img,
  15480. likesCount: likesCount,
  15481. commentCount: commentCount,
  15482. isLikes: isLikes,
  15483. commentJson: commentJson,
  15484. likeJson:likeJson
  15485. };
  15486. _worksStudent[i].push(_work);
  15487. _worksStudent2[i].push(_work);
  15488. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15489. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15490. let _gindex = JSON.parse(b[j].content);
  15491. if (
  15492. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15493. b[j].userid
  15494. ) != -1
  15495. ) {
  15496. let _work = {
  15497. userid: b[j].userid,
  15498. ateacher: b[j].ateacher,
  15499. wid: b[j].id,
  15500. works: _gindex.url,
  15501. sName: b[j].name,
  15502. type: _gindex.type,
  15503. ttype:b[j].ttype,
  15504. time: b[j].time,
  15505. score: b[j].score,
  15506. img: b[j].img,
  15507. likesCount: likesCount,
  15508. commentCount: commentCount,
  15509. isLikes: isLikes,
  15510. commentJson: commentJson,
  15511. likeJson:likeJson
  15512. };
  15513. _worksStudent[i][_gindex.groupIndex].push(_work);
  15514. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15515. }
  15516. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15517. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15518. let _work = {
  15519. userid: b[j].userid,
  15520. ateacher: b[j].ateacher,
  15521. wid: b[j].id,
  15522. works: b[j].content,
  15523. sName: b[j].name ? b[j].name : b[j].userid,
  15524. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15525. ttype:b[j].ttype,
  15526. time: b[j].time,
  15527. score: b[j].score,
  15528. img: b[j].img,
  15529. likesCount: likesCount,
  15530. commentCount: commentCount,
  15531. isLikes: isLikes,
  15532. commentJson: commentJson,
  15533. likeJson:likeJson
  15534. };
  15535. _worksStudent[i].push(_work);
  15536. _worksStudent2[i].push(_work);
  15537. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15538. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15539. let _work = {
  15540. userid: b[j].userid,
  15541. ateacher: b[j].ateacher,
  15542. wid: b[j].id,
  15543. works: b[j].content,
  15544. sName: b[j].name ? b[j].name : b[j].userid,
  15545. type: 12,
  15546. ttype:b[j].ttype,
  15547. time: b[j].time,
  15548. score: b[j].score,
  15549. img: b[j].img,
  15550. likesCount: likesCount,
  15551. commentCount: commentCount,
  15552. isLikes: isLikes,
  15553. commentJson: commentJson,
  15554. likeJson:likeJson
  15555. };
  15556. _worksStudent[i].push(_work);
  15557. _worksStudent2[i].push(_work);
  15558. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15559. } else if (
  15560. a[i].tool[0] == 57 &&
  15561. b[j].atool == 57 &&
  15562. b[j].type == 12
  15563. ) {
  15564. let _work = {
  15565. userid: b[j].userid,
  15566. ateacher: b[j].ateacher,
  15567. wid: b[j].id,
  15568. works: b[j].content,
  15569. sName: b[j].name ? b[j].name : b[j].userid,
  15570. type: 12,
  15571. ttype:b[j].ttype,
  15572. time: b[j].time,
  15573. score: b[j].score,
  15574. img: b[j].img,
  15575. likesCount: likesCount,
  15576. commentCount: commentCount,
  15577. isLikes: isLikes,
  15578. commentJson: commentJson,
  15579. likeJson:likeJson
  15580. };
  15581. _worksStudent[i].push(_work);
  15582. _worksStudent2[i].push(_work);
  15583. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15584. } else if (
  15585. a[i].tool[0] == 57 &&
  15586. b[j].atool == 57 &&
  15587. b[j].type == 15
  15588. ) {
  15589. let _work = {
  15590. userid: b[j].userid,
  15591. ateacher: b[j].ateacher,
  15592. wid: b[j].id,
  15593. works: b[j].content,
  15594. sName: b[j].name ? b[j].name : b[j].userid,
  15595. type: 15,
  15596. ttype:b[j].ttype,
  15597. time: b[j].time,
  15598. score: b[j].score,
  15599. img: b[j].img,
  15600. likesCount: likesCount,
  15601. commentCount: commentCount,
  15602. isLikes: isLikes,
  15603. commentJson: commentJson,
  15604. likeJson:likeJson
  15605. };
  15606. _worksStudent[i].push(_work);
  15607. _worksStudent2[i].push(_work);
  15608. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15609. }
  15610. }
  15611. }
  15612. if (_worksStudent[i] && _worksStudent[i].length) {
  15613. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15614. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15615. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15616. var scoreA = parseFloat(jscoreA);
  15617. var scoreB = parseFloat(jscoreB);
  15618. if (scoreA == scoreB) {
  15619. return b.likesCount - a.likesCount;
  15620. }
  15621. return scoreB - scoreA;
  15622. });
  15623. if (this.isGroup) {
  15624. for (
  15625. var groupI = 0;
  15626. groupI < this.courseGroup.group.length;
  15627. groupI++
  15628. ) {
  15629. this.courseGroup.group[groupI].works[i] =
  15630. this.courseGroup.group[groupI].works[i].sort(function (
  15631. a,
  15632. b
  15633. ) {
  15634. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15635. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15636. var scoreA = parseFloat(jscoreA);
  15637. var scoreB = parseFloat(jscoreB);
  15638. if (scoreA == scoreB) {
  15639. return b.likesCount - a.likesCount;
  15640. }
  15641. return scoreB - scoreA;
  15642. });
  15643. }
  15644. }
  15645. }
  15646. }
  15647. this.timeWorkList = _worksStudent2;
  15648. for (var i = 0; i < a.length; i++) {
  15649. for (var j = 0; j < b.length; j++) {
  15650. var data = b[j];
  15651. if (i == b[j].tool) {
  15652. if (data.type == 2 || data.type == 8) {
  15653. for (var z = 0; z < this.checkJson[i].length; z++) {
  15654. this.checkJson[i][z].checkPerent = [];
  15655. this.checkJson[i][z].right = Math.round(
  15656. (this.checkJson[i][z].rightPerson.length /
  15657. parseInt(_worksStudent[i].length)) *
  15658. 100
  15659. );
  15660. let aaaa = this.checkJson[i][z];
  15661. for (
  15662. var k = 0;
  15663. k < this.checkJson[i][z].checkCount.length;
  15664. k++
  15665. ) {
  15666. this.checkJson[i][z].checkPerent.push(
  15667. Math.round(
  15668. (this.checkJson[i][z].checkCount[k] /
  15669. parseInt(_worksStudent[i].length)) *
  15670. 100
  15671. )
  15672. );
  15673. }
  15674. }
  15675. } else if (data.type == 9) {
  15676. for (var z = 0; z < this.checkJson[i].length; z++) {
  15677. this.checkJson[i][z].checkPerent = [];
  15678. this.checkJson[i][z].right = Math.round(
  15679. (this.checkJson[i][z].rightPerson.length /
  15680. this.checkJson[i][z].checkPerson.length) *
  15681. 100
  15682. );
  15683. }
  15684. }
  15685. }
  15686. }
  15687. }
  15688. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15689. this.joinGroup(gindex);
  15690. }
  15691. this.worksStudent = _worksStudent;
  15692. this.selectWorksStudent();
  15693. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15694. this.$nextTick(()=>{
  15695. setTimeout(()=>{
  15696. setTimeout(()=>{
  15697. this.panToolHeight('tool-'+ci);
  15698. }, 500)
  15699. }, 0)
  15700. })
  15701. }
  15702. this.selectSWorksLoading = false
  15703. })
  15704. .catch((err) => {
  15705. this.selectSWorksLoading = false
  15706. console.error(err);
  15707. });
  15708. },
  15709. pngToWhiteBg(file) {
  15710. const _file = file;
  15711. let read = new FileReader();
  15712. read.readAsDataURL(file); // 文件转base64
  15713. return new Promise((resolve, reject) => {
  15714. read.onload = (e) => {
  15715. let img = new Image();
  15716. img.src = e.target.result;
  15717. img.onload = async () => {
  15718. // 生成canvas
  15719. let canvas = document.createElement("canvas");
  15720. let context = canvas.getContext("2d");
  15721. // 绘制图片到canvas上
  15722. canvas.width = img.width;
  15723. canvas.height = img.height;
  15724. // 在canvas绘制前填充白色背景
  15725. context.fillStyle = "#fff";
  15726. context.fillRect(0, 0, canvas.width, canvas.height);
  15727. context.drawImage(img, 0, 0);
  15728. let base64 = canvas.toDataURL(file["type"], 1);
  15729. let newFile = this.dataUrlToFile(base64, _file);
  15730. resolve(newFile);
  15731. };
  15732. };
  15733. });
  15734. },
  15735. dataUrlToFile(dataurl, file) {
  15736. let arr = dataurl.split(","),
  15737. mime = arr[0].match(/:(.*?);/)[1],
  15738. bstr = atob(arr[1]),
  15739. n = bstr.length,
  15740. u8arr = new Uint8Array(n);
  15741. while (n--) {
  15742. u8arr[n] = bstr.charCodeAt(n);
  15743. }
  15744. // return new Blob([u8arr], { type: mime });
  15745. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15746. type: mime,
  15747. });
  15748. },
  15749. async beforeUpload1(event, type, i) {
  15750. // this.$message.success('进入上传')
  15751. var file = "";
  15752. if (type == 5) {
  15753. file = event;
  15754. } else {
  15755. file = event.target.files[0];
  15756. }
  15757. var credentials = {
  15758. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15759. secretAccessKey: "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",
  15760. }; //秘钥形式的登录上传
  15761. window.AWS.config.update(credentials);
  15762. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15763. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15764. var _this = this;
  15765. _this.progress = 0;
  15766. _this.proVisible = true;
  15767. _this.isFinishSize = 0;
  15768. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15769. var b = [
  15770. "DOC",
  15771. "DOCX",
  15772. "DOCM",
  15773. "DOTM",
  15774. "DOTX",
  15775. "PPTX",
  15776. "PPSX",
  15777. "PPT",
  15778. "PPS",
  15779. "PPTM",
  15780. "POTM",
  15781. "PPAM",
  15782. "POTX",
  15783. "PPSM",
  15784. ];
  15785. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15786. var photoA = [
  15787. "BMP",
  15788. "GIF",
  15789. "PNG",
  15790. "JPEG",
  15791. "JPEG",
  15792. "JPG",
  15793. "TIF",
  15794. "PCX",
  15795. "TGA",
  15796. "EXIF",
  15797. "FPX",
  15798. "SVG",
  15799. "APNG",
  15800. ];
  15801. // if (
  15802. // b.indexOf(
  15803. // file.name
  15804. // .split(".")
  15805. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15806. // ) != -1
  15807. // ) {
  15808. // if (file.size / 1024 / 1024 > 10) {
  15809. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15810. // return;
  15811. // }
  15812. // } else if (
  15813. // excelA.indexOf(
  15814. // file.name
  15815. // .split(".")
  15816. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15817. // ) != "-1"
  15818. // ) {
  15819. // if (file.size / 1024 / 1024 > 5) {
  15820. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15821. // return;
  15822. // }
  15823. // }
  15824. if (
  15825. photoA.indexOf(
  15826. file.name
  15827. .split(".")
  15828. [file.name.split(".").length - 1].toLocaleUpperCase()
  15829. ) != -1 &&
  15830. type != 4
  15831. ) {
  15832. // const blob = await imageConversion.compress(file, 0.8)
  15833. file = await this.pngToWhiteBg(file);
  15834. const blob = await imageConversion.compressAccurately(file, 256);
  15835. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15836. file = new File([blob], file.name, { type: file.type });
  15837. }
  15838. if (file) {
  15839. var params = {
  15840. Key:
  15841. file.name.split(".")[0] +
  15842. new Date().getTime() +
  15843. "." +
  15844. file.name.split(".")[file.name.split(".").length - 1],
  15845. ContentType: file.type,
  15846. Body: file,
  15847. "Access-Control-Allow-Credentials": "*",
  15848. ACL: "public-read",
  15849. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15850. var options = {
  15851. // partSize: 2048 * 1024 * 1024,
  15852. partSize: 1024 * 1024 * 1024,
  15853. queueSize: 2,
  15854. leavePartsOnError: true,
  15855. };
  15856. bucket
  15857. .upload(params, options)
  15858. .on("httpUploadProgress", function (evt) {
  15859. //这里可以写进度条
  15860. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15861. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15862. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15863. })
  15864. .send(function (err, data) {
  15865. _this.progress = 100;
  15866. _this.isFinishSize = _this.isAllSize;
  15867. setTimeout(() => {
  15868. _this.proVisible = false;
  15869. }, 1000);
  15870. if (err) {
  15871. var a = _this.$refs.upload1.uploadFiles;
  15872. a.splice(a.length - 1, a.length);
  15873. _this.$message.error(this.lang.ssUploadFailed);
  15874. } else {
  15875. // _this.$message.success('上传成功')
  15876. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15877. var c = [
  15878. "AVI",
  15879. "NAVI",
  15880. "MPEG",
  15881. "ASF",
  15882. "MOV",
  15883. "WMV",
  15884. "3GP",
  15885. "RM",
  15886. "RMVB",
  15887. "FLV",
  15888. "F4V",
  15889. "H.264",
  15890. "H.265",
  15891. "REAL VIDEO",
  15892. "MKV",
  15893. "WebM",
  15894. "HDDVD",
  15895. "MP4",
  15896. "MPG",
  15897. "M4V",
  15898. "MGV",
  15899. "OGV",
  15900. "QTM",
  15901. "STR",
  15902. "AMC",
  15903. "DVX",
  15904. "EVO",
  15905. "DAT",
  15906. "OGG",
  15907. "OGM",
  15908. ];
  15909. if (type == 1) {
  15910. _this.studyJuri[0].cover.push({
  15911. name: file.name,
  15912. url: data.Location,
  15913. uid: file.uid,
  15914. });
  15915. if (
  15916. c.indexOf(
  15917. _this.studyJuri[0].cover[0].url
  15918. .split(".")
  15919. [
  15920. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15921. ].toLocaleUpperCase()
  15922. ) != -1
  15923. ) {
  15924. _this.fileType = 2;
  15925. } else if (
  15926. b.indexOf(
  15927. _this.studyJuri[0].cover[0].url
  15928. .split(".")
  15929. [
  15930. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15931. ].toLocaleUpperCase()
  15932. ) != -1
  15933. ) {
  15934. _this.fileType = 1;
  15935. } else if (
  15936. photoA.indexOf(
  15937. _this.studyJuri[0].cover[0].url
  15938. .split(".")
  15939. [
  15940. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15941. ].toLocaleUpperCase()
  15942. ) != -1
  15943. ) {
  15944. _this.fileType = 0;
  15945. } else {
  15946. _this.fileType = 3;
  15947. }
  15948. _this.imgChange(null, null, type);
  15949. } else if (type == 2) {
  15950. _this.upToolImg = data.Location;
  15951. _this.imgChange(null, null, type);
  15952. _this.addCourseWorks(i);
  15953. } else if (type == 4) {
  15954. _this.addPz("3", data.Location);
  15955. } else if (type == 5) {
  15956. _this.addImgDrawImG(data.Location);
  15957. } else if (type == 6) {
  15958. var _ftype = 1;
  15959. if (
  15960. c.indexOf(
  15961. data.Location.split(".")[
  15962. data.Location.split(".").length - 1
  15963. ].toLocaleUpperCase()
  15964. ) != -1
  15965. ) {
  15966. _ftype = 5;
  15967. } else if (
  15968. b.indexOf(
  15969. data.Location.split(".")[
  15970. data.Location.split(".").length - 1
  15971. ].toLocaleUpperCase()
  15972. ) != -1
  15973. ) {
  15974. _ftype = 4;
  15975. } else {
  15976. _ftype = 1;
  15977. }
  15978. _this.plworkFile.push({
  15979. name: file.name,
  15980. url: data.Location,
  15981. uid: file.uid,
  15982. fileType: _ftype,
  15983. username:
  15984. _this.plworkFile.length > 10
  15985. ? _this.plworkFile.length + 1
  15986. : "0" + (_this.plworkFile.length + 1),
  15987. });
  15988. } else if (type == 7) {
  15989. _this.addCourseWorksGong(i, data.Location, 32);
  15990. } else if (type == 8) {
  15991. _this.addCourseWorksGong(i, data.Location, 57);
  15992. }
  15993. _this.imgChange(null, null, type);
  15994. console.log(data.Location);
  15995. // _this.$message.success('上传成功'+data.Location)
  15996. }
  15997. });
  15998. }
  15999. },
  16000. async beforeUpload3(event, type, i) {
  16001. // this.$message.success('进入上传')
  16002. let file = "";
  16003. let cfindex2 = 0;
  16004. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16005. file = event.target.files[cfindex];
  16006. var credentials = {
  16007. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16008. secretAccessKey: "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",
  16009. }; //秘钥形式的登录上传
  16010. window.AWS.config.update(credentials);
  16011. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16012. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16013. var _this = this;
  16014. // _this.progress = 0;
  16015. _this.proVisible2 = true;
  16016. var b = [
  16017. "DOC",
  16018. "DOCX",
  16019. "DOCM",
  16020. "DOTM",
  16021. "DOTX",
  16022. "PPTX",
  16023. "PPSX",
  16024. "PPT",
  16025. "PPS",
  16026. "PPTM",
  16027. "POTM",
  16028. "PPAM",
  16029. "POTX",
  16030. "PPSM",
  16031. ];
  16032. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16033. var photoA = [
  16034. "BMP",
  16035. "GIF",
  16036. "PNG",
  16037. "JPEG",
  16038. "JPG",
  16039. "TIF",
  16040. "PCX",
  16041. "TGA",
  16042. "EXIF",
  16043. "FPX",
  16044. "SVG",
  16045. "APNG",
  16046. ];
  16047. if (
  16048. photoA.indexOf(
  16049. file.name
  16050. .split(".")
  16051. [file.name.split(".").length - 1].toLocaleUpperCase()
  16052. ) != -1 &&
  16053. type != 4
  16054. ) {
  16055. // const blob = await imageConversion.compress(file, 0.8)
  16056. file = await this.pngToWhiteBg(file);
  16057. const blob = await imageConversion.compressAccurately(file, 256);
  16058. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16059. file = new File([blob], file.name, { type: file.type });
  16060. }
  16061. if (file) {
  16062. var params = {
  16063. Key:
  16064. file.name.split(".")[0] +
  16065. new Date().getTime() +
  16066. "." +
  16067. file.name.split(".")[file.name.split(".").length - 1],
  16068. ContentType: file.type,
  16069. Body: file,
  16070. "Access-Control-Allow-Credentials": "*",
  16071. ACL: "public-read",
  16072. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16073. var options = {
  16074. // partSize: 2048 * 1024 * 1024,
  16075. partSize: 1024 * 1024 * 1024,
  16076. queueSize: 2,
  16077. leavePartsOnError: true,
  16078. };
  16079. bucket
  16080. .upload(params, options)
  16081. .on("httpUploadProgress", function (evt) {
  16082. //这里可以写进度条
  16083. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16084. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16085. })
  16086. .send(function (err, data) {
  16087. // _this.progress = 100;
  16088. cfindex2++;
  16089. setTimeout(() => {
  16090. if (
  16091. cfindex2 == event.target.files.length - 1 ||
  16092. cfindex2 > event.target.files.length - 1
  16093. ) {
  16094. _this.proVisible2 = false;
  16095. }
  16096. }, 1000);
  16097. if (err) {
  16098. var a = _this.$refs.upload1.uploadFiles;
  16099. a.splice(a.length - 1, a.length);
  16100. _this.$message.error(this.lang.ssUploadFailed);
  16101. } else {
  16102. // _this.$message.success('上传成功')
  16103. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16104. var c = [
  16105. "AVI",
  16106. "NAVI",
  16107. "MPEG",
  16108. "ASF",
  16109. "MOV",
  16110. "WMV",
  16111. "3GP",
  16112. "RM",
  16113. "RMVB",
  16114. "FLV",
  16115. "F4V",
  16116. "H.264",
  16117. "H.265",
  16118. "REAL VIDEO",
  16119. "MKV",
  16120. "WebM",
  16121. "HDDVD",
  16122. "MP4",
  16123. "MPG",
  16124. "M4V",
  16125. "MGV",
  16126. "OGV",
  16127. "QTM",
  16128. "STR",
  16129. "AMC",
  16130. "DVX",
  16131. "EVO",
  16132. "DAT",
  16133. "OGG",
  16134. "OGM",
  16135. ];
  16136. if (type == 1) {
  16137. _this.studyJuri[0].cover.push({
  16138. name: file.name,
  16139. url: data.Location,
  16140. uid: file.uid,
  16141. });
  16142. if (
  16143. c.indexOf(
  16144. _this.studyJuri[0].cover[0].url
  16145. .split(".")
  16146. [
  16147. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16148. ].toLocaleUpperCase()
  16149. ) != -1
  16150. ) {
  16151. _this.fileType = 2;
  16152. } else if (
  16153. b.indexOf(
  16154. _this.studyJuri[0].cover[0].url
  16155. .split(".")
  16156. [
  16157. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16158. ].toLocaleUpperCase()
  16159. ) != -1
  16160. ) {
  16161. _this.fileType = 1;
  16162. } else {
  16163. _this.fileType = 0;
  16164. }
  16165. _this.imgChange(null, null, type);
  16166. } else if (type == 2) {
  16167. _this.upToolImg = data.Location;
  16168. _this.imgChange(null, null, type);
  16169. _this.addCourseWorks(i);
  16170. } else if (type == 4) {
  16171. _this.addPz("3", data.Location);
  16172. } else if (type == 5) {
  16173. _this.addImgDrawImG(data.Location);
  16174. } else if (type == 6) {
  16175. var _ftype = 1;
  16176. if (
  16177. c.indexOf(
  16178. data.Location.split(".")[
  16179. data.Location.split(".").length - 1
  16180. ].toLocaleUpperCase()
  16181. ) != -1
  16182. ) {
  16183. _ftype = 5;
  16184. } else if (
  16185. b.indexOf(
  16186. data.Location.split(".")[
  16187. data.Location.split(".").length - 1
  16188. ].toLocaleUpperCase()
  16189. ) != -1
  16190. ) {
  16191. _ftype = 4;
  16192. } else {
  16193. _ftype = 1;
  16194. }
  16195. _this.plworkFile.push({
  16196. name: file.name,
  16197. url: data.Location,
  16198. uid: file.uid,
  16199. fileType: _ftype,
  16200. username:
  16201. _this.plworkFile.length + 1 > 9
  16202. ? _this.plworkFile.length + 1
  16203. : "0" + (_this.plworkFile.length + 1),
  16204. });
  16205. }
  16206. _this.imgChange(null, null, type);
  16207. console.log(data.Location);
  16208. // _this.$message.success('上传成功'+data.Location)
  16209. }
  16210. });
  16211. }
  16212. }
  16213. },
  16214. beforeUpload2(event, type) {
  16215. var file = event.target.files[0];
  16216. var credentials = {
  16217. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16218. secretAccessKey: "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",
  16219. }; //秘钥形式的登录上传
  16220. window.AWS.config.update(credentials);
  16221. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16222. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16223. var _this = this;
  16224. _this.progress = 0;
  16225. _this.proVisible = true;
  16226. if (file) {
  16227. var params = {
  16228. Key:
  16229. file.name.split(".")[0] +
  16230. new Date().getTime() +
  16231. "." +
  16232. file.name.split(".")[file.name.split(".").length - 1],
  16233. ContentType: file.type,
  16234. Body: file,
  16235. "Access-Control-Allow-Credentials": "*",
  16236. ACL: "public-read",
  16237. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16238. var options = {
  16239. partSize: 2048 * 1024 * 1024,
  16240. queueSize: 2,
  16241. leavePartsOnError: true,
  16242. };
  16243. bucket
  16244. .upload(params, options)
  16245. .on("httpUploadProgress", function (evt) {
  16246. //这里可以写进度条
  16247. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16248. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16249. })
  16250. .send(function (err, data) {
  16251. _this.progress = 100;
  16252. setTimeout(() => {
  16253. _this.proVisible = false;
  16254. }, 1000);
  16255. if (err) {
  16256. var a = _this.$refs.upload1.uploadFiles;
  16257. a.splice(a.length - 1, a.length);
  16258. _this.$message.error(this.lang.ssUploadFailed);
  16259. } else {
  16260. if (type == 2) {
  16261. _this.studyJuri[0].upVedio.push({
  16262. name: file.name,
  16263. url: data.Location,
  16264. uid: file.uid,
  16265. });
  16266. _this.imgChange(null, null, type);
  16267. } else if (type == 3) {
  16268. _this.studyJuri[0].upFile.push({
  16269. name: file.name,
  16270. url: data.Location,
  16271. uid: file.uid,
  16272. });
  16273. _this.imgChange(null, null, type);
  16274. }
  16275. console.log(data.Location);
  16276. }
  16277. });
  16278. }
  16279. },
  16280. allScrell() {
  16281. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16282. },
  16283. nextOrpreSteps(t) {
  16284. if (this.IsFollow && this.tType == 2) {
  16285. this.$message.error(this.lang.ssFollowModeOn);
  16286. return;
  16287. }
  16288. var b = this.chapInfoList.length - 1;
  16289. if (t == 0) {
  16290. if (this.courseType == 0) {
  16291. if (this.taskCount == 0) {
  16292. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16293. if (this.IsLookOpen) {
  16294. if (
  16295. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16296. ) {
  16297. if (
  16298. this.courseDetail.userid != this.userid &&
  16299. (!this.courseDetail.course_teacher ||
  16300. (this.courseDetail.course_teacher &&
  16301. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16302. ) {
  16303. this.$message.error(this.lang.ssTaskLocked);
  16304. } else {
  16305. this.$message.error(this.lang.ssPrevTaskLocked);
  16306. }
  16307. return;
  16308. }
  16309. }
  16310. this.navList[this.courseType].isOpen = false;
  16311. this.courseType = b;
  16312. this.taskCount =
  16313. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16314. .length - 1;
  16315. this.navList[this.courseType].isOpen = true;
  16316. } else {
  16317. this.taskCount--;
  16318. }
  16319. } else {
  16320. if (this.taskCount == 0) {
  16321. this.navList[this.courseType].isOpen = false;
  16322. this.courseType--;
  16323. this.taskCount =
  16324. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16325. .length - 1;
  16326. this.navList[this.courseType].isOpen = true;
  16327. } else {
  16328. this.taskCount--;
  16329. }
  16330. }
  16331. } else {
  16332. if (this.courseType == b) {
  16333. if (
  16334. this.taskCount ==
  16335. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16336. 1
  16337. ) {
  16338. this.navList[this.courseType].isOpen = false;
  16339. this.courseType = 0;
  16340. this.taskCount = 0;
  16341. this.navList[this.courseType].isOpen = true;
  16342. } else {
  16343. var bbb = parseInt(this.taskCount) + 1;
  16344. if (
  16345. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16346. .isLook &&
  16347. this.courseDetail.userid != this.userid &&
  16348. (!this.courseDetail.course_teacher ||
  16349. (this.courseDetail.course_teacher &&
  16350. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16351. this.IsLookOpen
  16352. ) {
  16353. this.$message.error(this.lang.ssTaskLocked);
  16354. return;
  16355. }
  16356. this.taskCount++;
  16357. if (this.IsLookOpen) {
  16358. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16359. this.taskCount
  16360. ].isLook = true;
  16361. this.addCourseState(3);
  16362. }
  16363. }
  16364. } else {
  16365. if (
  16366. this.taskCount ==
  16367. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16368. 1
  16369. ) {
  16370. var bbb = parseInt(this.courseType) + 1;
  16371. if (
  16372. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16373. this.courseDetail.userid != this.userid &&
  16374. (!this.courseDetail.course_teacher ||
  16375. (this.courseDetail.course_teacher &&
  16376. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16377. this.IsLookOpen
  16378. ) {
  16379. this.$message.error(this.lang.ssTaskLocked);
  16380. return;
  16381. }
  16382. this.navList[this.courseType].isOpen = false;
  16383. this.courseType++;
  16384. this.taskCount = 0;
  16385. this.navList[this.courseType].isOpen = true;
  16386. } else {
  16387. var bbb = parseInt(this.taskCount) + 1;
  16388. if (
  16389. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16390. .isLook &&
  16391. this.courseDetail.userid != this.userid &&
  16392. (!this.courseDetail.course_teacher ||
  16393. (this.courseDetail.course_teacher &&
  16394. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16395. this.IsLookOpen
  16396. ) {
  16397. this.$message.error(this.lang.ssTaskLocked);
  16398. return;
  16399. }
  16400. this.taskCount++;
  16401. }
  16402. if (this.IsLookOpen) {
  16403. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16404. this.taskCount
  16405. ].isLook = true;
  16406. this.addCourseState(3);
  16407. }
  16408. }
  16409. // if (
  16410. // this.taskCount ==
  16411. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16412. // ) {
  16413. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16414. // } else {
  16415. // this.taskCount++;
  16416. // }
  16417. }
  16418. document.scrollingElement.scrollTop = 0;
  16419. // this.showType = 7;
  16420. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16421. // if (this.vedio[this.taskCount].length > 0) {
  16422. // var a =
  16423. // document.getElementsByClassName("box_course")[this.taskCount]
  16424. // .offsetHeight;
  16425. // document.getElementsByClassName("vedioList")[
  16426. // this.taskCount
  16427. // ].style.height = a + "px";
  16428. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16429. // a - 40 + "px";
  16430. // }
  16431. this.isNoHomeWork = false;
  16432. (this.studyJuri = [
  16433. {
  16434. content: "",
  16435. cover: [],
  16436. upVedio: [],
  16437. upFile: [],
  16438. },
  16439. ]),
  16440. (this.radio = []);
  16441. this.isClickNav = "";
  16442. this.selectPz();
  16443. this.getHomeWork();
  16444. this.getCourseDetail(2);
  16445. this.$forceUpdate();
  16446. if ((this.courseDetail.userid == this.userid ||
  16447. (this.courseDetail.course_teacher &&
  16448. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  16449. this.setCTask();
  16450. }
  16451. },
  16452. openTask(s, n, i) {
  16453. if (this.IsFollow && this.tType == 2) {
  16454. this.$message.error(this.lang.ssFollowModeOn);
  16455. return;
  16456. }
  16457. if (this.IsLookOpen &&
  16458. this.courseDetail.userid != this.userid &&
  16459. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  16460. if (
  16461. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16462. this.courseDetail.userid != this.userid &&
  16463. (!this.courseDetail.course_teacher ||
  16464. (this.courseDetail.course_teacher &&
  16465. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16466. ) {
  16467. this.$message.error(this.lang.ssTaskLocked);
  16468. return;
  16469. }
  16470. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16471. if (
  16472. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16473. .isLook
  16474. ) {
  16475. this.$message.error(this.lang.ssPrevTaskLocked);
  16476. return;
  16477. }
  16478. } else if (s > this.courseType) {
  16479. if (n > 0) {
  16480. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16481. this.$message.error(this.lang.ssPrevTaskLocked);
  16482. return;
  16483. }
  16484. } else {
  16485. if (
  16486. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16487. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16488. ].isLook
  16489. ) {
  16490. this.$message.error(this.lang.ssPrevTaskLocked);
  16491. return;
  16492. }
  16493. }
  16494. }
  16495. }
  16496. if (this.navList[s].task[n].isOpen == true) {
  16497. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16498. return;
  16499. }
  16500. let flag = this.courseType==s;
  16501. this.courseType = s;
  16502. this.navId = i;
  16503. this.taskCount = n;
  16504. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  16505. this.navList[this.courseType].task[this.taskCount].isOpen =
  16506. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16507. if (this.IsLookOpen) {
  16508. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16509. this.taskCount
  16510. ].isLook = true;
  16511. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  16512. this.addCourseState(3,yym);
  16513. }
  16514. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  16515. this.isCloseList[ci].isClose = 0;
  16516. this.isCloseList[ci].isCloseBoolean = false;
  16517. this.$nextTick(()=>{
  16518. setTimeout(()=>{
  16519. setTimeout(()=>{
  16520. this.panToolHeight('tool-'+ci);
  16521. }, 0)
  16522. }, 0)
  16523. })
  16524. }
  16525. // this.showType = 7;
  16526. this.isNoHomeWork = false;
  16527. (this.studyJuri = [
  16528. {
  16529. content: "",
  16530. cover: [],
  16531. upVedio: [],
  16532. upFile: [],
  16533. },
  16534. ]),
  16535. (this.radio = []);
  16536. document.scrollingElement.scrollTop = 0;
  16537. // setTimeout(() => {
  16538. // let a = document.getElementById(i);
  16539. // if (a.offsetTop - 110 == 0) {
  16540. // window.scrollTo(0, 0);
  16541. // } else {
  16542. // window.scrollTo(0, a.offsetTop);
  16543. // }
  16544. // }, 0);
  16545. for (var z = 0; z < this.navList.length; z++) {
  16546. for (var q = 0; q < this.navList[z].task.length; q++) {
  16547. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16548. this.navList[z].task[q].tool[w].isTool = false;
  16549. }
  16550. }
  16551. }
  16552. this.selectPz();
  16553. this.getHomeWork();
  16554. this.getCourseDetail(2);
  16555. if ((this.courseDetail.userid == this.userid ||
  16556. (this.courseDetail.course_teacher &&
  16557. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  16558. this.setCTask();
  16559. }
  16560. if(flag){
  16561. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16562. }else{
  16563. 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>`)
  16564. }
  16565. },
  16566. get(i) {
  16567. if (this.IsFollow && this.tType == 2) {
  16568. this.$message.error(this.lang.ssFollowModeOn);
  16569. return;
  16570. }
  16571. // for(var k=0;k<this.navList.length;k++){
  16572. // this.navList[k].isOpen = false;
  16573. // }
  16574. // this.navList[i].isOpen = true;
  16575. this.navList[i].isOpen = !this.navList[i].isOpen;
  16576. if (this.navList[i].isOpen) {
  16577. this.openTask(i, 0, i + "-0");
  16578. }
  16579. },
  16580. addQuestion() {
  16581. this.answerList.push({
  16582. answerTitle: this.answerQ,
  16583. answer: this.questionAnswer,
  16584. });
  16585. let params = [
  16586. {
  16587. uid: this.userid,
  16588. cid: this.id,
  16589. stage: this.courseType,
  16590. task: this.taskCount,
  16591. tool: this.toolindex,
  16592. content: JSON.stringify(this.answerList),
  16593. type: 3,
  16594. },
  16595. ];
  16596. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  16597. this.homeWorkLoading = true
  16598. this.ajax
  16599. .post(this.$store.state.api + "addCourseWorks", params)
  16600. .then((res) => {
  16601. this.$message({
  16602. message: this.lang.ssSubmitSuccess,
  16603. type: "success",
  16604. });
  16605. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  16606. setTimeout(() => {
  16607. this.homeWorkLoading = false
  16608. }, 500);
  16609. this.answerList = [];
  16610. this.answerDialogVisible = false;
  16611. this.selectStudent();
  16612. this.selectSWorks();
  16613. this.selectSLook();
  16614. })
  16615. .catch((err) => {
  16616. this.$message.error(this.lang.ssSubmitFailed);
  16617. console.error(err);
  16618. setTimeout(() => {
  16619. this.homeWorkLoading = false
  16620. }, 500);
  16621. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  16622. });
  16623. },
  16624. addQuestionTeacher() {
  16625. this.answerList.push({
  16626. answerTitle: this.answerQ,
  16627. answer: this.questionAnswer,
  16628. });
  16629. let params = [
  16630. {
  16631. uid: this.sStudent.userid,
  16632. cid: this.id,
  16633. stage: this.courseType,
  16634. task: this.taskCount,
  16635. tool: this.toolindex,
  16636. content: JSON.stringify(this.answerList),
  16637. type: 3,
  16638. ateacher: this.userid,
  16639. },
  16640. ];
  16641. this.ajax
  16642. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16643. .then((res) => {
  16644. this.$message({
  16645. message: this.lang.ssSubmitSuccess,
  16646. type: "success",
  16647. });
  16648. this.answerList = [];
  16649. this.questionAnswer = "";
  16650. this.answerDialogVisibleTeacher = false;
  16651. this.selectStudent();
  16652. this.selectSWorks();
  16653. this.selectSLook();
  16654. })
  16655. .catch((err) => {
  16656. this.$message.error(this.lang.ssSubmitFailed);
  16657. console.error(err);
  16658. });
  16659. },
  16660. refreshCourse() {
  16661. // window.location.reload();
  16662. this.navList = [];
  16663. this.getCourseDetail(1);
  16664. },
  16665. getCourseDetail(type, gindex) {
  16666. let loading;
  16667. if (type != 2) {
  16668. loading = this.$loading.service({
  16669. background: "rgba(255, 255, 255, 0.7)",
  16670. target: document.querySelector(".student_table"),
  16671. });
  16672. }
  16673. this.downLoading = false
  16674. // this.navList[0].isOpen = false;
  16675. // this.navList[this.courseType].isOpen = true;
  16676. // this.courseType = this.courseTypeLine;
  16677. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16678. let params = {
  16679. courseId: this.id,
  16680. };
  16681. this.ajax
  16682. .get(this.$store.state.api + "selectCourseDetail3", params)
  16683. .then((res) => {
  16684. if ((this.courseDetail.userid == this.userid ||
  16685. (this.courseDetail.course_teacher &&
  16686. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  16687. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  16688. }
  16689. if (type != 2) {
  16690. loading.close();
  16691. if (
  16692. this.courseType >
  16693. JSON.parse(res.data[0][0].chapters).length - 1
  16694. ) {
  16695. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16696. }
  16697. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16698. .chapterInfo[0].taskJson;
  16699. var b = [
  16700. "AVI",
  16701. "NAVI",
  16702. "MPEG",
  16703. "ASF",
  16704. "MOV",
  16705. "WMV",
  16706. "3GP",
  16707. "RM",
  16708. "RMVB",
  16709. "FLV",
  16710. "F4V",
  16711. "H.264",
  16712. "H.265",
  16713. "REAL VIDEO",
  16714. "MKV",
  16715. "WebM",
  16716. "HDDVD",
  16717. "MP4",
  16718. "MPG",
  16719. "M4V",
  16720. "MGV",
  16721. "OGV",
  16722. "QTM",
  16723. "STR",
  16724. "AMC",
  16725. "DVX",
  16726. "EVO",
  16727. "DAT",
  16728. "OGG",
  16729. "OGM",
  16730. "MP3",
  16731. ];
  16732. let _chapterData = [];
  16733. for (var i = 0; i < a.length; i++) {
  16734. var c = a[i].chapterData;
  16735. this.vedio[i] = [];
  16736. this.textList[i] = [];
  16737. this.lineList[i] = [];
  16738. this.chapToolList[i] = [];
  16739. this.file[i] = [];
  16740. this.fileC[i] = [];
  16741. _chapterData[i] = c.filter((el) => {
  16742. return el.type != 12;
  16743. });
  16744. this.fileC[i] = c.filter((el) => {
  16745. return el.type == 12;
  16746. });
  16747. if (this.tType == 2) {
  16748. if (this.fileC[i].length) {
  16749. let yym1 = this.fileC[i].filter(e=>{
  16750. if(!converter(e.name).includes(converter(this.lang.ssTeachingPlan))){
  16751. return e
  16752. }
  16753. })
  16754. this.fileC[i] = yym1
  16755. }
  16756. }
  16757. // else if (c[j].type == 12) {
  16758. // this.fileC[i].push(c[j]);
  16759. // }
  16760. for (var j = 0; j < c.length; j++) {
  16761. if (c[j].type == 7) {
  16762. this.chapToolList[i].push(c[j]);
  16763. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  16764. this.lineList[i].push(c[j]);
  16765. } else if (c[j].type == 6) {
  16766. this.textList[i].push(c[j]);
  16767. } else {
  16768. if (
  16769. b.indexOf(
  16770. c[j].url
  16771. .split(".")
  16772. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16773. ) != -1
  16774. ) {
  16775. this.vedio[i].push(c[j]);
  16776. } else {
  16777. this.file[i].push(c[j]);
  16778. }
  16779. }
  16780. }
  16781. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16782. d.sources[0].src =
  16783. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16784. this.playerO[i] = d;
  16785. }
  16786. this.courseDetail = res.data[0][0];
  16787. if(this.tType == 2){
  16788. this.tcid = this.arrayToArray(
  16789. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16790. this.classId ? this.classId.split(",") : []
  16791. ).join(",");
  16792. }else{
  16793. this.tcid = this.arrayToArray(
  16794. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16795. this.tcid2 ? this.tcid2.split(",") : []
  16796. ).join(",");
  16797. }
  16798. this.evalua = res.data[0][0].evaId;
  16799. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16800. this.courseType
  16801. ];
  16802. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16803. if (this.tcid && res.data[1].length) {
  16804. let _inviteA = [];
  16805. for (var ik = 0; ik < res.data[1].length; ik++) {
  16806. _inviteA.push({
  16807. cid: res.data[1][ik].classid,
  16808. ic: res.data[1][ik].code,
  16809. });
  16810. }
  16811. for (var ik = 0; ik < _inviteA.length; ik++) {
  16812. if (
  16813. this.arrayToArray(
  16814. _inviteA[ik].cid.split(","),
  16815. this.tcid.split(",")
  16816. ).length
  16817. ) {
  16818. this.inviteCode = _inviteA[ik].ic;
  16819. break;
  16820. }
  16821. }
  16822. }
  16823. for (var l = 0; l < this.chapInfoList.length; l++) {
  16824. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16825. for (var m = 0; m < w.length; m++) {
  16826. w[m].id = l + "-" + m;
  16827. }
  16828. }
  16829. let taskCount = 0;
  16830. if (
  16831. _chapterData[taskCount].length &&
  16832. _chapterData[taskCount][0].type == 2
  16833. ) {
  16834. this.showType = 0;
  16835. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  16836. } else {
  16837. if (_chapterData[taskCount].length > 0) {
  16838. let _url = _chapterData[taskCount][0].url;
  16839. if (
  16840. _chapterData[taskCount][0].type == 8 ||
  16841. _chapterData[taskCount][0].type == 14 ||
  16842. _chapterData[taskCount][0].type == 15
  16843. ) {
  16844. this.showType = 2;
  16845. if (
  16846. _url.indexOf("https://") == -1 &&
  16847. _url.indexOf("http://") == -1
  16848. ) {
  16849. _url = "https://" + _url;
  16850. }
  16851. this.pptImgUrl1 = _url;
  16852. } else if (_chapterData[taskCount][0].type == 3) {
  16853. if (
  16854. _url
  16855. .split(".")
  16856. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16857. ) {
  16858. this.showType = 3;
  16859. this.pptImgUrl1 = _url;
  16860. } else if (
  16861. this.isAssetTypeAnImage(
  16862. _url
  16863. .split(".")
  16864. [_url.split(".").length - 1].toLocaleLowerCase()
  16865. )
  16866. ) {
  16867. this.showType = 4;
  16868. this.pptImgUrl1 = _url;
  16869. } else {
  16870. this.showType = 2;
  16871. this.pptImgUrl1 =
  16872. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16873. encodeURIComponent(_url);
  16874. }
  16875. } else if (_chapterData[taskCount][0].type == 13) {
  16876. this.showType = 4;
  16877. this.pptImgUrl1 = _url;
  16878. } else if (_chapterData[taskCount][0].type == 6) {
  16879. this.showType = 1;
  16880. this.text = this.textList[taskCount][0];
  16881. } else if (_chapterData[taskCount][0].type == 16) {
  16882. this.showType = 16;
  16883. this.pptImgUrl1 = _url;
  16884. } else if (_chapterData[taskCount][0].type == 17) {
  16885. this.showType = 16;
  16886. this.pptImgUrl1 = _url;
  16887. }
  16888. }
  16889. }
  16890. this.isClickNav = 0;
  16891. if (
  16892. !_chapterData[taskCount].length ||
  16893. _chapterData[taskCount][0].type == 12
  16894. ) {
  16895. this.isClickNav = "";
  16896. this.showType = "";
  16897. }
  16898. if (this.tType == 2) {
  16899. _chapterData.forEach((e,i)=>{
  16900. if (e.length) {
  16901. let yym = e.filter(k=>{
  16902. if(!converter(k.name).includes(converter(this.lang.ssTeachingPlan))){
  16903. return k
  16904. }
  16905. })
  16906. _chapterData[i] = yym
  16907. }
  16908. })
  16909. }
  16910. this.vChapterData = _chapterData;
  16911. } else {
  16912. // this.showType = 0;
  16913. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16914. .chapterInfo[0].taskJson;
  16915. var b = [
  16916. "AVI",
  16917. "NAVI",
  16918. "MPEG",
  16919. "ASF",
  16920. "MOV",
  16921. "WMV",
  16922. "3GP",
  16923. "RM",
  16924. "RMVB",
  16925. "FLV",
  16926. "F4V",
  16927. "H.264",
  16928. "H.265",
  16929. "REAL VIDEO",
  16930. "MKV",
  16931. "WebM",
  16932. "HDDVD",
  16933. "MP4",
  16934. "MPG",
  16935. "M4V",
  16936. "MGV",
  16937. "OGV",
  16938. "QTM",
  16939. "STR",
  16940. "AMC",
  16941. "DVX",
  16942. "EVO",
  16943. "DAT",
  16944. "OGG",
  16945. "OGM",
  16946. "MP3",
  16947. ];
  16948. let _chapterData = [];
  16949. for (var i = 0; i < a.length; i++) {
  16950. var c = a[i].chapterData;
  16951. this.vedio[i] = [];
  16952. this.textList[i] = [];
  16953. this.lineList[i] = [];
  16954. this.chapToolList[i] = [];
  16955. this.file[i] = [];
  16956. this.fileC[i] = [];
  16957. _chapterData[i] = c.filter((el) => {
  16958. return el.type != 12;
  16959. });
  16960. this.fileC[i] = c.filter((el) => {
  16961. return el.type == 12;
  16962. });
  16963. if (this.tType == 2) {
  16964. if (this.fileC[i].length) {
  16965. let yym1 = this.fileC[i].filter(e=>{
  16966. if(!converter(e.name).includes(converter(this.lang.ssTeachingPlan))){
  16967. return e
  16968. }
  16969. })
  16970. this.fileC[i] = yym1
  16971. }
  16972. }
  16973. for (var j = 0; j < c.length; j++) {
  16974. if (c[j].type == 7) {
  16975. this.chapToolList[i].push(c[j]);
  16976. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  16977. this.lineList[i].push(c[j]);
  16978. } else if (c[j].type == 6) {
  16979. this.textList[i].push(c[j]);
  16980. } else {
  16981. if (
  16982. b.indexOf(
  16983. c[j].url
  16984. .split(".")
  16985. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16986. ) != -1
  16987. ) {
  16988. this.vedio[i].push(c[j]);
  16989. } else {
  16990. this.file[i].push(c[j]);
  16991. }
  16992. }
  16993. }
  16994. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16995. d.sources[0].src =
  16996. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16997. this.playerO[i] = d;
  16998. }
  16999. let taskCount = 0;
  17000. if (
  17001. _chapterData[taskCount].length &&
  17002. _chapterData[taskCount][0].type == 2
  17003. ) {
  17004. // this.showType = 0;
  17005. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17006. } else {
  17007. if (_chapterData[taskCount].length > 0) {
  17008. let _url = _chapterData[taskCount][0].url;
  17009. if (
  17010. _chapterData[taskCount][0].type == 8 ||
  17011. _chapterData[taskCount][0].type == 14||
  17012. _chapterData[taskCount][0].type == 15
  17013. ) {
  17014. // this.showType = 2;
  17015. if (
  17016. _url.indexOf("https://") == -1 &&
  17017. _url.indexOf("http://") == -1
  17018. ) {
  17019. _url = "https://" + _url;
  17020. }
  17021. // this.pptImgUrl1 = _url;
  17022. } else if (_chapterData[taskCount][0].type == 3) {
  17023. if (
  17024. _url
  17025. .split(".")
  17026. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17027. ) {
  17028. // this.showType = 3;
  17029. // this.pptImgUrl1 = _url;
  17030. } else if (
  17031. this.isAssetTypeAnImage(
  17032. _url
  17033. .split(".")
  17034. [_url.split(".").length - 1].toLocaleLowerCase()
  17035. )
  17036. ) {
  17037. // this.showType = 4;
  17038. // this.pptImgUrl1 = _url;
  17039. } else {
  17040. // this.showType = 2;
  17041. // this.pptImgUrl1 =
  17042. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  17043. // encodeURIComponent(_url);
  17044. }
  17045. } else if (_chapterData[taskCount][0].type == 13) {
  17046. // this.showType = 4;
  17047. // this.pptImgUrl1 = _url;
  17048. } else if (_chapterData[taskCount][0].type == 6) {
  17049. this.showType = 1;
  17050. this.text = this.textList[taskCount][0];
  17051. } else if (_chapterData[taskCount][0].type == 16) {
  17052. this.showType = 16;
  17053. this.pptImgUrl1 = _url;
  17054. } else if (_chapterData[taskCount][0].type == 17) {
  17055. this.showType = 16;
  17056. this.pptImgUrl1 = _url;
  17057. }
  17058. }
  17059. }
  17060. this.isClickNav = 0;
  17061. if (
  17062. !_chapterData[taskCount].length ||
  17063. _chapterData[taskCount][0].type == 12
  17064. ) {
  17065. this.isClickNav = "";
  17066. // this.showType = "";
  17067. }
  17068. if (this.tType == 2) {
  17069. _chapterData.forEach((e,i)=>{
  17070. if (e.length) {
  17071. let yym = e.filter(k=>{
  17072. if(!converter(k.name).includes(converter(this.lang.ssTeachingPlan))){
  17073. return k
  17074. }
  17075. })
  17076. _chapterData[i] = yym
  17077. }
  17078. })
  17079. }
  17080. this.vChapterData = _chapterData;
  17081. this.$forceUpdate();
  17082. }
  17083. // else {
  17084. // this.courseDetail = res.data[0][0];
  17085. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17086. // }
  17087. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  17088. if (type == 10) {
  17089. console.log('this.courseDetail.userid',this.courseDetail.userid);
  17090. console.log('this.userid',this.userid);
  17091. if (this.courseDetail.userid == this.userid) {
  17092. // 开局关闭学生查看内容
  17093. this.StulookMode(true)
  17094. // 开局打开跟随模式
  17095. this.followingMode(true)
  17096. }
  17097. }
  17098. let _this = this;
  17099. if (_this.timer) {
  17100. clearInterval(_this.timer);
  17101. _this.timer = null;
  17102. }
  17103. if (_this.tcid) {
  17104. _this.getCourseGroup(gindex);
  17105. } else {
  17106. _this.selectSWorks(gindex);
  17107. }
  17108. _this.selectStudent();
  17109. _this.selectSLook();
  17110. _this.getPick();
  17111. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17112. // _this.setCTask();
  17113. // }
  17114. if (_this.dialogVisibleGroup) {
  17115. _this.groupJson =
  17116. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17117. _this.taskCount
  17118. ].toolChoose[_this.toolindex].groupJson;
  17119. }
  17120. _this.$nextTick(() => {
  17121. setTimeout(() => {
  17122. _this.checkEva();
  17123. }, 1000);
  17124. });
  17125. _this.timer = setInterval(function () {
  17126. // _this.getCourseDetail(2);
  17127. if (_this.tcid) {
  17128. _this.getCourseGroup();
  17129. } else {
  17130. _this.selectSWorks();
  17131. }
  17132. _this.selectStudent();
  17133. _this.selectSLook();
  17134. _this.getPick();
  17135. // _this.getSplitScreenData();//获取分屏数据
  17136. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17137. // _this.setCTask();
  17138. // }
  17139. if (_this.dialogVisibleGroup) {
  17140. _this.groupJson =
  17141. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17142. _this.taskCount
  17143. ].toolChoose[_this.toolindex].groupJson;
  17144. }
  17145. if (_this.tType == 4 || _this.ispzType == 4) {
  17146. _this.selectPz();
  17147. }
  17148. }, 5000);
  17149. if (_this.timer2 == null) {
  17150. _this.timer2 = setInterval(()=> {
  17151. if (_this.$region != 'hk') {
  17152. _this.getSplitScreenData();//获取分屏数据
  17153. }
  17154. }, 5000);
  17155. }
  17156. _this.$nextTick(function () {
  17157. setTimeout(() => {
  17158. const element = document.getElementsByClassName("pb_body")[0];
  17159. if (element) {
  17160. element.style.minHeight = 'unset'
  17161. // 或者:element.style.removeProperty("min-height");
  17162. }
  17163. // var a =
  17164. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17165. // document.getElementsByClassName("vedioList")[0].style.height =
  17166. // a + "px";
  17167. // document.getElementsByClassName("navBox")[0].style.height =
  17168. // a - 40 + "px";
  17169. // if (_this.vedio[_this.taskCount].length > 0) {
  17170. // _this.vedioTime = [];
  17171. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17172. // _this.vedioTime[i] = document.getElementsByClassName(
  17173. // "vjs-duration-display"
  17174. // )[i].textContent;
  17175. // }
  17176. // }
  17177. }, 1000);
  17178. });
  17179. })
  17180. .catch((err) => {
  17181. loading.close();
  17182. console.error(err);
  17183. });
  17184. },
  17185. getCourseGroup(gindex) {
  17186. if(this.getCourseGroupLoading) return
  17187. this.getCourseGroupLoading = true
  17188. let params = {
  17189. cid: this.id,
  17190. classid: this.tcid ? this.tcid : "1",
  17191. };
  17192. this.ajax
  17193. .get(this.$store.state.api + "getCourseGroup", params)
  17194. .then((res) => {
  17195. if (res.data && res.data[0].length) {
  17196. if (!this.isGroup) {
  17197. let courseGroup = JSON.parse(res.data[0][0].group);
  17198. courseGroup.group = courseGroup.group.filter((el) => {
  17199. el.works = [];
  17200. return el;
  17201. });
  17202. if (courseGroup.isopen == 2) {
  17203. this.isGroup = false;
  17204. this.selectSWorks(gindex);
  17205. return;
  17206. }
  17207. this.courseGroup = courseGroup;
  17208. let groupPerson = res.data[1];
  17209. let group = JSON.parse(res.data[0][0].group).group;
  17210. let courseGroupStudent = {};
  17211. let courseGroupStudentUid = {};
  17212. for (var i = 0; i < group.length; i++) {
  17213. courseGroupStudent[group[i].id] = [];
  17214. courseGroupStudentUid[group[i].id] = [];
  17215. for (var j = 0; j < groupPerson.length; j++) {
  17216. if (groupPerson[j].groupCid == group[i].id) {
  17217. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17218. courseGroupStudentUid[group[i].id].push(
  17219. groupPerson[j].userid
  17220. );
  17221. }
  17222. }
  17223. }
  17224. this.courseGroupStudent = courseGroupStudent;
  17225. this.courseGroupStudentUid = courseGroupStudentUid;
  17226. }
  17227. if (this.courseGroup.isopen == 2) {
  17228. this.isGroup = false;
  17229. } else {
  17230. this.isGroup = true;
  17231. }
  17232. this.selectSWorks(gindex);
  17233. } else {
  17234. this.selectSWorks(gindex);
  17235. this.isGroup = false;
  17236. }
  17237. this.getCourseGroupLoading = false
  17238. })
  17239. .catch((err) => {
  17240. this.getCourseGroupLoading = false
  17241. // this.$message.error("网络不佳");
  17242. console.error(err);
  17243. });
  17244. },
  17245. setOperationTime() {
  17246. let _this = this;
  17247. if (_this.opertimer) {
  17248. clearInterval(_this.opertimer);
  17249. _this.opertimer = null;
  17250. }
  17251. _this.opertimer = setInterval(() => {
  17252. _this.setoTime("600");
  17253. }, 600000);
  17254. },
  17255. setoTime(time) {
  17256. this.doSyncClassData();
  17257. let params = [
  17258. {
  17259. uid: this.userid,
  17260. cid: this.id,
  17261. type: "2",
  17262. time: time,
  17263. },
  17264. ];
  17265. this.ajax
  17266. .post(this.$store.state.api + "addOperationTimeT2", params)
  17267. .then((res) => {})
  17268. .catch((err) => {
  17269. console.error(err);
  17270. });
  17271. },
  17272. addPz(type, content) {
  17273. if (type == "1" && this.pzConText == "") {
  17274. this.$message.error(this.lang.ssCommentEmpty);
  17275. return;
  17276. }
  17277. let params = [
  17278. {
  17279. cid: this.id,
  17280. uid: this.userid,
  17281. s: this.courseType,
  17282. t: this.taskCount,
  17283. c: type == "1" ? this.pzConText : content,
  17284. type: type,
  17285. },
  17286. ];
  17287. this.ajax
  17288. .post(this.$store.state.api + "addPz2", params)
  17289. .then((res) => {
  17290. this.$message({
  17291. message: this.lang.ssAddSuccess,
  17292. type: "success",
  17293. });
  17294. this.pzConText = "";
  17295. this.addPzDialog = false;
  17296. this.selectPz();
  17297. if(this.tType!=2){
  17298. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17299. }
  17300. })
  17301. .catch((err) => {
  17302. this.$message.error(this.lang.ssAddFailed);
  17303. console.error(err);
  17304. });
  17305. },
  17306. setReplyIndex(id, i) {
  17307. this.replyIndex = i;
  17308. this.replyPid = id;
  17309. this.replyDialogVisible = true;
  17310. },
  17311. addHf() {
  17312. if (this.reply == "") {
  17313. this.$message.error(this.lang.ssReplyEmpty);
  17314. return;
  17315. }
  17316. let params = [
  17317. {
  17318. cid: this.id,
  17319. uid: this.userid,
  17320. s: this.courseType,
  17321. t: this.taskCount,
  17322. type: "1",
  17323. ct: 2,
  17324. pid: this.replyPid,
  17325. c: this.reply,
  17326. },
  17327. ];
  17328. this.ajax
  17329. .post(this.$store.state.api + "addHf", params)
  17330. .then((res) => {
  17331. this.reply = "";
  17332. this.$message({
  17333. message: this.lang.ssReplySuccess,
  17334. type: "success",
  17335. });
  17336. this.replyDialogVisible = false;
  17337. this.selectPz();
  17338. })
  17339. .catch((err) => {
  17340. this.$message.error(this.lang.ssReplyFailed);
  17341. console.error(err);
  17342. });
  17343. },
  17344. deletePz(id) {
  17345. this.$confirm(this.lang.ssConfirmDeleteComment, this.lang.ssPrompt, {
  17346. confirmButtonText: this.lang.ssConfirm,
  17347. cancelButtonText: this.lang.ssCancel,
  17348. type: "warning",
  17349. })
  17350. .then(() => {
  17351. let params = [
  17352. {
  17353. id: id,
  17354. },
  17355. ];
  17356. this.ajax
  17357. .post(this.$store.state.api + "deletePz", params)
  17358. .then((res) => {
  17359. this.$message({
  17360. message: this.lang.ssDeleteSuccess,
  17361. type: "success",
  17362. });
  17363. this.selectPz();
  17364. })
  17365. .catch((err) => {
  17366. this.$message.error(this.lang.ssNetworkError);
  17367. console.error(err);
  17368. });
  17369. })
  17370. .catch(() => {});
  17371. },
  17372. deleteReply(id) {
  17373. this.$confirm(this.lang.ssConfirmDeleteReply, this.lang.ssPrompt, {
  17374. confirmButtonText: this.lang.ssConfirm,
  17375. cancelButtonText: this.lang.ssCancel,
  17376. type: "warning",
  17377. })
  17378. .then(() => {
  17379. let params = [
  17380. {
  17381. id: id,
  17382. },
  17383. ];
  17384. this.ajax
  17385. .post(this.$store.state.api + "deleteReply", params)
  17386. .then((res) => {
  17387. this.$message({
  17388. message: this.lang.ssDeleteSuccess,
  17389. type: "success",
  17390. });
  17391. this.selectPz();
  17392. })
  17393. .catch((err) => {
  17394. this.$message.error(this.lang.ssNetworkError);
  17395. console.error(err);
  17396. });
  17397. })
  17398. .catch(() => {});
  17399. },
  17400. setPz() {
  17401. if (this.ispzType == 4) {
  17402. this.ispzType = 0;
  17403. this.pzDialog = false;
  17404. return;
  17405. }
  17406. this.ispzType = 4;
  17407. this.pzDialog = true;
  17408. this.selectPz();
  17409. },
  17410. selectPz() {
  17411. if(this.selectPzLoading) return
  17412. this.selectPzLoading = true
  17413. let params = {
  17414. cid: this.id,
  17415. s: this.courseType,
  17416. t: this.taskCount,
  17417. type: this.pzStype,
  17418. uid: this.userid,
  17419. };
  17420. this.ajax
  17421. .get(this.$store.state.api + "selectPzListType", params)
  17422. .then((res) => {
  17423. this.pzList = res.data[0];
  17424. var a = res.data[1];
  17425. for (var i = 0; i < a.length; i++) {
  17426. for (var j = 0; j < this.pzList.length; j++) {
  17427. if (!this.pzList[j].hfList) {
  17428. this.pzList[j].hfList = [];
  17429. }
  17430. if (a[i].pid == this.pzList[j].id) {
  17431. this.pzList[j].hfList.push(a[i]);
  17432. }
  17433. }
  17434. }
  17435. this.selectPzLoading = false
  17436. })
  17437. .catch((err) => {
  17438. this.selectPzLoading = false
  17439. console.error(err);
  17440. });
  17441. },
  17442. // selectHf() {
  17443. // let params = {
  17444. // cid: this.id,
  17445. // s: this.courseType,
  17446. // t: this.taskCount,
  17447. // };
  17448. // this.ajax
  17449. // .get(this.$store.state.api + "selectHfList", params)
  17450. // .then((res) => {
  17451. // var a = res.data[0];
  17452. // for (var i = 0; i < a.length; i++) {
  17453. // for (var j = 0; j < this.pzList.length; j++) {
  17454. // if (!this.pzList[i].hfList) {
  17455. // this.pzList[i].hfList = [];
  17456. // }
  17457. // if (a[i].pid == this.pzList[j].id) {
  17458. // this.pzList[i].hfList.push(a[i]);
  17459. // }
  17460. // }
  17461. // }
  17462. // })
  17463. // .catch((err) => {
  17464. // console.error(err);
  17465. // });
  17466. // },
  17467. updateSLook() {
  17468. let params = {
  17469. sopen: this.sIsOpen == false ? 1 : 2,
  17470. cid: this.id,
  17471. };
  17472. this.ajax
  17473. .get(this.$store.state.api + "updateCourseSLook", params)
  17474. .then((res) => {
  17475. if (this.sIsOpen == true) {
  17476. this.$message({
  17477. message: this.lang.ssPermSetSuccess,
  17478. type: "success",
  17479. });
  17480. } else {
  17481. this.$message({
  17482. message: this.lang.ssPermClosedOk,
  17483. type: "success",
  17484. });
  17485. }
  17486. })
  17487. .catch((err) => {
  17488. console.error(err);
  17489. });
  17490. },
  17491. updateIsStulook(){
  17492. let params = [
  17493. {
  17494. sopen: this.IsStulook == false ? 2 : 1,
  17495. cid: this.id
  17496. }
  17497. ];
  17498. this.ajax
  17499. .post(this.$store.state.api + "updateCourseStulook", params)
  17500. .then(res => {
  17501. if (this.IsStulook == true) {
  17502. this.$message({
  17503. message: this.lang.ssStuViewPermOn,
  17504. type: "success"
  17505. });
  17506. } else {
  17507. this.$message({
  17508. message: this.lang.ssStuViewPermOff,
  17509. type: "success"
  17510. });
  17511. }
  17512. // this.setCTask();
  17513. })
  17514. .catch(err => {
  17515. console.error(err);
  17516. });
  17517. },
  17518. updateFollow() {
  17519. let params = [
  17520. {
  17521. sopen: this.IsFollow == false ? 1 : 2,
  17522. cid: this.id,
  17523. },
  17524. ];
  17525. this.ajax
  17526. .post(this.$store.state.api + "updateCourseFollow", params)
  17527. .then((res) => {
  17528. if (this.IsFollow == true) {
  17529. this.$message({
  17530. message: this.lang.ssFollowModeOn2,
  17531. type: "success",
  17532. });
  17533. } else {
  17534. this.$message({
  17535. message: this.lang.ssFollowModeOff,
  17536. type: "success",
  17537. });
  17538. }
  17539. this.setCTask();
  17540. })
  17541. .catch((err) => {
  17542. console.error(err);
  17543. });
  17544. },
  17545. setCTask() {
  17546. let params = [
  17547. {
  17548. sopen: this.courseType + "-" + this.taskCount,
  17549. cid: this.id,
  17550. },
  17551. ];
  17552. this.ajax
  17553. .post(this.$store.state.api + "updateCourseFollowC", params)
  17554. .then((res) => {})
  17555. .catch((err) => {
  17556. console.error(err);
  17557. });
  17558. },
  17559. updateLookOpen() {
  17560. let params = [
  17561. {
  17562. sopen: this.IsLookOpen == false ? 1 : 2,
  17563. cid: this.id,
  17564. },
  17565. ];
  17566. this.ajax
  17567. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17568. .then((res) => {
  17569. if (this.IsLookOpen == true) {
  17570. // if (this.courseType != 0 && this.taskCount != 0) {
  17571. // this.openTask(0, 0, "0-0");
  17572. // }
  17573. this.$message({
  17574. message: this.lang.ssPermSetSuccess,
  17575. type: "success",
  17576. });
  17577. } else {
  17578. this.$message({
  17579. message: this.lang.ssPermClosedOk,
  17580. type: "success",
  17581. });
  17582. }
  17583. this.getCourseState(2);
  17584. })
  17585. .catch((err) => {
  17586. console.error(err);
  17587. });
  17588. },
  17589. selectSLook() {
  17590. if(this.selectSLookLoading) return
  17591. this.selectSLookLoading = true
  17592. let params = {
  17593. cid: this.id,
  17594. };
  17595. this.ajax
  17596. .get(this.$store.state.api + "selectCourseSLook", params)
  17597. .then((res) => {
  17598. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17599. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17600. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17601. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  17602. if (!this.IsLookOpen) {
  17603. this.setNavList();
  17604. }else {
  17605. this.getCourseState(1);
  17606. }
  17607. if ((this.IsFollow && this.tType == 2)) {
  17608. this.setContent2(false);
  17609. let _followC = res.data[0][0].followC.split("-");
  17610. if (
  17611. this.courseType != _followC[0] ||
  17612. this.taskCount != _followC[1]
  17613. ) {
  17614. this.navList[this.courseType].isOpen = false;
  17615. this.courseType = _followC[0];
  17616. this.navList[this.courseType].isOpen = true;
  17617. this.taskCount = parseInt(_followC[1]);
  17618. this.navId = res.data[0][0].followC;
  17619. document.scrollingElement.scrollTop = 0;
  17620. this.getCourseDetail(2);
  17621. }
  17622. }
  17623. this.selectSLookLoading = false
  17624. })
  17625. .catch((err) => {
  17626. this.selectSLookLoading = false
  17627. console.error(err);
  17628. });
  17629. },
  17630. setNavList() {
  17631. if (this.navList.length == 0) {
  17632. this.navList = [];
  17633. var copyList = [];
  17634. for (var l = 0; l < this.chapInfoList.length; l++) {
  17635. var q = this.chapInfoList[l].dyName;
  17636. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17637. var e;
  17638. copyList.push({
  17639. dyName: q,
  17640. isOpen: l === 0 ? true : false,
  17641. task: [],
  17642. });
  17643. for (var r = 0; r < w.length; r++) {
  17644. e = w[r].task;
  17645. if (this.chapInfoList[l].easy == 1) {
  17646. copyList[l].task.push({
  17647. taskName: q,
  17648. id: l + "-" + r,
  17649. isLook: w[r].isLook,
  17650. isOpen: r === 0 ? true : false,
  17651. tool: [],
  17652. });
  17653. } else {
  17654. copyList[l].task.push({
  17655. taskName: e,
  17656. id: l + "-" + r,
  17657. isLook: w[r].isLook,
  17658. isOpen: r === 0 ? true : false,
  17659. tool: [],
  17660. });
  17661. }
  17662. var t = w[r].toolChoose;
  17663. for (var k = 0; k < t.length; k++) {
  17664. var tool = t[k].tool[0];
  17665. copyList[l].task[r].tool.push({
  17666. tool: tool,
  17667. isTool: false,
  17668. });
  17669. }
  17670. // this.navId = this.navId ? this.navId : l + "-" + r;
  17671. // this.navId = l + "-" + r;
  17672. }
  17673. }
  17674. this.navList = copyList;
  17675. this.navList[0].isOpen = false;
  17676. this.navList[this.courseType].isOpen = true;
  17677. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17678. } else {
  17679. this.setNavList2();
  17680. }
  17681. },
  17682. setNavList2() {
  17683. for (var l = 0; l < this.chapInfoList.length; l++) {
  17684. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17685. for (var r = 0; r < w.length; r++) {
  17686. this.navList[l].task[r].isLook = w[r].isLook;
  17687. }
  17688. }
  17689. if (
  17690. this.IsLookOpen &&
  17691. !this.navList[this.courseType].task[this.taskCount].isLook
  17692. ) {
  17693. this.openTask(0, 0, "0-0");
  17694. }
  17695. this.$forceUpdate();
  17696. },
  17697. getCourseState(type) {
  17698. let params = {
  17699. cid: this.id,
  17700. };
  17701. this.ajax
  17702. .get(this.$store.state.api + "getCourseState", params)
  17703. .then((res) => {
  17704. // if (res.data[0].length > 0) {
  17705. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  17706. // }
  17707. if (res.data[0].length > 0 && type == 1) {
  17708. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17709. this.setNavList();
  17710. this.$forceUpdate();
  17711. } else if (res.data[0].length > 0 && type == 2) {
  17712. this.addCourseState(2);
  17713. } else {
  17714. // this.addCourseState(1);
  17715. }
  17716. })
  17717. .catch((err) => {
  17718. console.error(err);
  17719. });
  17720. },
  17721. addCourseState(type,val = '') {
  17722. let _state = val ? val : this.chapInfoList;
  17723. // this.courseType this.taskCount
  17724. if (type == 1 || type == 2) {
  17725. for (var i = 0; i < _state.length; i++) {
  17726. let el = _state[i].chapterInfo[0].taskJson;
  17727. for (var j = 0; j < el.length; j++) {
  17728. // if (i == 0 && j == 0) {
  17729. // el[j].isLook = true;
  17730. // } else {
  17731. // el[j].isLook = false;
  17732. // }
  17733. if (
  17734. this.courseType > i ||
  17735. (this.courseType == i && this.taskCount + 1 > j)
  17736. ) {
  17737. el[j].isLook = true;
  17738. } else {
  17739. el[j].isLook = false;
  17740. }
  17741. }
  17742. }
  17743. }
  17744. let params = [
  17745. {
  17746. cid: this.id,
  17747. state: JSON.stringify(_state),
  17748. },
  17749. ];
  17750. this.ajax
  17751. .post(
  17752. this.$store.state.api +
  17753. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17754. params
  17755. )
  17756. .then((res) => {
  17757. if (this.IsLookOpen) {
  17758. this.setNavList();
  17759. }
  17760. if (type == 3 && type == 2) {
  17761. this.getCourseState(1);
  17762. }
  17763. })
  17764. .catch((err) => {
  17765. console.error(err);
  17766. });
  17767. },
  17768. getHomeWork() {
  17769. let params = {
  17770. cid: this.id,
  17771. stage: this.courseType,
  17772. task: this.taskCount,
  17773. uid: this.userid,
  17774. };
  17775. this.ajax
  17776. .get(this.$store.state.api + "selectWork", params)
  17777. .then((res) => {
  17778. if (res.data[0].length > 0) {
  17779. this.studyJuri = JSON.parse(res.data[0][0].content);
  17780. this.isNoHomeWork = true;
  17781. }
  17782. })
  17783. .catch((err) => {
  17784. console.error(err);
  17785. });
  17786. },
  17787. isAssetTypeAnImage(ext) {
  17788. return (
  17789. [
  17790. "png",
  17791. "jpg",
  17792. "jpeg",
  17793. "bmp",
  17794. "gif",
  17795. "webp",
  17796. "psd",
  17797. "svg",
  17798. "tiff",
  17799. ].indexOf(ext) !== -1
  17800. );
  17801. },
  17802. switchVideo(media) {
  17803. this.playerO = {};
  17804. this.playerOptions.poster = "";
  17805. this.playerOptions.sources[0].src = media;
  17806. this.playerO = this.playerOptions;
  17807. },
  17808. onPlayerPlay() {},
  17809. onPlayerTimeupdate(player) {
  17810. let gklog = player.cache_.currentTime; //当前播放的秒数
  17811. let a = player.cache_.duration; //视频的总时长
  17812. let gklog2 = parseInt(gklog);
  17813. // if(gklog2 == '3'){
  17814. // player.pause()
  17815. // setTimeout(()=>{
  17816. // player.currentTime(gklog2+1)
  17817. // player.play()
  17818. // },1000)
  17819. // }
  17820. console.log(" onPlayerTimeupdate!", gklog);
  17821. console.log(" onPlayerTimeupdate!", gklog2);
  17822. },
  17823. lookVedio(u, i) {
  17824. this.isClickNav = "";
  17825. // this.playerOptions.sources[0].src = u;
  17826. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17827. d.sources[0].src = u;
  17828. this.playerO[0] = d;
  17829. this.showType = 0;
  17830. // this.isClickNav = "video" + i;
  17831. this.isClickNav = i;
  17832. this.$forceUpdate();
  17833. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17834. },
  17835. lookText(i, t) {
  17836. this.isClickNav = "";
  17837. // this.text = this.textList[i][t];
  17838. this.text = this.vChapterData[i][t];
  17839. // this.dialogVisible1 = true;
  17840. this.showType = 1;
  17841. // this.isClickNav = "text" + t;
  17842. this.isClickNav = t;
  17843. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17844. },
  17845. lookTools(i, t) {
  17846. this.chapTools = this.chapToolList[i][t];
  17847. this.dialogVisible2 = true;
  17848. },
  17849. async openFile(f) {
  17850. this.pptImgUrl = "";
  17851. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17852. if (
  17853. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17854. -1
  17855. ) {
  17856. let _uuurl = await this.checkLink(f);
  17857. console.log(_uuurl)
  17858. this.pptImgUrl =
  17859. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17860. this.showPDF = false;
  17861. this.dialogVisible3 = true;
  17862. } else if (
  17863. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17864. ) {
  17865. this.pptImgUrl = f;
  17866. this.showPDF = true;
  17867. this.dialogVisible3 = true;
  17868. }
  17869. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17870. },
  17871. openTable(f) {
  17872. this.tableJson = JSON.parse(f.works);
  17873. this.dialogVisibleTable2 = true;
  17874. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17875. },
  17876. openWord(f) {
  17877. this.tableJson = JSON.parse(f.works);
  17878. this.dialogVisibleTable3 = true;
  17879. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17880. },
  17881. doUrl(url, i) {
  17882. this.isClickNav = "";
  17883. this.pptImgUrl1 = "";
  17884. this.showType = 2;
  17885. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17886. url = "https://" + url;
  17887. }
  17888. this.pptImgUrl1 = "";
  17889. this.diffKey = new Date().getTime();
  17890. setTimeout(() => {
  17891. this.pptImgUrl1 = url;
  17892. }, 500);
  17893. // this.isClickNav = "line" + i;
  17894. this.isClickNav = i;
  17895. this.$forceUpdate();
  17896. },
  17897. checkPhoto(f, i) {
  17898. this.showType = 4;
  17899. this.pptImgUrl1 = f.url;
  17900. this.isClickNav = i;
  17901. this.$forceUpdate();
  17902. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17903. },
  17904. checkHtml(f, i){
  17905. this.showType = 16;
  17906. this.pptImgUrl1 = f.url;
  17907. this.isClickNav = i;
  17908. this.$forceUpdate();
  17909. },
  17910. async downFile(f, i) {
  17911. this.isClickNav = "";
  17912. this.pptImgUrl1 = "";
  17913. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17914. if (
  17915. a.indexOf(
  17916. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17917. ) != -1
  17918. ) {
  17919. let _uuurl = await this.checkLink(f.url);
  17920. console.log(_uuurl)
  17921. this.pptImgUrl1 =
  17922. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17923. // this.dialogVisible3 = true;
  17924. this.showType = 2;
  17925. } else if (
  17926. this.isAssetTypeAnImage(
  17927. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17928. )
  17929. ) {
  17930. this.showType = 4;
  17931. this.pptImgUrl1 = f.url;
  17932. } else if (
  17933. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17934. "PDF"
  17935. ) {
  17936. this.pptImgUrl1 = f.url;
  17937. // this.dialogVisible3 = true;
  17938. this.showType = 3;
  17939. } else {
  17940. window.open(this.file[i].url);
  17941. }
  17942. // this.isClickNav = "word" + i;
  17943. this.isClickNav = i;
  17944. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17945. },
  17946. downFileList(i) {
  17947. window.open(this.noImgList[i].url);
  17948. },
  17949. openAddWork() {
  17950. this.dialogVisible = true;
  17951. },
  17952. addBzWorks() {
  17953. let params = [
  17954. {
  17955. uid: this.userid,
  17956. cid: this.id,
  17957. stage: this.courseType,
  17958. task: this.taskCount,
  17959. tool: this.toolindex,
  17960. content: JSON.stringify(this.eScore),
  17961. type: 6,
  17962. },
  17963. ];
  17964. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17965. this.homeWorkLoading = true
  17966. this.ajax
  17967. .post(this.$store.state.api + "addCourseWorks", params)
  17968. .then((res) => {
  17969. this.$message({
  17970. message: this.lang.ssSubmitSuccess,
  17971. type: "success",
  17972. });
  17973. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  17974. setTimeout(() => {
  17975. this.homeWorkLoading = false
  17976. }, 500);
  17977. this.eScore = { eBzText: "", eStar: [] };
  17978. this.studentEvalDialogVisible = false;
  17979. this.selectSWorks();
  17980. })
  17981. .catch((err) => {
  17982. this.$message.error(this.lang.ssSubmitFailed);
  17983. console.error(err);
  17984. setTimeout(() => {
  17985. this.homeWorkLoading = false
  17986. }, 500);
  17987. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  17988. });
  17989. },
  17990. addBzWorksTeacher() {
  17991. let params = [
  17992. {
  17993. uid: this.sStudent.userid,
  17994. cid: this.id,
  17995. stage: this.courseType,
  17996. task: this.taskCount,
  17997. tool: this.toolindex,
  17998. content: JSON.stringify(this.eScore),
  17999. type: 6,
  18000. },
  18001. ];
  18002. this.ajax
  18003. .post(this.$store.state.api + "addCourseWorks", params)
  18004. .then((res) => {
  18005. this.$message({
  18006. message: this.lang.ssSubmitSuccess,
  18007. type: "success",
  18008. });
  18009. this.eScore = { eBzText: "", eStar: [] };
  18010. this.studentEvalDialogVisibleTeacher = false;
  18011. this.selectSWorks();
  18012. })
  18013. .catch((err) => {
  18014. this.$message.error(this.lang.ssSubmitFailed);
  18015. console.error(err);
  18016. });
  18017. },
  18018. addStudentAsk() {
  18019. if (!this.radio.length) {
  18020. this.$message.error(this.lang.ssPleaseSelectOption);
  18021. return;
  18022. }
  18023. for (var i = 0; i < this.askJson.askCount; i++) {
  18024. if (
  18025. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18026. (this.radio[i] !== 0 && !this.radio[i])
  18027. ) {
  18028. this.$message.error(this.lang.ssPleaseSelectOption);
  18029. return;
  18030. }
  18031. }
  18032. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18033. let params = [
  18034. {
  18035. uid: this.userid,
  18036. cid: this.id,
  18037. stage: this.courseType,
  18038. task: this.taskCount,
  18039. tool: this.toolindex,
  18040. content: JSON.stringify(this.askList),
  18041. type: 2,
  18042. },
  18043. ];
  18044. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  18045. this.homeWorkLoading = true
  18046. this.ajax
  18047. .post(this.$store.state.api + "addCourseWorks", params)
  18048. .then((res) => {
  18049. this.$message({
  18050. message: this.lang.ssSubmitSuccess,
  18051. type: "success",
  18052. });
  18053. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18054. setTimeout(() => {
  18055. this.homeWorkLoading = false
  18056. }, 500);
  18057. this.askList = [];
  18058. this.dialogVisible5 = false;
  18059. this.selectStudent();
  18060. this.selectSWorks();
  18061. this.selectSLook();
  18062. })
  18063. .catch((err) => {
  18064. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18065. setTimeout(() => {
  18066. this.homeWorkLoading = false
  18067. }, 500);
  18068. this.$message.error(this.lang.ssSubmitFailed);
  18069. console.error(err);
  18070. });
  18071. },
  18072. addStudentAskTeacher() {
  18073. if (!this.radio.length) {
  18074. this.$message.error(this.lang.ssPleaseSelectOption);
  18075. return;
  18076. }
  18077. for (var i = 0; i < this.askJson.askCount; i++) {
  18078. if (
  18079. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18080. (this.radio[i] !== 0 && !this.radio[i])
  18081. ) {
  18082. this.$message.error(this.lang.ssPleaseSelectOption);
  18083. return;
  18084. }
  18085. }
  18086. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18087. let params = [
  18088. {
  18089. uid: this.sStudent.userid,
  18090. cid: this.id,
  18091. stage: this.courseType,
  18092. task: this.taskCount,
  18093. tool: this.toolindex,
  18094. content: JSON.stringify(this.askList),
  18095. type: 2,
  18096. },
  18097. ];
  18098. this.ajax
  18099. .post(this.$store.state.api + "addCourseWorks", params)
  18100. .then((res) => {
  18101. this.$message({
  18102. message: this.lang.ssSubmitSuccess,
  18103. type: "success",
  18104. });
  18105. this.askList = [];
  18106. this.dialogVisible5Teacher = false;
  18107. this.selectStudent();
  18108. this.selectSWorks();
  18109. this.selectSLook();
  18110. })
  18111. .catch((err) => {
  18112. this.$message.error(this.lang.ssSubmitFailed);
  18113. console.error(err);
  18114. });
  18115. },
  18116. addStudentTest() {
  18117. if (!this.radio.length) {
  18118. this.$message.error(this.lang.ssPleaseSelectOption);
  18119. return;
  18120. }
  18121. for (var i = 0; i < this.testJson.testCount; i++) {
  18122. if (
  18123. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18124. (this.radio[i] !== 0 && !this.radio[i])
  18125. ) {
  18126. this.$message.error(this.lang.ssPleaseSelectOption);
  18127. return;
  18128. }
  18129. }
  18130. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18131. let params = [
  18132. {
  18133. uid: this.userid,
  18134. cid: this.id,
  18135. stage: this.courseType,
  18136. task: this.taskCount,
  18137. tool: this.toolindex,
  18138. content: JSON.stringify(this.askList),
  18139. type: 8,
  18140. },
  18141. ];
  18142. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  18143. this.homeWorkLoading = true
  18144. this.ajax
  18145. .post(this.$store.state.api + "addCourseWorks", params)
  18146. .then((res) => {
  18147. this.$message({
  18148. message: this.lang.ssSubmitSuccess,
  18149. type: "success",
  18150. });
  18151. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18152. setTimeout(() => {
  18153. this.homeWorkLoading = false
  18154. }, 500);
  18155. this.askList = [];
  18156. this.dialogVisibleChoice = false;
  18157. this.selectStudent();
  18158. this.selectSWorks();
  18159. this.selectSLook();
  18160. })
  18161. .catch((err) => {
  18162. this.$message.error(this.lang.ssSubmitFailed);
  18163. console.error(err);
  18164. setTimeout(() => {
  18165. this.homeWorkLoading = false
  18166. }, 500);
  18167. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18168. });
  18169. },
  18170. addStudentTestTeacher() {
  18171. if (!this.radio.length) {
  18172. this.$message.error(this.lang.ssPleaseSelectOption);
  18173. return;
  18174. }
  18175. for (var i = 0; i < this.testJson.testCount; i++) {
  18176. if (
  18177. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18178. (this.radio[i] !== 0 && !this.radio[i])
  18179. ) {
  18180. this.$message.error(this.lang.ssPleaseSelectOption);
  18181. return;
  18182. }
  18183. }
  18184. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18185. let params = [
  18186. {
  18187. uid: this.sStudent.userid,
  18188. cid: this.id,
  18189. stage: this.courseType,
  18190. task: this.taskCount,
  18191. tool: this.toolindex,
  18192. content: JSON.stringify(this.askList),
  18193. type: 8,
  18194. },
  18195. ];
  18196. this.ajax
  18197. .post(this.$store.state.api + "addCourseWorks", params)
  18198. .then((res) => {
  18199. this.$message({
  18200. message: this.lang.ssSubmitSuccess,
  18201. type: "success",
  18202. });
  18203. this.askList = [];
  18204. this.dialogVisibleChoiceTeacher = false;
  18205. this.selectStudent();
  18206. this.selectSWorks();
  18207. this.selectSLook();
  18208. })
  18209. .catch((err) => {
  18210. this.$message.error(this.lang.ssSubmitFailed);
  18211. console.error(err);
  18212. });
  18213. },
  18214. addWork() {
  18215. if (this.studyJuri[0].content == "") {
  18216. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18217. return;
  18218. } else if (this.studyJuri[0].cover.length == 0) {
  18219. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18220. return;
  18221. } else if (this.studyJuri[0].upVedio.length == 0) {
  18222. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18223. return;
  18224. }
  18225. if (this.isNoHomeWork) {
  18226. this.$confirm(
  18227. this.lang.ssAlreadySubmittedHomework,
  18228. this.lang.ssPrompt,
  18229. {
  18230. confirmButtonText: this.lang.ssConfirm,
  18231. cancelButtonText: this.lang.ssCancel,
  18232. type: "warning",
  18233. }
  18234. )
  18235. .then(() => {
  18236. let params = [
  18237. {
  18238. uid: this.userid,
  18239. cid: this.id,
  18240. stage: this.courseType,
  18241. task: this.taskCount,
  18242. content: JSON.stringify(this.studyJuri),
  18243. },
  18244. ];
  18245. this.ajax
  18246. .post(this.$store.state.api + "addWorks", params)
  18247. .then((res) => {
  18248. this.$message({
  18249. message: this.lang.ssSubmitSuccess,
  18250. type: "success",
  18251. });
  18252. this.isNoHomeWork = true;
  18253. this.dialogVisible = false;
  18254. })
  18255. .catch((err) => {
  18256. this.$message.error(this.lang.ssSubmitFailed);
  18257. console.error(err);
  18258. });
  18259. })
  18260. .catch(() => {});
  18261. } else {
  18262. let params = [
  18263. {
  18264. uid: this.userid,
  18265. cid: this.id,
  18266. stage: this.courseType,
  18267. task: this.taskCount,
  18268. content: JSON.stringify(this.studyJuri),
  18269. },
  18270. ];
  18271. this.ajax
  18272. .post(this.$store.state.api + "addWorks", params)
  18273. .then((res) => {
  18274. this.$message({
  18275. message: this.lang.ssSubmitSuccess,
  18276. type: "success",
  18277. });
  18278. this.isNoHomeWork = true;
  18279. this.dialogVisible = false;
  18280. })
  18281. .catch((err) => {
  18282. this.$message.error(this.lang.ssSubmitFailed);
  18283. console.error(err);
  18284. });
  18285. }
  18286. },
  18287. selectCount() {
  18288. let params = {
  18289. cid: this.id,
  18290. chid: this.courseType,
  18291. uid: this.userid,
  18292. };
  18293. this.ajax
  18294. .get(this.$store.state.api + "selectToolsCount", params)
  18295. .then((res) => {
  18296. for (var i = 0; i < res.data[0].length; i++) {
  18297. if (res.data[0][i].tools == 1) {
  18298. this.wbCount = res.data[0][i].count;
  18299. } else if (res.data[0][i].tools == 2) {
  18300. this.wordCount = res.data[0][i].count;
  18301. } else if (res.data[0][i].tools == 3) {
  18302. this.mindCount = res.data[0][i].count;
  18303. } else if (res.data[0][i].tools == 4) {
  18304. this.askCount = res.data[0][i].count;
  18305. } else if (res.data[0][i].tools == 6) {
  18306. this.noteCount = res.data[0][i].count;
  18307. } else if (res.data[0][i].tools == 7) {
  18308. this.mindNetWorkCount = res.data[0][i].count;
  18309. } else if (res.data[0][i].tools == 8) {
  18310. this.libraryCount = res.data[0][i].count;
  18311. } else if (res.data[0][i].tools == 16) {
  18312. this.workCount = res.data[0][i].count;
  18313. } else if (res.data[0][i].tools == 10) {
  18314. this.timeCount = res.data[0][i].count;
  18315. } else if (res.data[0][i].tools == 15) {
  18316. this.answerCount = res.data[0][i].count;
  18317. } else if (res.data[0][i].tools == 18) {
  18318. this.trainCount = res.data[0][i].count;
  18319. }
  18320. }
  18321. })
  18322. .catch((err) => {
  18323. console.error(err);
  18324. });
  18325. },
  18326. openTools(t, i, index, c, sName,id) {
  18327. var z = JSON.parse(c);
  18328. this.noteName = sName;
  18329. if (t == 4) {
  18330. this.radio = [];
  18331. this.isAnswer = false;
  18332. let b = z[0].anwer;
  18333. this.radio = b;
  18334. this.askJson = z[0].askJson;
  18335. this.isAnswer = true;
  18336. this.dialogVisible5 = true;
  18337. } else if (t == 45) {
  18338. this.radio = [];
  18339. this.isAnswer = false;
  18340. let b = z[0].anwer;
  18341. this.radio = b;
  18342. this.testJson = z[0].testJson;
  18343. this.isAnswer = true;
  18344. this.dialogVisibleChoice = true;
  18345. }else if(t == 69){
  18346. this.oldEnglishJson1 = {}
  18347. this.oldEnglishJson = {}
  18348. this.englishList1 = {}
  18349. this.newEngIndex = -1;
  18350. this.isNoUserid = false;
  18351. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18352. .toolChoose[i].englishList;
  18353. this.oldEnglishJson = z;
  18354. this.engWid = id;
  18355. this.newEnglishList = { engTitle:"",engText:"" }
  18356. this.newEnglishList1 = []
  18357. this.selectEngC(id,z);
  18358. }else if(t == 62){
  18359. this.videoType = 1;
  18360. this.videoJson = {};
  18361. this.videoJson = JSON.parse(c);
  18362. // this.videoJson =
  18363. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18364. // index
  18365. // ].toolChoose[i].videoJson;
  18366. this.dialogVisibleVideo = true;
  18367. }
  18368. // else if (t == 15) {
  18369. // this.answerQ = "";
  18370. // this.questionAnswer = "";
  18371. // this.answerQ = z[0].answerTitle;
  18372. // this.questionAnswer = z[0].answer;
  18373. // this.answerDialogVisible = true;
  18374. // }
  18375. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18376. },
  18377. fastText(p, t) {
  18378. if (t == 1) {
  18379. this.commentText += p;
  18380. } else {
  18381. this.eScore.eBzText += p;
  18382. }
  18383. },
  18384. addTools(t, i, index) {
  18385. var a = 0;
  18386. // this.taskCount = index;
  18387. this.toolindex = i;
  18388. if (t == 1) {
  18389. if (this.wbCount > 0) {
  18390. this.updateCount(this.wbCount, t);
  18391. } else {
  18392. this.wbCount++;
  18393. a = this.wbCount;
  18394. this.toolsCount(a, t);
  18395. }
  18396. window.topU.postMessage(
  18397. {
  18398. tools: "1",
  18399. cid: this.id,
  18400. stage: this.courseType,
  18401. task: this.taskCount,
  18402. tool: i,
  18403. },
  18404. "*"
  18405. );
  18406. } else if (t == 2) {
  18407. if (this.wordCount > 0) {
  18408. this.updateCount(this.wordCount, t);
  18409. } else {
  18410. this.wordCount++;
  18411. a = this.wordCount;
  18412. this.toolsCount(a, t);
  18413. }
  18414. window.topU.postMessage({ tools: "2" }, "*");
  18415. } else if (t == 3) {
  18416. if (this.mindCount > 0) {
  18417. this.updateCount(this.mindCount, t);
  18418. } else {
  18419. this.mindCount++;
  18420. a = this.mindCount;
  18421. this.toolsCount(a, t);
  18422. }
  18423. window.topU.postMessage(
  18424. {
  18425. tools: "3",
  18426. cid: this.id,
  18427. stage: this.courseType,
  18428. task: this.taskCount,
  18429. tool: i,
  18430. },
  18431. "*"
  18432. );
  18433. } else if (t == 4) {
  18434. this.radio = [];
  18435. this.noteName = "";
  18436. this.isAnswer = false;
  18437. if (this.askCount > 0) {
  18438. this.updateCount(this.askCount, t);
  18439. } else {
  18440. this.askCount++;
  18441. a = this.askCount;
  18442. this.toolsCount(a, t);
  18443. }
  18444. if (!this.dialogVisible2) {
  18445. this.askJson.askJson =
  18446. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18447. index
  18448. ].toolChoose[i].askJson;
  18449. this.askJson.askTitle =
  18450. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18451. index
  18452. ].toolChoose[i].askTitle;
  18453. this.askJson.askCount =
  18454. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18455. index
  18456. ].toolChoose[i].askCount;
  18457. } else {
  18458. this.askJson.askJson = this.chapTools.askJson.askJson;
  18459. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18460. this.askJson.askCount = this.chapTools.askJson.askCount;
  18461. }
  18462. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18463. if (this.askJson.askJson[k].type == "2") {
  18464. this.radio.push([]);
  18465. } else {
  18466. this.radio.push("");
  18467. }
  18468. }
  18469. this.dialogVisible5 = true;
  18470. // window.topU.postMessage({ tools: "4" }, "*");
  18471. } else if (t == 45) {
  18472. this.noteName = "";
  18473. this.radio = [];
  18474. this.isAnswer = false;
  18475. if (this.askCount > 0) {
  18476. this.updateCount(this.askCount, t);
  18477. } else {
  18478. this.askCount++;
  18479. a = this.askCount;
  18480. this.toolsCount(a, t);
  18481. }
  18482. this.testJson =
  18483. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18484. index
  18485. ].toolChoose[i].testJson;
  18486. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18487. if (this.testJson.testJson[k].type == "2") {
  18488. this.radio.push([]);
  18489. } else {
  18490. this.radio.push("");
  18491. }
  18492. }
  18493. this.dialogVisibleChoice = true;
  18494. // window.topU.postMessage({ tools: "4" }, "*");
  18495. } else if (t == 5) {
  18496. if (this.scoreCount > 0) {
  18497. this.updateCount(this.scoreCount, t);
  18498. } else {
  18499. this.scoreCount++;
  18500. a = this.scoreCount;
  18501. this.toolsCount(a, t);
  18502. }
  18503. this.dialogVisible4 = true;
  18504. // window.topU.postMessage({ tools: "5" }, "*");
  18505. } else if (t == 6) {
  18506. if (this.noteCount > 0) {
  18507. this.updateCount(this.noteCount, t);
  18508. } else {
  18509. this.noteCount++;
  18510. a = this.noteCount;
  18511. this.toolsCount(a, t);
  18512. }
  18513. window.topU.postMessage(
  18514. {
  18515. tools: "6",
  18516. cid: this.id,
  18517. stage: this.courseType,
  18518. task: this.taskCount,
  18519. tool: i,
  18520. },
  18521. "*"
  18522. );
  18523. } else if (t == 7) {
  18524. if (this.mindNetWorkCount > 0) {
  18525. this.updateCount(this.mindNetWorkCount, t);
  18526. } else {
  18527. this.mindNetWorkCount++;
  18528. a = this.mindNetWorkCount;
  18529. this.toolsCount(a, t);
  18530. }
  18531. window.topU.postMessage(
  18532. {
  18533. tools: "7",
  18534. cid: this.id,
  18535. stage: this.courseType,
  18536. task: this.taskCount,
  18537. tool: i,
  18538. },
  18539. "*"
  18540. );
  18541. } else if (t == 16) {
  18542. if (this.workCount > 0) {
  18543. this.updateCount(this.workCount, t);
  18544. } else {
  18545. this.workCount++;
  18546. a = this.workCount;
  18547. this.toolsCount(a, t);
  18548. }
  18549. this.dialogVisible = true;
  18550. } else if (t == 50) {
  18551. if (this.tType == 2) {
  18552. this.$message.error(this.lang.ssNotSupportedForStudents);
  18553. return;
  18554. }
  18555. this.plworkFile = [];
  18556. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18557. if (!this.uploadCid) {
  18558. this.$message.error(this.lang.ssBatchUploadNoClassPermission);
  18559. return;
  18560. }
  18561. // this.uploadCid =
  18562. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18563. // index
  18564. // ].toolChoose[i].uploadJson[0];
  18565. this.selectUploadStudent(2);
  18566. } else if (t == 8) {
  18567. if (this.libraryCount > 0) {
  18568. this.updateCount(this.libraryCount, t);
  18569. } else {
  18570. this.libraryCount++;
  18571. a = this.libraryCount;
  18572. this.toolsCount(a, t);
  18573. }
  18574. window.topU.postMessage({ tools: "8" }, "*");
  18575. } else if (t == 17) {
  18576. if (this.libraryCount > 0) {
  18577. this.updateCount(this.libraryCount, t);
  18578. } else {
  18579. this.libraryCount++;
  18580. a = this.libraryCount;
  18581. this.toolsCount(a, t);
  18582. }
  18583. window.topU.postMessage({ tools: "17" }, "*");
  18584. } else if (t == 18) {
  18585. if (this.trainCount > 0) {
  18586. this.updateCount(this.trainCount, t);
  18587. } else {
  18588. this.trainCount++;
  18589. a = this.trainCount;
  18590. this.toolsCount(a, t);
  18591. }
  18592. window.topU.postMessage({ tools: "18" }, "*");
  18593. } else if (t == 10) {
  18594. if (this.timeCount > 0) {
  18595. this.updateCount(this.timeCount, t);
  18596. } else {
  18597. this.timeCount++;
  18598. a = this.timeCount;
  18599. this.toolsCount(a, t);
  18600. }
  18601. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18602. .taskJson[index].toolChoose[i].preTime
  18603. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18604. .toolChoose[i].preTime
  18605. : "";
  18606. this.timeDialogVisible = true;
  18607. } else if (t == 15) {
  18608. this.answerQ = "";
  18609. this.questionAnswer = "";
  18610. if (this.answerCount > 0) {
  18611. this.updateCount(this.answerCount, t);
  18612. } else {
  18613. this.answerCount++;
  18614. a = this.answerCount;
  18615. this.toolsCount(a, t);
  18616. }
  18617. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18618. .taskJson[index].toolChoose[i].answerQ
  18619. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18620. .toolChoose[i].answerQ
  18621. : "";
  18622. this.answerDialogVisible = true;
  18623. } else if (t == 21) {
  18624. window.topU.postMessage({ tools: "21" }, "*");
  18625. } else if (t == 22) {
  18626. window.topU.postMessage({ tools: "22" }, "*");
  18627. } else if (t == 23) {
  18628. window.topU.postMessage({ tools: "23" }, "*");
  18629. } else if (t == 24) {
  18630. window.topU.postMessage({ tools: "24" }, "*");
  18631. } else if (t == 25) {
  18632. window.topU.postMessage({ tools: "25" }, "*");
  18633. } else if (t == 31) {
  18634. window.topU.postMessage({ tools: "31" }, "*");
  18635. } else if (t == 28) {
  18636. window.topU.postMessage({ tools: "28" }, "*");
  18637. } else if (t == 37) {
  18638. window.topU.postMessage({ tools: "37" }, "*");
  18639. } else if (t == 38) {
  18640. window.topU.postMessage({ tools: "38" }, "*");
  18641. } else if (t == 39) {
  18642. window.topU.postMessage({ tools: "39" }, "*");
  18643. } else if (t == 32) {
  18644. window.topU.postMessage({ tools: "32" }, "*");
  18645. } else if (t == 66) {
  18646. window.topU.postMessage({ tools: "66" }, "*");
  18647. } else if (t == 67) {
  18648. window.topU.postMessage({ tools: "67" }, "*");
  18649. } else if (t == 68) {
  18650. window.topU.postMessage({ tools: "68" }, "*");
  18651. } else if (t == 57) {
  18652. // window.topU.postMessage({ tools: "57" }, "*");
  18653. window.topU.postMessage(
  18654. {
  18655. tools: "57u",
  18656. cid: this.id,
  18657. stage: this.courseType,
  18658. task: this.taskCount,
  18659. tool: i,
  18660. },
  18661. "*"
  18662. );
  18663. } else if (t == 58) {
  18664. window.topU.postMessage({ tools: "58" }, "*");
  18665. } else if (t == 59) {
  18666. window.topU.postMessage({ tools: "59" }, "*");
  18667. } else if (t == 60) {
  18668. window.topU.postMessage({ tools: "60" }, "*");
  18669. } else if (t == 61) {
  18670. window.topU.postMessage({ tools: "61" }, "*");
  18671. } else if (t == 63) {
  18672. window.topU.postMessage({ tools: "63" }, "*");
  18673. } else if (t == 71) {
  18674. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  18675. // this.$message.error("该工具不可使用");
  18676. // return
  18677. // }
  18678. window.topU.postMessage({ tools: "71" }, "*");
  18679. } else if (t == 72) {
  18680. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  18681. .taskJson[index].toolChoose[i].appJson
  18682. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18683. .toolChoose[i].appJson
  18684. : "";
  18685. if(!item || !item.url){
  18686. this.$message.error(this.lang.ssAppConnectionEmpty);
  18687. return;
  18688. }
  18689. if (!document.fullscreenElement) {
  18690. this.enterFullScreen();
  18691. }
  18692. this.$refs.appStoreC.getData(item.url,this.userid)
  18693. // window.topU.postMessage({ tools: "72", data: item }, "*");
  18694. // window.open(item.url, "_blank");
  18695. } else if (t == 69) {
  18696. if (this.worksStudent[i].length) {
  18697. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18698. if (this.userid == this.worksStudent[i][k].userid) {
  18699. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18700. break;
  18701. } else {
  18702. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18703. }
  18704. }
  18705. } else {
  18706. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18707. }
  18708. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18709. .taskJson[index].toolChoose[i].englishList
  18710. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18711. .toolChoose[i].englishList
  18712. : {};
  18713. this.englishToolIndex = i;
  18714. this.myAnList = this.myAnswerList1;
  18715. this.engDialogVisible = true;
  18716. } else if (t == 70) {
  18717. if (this.worksStudent[i].length) {
  18718. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18719. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18720. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18721. break;
  18722. } else {
  18723. this.englishVoiceJsonWork = [];
  18724. }
  18725. }
  18726. } else {
  18727. this.englishVoiceJsonWork = [];
  18728. }
  18729. let englishVoiceJson = {}
  18730. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18731. .taskJson[index].toolChoose[i].englishVoiceJson
  18732. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18733. .toolChoose[i].englishVoiceJson
  18734. : {};
  18735. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18736. this.EnglishVoiceDialog = true;
  18737. } else if (t == 65) {
  18738. if (this.tType == 2) {
  18739. this.$message.error(this.lang.ssNotSupportedForStudents);
  18740. return;
  18741. }
  18742. this.uploadCid = this.tcid;
  18743. if (!this.uploadCid) {
  18744. this.$message.error(this.lang.ssNoClassPermission);
  18745. return;
  18746. }
  18747. this.selectPickStudent();
  18748. } else if (t == 26) {
  18749. window.topU.postMessage(
  18750. {
  18751. tools: "26",
  18752. cid: this.id,
  18753. stage: this.courseType,
  18754. task: this.taskCount,
  18755. tool: i,
  18756. },
  18757. "*"
  18758. );
  18759. } else if (t == 40) {
  18760. if (this.evalCount > 0) {
  18761. this.updateCount(this.evalCount, t);
  18762. } else {
  18763. this.evalCount++;
  18764. a = this.evalCount;
  18765. this.toolsCount(a, t);
  18766. }
  18767. this.eScore = { eBzText: "", eStar: [] };
  18768. if (this.worksStudent[i].length) {
  18769. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18770. if (this.userid == this.worksStudent[i][k].userid) {
  18771. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18772. this.rateJson =
  18773. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18774. index
  18775. ].toolChoose[i].rateJson;
  18776. break;
  18777. } else {
  18778. this.rateJson =
  18779. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18780. index
  18781. ].toolChoose[i].rateJson;
  18782. }
  18783. }
  18784. } else {
  18785. this.rateJson =
  18786. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18787. index
  18788. ].toolChoose[i].rateJson;
  18789. }
  18790. this.isStar = false;
  18791. this.studentEvalDialogVisible = true;
  18792. } else if (t == 41) {
  18793. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18794. .taskJson[index].toolChoose[i].selectJson
  18795. ? JSON.parse(
  18796. JSON.stringify(
  18797. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18798. index
  18799. ].toolChoose[i].selectJson
  18800. )
  18801. )
  18802. : { url: "", select: [], answer: [] };
  18803. if (this.worksStudent[i].length) {
  18804. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18805. if (this.userid == this.worksStudent[i][k].userid) {
  18806. var a = this.worksStudent[i][k].works.split(",");
  18807. for (var ki = 0; ki < a.length; ki++) {
  18808. a[ki] = parseInt(a[ki]);
  18809. }
  18810. this.selectAnswer = {
  18811. answer: a,
  18812. stu: this.worksStudent[i][k].sName,
  18813. };
  18814. break;
  18815. } else {
  18816. this.selectAnswer = { answer: [], stu: "" };
  18817. }
  18818. }
  18819. } else {
  18820. this.selectAnswer = { answer: [], stu: "" };
  18821. }
  18822. this.isSelect = false;
  18823. this.dialogVisibleSelect = true;
  18824. } else if (t == 44) {
  18825. window.topU.postMessage({ tools: "44" }, "*");
  18826. } else if (t == 47) {
  18827. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18828. .taskJson[index].toolChoose[i].sentenceList
  18829. ? JSON.parse(
  18830. JSON.stringify(
  18831. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18832. index
  18833. ].toolChoose[i].sentenceList
  18834. )
  18835. )
  18836. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18837. for (var q = 0; q < this.sentenceList.length; q++) {
  18838. this.sentenceList[q].chooseSenList = [];
  18839. this.sentenceList[q].addChangeSen = [];
  18840. this.sentenceList[q].addChangeSen = JSON.parse(
  18841. JSON.stringify(this.sentenceList[q].addSentence)
  18842. );
  18843. this.sentenceList[q].chooseSenList.length =
  18844. this.sentenceList[q].rightAnswer.length;
  18845. }
  18846. this.dialogVisibleSentence = true;
  18847. } else if (t == 48) {
  18848. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18849. .taskJson[index].toolChoose[i].tableJson
  18850. ? JSON.parse(
  18851. JSON.stringify(
  18852. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18853. index
  18854. ].toolChoose[i].tableJson
  18855. )
  18856. )
  18857. : { text: "" };
  18858. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18859. if (this.worksStudent[i].length) {
  18860. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18861. if (this.userid == this.worksStudent[i][k].userid) {
  18862. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18863. break;
  18864. }
  18865. }
  18866. }
  18867. this.dialogVisibleTable = true;
  18868. } else if (t == 52) {
  18869. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18870. .taskJson[index].toolChoose[i].wordJson
  18871. ? JSON.parse(
  18872. JSON.stringify(
  18873. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18874. index
  18875. ].toolChoose[i].wordJson
  18876. )
  18877. )
  18878. : { text: "" };
  18879. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18880. if (this.worksStudent[i].length) {
  18881. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18882. if (this.userid == this.worksStudent[i][k].userid) {
  18883. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18884. break;
  18885. }
  18886. }
  18887. }
  18888. this.dialogVisibleWord = true;
  18889. } else if (t == 49) {
  18890. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18891. return
  18892. }
  18893. this.groupJson =
  18894. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18895. index
  18896. ].toolChoose[i].groupJson;
  18897. this.islock = this.groupJson.islock == 1 ? true : false;
  18898. this.dialogVisibleGroup = true;
  18899. } else if (t == 62) {
  18900. this.videoType = 0;
  18901. this.videoJson = {};
  18902. this.videoJson =
  18903. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18904. index
  18905. ].toolChoose[i].videoJson;
  18906. this.dialogVisibleVideo = true;
  18907. }
  18908. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  18909. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18910. },
  18911. teacherWorkSubmit(t, i, index, s) {
  18912. console.log('t',t);
  18913. if(t == 72) return
  18914. this.sStudent = s;
  18915. this.toolindex = i;
  18916. this.sTool = t;
  18917. if (this.tType !== "1" && this.tType !== "4") {
  18918. return;
  18919. }
  18920. if (t == 16 || t == 32 || t == 50) {
  18921. this.dialogVisibleWorks = true;
  18922. } else if (t == 15) {
  18923. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18924. .taskJson[index].toolChoose[i].answerQ
  18925. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18926. .toolChoose[i].answerQ
  18927. : "";
  18928. this.questionAnswer = "";
  18929. this.answerDialogVisibleTeacher = true; //问答
  18930. } else if (t == 52) {
  18931. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18932. .taskJson[index].toolChoose[i].wordJson
  18933. ? JSON.parse(
  18934. JSON.stringify(
  18935. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18936. index
  18937. ].toolChoose[i].wordJson
  18938. )
  18939. )
  18940. : { text: "" };
  18941. if (this.worksStudent[i].length) {
  18942. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18943. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18944. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18945. break;
  18946. }
  18947. }
  18948. }
  18949. this.dialogVisibleWordTeacher = true; //文档
  18950. } else if (t == 4) {
  18951. this.radio = [];
  18952. this.noteName = "";
  18953. this.isAnswer = false;
  18954. if (this.askCount > 0) {
  18955. this.updateCount(this.askCount, t);
  18956. } else {
  18957. this.askCount++;
  18958. a = this.askCount;
  18959. this.toolsCount(a, t);
  18960. }
  18961. if (!this.dialogVisible2) {
  18962. this.askJson.askJson =
  18963. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18964. index
  18965. ].toolChoose[i].askJson;
  18966. this.askJson.askTitle =
  18967. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18968. index
  18969. ].toolChoose[i].askTitle;
  18970. this.askJson.askCount =
  18971. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18972. index
  18973. ].toolChoose[i].askCount;
  18974. } else {
  18975. this.askJson.askJson = this.chapTools.askJson.askJson;
  18976. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18977. this.askJson.askCount = this.chapTools.askJson.askCount;
  18978. }
  18979. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18980. if (this.askJson.askJson[k].type == "2") {
  18981. this.radio.push([]);
  18982. } else {
  18983. this.radio.push("");
  18984. }
  18985. }
  18986. this.dialogVisible5Teacher = true;
  18987. } else if (t == 45) {
  18988. this.noteName = "";
  18989. this.radio = [];
  18990. this.isAnswer = false;
  18991. if (this.askCount > 0) {
  18992. this.updateCount(this.askCount, t);
  18993. } else {
  18994. this.askCount++;
  18995. a = this.askCount;
  18996. this.toolsCount(a, t);
  18997. }
  18998. this.testJson =
  18999. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19000. index
  19001. ].toolChoose[i].testJson;
  19002. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19003. if (this.testJson.testJson[k].type == "2") {
  19004. this.radio.push([]);
  19005. } else {
  19006. this.radio.push("");
  19007. }
  19008. }
  19009. this.dialogVisibleChoiceTeacher = true;
  19010. } else if (t == 41) {
  19011. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19012. .taskJson[index].toolChoose[i].selectJson
  19013. ? JSON.parse(
  19014. JSON.stringify(
  19015. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19016. index
  19017. ].toolChoose[i].selectJson
  19018. )
  19019. )
  19020. : { url: "", select: [], answer: [] };
  19021. if (this.worksStudent[i].length) {
  19022. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19023. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19024. var a = this.worksStudent[i][k].works.split(",");
  19025. for (var ki = 0; ki < a.length; ki++) {
  19026. a[ki] = parseInt(a[ki]);
  19027. }
  19028. this.selectAnswer = {
  19029. answer: a,
  19030. stu: this.worksStudent[i][k].sName,
  19031. };
  19032. break;
  19033. } else {
  19034. this.selectAnswer = { answer: [], stu: "" };
  19035. }
  19036. }
  19037. } else {
  19038. this.selectAnswer = { answer: [], stu: "" };
  19039. }
  19040. this.isSelect = false;
  19041. this.dialogVisibleSelectTeacher = true;
  19042. } else if (t == 47) {
  19043. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19044. .taskJson[index].toolChoose[i].sentenceList
  19045. ? JSON.parse(
  19046. JSON.stringify(
  19047. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19048. index
  19049. ].toolChoose[i].sentenceList
  19050. )
  19051. )
  19052. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19053. for (var q = 0; q < this.sentenceList.length; q++) {
  19054. this.sentenceList[q].chooseSenList = [];
  19055. this.sentenceList[q].addChangeSen = [];
  19056. this.sentenceList[q].addChangeSen = JSON.parse(
  19057. JSON.stringify(this.sentenceList[q].addSentence)
  19058. );
  19059. this.sentenceList[q].chooseSenList.length =
  19060. this.sentenceList[q].rightAnswer.length;
  19061. }
  19062. this.dialogVisibleSentenceTeacher = true;
  19063. } else if (t == 48) {
  19064. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19065. .taskJson[index].toolChoose[i].tableJson
  19066. ? JSON.parse(
  19067. JSON.stringify(
  19068. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19069. index
  19070. ].toolChoose[i].tableJson
  19071. )
  19072. )
  19073. : { text: "" };
  19074. if (this.worksStudent[i].length) {
  19075. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19076. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19077. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19078. break;
  19079. }
  19080. }
  19081. }
  19082. this.dialogVisibleTableTeacher = true;
  19083. } else if (t == 40) {
  19084. if (this.evalCount > 0) {
  19085. this.updateCount(this.evalCount, t);
  19086. } else {
  19087. this.evalCount++;
  19088. a = this.evalCount;
  19089. this.toolsCount(a, t);
  19090. }
  19091. this.eScore = { eBzText: "", eStar: [] };
  19092. if (this.worksStudent[i].length) {
  19093. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19094. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19095. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19096. this.rateJson =
  19097. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19098. index
  19099. ].toolChoose[i].rateJson;
  19100. break;
  19101. } else {
  19102. this.rateJson =
  19103. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19104. index
  19105. ].toolChoose[i].rateJson;
  19106. }
  19107. }
  19108. } else {
  19109. this.rateJson =
  19110. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19111. index
  19112. ].toolChoose[i].rateJson;
  19113. }
  19114. this.isStar = false;
  19115. this.studentEvalDialogVisibleTeacher = true;
  19116. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19117. window.topU.postMessage(
  19118. {
  19119. tools: t + "teacher",
  19120. cid: this.id,
  19121. stage: this.courseType,
  19122. task: this.taskCount,
  19123. tool: i,
  19124. student: this.sStudent,
  19125. },
  19126. "*"
  19127. );
  19128. }else if (t == 72) {
  19129. if (!document.fullscreenElement) {
  19130. this.enterFullScreen();
  19131. }
  19132. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19133. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19134. }
  19135. },
  19136. openCocoPi(tool, i, uid, uname) {
  19137. let student = {
  19138. userid: uid,
  19139. student: uname,
  19140. };
  19141. if (tool == 57) {
  19142. window.topU.postMessage(
  19143. {
  19144. tools: tool + "teacher",
  19145. cid: this.id,
  19146. stage: this.courseType,
  19147. task: this.taskCount,
  19148. tool: i,
  19149. student: student,
  19150. },
  19151. "*"
  19152. );
  19153. }
  19154. },
  19155. setRightAnswer(s, i, j) {
  19156. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19157. if (
  19158. this.sentenceList[i].chooseSenList[q] == undefined ||
  19159. this.sentenceList[i].chooseSenList[q] == ""
  19160. ) {
  19161. this.sentenceList[i].chooseSenList[q] = s;
  19162. this.sentenceList[i].addChangeSen[j] = "";
  19163. break;
  19164. }
  19165. }
  19166. this.$forceUpdate();
  19167. },
  19168. returnCard(r, i, j) {
  19169. var a = this.sentenceList[i].addSentence.indexOf(r);
  19170. this.sentenceList[i].chooseSenList[j] = "";
  19171. this.sentenceList[i].addChangeSen[a] = r;
  19172. this.$forceUpdate();
  19173. },
  19174. // addSentenceTool() {
  19175. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19176. // this.taskCount
  19177. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19178. // this.sentenceList = [
  19179. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19180. // ];
  19181. // this.dialogVisibleSentence = false;
  19182. // },
  19183. toolsCount(a, t) {
  19184. let params = {
  19185. cid: this.id,
  19186. chid: this.courseType,
  19187. uid: this.userid,
  19188. tid: t,
  19189. count: a,
  19190. };
  19191. this.ajax
  19192. .get(this.$store.state.api + "insertToolsCount", params)
  19193. .then((res) => {
  19194. this.selectCount();
  19195. })
  19196. .catch((err) => {
  19197. console.error(err);
  19198. });
  19199. },
  19200. updateCount(c, t) {
  19201. c++;
  19202. let params = {
  19203. cid: this.id,
  19204. chid: this.courseType,
  19205. uid: this.userid,
  19206. tid: t,
  19207. count: c,
  19208. };
  19209. this.ajax
  19210. .get(this.$store.state.api + "updateToolsCount", params)
  19211. .then((res) => {
  19212. this.selectCount();
  19213. })
  19214. .catch((err) => {
  19215. console.error(err);
  19216. });
  19217. },
  19218. checkEva() {
  19219. if (this.evalua != "") {
  19220. for (var i = 0; i < this.evaJuri.length; i++) {
  19221. if (this.evalua == this.evaJuri[i].id) {
  19222. this.eTitle = this.evaJuri[i].title;
  19223. this.eJson = JSON.parse(this.evaJuri[i].content);
  19224. }
  19225. }
  19226. this.$forceUpdate();
  19227. setTimeout(() => {
  19228. this.setMindData();
  19229. }, 0);
  19230. }
  19231. },
  19232. selectEva() {
  19233. let params = {
  19234. oid: this.oid,
  19235. };
  19236. this.ajax
  19237. .get(this.$store.state.api + "selectAllEvaluation", params)
  19238. .then((res) => {
  19239. this.evaJuri = res.data[0];
  19240. })
  19241. .catch((err) => {
  19242. console.error(err);
  19243. });
  19244. },
  19245. setMindData() {
  19246. this.data.data = [];
  19247. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19248. let _eJson = Object.keys(this.eJson);
  19249. let _e = this.eJson;
  19250. for (let i = 0; i < _eJson.length; i++) {
  19251. let element = _e[_eJson[i]];
  19252. this.data.data.push({
  19253. id: element.id,
  19254. parentid: "root",
  19255. topic: element.name,
  19256. });
  19257. let _eJsonc = Object.keys(element.child);
  19258. let _e2 = element.child;
  19259. for (let j = 0; j < _eJsonc.length; j++) {
  19260. let _ec = _e2[_eJsonc[j]];
  19261. this.data.data.push({
  19262. id: _ec.id,
  19263. parentid: element.id,
  19264. topic: _ec.name,
  19265. });
  19266. let _eJsonz = Object.keys(_ec.child);
  19267. let _e3 = _ec.child;
  19268. for (let z = 0; z < _eJsonz.length; z++) {
  19269. let _ez = _e3[_eJsonz[z]];
  19270. this.data.data.push({
  19271. id: _ez.id,
  19272. parentid: _ec.id,
  19273. topic: _ez.name,
  19274. });
  19275. }
  19276. }
  19277. }
  19278. this.$forceUpdate();
  19279. },
  19280. checkFileFull(type, url) {
  19281. this.fullDialogVisible = true;
  19282. this.fulltype = type;
  19283. this.fullUrl = url;
  19284. },
  19285. async checkFileFull1(t, f) {
  19286. this.fullDialogVisible = true;
  19287. if (t == 6) {
  19288. this.fulltype = 1;
  19289. console.log('checkFileFull1',f);
  19290. this.fullUrl = JSON.parse(JSON.stringify(f));
  19291. } else if (t == 8) {
  19292. this.fulltype = 2;
  19293. this.fullUrl = f.url;
  19294. } else if (t == 16) {
  19295. this.fulltype = 16;
  19296. this.fullUrl = f.url;
  19297. } else if (t == 15) {
  19298. this.fulltype = 4;
  19299. this.fullUrl = f.url;
  19300. } else if (
  19301. t == 3 &&
  19302. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19303. "PDF"
  19304. ) {
  19305. this.fulltype = 3;
  19306. this.fullUrl = f.url;
  19307. } else if (t == 3) {
  19308. this.fulltype = 2;
  19309. let _uuurl = await this.checkLink(f.url);
  19310. console.log(_uuurl)
  19311. this.fullUrl =
  19312. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19313. }
  19314. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19315. },
  19316. openSname(n, id, i, uid) {
  19317. this.snameWid = id;
  19318. this.worksSName = n;
  19319. this.worksSid = uid == n ? "" : uid;
  19320. this.toolindex = i;
  19321. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19322. if (!this.uploadCid) {
  19323. this.$message.error(this.lang.ssBatchUploadNoClassPermission);
  19324. return;
  19325. }
  19326. this.selectUploadStudent(1);
  19327. },
  19328. updateName() {
  19329. let params = {
  19330. n: this.worksSName,
  19331. cid: this.snameWid,
  19332. };
  19333. this.ajax
  19334. .get(this.$store.state.api + "updateCourseWorksName", params)
  19335. .then((res) => {
  19336. this.$message({
  19337. message: this.lang.ssModifySuccess,
  19338. type: "success",
  19339. });
  19340. this.dialogVisibleSname = false;
  19341. this.getCourseDetail(2);
  19342. this.snameWid = "";
  19343. this.worksSName = "";
  19344. })
  19345. .catch((err) => {
  19346. console.error(err);
  19347. });
  19348. },
  19349. downloadFile2(f) {
  19350. // const loading = this.$loading.service({
  19351. // background: "rgba(255, 255, 255, 0.7)",
  19352. // target: document.body,
  19353. // text: "文件加载中...",
  19354. // });
  19355. // let url2 = f.url;
  19356. // let _url2 = "";
  19357. // if (
  19358. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19359. // ) {
  19360. // _url2 = url2.split(
  19361. // "https://view.officeapps.live.com/op/view.aspx?src="
  19362. // )[1];
  19363. // } else {
  19364. // _url2 = url2;
  19365. // }
  19366. // let params = {
  19367. // url: _url2,
  19368. // name: f.name,
  19369. // };
  19370. // this.ajax
  19371. // .get(this.$store.state.api + "download", params)
  19372. // .then((res) => {
  19373. // loading.close();
  19374. // let content = res.data.data.data;
  19375. // let ab = new ArrayBuffer(content.length);
  19376. // let view = new Uint8Array(ab);
  19377. // for (var i = 0; i < content.length; ++i) {
  19378. // view[i] = content[i];
  19379. // }
  19380. // let elink = document.createElement("a");
  19381. // elink.download = f.name;
  19382. // elink.style.display = "none";
  19383. // let blob = new Blob([ab], {
  19384. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19385. // });
  19386. // elink.href = URL.createObjectURL(blob);
  19387. // document.body.appendChild(elink);
  19388. // elink.click();
  19389. // document.body.removeChild(elink);
  19390. // })
  19391. // .catch((err) => {
  19392. // loading.close();
  19393. // console.error(err);
  19394. // });
  19395. var credentials = {
  19396. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19397. secretAccessKey: "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",
  19398. }; //秘钥形式的登录上传
  19399. window.AWS.config.update(credentials);
  19400. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19401. let url2 = f.url;
  19402. let _url2 = "";
  19403. if (
  19404. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19405. ) {
  19406. _url2 = url2.split(
  19407. "https://view.officeapps.live.com/op/view.aspx?src="
  19408. )[1];
  19409. } else {
  19410. _url2 = url2;
  19411. }
  19412. let _this = this;
  19413. _this.downLoading = true
  19414. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19415. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19416. var params = {
  19417. Bucket: "ccrb",
  19418. Key: name
  19419. };
  19420. s3.getObject(params, function (err, data) {
  19421. _this.downLoading = false
  19422. if (err) console.log(err, err.stack); // an error occurred
  19423. else {
  19424. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19425. let a = document.createElement("a");
  19426. a.name = f.name;
  19427. a.href = url;
  19428. a.download = f.name;
  19429. a.click();
  19430. console.log(data);
  19431. } // sxuccessful response
  19432. });
  19433. return;
  19434. // let url = f.url;
  19435. // let _url = "";
  19436. // if (
  19437. // url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19438. // ) {
  19439. // _url = url.split(
  19440. // "https://view.officeapps.live.com/op/view.aspx?src="
  19441. // )[1];
  19442. // } else {
  19443. // _url = url;
  19444. // }
  19445. // _this.downLoading = true
  19446. // // const loading = _this.$loading.service({
  19447. // // background: "rgba(255, 255, 255, 0.7)",
  19448. // // target: document.body,
  19449. // // text: "文件加载中...",
  19450. // // });
  19451. // let x = new XMLHttpRequest();
  19452. // x.open("GET", _url, true);
  19453. // x.responseType = "blob";
  19454. // x.onload = function () {
  19455. // _this.downLoading = false
  19456. // // loading.close();
  19457. // let url = window.URL.createObjectURL(new Blob([x.response]));
  19458. // let a = document.createElement("a");
  19459. // a.name = f.name;
  19460. // a.href = url;
  19461. // a.download = f.name;
  19462. // a.click();
  19463. // };
  19464. // x.send();
  19465. },
  19466. downloadFile(url,uid) {
  19467. if (this.tType == 1 || this.userid == uid) {
  19468. var credentials = {
  19469. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19470. secretAccessKey: "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",
  19471. }; //秘钥形式的登录上传
  19472. window.AWS.config.update(credentials);
  19473. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19474. let url2 = url;
  19475. let _url2 = "";
  19476. if (
  19477. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19478. ) {
  19479. _url2 = url2.split(
  19480. "https://view.officeapps.live.com/op/view.aspx?src="
  19481. )[1];
  19482. } else {
  19483. _url2 = url2;
  19484. }
  19485. const loading2 = this.$loading.service({
  19486. background: "rgba(255, 255, 255, 0.7)",
  19487. target: document.body,
  19488. text: this.lang.ssFileLoading,
  19489. });
  19490. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19491. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19492. var params = {
  19493. Bucket: "ccrb",
  19494. Key: name
  19495. };
  19496. s3.getObject(params, function (err, data) {
  19497. loading2.close();
  19498. if (err) console.log(err, err.stack); // an error occurred
  19499. else {
  19500. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19501. let a = document.createElement("a");
  19502. a.name = name;
  19503. a.href = url;
  19504. a.download = name;
  19505. a.click();
  19506. console.log(data);
  19507. } // sxuccessful response
  19508. });
  19509. }
  19510. return;
  19511. // let _this = this;
  19512. // let _url = "";
  19513. // if (
  19514. // url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19515. // ) {
  19516. // _url = url.split(
  19517. // "https://view.officeapps.live.com/op/view.aspx?src="
  19518. // )[1];
  19519. // } else {
  19520. // _url = url;
  19521. // }
  19522. // const x = new XMLHttpRequest();
  19523. // x.open("GET", _url, true);
  19524. // x.responseType = "blob";
  19525. // // this.downLoading = true
  19526. // const loading = _this.$loading.service({
  19527. // background: "rgba(255, 255, 255, 0.7)",
  19528. // target: document.body,
  19529. // text: "文件加载中...",
  19530. // });
  19531. // // _this.$message.success("文件下载中...");
  19532. // x.onload = function (e) {
  19533. // this.downLoading = false
  19534. // loading.close();
  19535. // let content = x.response;
  19536. // let elink = document.createElement("a");
  19537. // elink.download = decodeURI(
  19538. // _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19539. // );
  19540. // elink.style.display = "none";
  19541. // let blob = new Blob([content]);
  19542. // elink.href = URL.createObjectURL(blob);
  19543. // document.body.appendChild(elink);
  19544. // elink.click();
  19545. // document.body.removeChild(elink);
  19546. // };
  19547. // x.send();
  19548. },
  19549. openLine(url) {
  19550. window.open(url);
  19551. },
  19552. resize() {
  19553. if (document.getElementsByClassName("box_course").length) {
  19554. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19555. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19556. if (this.showType == 2 || this.showType == 3) {
  19557. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  19558. document.getElementsByClassName("navBox")[0].style.height =
  19559. a - 40 + 0+ "px";
  19560. }
  19561. } else {
  19562. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  19563. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  19564. }
  19565. }
  19566. }
  19567. this.Stbodywidth =
  19568. document.getElementsByClassName("student_body").length &&
  19569. document.getElementsByClassName("student_body")[0].offsetWidth;
  19570. },
  19571. closeDraw() {
  19572. this.bg = null;
  19573. this.drawShow = false;
  19574. },
  19575. showPicturePaint(url) {
  19576. let params = {
  19577. img: url,
  19578. };
  19579. this.ajax
  19580. .get(this.$store.state.api + "imgToBase64", params)
  19581. .then((res) => {
  19582. this.drawShow = true;
  19583. this.bg = res.data[0].img;
  19584. })
  19585. .catch((err) => {
  19586. console.error(err);
  19587. });
  19588. },
  19589. addImgDraw(base64) {
  19590. let file = { name: this.lang.ssAnnotationImage };
  19591. let img = this.dataUrlToFile(base64, file);
  19592. this.beforeUpload1(img, 5);
  19593. },
  19594. addImgDrawImG(url) {
  19595. // console.log(url);
  19596. let params = [
  19597. {
  19598. wid: this.commentDetail.wid,
  19599. img: url,
  19600. },
  19601. ];
  19602. this.ajax
  19603. .post(this.$store.state.api + "updateCourseWorks", params)
  19604. .then((res) => {
  19605. this.$message({
  19606. message: this.lang.ssSubmitSuccess,
  19607. type: "success",
  19608. });
  19609. this.drawShow = false;
  19610. this.bg = "";
  19611. this.selectSWorks();
  19612. this.selectStudent();
  19613. })
  19614. .catch((err) => {
  19615. this.$message.error(this.lang.ssSubmitFailed);
  19616. console.error(err);
  19617. });
  19618. },
  19619. deletePicturePaint() {
  19620. this.$confirm(this.lang.ssConfirmDeleteAnnotation, this.lang.ssPrompt, {
  19621. confirmButtonText: this.lang.ssConfirm,
  19622. cancelButtonText: this.lang.ssCancel,
  19623. type: "warning",
  19624. })
  19625. .then(() => {
  19626. let params = [
  19627. {
  19628. wid: this.commentDetail.wid,
  19629. img: "",
  19630. },
  19631. ];
  19632. this.ajax
  19633. .post(this.$store.state.api + "updateCourseWorks", params)
  19634. .then((res) => {
  19635. this.$message({
  19636. message: this.lang.ssDeleteSuccess,
  19637. type: "success",
  19638. });
  19639. this.selectSWorks();
  19640. this.selectStudent();
  19641. })
  19642. .catch((err) => {
  19643. this.$message.error(this.lang.ssDeleteFailed);
  19644. console.error(err);
  19645. });
  19646. })
  19647. .catch(() => {});
  19648. },
  19649. getAudioVideo(constraintsData) {
  19650. if (navigator.mediaDevices === undefined) {
  19651. navigator.mediaDevices = {};
  19652. }
  19653. if (navigator.mediaDevices.getUserMedia === undefined) {
  19654. navigator.mediaDevices.getUserMedia = function (constraints) {
  19655. // 首先,如果有getUserMedia的话,就获得它
  19656. var getUserMedia =
  19657. navigator.getUserMedia ||
  19658. navigator.webkitGetUserMedia ||
  19659. navigator.mozGetUserMedia ||
  19660. navigator.msGetUserMedia;
  19661. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19662. if (!getUserMedia) {
  19663. return Promise.reject({ code: 404 });
  19664. }
  19665. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19666. return new Promise(function (resolve, reject) {
  19667. getUserMedia.call(navigator, constraints, resolve, reject);
  19668. });
  19669. };
  19670. }
  19671. return navigator.mediaDevices.getUserMedia(constraintsData);
  19672. },
  19673. /**
  19674. * 开始录制
  19675. */
  19676. startRecording(callback) {
  19677. let _function = (screenStream) => {
  19678. this.addStreamStopListener(screenStream, () => {
  19679. console.log("流停止监听");
  19680. this.stopRecording();
  19681. this.$emit("streamStop", {});
  19682. // this.stopRecording();
  19683. });
  19684. var options = {
  19685. type: "video",
  19686. mimeType: "video/webm",
  19687. disableLogs: false,
  19688. getNativeBlob: false, // enable it for longer recordings
  19689. ignoreMutedMedia: false,
  19690. };
  19691. // this.video.srcObject = screenStream;
  19692. this.recorder = RecordRTC(screenStream, options);
  19693. this.recorder.startRecording();
  19694. this.recorder.screen = screenStream;
  19695. this.videoStart = true;
  19696. // callback(true);
  19697. };
  19698. this.getAudioVideo({ audio: true })
  19699. .then((res) => {
  19700. this.captureScreen(_function, true);
  19701. console.log("已点击允许,开启成功");
  19702. })
  19703. .catch((err) => {
  19704. // console.log('浏览器不支持,请更换浏览器')
  19705. // } else {
  19706. this.captureScreen(_function, false);
  19707. console.log("请检查是否存在麦克风");
  19708. });
  19709. },
  19710. /**
  19711. * 停止录制
  19712. */
  19713. stopRecording(callback) {
  19714. this.recorder.stopRecording(() => {
  19715. // this.video.src = this.video.srcObject = null;
  19716. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19717. const url = URL.createObjectURL(this.recorder.getBlob());
  19718. const a = document.createElement("a"); //this.fileName+
  19719. let videoFile = new File(
  19720. [this.recorder.getBlob()],
  19721. this.courseDetail.title + this.lang.ssScreenRecording + ".mp4",
  19722. {
  19723. type: "video/mp4",
  19724. }
  19725. );
  19726. let downloadUrl = URL.createObjectURL(videoFile);
  19727. if(this.$refs.classRoomHelperRef){
  19728. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19729. }
  19730. document.body.appendChild(a);
  19731. a.style.display = "none";
  19732. a.href = url;
  19733. a.download = this.courseDetail.title + this.lang.ssScreenRecording + ".mp4"; //this.fileName +
  19734. a.click();
  19735. this.recorder.screen.stop();
  19736. this.recorder.destroy();
  19737. this.recorder = null;
  19738. this.videoStart = false;
  19739. // callback(false);
  19740. });
  19741. },
  19742. //初始化
  19743. captureScreen(callback, type) {
  19744. if (navigator.getDisplayMedia) {
  19745. //录制结束,文件下载
  19746. navigator
  19747. .getDisplayMedia({
  19748. video: true,
  19749. })
  19750. .then((screenStream) => {
  19751. if (type) {
  19752. navigator.mediaDevices
  19753. .getUserMedia({ audio: true })
  19754. .then((mic) => {
  19755. screenStream.addTrack(mic.getTracks()[0]);
  19756. callback(screenStream);
  19757. });
  19758. } else {
  19759. callback(screenStream);
  19760. }
  19761. })
  19762. .catch(function (error) {
  19763. console.log("error", error);
  19764. });
  19765. } else if (navigator.mediaDevices.getDisplayMedia) {
  19766. navigator.mediaDevices
  19767. .getDisplayMedia({
  19768. video: true,
  19769. })
  19770. .then((screenStream) => {
  19771. if (type) {
  19772. navigator.mediaDevices
  19773. .getUserMedia({ audio: true })
  19774. .then((mic) => {
  19775. screenStream.addTrack(mic.getTracks()[0]);
  19776. callback(screenStream);
  19777. });
  19778. } else {
  19779. callback(screenStream);
  19780. }
  19781. })
  19782. .catch(function (error) {
  19783. console.log("error", error);
  19784. });
  19785. } else {
  19786. var error = "getDisplayMedia API are not supported in this browser.";
  19787. console.log("error", error);
  19788. alert(error);
  19789. }
  19790. },
  19791. //流监听
  19792. addStreamStopListener(stream, callback) {
  19793. stream.addEventListener(
  19794. "ended",
  19795. function () {
  19796. callback();
  19797. callback = function () {};
  19798. },
  19799. false
  19800. );
  19801. stream.addEventListener(
  19802. "inactive",
  19803. function () {
  19804. callback();
  19805. callback = function () {};
  19806. },
  19807. false
  19808. );
  19809. stream.getTracks().forEach(function (track) {
  19810. track.addEventListener(
  19811. "ended",
  19812. function () {
  19813. callback();
  19814. callback = function () {};
  19815. },
  19816. false
  19817. );
  19818. track.addEventListener(
  19819. "inactive",
  19820. function () {
  19821. callback();
  19822. callback = function () {};
  19823. },
  19824. false
  19825. );
  19826. });
  19827. },
  19828. updateGroup() {
  19829. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19830. this.dialogVisibleGroup2 = true;
  19831. },
  19832. numberPan() {
  19833. if (
  19834. /[^\d]/.test(this.groupJson.number) ||
  19835. this.groupJson.number < 2 ||
  19836. this.groupJson.number > 10
  19837. ) {
  19838. this.$message.error(this.lang.ssEnterNumber2To10);
  19839. this.groupJson.number = "";
  19840. }
  19841. },
  19842. updateGroupJson() {
  19843. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19844. if (
  19845. this.groupStudentUid[this.toolindex][i].length >
  19846. this.groupJson2.number
  19847. ) {
  19848. this.$message.error(this.lang.ssGroupLargerThanSet);
  19849. return;
  19850. }
  19851. }
  19852. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19853. this.islock = this.groupJson.islock == 1 ? true : false;
  19854. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19855. this.taskCount
  19856. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19857. let params = [
  19858. {
  19859. cid: this.id,
  19860. chapters: JSON.stringify(this.chapInfoList),
  19861. uid: this.userid,
  19862. unitIndex: this.courseType,
  19863. },
  19864. ];
  19865. this.ajax
  19866. .post(this.$store.state.api + "updateWorkNew4", params)
  19867. .then((res) => {
  19868. this.$message.success(this.lang.ssSettingSuccess);
  19869. this.getCourseDetail(2);
  19870. this.dialogVisibleGroup2 = false;
  19871. this.groupJson2 = {};
  19872. this.$forceUpdate();
  19873. })
  19874. .catch((err) => {
  19875. this.$message.error(this.lang.ssNetworkPoor);
  19876. console.error(err);
  19877. });
  19878. },
  19879. lockChair() {
  19880. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19881. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19882. this.updateGroupJson();
  19883. },
  19884. selectGroup(index) {
  19885. this.getCourseDetail(2, index);
  19886. },
  19887. joinGroup(index) {
  19888. if (this.groupJson.islock == 2) {
  19889. this.$message.error(this.lang.ssPositionLockedCannotJoin);
  19890. return;
  19891. }
  19892. if (
  19893. this.groupStudent[this.toolindex][index].length >
  19894. this.groupJson.number ||
  19895. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19896. ) {
  19897. this.$message.error(this.lang.ssPositionFullCannotJoin);
  19898. return;
  19899. }
  19900. let params = [
  19901. {
  19902. cid: this.id,
  19903. stage: this.courseType,
  19904. task: this.taskCount,
  19905. tool: this.toolindex,
  19906. g: index,
  19907. uid: this.userid,
  19908. },
  19909. ];
  19910. this.ajax
  19911. .post(this.$store.state.api + "joinGroup", params)
  19912. .then((res) => {
  19913. this.$message.success(this.lang.ssJoinSuccess);
  19914. this.getCourseDetail(2);
  19915. })
  19916. .catch((err) => {
  19917. this.$message.error(this.lang.ssNetworkPoor);
  19918. console.error(err);
  19919. });
  19920. },
  19921. exitGroup(id) {
  19922. if (this.groupJson.islock == 2) {
  19923. this.$message.error(this.lang.ssPositionLockedCannotExit);
  19924. return;
  19925. }
  19926. let params = [
  19927. {
  19928. gid: id,
  19929. },
  19930. ];
  19931. this.ajax
  19932. .post(this.$store.state.api + "exitGroup", params)
  19933. .then((res) => {
  19934. this.$message.success(this.lang.ssExitSuccess);
  19935. this.getCourseDetail(2);
  19936. })
  19937. .catch((err) => {
  19938. this.$message.error(this.lang.ssNetworkPoor);
  19939. console.error(err);
  19940. });
  19941. },
  19942. groupUpload(index, task, gindex) {
  19943. this.taskCount = task;
  19944. this.toolindex = index;
  19945. this.groupIndex = gindex;
  19946. this.dialogVisibleGroupWork = true;
  19947. },
  19948. updateGroupChair(user) {
  19949. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19950. el.label = index;
  19951. return index != user.group;
  19952. });
  19953. this.updateGroupUser = user;
  19954. this.dialogVisibleUpdateGroup = true;
  19955. },
  19956. updateChair() {
  19957. if (
  19958. this.groupStudent[this.toolindex][this.checkChair].length >
  19959. this.groupJson.number ||
  19960. this.groupStudent[this.toolindex][this.checkChair].length ==
  19961. this.groupJson.number
  19962. ) {
  19963. this.$message.error(this.lang.ssPositionFullCannotJoin);
  19964. return;
  19965. }
  19966. let params = [
  19967. {
  19968. cid: this.id,
  19969. stage: this.courseType,
  19970. task: this.taskCount,
  19971. tool: this.toolindex,
  19972. g: this.checkChair,
  19973. uid: this.updateGroupUser.userid,
  19974. },
  19975. ];
  19976. this.ajax
  19977. .post(this.$store.state.api + "joinGroup", params)
  19978. .then((res) => {
  19979. this.$message.success(this.lang.ssModifySuccess);
  19980. this.updateGroupUser = {};
  19981. this.checkChair = "";
  19982. this.updateGroupArray = {};
  19983. this.dialogVisibleUpdateGroup = false;
  19984. this.getCourseDetail(2);
  19985. })
  19986. .catch((err) => {
  19987. this.$message.error(this.lang.ssNetworkPoor);
  19988. console.error(err);
  19989. });
  19990. },
  19991. deleteGroupChair(gindex) {
  19992. this.checkDeleteGroup = [];
  19993. this.deleteGroupUser = JSON.parse(
  19994. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19995. );
  19996. this.deleteGroupArray = this.groupJson.group[gindex];
  19997. this.groupIndex = gindex;
  19998. this.dialogVisibleDeleteGroup = true;
  19999. },
  20000. async deleteChair() {
  20001. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20002. const gid =
  20003. this.groupStudent[this.toolindex][this.groupIndex][
  20004. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20005. this.checkDeleteGroup[i]
  20006. )
  20007. ];
  20008. let params = [
  20009. {
  20010. gid: gid.id,
  20011. },
  20012. ];
  20013. var a = await this.deleteChairA(params);
  20014. if (i == this.checkDeleteGroup.length - 1) {
  20015. this.$message.success(this.lang.ssExitSuccess);
  20016. this.dialogVisibleDeleteGroup = false;
  20017. this.deleteGroupUser = [];
  20018. this.deleteGroupArray = {};
  20019. this.groupIndex = "";
  20020. this.checkDeleteGroup = [];
  20021. this.getCourseDetail(2);
  20022. }
  20023. }
  20024. },
  20025. deleteChairA(params) {
  20026. return new Promise((resolve, reject) => {
  20027. this.ajax
  20028. .post(this.$store.state.api + "exitGroup", params)
  20029. .then((res) => {
  20030. resolve(1);
  20031. })
  20032. .catch((err) => {
  20033. this.$message.error(this.lang.ssNetworkPoor);
  20034. console.error(err);
  20035. });
  20036. });
  20037. },
  20038. contract(i) {
  20039. if (this.isCloseList[i].isClose == 0) {
  20040. this.isCloseList[i].isClose = 1;
  20041. } else {
  20042. this.isCloseList[i].isClose = 0;
  20043. }
  20044. this.$forceUpdate();
  20045. },
  20046. openWordCloud(toolindex) {
  20047. this.wordCloudData = '';
  20048. let array = [];
  20049. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20050. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20051. array.push({ name: works });
  20052. }
  20053. if (this.isGroup) {
  20054. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20055. let works = this.courseGroup.group[i].works[toolindex];
  20056. for (var j = 0; j < works.length; j++) {
  20057. let answer = JSON.parse(works[j].works)[0].answer;
  20058. array.push({ name: answer });
  20059. }
  20060. }
  20061. }
  20062. let _result = ''
  20063. array.forEach(e=>{
  20064. _result +=e.name+','
  20065. })
  20066. this.wordCloudData = _result;
  20067. this.dialogVisibleWordCloud = true;
  20068. this.wordCloudKey += 1;
  20069. },
  20070. uploadWorks(i) {
  20071. this.$confirm(this.lang.ssConfirmExportHomework, this.lang.ssPrompt, {
  20072. confirmButtonText: this.lang.ssConfirm,
  20073. cancelButtonText: this.lang.ssCancel,
  20074. type: "warning",
  20075. })
  20076. .then(() => {
  20077. const loading = this.$loading.service({
  20078. background: "rgba(255, 255, 255, 0.7)",
  20079. target: document.body,
  20080. text: this.lang.ssFileLoading,
  20081. });
  20082. const _worksStudent = this.worksStudent;
  20083. let url = [];
  20084. var counts = {};
  20085. for (var l = 0; l < _worksStudent[i].length; l++) {
  20086. var item = _worksStudent[i][l];
  20087. var name = item.sName;
  20088. if (!counts.hasOwnProperty(name)) {
  20089. counts[name] = 0;
  20090. } else {
  20091. counts[name]++;
  20092. }
  20093. if (counts[name] > 0) {
  20094. item.sName += " (" + counts[name] + ")";
  20095. }
  20096. }
  20097. for (var l = 0; l < _worksStudent[i].length; l++) {
  20098. var item = _worksStudent[i][l];
  20099. if (
  20100. item.works.indexOf(
  20101. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20102. ) !== -1 &&
  20103. item.works.indexOf("img") === -1
  20104. ) {
  20105. url.push({ name: item.sName, url: item.works });
  20106. }
  20107. }
  20108. // var toolList = [
  20109. // { name: "电子白板", tool: 1 },
  20110. // { name: "思维导图", tool: 3 },
  20111. // { name: "协同文档", tool: 6 },
  20112. // { name: "思维网格", tool: 7 },
  20113. // { name: "素材库", tool: 8 },
  20114. // { name: "学习资料", tool: 17 },
  20115. // { name: "便签", tool: 2 },
  20116. // { name: "问卷调查", tool: 4 },
  20117. // { name: "选择题", tool: 45 },
  20118. // { name: "倒计时", tool: 10 },
  20119. // { name: "问答", tool: 15 },
  20120. // { name: "课程设计", tool: 26 },
  20121. // { name: "训练服务器", tool: 18 },
  20122. // { name: "作业提交", tool: 16 },
  20123. // { name: "批量上传", tool: 50 },
  20124. // { name: "AIoT Blockly", tool: 21 },
  20125. // { name: "AI Python", tool: 23 },
  20126. // { name: "AI Blockly", tool: 24 },
  20127. // { name: "目标管理", tool: 25 },
  20128. // { name: "数学画板", tool: 31 },
  20129. // { name: "翻译", tool: 28 },
  20130. // { name: "魔盒识字", tool: 37 },
  20131. // { name: "数学画板", tool: 31 },
  20132. // { name: "24点", tool: 38 },
  20133. // { name: "GeoGebra", tool: 39 },
  20134. // { name: "源码编辑", tool: 32 },
  20135. // { name: "个人评价", tool: 40 },
  20136. // { name: "选择匹配", tool: 41 },
  20137. // { name: "汉字宫", tool: 44 },
  20138. // { name: "排序", tool: 47 },
  20139. // { name: "表格", tool: 48 },
  20140. // { name: "文档", tool: 52 },
  20141. // { name: "学生分组", tool: 49 },
  20142. // { name: "CocoPi", tool: 57 },
  20143. // { name: "模拟驾驶", tool: 58 },
  20144. // { name: "路径搜索", tool: 59 },
  20145. // { name: "深度学习", tool: 60 },
  20146. // { name: "全历史", tool: 61 },
  20147. // { name: "交互视频", tool: 62 },
  20148. // { name: "海龟编程", tool: 63 },
  20149. // { name: "挑人", tool: 65 },
  20150. // { name: "公式编辑", tool: 66 },
  20151. // { name: "分子结构", tool: 67 },
  20152. // { name: "时间轴", tool: 68 },
  20153. // ];
  20154. // var toolName = "";
  20155. // for(var w = 0;w<toolList.length;w++){
  20156. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20157. // toolName = toolList[w].name;
  20158. // }
  20159. // }
  20160. console.log(url);
  20161. this.downLoadAll(url, loading);
  20162. })
  20163. .catch(() => {});
  20164. },
  20165. downLoadAll(url, loading) {
  20166. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20167. const zip = new JSZip();
  20168. const cache = {};
  20169. const promises = [];
  20170. data.forEach((item) => {
  20171. const promise = getFile(item.url).then((data) => {
  20172. if (data.data != 1) {
  20173. // 下载文件, 并存成ArrayBuffer对象
  20174. const file_name =
  20175. item.name +
  20176. "." +
  20177. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20178. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20179. cache[file_name] = data.data;
  20180. }
  20181. });
  20182. promises.push(promise);
  20183. });
  20184. Promise.all(promises).then(() => {
  20185. zip.generateAsync({ type: "blob" }).then((content) => {
  20186. // 生成二进制流
  20187. FileSaver.saveAs(
  20188. content,
  20189. this.courseDetail.title + "-" + this.lang.ssHomeworkSubmissionTool + ".zip"
  20190. ); // 利用file-saver保存文件 自定义文件名
  20191. setTimeout(() => {
  20192. loading.close();
  20193. }, 2000);
  20194. });
  20195. });
  20196. },
  20197. pickStudent(stu) {
  20198. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20199. return;
  20200. }
  20201. this.$confirm(this.lang.ssAskStudentToAnswer.replace(/\*/g, stu.name), this.lang.ssPrompt, {
  20202. confirmButtonText: this.lang.ssConfirm,
  20203. cancelButtonText: this.lang.ssCancel,
  20204. type: "warning",
  20205. })
  20206. .then(() => {
  20207. let params = [
  20208. {
  20209. uid: stu.userid,
  20210. cid: this.id,
  20211. stage: this.courseType,
  20212. task: this.taskCount,
  20213. tool: this.toolindex,
  20214. },
  20215. ];
  20216. this.ajax
  20217. .post(this.$store.state.api + "updateCoursePick", params)
  20218. .then((res) => {
  20219. this.$message.success(this.lang.ssOperationSuccess);
  20220. this.getPick();
  20221. })
  20222. .catch((err) => {
  20223. this.$message.error(this.lang.ssNetworkPoor);
  20224. console.error(err);
  20225. });
  20226. })
  20227. .catch(() => {});
  20228. },
  20229. selectUser(){
  20230. let params = {
  20231. userid: this.userid,
  20232. };
  20233. this.ajax
  20234. .get(this.$store.state.api + "selectUser", params)
  20235. .then((res) => {
  20236. this.userMes = res.data[0];
  20237. })
  20238. .catch((err) => {
  20239. console.error(err);
  20240. });
  20241. },
  20242. setEngText(i){
  20243. this.newEngIndex = i;
  20244. this.$forceUpdate();
  20245. },
  20246. addCorrect(){
  20247. this.$confirm(this.lang.ssConfirmSubmitCorrection, this.lang.ssPrompt, {
  20248. confirmButtonText: this.lang.ssConfirm,
  20249. showCancelButton: false,
  20250. closeOnClickModal: false,
  20251. type: "warning",
  20252. })
  20253. .then(() => {
  20254. let params = {
  20255. cid: this.id,
  20256. s: parseInt(this.courseType),
  20257. t: this.taskCount,
  20258. tool: this.toolindex,
  20259. wid: this.engWid,
  20260. c: this.userid,
  20261. 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) : "",
  20262. };
  20263. this.ajax
  20264. .get(this.$store.state.api + "addEngC", params)
  20265. .then((res) => {
  20266. this.$message.success(this.lang.ssSubmitSuccess);
  20267. this.engUpdateDialogVisible = false;
  20268. })
  20269. .catch((err) => {
  20270. console.error(err);
  20271. });
  20272. })
  20273. .catch(() => {});
  20274. },
  20275. selectEngC(id,z){
  20276. let params = {
  20277. workid: id,
  20278. };
  20279. this.ajax
  20280. .get(this.$store.state.api + "selectEngC", params)
  20281. .then((res) => {
  20282. if(res.data[0].length == 0){
  20283. this.newEnglishList.engTitle = z.engTitle;
  20284. this.newEnglishList.engText = z.engText;
  20285. }else{
  20286. var a = res.data[0];
  20287. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20288. if(this.userMes[0].type == 2){
  20289. var snum = 0;
  20290. for(var i = 0;i<a.length;i++){
  20291. if(this.userMes[0].userid == a[i].correct){
  20292. this.newEnglishList = JSON.parse(a[i].cWork);
  20293. snum = 1;
  20294. }
  20295. }
  20296. if(snum == 0){
  20297. this.newEnglishList = { engTitle:"",engText:"" };
  20298. this.newEnglishList.engTitle = z.engTitle;
  20299. this.newEnglishList.engText = z.engText;
  20300. }
  20301. }else if(this.userMes[0].type == 1){
  20302. var num = 0;
  20303. for(var w= 0;w<a.length;w++){
  20304. if(this.userMes[0].userid == a[w].correct){
  20305. num = 1;
  20306. }
  20307. }
  20308. if(num == 0){
  20309. this.isNoUserid = true;
  20310. var c = JSON.parse(JSON.stringify(z));
  20311. this.oldEnglishJson1 = c;
  20312. }else{
  20313. this.isNoUserid = false;
  20314. }
  20315. var b = a.sort((item, index) => {
  20316. console.log(item)
  20317. if (item.correct === this.userMes[0].userid) {
  20318. return -1; // 将a移到前面
  20319. } else if (index.correct === this.userMes[0].userid) {
  20320. return 1; // 将b移到前面
  20321. } else {
  20322. return 0; // 保持默认顺序
  20323. }
  20324. });
  20325. for(var p = 0;p<b.length;p++){
  20326. for(var y = 0;y<ppp.length;y++){
  20327. if(b[p].id == ppp[y].id){
  20328. b[p].cWork = JSON.parse(ppp[y].cWork);
  20329. break
  20330. }
  20331. }
  20332. }
  20333. this.newEnglishList1 = b;
  20334. }
  20335. }
  20336. this.greyType = false;
  20337. setTimeout(() => {
  20338. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20339. if(this.newEnglishList1.length > 0){
  20340. if(this.isNoUserid == true){
  20341. this.engListLength = this.newEnglishList1.length + 1;
  20342. this.newEngIndex = -1;
  20343. }else{
  20344. this.engListLength = this.newEnglishList1.length;
  20345. this.newEngIndex = 0;
  20346. }
  20347. }
  20348. if(this.userMes[0].type == 2){
  20349. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20350. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20351. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20352. }else if(this.newEngIndex == -1){
  20353. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20354. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20355. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20356. }
  20357. }, 500);
  20358. this.engUpdateDialogVisible = true;
  20359. this.$forceUpdate();
  20360. })
  20361. .catch((err) => {
  20362. console.error(err);
  20363. });
  20364. },
  20365. getPick() {
  20366. if(this.getPickLoading) return
  20367. this.getPickLoading = true
  20368. let params = {
  20369. cid: this.id,
  20370. };
  20371. this.ajax
  20372. .get(this.$store.state.api + "getPick", params)
  20373. .then((res) => {
  20374. let array = [];
  20375. for (var i = 0; i < res.data[0].length; i++) {
  20376. array.push(res.data[0][i].userid);
  20377. }
  20378. this.isPickStudent = array;
  20379. if (array.indexOf(this.userid) !== -1) {
  20380. this.$confirm(this.lang.ssSelectedByTeacher, this.lang.ssPrompt, {
  20381. confirmButtonText: this.lang.ssConfirm,
  20382. showCancelButton: false,
  20383. closeOnClickModal: false,
  20384. type: "warning",
  20385. })
  20386. .then(() => {
  20387. let pa = [
  20388. {
  20389. uid: this.userid,
  20390. cid: this.id,
  20391. },
  20392. ];
  20393. this.ajax
  20394. .post(this.$store.state.api + "deletePick", pa)
  20395. .then((res) => {
  20396. this.getPick();
  20397. })
  20398. .catch((err) => {
  20399. this.$message.error(this.lang.ssNetworkPoor);
  20400. console.error(err);
  20401. });
  20402. })
  20403. .catch(() => {});
  20404. }
  20405. this.getPickLoading = false
  20406. })
  20407. .catch((err) => {
  20408. this.getPickLoading = false
  20409. this.$message.error(this.lang.ssNetworkPoor);
  20410. console.error(err);
  20411. });
  20412. },
  20413. foldEva() {
  20414. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20415. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20416. } else {
  20417. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20418. setTimeout(() => {
  20419. this.checkEva();
  20420. setTimeout(() => {
  20421. this.checkEva();
  20422. }, 500);
  20423. }, 0);
  20424. }
  20425. this.$forceUpdate();
  20426. },
  20427. panToolHeight(tool) {
  20428. var _tool = document.querySelectorAll('#'+tool)[0]
  20429. var _toolA = _tool ? _tool.offsetHeight : 0
  20430. var _toolC = 0
  20431. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20432. let boolean2 = (_toolA > _toolC) ? true : false
  20433. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20434. this.$forceUpdate();
  20435. },
  20436. async checkLink(url) {
  20437. // console.log(url)
  20438. let _url = url
  20439. try {
  20440. const response = await fetch(url);
  20441. if(!response.ok){
  20442. _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]))
  20443. }
  20444. // console.log(response.ok)
  20445. } catch (error) {
  20446. console.error('Error checking link:', error);
  20447. // console.log(false)
  20448. _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]))
  20449. }
  20450. // console.log(_url)
  20451. return _url
  20452. },
  20453. getScoreList(){
  20454. let params = {
  20455. cid: this.id,
  20456. };
  20457. this.ajax
  20458. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20459. .then((res) => {
  20460. let result = res.data;
  20461. this.scoreList.datalist = result[0];
  20462. this.scoreList.isScoreList = result[1];
  20463. })
  20464. .catch((err) => {
  20465. console.error(err);
  20466. });
  20467. },
  20468. setClassRoomHelperWidth(width){
  20469. this.classRoomHelperWidth = width
  20470. },
  20471. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20472. this.$refs.choseWorksDetailDialogRef.open({
  20473. toolType:tooc,
  20474. tType: this.tType,
  20475. toolIndex: toolIndex
  20476. });
  20477. this.changeSplitScreenBehavior({
  20478. code: 1,
  20479. form: {
  20480. toolType:tooc,
  20481. toolIndex: toolIndex,
  20482. courseType: this.courseType,
  20483. taskCount: this.taskCount,
  20484. type: 0
  20485. }
  20486. });
  20487. },
  20488. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20489. this.$refs.statisticalAnalysisRef.open({
  20490. worksStudent: this.worksStudent[toolIndex],
  20491. tType: this.tType,
  20492. toolIndex: toolIndex
  20493. });
  20494. this.changeSplitScreenBehavior({
  20495. code: 2,
  20496. form: {
  20497. toolType:4,
  20498. courseType: this.courseType,
  20499. taskCount: this.taskCount,
  20500. toolIndex: toolIndex,
  20501. type: 0
  20502. }
  20503. });
  20504. },
  20505. statisticalAnalysisRefresh(toolIndex) {
  20506. this.$refs.statisticalAnalysisRef.refreshData({
  20507. worksStudent: this.worksStudent[toolIndex],
  20508. tType: this.tType,
  20509. toolIndex: toolIndex
  20510. });
  20511. },
  20512. async splitScreenBehavior(type = 0) {
  20513. // return;
  20514. if (this.splitScreenData.loading)
  20515. return this.$message.info(this.lang.ssOperationTooFast);
  20516. if (type == 0) {
  20517. //关闭分屏
  20518. this.splitScreenData.isOpen = false;
  20519. // this.splitScreenData.userId = "";
  20520. // this.splitScreenData.uid = "";
  20521. this.splitScreenData.behavior = null;
  20522. await this.updateSplitScreenData(1);
  20523. this.$message.success(this.lang.ssSplitScreenClosed);
  20524. this.studentFreePreview(false);
  20525. this.OpenJobPreview(false);
  20526. // this.followingMode(false);
  20527. } else if (type == 1) {
  20528. //开启分屏
  20529. this.splitScreenData.isOpen = true;
  20530. this.splitScreenData.userId = this.userid;
  20531. this.splitScreenData.uid = this.splitScreenData.myUid;
  20532. this.splitScreenData.behavior = null;
  20533. let status = await this.updateSplitScreenData(0);
  20534. this.changeSplitScreenBehavior({form:{}})
  20535. if (status == 1) {
  20536. this.$message.success(this.lang.ssSplitScreenOpened);
  20537. this.studentFreePreview(false);
  20538. this.OpenJobPreview(true);
  20539. // this.followingMode(true);
  20540. } else {
  20541. this.splitScreenData.isOpen = false;
  20542. this.splitScreenData.userId = "";
  20543. this.splitScreenData.uid = "";
  20544. this.splitScreenData.behavior = null;
  20545. this.$message.success(this.lang.ssSplitScreenOpenFailed);
  20546. }
  20547. }
  20548. },
  20549. enterFullScreen() {
  20550. let element = document.documentElement;
  20551. if (element.requestFullscreen) {
  20552. element.requestFullscreen();
  20553. } else if (element.mozRequestFullScreen) { /* Firefox */
  20554. element.mozRequestFullScreen();
  20555. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  20556. element.webkitRequestFullscreen();
  20557. } else if (element.msRequestFullscreen) { /* IE/Edge */
  20558. element.msRequestFullscreen();
  20559. }
  20560. },
  20561. exitFullScreen() {
  20562. if (document.exitFullscreen) {
  20563. document.exitFullscreen();
  20564. } else if (document.mozCancelFullScreen) { /* Firefox */
  20565. document.mozCancelFullScreen();
  20566. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  20567. document.webkitExitFullscreen();
  20568. } else if (document.msExitFullscreen) { /* IE/Edge */
  20569. document.msExitFullscreen();
  20570. }
  20571. },
  20572. confirmOpen(){
  20573. this.splitScreenData.isOpen = true;
  20574. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  20575. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  20576. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  20577. this.confirmOpenDig = false
  20578. if (!document.fullscreenElement) {
  20579. this.enterFullScreen();
  20580. }
  20581. // if (this.timer2) {
  20582. // clearInterval(this.timer2);
  20583. // this.timer2 = null;
  20584. // }
  20585. // this.timer2 = setInterval(()=> {
  20586. // this.getSplitScreenData();//获取分屏数据
  20587. // }, 1000);
  20588. this.$message.success(this.lang.ssSplitScreenEnabled);
  20589. },
  20590. getSplitScreenData() {
  20591. // return;
  20592. // if (this.tType != 1) return;
  20593. if(this.getSplitScreenDataLoading) return
  20594. this.getSplitScreenDataLoading = true
  20595. let params = {
  20596. cid: this.id
  20597. };
  20598. this.ajax
  20599. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20600. .then(async res => {
  20601. let data = res.data[0][0]["splitScreenData"];
  20602. console.log("获取了分屏数:", data);
  20603. if (data) {
  20604. data = JSON.parse(data);
  20605. if (
  20606. !this.splitScreenData.isOpen &&
  20607. data.isOpen &&
  20608. this.splitScreenData.myUid == data.uid
  20609. ) {
  20610. this.splitScreenData.isOpen = false;
  20611. this.splitScreenData.userId = "";
  20612. this.splitScreenData.uid = "";
  20613. this.splitScreenData.behavior = null;
  20614. await this.updateSplitScreenData(1);
  20615. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20616. this.confirmOpenDig = true
  20617. this.confirmOpenDigData = data
  20618. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20619. this.splitScreenData.isOpen = false;
  20620. this.splitScreenData.userId = "";
  20621. this.splitScreenData.uid = "";
  20622. this.splitScreenData.behavior = null;
  20623. this.$message.error(this.lang.ssSplitScreenEnded);
  20624. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20625. this.splitScreenData.isOpen = true;
  20626. this.splitScreenData.uid = data.uid;
  20627. this.splitScreenData.userId = data.userId;
  20628. this.splitScreenData.behavior = data.behavior;
  20629. }
  20630. this.doSplitScreenBehavior();
  20631. } else {
  20632. if (this.splitScreenData.isOpen) {
  20633. this.splitScreenData.isOpen = false;
  20634. this.splitScreenData.userId = "";
  20635. this.splitScreenData.uid = "";
  20636. this.splitScreenData.behavior = null;
  20637. this.$message.error(this.lang.ssSplitScreenEnded);
  20638. // if (this.timer2) {
  20639. // clearInterval(this.timer2);
  20640. // this.timer2 = null;
  20641. // }
  20642. // this.timer2 = setInterval(()=> {
  20643. // this.getSplitScreenData();//获取分屏数据
  20644. // }, 5000);
  20645. this.$confirm(this.lang.ssTeacherEndedSplitScreen, this.lang.ssPrompt, {
  20646. confirmButtonText: '确定', //确认按钮的文字
  20647. showCancelButton: false, //是否显示取消按钮
  20648. showClose: false, //是否显示关闭按钮
  20649. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  20650. type: "warning",
  20651. })
  20652. .then(() => {
  20653. if (document.fullscreenElement) {
  20654. this.exitFullScreen();
  20655. }
  20656. })
  20657. .catch(() => {});
  20658. }
  20659. }
  20660. this.getSplitScreenDataLoading = false
  20661. })
  20662. .catch(e => {
  20663. this.getSplitScreenDataLoading = false
  20664. console.log("获取分屏数出错:", e);
  20665. });
  20666. },
  20667. doSplitScreenBehavior() {
  20668. if (
  20669. this.splitScreenData.isOpen &&
  20670. this.splitScreenData.uid != this.splitScreenData.myUid
  20671. ) {
  20672. let behavior = this.splitScreenData.behavior;
  20673. if (behavior) {
  20674. if (behavior.code === 99) {
  20675. //初始化
  20676. this.fullDialogVisible = false;
  20677. if(this.$refs.choseWorksDetailDialogRef.show){
  20678. this.$refs.choseWorksDetailDialogRef.close();
  20679. }
  20680. if(this.$refs.statisticalAnalysisRef.show){
  20681. this.$refs.statisticalAnalysisRef.close();
  20682. }
  20683. }
  20684. if (behavior.code === 0) {
  20685. //开启内容列表弹窗
  20686. this.checkFileFull1(behavior.form.t, behavior.form.f);
  20687. }else{
  20688. this.fullDialogVisible = false;
  20689. }
  20690. if (behavior.code === 1) {
  20691. //关于选择题的作业详细的操作
  20692. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20693. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20694. this.courseType = behavior.form.courseType;
  20695. this.taskCount = behavior.form.taskCount;
  20696. }
  20697. this.$nextTick(() => {
  20698. if (this.$refs.choseWorksDetailDialogRef.show) {
  20699. //已经打开了
  20700. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  20701. } else {
  20702. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  20703. }
  20704. });
  20705. }else{
  20706. this.$refs.choseWorksDetailDialogRef.close()
  20707. }
  20708. if(behavior.code === 2){
  20709. if(this.$refs.statisticalAnalysisRef.show){
  20710. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20711. }else{
  20712. this.$refs.statisticalAnalysisRef.open({
  20713. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20714. tType: this.tType,
  20715. toolIndex: behavior.form.toolIndex
  20716. });
  20717. }
  20718. }else{
  20719. this.$refs.statisticalAnalysisRef.close();
  20720. }
  20721. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  20722. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  20723. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  20724. if (behavior.form.courseType != this.courseType ||
  20725. behavior.form.taskCount != this.taskCount ||
  20726. behavior.form.toolType != this.toolindex
  20727. ) {
  20728. var a = document.scrollingElement;
  20729. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  20730. if (target) {
  20731. target.scrollIntoView(true);
  20732. setTimeout(()=>{
  20733. let scrollBody = document.querySelector('.body_student').parentElement
  20734. scrollBody.scrollTop = scrollBody.scrollTop - 100
  20735. }, 0);
  20736. // setTimeout(() => {
  20737. // a.scrollTop = 0
  20738. // }, 0);
  20739. }
  20740. }
  20741. if(this.courseType !=behavior.form.courseType){
  20742. this.courseType = behavior.form.courseType;
  20743. }
  20744. if(this.taskCount !=behavior.form.taskCount){
  20745. this.taskCount = behavior.form.taskCount;
  20746. }
  20747. if((behavior.form.toolType || behavior.form.toolType == 0) && (this.toolindex != behavior.form.toolType)){
  20748. this.toolindex = behavior.form.toolType;
  20749. }
  20750. // if(behavior.form.navId){
  20751. // this.navId = behavior.form.navId
  20752. // }
  20753. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  20754. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  20755. console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  20756. this.getCourseDetail()
  20757. }
  20758. this.setContent2(false)
  20759. }
  20760. } else {
  20761. }
  20762. }
  20763. },
  20764. updateSplitScreenData(empty = 0) {
  20765. return new Promise(resolve => {
  20766. if(this.userid!==this.courseDetail.userid){
  20767. if(!this.courseDetail.userid){
  20768. return setTimeout(()=>{
  20769. this.updateSplitScreenData(empty)
  20770. },2000)
  20771. }
  20772. return;
  20773. };
  20774. if (
  20775. this.splitScreenData.uid == this.splitScreenData.myUid &&
  20776. this.splitScreenData.userId == this.userid
  20777. ) {
  20778. this.splitScreenData.loading = true;
  20779. let params = [
  20780. {
  20781. cid: this.id,
  20782. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  20783. }
  20784. ];
  20785. this.ajax
  20786. .post(
  20787. this.$store.state.api + "update_courseSplitScreenData",
  20788. params
  20789. )
  20790. .then(res => {
  20791. this.splitScreenData.loading = false;
  20792. if (res.data == 1) {
  20793. resolve(1);
  20794. console.log("修改分屏数据成功");
  20795. }
  20796. })
  20797. .catch(e => {
  20798. this.splitScreenData.loading = false;
  20799. console.log("修改分屏数据失败", e);
  20800. resoleve(0);
  20801. });
  20802. } else if (empty == 2 && this.tType == 1) {
  20803. let params = [
  20804. {
  20805. cid: this.id,
  20806. nData: ""
  20807. }
  20808. ];
  20809. return this.ajax
  20810. .post(
  20811. this.$store.state.api + "update_courseSplitScreenData",
  20812. params
  20813. )
  20814. .then(_ => resolve(1))
  20815. .catch(_ => resolve(0));
  20816. } else {
  20817. return resolve(0);
  20818. }
  20819. });
  20820. },
  20821. changeSplitScreenBehavior(newValue) {
  20822. if (
  20823. this.splitScreenData.isOpen &&
  20824. this.splitScreenData.uid == this.splitScreenData.myUid
  20825. ) {
  20826. let _behavior = null;
  20827. if(!newValue){
  20828. _behavior = {}
  20829. }else{
  20830. _behavior = newValue
  20831. }
  20832. if(_behavior.form){
  20833. _behavior.form.taskCount = this.taskCount;
  20834. _behavior.form.courseType = this.courseType
  20835. }else{
  20836. _behavior.form = {
  20837. taskCount:this.taskCount,
  20838. courseType:this.courseType
  20839. }
  20840. }
  20841. this.splitScreenData.behavior = _behavior;
  20842. this.updateSplitScreenData(0);
  20843. }
  20844. },
  20845. studentFreePreview(flag) {
  20846. this.IsLookOpen = flag;
  20847. this.followingMode(flag)
  20848. this.updateLookOpen();
  20849. },
  20850. OpenJobPreview(flag) {
  20851. this.sIsOpen = flag;
  20852. this.updateSLook();
  20853. },
  20854. followingMode(flag) {
  20855. this.IsFollow = flag;
  20856. this.updateFollow();
  20857. },
  20858. StulookMode(flag) {
  20859. this.IsStulook = flag;
  20860. this.updateIsStulook();
  20861. },
  20862. doSyncClassData(){
  20863. if(this.courseDetail.userid == this.userid && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  20864. let endTime = new Date().toLocaleString("zh-CN", {
  20865. hour12: false,
  20866. timeZone: "Asia/Shanghai"
  20867. }).replace(/\//g, "-")
  20868. let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
  20869. this.syncClassData({
  20870. courseId: this.id,
  20871. title: this.courseDetail.title,
  20872. courseGrade: this.tcid2 ? this.tcid2 : '',
  20873. courseTime: courseTime,
  20874. startTime: this.startTime,
  20875. endTime: endTime,
  20876. })
  20877. console.log('同步数据')
  20878. }
  20879. },
  20880. },
  20881. directives: {
  20882. // 使用局部注册指令的方式
  20883. resize: {
  20884. // 指令的名称
  20885. bind(el, binding) {
  20886. // el为绑定的元素,binding为绑定给指令的对象
  20887. let width = "",
  20888. height = "";
  20889. function isReize() {
  20890. const style = document.defaultView.getComputedStyle(el);
  20891. if (width !== style.width || height !== style.height) {
  20892. binding.value(); // 关键
  20893. }
  20894. width = style.width;
  20895. height = style.height;
  20896. }
  20897. el.__vueSetInterval__ = setInterval(isReize, 300);
  20898. },
  20899. unbind(el) {
  20900. clearInterval(el.__vueSetInterval__);
  20901. },
  20902. },
  20903. autoHeight: {
  20904. update(el, binding) {
  20905. const { value } = binding
  20906. if (value && typeof value === 'number') {
  20907. el.style.height = `${value}px`
  20908. } else {
  20909. el.style.height = 'auto'
  20910. }
  20911. },
  20912. componentUpdated(el) {
  20913. el.style.height = `${el.scrollHeight + 5}px`
  20914. },
  20915. },
  20916. },
  20917. beforeDestroy() {
  20918. window.onresize = null;
  20919. clearInterval(this.timer);
  20920. this.timer = null;
  20921. clearInterval(this.timer2);
  20922. this.timer2 = null;
  20923. clearInterval(this.opertimer);
  20924. this.opertimer = null;
  20925. this.updateSplitScreenData(1);
  20926. this.doSyncClassData();
  20927. },
  20928. computed: {
  20929. renderedFormula2() {
  20930. return function(val){
  20931. // 处理换行符和HTML实体
  20932. const normalized = val
  20933. .replace(/&amp;/g, '&')
  20934. .replace(/<br\/?>/g, '\n');
  20935. // 匹配行内公式($...$)和块级公式($$...$$)
  20936. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  20937. try {
  20938. return katex.renderToString(expr.trim(), {
  20939. displayMode: false,
  20940. throwOnError: false,
  20941. macros: {
  20942. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  20943. }
  20944. });
  20945. } catch (e) {
  20946. console.warn('KaTeX渲染失败:', e);
  20947. return `<span style="color:red">${expr}</span>`;
  20948. }
  20949. })
  20950. }
  20951. },
  20952. renderedFormula() {
  20953. return function(val){
  20954. try {
  20955. // 判断是否含有HTML标签,<tag ...>...</tag>
  20956. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  20957. if (!hasTag) {
  20958. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  20959. // 纯文本,整体渲染
  20960. try {
  20961. return katex.renderToString(val.trim(), {
  20962. throwOnError: false,
  20963. strict: false,
  20964. output: "htmlAndMathml"
  20965. });
  20966. } catch (e) {
  20967. return val; // 渲染失败原样输出
  20968. }
  20969. } else {
  20970. // 有标签,对每个标签内容渲染
  20971. return val.replace(
  20972. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  20973. (match, tag, attrs, inner) => {
  20974. let html;
  20975. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  20976. try {
  20977. html = katex.renderToString(inner.trim(), {
  20978. throwOnError: false,
  20979. strict: false,
  20980. output: "htmlAndMathml"
  20981. });
  20982. } catch (e) {
  20983. html = inner;
  20984. }
  20985. return `<${tag}${attrs}>${html}</${tag}>`;
  20986. }
  20987. );
  20988. }
  20989. } catch (e) {
  20990. console.error('KaTeX渲染错误:', e);
  20991. return val;
  20992. }
  20993. }
  20994. },
  20995. isAndroid() {
  20996. return /Android/i.test(navigator.userAgent);
  20997. },
  20998. getHeight(){
  20999. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21000. },
  21001. contentConvent() {
  21002. return function (c) {
  21003. return c
  21004. ? c
  21005. .replaceAll(/\r\n/g, "<br/>")
  21006. .replaceAll(/\n/g, "<br/>")
  21007. .replaceAll(/\s/g, "&nbsp")
  21008. : "";
  21009. };
  21010. },
  21011. MarkdownT() {
  21012. return function (c) {
  21013. let md = new MarkdownIt();
  21014. return c
  21015. ? md.render(c) : "";
  21016. };
  21017. },
  21018. commentRight(){
  21019. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21020. return "35px";
  21021. }
  21022. return `calc(${this.classRoomHelperWidth} + 5px)`
  21023. // if(this.$refs["classRoomHelperRef"].type==0){
  21024. // return "100px";
  21025. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21026. // return "502px"
  21027. // }else{
  21028. // return "0px"
  21029. // }
  21030. },
  21031. checkUpload() {
  21032. return function () {
  21033. var studentK = [];
  21034. if (this.plworkFile.length > 0) {
  21035. for (var z = 0; z < this.plworkFile.length; z++) {
  21036. studentK.push(this.plworkFile[z].username);
  21037. }
  21038. studentK = studentK.join(",");
  21039. }
  21040. var a = this.uploadStudentJuri.filter((el) => {
  21041. return studentK.indexOf(el.userid) == -1;
  21042. });
  21043. return a;
  21044. };
  21045. },
  21046. getSName() {
  21047. return function (name) {
  21048. var check = name;
  21049. this.uploadStudentJuri.forEach((el) => {
  21050. if (el.userid == check) {
  21051. check = el.name ? el.name : el.username;
  21052. }
  21053. });
  21054. return check;
  21055. };
  21056. },
  21057. getImgList() {
  21058. return function (val) {
  21059. let srcList = []; // 定义一个数组用来接收后面的img地址
  21060. val.replace(
  21061. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21062. function (match, capture) {
  21063. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21064. srcList.push(capture);
  21065. }
  21066. );
  21067. return srcList;
  21068. };
  21069. },
  21070. retrnToolHeight(){
  21071. return function (tool) {
  21072. var _tool = document.querySelectorAll('#'+tool)[0]
  21073. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21074. };
  21075. },
  21076. Correct() {
  21077. return function (c,d) {
  21078. let w = "";
  21079. let a = this.correctWord;
  21080. for(var k = 0;k<a.length;k++){
  21081. //diffWordsWithSpace
  21082. if(a.length > 1){
  21083. if(a[k].added == true){
  21084. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21085. }else if(a[k].removed == true){
  21086. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21087. }else{
  21088. w += '<span>' + a[k].value + '</span>';
  21089. }
  21090. }else{
  21091. w = c
  21092. }
  21093. console.log("👇👇!+++==")
  21094. console.log(w)
  21095. //diffChars方法
  21096. // if(w == ""){
  21097. // if(a.length > 1){
  21098. // if(a[k].added == true){
  21099. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21100. // }else if(a[k].removed == true){
  21101. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21102. // }
  21103. // }else{
  21104. // w = c
  21105. // }
  21106. // }else{
  21107. // if(k == a.length - 1){
  21108. // if(a[k].added == true){
  21109. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21110. // }else if(a[k].removed == true){
  21111. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21112. // }
  21113. // }else{
  21114. // if(a[k].added == true){
  21115. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21116. // }else if(a[k].removed == true){
  21117. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21118. // }
  21119. // }
  21120. // }
  21121. }
  21122. c = w;
  21123. return c;
  21124. };
  21125. },
  21126. },
  21127. mounted() {
  21128. this.setoTime("1");
  21129. this.startTime = new Date().toLocaleString("zh-CN", {
  21130. hour12: false,
  21131. timeZone: "Asia/Shanghai"
  21132. }).replace(/\//g, "-")
  21133. // if (this.tType == 1) {
  21134. // // 开局关闭学生查看内容
  21135. // this.StulookMode(false)
  21136. // // 开局打开跟随模式
  21137. // this.followingMode(true)
  21138. // }
  21139. document.body.addEventListener("click", (e) => {
  21140. if (this.isUpdateToolDetail1) {
  21141. this.updateToolDetail(this.toolDetailIndex);
  21142. }
  21143. });
  21144. try {
  21145. if (this.screenType == 2) {
  21146. window.topU.postMessage({ allScreen: 4 }, "*");
  21147. } else if (this.screenType == 3) {
  21148. window.topU.postMessage({ allScreen: 5 }, "*");
  21149. } else if (this.screenType == 1) {
  21150. window.topU.postMessage({ allScreen: 6 }, "*");
  21151. }
  21152. } catch (error) {
  21153. console.log(error)
  21154. }
  21155. setTimeout(() => {
  21156. this.doSyncClassData();
  21157. }, 1000);
  21158. this.getCode2()
  21159. this.setOperationTime();
  21160. this.selectEva();
  21161. this.getCourseDetail(10);
  21162. this.selectCount();
  21163. this.getHomeWork();
  21164. this.selectUser();
  21165. this.getAIJ();
  21166. this.contentDialog = false;
  21167. this.setContent2(true);
  21168. if (this.tType == 4) {
  21169. this.pzDialog = true;
  21170. this.selectPz();
  21171. }
  21172. // 获取评分列表
  21173. this.getScoreList()
  21174. this.updateSplitScreenData(2);
  21175. this.splitScreenData.myUid = uuidv4();
  21176. document.scrollingElement.scrollTop = 0;
  21177. window.addEventListener("resize", () => {
  21178. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21179. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21180. if (this.showType == 2 || this.showType == 3) {
  21181. document.getElementsByClassName("navBox")[0].style.height =
  21182. a - 40 + 0+ "px";
  21183. } else {
  21184. document.getElementsByClassName("navBox")[0].style.height =
  21185. a - 40 + "px";
  21186. }
  21187. });
  21188. // let _this = this;
  21189. // setTimeout(() => {
  21190. // _this.vedioTime = [];
  21191. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21192. // _this.vedioTime[i] = document.getElementsByClassName(
  21193. // "vjs-duration-display"
  21194. // )[i].textContent;
  21195. // }
  21196. // }, 1000);
  21197. },
  21198. };
  21199. </script>
  21200. <style scoped>
  21201. @media screen and (max-width: 1280px) {
  21202. /* .courseIndex > div:first-child(2) {
  21203. width: 15% !important;
  21204. } */
  21205. /* .navText {
  21206. width: 120px !important;
  21207. } */
  21208. .evaCss {
  21209. flex-direction: column !important;
  21210. align-items: center !important;
  21211. }
  21212. .elist_input {
  21213. width: 90% !important;
  21214. }
  21215. .dialog_diy1 >>> .el-dialog {
  21216. width: 100% !important;
  21217. }
  21218. .rightWidthCss {
  21219. width: 100% !important;
  21220. }
  21221. .dialog_diy3 >>> .el-dialog {
  21222. width: 100% !important;
  21223. }
  21224. .addToolCss {
  21225. right: 0 !important;
  21226. width: 100% !important;
  21227. min-width: unset !important;
  21228. }
  21229. }
  21230. .evaCssMax {
  21231. flex-direction: column !important;
  21232. align-items: center !important;
  21233. }
  21234. .dialog_diy >>> .el-dialog {
  21235. margin-top: 10vh !important;
  21236. }
  21237. .body_student {
  21238. width: 77%;
  21239. height: 100%;
  21240. position: absolute;
  21241. left: 22%;
  21242. top: 0;
  21243. }
  21244. .student_head {
  21245. width: 100%;
  21246. margin: 20px auto 0;
  21247. padding-bottom: 20px;
  21248. display: flex;
  21249. flex-direction: column;
  21250. flex-wrap: nowrap;
  21251. align-items: flex-start;
  21252. justify-content: flex-start;
  21253. }
  21254. .pb_left {
  21255. width: 15%;
  21256. margin-right: 10px;
  21257. background: rgb(255, 255, 255);
  21258. position: fixed;
  21259. height: calc(100% - 40px);
  21260. border-radius: 20px;
  21261. padding-bottom: 15px;
  21262. box-sizing: border-box;
  21263. }
  21264. .wheel > img,
  21265. .project > img,
  21266. .star > img,
  21267. .evaluate > img,
  21268. .up_photo > img,
  21269. .chapter_add > img,
  21270. .deleteWord > img,
  21271. .question > img,
  21272. .homework > img {
  21273. width: 100%;
  21274. height: 100%;
  21275. }
  21276. .upCover > img {
  21277. width: 131px;
  21278. height: 69px;
  21279. object-fit: cover;
  21280. }
  21281. .upCover {
  21282. width: calc(100% / 3.5);
  21283. position: relative;
  21284. margin: 0 15px 10px 0;
  21285. display: flex;
  21286. flex-direction: column;
  21287. flex-wrap: nowrap;
  21288. justify-content: center;
  21289. align-content: center;
  21290. align-items: center;
  21291. height: fit-content;
  21292. }
  21293. .upCover2 {
  21294. width: 100%;
  21295. position: relative;
  21296. margin: 0 15px 10px 0;
  21297. display: flex;
  21298. flex-direction: column;
  21299. flex-wrap: nowrap;
  21300. justify-content: center;
  21301. align-content: center;
  21302. align-items: center;
  21303. }
  21304. .upCover2 > img {
  21305. width: 100%;
  21306. height: 90px;
  21307. object-fit: contain;
  21308. }
  21309. .chapter_add {
  21310. width: 120px;
  21311. position: relative;
  21312. text-align: center;
  21313. }
  21314. .isAddThings {
  21315. margin-top: 20px;
  21316. position: relative;
  21317. text-align: center;
  21318. background: #f7f8fa;
  21319. height: 90px;
  21320. width: 90px;
  21321. display: flex;
  21322. flex-direction: column;
  21323. justify-content: center;
  21324. }
  21325. .deleteWord {
  21326. width: 22px;
  21327. height: 22px;
  21328. position: absolute;
  21329. right: -5px;
  21330. top: -5px;
  21331. cursor: pointer;
  21332. }
  21333. .box_course {
  21334. /* width: 60%; */
  21335. width: calc(100% - 300px);
  21336. }
  21337. .wheel {
  21338. width: 100%;
  21339. /* height: 100%; */
  21340. height: 650px;
  21341. }
  21342. .right_box {
  21343. display: flex;
  21344. flex-direction: column;
  21345. margin-left: 30px;
  21346. justify-content: space-around;
  21347. }
  21348. .right_box_title {
  21349. font-size: 23px;
  21350. }
  21351. .people {
  21352. display: flex;
  21353. }
  21354. .student_body {
  21355. width: 100%;
  21356. margin: 0 auto;
  21357. margin-top: 10px;
  21358. padding: 0 0 20px;
  21359. }
  21360. .study_top {
  21361. margin-top: 100px;
  21362. width: 100%;
  21363. height: auto;
  21364. padding-bottom: 20px;
  21365. margin-left: 2px;
  21366. min-height: 90%;
  21367. }
  21368. .study_top .checkbox {
  21369. display: flex;
  21370. align-items: center;
  21371. padding: 15px 0 15px 30px;
  21372. flex: 0 0 auto;
  21373. font-weight: bold;
  21374. border-bottom: 1px solid #eee;
  21375. }
  21376. .study_top .check {
  21377. padding-bottom: 5px;
  21378. text-align: center;
  21379. cursor: pointer;
  21380. height: 30px;
  21381. box-sizing: border-box;
  21382. display: flex;
  21383. }
  21384. .study_top .checked {
  21385. border-bottom: 4px solid #3fc6a0;
  21386. padding-bottom: 5px;
  21387. color: #3fc6a0;
  21388. display: flex;
  21389. height: 35px;
  21390. }
  21391. .study_top .checked > div,
  21392. .study_top .check > div {
  21393. margin-right: 5px;
  21394. }
  21395. .videoTop {
  21396. display: flex;
  21397. flex-direction: row;
  21398. justify-content: space-between;
  21399. background: #fff;
  21400. align-items: center;
  21401. width: 95%;
  21402. padding: 20px;
  21403. }
  21404. .filebox {
  21405. display: flex;
  21406. flex-wrap: wrap;
  21407. flex-direction: column;
  21408. padding: 0 0 5px;
  21409. position: relative;
  21410. }
  21411. .filebox:before {
  21412. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21413. position: absolute;
  21414. top: 20px;
  21415. left: 13px;
  21416. border-left: 2px dotted #cad1dc;
  21417. height: calc(100% - 15px);
  21418. }
  21419. .toolHeng2 > div:last-child::before {
  21420. height: calc(100% - 43px);
  21421. }
  21422. .filebox .tooldetail {
  21423. width: calc(100%);
  21424. margin: 0px 12px;
  21425. padding: 12px;
  21426. line-height: 30px;
  21427. word-break: break-word;
  21428. background: #ffffff;
  21429. border-radius: 8px 8px 8px 8px;
  21430. opacity: 1;
  21431. border: 1px solid #cad1dc;
  21432. overflow:hidden;
  21433. box-sizing:border-box;
  21434. }
  21435. .pb_content >>> .katex {
  21436. font-size: 16px;
  21437. width: 100%;
  21438. white-space: normal;
  21439. }
  21440. .pb_content >>> .katex .base{
  21441. display: inline !important;
  21442. display: contents !important;
  21443. }
  21444. .pb_content >>> .katex .base .cjk_fallback{
  21445. white-space: normal !important;
  21446. display: inline !important;
  21447. }
  21448. .file {
  21449. display: flex;
  21450. flex-direction: column;
  21451. align-items: center;
  21452. justify-content: center;
  21453. cursor: pointer;
  21454. width: 200px;
  21455. }
  21456. .file div {
  21457. margin-top: 10px;
  21458. width: 150px;
  21459. text-align: center;
  21460. overflow: hidden;
  21461. white-space: nowrap;
  21462. text-overflow: ellipsis;
  21463. }
  21464. .media {
  21465. display: flex;
  21466. flex-direction: column;
  21467. align-items: center;
  21468. justify-content: center;
  21469. margin: 0 20px 20px 0;
  21470. cursor: pointer;
  21471. margin: 12px 0 5px 15px;
  21472. overflow: hidden;
  21473. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21474. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21475. box-sizing: border-box;
  21476. }
  21477. .media img {
  21478. height: 90px;
  21479. width: 160px;
  21480. object-fit: cover;
  21481. }
  21482. .media .title {
  21483. padding: 5px;
  21484. text-align: left;
  21485. width: 100%;
  21486. box-sizing: border-box;
  21487. }
  21488. .media .btn {
  21489. width: 100%;
  21490. height: 35px;
  21491. line-height: 35px;
  21492. color: #fff;
  21493. background: #606060;
  21494. text-align: center;
  21495. overflow: hidden;
  21496. white-space: nowrap;
  21497. text-overflow: ellipsis;
  21498. }
  21499. .detail_content_top {
  21500. width: 100%;
  21501. padding: 25px 0 25px 0;
  21502. }
  21503. .detail_title {
  21504. text-align: center;
  21505. font-size: 24px;
  21506. }
  21507. .detail_time {
  21508. font-size: 13px;
  21509. padding: 15px 0 0 40px;
  21510. }
  21511. .detail_content {
  21512. line-height: 2pc;
  21513. width: 90%;
  21514. margin: 0 auto;
  21515. padding-top: 30px;
  21516. text-indent: 30px;
  21517. overflow: auto;
  21518. height: 200px;
  21519. }
  21520. .score_box >>> .el-rate {
  21521. margin-left: 10px;
  21522. }
  21523. .dialog_change >>> .el-dialog {
  21524. border-radius: 5px;
  21525. }
  21526. .dialog_change >>> .el-dialog__header {
  21527. background: #f2f2f2;
  21528. text-align: center;
  21529. }
  21530. .dialog_change >>> .el-dialog__title {
  21531. line-height: 5px;
  21532. }
  21533. .dialog_change >>> .el-dialog__body {
  21534. background: #fff;
  21535. padding: 10px 20px;
  21536. }
  21537. .score_box {
  21538. display: flex;
  21539. align-items: center;
  21540. margin-bottom: 18px;
  21541. margin-top: 20px;
  21542. }
  21543. .up_photo {
  21544. width: 120px;
  21545. cursor: pointer;
  21546. margin-top: 10px;
  21547. }
  21548. .up_photo2 {
  21549. width: 180px;
  21550. box-sizing: border-box;
  21551. min-width: 180px;
  21552. height: 180px;
  21553. max-height: 180px;
  21554. min-height: 180px;
  21555. cursor: pointer;
  21556. display: flex;
  21557. flex-direction: column;
  21558. align-items: center;
  21559. justify-content: center;
  21560. background: rgb(242, 246, 255);
  21561. /* padding: 25px; */
  21562. margin-bottom: 10px;
  21563. }
  21564. .up_photo2 img {
  21565. width: 50%;
  21566. height: auto;
  21567. }
  21568. .up_photo2 span {
  21569. color: #898989;
  21570. }
  21571. .plworkBox {
  21572. display: flex;
  21573. align-items: center;
  21574. margin-top: 10px;
  21575. flex-wrap: wrap;
  21576. }
  21577. .upload_send {
  21578. margin: 30px auto 30px;
  21579. width: 60%;
  21580. background: #3681fc;
  21581. text-align: center;
  21582. height: 35px;
  21583. line-height: 35px;
  21584. color: #fff;
  21585. border-radius: 5px;
  21586. cursor: pointer;
  21587. }
  21588. .marginT {
  21589. margin-top: 20px;
  21590. }
  21591. .cd_content_steps {
  21592. display: flex;
  21593. width: 90%;
  21594. justify-content: space-around;
  21595. border-top: 1px solid #eeeeee;
  21596. }
  21597. .cd_steps_box {
  21598. display: flex;
  21599. justify-content: center;
  21600. align-items: center;
  21601. flex-direction: column;
  21602. cursor: pointer;
  21603. }
  21604. .first {
  21605. display: flex;
  21606. align-items: center;
  21607. margin: 15px 0 20px 0;
  21608. font-size: 20px;
  21609. }
  21610. .first > div:nth-child(2) {
  21611. font-size: 16px !important;
  21612. padding-left: 10px;
  21613. line-height: 26px;
  21614. box-sizing: border-box;
  21615. }
  21616. .blue_box_one {
  21617. text-align: center;
  21618. color: #fff;
  21619. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  21620. border-radius: 7px;
  21621. margin: 10px;
  21622. cursor: pointer;
  21623. width: 95%;
  21624. height: 45px;
  21625. display: flex;
  21626. flex-direction: row;
  21627. justify-content: flex-start;
  21628. align-items: center;
  21629. }
  21630. .blue_box_one > div:nth-child(1) {
  21631. line-height: 30px;
  21632. margin: 0 5px 0 10px;
  21633. width: 30%;
  21634. min-width: 70px;
  21635. border-radius: 4px;
  21636. }
  21637. .blue_box_one > div:nth-child(2) {
  21638. white-space: nowrap;
  21639. text-overflow: ellipsis;
  21640. overflow: hidden;
  21641. word-break: break-all;
  21642. width: 70%;
  21643. text-align: left;
  21644. margin-right: 10px;
  21645. max-width: calc(100% - 85px);
  21646. }
  21647. .blue_box_one > div:nth-child(2):hover {
  21648. overflow: hidden;
  21649. text-overflow: ellipsis;
  21650. white-space: nowrap;
  21651. cursor: pointer;
  21652. }
  21653. .upFile {
  21654. margin: 0 auto;
  21655. width: 120px;
  21656. background: #3681fc;
  21657. color: #fff;
  21658. height: 30px;
  21659. text-align: center;
  21660. line-height: 30px;
  21661. border-radius: 5px;
  21662. font-size: 14px;
  21663. cursor: pointer;
  21664. }
  21665. .courseTitle {
  21666. width: 85%;
  21667. margin: 10px auto 26px auto;
  21668. display: flex;
  21669. flex-direction: row;
  21670. align-items: center;
  21671. justify-content: space-between;
  21672. text-align: center;
  21673. }
  21674. .courseTitle .ctitle {
  21675. font-size: 20px;
  21676. font-weight: bold;
  21677. color: #0e1e33;
  21678. white-space: nowrap;
  21679. overflow: hidden;
  21680. text-overflow: ellipsis;
  21681. }
  21682. .inviteBox {
  21683. font-size: 14px;
  21684. /* margin-top: 5px; */
  21685. color: #00000099;
  21686. text-align: center;
  21687. }
  21688. .courseTitle >>> .el-tooltip {
  21689. width: 100%;
  21690. white-space: nowrap;
  21691. overflow: hidden;
  21692. text-overflow: ellipsis;
  21693. word-break: break-word;
  21694. }
  21695. .ml {
  21696. margin-left: 20px;
  21697. color: #5b7dba;
  21698. border-left: 3px solid #5b7dba;
  21699. padding-left: 5px;
  21700. font-weight: bold;
  21701. }
  21702. .return {
  21703. width: 2rem;
  21704. height: 2rem;
  21705. cursor: pointer;
  21706. }
  21707. .return > img {
  21708. width: 100%;
  21709. height: 100%;
  21710. }
  21711. .returnBtn {
  21712. /* width: 86px; */
  21713. /* height: 36px; */
  21714. background: #3681fc;
  21715. border-radius: 4px;
  21716. color: #fff;
  21717. text-align: center;
  21718. padding: 8px 10px;
  21719. /* line-height: 36px; */
  21720. margin-right: 20px;
  21721. cursor: pointer;
  21722. font-size: 14px;
  21723. font-weight: 400;
  21724. display: flex;
  21725. flex-direction: row;
  21726. flex-wrap: nowrap;
  21727. align-items: center;
  21728. justify-content: center;
  21729. }
  21730. .reBtnIcon,
  21731. .commentIcon,
  21732. .vedioIcon,
  21733. .vedioIcon1 {
  21734. /* width: 36px; */
  21735. height: 36px;
  21736. border-radius: 4px;
  21737. position: relative;
  21738. /* background: #e0eafb; */
  21739. background: #0061ff;
  21740. cursor: pointer;
  21741. margin-right: 12px;
  21742. display: flex;
  21743. align-items: center;
  21744. padding: 0 10px;
  21745. box-sizing: border-box;
  21746. font-size: 14px;
  21747. color: #fff;
  21748. }
  21749. .reBtnIcon::before,
  21750. .commentIcon::before,
  21751. .vedioIcon::before,
  21752. .vedioIcon1::before {
  21753. content: "";
  21754. display: block;
  21755. background-size: 100% 100%;
  21756. background-repeat: no-repeat;
  21757. width: 20px;
  21758. height: 20px;
  21759. margin-right: 5px;
  21760. /* position: absolute; */
  21761. /* top: 8px;
  21762. left: 8px; */
  21763. }
  21764. .vedioIcon1 {
  21765. background: #f63564;
  21766. }
  21767. .reBtnIcon::before {
  21768. background-image: url("../../assets/icon/newIcons/refresh.png");
  21769. }
  21770. .commentIcon::before {
  21771. background-image: url("../../assets/icon/newIcons/comment.png");
  21772. }
  21773. .vedioIcon::before {
  21774. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21775. }
  21776. .vedioIcon1::before {
  21777. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  21778. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21779. }
  21780. .tool {
  21781. display: flex;
  21782. flex-direction: column;
  21783. flex-wrap: nowrap;
  21784. width: 13%;
  21785. margin: 0 30px;
  21786. align-items: center;
  21787. position: relative;
  21788. padding: 10px 25px;
  21789. cursor: pointer;
  21790. }
  21791. .whiteBIcon {
  21792. width: 150px;
  21793. }
  21794. .whiteBIcon > img {
  21795. width: 100%;
  21796. height: 100%;
  21797. }
  21798. .mask {
  21799. background-color: rgba(0, 0, 0, 0);
  21800. position: fixed;
  21801. top: 0;
  21802. left: 0;
  21803. width: 100%;
  21804. height: 100%;
  21805. z-index: 20000;
  21806. display: flex;
  21807. align-items: center;
  21808. justify-content: center;
  21809. }
  21810. .progressBox {
  21811. width: 500px;
  21812. height: 180px;
  21813. background: #fff;
  21814. border-radius: 10px;
  21815. box-shadow: 0 0 6px 1px #bfbfbf;
  21816. display: flex;
  21817. align-items: center;
  21818. justify-content: center;
  21819. flex-direction: column;
  21820. position: relative;
  21821. color: #6c6c6c;
  21822. }
  21823. .progressBox >>> .el-progress-bar__outer {
  21824. background-color: #d1dfff !important;
  21825. }
  21826. .progressBox .lbox {
  21827. height: 50px;
  21828. font-size: 19px;
  21829. display: flex;
  21830. align-items: center;
  21831. color: #747474;
  21832. }
  21833. .progressBox .lbox img {
  21834. width: 40px;
  21835. margin-right: 20px;
  21836. }
  21837. .closeCss {
  21838. position: absolute;
  21839. top: 8px;
  21840. right: 8px;
  21841. cursor: pointer;
  21842. width: 20px;
  21843. height: 20px;
  21844. }
  21845. .closeCss > img {
  21846. width: 100%;
  21847. height: 100%;
  21848. }
  21849. .uploadVedio {
  21850. display: flex;
  21851. flex-direction: column;
  21852. flex-wrap: nowrap;
  21853. justify-content: center;
  21854. align-items: center;
  21855. margin: 0 15px 10px 0;
  21856. }
  21857. .uploadVedio > img {
  21858. width: 30px;
  21859. height: 30px;
  21860. }
  21861. .uploadVedio > span {
  21862. white-space: nowrap;
  21863. overflow: hidden;
  21864. text-overflow: ellipsis;
  21865. width: 75px;
  21866. margin-top: 7px;
  21867. }
  21868. .picName {
  21869. white-space: nowrap;
  21870. overflow: hidden;
  21871. text-overflow: ellipsis;
  21872. width: 75px;
  21873. margin-top: 7px;
  21874. }
  21875. .new_top {
  21876. display: flex;
  21877. background: #fff;
  21878. flex-direction: row;
  21879. justify-content: flex-start;
  21880. align-items: center;
  21881. height: 60px;
  21882. position: fixed;
  21883. top: 20px;
  21884. left: 22%;
  21885. width: 77%;
  21886. z-index: 999;
  21887. border-radius: 12px 12px 0 0;
  21888. border-bottom: 1px solid #cad1dc;
  21889. padding: 10px 0;
  21890. }
  21891. .new_topFixed {
  21892. width: 100%;
  21893. height: 40px;
  21894. position: fixed;
  21895. top: 0px;
  21896. display: block;
  21897. background: #f2f2f2;
  21898. z-index: 998;
  21899. }
  21900. .before {
  21901. position: absolute;
  21902. background: #c3dad4;
  21903. width: 6px;
  21904. height: 100%;
  21905. }
  21906. .courseIndex {
  21907. display: flex;
  21908. flex-direction: row;
  21909. align-items: center;
  21910. width: calc(100% - 745px);
  21911. }
  21912. .courseIndex > div:nth-child(1) {
  21913. margin: 0 0 0 10px;
  21914. font-size: 20px;
  21915. min-width: 100px;
  21916. font-weight: bold;
  21917. border-left: 4px solid #3363b9;
  21918. height: 32px;
  21919. text-align: center;
  21920. line-height: 35px;
  21921. }
  21922. .courseIndex > div:nth-child(2) {
  21923. font-size: 20px;
  21924. /* width: 300px; */
  21925. max-width: calc(100% - 105px);
  21926. white-space: nowrap;
  21927. overflow: hidden;
  21928. text-overflow: ellipsis;
  21929. }
  21930. .courseIndex > div:nth-child(3) {
  21931. border-bottom: 1px solid #d7d7d7;
  21932. padding-bottom: 5px;
  21933. background: #3681fc;
  21934. width: 55px;
  21935. min-width: 55px;
  21936. border-radius: 5px;
  21937. color: #fff;
  21938. text-align: center;
  21939. height: 20px;
  21940. line-height: 26px;
  21941. font-size: 14px;
  21942. margin: 0 0 0 10px;
  21943. }
  21944. .course_text {
  21945. padding: 20px 0 0 15px;
  21946. text-indent: 30px;
  21947. width: 80%;
  21948. min-height: 20px;
  21949. }
  21950. .vedioList {
  21951. background: #f2f2f2;
  21952. border: 1px solid #ececec;
  21953. /* width: 38.8%; */
  21954. /* width: 300px; */
  21955. width: 100%;
  21956. height: 445px;
  21957. border-radius: 10px;
  21958. overflow: hidden;
  21959. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  21960. }
  21961. .vedioNav {
  21962. margin: 10px 0 0 15px;
  21963. border-bottom: 1px solid #d7d7d7;
  21964. padding-bottom: 5px;
  21965. background: #3681fc;
  21966. width: 55px;
  21967. min-width: 55px;
  21968. border-radius: 5px;
  21969. color: #fff;
  21970. text-align: center;
  21971. height: 20px;
  21972. line-height: 26px;
  21973. font-size: 14px;
  21974. }
  21975. .queTop {
  21976. display: flex;
  21977. padding: 20px 0 20px 30px;
  21978. width: 100%;
  21979. flex-direction: row;
  21980. justify-content: flex-start;
  21981. align-items: center;
  21982. box-sizing: border-box;
  21983. }
  21984. .queTopTitle {
  21985. display: flex;
  21986. flex-direction: row;
  21987. flex-wrap: nowrap;
  21988. align-items: center;
  21989. font-weight: bold;
  21990. font-size: 20px;
  21991. color: rgb(14, 30, 51);
  21992. }
  21993. .queTopTitle::before {
  21994. content: "";
  21995. width: 2px;
  21996. height: 22px;
  21997. background: #3681fc;
  21998. border-radius: 3px;
  21999. display: block;
  22000. margin: 2px 6px 0 0;
  22001. }
  22002. .queTopRight {
  22003. display: flex;
  22004. flex-direction: row;
  22005. flex-wrap: nowrap;
  22006. align-items: center;
  22007. }
  22008. .queTopClose {
  22009. margin-right: 20px;
  22010. cursor: pointer;
  22011. position: relative;
  22012. display: flex;
  22013. }
  22014. .closeImg,
  22015. .openImg {
  22016. width: 25px;
  22017. height: 25px;
  22018. position: absolute;
  22019. left: -20px;
  22020. top: -1px;
  22021. }
  22022. .closeImg > img,
  22023. .openImg > img {
  22024. width: 100%;
  22025. height: 100%;
  22026. }
  22027. .question {
  22028. width: 40px;
  22029. margin-right: 10px;
  22030. margin-top: 7px;
  22031. flex-shrink: 0;
  22032. }
  22033. .queTitle {
  22034. margin-left: 5px;
  22035. font-size: 25px;
  22036. display: flex;
  22037. align-items: center;
  22038. }
  22039. .queTitle > div:nth-child(1){
  22040. width: 120px;
  22041. flex-shrink: 0;
  22042. }
  22043. .addEditor {
  22044. width: 100px;
  22045. height: 30px;
  22046. background: #42cda6;
  22047. color: #fff;
  22048. border-radius: 5px;
  22049. text-align: center;
  22050. line-height: 30px;
  22051. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22052. cursor: pointer;
  22053. }
  22054. /* .vedioName {
  22055. cursor: pointer;
  22056. margin: 0px 0px 10px 5px;
  22057. white-space: nowrap;
  22058. overflow: hidden;
  22059. text-overflow: ellipsis;
  22060. width: 100%;
  22061. } */
  22062. .vedioTime {
  22063. width: 35px;
  22064. position: absolute;
  22065. color: #fff;
  22066. bottom: 0px;
  22067. right: 0px;
  22068. text-align: center;
  22069. background: #46411f;
  22070. height: 20px;
  22071. font-size: 14px;
  22072. line-height: 20px;
  22073. }
  22074. .homework {
  22075. width: 200px;
  22076. display: flex;
  22077. flex-direction: column;
  22078. flex-wrap: nowrap;
  22079. align-items: center;
  22080. cursor: pointer;
  22081. }
  22082. .homebox {
  22083. display: flex;
  22084. flex-wrap: wrap;
  22085. flex-direction: row;
  22086. justify-content: flex-start;
  22087. align-items: center;
  22088. padding: 15px 0;
  22089. }
  22090. .isChooseActive {
  22091. color: #3681fc !important;
  22092. font-weight: bold !important;
  22093. }
  22094. .chooseWho {
  22095. display: flex;
  22096. width: 100%;
  22097. flex-direction: row;
  22098. flex-wrap: nowrap;
  22099. justify-content: flex-start;
  22100. padding-bottom: 10px;
  22101. }
  22102. .chooseWho > div {
  22103. cursor: pointer;
  22104. padding-bottom: 10px;
  22105. margin: 0 30px 0 0;
  22106. font-weight: 400;
  22107. color: #0e1e33;
  22108. }
  22109. .addPoint > div > img {
  22110. cursor: pointer;
  22111. width: 85px;
  22112. border-radius: 15px;
  22113. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22114. }
  22115. .addPoint > div {
  22116. display: flex;
  22117. flex-direction: column;
  22118. flex-wrap: nowrap;
  22119. align-items: center;
  22120. }
  22121. .isBorder > div {
  22122. margin: 0 0 10px 0;
  22123. align-items: flex-start !important;
  22124. }
  22125. .noiframeBox {
  22126. display: flex;
  22127. flex-wrap: wrap;
  22128. }
  22129. .iframeBox iframe {
  22130. width: 100%;
  22131. height: 800px;
  22132. border: none;
  22133. margin-bottom: 20px;
  22134. border: 1px solid #ccc;
  22135. }
  22136. .upload_toolBtn {
  22137. background: #3681fc;
  22138. color: #fff;
  22139. width: 110px;
  22140. text-align: center;
  22141. height: 35px;
  22142. line-height: 35px;
  22143. font-size: 14px;
  22144. border-radius: 5px;
  22145. cursor: pointer;
  22146. position: absolute;
  22147. right: 10px;
  22148. bottom: 0;
  22149. }
  22150. .binfo_input,
  22151. .pj {
  22152. font: inherit;
  22153. color: currentColor;
  22154. width: 100%;
  22155. margin: 0;
  22156. padding: 15px 14px;
  22157. display: block;
  22158. min-width: 0;
  22159. outline: none;
  22160. box-sizing: content-box;
  22161. background: none;
  22162. -webkit-tap-highlight-color: transparent;
  22163. border: 1px solid rgba(0, 0, 0, 0.23);
  22164. border-radius: 4px;
  22165. box-sizing: border-box;
  22166. resize: none;
  22167. }
  22168. .binfo_input:focus-visible {
  22169. border: 1px solid rgba(61, 103, 188);
  22170. }
  22171. .dialog_diy >>> .el-dialog__header,
  22172. .dialog_diy1 >>> .el-dialog__header {
  22173. background: #454545 !important;
  22174. padding: 15px 20px;
  22175. }
  22176. .dialog_diy >>> .el-dialog__title,
  22177. .dialog_diy1 >>> .el-dialog__title {
  22178. color: #fff;
  22179. }
  22180. .dialog_diy >>> .el-dialog__headerbtn,
  22181. .dialog_diy1 >>> .el-dialog__headerbtn {
  22182. top: 19px;
  22183. }
  22184. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22185. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22186. color: #fff;
  22187. }
  22188. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22189. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22190. color: #fff;
  22191. }
  22192. .dialog_diy1 >>> .el-dialog__body {
  22193. padding: 0;
  22194. }
  22195. .dialog_diy >>> .el-dialog__body,
  22196. .dialog_diy >>> .el-dialog__footer,
  22197. .dialog_diy1 >>> .el-dialog__footer {
  22198. background: #fafafa;
  22199. }
  22200. .a_addBox {
  22201. padding: 0 0 0 15px;
  22202. }
  22203. .a_add_box {
  22204. padding: 10px;
  22205. background: #fff;
  22206. margin-bottom: 10px;
  22207. border-radius: 5px;
  22208. box-shadow: 0 0 5px 0 #d5d5d5;
  22209. }
  22210. .a_add_head {
  22211. display: flex;
  22212. align-items: flex-start;
  22213. /* justify-content: space-between; */
  22214. flex-direction: column;
  22215. /* flex-direction: row; */
  22216. margin: 10px 0 20px 0;
  22217. font-size: 18px;
  22218. width: 100%;
  22219. }
  22220. .askIndex {
  22221. background: #3681fc;
  22222. border-radius: 50%;
  22223. color: #fff;
  22224. width: 25px;
  22225. height: 25px;
  22226. min-width: 25px;
  22227. min-height: 25px;
  22228. text-align: center;
  22229. line-height: 25px;
  22230. margin-right: 5px;
  22231. }
  22232. .a_add_head .a_add_head_input {
  22233. width: 300px;
  22234. }
  22235. .a_add_head .a_add_head_div {
  22236. display: flex;
  22237. align-items: center;
  22238. justify-content: space-between;
  22239. }
  22240. .a_add_body {
  22241. display: flex;
  22242. align-items: center;
  22243. }
  22244. .a_add_input {
  22245. display: flex;
  22246. align-items: center;
  22247. flex-wrap: wrap;
  22248. width: 100%;
  22249. }
  22250. .a_add_input >>> .el-radio-group,
  22251. .a_add_input >>> .el-checkbox-group {
  22252. width: 100%;
  22253. }
  22254. .a_add_input >>> .el-radio,
  22255. .a_add_input >>> .el-checkbox {
  22256. display: flex;
  22257. flex-direction: row;
  22258. flex-wrap: nowrap;
  22259. align-items: center;
  22260. padding: 15px 0;
  22261. }
  22262. .a_add_input >>> .el-radio:not(:last-child),
  22263. .a_add_input >>> .el-checkbox:not(:last-child) {
  22264. width: 100%;
  22265. border-bottom: 1px solid #efefef;
  22266. }
  22267. .redioStyle >>> .el-radio__label {
  22268. font-size: 18px;
  22269. }
  22270. .redioStyle >>> .el-radio__label > span,
  22271. .redioStyle >>> .el-checkbox__label > span {
  22272. word-break: break-all;
  22273. white-space: normal;
  22274. }
  22275. .redioStyle >>> .el-checkbox__label {
  22276. font-size: 18px;
  22277. }
  22278. .toolHeng2 {
  22279. width: 100%;
  22280. padding-left: 15px;
  22281. box-sizing: border-box;
  22282. }
  22283. .workNav {
  22284. font-size: 20px;
  22285. font-weight: bold;
  22286. color: #0e1e33;
  22287. display: flex;
  22288. flex-direction: row;
  22289. flex-wrap: nowrap;
  22290. align-items: center;
  22291. padding: 15px 0 15px 0;
  22292. }
  22293. .workNav::before {
  22294. content: "";
  22295. width: 2px;
  22296. height: 22px;
  22297. background: #3681fc;
  22298. border-radius: 3px;
  22299. display: block;
  22300. margin: 2px 6px 0 0;
  22301. }
  22302. .toolHeng {
  22303. display: flex;
  22304. flex-direction: row;
  22305. flex-wrap: wrap;
  22306. justify-content: flex-start;
  22307. align-items: center;
  22308. width: 100%;
  22309. }
  22310. .toolHeng > div {
  22311. padding-left: 20px;
  22312. }
  22313. .isWidth {
  22314. width: 20%;
  22315. }
  22316. .textTitle {
  22317. display: flex;
  22318. flex-direction: row;
  22319. flex-wrap: nowrap;
  22320. align-items: center;
  22321. width: 95%;
  22322. }
  22323. .textTitle >>> .el-form-item__label {
  22324. font-size: 22px;
  22325. color: #918f8f;
  22326. width: 100px;
  22327. }
  22328. .textTitle >>> .el-form-item__content {
  22329. width: calc(100% - 100px);
  22330. }
  22331. .textCss >>> .el-dialog {
  22332. width: 800px !important;
  22333. height: 400px;
  22334. background: #fafafa;
  22335. }
  22336. .textCss >>> .el-dialog__body {
  22337. margin: 55px 8% 0 8%;
  22338. padding: 0 !important;
  22339. }
  22340. .textCss >>> .el-dialog__footer {
  22341. padding-top: 38px;
  22342. }
  22343. .toolsCss >>> .el-dialog__body {
  22344. padding: 20px;
  22345. }
  22346. .lineCss >>> .el-dialog__body {
  22347. display: flex;
  22348. flex-direction: row;
  22349. align-items: center;
  22350. justify-content: center;
  22351. }
  22352. .newNav {
  22353. display: flex;
  22354. flex-direction: row;
  22355. align-items: baseline;
  22356. justify-content: flex-start;
  22357. }
  22358. .navListItem {
  22359. width: calc(100% - 20px);
  22360. height: 50px;
  22361. margin: 0px auto 10px;
  22362. display: flex;
  22363. flex-direction: row;
  22364. flex-wrap: nowrap;
  22365. align-items: center;
  22366. justify-content: space-between;
  22367. background: #f0f4fa;
  22368. border-radius: 6px 6px 6px 6px;
  22369. }
  22370. .navText {
  22371. cursor: pointer;
  22372. white-space: nowrap;
  22373. overflow: hidden;
  22374. text-overflow: ellipsis;
  22375. width: 220px;
  22376. padding: 0 10px;
  22377. font-weight: 400;
  22378. color: #0e1e33;
  22379. }
  22380. .downIcon {
  22381. width: 20px;
  22382. min-width: 20px;
  22383. height: 20px;
  22384. margin-right: 15px;
  22385. cursor: pointer;
  22386. }
  22387. .downIcon > img {
  22388. width: 100%;
  22389. height: 100%;
  22390. }
  22391. .noVedio {
  22392. display: flex;
  22393. flex-direction: row;
  22394. justify-content: center;
  22395. align-content: center;
  22396. }
  22397. .noNavText {
  22398. cursor: pointer;
  22399. margin: 0px 0px 10px 5px;
  22400. width: 112px;
  22401. }
  22402. .listNoVedio {
  22403. margin: 0 0 0 30px;
  22404. width: 97%;
  22405. }
  22406. .video-player >>> .video-js {
  22407. height: 100%;
  22408. }
  22409. .hangVedioList {
  22410. width: 90% !important;
  22411. height: 150px !important;
  22412. margin: 20px 0 0 30px;
  22413. }
  22414. .hangVedio {
  22415. width: 100%;
  22416. height: 170px !important;
  22417. align-items: flex-start !important;
  22418. }
  22419. .hangHand {
  22420. height: 150px !important;
  22421. }
  22422. .twoChild {
  22423. width: 95%;
  22424. margin: 10px;
  22425. border-radius: 5px;
  22426. background: #f2f2f2;
  22427. display: flex;
  22428. flex-direction: column;
  22429. flex-wrap: nowrap;
  22430. justify-content: flex-start;
  22431. align-items: flex-start;
  22432. transition: all 0.5s;
  22433. overflow: hidden;
  22434. height: 0;
  22435. background: #e7f3ff;
  22436. }
  22437. .twoChild > div:nth-child(1) {
  22438. margin-top: 5px;
  22439. }
  22440. .navChild {
  22441. width: 100%;
  22442. cursor: pointer;
  22443. margin-bottom: 10px;
  22444. position: relative;
  22445. }
  22446. .navChild img {
  22447. position: absolute;
  22448. right: 11px;
  22449. width: 15px;
  22450. top: 50%;
  22451. transform: translateY(-50%);
  22452. }
  22453. .navActive,
  22454. .toolActive {
  22455. height: auto !important;
  22456. overflow: auto !important;
  22457. /* padding-bottom: 16px; */
  22458. }
  22459. .toolActive {
  22460. padding: 0;
  22461. }
  22462. .navTask {
  22463. display: flex;
  22464. flex-direction: row;
  22465. flex-wrap: nowrap;
  22466. align-items: center;
  22467. align-content: flex-start;
  22468. height: 40px;
  22469. justify-content: flex-start;
  22470. padding: 0 10px;
  22471. width: 100%;
  22472. box-sizing: border-box;
  22473. }
  22474. .navTaskname {
  22475. white-space: nowrap;
  22476. text-overflow: ellipsis;
  22477. overflow: hidden;
  22478. word-break: break-all;
  22479. padding-left: 5px;
  22480. }
  22481. .openTaskActive {
  22482. /* background-color: #e0eafb !important;
  22483. color: #0061ff; */
  22484. color:#fff;
  22485. background: rgb(55, 129, 252) !important;
  22486. }
  22487. .iframeName {
  22488. margin: 5px 0;
  22489. border-left: 4px solid #41c4a4;
  22490. padding-left: 4px;
  22491. }
  22492. .toolTitle {
  22493. margin: 0px 0px 20px;
  22494. font-size: 20px;
  22495. font-weight: 500;
  22496. border-left: 4px solid #41c4a4;
  22497. padding-left: 4px;
  22498. }
  22499. .cru_selectBox {
  22500. overflow: auto;
  22501. width: 95%;
  22502. margin: 17px auto 0;
  22503. height: calc(100% - 40px - 21px - 20px - 17px);
  22504. background: #fff;
  22505. border-radius: 8px;
  22506. }
  22507. .cru_selectBox::-webkit-scrollbar,
  22508. .study_top::-webkit-scrollbar,
  22509. .textContent::-webkit-scrollbar {
  22510. /*滚动条整体样式*/
  22511. width: 6px;
  22512. /*高宽分别对应横竖滚动条的尺寸*/
  22513. height: 6px;
  22514. }
  22515. /*定义滚动条轨道 内阴影+圆角*/
  22516. .cru_selectBox::-webkit-scrollbar-track,
  22517. .study_top::-webkit-scrollbar-track,
  22518. .textContent::-webkit-scrollbar {
  22519. border-radius: 10px;
  22520. background-color: #b8bdc9;
  22521. }
  22522. /*定义滑块 内阴影+圆角*/
  22523. .cru_selectBox::-webkit-scrollbar-thumb,
  22524. .study_top::-webkit-scrollbar-thumb,
  22525. .textContent::-webkit-scrollbar-thumb {
  22526. border-radius: 10px;
  22527. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22528. background-color: #2c5ab3;
  22529. }
  22530. .vedioBox {
  22531. border-radius: 0 0 20px 20px;
  22532. background: #fff;
  22533. overflow: auto;
  22534. }
  22535. .taskBox {
  22536. width: 98%;
  22537. background: #f0f4fa;
  22538. margin: 10px auto;
  22539. padding: 0 10px;
  22540. border-radius: 4px;
  22541. box-sizing: border-box;
  22542. }
  22543. .vedioTaskBox {
  22544. width: 100%;
  22545. display: flex;
  22546. flex-direction: row;
  22547. flex-wrap: nowrap;
  22548. align-items: flex-start;
  22549. position: relative;
  22550. }
  22551. .toolBox {
  22552. margin: 15px 0 0 25px;
  22553. display: flex;
  22554. position: relative;
  22555. padding: 18px 20px;
  22556. border-top-left-radius: 5px;
  22557. border-top-right-radius: 5px;
  22558. width: 90%;
  22559. }
  22560. .btnAll {
  22561. position: absolute;
  22562. right: 0;
  22563. display: flex;
  22564. flex-direction: row;
  22565. flex-wrap: nowrap;
  22566. align-items: center;
  22567. }
  22568. .btnLeft,
  22569. .btnRight {
  22570. display: flex;
  22571. flex-direction: row;
  22572. flex-wrap: nowrap;
  22573. align-items: center;
  22574. padding: 5px 0;
  22575. }
  22576. .btnLeft {
  22577. border-right: 1px solid #cad1dc;
  22578. }
  22579. .btnLeft > .custom-tooltip {
  22580. background: #3681fc;
  22581. color: #fff;
  22582. }
  22583. .last:hover {
  22584. background: #3383fa !important;
  22585. color: #fff;
  22586. border: 1px solid #3383fa !important;
  22587. }
  22588. .last,
  22589. .returnBtn1 {
  22590. width: 90px;
  22591. height: 36px;
  22592. background: #ffffff;
  22593. border-radius: 4px;
  22594. border: 1px solid #0061ff;
  22595. color: #0061ff;
  22596. cursor: pointer;
  22597. display: flex;
  22598. flex-direction: row;
  22599. flex-wrap: nowrap;
  22600. align-items: center;
  22601. justify-content: center;
  22602. margin-left: 12px;
  22603. }
  22604. .returnBtn1 {
  22605. background: #f0f4fa;
  22606. border-radius: 4px;
  22607. border: 1px solid #cad1dc;
  22608. margin: 0 12px;
  22609. }
  22610. .lastImg {
  22611. min-width: 15px;
  22612. width: 15px;
  22613. height: 15px;
  22614. display: flex;
  22615. }
  22616. .lastText {
  22617. padding: 0 5px 0 5px;
  22618. box-sizing: border-box;
  22619. font-size: 14px;
  22620. }
  22621. .lastImg > img {
  22622. width: 100%;
  22623. height: 100%;
  22624. }
  22625. /* .vedioTimeBox {
  22626. display: flex;
  22627. flex-direction: row;
  22628. align-items: center;
  22629. flex-wrap: nowrap;
  22630. position: relative;
  22631. } */
  22632. .navBox {
  22633. background: #fff;
  22634. height: calc(100% - 40px);
  22635. overflow-y: auto;
  22636. overflow-x: hidden;
  22637. }
  22638. .worksBox {
  22639. margin: 0 0 10px 25px;
  22640. border-bottom: 1px solid #eeeeee;
  22641. padding: 18px 20px;
  22642. border-radius: 4px;
  22643. width: 90%;
  22644. }
  22645. .worksBTitle {
  22646. font-size: 20px;
  22647. padding-bottom: 15px;
  22648. border-bottom: 1px solid #eeeeee;
  22649. display: flex;
  22650. align-items: center;
  22651. }
  22652. .greenBox {
  22653. width: 5px;
  22654. height: 30px;
  22655. background: #63b6fa;
  22656. margin-right: 5px;
  22657. }
  22658. .worksDetailBox {
  22659. display: flex;
  22660. width: 100%;
  22661. flex-direction: row;
  22662. flex-wrap: wrap;
  22663. align-items: flex-end;
  22664. justify-content: flex-start;
  22665. padding: 15px 5px;
  22666. box-sizing: border-box;
  22667. }
  22668. .works {
  22669. display: flex;
  22670. flex-direction: column;
  22671. flex-wrap: nowrap;
  22672. align-items: flex-start;
  22673. justify-content: flex-start;
  22674. align-content: center;
  22675. max-width: 240px;
  22676. width: calc(100% / 3 - 10px);
  22677. height: auto;
  22678. margin-right: 10px;
  22679. margin-bottom: 10px;
  22680. overflow: hidden;
  22681. height: 140px;
  22682. box-shadow: 0 0 6px 1px #dfdada;
  22683. border-radius: 15px;
  22684. }
  22685. .workImg {
  22686. width: 100%;
  22687. /* height: calc(100% - 40px); */
  22688. height: 105px;
  22689. position: relative;
  22690. }
  22691. .workImg > img {
  22692. width: 100%;
  22693. height: 100%;
  22694. object-fit: contain;
  22695. cursor: pointer;
  22696. }
  22697. .worksName {
  22698. height: 40px;
  22699. line-height: 40px;
  22700. display: flex;
  22701. width: 100%;
  22702. flex-direction: row;
  22703. flex-wrap: nowrap;
  22704. justify-content: space-between;
  22705. align-items: center;
  22706. margin: 0 0 0 10px;
  22707. }
  22708. .worksName > div:nth-child(1) {
  22709. width: 110px;
  22710. white-space: nowrap;
  22711. overflow: hidden;
  22712. text-overflow: ellipsis;
  22713. }
  22714. .worksName > div:nth-child(2) {
  22715. color: #b7b4b5;
  22716. }
  22717. .noWorksS {
  22718. padding: 15px 0;
  22719. display: flex;
  22720. flex-direction: row;
  22721. flex-wrap: wrap;
  22722. align-items: center;
  22723. justify-content: flex-start;
  22724. }
  22725. .noWorksName,
  22726. .isWorksName,
  22727. .isWorksName2 {
  22728. background: #ddebf8;
  22729. color: #000;
  22730. width: 90px;
  22731. height: 25px;
  22732. text-align: center;
  22733. line-height: 25px;
  22734. border-radius: 4px;
  22735. margin: 10px 15px 10px 0;
  22736. white-space: nowrap;
  22737. overflow: hidden;
  22738. padding: 5px;
  22739. text-overflow: ellipsis;
  22740. cursor: pointer;
  22741. border: 1px solid #ddebf8;
  22742. }
  22743. .noWorksName {
  22744. background: #fff;
  22745. color: #0061ff;
  22746. border: 1px solid #0061ff;
  22747. }
  22748. .noWorksName > span{
  22749. max-width: 100%;
  22750. display: block;
  22751. overflow: hidden;
  22752. text-overflow: ellipsis;
  22753. white-space: nowrap;
  22754. }
  22755. .noWorksName2 {
  22756. background: #fff;
  22757. color: #0061ff;
  22758. width: 90px;
  22759. height: 25px;
  22760. text-align: center;
  22761. line-height: 25px;
  22762. border-radius: 4px;
  22763. margin: 10px 15px 10px 0;
  22764. white-space: nowrap;
  22765. overflow: hidden;
  22766. padding: 5px;
  22767. text-overflow: ellipsis;
  22768. cursor: pointer;
  22769. border: 1px solid #0061ff;
  22770. }
  22771. .noWorksName2 > span {
  22772. max-width: 100%;
  22773. display: block;
  22774. overflow: hidden;
  22775. text-overflow: ellipsis;
  22776. white-space: nowrap;
  22777. }
  22778. .isWorksName2 {
  22779. width: 100px;
  22780. height: 40px;
  22781. line-height: 40px;
  22782. position: relative;
  22783. background: #dae6f9;
  22784. }
  22785. .isWorksName {
  22786. background: #e7ebf1 !important;
  22787. width: 100px;
  22788. height: 40px;
  22789. line-height: 40px;
  22790. position: relative;
  22791. color: #acb4bf;
  22792. border: 1px solid #cad1dc !important;
  22793. }
  22794. .isSelectName,
  22795. .noWorksName:hover {
  22796. background: #3383fa !important;
  22797. color: #fff !important;
  22798. border: 1px solid #3383fa !important;
  22799. }
  22800. .title {
  22801. background: #1e5cc9;
  22802. /* width: 98%; */
  22803. height: 45px;
  22804. color: #fff;
  22805. line-height: 45px;
  22806. padding-left: 20px;
  22807. box-sizing: border-box;
  22808. }
  22809. .textBox {
  22810. font-size: 20px;
  22811. width: 90%;
  22812. display: flex;
  22813. flex-direction: column;
  22814. align-items: center;
  22815. margin: 20px auto 0;
  22816. max-height: calc(100% - 75px);
  22817. overflow: auto;
  22818. }
  22819. .textContent {
  22820. font-size: 18px;
  22821. width: 95%;
  22822. max-width: 95%;
  22823. }
  22824. .answerBg {
  22825. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  22826. background-size: 100% 100%;
  22827. width: 100%;
  22828. height: 100%;
  22829. color: #fff;
  22830. text-align: center;
  22831. display: flex;
  22832. flex-direction: column;
  22833. flex-wrap: nowrap;
  22834. align-items: center;
  22835. position: relative;
  22836. justify-content: center;
  22837. }
  22838. /* .answerBg > div:nth-child(1) {
  22839. font-size: 22px;
  22840. padding: 25px 0 10px;
  22841. } */
  22842. .answerContent {
  22843. width: 215px;
  22844. max-height: 60px;
  22845. word-break: break-all;
  22846. text-align: center;
  22847. /* white-space: nowrap; */
  22848. overflow: hidden;
  22849. text-overflow: ellipsis;
  22850. /* padding: 23px 0 0; */
  22851. -webkit-line-clamp: 3;
  22852. -webkit-box-orient: vertical;
  22853. display: -webkit-box;
  22854. font-size: 15px;
  22855. cursor: pointer;
  22856. }
  22857. .elist_input_box {
  22858. display: flex;
  22859. align-items: flex-start;
  22860. flex-wrap: nowrap;
  22861. padding: 10px 0 15px 30px;
  22862. flex-direction: column;
  22863. }
  22864. .elist_input {
  22865. /* width: 40%; */
  22866. width: 45%;
  22867. margin: 20px;
  22868. }
  22869. .elist_input .elist_input_box input {
  22870. font: inherit;
  22871. color: currentColor;
  22872. width: 200px;
  22873. padding: 8px 14px;
  22874. display: block;
  22875. min-width: 0;
  22876. outline: none;
  22877. border: 1px solid rgba(0, 0, 0, 0.23);
  22878. border-radius: 4px;
  22879. box-sizing: border-box;
  22880. background: #fff;
  22881. margin: 0 20px 0 0;
  22882. }
  22883. .elist_input .elist_input_box span {
  22884. height: 36px;
  22885. line-height: 36px;
  22886. color: rgb(82, 82, 82);
  22887. }
  22888. .elist_input .elist_input_box .remove {
  22889. height: 20px;
  22890. width: 20px;
  22891. background-size: 100% 100%;
  22892. background-position: unset;
  22893. margin-left: 5px;
  22894. }
  22895. .elist_input_box >>> .el-rate {
  22896. display: flex;
  22897. height: 36px;
  22898. align-items: center;
  22899. }
  22900. .elist_input_box .elist_inptu_text {
  22901. min-height: 50px;
  22902. /* width: 500px;
  22903. max-height: 150px; */
  22904. width: 100%;
  22905. line-height: 50px;
  22906. color: rgb(82, 82, 82);
  22907. overflow: auto;
  22908. text-indent: 5px;
  22909. background: #f7f6f9;
  22910. border-radius: 10px;
  22911. }
  22912. .elist_input_box .elist_inptu_text input {
  22913. width: 500px;
  22914. }
  22915. .elist_input_box >>> .el-rate__icon {
  22916. font-size: 24px;
  22917. }
  22918. .isClick {
  22919. background: #4d9def;
  22920. }
  22921. .bzBox {
  22922. display: flex;
  22923. flex-direction: row;
  22924. align-items: center;
  22925. }
  22926. .bzBox .yCss {
  22927. width: 7px;
  22928. height: 7px;
  22929. background: #fff;
  22930. margin: 0 16px 0 6px;
  22931. border-radius: 50%;
  22932. border: 5px solid #3681fc;
  22933. z-index: 99;
  22934. }
  22935. .bzBox > div:nth-child(2) {
  22936. font-size: 18px;
  22937. font-weight: bold;
  22938. color: #0e1e33;
  22939. }
  22940. .navTitile {
  22941. padding: 0 0px 0 15px;
  22942. font-size: 16px;
  22943. font-weight: bold;
  22944. color: #0e1e33;
  22945. height: 40px;
  22946. line-height: 40px;
  22947. }
  22948. .isTypeOne {
  22949. width: 240px;
  22950. height: 170px;
  22951. /* border: 1px solid #f8f8f8; */
  22952. border-radius: 10px;
  22953. box-shadow: 0 0 6px 1px #dfdada;
  22954. }
  22955. .e_add_top {
  22956. display: flex;
  22957. justify-content: space-between;
  22958. padding: 10px 20px;
  22959. border-radius: 3px;
  22960. background: #fff;
  22961. }
  22962. .e_add_title2 {
  22963. display: flex;
  22964. align-items: center;
  22965. }
  22966. .e_add_title2 span {
  22967. width: 40px;
  22968. }
  22969. .e_add_title {
  22970. display: flex;
  22971. align-items: center;
  22972. color: #b8b8b8;
  22973. font-size: 18px;
  22974. position: relative;
  22975. height: 40px;
  22976. }
  22977. .e_add_title span {
  22978. margin-right: 10px;
  22979. }
  22980. .e_add_title .el_input {
  22981. width: 300px;
  22982. }
  22983. .e_add_title >>> .el-input__inner {
  22984. width: 400px;
  22985. }
  22986. /* .e_add_btn {
  22987. } */
  22988. .e_add_content {
  22989. display: flex;
  22990. width: 100%;
  22991. max-width: 650px;
  22992. height: 550px;
  22993. }
  22994. .e_add_list {
  22995. background: #fff;
  22996. height: 500px;
  22997. width: 210px;
  22998. position: relative;
  22999. margin: 15px 5px 0 0;
  23000. flex-shrink: 0;
  23001. display: flex;
  23002. flex-direction: column;
  23003. }
  23004. .e_add_list_title {
  23005. font-size: 20px;
  23006. width: 100%;
  23007. box-sizing: border-box;
  23008. padding: 15px 40px;
  23009. text-align: center;
  23010. border-bottom: 1px solid #eaeaea;
  23011. position: relative;
  23012. display: flex;
  23013. align-items: center;
  23014. justify-content: center;
  23015. height: 57px;
  23016. background: #f6f6f6;
  23017. }
  23018. .e_add_list_title span {
  23019. overflow: hidden;
  23020. white-space: nowrap;
  23021. text-overflow: ellipsis;
  23022. }
  23023. .e_add_list_title img {
  23024. position: absolute;
  23025. right: 15px;
  23026. width: 25px;
  23027. cursor: pointer;
  23028. top: 50%;
  23029. transform: translateY(-50%);
  23030. }
  23031. .e_add_list_body {
  23032. height: calc(100% - 187px);
  23033. overflow: auto;
  23034. }
  23035. .e_add_list_child {
  23036. width: 100%;
  23037. display: flex;
  23038. align-items: center;
  23039. justify-content: center;
  23040. position: relative;
  23041. box-sizing: border-box;
  23042. padding: 15px 40px;
  23043. text-align: center;
  23044. }
  23045. .e_add_list_child span {
  23046. overflow: hidden;
  23047. white-space: nowrap;
  23048. text-overflow: ellipsis;
  23049. cursor: pointer;
  23050. }
  23051. .e_add_list_child img {
  23052. position: absolute;
  23053. right: 10px;
  23054. width: 21px;
  23055. cursor: pointer;
  23056. top: 50%;
  23057. transform: translateY(-50%);
  23058. }
  23059. .e_add_list_child + .e_add_list_child {
  23060. border-top: 1px solid #eaeaea;
  23061. }
  23062. .e_add_list_child .active {
  23063. color: #409eff;
  23064. }
  23065. .e_add_list_btn {
  23066. position: absolute;
  23067. bottom: 0;
  23068. height: 50px;
  23069. background: rgb(120, 120, 254);
  23070. width: 100%;
  23071. color: #fff;
  23072. font-size: 16px;
  23073. text-align: center;
  23074. line-height: 50px;
  23075. cursor: pointer;
  23076. }
  23077. .e_add_list_detail {
  23078. position: absolute;
  23079. bottom: 0;
  23080. height: 130px;
  23081. background: rgb(120, 120, 254);
  23082. width: 100%;
  23083. color: #fff;
  23084. font-size: 16px;
  23085. display: flex;
  23086. align-items: center;
  23087. justify-content: center;
  23088. }
  23089. .e_add_list_detail textarea {
  23090. height: 90%;
  23091. width: 95%;
  23092. border: none;
  23093. resize: none;
  23094. outline: none;
  23095. padding: 5px;
  23096. box-sizing: border-box;
  23097. }
  23098. .e_add_list_pbox {
  23099. width: 100%;
  23100. max-width: 650px;
  23101. /* height: 600px; */
  23102. }
  23103. .e_add_list_pbox_title {
  23104. height: 50px;
  23105. background: #fff;
  23106. display: flex;
  23107. align-items: center;
  23108. width: 100%;
  23109. box-sizing: border-box;
  23110. padding: 0 20px;
  23111. }
  23112. .type_title {
  23113. font-size: 18px;
  23114. font-weight: 700;
  23115. }
  23116. .type_content {
  23117. font-size: 16px;
  23118. /* margin-left: 30px; */
  23119. }
  23120. .type_content span + span {
  23121. margin-left: 20px;
  23122. }
  23123. .type_content span {
  23124. cursor: pointer;
  23125. padding-bottom: 5px;
  23126. box-sizing: border-box;
  23127. }
  23128. .type_content .active {
  23129. color: #409eff;
  23130. border-bottom: 2px solid #409eff;
  23131. }
  23132. .e_add_list_pbox_content {
  23133. height: calc(100% - 50px);
  23134. display: flex;
  23135. align-items: center;
  23136. width: 100%;
  23137. background: #fff;
  23138. }
  23139. .evaCss {
  23140. display: flex;
  23141. flex-direction: row;
  23142. flex-wrap: nowrap;
  23143. align-items: flex-start;
  23144. padding: 0 0 20px;
  23145. }
  23146. .cru_line {
  23147. position: absolute;
  23148. bottom: 0px;
  23149. transition: all 0.5s;
  23150. left: 0px;
  23151. width: 125px;
  23152. margin-left: -25px;
  23153. }
  23154. .isNoMessage {
  23155. width: 20%;
  23156. margin: 25% auto 0;
  23157. }
  23158. .isNoMessage > img {
  23159. width: 100%;
  23160. height: 100%;
  23161. }
  23162. .fullStyle >>> .el-dialog__body {
  23163. height: 100% !important;
  23164. }
  23165. .fullStyle >>> .el-dialog,
  23166. .fullStyle {
  23167. width: 100% !important;
  23168. max-width: 100% !important;
  23169. height: 100% !important;
  23170. margin: 0 !important;
  23171. }
  23172. .full_diy >>> .el-dialog {
  23173. margin: 0 !important;
  23174. height: 100%;
  23175. padding: 4px;
  23176. }
  23177. .full_diy >>> .el-dialog__body {
  23178. height: calc(100% - 100px);
  23179. }
  23180. .full_diy2 >>> .el-dialog__body {
  23181. height: calc(100% - 50px);
  23182. padding: 0;
  23183. }
  23184. .switchCss {
  23185. /* width: 100%; */
  23186. display: flex;
  23187. flex-direction: row;
  23188. flex-wrap: nowrap;
  23189. align-items: center;
  23190. /* justify-content: center; */
  23191. }
  23192. .isClickNav {
  23193. /* color: #499eef; */
  23194. color: #000;
  23195. }
  23196. .commentImg {
  23197. width: 25px;
  23198. height: 25px;
  23199. cursor: pointer;
  23200. }
  23201. .commentImg > img {
  23202. width: 100%;
  23203. height: 100%;
  23204. }
  23205. .comment {
  23206. background: #f9f9f9;
  23207. border-radius: 0 0 4px 4px;
  23208. display: flex;
  23209. flex-direction: row;
  23210. flex-wrap: nowrap;
  23211. align-items: center;
  23212. justify-content: flex-end;
  23213. height: 35px;
  23214. }
  23215. .commentList {
  23216. display: flex;
  23217. flex-direction: row;
  23218. flex-wrap: nowrap;
  23219. align-items: center;
  23220. justify-content: center;
  23221. align-content: center;
  23222. /* margin-left: 15px; */
  23223. /* margin-left: 8px; */
  23224. }
  23225. .scoreImg {
  23226. width: 17px;
  23227. height: 17px;
  23228. }
  23229. .studentDetail {
  23230. display: flex;
  23231. flex-direction: row;
  23232. flex-wrap: nowrap;
  23233. /* align-items: center; */
  23234. align-items: flex-start;
  23235. }
  23236. .tx {
  23237. width: 50px;
  23238. }
  23239. .tx > img {
  23240. width: 100%;
  23241. height: 100%;
  23242. }
  23243. .nameAndTime {
  23244. display: flex;
  23245. flex-direction: column;
  23246. flex-wrap: nowrap;
  23247. align-items: flex-start;
  23248. margin-left: 10px;
  23249. }
  23250. .worksAnswer {
  23251. color: #4078dd;
  23252. margin: 10px 0;
  23253. font-size: 16px;
  23254. position: relative;
  23255. }
  23256. .worksAnswer > img {
  23257. width: 500px;
  23258. height: 300px;
  23259. object-fit: contain;
  23260. margin: 0 auto;
  23261. display: block;
  23262. }
  23263. .commentTop {
  23264. border-bottom: 1px solid #eaeaea;
  23265. padding-bottom: 10px;
  23266. }
  23267. .commentBox {
  23268. padding-top: 15px;
  23269. }
  23270. .pl {
  23271. font-size: 18px;
  23272. }
  23273. .plPerson {
  23274. width: 100%;
  23275. }
  23276. .plName {
  23277. display: flex;
  23278. flex-direction: row;
  23279. flex-wrap: nowrap;
  23280. align-items: baseline;
  23281. color: #78787a;
  23282. width: 100%;
  23283. }
  23284. .deleteComment {
  23285. cursor: pointer;
  23286. margin-left: auto;
  23287. color: #237ade;
  23288. }
  23289. .plContent {
  23290. margin-top: 5px;
  23291. }
  23292. .evalCss {
  23293. background: #fff;
  23294. font-size: 18px;
  23295. }
  23296. .nav {
  23297. color: #9d9d9d;
  23298. padding: 5px 0 15px 20px;
  23299. }
  23300. .middleBox {
  23301. padding: 5px 0 15px 20px;
  23302. }
  23303. .pfBox {
  23304. padding-bottom: 30px;
  23305. }
  23306. .nameAndrate {
  23307. display: flex;
  23308. flex-direction: row;
  23309. flex-wrap: nowrap;
  23310. align-items: center;
  23311. padding-bottom: 10px;
  23312. height: 30px;
  23313. line-height: 30px;
  23314. }
  23315. .nameAndrate > div {
  23316. margin-left: 10px;
  23317. color: #000;
  23318. height: 30px;
  23319. }
  23320. .nameAndrate >>> .el-rate__icon {
  23321. font-size: 28px !important;
  23322. }
  23323. .pfBox > div:nth-child(2) {
  23324. background: #f7f6f9;
  23325. width: 400px;
  23326. min-height: 45px;
  23327. border-radius: 10px;
  23328. font-size: 16px;
  23329. display: flex;
  23330. flex-wrap: wrap;
  23331. align-items: center;
  23332. padding: 10px 20px;
  23333. box-sizing: border-box;
  23334. color: #000;
  23335. }
  23336. .bz {
  23337. display: flex;
  23338. flex-direction: row;
  23339. flex-wrap: nowrap;
  23340. align-items: flex-start;
  23341. }
  23342. .bz > div {
  23343. padding: 0 10px;
  23344. }
  23345. .select_box2_title {
  23346. background: #fff;
  23347. border-radius: 5px;
  23348. padding: 15px 10px;
  23349. box-sizing: border-box;
  23350. margin-bottom: 10px;
  23351. display: flex;
  23352. flex-direction: row;
  23353. flex-wrap: nowrap;
  23354. align-items: center;
  23355. }
  23356. .select_box2_title > div:nth-child(2) {
  23357. margin-left: 10px;
  23358. color: #c4c4c4;
  23359. }
  23360. .select_box2_box {
  23361. display: flex;
  23362. height: 500px;
  23363. }
  23364. .select_box2_img {
  23365. width: calc(100% - 310px);
  23366. height: 100%;
  23367. overflow: auto;
  23368. background: #fff;
  23369. border-radius: 5px;
  23370. }
  23371. .select_box2_img img {
  23372. width: 100%;
  23373. }
  23374. .select_box2_answer {
  23375. background: #fff;
  23376. margin-left: 10px;
  23377. border-radius: 5px;
  23378. width: 300px;
  23379. overflow: auto;
  23380. height: 90%;
  23381. display: flex;
  23382. flex-direction: column;
  23383. align-items: flex-start;
  23384. padding-top: 10px;
  23385. box-sizing: border-box;
  23386. position: relative;
  23387. }
  23388. .select_answer_title {
  23389. padding: 0 0 15px 20px;
  23390. color: #c4c4c4;
  23391. }
  23392. .select_box2_answer_box {
  23393. margin: 0 0 10px 20px;
  23394. width: 85%;
  23395. display: flex;
  23396. flex-direction: row;
  23397. flex-wrap: nowrap;
  23398. align-items: center;
  23399. }
  23400. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23401. color: #000;
  23402. }
  23403. .upAnswerCss {
  23404. position: absolute;
  23405. bottom: 15px;
  23406. right: 15px;
  23407. }
  23408. .upAnswerCss >>> .el-button {
  23409. width: 95px;
  23410. height: 35px;
  23411. line-height: 35px;
  23412. padding: 0;
  23413. }
  23414. .rightWidthCss {
  23415. width: 60%;
  23416. display: flex;
  23417. flex-direction: row;
  23418. align-items: flex-start;
  23419. }
  23420. .rightAnswer {
  23421. display: flex;
  23422. flex-direction: row;
  23423. flex-wrap: nowrap;
  23424. align-items: center;
  23425. color: red;
  23426. margin-bottom: 31px;
  23427. }
  23428. .rightAnswerCss {
  23429. display: flex;
  23430. flex-direction: column;
  23431. flex-wrap: nowrap;
  23432. padding-top: 60px;
  23433. }
  23434. .blueCss {
  23435. color: #767de1;
  23436. margin-left: 10px;
  23437. }
  23438. .redCss {
  23439. color: red;
  23440. }
  23441. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23442. color: rgb(0 123 255) !important;
  23443. }
  23444. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23445. color: rgb(0 123 255) !important;
  23446. }
  23447. .zuoyeYulan {
  23448. padding-top: 0;
  23449. font-size: 18px;
  23450. display: flex;
  23451. align-items: flex-end;
  23452. }
  23453. .buttonA {
  23454. margin-left: 10px;
  23455. padding: 0;
  23456. }
  23457. .displayBox {
  23458. margin-bottom: 10px;
  23459. display: block;
  23460. border-bottom: 3px solid #eee;
  23461. display: flex;
  23462. align-items: center;
  23463. }
  23464. .easy_comment {
  23465. width: calc(100% - 90px);
  23466. margin-left: 10px;
  23467. display: flex;
  23468. flex-wrap: wrap;
  23469. }
  23470. .easy_comment > div {
  23471. border: 1px solid #4a4a4a;
  23472. color: #666;
  23473. border-radius: 15px;
  23474. padding: 5px 10px;
  23475. font-size: 16px;
  23476. margin-bottom: 10px;
  23477. margin-right: 5px;
  23478. cursor: pointer;
  23479. }
  23480. .easy_comment div:hover {
  23481. border: 1px solid #f7ba2a;
  23482. color: #c69217;
  23483. }
  23484. .xuan_right_box {
  23485. padding: 10px 0;
  23486. background: #f0f4fa;
  23487. margin: 0 15px 0 25px;
  23488. border-bottom-left-radius: 5px;
  23489. border-bottom-right-radius: 5px;
  23490. width: 91.5%;
  23491. }
  23492. .tool_right_box {
  23493. display: flex;
  23494. align-items: center;
  23495. }
  23496. .tool_right_box + .tool_right_box {
  23497. margin-top: 10px;
  23498. }
  23499. .right_box_xuan {
  23500. border-radius: 5px;
  23501. padding: 5px;
  23502. margin-left: 10px;
  23503. min-width: 95px;
  23504. background: #fff;
  23505. color: #0061ff;
  23506. border: 1px solid #0061ff;
  23507. font-size: 14px;
  23508. }
  23509. .pButton:hover {
  23510. opacity: 1 !important;
  23511. }
  23512. .pButton {
  23513. position: fixed;
  23514. text-align: center;
  23515. cursor: pointer;
  23516. z-index: 999;
  23517. right: 20px;
  23518. top: 110px;
  23519. width: 50px;
  23520. height: 50px;
  23521. display: flex;
  23522. align-items: center;
  23523. justify-content: center;
  23524. border-radius: 5px;
  23525. }
  23526. .pzClass {
  23527. width: calc(100% - 340px);
  23528. }
  23529. .newDialogCss {
  23530. /* position: fixed;
  23531. right: 5%;
  23532. top: 50%;
  23533. width: 340px;
  23534. transform: translateY(-50%);
  23535. height: 60%;
  23536. box-shadow: 0px 0 8px 0px #555555;
  23537. border-radius: 15px;
  23538. z-index: 999; */
  23539. position: fixed;
  23540. right: 20px;
  23541. top: 101px;
  23542. width: 330px;
  23543. height: calc(100% - 80px);
  23544. z-index: 999;
  23545. background: #fff;
  23546. border-top-right-radius: 0px;
  23547. border-bottom-right-radius: 0px;
  23548. overflow: hidden;
  23549. }
  23550. .newDialogCss>.scoreList{
  23551. width:100%;
  23552. height:100%;
  23553. box-sizing:border-box;
  23554. padding:10px 15px;
  23555. overflow:auto;
  23556. padding-bottom:80px;
  23557. }
  23558. .pzTop {
  23559. color: #fff;
  23560. background: #000;
  23561. display: flex;
  23562. flex-direction: row;
  23563. flex-wrap: nowrap;
  23564. align-items: center;
  23565. justify-content: space-between;
  23566. height: 40px;
  23567. border-radius: 15px 15px 0 0;
  23568. user-select: none;
  23569. }
  23570. .pzTop2 .checkbox {
  23571. display: flex;
  23572. align-items: center;
  23573. padding: 5px 10px;
  23574. flex: 0 0 auto;
  23575. font-weight: bold;
  23576. border-bottom: 1px solid #eee;
  23577. justify-content: space-between;
  23578. }
  23579. .checkbox>.cb-tabList{
  23580. display:flex;
  23581. align-items:center;
  23582. }
  23583. .cb-tabList>div{
  23584. margin-right:20px;
  23585. font-weight:400;
  23586. cursor:pointer;
  23587. }
  23588. .cb-tabList>.cb-tabItem{
  23589. color:#1684FC;
  23590. position:relative;
  23591. }
  23592. .cb-tabItem::after{
  23593. content:"";
  23594. width:100%;
  23595. height:2px;
  23596. background:#1684FC;
  23597. position:absolute;
  23598. bottom:-5px;
  23599. left:0
  23600. }
  23601. .pzTop2 .check {
  23602. text-align: center;
  23603. cursor: pointer;
  23604. box-sizing: border-box;
  23605. display: flex;
  23606. }
  23607. .pzTop2 img {
  23608. width: 25px;
  23609. cursor: pointer;
  23610. }
  23611. .pzTop > div:nth-child(1) {
  23612. padding-left: 10px;
  23613. }
  23614. .pzTop > div:nth-child(2) {
  23615. width: 15px;
  23616. height: 15px;
  23617. padding-right: 10px;
  23618. cursor: pointer;
  23619. }
  23620. .pzTop > div:nth-child(2) > img {
  23621. width: 100%;
  23622. height: 100%;
  23623. }
  23624. .pzBox,
  23625. .noPzBox {
  23626. height: calc(100% - 60px);
  23627. /* background: #ededed; */
  23628. background: #fff;
  23629. /* border-radius: 0 0 15px 15px; */
  23630. }
  23631. .noPzBox {
  23632. display: flex;
  23633. flex-direction: column;
  23634. flex-wrap: nowrap;
  23635. justify-content: center;
  23636. align-items: center;
  23637. }
  23638. .pzList {
  23639. background: #f7f7f7;
  23640. width: 90%;
  23641. margin: 0 auto 15px;
  23642. border-radius: 5px;
  23643. }
  23644. .pzNavTop {
  23645. display: flex;
  23646. flex-direction: row;
  23647. flex-wrap: nowrap;
  23648. padding: 10px 10px 0 10px;
  23649. align-items: center;
  23650. }
  23651. .pzDelete {
  23652. cursor: pointer;
  23653. margin-left: auto;
  23654. font-size: 14px;
  23655. color: #afafaf;
  23656. }
  23657. .pzNavTop > div:nth-child(1) {
  23658. background: #3760af;
  23659. width: 35px;
  23660. height: 35px;
  23661. color: #fff;
  23662. text-align: center;
  23663. line-height: 35px;
  23664. border-radius: 50%;
  23665. font-size: 14px;
  23666. }
  23667. .pzNavTop > div:nth-child(2) {
  23668. font-size: 18px;
  23669. color: #959595;
  23670. margin-left: 5px;
  23671. }
  23672. .pzContent {
  23673. padding: 10px;
  23674. word-break: break-word;
  23675. }
  23676. .pzContent audio {
  23677. width: 100%;
  23678. }
  23679. .pzContent audio::-webkit-media-controls-panel {
  23680. background: #fff;
  23681. }
  23682. .pzContent >>> img {
  23683. max-width: 100%;
  23684. }
  23685. .pzListBox {
  23686. padding-top: 15px;
  23687. height: calc(100% - 110px);
  23688. overflow: auto;
  23689. }
  23690. .addPzButton {
  23691. position: relative;
  23692. margin-top: 3px;
  23693. width: 100%;
  23694. }
  23695. .addPzButton .img1 {
  23696. position: absolute;
  23697. top: 50%;
  23698. right: 25px;
  23699. transform: translateY(-50%);
  23700. height: 100%;
  23701. display: flex;
  23702. align-items: center;
  23703. }
  23704. .addPzButton .img1 div {
  23705. display: flex;
  23706. }
  23707. .addPzButton .img1 div img {
  23708. width: 28px;
  23709. margin-left: 10px;
  23710. cursor: pointer;
  23711. }
  23712. .addPzButton .img1 div span {
  23713. font-size: 14px;
  23714. margin: 4px 0 0 3px;
  23715. color: #afafaf;
  23716. }
  23717. .addPz {
  23718. background: #4b79ce;
  23719. width: 100px;
  23720. color: #fff;
  23721. font-size: 12px;
  23722. height: 30px;
  23723. margin: 0 auto;
  23724. text-align: center;
  23725. line-height: 30px;
  23726. border-radius: 10px;
  23727. cursor: pointer;
  23728. }
  23729. .addDialogCss {
  23730. position: fixed;
  23731. width: 600px;
  23732. height: 70%;
  23733. min-height: 450px;
  23734. box-shadow: 0px 0 8px 0px #555555;
  23735. border-radius: 15px;
  23736. z-index: 999;
  23737. left: 50%;
  23738. top: 50%;
  23739. margin: -18% 0 0 -300px;
  23740. }
  23741. .teacherPz {
  23742. display: flex;
  23743. flex-direction: row;
  23744. align-items: center;
  23745. flex-wrap: nowrap;
  23746. }
  23747. .teacherPzImg {
  23748. width: 30px;
  23749. height: 30px;
  23750. }
  23751. .teacherPzImg > img {
  23752. width: 100%;
  23753. height: 100%;
  23754. }
  23755. .addPzBox {
  23756. height: calc(100% - 40px);
  23757. background: #ededed;
  23758. border-bottom-left-radius: 15px;
  23759. border-bottom-right-radius: 15px;
  23760. }
  23761. .pzAudioClass {
  23762. margin: 15px 14px;
  23763. background: #fff;
  23764. height: 100%;
  23765. display: flex;
  23766. justify-content: center;
  23767. align-items: center;
  23768. }
  23769. .pzConText {
  23770. width: 95%;
  23771. height: 100%;
  23772. margin: 10px auto 0;
  23773. border: none;
  23774. background: #fff;
  23775. border-radius: 0px;
  23776. }
  23777. .pzConText >>> .text {
  23778. height: calc(100% - 82px);
  23779. }
  23780. .addTextCss {
  23781. background: #4b79ce;
  23782. width: 80px;
  23783. height: 30px;
  23784. text-align: center;
  23785. color: #fff;
  23786. line-height: 30px;
  23787. border-radius: 10px;
  23788. margin: 10px auto 0;
  23789. cursor: pointer;
  23790. }
  23791. .pzConText:focus-visible {
  23792. border: none !important;
  23793. }
  23794. .maxWidth {
  23795. width: 1000px;
  23796. }
  23797. .noPz {
  23798. width: 150px;
  23799. margin: 0 auto 20%;
  23800. }
  23801. .noPz > img {
  23802. width: 100%;
  23803. height: 100%;
  23804. }
  23805. .timeAndReply {
  23806. display: flex;
  23807. flex-direction: row;
  23808. flex-wrap: nowrap;
  23809. justify-content: space-between;
  23810. align-items: center;
  23811. font-size: 14px;
  23812. box-sizing: border-box;
  23813. padding: 0 10px 10px 0px;
  23814. }
  23815. .timeAndReply .time {
  23816. color: #bfbfbf;
  23817. padding: 0 0 0 10px;
  23818. box-sizing: border-box;
  23819. }
  23820. .timeAndReply > div:last-child {
  23821. cursor: pointer;
  23822. color: #777;
  23823. }
  23824. /* table 样式 */
  23825. .cont >>> table {
  23826. border-top: 1px solid #ccc;
  23827. border-left: 1px solid #ccc;
  23828. }
  23829. .cont >>> table td,
  23830. .cont >>> table th {
  23831. border-bottom: 1px solid #ccc;
  23832. border-right: 1px solid #ccc;
  23833. /* padding: 20px 5px; */
  23834. padding: 5px 10px;
  23835. max-width: 0px;
  23836. height: 30px;
  23837. vertical-align: baseline;
  23838. box-sizing: border-box;
  23839. }
  23840. .cont >>> table th {
  23841. border-bottom: 2px solid #ccc;
  23842. text-align: center;
  23843. }
  23844. /* blockquote 样式 */
  23845. .cont >>> blockquote {
  23846. display: block;
  23847. border-left: 8px solid #d0e5f2;
  23848. padding: 5px 10px;
  23849. margin: 10px 0;
  23850. line-height: 1.4;
  23851. font-size: 100%;
  23852. background-color: #f1f1f1;
  23853. }
  23854. /* code 样式 */
  23855. .cont >>> code {
  23856. display: inline-block;
  23857. /* *display: inline; */
  23858. zoom: 1;
  23859. background-color: #f1f1f1;
  23860. border-radius: 3px;
  23861. padding: 3px 5px;
  23862. margin: 0 3px;
  23863. }
  23864. .cont >>> pre code {
  23865. display: block;
  23866. }
  23867. /* ul ol 样式 */
  23868. .cont >>> ul,
  23869. ol {
  23870. margin: 10px 0 10px 20px;
  23871. }
  23872. .addPzCheck {
  23873. display: flex;
  23874. flex-direction: row;
  23875. flex-wrap: nowrap;
  23876. padding: 10px 15px 0;
  23877. }
  23878. .addPzCheck span {
  23879. cursor: pointer;
  23880. padding-bottom: 5px;
  23881. font-weight: bold;
  23882. }
  23883. .addPzCheck span + span {
  23884. margin-left: 10px;
  23885. }
  23886. .addPzCheck .isChooseActive {
  23887. color: #3e88f4;
  23888. border-bottom: 2px solid #2f80f3;
  23889. }
  23890. /* code 样式 */
  23891. .cont {
  23892. /* -webkit-user-modify: read-write; */
  23893. overflow-wrap: break-word;
  23894. -webkit-line-break: after-white-space;
  23895. word-break: break-word;
  23896. white-space: pre-line;
  23897. }
  23898. .scoreBox,
  23899. .scoreDetailBox {
  23900. display: flex;
  23901. align-items: center;
  23902. justify-content: flex-start;
  23903. margin-top: 20px;
  23904. font-size: 18px;
  23905. width: 100%;
  23906. }
  23907. .scoreBox .t,
  23908. .scoreDetailBox .t {
  23909. margin-right: 10px;
  23910. min-width:100px;
  23911. text-align: right;
  23912. }
  23913. .scoreDetailBox {
  23914. align-items: flex-start;
  23915. }
  23916. .scoreDetailBox >>> .el-textarea {
  23917. width: calc(100% - 200px);
  23918. }
  23919. .scoreBox >>> .el-input {
  23920. width: 130px;
  23921. font-size: 38px;
  23922. }
  23923. .scoreBox >>> .el-input__inner {
  23924. height: 60px;
  23925. }
  23926. .answerScore {
  23927. position: absolute;
  23928. top: 10px;
  23929. right: 10px;
  23930. background: #0000008f;
  23931. border-radius: 5px;
  23932. padding: 3px 5px;
  23933. font-size: 14px;
  23934. color: #fff;
  23935. cursor: pointer;
  23936. }
  23937. .open_box .switch_box {
  23938. width: 100%;
  23939. margin: 0 auto;
  23940. display: flex;
  23941. justify-content: space-between;
  23942. }
  23943. .open_box .switch_box + .switch_box {
  23944. margin-top: 10px;
  23945. }
  23946. .deleteImg,.deleteImg1 {
  23947. width: 25px !important;
  23948. height: 25px !important;
  23949. cursor: pointer;
  23950. position: absolute;
  23951. top: 10px;
  23952. right: 10px;
  23953. }
  23954. .deleteImg2 {
  23955. width: 23px !important;
  23956. height: 23px !important;
  23957. top: 5px;
  23958. right: 5px;
  23959. }
  23960. .deleteImg1{
  23961. width: 23px !important;
  23962. height: 23px !important;
  23963. top: 5px !important;
  23964. right: 30px !important;
  23965. }
  23966. .rightW {
  23967. right: 40px;
  23968. }
  23969. .drawPBox {
  23970. display: flex;
  23971. flex-direction: column;
  23972. position: relative;
  23973. }
  23974. .drawPBox span {
  23975. font-size: 18px;
  23976. color: #606266;
  23977. padding-bottom: 10px;
  23978. margin: 10px 0;
  23979. border-bottom: 1px solid #eaeaea;
  23980. }
  23981. .drawPBox img {
  23982. width: 500px;
  23983. height: 300px;
  23984. object-fit: contain;
  23985. cursor: pointer;
  23986. margin: 0 auto;
  23987. }
  23988. .sentenBox {
  23989. background: #fff;
  23990. height: 450px;
  23991. overflow: auto;
  23992. background-image: url("../../assets/icon/conSentences/stuBg.png");
  23993. background-position: 102%;
  23994. background-repeat: no-repeat;
  23995. background-size: 60%;
  23996. }
  23997. .addSen {
  23998. background: #409efe;
  23999. width: 90px;
  24000. color: #fff;
  24001. height: 35px;
  24002. text-align: center;
  24003. line-height: 35px;
  24004. border-radius: 5px;
  24005. float: right;
  24006. margin: 10px 20px 0 0;
  24007. cursor: pointer;
  24008. }
  24009. .sentenTop {
  24010. display: flex;
  24011. flex-direction: row;
  24012. flex-wrap: nowrap;
  24013. align-items: center;
  24014. padding: 55px 0 0 20px;
  24015. box-sizing: border-box;
  24016. }
  24017. .sentenTop > div:nth-child(2) {
  24018. width: 300px;
  24019. margin: 0 15px;
  24020. }
  24021. .sentenTop > div:nth-child(3) {
  24022. background: #409efe;
  24023. color: #fff;
  24024. width: 65px;
  24025. height: 35px;
  24026. text-align: center;
  24027. line-height: 35px;
  24028. border-radius: 5px;
  24029. cursor: pointer;
  24030. }
  24031. .cardList,
  24032. .cardList1 {
  24033. padding: 10px 0 10px 0;
  24034. display: flex;
  24035. flex-direction: row;
  24036. flex-wrap: wrap;
  24037. align-items: center;
  24038. box-sizing: border-box;
  24039. border-bottom: 1px solid #f4f4f4;
  24040. width: 98%;
  24041. margin: 0 auto;
  24042. min-width: 60%;
  24043. max-width: 85%;
  24044. }
  24045. .cardList1 {
  24046. padding: 10px 0 10px 10px !important;
  24047. margin: 0 !important;
  24048. }
  24049. .cardBox {
  24050. display: flex;
  24051. flex-direction: row;
  24052. flex-wrap: wrap;
  24053. align-items: center;
  24054. align-content: center;
  24055. }
  24056. .cardBox > div {
  24057. margin-bottom: 10px;
  24058. }
  24059. .isCard,
  24060. .isChooseCard,
  24061. .noCard,
  24062. .isCard1 {
  24063. min-width: 130px;
  24064. width: auto;
  24065. height: 60px;
  24066. text-align: center;
  24067. line-height: 60px;
  24068. font-size: 20px;
  24069. cursor: pointer;
  24070. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  24071. background-size: cover;
  24072. transition: all 2s;
  24073. margin-right: 20px;
  24074. background-size: 100% 100%;
  24075. padding: 0 20px;
  24076. box-sizing: border-box;
  24077. }
  24078. .isCard > div,
  24079. .noCard > div,
  24080. .isCard1 > div {
  24081. white-space: nowrap;
  24082. overflow: hidden;
  24083. text-overflow: ellipsis;
  24084. width: 100%;
  24085. margin: 0 auto;
  24086. }
  24087. .noCard {
  24088. background-image: none;
  24089. }
  24090. .isCard1 {
  24091. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  24092. }
  24093. .isChooseCard {
  24094. background-image: none;
  24095. border: 1px dashed #b9b9b9;
  24096. border-radius: 10px;
  24097. }
  24098. .card {
  24099. width: 130px;
  24100. height: 60px;
  24101. }
  24102. .card > img {
  24103. width: 100%;
  24104. height: 100%;
  24105. }
  24106. .rightCardBox {
  24107. margin: 10px 0 0 10px;
  24108. }
  24109. .rightCardBox > div:nth-child(1) {
  24110. margin-bottom: 10px;
  24111. }
  24112. .cardCss {
  24113. display: flex;
  24114. flex-direction: column;
  24115. flex-wrap: nowrap;
  24116. align-items: center;
  24117. border-bottom: 3px solid #b4c3d3;
  24118. padding: 0 0 5px 0;
  24119. margin-right: 10px;
  24120. }
  24121. .cardCss > div:nth-child(2) {
  24122. background: #5b7b9d;
  24123. color: #fff;
  24124. width: 20px;
  24125. height: 20px;
  24126. border-radius: 50%;
  24127. text-align: center;
  24128. line-height: 20px;
  24129. }
  24130. .isWrong {
  24131. display: flex;
  24132. flex-direction: row;
  24133. flex-wrap: nowrap;
  24134. align-content: center;
  24135. align-items: center;
  24136. }
  24137. .answerRight {
  24138. width: 25%;
  24139. }
  24140. .isTj {
  24141. display: flex;
  24142. flex-direction: row;
  24143. flex-wrap: nowrap;
  24144. align-items: center;
  24145. }
  24146. .isTj > div:nth-child(2) {
  24147. color: #727070;
  24148. margin-left: 10px;
  24149. }
  24150. .isTjImg {
  24151. width: 30px;
  24152. height: 30px;
  24153. }
  24154. .isTjImg > img {
  24155. width: 100%;
  24156. height: 100%;
  24157. }
  24158. .cardAnswerBox {
  24159. font-size: 18px;
  24160. width: 97%;
  24161. border: 5px;
  24162. padding: 0;
  24163. border-radius: 5px;
  24164. margin: 10px auto;
  24165. word-break: break-word;
  24166. }
  24167. .w_name {
  24168. margin-bottom: 10px;
  24169. }
  24170. .w_name span {
  24171. font-size: 16px;
  24172. }
  24173. .w_teachert {
  24174. width: 50px !important;
  24175. position: absolute;
  24176. height: auto !important;
  24177. z-index: 10;
  24178. right: 25px;
  24179. top: -25px;
  24180. }
  24181. /* .group_workBox {
  24182. } */
  24183. .group_workBox + .group_workBox {
  24184. margin-top: 20px;
  24185. }
  24186. .group_box {
  24187. padding-bottom: 20px;
  24188. border-bottom: 2px solid #f0f0f0;
  24189. margin-top: 10px;
  24190. }
  24191. .group_title {
  24192. display: flex;
  24193. align-items: center;
  24194. justify-content: space-between;
  24195. width: 95%;
  24196. }
  24197. .group_name {
  24198. background-image: url(../../assets/icon/groupN.png);
  24199. width: 220px;
  24200. background-size: 100% 100%;
  24201. height: 67px;
  24202. padding: 0 20px 0 43px;
  24203. box-sizing: border-box;
  24204. line-height: 63px;
  24205. color: #fff;
  24206. overflow: hidden;
  24207. white-space: nowrap;
  24208. text-overflow: ellipsis;
  24209. }
  24210. .group_work {
  24211. width: 100%;
  24212. padding: 0 10px;
  24213. box-sizing: border-box;
  24214. display: flex;
  24215. flex-wrap: wrap;
  24216. }
  24217. .g_d_box {
  24218. display: flex;
  24219. flex-flow: wrap;
  24220. justify-content: space-around;
  24221. }
  24222. .g_d_box .isChair {
  24223. background-image: url(../../assets/avatar.png) !important;
  24224. }
  24225. .g_d_group {
  24226. width: 500px;
  24227. margin-bottom: 80px;
  24228. }
  24229. .g_d_group_chair {
  24230. display: flex;
  24231. align-items: center;
  24232. justify-content: center;
  24233. }
  24234. .g_d_group_chair > div + div {
  24235. margin-left: 30px;
  24236. }
  24237. .g_d_group_chair > div,
  24238. .g_d_group_chair2 > div {
  24239. display: flex;
  24240. flex-direction: column;
  24241. align-items: center;
  24242. }
  24243. .g_d_group_chair > div > span:nth-child(1),
  24244. .g_d_group_chair2 > div > span:nth-child(1) {
  24245. background-image: url(../../assets/icon/chair.png);
  24246. width: 50px;
  24247. height: 50px;
  24248. display: block;
  24249. background-size: 100% 100%;
  24250. }
  24251. .g_d_group_tableBox {
  24252. display: flex;
  24253. align-items: center;
  24254. justify-content: center;
  24255. }
  24256. .g_d_group_chair2 {
  24257. display: flex;
  24258. flex-direction: column;
  24259. align-items: center;
  24260. justify-content: center;
  24261. }
  24262. .g_d_group_chair2 > div + div {
  24263. margin-top: 10px;
  24264. }
  24265. .g_d_group_table {
  24266. background-image: url(../../assets/icon/groupBg.png);
  24267. width: 354px;
  24268. height: 196px;
  24269. background-size: 100% 100%;
  24270. display: flex;
  24271. align-items: center;
  24272. justify-content: center;
  24273. flex-direction: column;
  24274. color: #fff;
  24275. }
  24276. .g_d_group_table > div:nth-child(1) {
  24277. font-size: 24px;
  24278. margin-bottom: 5px;
  24279. }
  24280. .g_d_group_table > div:nth-child(2) div {
  24281. cursor: pointer;
  24282. background: #2e77bf;
  24283. padding: 4px 10px;
  24284. border-radius: 5px;
  24285. }
  24286. /* .groupBox {
  24287. } */
  24288. .groupContent + .groupContent {
  24289. margin-top: 30px;
  24290. }
  24291. .groupTitle {
  24292. font-size: 24px;
  24293. color: rgb(80, 80, 80);
  24294. margin-bottom: 20px;
  24295. }
  24296. .groupName {
  24297. display: flex;
  24298. align-items: center;
  24299. }
  24300. .groupn {
  24301. font-size: 15px;
  24302. margin-right: 10px;
  24303. }
  24304. .groupName + .groupName {
  24305. margin-top: 15px;
  24306. }
  24307. .groupBtn {
  24308. margin-left: 10px;
  24309. }
  24310. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24311. text-align: left;
  24312. }
  24313. .g_d_btnBox {
  24314. display: flex;
  24315. justify-content: flex-end;
  24316. align-items: center;
  24317. margin-bottom: 20px;
  24318. }
  24319. .updateChair {
  24320. position: relative;
  24321. }
  24322. .updateChairBtn {
  24323. position: absolute;
  24324. width: 50px;
  24325. height: 50px;
  24326. overflow: hidden;
  24327. /* display: flex; */
  24328. align-items: center;
  24329. justify-content: center;
  24330. background: #00000087;
  24331. color: #fff;
  24332. border-radius: 50px;
  24333. display: none;
  24334. cursor: pointer;
  24335. }
  24336. .updateChair:hover .updateChairBtn {
  24337. display: flex;
  24338. }
  24339. .group_staic_box {
  24340. display: flex;
  24341. padding: 30px 40px 10px;
  24342. flex-wrap: wrap;
  24343. }
  24344. .group_staic {
  24345. /* width: 50%; */
  24346. margin-bottom: 20px;
  24347. display: flex;
  24348. align-items: center;
  24349. }
  24350. .group_staic span:nth-child(1) {
  24351. width: 150px;
  24352. text-align: right;
  24353. margin-right: 15px;
  24354. }
  24355. .group_staic span:nth-child(2) {
  24356. background: rgb(0 123 255);
  24357. color: #fff;
  24358. border-radius: 5px;
  24359. padding: 5px;
  24360. }
  24361. .codeFileBox {
  24362. height: 300px;
  24363. background: #fff;
  24364. display: flex;
  24365. align-items: center;
  24366. justify-content: center;
  24367. }
  24368. .codeFileBox img {
  24369. width: 200px;
  24370. margin: 0;
  24371. height: auto;
  24372. }
  24373. .codeFileBox div {
  24374. background: rgb(80, 142, 226);
  24375. color: #fff;
  24376. padding: 10px 20px;
  24377. border-radius: 25px;
  24378. cursor: pointer;
  24379. margin-left: 15px;
  24380. }
  24381. .radioBox {
  24382. display: flex;
  24383. flex-direction: column;
  24384. flex-wrap: nowrap;
  24385. align-items: flex-start;
  24386. }
  24387. .radioBox > div {
  24388. margin: 10px 0 0 10px;
  24389. }
  24390. /* .radioBox >>> .el-radio__input,
  24391. .radioBox >>> .el-checkbox__inner {
  24392. margin-left: 10px;
  24393. } */
  24394. .radioBox >>> .el-radio__label,
  24395. .radioBox >>> .el-checkbox__label {
  24396. display: flex;
  24397. align-items: center;
  24398. width: 100%;
  24399. }
  24400. .radioBox >>> .el-radio__label > span {
  24401. width: 100%;
  24402. display: -webkit-box;
  24403. overflow: hidden;
  24404. white-space: normal !important;
  24405. text-overflow: ellipsis;
  24406. word-wrap: break-word;
  24407. }
  24408. .inImg {
  24409. width: 100px;
  24410. cursor: pointer;
  24411. }
  24412. .inImg > img {
  24413. width: 100%;
  24414. height: 100%;
  24415. object-fit: cover;
  24416. }
  24417. .timuImgBox {
  24418. margin: 10px 0;
  24419. display: flex;
  24420. flex-direction: column;
  24421. flex-wrap: wrap;
  24422. align-items: flex-start;
  24423. }
  24424. .timuImg {
  24425. width: 150px;
  24426. margin: 5px 0;
  24427. cursor: pointer;
  24428. }
  24429. .timuImg > img {
  24430. width: 100%;
  24431. height: 100%;
  24432. object-fit: cover;
  24433. }
  24434. .worksTop {
  24435. display: flex;
  24436. flex-direction: row;
  24437. align-items: flex-end;
  24438. }
  24439. .worksTitle {
  24440. display: flex;
  24441. flex-direction: row;
  24442. flex-wrap: nowrap;
  24443. align-items: center;
  24444. }
  24445. .worksTitle::before,
  24446. .worksTop::before {
  24447. content: "";
  24448. display: block;
  24449. width: 3px;
  24450. height: 20px;
  24451. background: #0061ff;
  24452. border-radius: 3px;
  24453. margin: 0 5px 0 0;
  24454. }
  24455. .corOpen {
  24456. margin: 0 0 0 10px;
  24457. font-size: 14px;
  24458. cursor: pointer;
  24459. color: #505050;
  24460. }
  24461. .corOpen:hover {
  24462. color: #499eef;
  24463. }
  24464. .navCorOpenBox {
  24465. display: flex;
  24466. flex-direction: row;
  24467. align-items: center;
  24468. justify-content: space-between;
  24469. height: 55px;
  24470. background: #ffffff;
  24471. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24472. border-radius: 8px 8px 0px 0px;
  24473. z-index: 9;
  24474. position: relative;
  24475. }
  24476. .navCorOpen {
  24477. padding-right: 15px;
  24478. cursor: pointer;
  24479. width: 45px;
  24480. display: flex;
  24481. }
  24482. .navCorOpen > img {
  24483. width: 100%;
  24484. height: 100%;
  24485. }
  24486. .mlImg {
  24487. width: 40px !important;
  24488. min-width: 40px;
  24489. cursor: pointer;
  24490. transform: rotate(180deg);
  24491. }
  24492. .mlImg > img {
  24493. width: 100%;
  24494. height: 100%;
  24495. }
  24496. .navLeftCss {
  24497. width: 100% !important;
  24498. left: 0 !important;
  24499. }
  24500. .isContentCss {
  24501. width: 100% !important;
  24502. }
  24503. .isAllWidth {
  24504. width: 100% !important;
  24505. }
  24506. .group_switch {
  24507. margin-right: 10px;
  24508. height: 30px;
  24509. display: flex;
  24510. align-items: center;
  24511. }
  24512. .group_switch > span {
  24513. margin-right: 5px;
  24514. }
  24515. .fileC_box {
  24516. padding-top: 15px;
  24517. }
  24518. .fileC_box > .fileC_title {
  24519. padding: 10px 5px 14px 10px;
  24520. border-top: 1px solid #cad1dc;
  24521. font-size: 14px;
  24522. font-weight: 400;
  24523. color: #cad1dc;
  24524. width: calc(100% - 20px);
  24525. margin: 0 auto;
  24526. box-sizing: border-box;
  24527. }
  24528. .pl_select_box {
  24529. height: 40px;
  24530. line-height: 40px;
  24531. width: 100%;
  24532. cursor: pointer;
  24533. padding: 0 20px;
  24534. box-sizing: border-box;
  24535. border-radius: 5px;
  24536. border: 1px solid #d6d6d6;
  24537. white-space: nowrap;
  24538. overflow: hidden;
  24539. text-overflow: ellipsis;
  24540. background: #fff;
  24541. text-align: left;
  24542. }
  24543. .newButton {
  24544. width: 102px;
  24545. height: 36px;
  24546. background: #e7ebf1;
  24547. border-radius: 4px;
  24548. color: #0e1e33;
  24549. font-weight: 400;
  24550. font-size: 14px;
  24551. border: none;
  24552. float: right;
  24553. margin-left: 10px;
  24554. }
  24555. .el-table >>> .even_row {
  24556. background-color: #f0f4fa;
  24557. }
  24558. .stageBoxCss,
  24559. .stageBoxIsCss {
  24560. display: flex;
  24561. flex-direction: row;
  24562. flex-wrap: nowrap;
  24563. align-items: center;
  24564. height: 50px;
  24565. border-bottom: 1px solid #e2f5fc;
  24566. cursor: pointer;
  24567. width: 100%;
  24568. }
  24569. .stageBoxIsCss {
  24570. background: #0061ff;
  24571. color: #fff;
  24572. border-radius: 8px;
  24573. }
  24574. .closeTri,
  24575. .closeTri1 {
  24576. min-width: 15px;
  24577. width: 15px;
  24578. height: 15px;
  24579. }
  24580. .closeTri1 {
  24581. padding-left: 10px;
  24582. cursor: pointer;
  24583. }
  24584. .closeTri > img,
  24585. .closeTri1 > img {
  24586. width: 100%;
  24587. height: 100%;
  24588. /* transition: all .5s; */
  24589. }
  24590. .noToolBlue {
  24591. min-width: 10px;
  24592. width: 10px;
  24593. height: 10px;
  24594. background: #0061ff;
  24595. border-radius: 50%;
  24596. margin-left: 13px;
  24597. }
  24598. .stageChild,
  24599. .toolChild {
  24600. height: 0;
  24601. overflow: hidden;
  24602. transition: all 0.5s;
  24603. }
  24604. /* .toolChild { */
  24605. /* margin: 0 0 0 17px;
  24606. padding: 0 0 0 20px;
  24607. border-left: 1px solid #d7d7d7; */
  24608. /* } */
  24609. .toolChild > div + div{
  24610. margin-top:5px;
  24611. }
  24612. .gjCss {
  24613. display: flex;
  24614. flex-direction: row;
  24615. flex-wrap: nowrap;
  24616. align-items: center;
  24617. padding: 10px 0 10px 25px;
  24618. box-sizing: border-box;
  24619. font-size: 14px;
  24620. cursor: pointer;
  24621. border-radius:5px;
  24622. }
  24623. .gjCss > div:nth-child(1){
  24624. flex-shrink: 0;
  24625. }
  24626. .toolChild > div {
  24627. position: relative;
  24628. width: 100%;
  24629. }
  24630. /* .toolChild > div::before { */
  24631. /* content: "";
  24632. width: 15px;
  24633. height: 1px;
  24634. background: #cad1dc;
  24635. position: absolute;
  24636. top: 24px;
  24637. left: -20px;
  24638. display: block; */
  24639. /* } */
  24640. .isGjCss {
  24641. /* color: #0061ff; */
  24642. color:#fff;
  24643. background: rgb(55, 129, 252);
  24644. /* background-color: #e0eafb !important;
  24645. color: #0061ff !important; */
  24646. }
  24647. .navItem {
  24648. background: #ffffff;
  24649. border-radius: 4px;
  24650. width: 100%;
  24651. margin: 10px auto;
  24652. position: relative;
  24653. height: 40px;
  24654. display: flex;
  24655. flex-direction: row;
  24656. flex-wrap: nowrap;
  24657. align-items: center;
  24658. }
  24659. .navItemList {
  24660. display: flex;
  24661. flex-direction: row;
  24662. flex-wrap: nowrap;
  24663. align-items: center;
  24664. padding: 0 13px;
  24665. cursor: pointer;
  24666. width: calc(100% - 60px);
  24667. height: 100%;
  24668. }
  24669. .navItemList > div:first-child {
  24670. min-width: 60px;
  24671. }
  24672. .navItemList > div:last-child {
  24673. width: calc(100% - 80px);
  24674. white-space: nowrap;
  24675. overflow: hidden;
  24676. text-overflow: ellipsis;
  24677. word-break: break-word;
  24678. }
  24679. /* .isItemList > div {
  24680. color: #fff !important;
  24681. } */
  24682. .tool_work_box {
  24683. width: 100%;
  24684. padding: 0 37px 0;
  24685. box-sizing: border-box;
  24686. }
  24687. .tool_box {
  24688. width: 100%;
  24689. padding: 0 0 0 20px;
  24690. }
  24691. .tool_type_box {
  24692. display: flex;
  24693. flex-direction: row;
  24694. align-items: baseline;
  24695. flex-wrap: nowrap;
  24696. justify-content: flex-start;
  24697. position: relative;
  24698. }
  24699. .toolSort {
  24700. display: flex;
  24701. flex-direction: row;
  24702. flex-wrap: wrap;
  24703. justify-content: flex-start;
  24704. align-items: flex-start;
  24705. padding: 0 0 15px 0;
  24706. }
  24707. .toolSort > div {
  24708. margin: 0 10px 0 0;
  24709. width: 135px;
  24710. box-sizing: border-box;
  24711. border: 2px solid transparent;
  24712. }
  24713. .tools {
  24714. width: 100%;
  24715. display: flex;
  24716. flex-direction: column;
  24717. flex-wrap: nowrap;
  24718. align-items: flex-start;
  24719. }
  24720. .whiteBIcon {
  24721. width: fit-content;
  24722. cursor: pointer;
  24723. display: flex;
  24724. flex-direction: column;
  24725. flex-wrap: nowrap;
  24726. align-items: center;
  24727. font-size: 14px;
  24728. }
  24729. .tool:hover {
  24730. border: 2px solid #a5c7ff;
  24731. border-radius: 5px;
  24732. }
  24733. .whiteBIcon > img {
  24734. width: 65px;
  24735. height: 100%;
  24736. }
  24737. .whiteBIcon > img {
  24738. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  24739. border-radius: 15px;
  24740. }
  24741. .check {
  24742. /* width: 20px;
  24743. height: 20px; */
  24744. cursor: pointer;
  24745. margin: 10px 0;
  24746. position: absolute;
  24747. right: 2px;
  24748. top: -5px;
  24749. }
  24750. .noChoose,
  24751. .isChoose {
  24752. width: 15px;
  24753. height: 15px;
  24754. border-radius: 50%;
  24755. border: 1px solid #adadad;
  24756. }
  24757. .isChoose {
  24758. border: 4px solid #0363ff !important;
  24759. width: 10px;
  24760. height: 10px;
  24761. }
  24762. .isToolChoose {
  24763. border: 2px solid #5394ff !important;
  24764. border-radius: 5px;
  24765. box-shadow: 0 0 6px 0px #5394ff;
  24766. }
  24767. .checkDiv {
  24768. display: flex;
  24769. align-items: center;
  24770. }
  24771. .checkDiv span {
  24772. margin-left: 5px;
  24773. color: #858585;
  24774. }
  24775. .check img {
  24776. width: 20px;
  24777. height: 20px;
  24778. }
  24779. .lockTaskIcon {
  24780. width: 20px;
  24781. height: 20px;
  24782. position: absolute;
  24783. right: 10px;
  24784. top: 10px;
  24785. }
  24786. .lockTaskIcon > img {
  24787. width: 100%;
  24788. height: 100%;
  24789. }
  24790. .pick_box {
  24791. display: flex;
  24792. align-items: flex-start;
  24793. flex-wrap: wrap;
  24794. }
  24795. .selectBox {
  24796. width: 110px;
  24797. margin-left: 10px;
  24798. margin: 0 10px 0 auto;
  24799. }
  24800. .selectBox >>> .el-input__inner {
  24801. height: 30px;
  24802. line-height: 30px;
  24803. }
  24804. .selectBox >>> .el-input__icon {
  24805. line-height: 30px;
  24806. }
  24807. .sentenceTitle {
  24808. display: flex;
  24809. flex-direction: row;
  24810. flex-wrap: nowrap;
  24811. align-items: center;
  24812. }
  24813. .sentenceTitle::before {
  24814. content: attr(index);
  24815. background: #3681fc;
  24816. border-radius: 50%;
  24817. color: #fff;
  24818. width: 25px;
  24819. height: 25px;
  24820. min-width: 25px;
  24821. min-height: 25px;
  24822. text-align: center;
  24823. line-height: 25px;
  24824. margin-right: 5px;
  24825. }
  24826. .hfBox {
  24827. padding: 10px;
  24828. box-sizing: border-box;
  24829. }
  24830. .whoReplyWho {
  24831. display: flex;
  24832. flex-direction: row;
  24833. flex-wrap: nowrap;
  24834. align-items: baseline;
  24835. justify-content: flex-start;
  24836. }
  24837. .hfBottom {
  24838. display: flex;
  24839. flex-direction: row;
  24840. flex-wrap: nowrap;
  24841. align-items: center;
  24842. justify-content: space-between;
  24843. font-size: 14px;
  24844. }
  24845. .deleteHfItem {
  24846. cursor: pointer;
  24847. width: 20px;
  24848. height: 20px;
  24849. }
  24850. .deleteHfItem > img {
  24851. width: 100%;
  24852. height: 100%;
  24853. }
  24854. .whoReplyWho > .hfImg {
  24855. width: 12px;
  24856. height: 12px;
  24857. margin: 0 5px;
  24858. }
  24859. .whoReplyWho > .hfImg > img {
  24860. width: 100%;
  24861. height: 100%;
  24862. }
  24863. .hfContent {
  24864. padding-top: 10px;
  24865. box-sizing: border-box;
  24866. display: -webkit-box;
  24867. overflow: hidden;
  24868. white-space: normal !important;
  24869. text-overflow: ellipsis;
  24870. word-wrap: break-word;
  24871. -webkit-box-orient: vertical;
  24872. }
  24873. .hfTime {
  24874. text-align: left;
  24875. box-sizing: border-box;
  24876. padding: 10px 0 10px 0px;
  24877. color: #bfbfbf;
  24878. font-size: 14px;
  24879. }
  24880. .btnAllNT {
  24881. position: fixed;
  24882. bottom: 100px;
  24883. right: 40px;
  24884. z-index: 999;
  24885. display: flex;
  24886. flex-direction: row;
  24887. }
  24888. .btnAllNT > img {
  24889. cursor: pointer;
  24890. width: 80px;
  24891. }
  24892. .toolMask {
  24893. position: fixed;
  24894. width: 100%;
  24895. height: 100%;
  24896. background: #3f3c3c;
  24897. opacity: 0.5;
  24898. top: 0;
  24899. left: 0;
  24900. z-index: 999;
  24901. }
  24902. .addToolCss {
  24903. position: fixed;
  24904. z-index: 999;
  24905. background: #fff;
  24906. right: 5%;
  24907. bottom: 18%;
  24908. min-width: 1035px;
  24909. min-height: 300px;
  24910. border-radius: 10px;
  24911. box-shadow: 0 0 8px 1px #b2b2b2;
  24912. }
  24913. .toolTop {
  24914. display: flex;
  24915. flex-direction: row;
  24916. flex-wrap: nowrap;
  24917. justify-content: space-between;
  24918. align-items: center;
  24919. padding: 20px;
  24920. }
  24921. .toolTop > div:nth-child(2) {
  24922. width: 15px;
  24923. height: 15px;
  24924. padding-right: 10px;
  24925. cursor: pointer;
  24926. }
  24927. .toolTop > div:nth-child(2) > img {
  24928. width: 100%;
  24929. height: 100%;
  24930. }
  24931. .fullStyle>>>.el-dialog__body {
  24932. height: calc(100% - 125px) !important;
  24933. box-sizing: border-box;
  24934. padding: 30px 0 !important;
  24935. background: #fff !important;
  24936. }
  24937. .fullStyle>>>.el-dialog {
  24938. width: 100% !important;
  24939. max-width: 100% !important;
  24940. height: 100% !important;
  24941. margin: 0 !important;
  24942. }
  24943. .fullStyle {
  24944. width: 100% !important;
  24945. max-width: 100% !important;
  24946. height: 100% !important;
  24947. margin: 0 auto !important;
  24948. }
  24949. .fullStyle>>>.el-dialog__footer{
  24950. background: #fff !important;
  24951. }
  24952. .engUpBox {
  24953. width: 100%;
  24954. height: 100%;
  24955. }
  24956. .engTitle,
  24957. .engText {
  24958. display: flex;
  24959. flex-direction: row;
  24960. flex-wrap: nowrap;
  24961. align-items: flex-start;
  24962. padding: 0 20px 20px 20px;
  24963. box-sizing: border-box;
  24964. }
  24965. .engTitle > .div:first-child,
  24966. .engText > div:first-child {
  24967. min-width: 75px;
  24968. }
  24969. .correctBox{
  24970. width: 100%;
  24971. display: flex;
  24972. flex-direction: row;
  24973. flex-wrap: nowrap;
  24974. align-items: flex-start;
  24975. }
  24976. .oldBox{
  24977. width: 50%;
  24978. height: 100%;
  24979. display: flex;
  24980. flex-direction: column;
  24981. flex-wrap: nowrap;
  24982. align-items: center;
  24983. border-top: 1px solid #d9d9d9;
  24984. border-left: 1px solid #d9d9d9;
  24985. border-right: 1px solid #d9d9d9;
  24986. }
  24987. .oldBox>div:first-child{
  24988. width: 100%;
  24989. text-align: center;
  24990. background: #d9d9d9;
  24991. height: 35px;
  24992. line-height: 35px;
  24993. font-weight: bold;
  24994. }
  24995. .oldText{
  24996. width: 100%;
  24997. height: calc(100% - 35px);
  24998. overflow: auto;
  24999. margin: 10px 0;
  25000. display: flex;
  25001. flex-direction: column;
  25002. flex-wrap: nowrap;
  25003. align-content: center;
  25004. align-items: center;
  25005. }
  25006. .detailBox{
  25007. width: 50%;
  25008. padding: 10px;
  25009. background: #f6f6f6;
  25010. border-radius: 5px;
  25011. }
  25012. .oldDetail,.oldDetail1{
  25013. padding-bottom: 30px;
  25014. }
  25015. .oldImg{
  25016. width:30px;
  25017. height: 30px;
  25018. }
  25019. .oldImg>img{
  25020. width: 100%;
  25021. height: 100%;
  25022. }
  25023. .allName{
  25024. min-width: 200px;
  25025. white-space: nowrap;
  25026. overflow: hidden;
  25027. text-overflow: ellipsis;
  25028. word-break: break-word;
  25029. cursor: pointer;
  25030. text-align: center;
  25031. border: 1px solid #bcc2cc;
  25032. box-sizing: border-box;
  25033. }
  25034. .engUpTop{
  25035. max-height: 300px;
  25036. overflow: auto;
  25037. }
  25038. .isUpdateToolDetailClass{
  25039. padding: 0 !important;
  25040. }
  25041. .isUpdateToolDetailClass textarea{
  25042. padding:12px;
  25043. font-size: 16px;
  25044. min-height:100%;
  25045. width: 100%;
  25046. box-sizing:border-box;
  25047. outline: none;
  25048. border:none;
  25049. line-height: 30px;
  25050. resize: none;
  25051. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25052. color: #838383;
  25053. }
  25054. .show_taskD {
  25055. min-width: fit-content;
  25056. margin-left: 10px;
  25057. display: flex;
  25058. align-items: center;
  25059. font-size: 14px;
  25060. cursor: pointer;
  25061. color: #717c8d;
  25062. }
  25063. .show_taskD > img {
  25064. width: 15px;
  25065. margin-right: 5px;
  25066. transition: 0.2s all;
  25067. transform: rotate(-90deg);
  25068. }
  25069. .show_taskD.show > img {
  25070. transform: rotate(0deg);
  25071. }
  25072. .dialog_diyCopy >>> .el-dialog__header {
  25073. display: none !important;
  25074. }
  25075. .dialog_diyCopy >>> .el-dialog__body {
  25076. padding: 0 !important;
  25077. height: 100% !important;
  25078. }
  25079. .confirmOpenDigCss > div{
  25080. font-size: 14px;
  25081. color: rgba(0, 0, 0, 0.6);
  25082. }
  25083. .confirmOpenDigCss >>> .el-dialog{
  25084. border-radius: 6px;
  25085. }
  25086. .confirmOpenDigCss >>> .el-dialog__body{
  25087. padding: 25px !important;
  25088. }
  25089. .confirmOpenDigCss > span{
  25090. font-size: 16px;
  25091. font-weight: 600;
  25092. color: rgba(0, 0, 0, 0.8);
  25093. }
  25094. .correctCss{
  25095. position: absolute;
  25096. bottom: -70px;
  25097. background: #409eff;
  25098. color: #fff;
  25099. }
  25100. div::-webkit-scrollbar {
  25101. width: 10px;
  25102. height: 6px;
  25103. }
  25104. .Ovh{
  25105. margin: 5px 0;
  25106. width: 4em;
  25107. -webkit-line-clamp: 2;
  25108. display: -webkit-box;
  25109. -webkit-box-orient: vertical;
  25110. overflow: hidden;
  25111. text-overflow: ellipsis;
  25112. }
  25113. .renderedFor >>> .katex {
  25114. font-size: 18px;
  25115. width: 100%;
  25116. white-space: normal;
  25117. font-family: '黑体' !important;
  25118. }
  25119. .renderedFor >>> .katex .base{
  25120. display: inline !important;
  25121. display: contents !important;
  25122. }
  25123. .renderedFor >>> .katex .base .cjk_fallback{
  25124. white-space: normal !important;
  25125. display: inline !important;
  25126. }
  25127. .notop >>> .vjs-fluid{
  25128. padding-top: 0 !important;
  25129. }
  25130. </style>