studyStudent.vue 874 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941
  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" style="overflow: hidden;" v-if="w.type == 0">
  7362. <el-image
  7363. :src="w.works"
  7364. crossorigin="anonymous"
  7365. allow="*"
  7366. @click="previewImg(w.works, w)"
  7367. alt
  7368. />
  7369. <div
  7370. class="answerScore"
  7371. style="right: 70px;"
  7372. v-if="w.score"
  7373. @click.stop="openScore(w)"
  7374. :class="{
  7375. rightW:
  7376. w.userid == userid ||
  7377. tType == 1 ||
  7378. tType == 4 ||
  7379. w.ateacher == userid,
  7380. }"
  7381. >
  7382. {{ JSON.parse(w.score).wScore }}{{ lang.ssScoreUnit }}
  7383. </div>
  7384. <div
  7385. class="answerScore"
  7386. style="right: 70px;"
  7387. @click.stop="openScore(w)"
  7388. v-else-if="courseDetail.userid == userid"
  7389. :class="{
  7390. rightW:
  7391. w.userid == userid ||
  7392. tType == 1 ||
  7393. tType == 4 ||
  7394. w.ateacher == userid,
  7395. }"
  7396. >
  7397. {{ lang.ssMarkScore }}
  7398. </div>
  7399. <img class="xiaz" @click="downloadimg(w.works,w.sName)" style="right: 40px;" src="../../assets/icon/works/xiaz.png" alt="">
  7400. <img
  7401. class="deleteImg"
  7402. src="../../assets/deleteworks.png"
  7403. v-if="
  7404. w.userid == userid ||
  7405. tType == 1 ||
  7406. tType == 4
  7407. "
  7408. @click.stop="deleteWorks(w.wid)"
  7409. alt
  7410. />
  7411. </div>
  7412. <div class="workImg" v-if="w.type == 1">
  7413. <img
  7414. :src="word"
  7415. @click="openFile(w.works)"
  7416. alt
  7417. />
  7418. <!-- @click="openFile(w.works)" -->
  7419. <div
  7420. class="answerScore"
  7421. style="right: 70px;"
  7422. v-if="w.score"
  7423. @click.stop="openScore(w)"
  7424. :class="{
  7425. rightW:
  7426. w.userid == userid ||
  7427. tType == 1 ||
  7428. tType == 4 ||
  7429. w.ateacher == userid,
  7430. }"
  7431. >
  7432. {{ JSON.parse(w.score).wScore }}{{ lang.ssScoreUnit }}
  7433. </div>
  7434. <div
  7435. class="answerScore"
  7436. style="right: 70px;"
  7437. @click.stop="openScore(w)"
  7438. v-else-if="courseDetail.userid == userid"
  7439. :class="{
  7440. rightW:
  7441. w.userid == userid ||
  7442. tType == 1 ||
  7443. tType == 4 ||
  7444. w.ateacher == userid,
  7445. }"
  7446. >
  7447. {{ lang.ssMarkScore }}
  7448. </div>
  7449. <img class="xiaz" @click="downloadFile(w.works,w.userid)" style="right: 40px;" src="../../assets/icon/works/xiaz.png" alt="">
  7450. <img
  7451. class="deleteImg"
  7452. src="../../assets/deleteworks.png"
  7453. v-if="
  7454. w.userid == userid ||
  7455. tType == 1 ||
  7456. tType == 4
  7457. "
  7458. @click.stop="deleteWorks(w.wid)"
  7459. alt
  7460. />
  7461. </div>
  7462. <div class="workImg" v-if="w.type == 3">
  7463. <img
  7464. style="cursor: pointer"
  7465. :src="video"
  7466. @click="openVideo(w)"
  7467. alt
  7468. />
  7469. <!-- @click="openVideo(w.works)" -->
  7470. <div
  7471. class="answerScore"
  7472. style="right: 70px;"
  7473. v-if="w.score"
  7474. @click.stop="openScore(w)"
  7475. :class="{
  7476. rightW:
  7477. w.userid == userid ||
  7478. tType == 1 ||
  7479. tType == 4 ||
  7480. w.ateacher == userid,
  7481. }"
  7482. >
  7483. {{ JSON.parse(w.score).wScore }}{{ lang.ssScoreUnit }}
  7484. </div>
  7485. <div
  7486. class="answerScore"
  7487. style="right: 70px;"
  7488. @click.stop="openScore(w)"
  7489. v-else-if="courseDetail.userid == userid"
  7490. :class="{
  7491. rightW:
  7492. w.userid == userid ||
  7493. tType == 1 ||
  7494. tType == 4 ||
  7495. w.ateacher == userid,
  7496. }"
  7497. >
  7498. {{ lang.ssMarkScore }}
  7499. </div>
  7500. <img class="xiaz" @click="downloadFile(w.works,w.userid)" style="right: 40px;" src="../../assets/icon/works/xiaz.png" alt="">
  7501. <img
  7502. class="deleteImg"
  7503. src="../../assets/deleteworks.png"
  7504. v-if="
  7505. w.userid == userid ||
  7506. tType == 1 ||
  7507. tType == 4
  7508. "
  7509. @click.stop="deleteWorks(w.wid)"
  7510. alt
  7511. />
  7512. </div>
  7513. <div class="workImg" v-if="w.type == 12">
  7514. <img
  7515. style="cursor: pointer"
  7516. :src="word2"
  7517. @click="downloadFile(w.works,w.userid)"
  7518. alt
  7519. />
  7520. <!-- @click="openVideo(w.works)" -->
  7521. <div
  7522. class="answerScore"
  7523. v-if="w.score"
  7524. style="right: 70px;"
  7525. @click.stop="openScore(w)"
  7526. :class="{
  7527. rightW:
  7528. w.userid == userid ||
  7529. tType == 1 ||
  7530. tType == 4 ||
  7531. w.ateacher == userid,
  7532. }"
  7533. >
  7534. {{ JSON.parse(w.score).wScore }}{{ lang.ssScoreUnit }}
  7535. </div>
  7536. <div
  7537. class="answerScore"
  7538. style="right: 70px;"
  7539. @click.stop="openScore(w)"
  7540. v-else-if="courseDetail.userid == userid"
  7541. :class="{
  7542. rightW:
  7543. w.userid == userid ||
  7544. tType == 1 ||
  7545. tType == 4 ||
  7546. w.ateacher == userid,
  7547. }"
  7548. >
  7549. {{ lang.ssMarkScore }}
  7550. </div>
  7551. <img class="xiaz" @click="downloadFile(w.works,w.userid)" style="right: 40px;" src="../../assets/icon/works/xiaz.png" alt="">
  7552. <img
  7553. class="deleteImg"
  7554. src="../../assets/deleteworks.png"
  7555. v-if="
  7556. w.userid == userid ||
  7557. tType == 1 ||
  7558. tType == 4
  7559. "
  7560. @click.stop="deleteWorks(w.wid)"
  7561. alt
  7562. />
  7563. </div>
  7564. <div class="comment" style="min-width: 200px">
  7565. <div class="worksName">
  7566. <div>{{ w.sName }}</div>
  7567. </div>
  7568. <div class="commentList">
  7569. <div class="commentList">
  7570. <div
  7571. class="commentImg"
  7572. @click="
  7573. isLikes(
  7574. w.wid,
  7575. userid,
  7576. 1,
  7577. null,
  7578. w.isLikes,
  7579. w.sName
  7580. )
  7581. "
  7582. >
  7583. <img
  7584. :src="
  7585. w.isLikes == true ? likes : noLikes
  7586. "
  7587. alt=""
  7588. />
  7589. </div>
  7590. <div>{{ w.likesCount }}</div>
  7591. </div>
  7592. <div
  7593. class="commentList"
  7594. style="margin-right: 15px"
  7595. >
  7596. <div
  7597. class="commentImg"
  7598. @click="
  7599. commentOther(
  7600. w,
  7601. toolIndex,
  7602. wIndex,
  7603. gindex
  7604. )
  7605. "
  7606. >
  7607. <img
  7608. src="../../assets/icon/comment/comment.png"
  7609. alt=""
  7610. />
  7611. </div>
  7612. <div>{{ w.commentCount }}</div>
  7613. </div>
  7614. </div>
  7615. </div>
  7616. </div>
  7617. </div>
  7618. </div>
  7619. </div>
  7620. </div>
  7621. </div>
  7622. </div>
  7623. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7624. 上传文件
  7625. <input
  7626. type="file"
  7627. accept="image/png, image/gif, image/jpeg"
  7628. style="display: none"
  7629. @change="beforeUpload1($event, 2, index)"
  7630. />
  7631. </div>-->
  7632. </div>
  7633. </div>
  7634. <div
  7635. class="vedioBox"
  7636. style="margin-top: 10px; border-radius: 20px"
  7637. v-if="
  7638. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7639. .eList &&
  7640. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7641. .eList.length &&
  7642. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7643. .eList.length > 0 &&
  7644. tType != 2
  7645. "
  7646. >
  7647. <div
  7648. class="queTop"
  7649. style="
  7650. font-size: 20px;
  7651. padding: 15px 0 15px 37px;
  7652. font-weight: bold;
  7653. "
  7654. >
  7655. <!-- <div class="question" style="width: 30px">
  7656. <img src="../assets/icon/toolIcon.png" alt />
  7657. </div>
  7658. <div class="queTitle">
  7659. <div>工具</div>
  7660. </div>-->
  7661. {{ lang.ssEvaluate }}
  7662. </div>
  7663. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7664. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7665. <el-table
  7666. :data="
  7667. chapInfoList[courseType].chapterInfo[0].taskJson[
  7668. taskCount
  7669. ].eList
  7670. "
  7671. :header-cell-style="{ background: '#F0F4FA' }"
  7672. :row-class-name="tableRowClassName"
  7673. border
  7674. stripe
  7675. style="width: 100%"
  7676. >
  7677. <el-table-column
  7678. :label="lang.ssEvalName"
  7679. align="center"
  7680. >
  7681. <template slot-scope="scope"
  7682. ><div>{{ scope.row.value }}</div></template
  7683. >
  7684. </el-table-column>
  7685. <el-table-column
  7686. :label="lang.ssEvalDesc"
  7687. align="center"
  7688. >
  7689. <template slot-scope="scope"
  7690. ><div>
  7691. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7692. </div></template
  7693. >
  7694. </el-table-column>
  7695. <el-table-column :label="lang.ssTarget" align="center">
  7696. <template slot-scope="scope"
  7697. ><div>
  7698. {{
  7699. scope.row.target
  7700. ? scope.row.target[scope.row.target.length - 1]
  7701. : "-"
  7702. }}
  7703. </div></template
  7704. ></el-table-column
  7705. >
  7706. </el-table>
  7707. <!-- <div
  7708. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7709. .chapterInfo[0].taskJson[taskCount].eList"
  7710. :key="eIndex"
  7711. class="elist_input_box"
  7712. >
  7713. <div style="width: 95%">
  7714. <div
  7715. style="
  7716. display: flex;
  7717. flex-direction: row;
  7718. flex-wrap: nowrap;
  7719. align-items: center;
  7720. "
  7721. >
  7722. <div style="max-width: calc(100% - 285px)">
  7723. <span>{{ eItem.value }}</span>
  7724. </div>
  7725. <div
  7726. style="
  7727. padding-left: 25px;
  7728. display: flex;
  7729. flex-direction: row;
  7730. align-items: center;
  7731. "
  7732. >
  7733. <el-rate
  7734. v-model="eItem.score"
  7735. :colors="colors"
  7736. disabled
  7737. ></el-rate>
  7738. </div>
  7739. </div>
  7740. <div class="elist_inptu_text" style="padding-left: 10px">
  7741. <span v-if="eItem.detail != ''">{{
  7742. eItem.detail
  7743. }}</span>
  7744. <span v-else style="color: #b2b1b3; font-size: 14px"
  7745. >暂无描述...</span
  7746. >
  7747. </div>
  7748. </div>
  7749. </div> -->
  7750. </div>
  7751. <div
  7752. v-if="evalua"
  7753. style="
  7754. border: 1px solid #e5e5e5;
  7755. max-width: 650px;
  7756. width: 100%;
  7757. margin-top: 20px;
  7758. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7759. "
  7760. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7761. >
  7762. <div class="e_add_top">
  7763. <div class="e_add_title" style="width: 100%">
  7764. <!-- <span>目标管理名称</span> -->
  7765. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7766. <img
  7767. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7768. src="../../assets/line.png"
  7769. class="cru_line"
  7770. style="
  7771. width: 125px;
  7772. height: 20px;
  7773. bottom: -10px;
  7774. left: 5px;
  7775. "
  7776. />
  7777. <!-- <el-input
  7778. v-model="eTitle"
  7779. placeholder="请输入名称"
  7780. @change="setMindData"
  7781. ></el-input>-->
  7782. <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>
  7783. <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>
  7784. </div>
  7785. </div>
  7786. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7787. <div class="e_add_list_pbox">
  7788. <div class="e_add_list_pbox_title">
  7789. <!-- <span class="type_title">切换模式</span> -->
  7790. <div class="type_content">
  7791. <span
  7792. :class="{ active: typeMode == 1 }"
  7793. @click="typeMode = 1"
  7794. >{{ lang.ssTargetTree }}</span
  7795. >
  7796. <span
  7797. :class="{ active: typeMode == 2 }"
  7798. @click="typeMode = 2"
  7799. >{{ lang.ssTargetCompass }}</span
  7800. >
  7801. <!-- <span
  7802. :class="{ active: typeMode == 3 }"
  7803. @click="typeMode = 3"
  7804. >目标看板</span
  7805. > -->
  7806. </div>
  7807. </div>
  7808. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7809. <Mind
  7810. :showBar="false"
  7811. :mindData="data"
  7812. style="width: 100%"
  7813. v-show="typeMode == 1"
  7814. ></Mind>
  7815. <Sunburst
  7816. :Josn="eJson"
  7817. :num="eJSONNum"
  7818. style="width: 100%"
  7819. v-if="typeMode == 2"
  7820. ></Sunburst>
  7821. <SeeBoard
  7822. :Josn="eJson"
  7823. :num="eJSONNum"
  7824. :ename="eTitle"
  7825. style="width: 100%"
  7826. v-if="typeMode == 3"
  7827. >
  7828. </SeeBoard>
  7829. </div>
  7830. </div>
  7831. </div>
  7832. </div>
  7833. </div>
  7834. </div>
  7835. <!-- <div
  7836. class="project_box"
  7837. style="margin-top: 15px; padding-bottom: 30px"
  7838. >
  7839. <div
  7840. style="
  7841. display: flex;
  7842. flex-wrap: nowrap;
  7843. flex-direction: column;
  7844. position: relative;
  7845. "
  7846. >
  7847. <div class="queTop">
  7848. <div class="question">
  7849. <img src="../../assets/icon/homeWork.png" alt="" />
  7850. </div>
  7851. <div class="queTitle">
  7852. <div>作业提交<span>(提交图文视频等)</span></div>
  7853. <div>:任务:{{ task.task }}</div>
  7854. </div>
  7855. </div>
  7856. <div class="ediBottom">
  7857. <div
  7858. class="addEditor"
  7859. style="margin-top: 23px"
  7860. @click="openAddWork"
  7861. v-if="!isNoHomeWork"
  7862. >
  7863. 选择文件
  7864. </div>
  7865. <div
  7866. class="addEditor"
  7867. style="margin-top: 23px"
  7868. @click="openAddWork"
  7869. v-else
  7870. >
  7871. 已提交
  7872. </div>
  7873. </div>
  7874. </div>
  7875. </div>-->
  7876. </div>
  7877. </div>
  7878. <el-dialog
  7879. :title="lang.ssHomework"
  7880. :visible.sync="dialogVisible"
  7881. :append-to-body="true"
  7882. width="500px"
  7883. :before-close="handleClose"
  7884. class="dialog_change"
  7885. >
  7886. <div class="marginT">
  7887. <div>{{ lang.ssUpFile }}</div>
  7888. <div style="display: flex; gap: 10px">
  7889. <div
  7890. class="chapter_add"
  7891. @click="addImg($event)"
  7892. v-if="studyJuri[0].cover.length == 0"
  7893. >
  7894. <div class="up_photo">
  7895. <img src="../../assets/icon/uploadImg.png" alt />
  7896. </div>
  7897. <!-- <input
  7898. type="file"
  7899. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7900. style="display: none"
  7901. @change="beforeUpload1($event, 1)"
  7902. /> -->
  7903. <input
  7904. type="file"
  7905. accept="*"
  7906. style="display: none"
  7907. @change="beforeUpload1($event, 1)"
  7908. />
  7909. <!-- <input
  7910. type="file"
  7911. accept="image/*"
  7912. capture="camera"
  7913. style="display: none"
  7914. @change="beforeUpload1($event, 1)"
  7915. /> -->
  7916. </div>
  7917. <div
  7918. class="chapter_add"
  7919. @click="addImg($event)"
  7920. v-if="studyJuri[0].cover.length == 0"
  7921. >
  7922. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  7923. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  7924. </div>
  7925. <input
  7926. type="file"
  7927. accept="image/*"
  7928. capture="camera"
  7929. style="display: none"
  7930. @change="beforeUpload1($event, 1)"
  7931. />
  7932. </div>
  7933. </div>
  7934. <div
  7935. class="chapter_add"
  7936. style="
  7937. display: flex;
  7938. width: 100%;
  7939. flex-direction: row;
  7940. flex-wrap: wrap;
  7941. justify-content: flex-start;
  7942. padding: 15px 0;
  7943. "
  7944. v-if="studyJuri[0].cover.length > 0"
  7945. >
  7946. <div class="upCover">
  7947. <img
  7948. :src="studyJuri[0].cover[0].url"
  7949. alt
  7950. v-if="fileType == 0"
  7951. />
  7952. <img :src="word" alt v-else-if="fileType == 1" />
  7953. <img :src="video" alt v-else-if="fileType == 2" />
  7954. <img :src="word2" alt v-else-if="fileType == 3" />
  7955. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7956. <div class="deleteWord" @click="clean(1)">
  7957. <img src="../../assets/icon/deleteWorks.png" alt />
  7958. </div>
  7959. </div>
  7960. </div>
  7961. </div>
  7962. <div
  7963. class="upload_send"
  7964. @click="addCourseWorks(taskCount)"
  7965. v-if="!proVisible"
  7966. >
  7967. {{ lang.ssSubmit }}
  7968. </div>
  7969. </el-dialog>
  7970. </div>
  7971. </div>
  7972. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  7973. <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(
  7974. '/courseDetail?userid=' +
  7975. userid +
  7976. '&oid=' +
  7977. oid +
  7978. '&org=' +
  7979. org +
  7980. '&cid=' +
  7981. classId +
  7982. '&courseId=' +
  7983. id +
  7984. '&tType=' +
  7985. tType +
  7986. '&screenType=' +
  7987. screenType+
  7988. '&role=' +
  7989. role
  7990. )"></classRoomHelper>
  7991. <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(
  7992. '/courseDetail?userid=' +
  7993. userid +
  7994. '&oid=' +
  7995. oid +
  7996. '&org=' +
  7997. org +
  7998. '&cid=' +
  7999. classId +
  8000. '&courseId=' +
  8001. id +
  8002. '&tType=' +
  8003. tType +
  8004. '&screenType=' +
  8005. screenType+
  8006. '&role=' +
  8007. role
  8008. )"></studentClassRoomHelper>
  8009. <div
  8010. class="pButton"
  8011. @click="(pzDialog = true), selectPz()"
  8012. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8013. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8014. >
  8015. <!-- 批 -->
  8016. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8017. </div>
  8018. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8019. <div class="pzTop2">
  8020. <!-- <div>评论</div>
  8021. <div @click="pzDialog = false">
  8022. <img src="../../assets/close1.png" alt="" />
  8023. </div> -->
  8024. <div class="checkbox">
  8025. <!-- <div class="check" style="font-size: 25px; position: unset">
  8026. 评论
  8027. </div> -->
  8028. <div class="cb-tabList">
  8029. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">{{ lang.ssComment }}</div>
  8030. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8031. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8032. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">{{ lang.ssTotalEval }}</div>
  8033. </div>
  8034. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8035. <el-option :label="lang.ssTimeDesc" :value="1"></el-option>
  8036. <el-option :label="lang.ssTimeAsc" :value="2"></el-option>
  8037. <el-option :label="lang.ssMyComment" :value="3"></el-option>
  8038. </el-select>
  8039. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8040. </div>
  8041. </div>
  8042. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8043. <div class="pzListBox" v-if="pzList && pzList.length">
  8044. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8045. <div class="pzNavTop">
  8046. <div>{{ lang.ssEval }}</div>
  8047. <div>
  8048. {{
  8049. pz.username && pz.username.length > 5
  8050. ? pz.username.substring(0, 5) + "..."
  8051. : pz.username
  8052. }}{{ lang.ssCommentOf }}
  8053. </div>
  8054. <div
  8055. class="pzDelete"
  8056. v-if="pz.userid == userid"
  8057. @click="deletePz(pz.id)"
  8058. >
  8059. {{ lang.ssDelete }}
  8060. </div>
  8061. </div>
  8062. <div
  8063. @click="checkImg(getImgList(pz.content))"
  8064. class="pzContent cont"
  8065. v-html="pz.content"
  8066. v-if="pz.type == '1'"
  8067. ></div>
  8068. <div class="pzContent" v-if="pz.type == '2'">
  8069. <audio :src="pz.content" controls="controls" ref="audio">
  8070. Your browser does not support the audio element.
  8071. </audio>
  8072. </div>
  8073. <div class="pzContent" v-if="pz.type == '3'">
  8074. <img
  8075. :src="pz.content"
  8076. style="width: 90%; margin: 0 auto; display: block"
  8077. @click="previewImg(pz.content)"
  8078. />
  8079. </div>
  8080. <div class="timeAndReply">
  8081. <div class="time">
  8082. {{ pz.time }}
  8083. </div>
  8084. <div @click="setReplyIndex(pz.id, pzIndex)">{{ lang.ssReply }}</div>
  8085. </div>
  8086. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8087. <div
  8088. v-for="(h, hIndex) in pz.hfList"
  8089. :key="hIndex"
  8090. class="hfItem"
  8091. >
  8092. <div class="whoReplyWho">
  8093. <div class="hfName">{{ h.username }}</div>
  8094. <div class="hfImg">
  8095. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8096. </div>
  8097. <div class="hfName">{{ pz.username }}</div>
  8098. </div>
  8099. <div class="hfContent" v-html="h.content"></div>
  8100. <div class="hfBottom">
  8101. <div class="hfTime">{{ h.time }}</div>
  8102. <div
  8103. class="deleteHfItem"
  8104. @click="deleteReply(h.id)"
  8105. v-if="userid == h.userid"
  8106. >
  8107. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8108. </div>
  8109. </div>
  8110. </div>
  8111. </div>
  8112. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8113. <div class="replyInput">
  8114. <el-input v-model="reply[pzIndex]"></el-input>
  8115. </div>
  8116. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8117. </div> -->
  8118. </div>
  8119. </div>
  8120. <div class="noPz" v-else>
  8121. <img src="../../assets/icon/noPz.png" alt="" />
  8122. </div>
  8123. <div class="addPzButton">
  8124. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8125. {{ lang.ssAddComment }}
  8126. </div>
  8127. <!-- <div class="img1">
  8128. <div @click="(addPzDialog = true), (pzType = 2)">
  8129. <img src="../../assets/audio.png" /><span>音频</span>
  8130. </div>
  8131. </div> -->
  8132. </div>
  8133. </div>
  8134. <div class="scoreList" v-if="commentTagShow==1">
  8135. <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"/>
  8136. </div>
  8137. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8138. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8139. </div>
  8140. </div>
  8141. <div
  8142. v-if="toolDialogVisible == true"
  8143. class="toolMask"
  8144. @click="toolDialogVisible = false"
  8145. ></div>
  8146. <div v-if="toolDialogVisible == true" class="addToolCss">
  8147. <div class="toolTop">
  8148. <div style="font-weight: bold">{{ lang.ssNewTool }}</div>
  8149. <div @click="toolDialogVisible = false">
  8150. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8151. </div>
  8152. </div>
  8153. <div class="tool_box">
  8154. <div class="tool_type_box">
  8155. <div class="chooseWho">
  8156. <div
  8157. :class="toolType == 0 ? 'isChooseActive' : ''"
  8158. @click="(toolType = 0), $forceUpdate()"
  8159. >
  8160. {{ lang.ssInteract }}
  8161. </div>
  8162. <div
  8163. :class="toolType == 1 ? 'isChooseActive' : ''"
  8164. @click="(toolType = 1), $forceUpdate()"
  8165. >
  8166. {{ lang.ssThinking }}
  8167. </div>
  8168. <div
  8169. :class="toolType == 2 ? 'isChooseActive' : ''"
  8170. @click="(toolType = 2), $forceUpdate()"
  8171. >
  8172. {{ lang.ssEvalType }}
  8173. </div>
  8174. <div
  8175. :class="toolType == 3 ? 'isChooseActive' : ''"
  8176. @click="(toolType = 3), $forceUpdate()"
  8177. >
  8178. {{ lang.ssProgram }}
  8179. </div>
  8180. <div
  8181. :class="toolType == 5 ? 'isChooseActive' : ''"
  8182. @click="(toolType = 5), $forceUpdate()"
  8183. >
  8184. {{ lang.ssSubject }}
  8185. </div>
  8186. </div>
  8187. </div>
  8188. <div>
  8189. <div class="toolSort" v-if="toolType == 0">
  8190. <div
  8191. class="tool"
  8192. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8193. @click="addTools2(10)"
  8194. >
  8195. <div class="whiteBIcon">
  8196. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8197. <div style="margin: 5px 0">{{ lang.ssCountdown }}</div>
  8198. </div>
  8199. <div class="check">
  8200. <div
  8201. v-if="checktoolArray.indexOf(10) == -1"
  8202. class="noChoose"
  8203. ></div>
  8204. <div v-else class="isChoose"></div>
  8205. </div>
  8206. </div>
  8207. <div
  8208. class="tool"
  8209. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8210. @click="addTools2(65)"
  8211. >
  8212. <div class="whiteBIcon">
  8213. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8214. <div style="margin: 5px 0">{{ lang.ssPickPerson }}</div>
  8215. </div>
  8216. <div class="check">
  8217. <div
  8218. v-if="checktoolArray.indexOf(65) == -1"
  8219. class="noChoose"
  8220. ></div>
  8221. <div v-else class="isChoose"></div>
  8222. </div>
  8223. </div>
  8224. </div>
  8225. <div class="toolSort" v-if="toolType == 1">
  8226. <div
  8227. class="tool"
  8228. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8229. @click="addTools2(7)"
  8230. >
  8231. <div class="whiteBIcon">
  8232. <img
  8233. src="../../assets/icon/secondToolList/mindNetwork.png"
  8234. alt
  8235. />
  8236. <div style="margin: 5px 0">{{ lang.ssMindGrid }}</div>
  8237. </div>
  8238. <div class="check">
  8239. <div
  8240. v-if="checktoolArray.indexOf(7) == -1"
  8241. class="noChoose"
  8242. ></div>
  8243. <div v-else class="isChoose"></div>
  8244. </div>
  8245. </div>
  8246. <div
  8247. class="tool"
  8248. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8249. @click="addTools2(1)"
  8250. >
  8251. <div class="whiteBIcon">
  8252. <img
  8253. src="../../assets/icon/secondToolList/whiteBoard.png"
  8254. alt
  8255. />
  8256. <div style="margin: 5px 0">{{ lang.ssWhiteboard }}</div>
  8257. </div>
  8258. <div class="check">
  8259. <div
  8260. v-if="checktoolArray.indexOf(1) == -1"
  8261. class="noChoose"
  8262. ></div>
  8263. <div v-else class="isChoose"></div>
  8264. </div>
  8265. </div>
  8266. <div
  8267. class="tool"
  8268. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8269. @click="addTools2(52)"
  8270. >
  8271. <div class="whiteBIcon">
  8272. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8273. <div style="margin: 5px 0">{{ lang.ssDocument }}</div>
  8274. </div>
  8275. <div class="check">
  8276. <div
  8277. v-if="checktoolArray.indexOf(52) == -1"
  8278. class="noChoose"
  8279. ></div>
  8280. <div v-else class="isChoose"></div>
  8281. </div>
  8282. </div>
  8283. <div
  8284. class="tool"
  8285. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8286. @click="addTools2(3)"
  8287. >
  8288. <div class="whiteBIcon">
  8289. <img
  8290. src="../../assets/icon/secondToolList/mindMapping.png"
  8291. alt
  8292. />
  8293. <div style="margin: 5px 0">{{ lang.ssMindMap }}</div>
  8294. </div>
  8295. <div class="check">
  8296. <div
  8297. v-if="checktoolArray.indexOf(3) == -1"
  8298. class="noChoose"
  8299. ></div>
  8300. <div v-else class="isChoose"></div>
  8301. </div>
  8302. </div>
  8303. <div
  8304. class="tool"
  8305. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8306. @click="addTools2(48)"
  8307. >
  8308. <div class="whiteBIcon">
  8309. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8310. <div style="margin: 5px 0">{{ lang.ssTable }}</div>
  8311. </div>
  8312. <div class="check">
  8313. <div
  8314. v-if="checktoolArray.indexOf(48) == -1"
  8315. class="noChoose"
  8316. ></div>
  8317. <div v-else class="isChoose"></div>
  8318. </div>
  8319. </div>
  8320. </div>
  8321. <div class="toolSort" v-if="toolType == 6">
  8322. <div v-show="tooC == 49">
  8323. <img
  8324. @click="addTools(tooC, toolIndex, taskCount)"
  8325. src="../../assets/icon/fourthToolList/group.png"
  8326. alt
  8327. />
  8328. <div style="margin: 5px 0">{{ lang.ssStudentGroup }}</div>
  8329. </div>
  8330. </div>
  8331. <div class="toolSort" v-if="toolType == 2">
  8332. <div
  8333. class="tool"
  8334. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8335. @click="addTools2(16)"
  8336. >
  8337. <div class="whiteBIcon">
  8338. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8339. <div style="margin: 5px 0">{{ lang.ssHomework }}</div>
  8340. </div>
  8341. <div class="check">
  8342. <div
  8343. v-if="checktoolArray.indexOf(16) == -1"
  8344. class="noChoose"
  8345. ></div>
  8346. <div v-else class="isChoose"></div>
  8347. </div>
  8348. </div>
  8349. <div
  8350. class="tool"
  8351. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8352. @click="addTools2(50)"
  8353. >
  8354. <div class="whiteBIcon">
  8355. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8356. <div style="margin: 5px 0">{{ lang.ssBatchUpload }}</div>
  8357. </div>
  8358. <div class="check">
  8359. <div
  8360. v-if="checktoolArray.indexOf(50) == -1"
  8361. class="noChoose"
  8362. ></div>
  8363. <div v-else class="isChoose"></div>
  8364. </div>
  8365. </div>
  8366. </div>
  8367. <div class="toolSort" v-if="toolType == 3">
  8368. <div
  8369. class="tool"
  8370. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8371. @click="addTools2(18)"
  8372. >
  8373. <div class="whiteBIcon">
  8374. <img
  8375. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8376. alt
  8377. />
  8378. <div style="margin: 5px 0">{{ lang.ssTraining }}</div>
  8379. </div>
  8380. <div class="check">
  8381. <div
  8382. v-if="checktoolArray.indexOf(18) == -1"
  8383. class="noChoose"
  8384. ></div>
  8385. <div v-else class="isChoose"></div>
  8386. </div>
  8387. </div>
  8388. <div
  8389. class="tool"
  8390. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8391. @click="addTools2(21)"
  8392. >
  8393. <div class="whiteBIcon">
  8394. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8395. <div style="margin: 5px 0">{{ lang.ssAiotBlockly }}</div>
  8396. </div>
  8397. <div class="check">
  8398. <div
  8399. v-if="checktoolArray.indexOf(21) == -1"
  8400. class="noChoose"
  8401. ></div>
  8402. <div v-else class="isChoose"></div>
  8403. </div>
  8404. </div>
  8405. <div
  8406. class="tool"
  8407. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8408. @click="addTools2(23)"
  8409. >
  8410. <div class="whiteBIcon">
  8411. <img
  8412. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8413. alt
  8414. />
  8415. <div style="margin: 5px 0">{{ lang.ssAiPython }}</div>
  8416. </div>
  8417. <div class="check">
  8418. <div
  8419. v-if="checktoolArray.indexOf(23) == -1"
  8420. class="noChoose"
  8421. ></div>
  8422. <div v-else class="isChoose"></div>
  8423. </div>
  8424. </div>
  8425. <div
  8426. class="tool"
  8427. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8428. @click="addTools2(24)"
  8429. >
  8430. <div class="whiteBIcon">
  8431. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8432. <div style="margin: 5px 0">{{ lang.ssAiBlockly }}</div>
  8433. </div>
  8434. <div class="check">
  8435. <div
  8436. v-if="checktoolArray.indexOf(24) == -1"
  8437. class="noChoose"
  8438. ></div>
  8439. <div v-else class="isChoose"></div>
  8440. </div>
  8441. </div>
  8442. <div
  8443. class="tool"
  8444. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8445. @click="addTools2(32)"
  8446. >
  8447. <div class="whiteBIcon">
  8448. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8449. <div style="margin: 5px 0">{{ lang.ssCodeEdit }}</div>
  8450. </div>
  8451. <div class="check">
  8452. <div
  8453. v-if="checktoolArray.indexOf(32) == -1"
  8454. class="noChoose"
  8455. ></div>
  8456. <div v-else class="isChoose"></div>
  8457. </div>
  8458. </div>
  8459. <div
  8460. class="tool"
  8461. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8462. @click="addTools2(57)"
  8463. >
  8464. <div class="whiteBIcon">
  8465. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8466. <div style="margin: 5px 0">{{ lang.ssCocoPi }}</div>
  8467. </div>
  8468. <div class="check">
  8469. <div
  8470. v-if="checktoolArray.indexOf(57) == -1"
  8471. class="noChoose"
  8472. ></div>
  8473. <div v-else class="isChoose"></div>
  8474. </div>
  8475. </div>
  8476. <div
  8477. class="tool"
  8478. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8479. @click="addTools2(63)"
  8480. >
  8481. <div class="whiteBIcon">
  8482. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8483. <div style="margin: 5px 0">{{ lang.ssTurtle }}</div>
  8484. </div>
  8485. <div class="check">
  8486. <div
  8487. v-if="checktoolArray.indexOf(63) == -1"
  8488. class="noChoose"
  8489. ></div>
  8490. <div v-else class="isChoose"></div>
  8491. </div>
  8492. </div>
  8493. <div
  8494. class="tool"
  8495. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8496. @click="addTools2(71)"
  8497. >
  8498. <div class="whiteBIcon">
  8499. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  8500. <div style="margin: 5px 0">{{ lang.ssAiAgent }}</div>
  8501. </div>
  8502. <div class="check">
  8503. <div
  8504. v-if="checktoolArray.indexOf(71) == -1"
  8505. class="noChoose"
  8506. ></div>
  8507. <div v-else class="isChoose"></div>
  8508. </div>
  8509. </div>
  8510. </div>
  8511. <div class="toolSort" v-if="toolType == 7">
  8512. <div
  8513. class="tool"
  8514. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8515. @click="addTools2(40)"
  8516. >
  8517. <div class="whiteBIcon">
  8518. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8519. <div style="margin: 5px 0">{{ lang.ssPersonalEval }}</div>
  8520. </div>
  8521. <div class="check">
  8522. <div
  8523. v-if="checktoolArray.indexOf(40) == -1"
  8524. class="noChoose"
  8525. ></div>
  8526. <div v-else class="isChoose"></div>
  8527. </div>
  8528. </div>
  8529. </div>
  8530. <div class="toolSort" v-if="toolType == 5">
  8531. <div
  8532. class="tool"
  8533. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8534. @click="addTools2(28)"
  8535. >
  8536. <div class="whiteBIcon">
  8537. <img
  8538. src="../../assets/icon/secondToolList/translation.png"
  8539. alt
  8540. />
  8541. <div style="margin: 5px 0">{{ lang.ssTranslate }}</div>
  8542. </div>
  8543. <div class="check">
  8544. <div
  8545. v-if="checktoolArray.indexOf(28) == -1"
  8546. class="noChoose"
  8547. ></div>
  8548. <div v-else class="isChoose"></div>
  8549. </div>
  8550. </div>
  8551. <div
  8552. class="tool"
  8553. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8554. @click="addTools2(31)"
  8555. >
  8556. <div class="whiteBIcon">
  8557. <img
  8558. src="../../assets/icon/secondToolList/networkPanel.png"
  8559. alt
  8560. />
  8561. <div style="margin: 5px 0">{{ lang.ssDigitalBoard }}</div>
  8562. </div>
  8563. <div class="check">
  8564. <div
  8565. v-if="checktoolArray.indexOf(31) == -1"
  8566. class="noChoose"
  8567. ></div>
  8568. <div v-else class="isChoose"></div>
  8569. </div>
  8570. </div>
  8571. <div
  8572. class="tool"
  8573. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8574. @click="addTools2(39)"
  8575. >
  8576. <div class="whiteBIcon">
  8577. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8578. <div style="margin: 5px 0">{{ lang.ssGeogebra }}</div>
  8579. </div>
  8580. <div class="check">
  8581. <div
  8582. v-if="checktoolArray.indexOf(39) == -1"
  8583. class="noChoose"
  8584. ></div>
  8585. <div v-else class="isChoose"></div>
  8586. </div>
  8587. </div>
  8588. <div
  8589. class="tool"
  8590. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8591. @click="addTools2(66)"
  8592. >
  8593. <div class="whiteBIcon">
  8594. <img
  8595. src="../../assets/icon/secondToolList/formulaEdi.png"
  8596. alt
  8597. />
  8598. <div style="margin: 5px 0">{{ lang.ssFormula }}</div>
  8599. </div>
  8600. <div class="check">
  8601. <div
  8602. v-if="checktoolArray.indexOf(66) == -1"
  8603. class="noChoose"
  8604. ></div>
  8605. <div v-else class="isChoose"></div>
  8606. </div>
  8607. </div>
  8608. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8609. <div class="whiteBIcon" @click="addTools2(67)">
  8610. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8611. <div style="margin: 5px 0">分子结构</div>
  8612. </div>
  8613. <div class="check" @click="addTools2(67)">
  8614. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8615. <div v-else class="isChoose"></div>
  8616. </div>
  8617. </div> -->
  8618. <div
  8619. class="tool"
  8620. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8621. @click="addTools2(68)"
  8622. >
  8623. <div class="whiteBIcon">
  8624. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8625. <div style="margin: 5px 0">{{ lang.ssTimeline }}</div>
  8626. </div>
  8627. <div class="check">
  8628. <div
  8629. v-if="checktoolArray.indexOf(68) == -1"
  8630. class="noChoose"
  8631. ></div>
  8632. <div v-else class="isChoose"></div>
  8633. </div>
  8634. </div>
  8635. <!-- <div
  8636. class="tool"
  8637. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8638. @click="addTools2(69)"
  8639. >
  8640. <div class="whiteBIcon">
  8641. <img src="../../assets/icon/secondToolList/english.png" alt />
  8642. <div style="margin: 5px 0">英语写作</div>
  8643. </div>
  8644. <div class="check">
  8645. <div
  8646. v-if="checktoolArray.indexOf(69) == -1"
  8647. class="noChoose"
  8648. ></div>
  8649. <div v-else class="isChoose"></div>
  8650. </div>
  8651. </div> -->
  8652. </div>
  8653. <div class="toolSort" v-if="toolType == 4">
  8654. <div
  8655. class="tool"
  8656. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8657. @click="addTools2(26)"
  8658. >
  8659. <div class="whiteBIcon">
  8660. <img
  8661. src="../../assets/icon/thirdToolList/courseDesign.png"
  8662. alt
  8663. />
  8664. <div style="margin: 5px 0">{{ lang.ssCourseDesign }}</div>
  8665. </div>
  8666. <div class="check">
  8667. <div
  8668. v-if="checktoolArray.indexOf(26) == -1"
  8669. class="noChoose"
  8670. ></div>
  8671. <div v-else class="isChoose"></div>
  8672. </div>
  8673. </div>
  8674. <div
  8675. class="tool"
  8676. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8677. @click="addTools2(25)"
  8678. >
  8679. <div class="whiteBIcon">
  8680. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8681. <div style="margin: 5px 0">{{ lang.ssGoalManage }}</div>
  8682. </div>
  8683. <div class="check">
  8684. <div
  8685. v-if="checktoolArray.indexOf(25) == -1"
  8686. class="noChoose"
  8687. ></div>
  8688. <div v-else class="isChoose"></div>
  8689. </div>
  8690. </div>
  8691. </div>
  8692. </div>
  8693. </div>
  8694. <span
  8695. slot="footer"
  8696. class="dialog-footer"
  8697. style="display: block; text-align: center; padding: 0 0 10px 0"
  8698. >
  8699. <el-button @click="toolDialogVisible = false">{{ lang.ssCancel }}</el-button>
  8700. <el-button type="primary" @click.stop="addToolChoose">{{ lang.ssConfirm }}</el-button>
  8701. </span>
  8702. </div>
  8703. <div
  8704. v-if="replyDialogVisible == true"
  8705. class="addDialogCss"
  8706. v-el-drag-dialog
  8707. >
  8708. <div class="pzTop">
  8709. <div class="teacherPz">
  8710. <div class="teacherPzImg">
  8711. <img src="../../assets/icon/teacherPz.png" alt="" />
  8712. </div>
  8713. <div style="margin-left: 10px; height: 25px">{{ lang.ssAddReply }}</div>
  8714. </div>
  8715. <div @click="replyDialogVisible = false">
  8716. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8717. </div>
  8718. </div>
  8719. <div class="addPzBox">
  8720. <!-- <div class="addPzCheck">
  8721. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8722. >文本</span
  8723. >
  8724. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8725. >音频</span
  8726. >
  8727. </div> -->
  8728. <div style="height: calc(100% - 50px)">
  8729. <editor-bar
  8730. class="binfo_input pzConText"
  8731. style="width: 100% !important; margin: 0 auto"
  8732. :placeholder="lang.ssEnterReply"
  8733. v-model="reply"
  8734. @change="change"
  8735. ></editor-bar>
  8736. </div>
  8737. <div class="addTextCss" @click="addHf">{{ lang.ssConfirm }}</div>
  8738. </div>
  8739. </div>
  8740. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8741. <div class="pzTop">
  8742. <div class="teacherPz">
  8743. <div class="teacherPzImg">
  8744. <img src="../../assets/icon/teacherPz.png" alt="" />
  8745. </div>
  8746. <div style="margin-left: 10px; height: 25px">{{ lang.ssTeacherComment }}</div>
  8747. </div>
  8748. <div @click="addPzDialog = false">
  8749. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8750. </div>
  8751. </div>
  8752. <div class="addPzBox">
  8753. <div class="addPzCheck">
  8754. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8755. >{{ lang.ssText }}</span
  8756. >
  8757. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8758. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8759. >{{ lang.ssAudio }}</span
  8760. >
  8761. </div>
  8762. <div style="height: calc(100% - 95px)">
  8763. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8764. v-if="pzType == 1"></textarea> -->
  8765. <editor-bar
  8766. class="binfo_input pzConText"
  8767. style="width: 100% !important"
  8768. :placeholder="lang.ssEnterTaskDesc"
  8769. v-model="pzConText"
  8770. @change="change"
  8771. v-if="pzType == 1"
  8772. ></editor-bar>
  8773. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8774. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8775. <div @click="addImg($event)">
  8776. <el-button type="primary">上传图片</el-button>
  8777. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8778. @change="beforeUpload1($event, 4)" />
  8779. </div>
  8780. </div> -->
  8781. </div>
  8782. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8783. {{ lang.ssConfirm }}
  8784. </div>
  8785. </div>
  8786. </div>
  8787. <div v-if="proVisible" class="mask">
  8788. <div class="progressBox">
  8789. <!-- <div id="closePro" class="closeCss">
  8790. <img src="../../assets/icon/close.png" alt />
  8791. </div> -->
  8792. <div class="lbox">
  8793. <img src="../../assets/loading.gif" />{{ lang.ssUploading }}
  8794. </div>
  8795. <div style="margin-bottom: 10px">
  8796. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8797. </div>
  8798. <el-progress
  8799. :text-inside="true"
  8800. :stroke-width="20"
  8801. :percentage="progress"
  8802. style="width: 80%"
  8803. ></el-progress>
  8804. </div>
  8805. </div>
  8806. <div v-if="proVisible2" class="mask">
  8807. <div class="progressBox">
  8808. <div class="lbox">
  8809. <img src="../../assets/loading.gif" />{{lang.ssUploading}}
  8810. </div>
  8811. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8812. </div>
  8813. </div>
  8814. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8815. <img width="100%" :src="dialogImageUrl" alt />
  8816. </el-dialog>
  8817. <el-dialog
  8818. :title="noteName != '' ? noteName : lang.ssViewSurvey"
  8819. :visible.sync="dialogVisible5"
  8820. :append-to-body="true"
  8821. width="1000px"
  8822. :before-close="handleClose"
  8823. class="dialog_diy dialog_diy3"
  8824. >
  8825. <div>
  8826. <div
  8827. class="a_add_title"
  8828. style="
  8829. display: flex;
  8830. flex-direction: row;
  8831. align-items: center;
  8832. justify-content: center;
  8833. "
  8834. >
  8835. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitle }}:</div>
  8836. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8837. </div>
  8838. <div class="a_addBox">
  8839. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8840. {{ lang.ssQuestionContent }}
  8841. </div>
  8842. <div
  8843. class="a_add_box"
  8844. v-for="(item1, index1) in askJson.askCount"
  8845. :key="index1"
  8846. >
  8847. <div class="a_add_head">
  8848. <div style="display: flex">
  8849. <span class="askIndex"> {{ index1 + 1 }}</span>
  8850. <div>{{ lang.ssQuestion }}:{{ askJson.askJson[index1].askstitle }}</div>
  8851. </div>
  8852. <img
  8853. v-if="askJson.askJson[index1].img"
  8854. :src="askJson.askJson[index1].img"
  8855. style="height: 300px; margin-top: 10px; max-width: 100%"
  8856. />
  8857. </div>
  8858. <div class="a_add_body">
  8859. <div class="a_add_input">
  8860. <el-radio-group
  8861. v-model="radio[index1]"
  8862. v-if="
  8863. askJson.askJson[index1].type == '1' ||
  8864. !askJson.askJson[index1].type
  8865. "
  8866. >
  8867. <el-radio
  8868. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8869. .checkList"
  8870. :key="checkIndex"
  8871. :label="checkIndex"
  8872. :disabled="isAnswer"
  8873. class="redioStyle"
  8874. ><span v-html="item2"></span
  8875. ></el-radio>
  8876. </el-radio-group>
  8877. <el-checkbox-group
  8878. v-model="radio[index1]"
  8879. v-if="askJson.askJson[index1].type == '2'"
  8880. >
  8881. <el-checkbox
  8882. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8883. .checkList"
  8884. :key="checkIndex1"
  8885. :label="checkIndex1"
  8886. :disabled="isAnswer"
  8887. class="redioStyle"
  8888. ><span v-html="item2"></span>
  8889. </el-checkbox>
  8890. </el-checkbox-group>
  8891. </div>
  8892. </div>
  8893. </div>
  8894. </div>
  8895. </div>
  8896. <span slot="footer" class="dialog-footer">
  8897. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8898. >{{lang.ssCancel}}</el-button
  8899. >
  8900. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8901. >{{lang.ssConfirm}}</el-button
  8902. >
  8903. </span>
  8904. </el-dialog>
  8905. <el-dialog
  8906. :title="noteName != '' ? noteName : lang.ssViewSurvey"
  8907. :visible.sync="dialogVisible5Teacher"
  8908. :append-to-body="true"
  8909. width="1000px"
  8910. :before-close="handleClose"
  8911. class="dialog_diy dialog_diy3"
  8912. >
  8913. <div>
  8914. <div class="w_name">
  8915. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  8916. </div>
  8917. <div
  8918. class="a_add_title"
  8919. style="
  8920. display: flex;
  8921. flex-direction: row;
  8922. align-items: center;
  8923. justify-content: center;
  8924. "
  8925. >
  8926. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitle }}:</div>
  8927. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8928. </div>
  8929. <div class="a_addBox">
  8930. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8931. {{ lang.ssQuestionContent }}
  8932. </div>
  8933. <div
  8934. class="a_add_box"
  8935. v-for="(item1, index1) in askJson.askCount"
  8936. :key="index1"
  8937. >
  8938. <div class="a_add_head">
  8939. <div style="display: flex">
  8940. <span class="askIndex">{{ index1 + 1 }}</span>
  8941. <div>{{ lang.ssQuestion }}:{{ askJson.askJson[index1].askstitle }}</div>
  8942. </div>
  8943. <img
  8944. v-if="askJson.askJson[index1].img"
  8945. :src="askJson.askJson[index1].img"
  8946. style="height: 300px; margin-top: 10px; max-width: 100%"
  8947. />
  8948. </div>
  8949. <div class="a_add_body">
  8950. <div class="a_add_input">
  8951. <el-radio-group
  8952. v-model="radio[index1]"
  8953. v-if="
  8954. askJson.askJson[index1].type == '1' ||
  8955. !askJson.askJson[index1].type
  8956. "
  8957. >
  8958. <el-radio
  8959. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8960. .checkList"
  8961. :key="checkIndex"
  8962. :label="checkIndex"
  8963. :disabled="isAnswer"
  8964. class="redioStyle"
  8965. ><span v-html="item2"></span
  8966. ></el-radio>
  8967. </el-radio-group>
  8968. <el-checkbox-group
  8969. v-model="radio[index1]"
  8970. v-if="askJson.askJson[index1].type == '2'"
  8971. >
  8972. <el-checkbox
  8973. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8974. .checkList"
  8975. :key="checkIndex1"
  8976. :label="checkIndex1"
  8977. :disabled="isAnswer"
  8978. class="redioStyle"
  8979. ><span v-html="item2"></span>
  8980. </el-checkbox>
  8981. </el-checkbox-group>
  8982. </div>
  8983. </div>
  8984. </div>
  8985. </div>
  8986. </div>
  8987. <span slot="footer" class="dialog-footer">
  8988. <el-button
  8989. @click="dialogVisible5Teacher = false"
  8990. v-show="noteName == ''"
  8991. >{{lang.ssCancel}}</el-button
  8992. >
  8993. <el-button
  8994. type="primary"
  8995. @click="addStudentAskTeacher"
  8996. v-show="noteName == ''"
  8997. >{{lang.ssConfirm}}</el-button
  8998. >
  8999. </span>
  9000. </el-dialog>
  9001. <el-dialog
  9002. :title="noteName != '' ? noteName : lang.ssViewChoice"
  9003. :visible.sync="dialogVisibleChoice"
  9004. :append-to-body="true"
  9005. width="1000px"
  9006. :before-close="handleClose"
  9007. class="dialog_diy dialog_diy3"
  9008. >
  9009. <div>
  9010. <!-- <div class="a_add_title" style="
  9011. display: flex;
  9012. flex-direction: row;
  9013. align-items: center;
  9014. justify-content: center;
  9015. ">
  9016. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitle }}:</div>
  9017. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9018. </div> -->
  9019. <div class="a_addBox">
  9020. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9021. {{ lang.ssQuestionContent }}
  9022. </div>
  9023. <div
  9024. class="a_add_box"
  9025. v-for="(item1, index1) in testJson.testCount"
  9026. :key="index1"
  9027. >
  9028. <div class="a_add_head">
  9029. <div style="display: flex;">
  9030. <span class="askIndex">{{ index1 + 1 }}</span>
  9031. <div
  9032. v-if="testJson.testJson[index1].type == '1'"
  9033. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9034. >
  9035. ({{ lang.ssSingleChoice }})
  9036. </div>
  9037. <div
  9038. v-if="testJson.testJson[index1].type == '2'"
  9039. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9040. >
  9041. ({{ lang.ssMultiChoice }})
  9042. </div>
  9043. <div class="renderedFor">{{lang.ssQuestion}}:<span v-html="testJson.testJson[index1].teststitle"></span></div>
  9044. </div>
  9045. <img
  9046. v-if="testJson.testJson[index1].img"
  9047. :src="testJson.testJson[index1].img"
  9048. style="height: 300px; margin-top: 10px; max-width: 100%"
  9049. />
  9050. </div>
  9051. <div
  9052. class="timuImgBox"
  9053. v-if="
  9054. testJson.testJson[index1].timuList &&
  9055. testJson.testJson[index1].timuList.length
  9056. "
  9057. >
  9058. <div
  9059. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9060. :key="tIndex"
  9061. class="timuImg"
  9062. @click.stop="previewImg(timg.src)"
  9063. >
  9064. <img :src="timg.src" alt="" />
  9065. </div>
  9066. </div>
  9067. <div class="a_add_body">
  9068. <div class="a_add_input">
  9069. <el-radio-group
  9070. v-model="radio[index1]"
  9071. v-if="testJson.testJson[index1].type == '1'"
  9072. >
  9073. <div class="radioBox">
  9074. <el-radio
  9075. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9076. .checkList"
  9077. :key="checkIndex"
  9078. :label="checkIndex"
  9079. :disabled="isAnswer"
  9080. class="redioStyle"
  9081. >
  9082. <div
  9083. style="margin-right: 10px"
  9084. v-if="item2 && item2.imgType && item2.imgType == 1"
  9085. >
  9086. <div class="inImg" @click.stop="previewImg(item2.src)">
  9087. <img :src="item2.src" alt="" />
  9088. </div>
  9089. </div>
  9090. <span v-else v-html="item2"></span>
  9091. </el-radio>
  9092. </div>
  9093. </el-radio-group>
  9094. <el-checkbox-group
  9095. v-model="radio[index1]"
  9096. v-if="testJson.testJson[index1].type == '2'"
  9097. >
  9098. <div class="radioBox">
  9099. <el-checkbox
  9100. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9101. .checkList"
  9102. :key="checkIndex"
  9103. :label="checkIndex"
  9104. :disabled="isAnswer"
  9105. class="redioStyle"
  9106. >
  9107. <div
  9108. style="margin-right: 10px"
  9109. v-if="item2 && item2.imgType && item2.imgType == 1"
  9110. >
  9111. <div class="inImg" @click.stop="previewImg(item2.src)">
  9112. <img :src="item2.src" alt="" />
  9113. </div>
  9114. </div>
  9115. <span v-else v-html="item2"></span>
  9116. </el-checkbox>
  9117. </div>
  9118. </el-checkbox-group>
  9119. </div>
  9120. </div>
  9121. </div>
  9122. </div>
  9123. </div>
  9124. <span slot="footer" class="dialog-footer">
  9125. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9126. >{{lang.ssCancel}}</el-button
  9127. >
  9128. <el-button
  9129. type="primary"
  9130. @click="addStudentTest"
  9131. v-show="noteName == ''"
  9132. >{{lang.ssConfirm}}</el-button
  9133. >
  9134. </span>
  9135. </el-dialog>
  9136. <el-dialog
  9137. :title="noteName != '' ? noteName : lang.ssViewChoice"
  9138. :visible.sync="dialogVisibleChoiceTeacher"
  9139. :append-to-body="true"
  9140. width="1000px"
  9141. :before-close="handleClose"
  9142. class="dialog_diy dialog_diy3"
  9143. >
  9144. <div>
  9145. <div class="w_name">
  9146. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  9147. </div>
  9148. <div class="a_addBox">
  9149. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9150. {{ lang.ssQuestionContent }}
  9151. </div>
  9152. <div
  9153. class="a_add_box"
  9154. v-for="(item1, index1) in testJson.testCount"
  9155. :key="index1"
  9156. >
  9157. <div class="a_add_head">
  9158. <div style="display: flex">
  9159. <span class="askIndex">{{ index1 + 1 }}</span>
  9160. <div
  9161. v-if="testJson.testJson[index1].type == '1'"
  9162. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9163. >
  9164. ({{ lang.ssSingleChoice }})
  9165. </div>
  9166. <div
  9167. v-if="testJson.testJson[index1].type == '2'"
  9168. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9169. >
  9170. ({{ lang.ssMultiChoice }})
  9171. </div>
  9172. <div>{{lang.ssQuestion}}:{{ testJson.testJson[index1].teststitle }}</div>
  9173. </div>
  9174. <img
  9175. v-if="testJson.testJson[index1].img"
  9176. :src="testJson.testJson[index1].img"
  9177. style="height: 300px; margin-top: 10px; max-width: 100%"
  9178. />
  9179. </div>
  9180. <div
  9181. class="timuImgBox"
  9182. v-if="
  9183. testJson.testJson[index1].timuList &&
  9184. testJson.testJson[index1].timuList.length
  9185. "
  9186. >
  9187. <div
  9188. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9189. :key="tIndex"
  9190. class="timuImg"
  9191. @click.stop="previewImg(timg.src)"
  9192. >
  9193. <img :src="timg.src" alt="" />
  9194. </div>
  9195. </div>
  9196. <div class="a_add_body">
  9197. <div class="a_add_input">
  9198. <el-radio-group
  9199. v-model="radio[index1]"
  9200. v-if="testJson.testJson[index1].type == '1'"
  9201. >
  9202. <div class="radioBox">
  9203. <el-radio
  9204. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9205. .checkList"
  9206. :key="checkIndex"
  9207. :label="checkIndex"
  9208. :disabled="isAnswer"
  9209. class="redioStyle"
  9210. >
  9211. <div
  9212. style="margin-right: 10px"
  9213. v-if="item2 && item2.imgType && item2.imgType == 1"
  9214. >
  9215. <div class="inImg" @click.stop="previewImg(item2.src)">
  9216. <img :src="item2.src" alt="" />
  9217. </div>
  9218. </div>
  9219. <span v-else v-html="item2"></span>
  9220. </el-radio>
  9221. </div>
  9222. </el-radio-group>
  9223. <el-checkbox-group
  9224. v-model="radio[index1]"
  9225. v-if="testJson.testJson[index1].type == '2'"
  9226. >
  9227. <div class="radioBox">
  9228. <el-checkbox
  9229. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9230. .checkList"
  9231. :key="checkIndex"
  9232. :label="checkIndex"
  9233. :disabled="isAnswer"
  9234. class="redioStyle"
  9235. >
  9236. <div
  9237. style="margin-right: 10px"
  9238. v-if="item2 && item2.imgType && item2.imgType == 1"
  9239. >
  9240. <div class="inImg" @click.stop="previewImg(item2.src)">
  9241. <img :src="item2.src" alt="" />
  9242. </div>
  9243. </div>
  9244. <span v-else v-html="item2"></span>
  9245. </el-checkbox>
  9246. </div>
  9247. </el-checkbox-group>
  9248. </div>
  9249. </div>
  9250. </div>
  9251. </div>
  9252. </div>
  9253. <span slot="footer" class="dialog-footer">
  9254. <el-button
  9255. @click="dialogVisibleChoiceTeacher = false"
  9256. v-show="noteName == ''"
  9257. >{{lang.ssCancel}}</el-button
  9258. >
  9259. <el-button
  9260. type="primary"
  9261. @click="addStudentTestTeacher"
  9262. v-show="noteName == ''"
  9263. >{{lang.ssConfirm}}</el-button
  9264. >
  9265. </span>
  9266. </el-dialog>
  9267. <el-dialog
  9268. :title="lang.ssViewRichText"
  9269. :visible.sync="dialogVisible1"
  9270. :append-to-body="true"
  9271. width="500px"
  9272. :before-close="handleClose"
  9273. class="dialog_diy textCss"
  9274. >
  9275. <el-form style="font-size: 20px">
  9276. <el-form-item :label="lang.ssTextTitle" class="textTitle">
  9277. <div style="font-size: 20px">{{ text.name }}</div>
  9278. </el-form-item>
  9279. <div>{{ lang.ssRichTextContent }}</div>
  9280. <div
  9281. v-html="text.url"
  9282. style="font-size: 18px; padding: 40px 0 0 0"
  9283. ></div>
  9284. </el-form>
  9285. <span slot="footer" class="dialog-footer">
  9286. <el-button type="primary" @click="dialogVisible1 = false"
  9287. >{{ lang.ssConfirm }}</el-button
  9288. >
  9289. </span>
  9290. </el-dialog>
  9291. <el-dialog
  9292. :title="lang.ssFilePreview"
  9293. :visible.sync="dialogVisible3"
  9294. width="50%"
  9295. :before-close="handleClose"
  9296. class="dialog_diy"
  9297. :class="{ fullStyle: full }"
  9298. >
  9299. <div slot="title" class="header-title">
  9300. <div style="color: #fff">{{lang.ssFilePreview}}</div>
  9301. <div style="position: absolute; top: 19px; right: 50px">
  9302. <img
  9303. src="../../assets/full.png"
  9304. style="height: 16px; cursor: pointer"
  9305. alt=""
  9306. @click="fullTools"
  9307. />
  9308. </div>
  9309. </div>
  9310. <pdf
  9311. v-if="showPDF"
  9312. :pdfUrl="pptImgUrl"
  9313. style="width: 100%; height: 520px; overflow: auto"
  9314. :class="{ fullStyle: full }"
  9315. ></pdf>
  9316. <iframe
  9317. v-else
  9318. :src="pptImgUrl"
  9319. frameborder="0"
  9320. width="100%"
  9321. height="600"
  9322. :class="{ fullStyle: full }"
  9323. ></iframe>
  9324. </el-dialog>
  9325. <el-dialog
  9326. :title="lang.ssFilePreview"
  9327. :visible.sync="dialogVisible6"
  9328. width="50%"
  9329. :before-close="handleClose"
  9330. class="dialog_diy"
  9331. >
  9332. <iframe
  9333. :src="pptImgUrl1"
  9334. frameborder="0"
  9335. width="100%"
  9336. height="600"
  9337. ></iframe>
  9338. </el-dialog>
  9339. <el-dialog
  9340. :title="lang.ssPrompt"
  9341. :visible.sync="dialogVisible4"
  9342. :append-to-body="true"
  9343. width="800px"
  9344. :before-close="handleClose"
  9345. class="dialog_diy notice"
  9346. >
  9347. <div>{{lang.ssFeatureNotAvail}}</div>
  9348. <el-button type="primary" @click="dialogVisible4 = false">{{lang.ssConfirm}}</el-button>
  9349. </el-dialog>
  9350. <el-dialog
  9351. :title="lang.ssQa"
  9352. :visible.sync="answerDialogVisible"
  9353. :append-to-body="true"
  9354. width="800px"
  9355. :before-close="handleClose"
  9356. class="dialog_diy"
  9357. >
  9358. <div>
  9359. <div
  9360. style="
  9361. display: flex;
  9362. flex-wrap: nowrap;
  9363. flex-direction: column;
  9364. position: relative;
  9365. "
  9366. >
  9367. <div class="queTop" style="padding: 20px 0 20px 0">
  9368. <div class="question">
  9369. <img src="../../assets/icon/question.png" alt />
  9370. </div>
  9371. <div class="queTitle">
  9372. <div style="min-width: 60px">{{lang.ssAsk}}:</div>
  9373. <div>{{ answerQ }}</div>
  9374. </div>
  9375. </div>
  9376. <div class="ediBottom">
  9377. <textarea
  9378. rows="6"
  9379. class="binfo_input"
  9380. cols
  9381. style="width: 95%; height: 120px"
  9382. v-model="questionAnswer"
  9383. ></textarea>
  9384. </div>
  9385. </div>
  9386. </div>
  9387. <div slot="footer">
  9388. <el-button @click="answerDialogVisible = false">{{lang.ssCancel}}</el-button>
  9389. <el-button type="primary" @click="addQuestion">{{lang.ssSubmitAnswer}}</el-button>
  9390. </div>
  9391. </el-dialog>
  9392. <el-dialog
  9393. :title="lang.ssQa"
  9394. :visible.sync="answerDialogVisibleTeacher"
  9395. :append-to-body="true"
  9396. width="800px"
  9397. :before-close="handleClose"
  9398. class="dialog_diy"
  9399. >
  9400. <div>
  9401. <div class="w_name">
  9402. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  9403. </div>
  9404. <div
  9405. style="
  9406. display: flex;
  9407. flex-wrap: nowrap;
  9408. flex-direction: column;
  9409. position: relative;
  9410. "
  9411. >
  9412. <div class="queTop" style="padding: 20px 0 20px 0">
  9413. <div class="question">
  9414. <img src="../../assets/icon/question.png" alt />
  9415. </div>
  9416. <div class="queTitle">
  9417. <div style="min-width: 60px">{{lang.ssAsk}}:</div>
  9418. <div>{{ answerQ }}</div>
  9419. </div>
  9420. </div>
  9421. <div class="ediBottom">
  9422. <textarea
  9423. rows="6"
  9424. class="binfo_input"
  9425. cols
  9426. style="width: 95%; height: 120px"
  9427. v-model="questionAnswer"
  9428. ></textarea>
  9429. </div>
  9430. </div>
  9431. </div>
  9432. <div slot="footer">
  9433. <el-button @click="answerDialogVisibleTeacher = false">{{lang.ssCancel}}</el-button>
  9434. <el-button type="primary" @click="addQuestionTeacher">{{lang.ssSubmitAnswer}}</el-button>
  9435. </div>
  9436. </el-dialog>
  9437. <el-dialog
  9438. :title="lang.ssCountdown"
  9439. :visible.sync="timeDialogVisible"
  9440. :append-to-body="true"
  9441. width="800px"
  9442. :before-close="handleClose"
  9443. class="dialog_diy"
  9444. >
  9445. <div>
  9446. <div style="margin-bottom: 20px; color: #999">
  9447. {{lang.ssCountdownHint}}
  9448. </div>
  9449. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9450. </div>
  9451. <div slot="footer">
  9452. <el-button @click="timeDialogVisible = false">{{lang.ssCloseBtn}}</el-button>
  9453. </div>
  9454. </el-dialog>
  9455. <el-dialog
  9456. :title="lang.ssPermissionSetting"
  9457. :visible.sync="juriVisible"
  9458. :append-to-body="true"
  9459. width="400px"
  9460. :before-close="handleClose"
  9461. class="dialog_diy"
  9462. >
  9463. <div>
  9464. <div class="open_box">
  9465. <div class="switch_box">
  9466. <span>{{ lang.ssAllowViewAllHomework }}</span>
  9467. <el-switch
  9468. v-model="sIsOpen"
  9469. active-text=""
  9470. class="switchCss"
  9471. @change="updateSLook"
  9472. ></el-switch>
  9473. </div>
  9474. <div
  9475. class="switch_box"
  9476. v-if="
  9477. (courseDetail.userid == userid ||
  9478. (courseDetail.course_teacher &&
  9479. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  9480. "
  9481. >
  9482. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9483. <span>{{ lang.ssProhibitViewStage }}</span>
  9484. <el-switch
  9485. v-model="IsLookOpen"
  9486. active-text=""
  9487. class="switchCss"
  9488. @change="updateLookOpen"
  9489. ></el-switch>
  9490. </div>
  9491. <div class="switch_box" v-if="(courseDetail.userid == userid ||
  9492. (courseDetail.course_teacher &&
  9493. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen">
  9494. <span>{{ lang.ssEnableFollowMode }}</span>
  9495. <el-switch
  9496. v-model="IsFollow"
  9497. active-text=""
  9498. class="switchCss"
  9499. @change="updateFollow"
  9500. ></el-switch>
  9501. </div>
  9502. <div class="switch_box" v-if="courseDetail.userid == userid">
  9503. <span>{{ lang.ssAllowViewContent }}</span>
  9504. <el-switch
  9505. v-model="IsStulook"
  9506. active-text=""
  9507. class="switchCss"
  9508. @change="updateIsStulook"
  9509. ></el-switch>
  9510. </div>
  9511. </div>
  9512. </div>
  9513. <div slot="footer">
  9514. <el-button
  9515. style="background: #409efe; color: #fff"
  9516. @click="juriVisible = false"
  9517. >{{lang.ssCloseBtn}}</el-button
  9518. >
  9519. </div>
  9520. </el-dialog>
  9521. <el-dialog
  9522. :title="lang.ssViewVideo"
  9523. :visible.sync="videoVisible"
  9524. :append-to-body="true"
  9525. width="1000px"
  9526. :before-close="handleClose"
  9527. class="dialog_diy1"
  9528. >
  9529. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9530. <video-player
  9531. class="video-player vjs-custom-skin"
  9532. :playsinline="true"
  9533. :options="videoDetail"
  9534. @play="onPlayerPlay($event)"
  9535. style="width: 100%; height: 100%"
  9536. ></video-player>
  9537. </div>
  9538. <div slot="footer">
  9539. <el-button
  9540. style="background: #409efe; color: #fff"
  9541. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9542. >
  9543. {{ lang.ssCloseBtn }}</el-button
  9544. >
  9545. </div>
  9546. </el-dialog>
  9547. <el-dialog
  9548. :title="lang.ssViewDetails"
  9549. :visible.sync="commentDialogVisible"
  9550. :append-to-body="true"
  9551. width="800px"
  9552. :before-close="handleClose"
  9553. class="dialog_diy"
  9554. >
  9555. <div class="commentTop">
  9556. <div class="studentDetail">
  9557. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9558. <div class="nameAndTime">
  9559. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9560. <div>{{ commentDetail.time }}</div>
  9561. </div>
  9562. <div
  9563. class="returnBtn"
  9564. style="margin-left: auto; width: 80px"
  9565. v-if="
  9566. commentDetail.works &&
  9567. commentDetail.type == 0 &&
  9568. (tType == 1 || tType == 4)
  9569. "
  9570. @click="
  9571. showPicturePaint(
  9572. commentDetail.img ? commentDetail.img : commentDetail.works
  9573. )
  9574. "
  9575. >
  9576. {{ lang.ssTeacherAnnotation }}
  9577. </div>
  9578. </div>
  9579. <div
  9580. class="worksAnswer"
  9581. v-if="commentDetail.works && commentDetail.type == 2"
  9582. >
  9583. {{ JSON.parse(commentDetail.works)[0].answer }}
  9584. </div>
  9585. <div
  9586. class="worksAnswer"
  9587. v-if="commentDetail.works && commentDetail.type == 1"
  9588. >
  9589. <img
  9590. src="../../assets/teacherWork.png"
  9591. v-if="commentDetail.ateacher"
  9592. class="w_teachert"
  9593. />
  9594. <pdf
  9595. v-if="showPDF"
  9596. :pdfUrl="pptImgUrl"
  9597. style="width: 100%; height: 520px; overflow: auto"
  9598. :class="{ fullStyle: full }"
  9599. ></pdf>
  9600. <iframe
  9601. v-else
  9602. :src="pptImgUrl"
  9603. frameborder="0"
  9604. width="100%"
  9605. height="600"
  9606. :class="{ fullStyle: full }"
  9607. ></iframe>
  9608. </div>
  9609. <div
  9610. class="worksAnswer"
  9611. v-if="commentDetail.works && commentDetail.type == 0"
  9612. >
  9613. <img
  9614. src="../../assets/teacherWork.png"
  9615. v-if="commentDetail.ateacher"
  9616. class="w_teachert"
  9617. style="right: 105px"
  9618. />
  9619. <img
  9620. :src="commentDetail.works"
  9621. alt=""
  9622. @click="previewImg(commentDetail.works)"
  9623. />
  9624. </div>
  9625. <div
  9626. class="worksAnswer"
  9627. v-if="commentDetail.works && commentDetail.type == 3"
  9628. >
  9629. <img
  9630. src="../../assets/teacherWork.png"
  9631. v-if="commentDetail.ateacher"
  9632. class="w_teachert"
  9633. />
  9634. <video-player
  9635. class="video-player vjs-custom-skin"
  9636. :playsinline="true"
  9637. :options="videoDetail"
  9638. @play="onPlayerPlay($event)"
  9639. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9640. ></video-player>
  9641. </div>
  9642. <div
  9643. class="worksAnswer"
  9644. v-if="commentDetail.works && commentDetail.type == 10"
  9645. >
  9646. <div class="cont" v-html="commentDetail.works.text"></div>
  9647. </div>
  9648. <div
  9649. class="worksAnswer codeFileBox"
  9650. v-if="commentDetail.works && commentDetail.type == 12"
  9651. @click="downloadFile(commentDetail.works)"
  9652. >
  9653. <img src="../../assets/icon/codeFile.png" />
  9654. <div>{{ lang.ssClickDownloadFile }}</div>
  9655. </div>
  9656. <div
  9657. class="worksAnswer codeFileBox"
  9658. v-if="commentDetail.works && commentDetail.type == 15"
  9659. @click="
  9660. openCocoPi(
  9661. 57,
  9662. commentIndexJson.toolIndex,
  9663. commentDetail.userid,
  9664. commentDetail.sName
  9665. )
  9666. "
  9667. >
  9668. <img src="../../assets/icon/codeFile.png" />
  9669. <div>{{ lang.ssClickOpenCocoPi }}</div>
  9670. </div>
  9671. <div
  9672. class="worksAnswer"
  9673. v-if="commentDetail.works && commentDetail.type == 13"
  9674. >
  9675. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9676. </div>
  9677. <div
  9678. class="worksAnswer"
  9679. v-if="commentDetail.works && commentDetail.type == 4"
  9680. >
  9681. <div class="evalCss">
  9682. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  9683. <div class="middleBox" v-if="eScore.eStar">
  9684. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9685. <div class="nameAndrate">
  9686. <div>{{ e.value }}</div>
  9687. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9688. </div>
  9689. <div v-if="e.detail">{{ e.detail }}</div>
  9690. </div>
  9691. <div class="bz">
  9692. <textarea
  9693. disabled
  9694. rows="4"
  9695. class="pj"
  9696. style="
  9697. padding: 10px 5px;
  9698. width: 70%;
  9699. background: #f7f6f9;
  9700. font-size: 14px;
  9701. text-indent: 10px;
  9702. color: #000;
  9703. "
  9704. cols
  9705. v-model="eScore.eBzText"
  9706. :placeholder="lang.ssEnterEvalContent"
  9707. ></textarea>
  9708. </div>
  9709. </div>
  9710. </div>
  9711. </div>
  9712. <div class="comment">
  9713. <div class="commentList">
  9714. <div class="commentImg">
  9715. <img
  9716. @click="
  9717. isLikes(
  9718. commentDetail.wid,
  9719. userid,
  9720. 1,
  9721. null,
  9722. commentDetail.isLikes,
  9723. commentDetail.sName
  9724. )
  9725. "
  9726. :src="commentDetail.isLikes == true ? likes : noLikes"
  9727. alt=""
  9728. />
  9729. </div>
  9730. <div>{{ commentDetail.likesCount }}</div>
  9731. </div>
  9732. <div class="commentList">
  9733. <div class="commentImg">
  9734. <img src="../../assets/icon/comment/comment.png" alt="" />
  9735. </div>
  9736. <div>{{ commentDetail.commentCount }}</div>
  9737. </div>
  9738. </div>
  9739. <div class="drawPBox" v-if="commentDetail.img">
  9740. <span>{{ lang.ssTeacherAnnotation }}</span>
  9741. <img
  9742. :src="commentDetail.img"
  9743. alt=""
  9744. @click="previewImg(commentDetail.img)"
  9745. />
  9746. <span
  9747. class="deleteImg"
  9748. v-if="tType == 1 || tType == 4"
  9749. @click.stop="deletePicturePaint(commentDetail.wid)"
  9750. style="
  9751. font-size: 14px;
  9752. width: auto !important;
  9753. color: #b4b4b4;
  9754. top: unset;
  9755. bottom: 0;
  9756. border: none;
  9757. padding: 0;
  9758. height: auto !important;
  9759. margin: 0;
  9760. "
  9761. >{{lang.ssDelete}}</span
  9762. >
  9763. </div>
  9764. </div>
  9765. <div class="commentBox">
  9766. <div class="pl">{{lang.ssCommentLabel}}</div>
  9767. <div style="max-height: 200px; overflow: auto">
  9768. <div
  9769. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9770. style="padding: 10px 0 0 0"
  9771. >
  9772. <div
  9773. class="studentDetail"
  9774. style="padding-top: 10px"
  9775. v-for="(co, coIndex) in commentDetail.commentJson"
  9776. :key="coIndex"
  9777. >
  9778. <div class="tx" style="min-width: 50px">
  9779. <img src="../../assets/avatar.png" alt="" />
  9780. </div>
  9781. <div class="plPerson">
  9782. <div class="plName">
  9783. <div>{{ co.commentPeople }}</div>
  9784. <div style="margin-left: 5px">
  9785. {{ co.commentTime }}
  9786. </div>
  9787. <div
  9788. class="deleteComment"
  9789. v-if="userid == co.userid"
  9790. @click="deleteComment(co.wid)"
  9791. >
  9792. {{lang.ssDelete}}
  9793. </div>
  9794. </div>
  9795. <div class="plContent">{{ co.commentText }}</div>
  9796. </div>
  9797. </div>
  9798. </div>
  9799. <div v-else style="padding: 10px 0 0 0">{{ lang.ssNoComments }}</div>
  9800. </div>
  9801. </div>
  9802. <div style="margin-top: 10px">
  9803. <div class="displayBox">
  9804. <div
  9805. style="
  9806. color: #556db4;
  9807. font-size: 14px;
  9808. font-weight: bold;
  9809. padding-bottom: 10px;
  9810. "
  9811. >
  9812. {{ lang.ssEvaluation }}
  9813. </div>
  9814. <div class="easy_comment" v-if="false">
  9815. <div
  9816. v-for="(p, pIndex) in PlTextList"
  9817. :key="pIndex"
  9818. @click="fastText(p, 1)"
  9819. >
  9820. {{ p }}
  9821. </div>
  9822. </div>
  9823. </div>
  9824. <div>
  9825. <textarea
  9826. rows="3"
  9827. class="pj"
  9828. style="padding: 10px 5px"
  9829. cols
  9830. v-model="commentText"
  9831. :placeholder="lang.ssEnterComment"
  9832. ></textarea>
  9833. </div>
  9834. </div>
  9835. <div slot="footer">
  9836. <el-button
  9837. @click="
  9838. (commentDialogVisible = false),
  9839. (commentIndexJson = {}),
  9840. videoDetail.sources && videoDetail.sources[0]
  9841. ? (videoDetail.sources[0].src = '')
  9842. : ''
  9843. "
  9844. >{{lang.ssCancel}}</el-button
  9845. >
  9846. <el-button
  9847. type="primary"
  9848. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  9849. >{{lang.ssConfirm}}</el-button
  9850. >
  9851. </div>
  9852. </el-dialog>
  9853. <el-dialog
  9854. :title="lang.ssViewDoc"
  9855. :visible.sync="fullDialogVisible"
  9856. :append-to-body="true"
  9857. width="100%"
  9858. :before-close="handleClose"
  9859. :show-close="false"
  9860. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  9861. >
  9862. <div slot="title" class="header-title">
  9863. <div v-if="fulltype == 4" style="color: #fff">{{ lang.ssAIApplication }}</div>
  9864. <div v-else style="color: #fff">{{ lang.ssViewDoc }}</div>
  9865. <div
  9866. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  9867. style="
  9868. cursor: pointer;
  9869. position: absolute;
  9870. top: 20px;
  9871. right: 20px;
  9872. color: #fff;
  9873. "
  9874. >
  9875. {{ lang.ssExitFullscreen }}
  9876. </div>
  9877. </div>
  9878. <div style="height: 100%;position: relative;">
  9879. <el-button
  9880. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  9881. size="medium"
  9882. type="primary"
  9883. @click="
  9884. () => {
  9885. (fullDialogVisible = false),
  9886. changeSplitScreenBehavior({ code: 99 });
  9887. }
  9888. "
  9889. style="
  9890. cursor: pointer;
  9891. position: absolute;
  9892. top: 10px;
  9893. right: 20px;
  9894. color: #fff;
  9895. "
  9896. >
  9897. {{ lang.ssExitFullscreen }}
  9898. </el-button>
  9899. <div
  9900. class="wheel"
  9901. v-if="fulltype == 1"
  9902. style="
  9903. box-shadow: 0 0 6px 1px #f2f2f2;
  9904. height:100%;
  9905. width: 100%;
  9906. background: #f1f1f1;
  9907. "
  9908. >
  9909. <div class="title" style="width: 100%; box-sizing: border-box">
  9910. {{ lang.ssViewDoc }}
  9911. </div>
  9912. <el-form class="textBox" style="height: 90%">
  9913. <el-form-item class="textTitle">
  9914. <div style="font-size: 22px">
  9915. {{ fullUrl.name }}
  9916. </div>
  9917. </el-form-item>
  9918. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9919. <div
  9920. v-html="fullUrl.url"
  9921. class="textContent"
  9922. style="height: auto"
  9923. ></div>
  9924. </el-form>
  9925. </div>
  9926. <div
  9927. class="wheel"
  9928. v-else-if="
  9929. (fulltype == 2 || fulltype == 4) &&
  9930. fullUrl.indexOf(
  9931. 'https://view.officeapps.live.com/op/view.aspx?src='
  9932. ) != -1
  9933. "
  9934. style="width: 100%;height:100%; margin: 0 auto"
  9935. >
  9936. <iframe
  9937. style="width: 100%; height: 100%; border: none"
  9938. :src="fullUrl"
  9939. ></iframe>
  9940. </div>
  9941. <iframe
  9942. style="width: 100%; height: 100%; border: none"
  9943. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  9944. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo')!=-1)"
  9945. :src="fullUrl"
  9946. ></iframe>
  9947. <iframe
  9948. style="width: 100%; height: 100%; border: none"
  9949. security="restricted"
  9950. v-else-if="(fulltype == 2 || fulltype == 4)"
  9951. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9952. :src="fullUrl"
  9953. ></iframe>
  9954. <pdf
  9955. v-else-if="fulltype == 3"
  9956. :pdfUrl="fullUrl"
  9957. style="width: 100%; height: 100%; overflow: auto"
  9958. ></pdf>
  9959. <iframe
  9960. style="width: 100%; height: 100%; border: none"
  9961. security="restricted"
  9962. v-else-if="(fulltype == 16) && (fullUrl.indexOf('cocorobo')!=-1)"
  9963. :src="fullUrl"
  9964. ></iframe>
  9965. <iframe
  9966. style="width: 100%; height: 100%; border: none"
  9967. security="restricted"
  9968. v-else
  9969. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9970. :src="fullUrl"
  9971. ></iframe>
  9972. </div>
  9973. <!-- <div slot="footer">
  9974. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9975. </div> -->
  9976. </el-dialog>
  9977. <el-dialog
  9978. :title="lang.ssPersonalEval"
  9979. :visible.sync="studentEvalDialogVisible"
  9980. :append-to-body="true"
  9981. width="800px"
  9982. :before-close="handleClose"
  9983. class="dialog_diy"
  9984. >
  9985. <div class="evalCss">
  9986. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  9987. <div class="middleBox" v-if="eScore.eStar">
  9988. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9989. <div class="nameAndrate">
  9990. <div>{{ e.value }}</div>
  9991. <el-rate
  9992. v-model="eScore.eStar[eIndex]"
  9993. :disabled="isStar"
  9994. ></el-rate>
  9995. </div>
  9996. <div v-if="e.detail">{{ e.detail }}</div>
  9997. </div>
  9998. <div class="easy_comment" v-if="false">
  9999. <div
  10000. v-for="(p, pIndex) in PlTextList"
  10001. :key="pIndex"
  10002. @click="fastText(p, 2)"
  10003. >
  10004. {{ p }}
  10005. </div>
  10006. </div>
  10007. <div class="bz">
  10008. <textarea
  10009. :disabled="isStar"
  10010. rows="4"
  10011. class="pj"
  10012. style="
  10013. padding: 10px 5px;
  10014. width: 70%;
  10015. background: #f7f6f9;
  10016. font-size: 14px;
  10017. text-indent: 10px;
  10018. "
  10019. cols
  10020. v-model="eScore.eBzText"
  10021. :placeholder="lang.ssEnterEvalContent"
  10022. ></textarea>
  10023. </div>
  10024. </div>
  10025. </div>
  10026. <div slot="footer">
  10027. <el-button @click="studentEvalDialogVisible = false">{{lang.ssCancel}}</el-button>
  10028. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10029. >{{lang.ssConfirm}}</el-button
  10030. >
  10031. </div>
  10032. </el-dialog>
  10033. <el-dialog
  10034. :title="lang.ssPersonalEval"
  10035. :visible.sync="studentEvalDialogVisibleTeacher"
  10036. :append-to-body="true"
  10037. width="800px"
  10038. :before-close="handleClose"
  10039. class="dialog_diy"
  10040. >
  10041. <div class="w_name">
  10042. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  10043. </div>
  10044. <div class="evalCss">
  10045. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  10046. <div class="middleBox" v-if="eScore.eStar">
  10047. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10048. <div class="nameAndrate">
  10049. <div>{{ e.value }}</div>
  10050. <el-rate
  10051. v-model="eScore.eStar[eIndex]"
  10052. :disabled="isStar"
  10053. ></el-rate>
  10054. </div>
  10055. <div v-if="e.detail">{{ e.detail }}</div>
  10056. </div>
  10057. <div class="easy_comment" v-if="false">
  10058. <div
  10059. v-for="(p, pIndex) in PlTextList"
  10060. :key="pIndex"
  10061. @click="fastText(p, 2)"
  10062. >
  10063. {{ p }}
  10064. </div>
  10065. </div>
  10066. <div class="bz">
  10067. <textarea
  10068. :disabled="isStar"
  10069. rows="4"
  10070. class="pj"
  10071. style="
  10072. padding: 10px 5px;
  10073. width: 70%;
  10074. background: #f7f6f9;
  10075. font-size: 14px;
  10076. text-indent: 10px;
  10077. "
  10078. cols
  10079. v-model="eScore.eBzText"
  10080. :placeholder="lang.ssEnterEvalContent"
  10081. ></textarea>
  10082. </div>
  10083. </div>
  10084. </div>
  10085. <div slot="footer">
  10086. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10087. >{{lang.ssCancel}}</el-button
  10088. >
  10089. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10090. >{{lang.ssConfirm}}</el-button
  10091. >
  10092. </div>
  10093. </el-dialog>
  10094. <el-dialog
  10095. :title="lang.ssMatch"
  10096. :visible.sync="dialogVisibleSelect"
  10097. :append-to-body="true"
  10098. width="90%"
  10099. :before-close="handleClose"
  10100. class="dialog_diy dialog_diy3"
  10101. >
  10102. <div v-if="selectJson">
  10103. <div class="select_box2">
  10104. <div class="select_box2_title">
  10105. <div>{{ lang.ssMatch }}</div>
  10106. <div>{{ lang.ssSelectCorrespondingAnswer }}</div>
  10107. </div>
  10108. <div class="select_box2_box">
  10109. <div class="select_box2_img">
  10110. <img
  10111. :src="selectJson.url"
  10112. @click="previewImg(selectJson.url)"
  10113. alt=""
  10114. />
  10115. </div>
  10116. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10117. <div style="padding-top: 15px">
  10118. <div class="select_answer_title" v-if="isSelect">
  10119. {{ selectAnswer.stu }}
  10120. </div>
  10121. <div class="select_answer_title" v-else>
  10122. {{ lang.ssSelectAnswerByQuestion }}
  10123. </div>
  10124. <div
  10125. class="select_box2_answer_box"
  10126. v-for="(item2, checkIndex) in selectJson.select"
  10127. :key="checkIndex"
  10128. >
  10129. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10130. <el-select
  10131. :disabled="isSelect"
  10132. v-model="selectAnswer.answer[checkIndex]"
  10133. :placeholder="lang.ssSelectCorrectAnswer"
  10134. >
  10135. <el-option
  10136. v-for="(e, eIndex) in selectJson.select"
  10137. :key="eIndex"
  10138. :label="e"
  10139. :value="eIndex"
  10140. >
  10141. </el-option>
  10142. </el-select>
  10143. </div>
  10144. </div>
  10145. <div
  10146. class="rightAnswerCss"
  10147. v-if="isSelect && (tType == 1 || tType == 4)"
  10148. >
  10149. <div
  10150. v-for="(a, aIndex) in selectJson.answer"
  10151. :key="aIndex"
  10152. class="rightAnswer"
  10153. >
  10154. <div
  10155. v-if="selectAnswer.answer[aIndex] === a"
  10156. style="color: #767de1"
  10157. >
  10158. {{ lang.ssAnswerCorrect }}
  10159. </div>
  10160. <div v-else>{{ lang.ssAnswerWrong }}</div>
  10161. <div
  10162. style="margin-left: 10px"
  10163. v-if="selectAnswer.answer[aIndex] !== a"
  10164. >
  10165. {{ lang.ssCorrectAnswer }}
  10166. </div>
  10167. <div
  10168. :class="
  10169. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10170. "
  10171. >
  10172. {{ selectJson.select[a] }}
  10173. </div>
  10174. </div>
  10175. </div>
  10176. </div>
  10177. <div class="upAnswerCss">
  10178. <el-button
  10179. type="primary"
  10180. @click="addSelectAnswer"
  10181. v-if="!isSelect"
  10182. >{{ lang.ssSubmitAnswer }}</el-button
  10183. >
  10184. </div>
  10185. </div>
  10186. </div>
  10187. </div>
  10188. </el-dialog>
  10189. <el-dialog
  10190. :title="lang.ssMatch"
  10191. :visible.sync="dialogVisibleSelectTeacher"
  10192. :append-to-body="true"
  10193. width="90%"
  10194. :before-close="handleClose"
  10195. class="dialog_diy dialog_diy3"
  10196. >
  10197. <div v-if="selectJson">
  10198. <div class="w_name">
  10199. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  10200. </div>
  10201. <div class="select_box2">
  10202. <div class="select_box2_title">
  10203. <div>{{ lang.ssMatch }}</div>
  10204. <div>{{ lang.ssSelectCorrespondingAnswer }}</div>
  10205. </div>
  10206. <div class="select_box2_box">
  10207. <div class="select_box2_img">
  10208. <img
  10209. :src="selectJson.url"
  10210. @click="previewImg(selectJson.url)"
  10211. alt=""
  10212. />
  10213. </div>
  10214. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10215. <div style="padding-top: 15px">
  10216. <div class="select_answer_title" v-if="isSelect">
  10217. {{ selectAnswer.stu }}
  10218. </div>
  10219. <div class="select_answer_title" v-else>
  10220. {{ lang.ssSelectAnswerByQuestion }}
  10221. </div>
  10222. <div
  10223. class="select_box2_answer_box"
  10224. v-for="(item2, checkIndex) in selectJson.select"
  10225. :key="checkIndex"
  10226. >
  10227. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10228. <el-select
  10229. :disabled="isSelect"
  10230. v-model="selectAnswer.answer[checkIndex]"
  10231. :placeholder="lang.ssSelectCorrectAnswer"
  10232. >
  10233. <el-option
  10234. v-for="(e, eIndex) in selectJson.select"
  10235. :key="eIndex"
  10236. :label="e"
  10237. :value="eIndex"
  10238. >
  10239. </el-option>
  10240. </el-select>
  10241. </div>
  10242. </div>
  10243. <div
  10244. class="rightAnswerCss"
  10245. v-if="isSelect && (tType == 1 || tType == 4)"
  10246. >
  10247. <div
  10248. v-for="(a, aIndex) in selectJson.answer"
  10249. :key="aIndex"
  10250. class="rightAnswer"
  10251. >
  10252. <div
  10253. v-if="selectAnswer.answer[aIndex] === a"
  10254. style="color: #767de1"
  10255. >
  10256. {{ lang.ssAnswerCorrect }}
  10257. </div>
  10258. <div v-else>{{ lang.ssAnswerWrong }}</div>
  10259. <div
  10260. style="margin-left: 10px"
  10261. v-if="selectAnswer.answer[aIndex] !== a"
  10262. >
  10263. {{ lang.ssCorrectAnswer }}
  10264. </div>
  10265. <div
  10266. :class="
  10267. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10268. "
  10269. >
  10270. {{ selectJson.select[a] }}
  10271. </div>
  10272. </div>
  10273. </div>
  10274. </div>
  10275. <div class="upAnswerCss">
  10276. <el-button
  10277. type="primary"
  10278. @click="addSelectAnswerTeacher"
  10279. v-if="!isSelect"
  10280. >{{ lang.ssSubmitAnswer }}</el-button
  10281. >
  10282. </div>
  10283. </div>
  10284. </div>
  10285. </div>
  10286. </el-dialog>
  10287. <el-dialog
  10288. :title="lang.ssTeacherScoring"
  10289. :visible.sync="dialogVisibleScore"
  10290. :append-to-body="true"
  10291. width="800px"
  10292. :before-close="handleClose"
  10293. class="dialog_diy"
  10294. >
  10295. <div>
  10296. <div class="studentDetail">
  10297. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10298. <div class="nameAndTime">
  10299. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10300. <div>{{ commentDetail.time }}</div>
  10301. </div>
  10302. </div>
  10303. <div
  10304. class="worksAnswer"
  10305. v-if="commentDetail.works && commentDetail.type == 2"
  10306. >
  10307. {{ JSON.parse(commentDetail.works)[0].answer }}
  10308. </div>
  10309. <div
  10310. class="worksAnswer"
  10311. v-if="commentDetail.works && commentDetail.type == 1"
  10312. >
  10313. <pdf
  10314. v-if="showPDF"
  10315. :pdfUrl="pptImgUrl"
  10316. style="width: 100%; height: 520px; overflow: auto"
  10317. :class="{ fullStyle: full }"
  10318. ></pdf>
  10319. <iframe
  10320. v-else
  10321. :src="pptImgUrl"
  10322. frameborder="0"
  10323. width="100%"
  10324. height="600"
  10325. :class="{ fullStyle: full }"
  10326. ></iframe>
  10327. </div>
  10328. <div
  10329. class="worksAnswer"
  10330. v-if="commentDetail.works && commentDetail.type == 0"
  10331. >
  10332. <img
  10333. :src="commentDetail.works"
  10334. alt=""
  10335. @click="previewImg(commentDetail.works)"
  10336. />
  10337. </div>
  10338. <div
  10339. class="worksAnswer"
  10340. v-if="commentDetail.works && commentDetail.type == 3"
  10341. >
  10342. <video-player
  10343. class="video-player vjs-custom-skin"
  10344. :playsinline="true"
  10345. :options="videoDetail"
  10346. @play="onPlayerPlay($event)"
  10347. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10348. ></video-player>
  10349. </div>
  10350. <div
  10351. class="worksAnswer codeFileBox"
  10352. v-if="commentDetail.works && commentDetail.type == 12"
  10353. @click="downloadFile(commentDetail.works)"
  10354. >
  10355. <img src="../../assets/icon/codeFile.png" />
  10356. <div>{{ lang.ssClickDownloadFile }}</div>
  10357. </div>
  10358. <div
  10359. class="worksAnswer codeFileBox"
  10360. v-if="commentDetail.works && commentDetail.type == 15"
  10361. @click="
  10362. openCocoPi(
  10363. 57,
  10364. commentIndexJson.toolIndex,
  10365. commentDetail.userid,
  10366. commentDetail.sName
  10367. )
  10368. "
  10369. >
  10370. <img src="../../assets/icon/codeFile.png" />
  10371. <div>{{ lang.ssClickOpenCocoPi }}</div>
  10372. </div>
  10373. <div
  10374. class="worksAnswer"
  10375. v-if="commentDetail.works && commentDetail.type == 13"
  10376. >
  10377. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10378. </div>
  10379. <div class="scoreBox">
  10380. <span class="t">{{ lang.ssEnterScore }}</span>
  10381. <el-input-number
  10382. :disabled="courseDetail.userid != userid"
  10383. v-model="wScore"
  10384. :controls="false"
  10385. :min="0"
  10386. :max="100"
  10387. ></el-input-number>
  10388. </div>
  10389. <div class="scoreDetailBox">
  10390. <span class="t">{{ lang.ssScoringComment }}</span>
  10391. <el-input
  10392. type="textarea"
  10393. :rows="5"
  10394. :disabled="courseDetail.userid != userid"
  10395. resize="none"
  10396. v-model="scoreDetail"
  10397. :placeholder="lang.ssEnterStudentEvaluation"
  10398. >
  10399. </el-input>
  10400. </div>
  10401. </div>
  10402. <span slot="footer" class="dialog-footer">
  10403. <el-button
  10404. @click="
  10405. (dialogVisibleScore = false),
  10406. (commentIndexJson = {}),
  10407. videoDetail.sources && videoDetail.sources[0]
  10408. ? (videoDetail.sources[0].src = '')
  10409. : ''
  10410. "
  10411. >{{lang.ssCancel}}</el-button
  10412. >
  10413. <el-button
  10414. type="primary"
  10415. v-if="courseDetail.userid == userid"
  10416. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10417. >{{lang.ssConfirm}}
  10418. </el-button>
  10419. </span>
  10420. </el-dialog>
  10421. <el-dialog
  10422. :title="lang.ssSort"
  10423. :visible.sync="dialogVisibleSentence"
  10424. :append-to-body="true"
  10425. width="1000px"
  10426. :before-close="handleClose"
  10427. class="dialog_diy dialog_diy3"
  10428. >
  10429. <div>
  10430. <div class="sentenBox">
  10431. <div
  10432. v-for="(st, stIndex) in sentenceList"
  10433. :key="stIndex"
  10434. style="padding-bottom: 20px"
  10435. >
  10436. <div
  10437. style="padding: 15px 0 10px 20px"
  10438. class="sentenceTitle"
  10439. :index="stIndex + 1"
  10440. >
  10441. {{ lang.ssQuestion }}{{ stIndex + 1 }}:{{ lang.ssSelectCorrectOrder }}
  10442. </div>
  10443. <div class="cardList" v-if="st.chooseSenList">
  10444. <div class="cardBox">
  10445. <div
  10446. v-for="(r, rIndex) in st.chooseSenList"
  10447. :key="rIndex"
  10448. @click="returnCard(r, stIndex, rIndex)"
  10449. >
  10450. <el-tooltip
  10451. class="item"
  10452. effect="light"
  10453. :content="r"
  10454. placement="top"
  10455. v-if="r != '' && r != undefined"
  10456. >
  10457. <div
  10458. :class="{
  10459. isCard: r,
  10460. isChooseCard: r == '' || r == undefined,
  10461. }"
  10462. >
  10463. <div>{{ r }}</div>
  10464. </div>
  10465. </el-tooltip>
  10466. <div
  10467. :class="{
  10468. isCard: r,
  10469. isChooseCard: r == '' || r == undefined,
  10470. }"
  10471. v-else
  10472. >
  10473. <div>{{ r }}</div>
  10474. </div>
  10475. </div>
  10476. </div>
  10477. </div>
  10478. <div class="cardList" v-if="st.addChangeSen">
  10479. <div class="cardBox">
  10480. <div
  10481. v-for="(s, sIndex) in st.addChangeSen"
  10482. :key="sIndex"
  10483. @click="setRightAnswer(s, stIndex, sIndex)"
  10484. >
  10485. <el-tooltip
  10486. class="item"
  10487. effect="light"
  10488. :content="s"
  10489. placement="top"
  10490. v-if="s != '' && s != undefined"
  10491. >
  10492. <div
  10493. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10494. >
  10495. <div>{{ s }}</div>
  10496. </div>
  10497. </el-tooltip>
  10498. <div
  10499. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10500. v-else
  10501. >
  10502. <div>{{ s }}</div>
  10503. </div>
  10504. </div>
  10505. </div>
  10506. </div>
  10507. </div>
  10508. </div>
  10509. </div>
  10510. <span slot="footer" class="dialog-footer">
  10511. <el-button @click="dialogVisibleSentence = false">{{lang.ssCancel}}</el-button>
  10512. <el-button type="primary" @click="addSenWorks">{{lang.ssConfirm}}</el-button>
  10513. </span>
  10514. </el-dialog>
  10515. <el-dialog
  10516. :title="lang.ssSort"
  10517. :visible.sync="dialogVisibleSentenceTeacher"
  10518. :append-to-body="true"
  10519. width="1000px"
  10520. :before-close="handleClose"
  10521. class="dialog_diy dialog_diy3"
  10522. >
  10523. <div>
  10524. <div class="w_name">
  10525. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  10526. </div>
  10527. <div class="sentenBox">
  10528. <div
  10529. v-for="(st, stIndex) in sentenceList"
  10530. :key="stIndex"
  10531. style="padding-bottom: 20px"
  10532. >
  10533. <div
  10534. style="padding: 15px 0 10px 20px"
  10535. class="sentenceTitle"
  10536. :index="stIndex + 1"
  10537. >
  10538. {{ lang.ssQuestion }}{{ stIndex + 1 }}:{{ lang.ssSelectCorrectOrder }}
  10539. </div>
  10540. <div class="cardList" v-if="st.chooseSenList">
  10541. <div class="cardBox">
  10542. <div
  10543. v-for="(r, rIndex) in st.chooseSenList"
  10544. :key="rIndex"
  10545. @click="returnCard(r, stIndex, rIndex)"
  10546. >
  10547. <el-tooltip
  10548. class="item"
  10549. effect="light"
  10550. :content="r"
  10551. placement="top"
  10552. v-if="r != '' && r != undefined"
  10553. >
  10554. <div
  10555. :class="{
  10556. isCard: r,
  10557. isChooseCard: r == '' || r == undefined,
  10558. }"
  10559. >
  10560. <div>{{ r }}</div>
  10561. </div>
  10562. </el-tooltip>
  10563. <div
  10564. :class="{
  10565. isCard: r,
  10566. isChooseCard: r == '' || r == undefined,
  10567. }"
  10568. v-else
  10569. >
  10570. <div>{{ r }}</div>
  10571. </div>
  10572. </div>
  10573. </div>
  10574. </div>
  10575. <div class="cardList" v-if="st.addChangeSen">
  10576. <div class="cardBox">
  10577. <div
  10578. v-for="(s, sIndex) in st.addChangeSen"
  10579. :key="sIndex"
  10580. @click="setRightAnswer(s, stIndex, sIndex)"
  10581. >
  10582. <el-tooltip
  10583. class="item"
  10584. effect="light"
  10585. :content="s"
  10586. placement="top"
  10587. v-if="s != '' && s != undefined"
  10588. >
  10589. <div
  10590. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10591. >
  10592. <div>{{ s }}</div>
  10593. </div>
  10594. </el-tooltip>
  10595. <div
  10596. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10597. v-else
  10598. >
  10599. <div>{{ s }}</div>
  10600. </div>
  10601. </div>
  10602. </div>
  10603. </div>
  10604. </div>
  10605. </div>
  10606. </div>
  10607. <span slot="footer" class="dialog-footer">
  10608. <el-button @click="dialogVisibleSentenceTeacher = false"
  10609. >{{lang.ssCancel}}</el-button
  10610. >
  10611. <el-button type="primary" @click="addSenWorksTeacher">{{lang.ssConfirm}}</el-button>
  10612. </span>
  10613. </el-dialog>
  10614. <el-dialog
  10615. :title="lang.ssSort"
  10616. :visible.sync="dialogVisibleSentence1"
  10617. :append-to-body="true"
  10618. width="1000px"
  10619. :before-close="handleClose"
  10620. class="dialog_diy dialog_diy3"
  10621. >
  10622. <div>
  10623. <div class="sentenBox">
  10624. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10625. {{ sentenceList1.stuName }}{{ lang.ssHomeworkOf }}
  10626. </div>
  10627. <div
  10628. v-for="(st, stIndex) in sentenceList1"
  10629. :key="stIndex"
  10630. style="padding-bottom: 20px"
  10631. >
  10632. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10633. {{ lang.ssQuestionNum.replace(/\*/g, stIndex + 1) }}
  10634. </div>
  10635. <div class="isWrong">
  10636. <div class="cardList1" v-if="st.chooseSenList">
  10637. <div class="cardBox">
  10638. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10639. <el-tooltip
  10640. class="item"
  10641. effect="light"
  10642. :content="s"
  10643. placement="top"
  10644. >
  10645. <div class="isCard">
  10646. <div>{{ s }}</div>
  10647. </div>
  10648. </el-tooltip>
  10649. </div>
  10650. </div>
  10651. <div class="cardAnswerBox">
  10652. {{ lang.ssFormSentence }}{{ st.chooseSenList.join(" ") }}
  10653. </div>
  10654. </div>
  10655. <div v-if="tType == 2" class="isTj">
  10656. <div class="isTjImg">
  10657. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10658. </div>
  10659. <div>{{ lang.ssSubmitted }}</div>
  10660. </div>
  10661. <div
  10662. class="answerRight isTj"
  10663. v-if="
  10664. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10665. (tType == 1 || tType == 4)
  10666. "
  10667. >
  10668. <div class="isTjImg">
  10669. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10670. </div>
  10671. <div>{{ lang.ssAnswerCorrect }}</div>
  10672. </div>
  10673. <div
  10674. class="answerRight isTj"
  10675. v-if="
  10676. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10677. (tType == 1 || tType == 4)
  10678. "
  10679. >
  10680. <div class="isTjImg">
  10681. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10682. </div>
  10683. <div>{{ lang.ssAnswerWrong }}</div>
  10684. </div>
  10685. </div>
  10686. <div
  10687. v-if="
  10688. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10689. (tType == 1 || tType == 4)
  10690. "
  10691. >
  10692. <div style="padding: 15px 0 10px 20px">{{ lang.ssCorrectAnswerBelow }}</div>
  10693. <div
  10694. class="cardList"
  10695. v-if="st.rightAnswer"
  10696. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10697. >
  10698. <div class="cardBox">
  10699. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10700. <el-tooltip
  10701. class="item"
  10702. effect="light"
  10703. :content="r"
  10704. placement="top"
  10705. >
  10706. <div class="isCard1">
  10707. <div>{{ r }}</div>
  10708. </div>
  10709. </el-tooltip>
  10710. </div>
  10711. </div>
  10712. <div class="cardAnswerBox">
  10713. {{ lang.ssFormSentence }}{{ st.rightAnswer.join(" ") }}
  10714. </div>
  10715. </div>
  10716. </div>
  10717. </div>
  10718. </div>
  10719. </div>
  10720. <span slot="footer" class="dialog-footer">
  10721. <el-button @click="dialogVisibleSentence1 = false">{{lang.ssCancel}}</el-button>
  10722. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10723. >{{lang.ssConfirm}}</el-button
  10724. >
  10725. </span>
  10726. </el-dialog>
  10727. <el-dialog
  10728. :title="lang.ssTeacherSubmitWork"
  10729. :visible.sync="dialogVisibleWorks"
  10730. :append-to-body="true"
  10731. width="500px"
  10732. :before-close="handleClose"
  10733. class="dialog_change"
  10734. >
  10735. <div class="marginT">
  10736. <div class="w_name">
  10737. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  10738. </div>
  10739. <div>{{ lang.ssUpFile }}</div>
  10740. <div style="display: flex; gap: 10px">
  10741. <div
  10742. class="chapter_add"
  10743. @click="addImg($event)"
  10744. v-if="studyJuri[0].cover.length == 0"
  10745. >
  10746. <div class="up_photo">
  10747. <img src="../../assets/icon/uploadImg.png" alt />
  10748. </div>
  10749. <!-- <input
  10750. type="file"
  10751. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10752. style="display: none"
  10753. @change="beforeUpload1($event, 1)"
  10754. /> -->
  10755. <input
  10756. type="file"
  10757. accept="*"
  10758. style="display: none"
  10759. @change="beforeUpload1($event, 1)"
  10760. />
  10761. <!-- <input
  10762. type="file"
  10763. accept="image/*"
  10764. capture="camera"
  10765. style="display: none"
  10766. @change="beforeUpload1($event, 1)"
  10767. /> -->
  10768. </div>
  10769. <div
  10770. class="chapter_add"
  10771. @click="addImg($event)"
  10772. v-if="studyJuri[0].cover.length == 0"
  10773. >
  10774. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  10775. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  10776. </div>
  10777. <input
  10778. type="file"
  10779. accept="image/*"
  10780. capture="camera"
  10781. style="display: none"
  10782. @change="beforeUpload1($event, 1)"
  10783. />
  10784. </div>
  10785. </div>
  10786. <!-- capture="camera" -->
  10787. <div
  10788. class="chapter_add"
  10789. style="
  10790. display: flex;
  10791. width: 100%;
  10792. flex-direction: row;
  10793. flex-wrap: wrap;
  10794. justify-content: flex-start;
  10795. padding: 15px 0;
  10796. "
  10797. v-if="studyJuri[0].cover.length > 0"
  10798. >
  10799. <div class="upCover">
  10800. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10801. <img :src="word" alt v-else-if="fileType == 1" />
  10802. <img :src="video" alt v-else-if="fileType == 2" />
  10803. <img :src="word2" alt v-else-if="fileType == 3" />
  10804. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10805. <div class="deleteWord" @click="clean(1)">
  10806. <img src="../../assets/icon/deleteWorks.png" alt />
  10807. </div>
  10808. </div>
  10809. </div>
  10810. </div>
  10811. <div
  10812. class="upload_send"
  10813. @click="addCourseWorksTeacher(taskCount)"
  10814. v-if="!proVisible"
  10815. >
  10816. {{ lang.ssSubmit }}
  10817. </div>
  10818. </el-dialog>
  10819. <ImgDraw
  10820. :drawShow="drawShow"
  10821. @closeDraw="closeDraw"
  10822. @addImgDraw="addImgDraw"
  10823. :bg="bg"
  10824. ></ImgDraw>
  10825. <el-dialog
  10826. :title="lang.ssTable"
  10827. :visible.sync="dialogVisibleTable"
  10828. :append-to-body="true"
  10829. width="95%"
  10830. :before-close="handleClose"
  10831. class="dialog_diy"
  10832. >
  10833. <el-form>
  10834. <div
  10835. style="
  10836. display: flex;
  10837. align-items: center;
  10838. justify-content: space-between;
  10839. "
  10840. >
  10841. <span>{{ lang.ssTableContent }}</span>
  10842. <el-button type="primary" size="small" @click="returnTableText"
  10843. >{{ lang.ssRestoreTemplate }}</el-button
  10844. >
  10845. </div>
  10846. <Table
  10847. v-model="tableJson.text"
  10848. @change="change"
  10849. v-if="dialogVisibleTable"
  10850. ></Table>
  10851. </el-form>
  10852. <span slot="footer" class="dialog-footer">
  10853. <el-button @click="dialogVisibleTable = false">{{lang.ssCancel}}</el-button>
  10854. <el-button type="primary" @click="addTableWorks">{{lang.ssConfirm}}</el-button>
  10855. </span>
  10856. </el-dialog>
  10857. <el-dialog
  10858. :title="lang.ssTable"
  10859. :visible.sync="dialogVisibleTableTeacher"
  10860. :append-to-body="true"
  10861. width="95%"
  10862. :before-close="handleClose"
  10863. class="dialog_diy"
  10864. >
  10865. <el-form>
  10866. <div class="w_name">
  10867. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  10868. </div>
  10869. <div>{{ lang.ssTableContent }}</div>
  10870. <Table
  10871. v-model="tableJson.text"
  10872. @change="change"
  10873. v-if="dialogVisibleTableTeacher"
  10874. ></Table>
  10875. </el-form>
  10876. <span slot="footer" class="dialog-footer">
  10877. <el-button @click="dialogVisibleTableTeacher = false">{{lang.ssCancel}}</el-button>
  10878. <el-button type="primary" @click="addTableWorksTeacher">{{ lang.ssConfirm }}</el-button>
  10879. </span>
  10880. </el-dialog>
  10881. <el-dialog
  10882. :title="lang.ssDocument"
  10883. :visible.sync="dialogVisibleWord"
  10884. :append-to-body="true"
  10885. width="95%"
  10886. :before-close="handleClose"
  10887. class="dialog_diy"
  10888. >
  10889. <el-form>
  10890. <div
  10891. style="
  10892. display: flex;
  10893. align-items: center;
  10894. justify-content: space-between;
  10895. "
  10896. >
  10897. <span>{{ lang.ssDocumentContent }}</span>
  10898. <el-button type="primary" size="small" @click="returnWordText"
  10899. >{{ lang.ssRestoreTemplate }}</el-button
  10900. >
  10901. </div>
  10902. <editor-bar
  10903. v-model="wordJson.text"
  10904. v-if="dialogVisibleWord"
  10905. ></editor-bar>
  10906. </el-form>
  10907. <span slot="footer" class="dialog-footer">
  10908. <el-button @click="dialogVisibleWord = false">{{lang.ssCancel}}</el-button>
  10909. <el-button type="primary" @click="addWordWorks">{{ lang.ssConfirm }}</el-button>
  10910. </span>
  10911. </el-dialog>
  10912. <el-dialog
  10913. :title="lang.ssDocument"
  10914. :visible.sync="dialogVisibleWordTeacher"
  10915. :append-to-body="true"
  10916. width="95%"
  10917. :before-close="handleClose"
  10918. class="dialog_diy"
  10919. >
  10920. <el-form>
  10921. <div class="w_name">
  10922. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  10923. </div>
  10924. <div>{{ lang.ssDocumentContent }}</div>
  10925. <editor-bar
  10926. v-model="wordJson.text"
  10927. v-if="dialogVisibleWordTeacher"
  10928. ></editor-bar>
  10929. </el-form>
  10930. <span slot="footer" class="dialog-footer">
  10931. <el-button @click="dialogVisibleWordTeacher = false">{{lang.ssCancel}}</el-button>
  10932. <el-button type="primary" @click="addWordWorksTeacher">{{ lang.ssConfirm }}</el-button>
  10933. </span>
  10934. </el-dialog>
  10935. <el-dialog
  10936. :title="lang.ssTable"
  10937. :visible.sync="dialogVisibleTable2"
  10938. :append-to-body="true"
  10939. width="95%"
  10940. :before-close="handleClose"
  10941. class="dialog_diy"
  10942. >
  10943. <el-form>
  10944. <div class="cont" v-html="tableJson.text"></div>
  10945. </el-form>
  10946. <span slot="footer" class="dialog-footer">
  10947. <el-button @click="dialogVisibleTable2 = false">{{ lang.ssCloseBtn }}</el-button>
  10948. </span>
  10949. </el-dialog>
  10950. <el-dialog
  10951. :title="lang.ssDocument"
  10952. :visible.sync="dialogVisibleTable3"
  10953. :append-to-body="true"
  10954. width="95%"
  10955. :before-close="handleClose"
  10956. class="dialog_diy"
  10957. >
  10958. <el-form>
  10959. <div class="cont" v-html="tableJson.text"></div>
  10960. </el-form>
  10961. <span slot="footer" class="dialog-footer">
  10962. <el-button @click="dialogVisibleTable3 = false">{{ lang.ssCloseBtn }}</el-button>
  10963. </span>
  10964. </el-dialog>
  10965. <el-dialog
  10966. :title="lang.ssGroupSetting"
  10967. :visible.sync="dialogVisibleGroup"
  10968. :append-to-body="true"
  10969. width="95%"
  10970. :before-close="handleClose"
  10971. class="dialog_diy"
  10972. >
  10973. <div v-if="dialogVisibleGroup">
  10974. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10975. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10976. {{ lang.ssOpenSeatTip }}
  10977. </div>
  10978. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10979. @click="lockChair">
  10980. 锁定位置
  10981. </div>
  10982. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10983. 解锁位置
  10984. </div> -->
  10985. <div class="group_switch">
  10986. <span>开放选座</span>
  10987. <el-switch
  10988. v-model="islock"
  10989. active-text=""
  10990. class="switchCss"
  10991. @change="lockChair"
  10992. ></el-switch>
  10993. </div>
  10994. <div
  10995. type="primary"
  10996. @click="updateGroup"
  10997. class="returnBtn"
  10998. style="background-color: #225bc7"
  10999. >
  11000. {{ lang.ssGroupSetting }}
  11001. </div>
  11002. </div>
  11003. <div>
  11004. <div
  11005. class="g_d_box"
  11006. v-if="groupJson.group && groupStudent[toolindex]"
  11007. >
  11008. <div
  11009. class="g_d_group"
  11010. v-for="(g, gindex) in groupJson.group"
  11011. :key="gindex"
  11012. >
  11013. <div class="g_d_group_chair">
  11014. <div v-if="groupJson.number > 1">
  11015. <span
  11016. :class="{
  11017. isChair:
  11018. groupStudent[toolindex][gindex] &&
  11019. groupStudent[toolindex][gindex][0],
  11020. updateChair:
  11021. courseDetail.userid == userid &&
  11022. groupStudent[toolindex][gindex] &&
  11023. groupStudent[toolindex][gindex][0] &&
  11024. groupJson.islock == 2,
  11025. }"
  11026. ><span
  11027. class="updateChairBtn"
  11028. @click="
  11029. updateGroupChair(
  11030. groupStudent[toolindex][gindex] &&
  11031. groupStudent[toolindex][gindex][0]
  11032. )
  11033. "
  11034. >{{ lang.ssModify }}</span
  11035. ></span
  11036. ><span>{{
  11037. groupStudent[toolindex][gindex] &&
  11038. groupStudent[toolindex][gindex][0]
  11039. ? groupStudent[toolindex][gindex] &&
  11040. groupStudent[toolindex][gindex][0].name
  11041. : lang.ssEmptyPosition
  11042. }}</span>
  11043. </div>
  11044. <div v-if="groupJson.number > 4">
  11045. <span
  11046. :class="{
  11047. isChair:
  11048. groupStudent[toolindex][gindex] &&
  11049. groupStudent[toolindex][gindex][4],
  11050. updateChair:
  11051. courseDetail.userid == userid &&
  11052. groupStudent[toolindex][gindex] &&
  11053. groupStudent[toolindex][gindex][4] &&
  11054. groupJson.islock == 2,
  11055. }"
  11056. ><span
  11057. class="updateChairBtn"
  11058. @click="
  11059. updateGroupChair(
  11060. groupStudent[toolindex][gindex] &&
  11061. groupStudent[toolindex][gindex][4]
  11062. )
  11063. "
  11064. >{{ lang.ssModify }}</span
  11065. ></span
  11066. ><span>{{
  11067. groupStudent[toolindex][gindex] &&
  11068. groupStudent[toolindex][gindex][4]
  11069. ? groupStudent[toolindex][gindex] &&
  11070. groupStudent[toolindex][gindex][4].name
  11071. : lang.ssEmptyPosition
  11072. }}</span>
  11073. </div>
  11074. <div v-if="groupJson.number > 8">
  11075. <span
  11076. :class="{
  11077. isChair:
  11078. groupStudent[toolindex][gindex] &&
  11079. groupStudent[toolindex][gindex][8],
  11080. updateChair:
  11081. courseDetail.userid == userid &&
  11082. groupStudent[toolindex][gindex] &&
  11083. groupStudent[toolindex][gindex][8] &&
  11084. groupJson.islock == 2,
  11085. }"
  11086. ><span
  11087. class="updateChairBtn"
  11088. @click="
  11089. updateGroupChair(
  11090. groupStudent[toolindex][gindex] &&
  11091. groupStudent[toolindex][gindex][8]
  11092. )
  11093. "
  11094. >{{ lang.ssModify }}</span
  11095. ></span
  11096. ><span>{{
  11097. groupStudent[toolindex][gindex] &&
  11098. groupStudent[toolindex][gindex][8]
  11099. ? groupStudent[toolindex][gindex] &&
  11100. groupStudent[toolindex][gindex][8].name
  11101. : lang.ssEmptyPosition
  11102. }}</span>
  11103. </div>
  11104. </div>
  11105. <div class="g_d_group_tableBox">
  11106. <div class="g_d_group_chair2">
  11107. <div v-if="groupJson.number > 2">
  11108. <span
  11109. :class="{
  11110. isChair:
  11111. groupStudent[toolindex][gindex] &&
  11112. groupStudent[toolindex][gindex][2],
  11113. updateChair:
  11114. courseDetail.userid == userid &&
  11115. groupStudent[toolindex][gindex] &&
  11116. groupStudent[toolindex][gindex][2] &&
  11117. groupJson.islock == 2,
  11118. }"
  11119. ><span
  11120. class="updateChairBtn"
  11121. @click="
  11122. updateGroupChair(
  11123. groupStudent[toolindex][gindex] &&
  11124. groupStudent[toolindex][gindex][2]
  11125. )
  11126. "
  11127. >{{ lang.ssModify }}</span
  11128. ></span
  11129. ><span>{{
  11130. groupStudent[toolindex][gindex] &&
  11131. groupStudent[toolindex][gindex][2]
  11132. ? groupStudent[toolindex][gindex] &&
  11133. groupStudent[toolindex][gindex][2].name
  11134. : lang.ssEmptyPosition
  11135. }}</span>
  11136. </div>
  11137. <div v-if="groupJson.number > 6">
  11138. <span
  11139. :class="{
  11140. isChair:
  11141. groupStudent[toolindex][gindex] &&
  11142. groupStudent[toolindex][gindex][6],
  11143. updateChair:
  11144. courseDetail.userid == userid &&
  11145. groupStudent[toolindex][gindex] &&
  11146. groupStudent[toolindex][gindex][6] &&
  11147. groupJson.islock == 2,
  11148. }"
  11149. ><span
  11150. class="updateChairBtn"
  11151. @click="
  11152. updateGroupChair(
  11153. groupStudent[toolindex][gindex] &&
  11154. groupStudent[toolindex][gindex][6]
  11155. )
  11156. "
  11157. >{{ lang.ssModify }}</span
  11158. ></span
  11159. ><span>{{
  11160. groupStudent[toolindex][gindex] &&
  11161. groupStudent[toolindex][gindex][6]
  11162. ? groupStudent[toolindex][gindex] &&
  11163. groupStudent[toolindex][gindex][6].name
  11164. : lang.ssEmptyPosition
  11165. }}</span>
  11166. </div>
  11167. </div>
  11168. <div class="g_d_group_table">
  11169. <div>
  11170. {{ g.name }}
  11171. </div>
  11172. <div>
  11173. <div
  11174. v-if="
  11175. courseDetail.userid == userid && groupJson.islock == 2
  11176. "
  11177. @click="deleteGroupChair(gindex)"
  11178. >
  11179. {{ lang.ssRemoveGroupMember }}
  11180. </div>
  11181. <div
  11182. @click="selectGroup(gindex)"
  11183. v-else-if="
  11184. groupStudentUid[toolindex] &&
  11185. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11186. "
  11187. >
  11188. {{ lang.ssJoinGroup }}
  11189. </div>
  11190. <div
  11191. @click="
  11192. exitGroup(
  11193. groupStudent[toolindex][gindex] &&
  11194. groupStudent[toolindex][gindex][
  11195. groupStudentUid[toolindex][gindex].indexOf(userid)
  11196. ].id
  11197. )
  11198. "
  11199. v-else-if="
  11200. groupStudentUid[toolindex] &&
  11201. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11202. "
  11203. >
  11204. {{ lang.ssExitGroup }}
  11205. </div>
  11206. </div>
  11207. </div>
  11208. <div class="g_d_group_chair2">
  11209. <div v-if="groupJson.number > 3">
  11210. <span
  11211. :class="{
  11212. isChair:
  11213. groupStudent[toolindex][gindex] &&
  11214. groupStudent[toolindex][gindex][3],
  11215. updateChair:
  11216. courseDetail.userid == userid &&
  11217. groupStudent[toolindex][gindex] &&
  11218. groupStudent[toolindex][gindex][3] &&
  11219. groupJson.islock == 2,
  11220. }"
  11221. ><span
  11222. class="updateChairBtn"
  11223. @click="
  11224. updateGroupChair(
  11225. groupStudent[toolindex][gindex] &&
  11226. groupStudent[toolindex][gindex][3]
  11227. )
  11228. "
  11229. >{{ lang.ssModify }}</span
  11230. ></span
  11231. ><span>{{
  11232. groupStudent[toolindex][gindex] &&
  11233. groupStudent[toolindex][gindex][3]
  11234. ? groupStudent[toolindex][gindex] &&
  11235. groupStudent[toolindex][gindex][3].name
  11236. : lang.ssEmptyPosition
  11237. }}</span>
  11238. </div>
  11239. <div v-if="groupJson.number > 7">
  11240. <span
  11241. :class="{
  11242. isChair:
  11243. groupStudent[toolindex][gindex] &&
  11244. groupStudent[toolindex][gindex][7],
  11245. updateChair:
  11246. courseDetail.userid == userid &&
  11247. groupStudent[toolindex][gindex] &&
  11248. groupStudent[toolindex][gindex][7] &&
  11249. groupJson.islock == 2,
  11250. }"
  11251. ><span
  11252. class="updateChairBtn"
  11253. @click="
  11254. updateGroupChair(
  11255. groupStudent[toolindex][gindex] &&
  11256. groupStudent[toolindex][gindex][7]
  11257. )
  11258. "
  11259. >{{ lang.ssModify }}</span
  11260. ></span
  11261. ><span>{{
  11262. groupStudent[toolindex][gindex] &&
  11263. groupStudent[toolindex][gindex][7]
  11264. ? groupStudent[toolindex][gindex] &&
  11265. groupStudent[toolindex][gindex][7].name
  11266. : lang.ssEmptyPosition
  11267. }}</span>
  11268. </div>
  11269. </div>
  11270. </div>
  11271. <div class="g_d_group_chair">
  11272. <div v-if="groupJson.number > 1">
  11273. <span
  11274. :class="{
  11275. isChair:
  11276. groupStudent[toolindex][gindex] &&
  11277. groupStudent[toolindex][gindex][1],
  11278. updateChair:
  11279. courseDetail.userid == userid &&
  11280. groupStudent[toolindex][gindex] &&
  11281. groupStudent[toolindex][gindex][1] &&
  11282. groupJson.islock == 2,
  11283. }"
  11284. ><span
  11285. class="updateChairBtn"
  11286. @click="
  11287. updateGroupChair(
  11288. groupStudent[toolindex][gindex] &&
  11289. groupStudent[toolindex][gindex][1]
  11290. )
  11291. "
  11292. >{{ lang.ssModify }}</span
  11293. ></span
  11294. ><span>{{
  11295. groupStudent[toolindex][gindex] &&
  11296. groupStudent[toolindex][gindex][1]
  11297. ? groupStudent[toolindex][gindex] &&
  11298. groupStudent[toolindex][gindex][1].name
  11299. : lang.ssEmptyPosition
  11300. }}</span>
  11301. </div>
  11302. <div v-if="groupJson.number > 5">
  11303. <span
  11304. :class="{
  11305. isChair:
  11306. groupStudent[toolindex][gindex] &&
  11307. groupStudent[toolindex][gindex][5],
  11308. updateChair:
  11309. courseDetail.userid == userid &&
  11310. groupStudent[toolindex][gindex] &&
  11311. groupStudent[toolindex][gindex][5] &&
  11312. groupJson.islock == 2,
  11313. }"
  11314. ><span
  11315. class="updateChairBtn"
  11316. @click="
  11317. updateGroupChair(
  11318. groupStudent[toolindex][gindex] &&
  11319. groupStudent[toolindex][gindex][5]
  11320. )
  11321. "
  11322. >{{ lang.ssModify }}</span
  11323. ></span
  11324. ><span>{{
  11325. groupStudent[toolindex][gindex] &&
  11326. groupStudent[toolindex][gindex][5]
  11327. ? groupStudent[toolindex][gindex] &&
  11328. groupStudent[toolindex][gindex][5].name
  11329. : lang.ssEmptyPosition
  11330. }}</span>
  11331. </div>
  11332. <div v-if="groupJson.number > 9">
  11333. <span
  11334. :class="{
  11335. isChair:
  11336. groupStudent[toolindex][gindex] &&
  11337. groupStudent[toolindex][gindex][9],
  11338. updateChair:
  11339. courseDetail.userid == userid &&
  11340. groupStudent[toolindex][gindex] &&
  11341. groupStudent[toolindex][gindex][9] &&
  11342. groupJson.islock == 2,
  11343. }"
  11344. ><span
  11345. class="updateChairBtn"
  11346. @click="
  11347. updateGroupChair(
  11348. groupStudent[toolindex][gindex] &&
  11349. groupStudent[toolindex][gindex][9]
  11350. )
  11351. "
  11352. >{{ lang.ssModify }}</span
  11353. ></span
  11354. ><span>{{
  11355. groupStudent[toolindex][gindex] &&
  11356. groupStudent[toolindex][gindex][9]
  11357. ? groupStudent[toolindex][gindex] &&
  11358. groupStudent[toolindex][gindex][9].name
  11359. : lang.ssEmptyPosition
  11360. }}</span>
  11361. </div>
  11362. </div>
  11363. </div>
  11364. </div>
  11365. </div>
  11366. </div>
  11367. <span slot="footer" class="dialog-footer">
  11368. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11369. </span>
  11370. </el-dialog>
  11371. <el-dialog
  11372. :title="lang.ssGroupSetting"
  11373. :visible.sync="dialogVisibleGroup2"
  11374. :append-to-body="true"
  11375. width="650px"
  11376. :before-close="handleClose"
  11377. class="dialog_diy"
  11378. >
  11379. <div class="groupBox">
  11380. <div v-if="groupJson2.group" class="groupContent">
  11381. <div class="groupTitle">{{ lang.ssSetGroupCountAndName }}</div>
  11382. <div
  11383. v-for="(item, index) in groupJson2.group"
  11384. :key="index"
  11385. class="groupName"
  11386. >
  11387. <span class="groupn">{{ lang.ssGroupNameFormat.replace(/\*/g, index + 1) }}</span>
  11388. <el-input
  11389. v-model="item.name"
  11390. :placeholder="lang.ssEnterName"
  11391. style="width: 250px"
  11392. ></el-input>
  11393. <!-- <div class="groupBtn">
  11394. <el-button type="primary" size="small" @click="addGroup(index)">
  11395. 添加</el-button>
  11396. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11397. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11398. </div> -->
  11399. </div>
  11400. </div>
  11401. <div class="groupContent">
  11402. <div class="groupTitle">{{ lang.ssSetGroupMemberCount }}</div>
  11403. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11404. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11405. <el-input
  11406. v-model="groupJson2.number"
  11407. style="width: 150px"
  11408. :placeholder="lang.ssEnterNumber2To10"
  11409. @change="numberPan"
  11410. ></el-input>
  11411. </div>
  11412. </div>
  11413. <span slot="footer" class="dialog-footer">
  11414. <el-button @click="dialogVisibleGroup2 = false">{{lang.ssCancel}}</el-button>
  11415. <el-button type="primary" @click="updateGroupJson">{{ lang.ssConfirm }}</el-button>
  11416. </span>
  11417. </el-dialog>
  11418. <el-dialog
  11419. :title="lang.ssHomework"
  11420. :visible.sync="dialogVisibleGroupWork"
  11421. :append-to-body="true"
  11422. width="500px"
  11423. :before-close="handleClose"
  11424. class="dialog_change"
  11425. >
  11426. <div class="marginT">
  11427. <div>{{ lang.ssUpFile }}</div>
  11428. <div
  11429. class="chapter_add"
  11430. @click="addImg($event)"
  11431. v-if="studyJuri[0].cover.length == 0"
  11432. >
  11433. <div class="up_photo">
  11434. <img src="../../assets/icon/uploadImg.png" alt />
  11435. </div>
  11436. <!-- <input
  11437. type="file"
  11438. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11439. style="display: none"
  11440. @change="beforeUpload1($event, 1)"
  11441. /> -->
  11442. <input
  11443. type="file"
  11444. accept="*"
  11445. style="display: none"
  11446. @change="beforeUpload1($event, 1)"
  11447. />
  11448. </div>
  11449. <!-- capture="camera" -->
  11450. <div
  11451. class="chapter_add"
  11452. style="
  11453. display: flex;
  11454. width: 100%;
  11455. flex-direction: row;
  11456. flex-wrap: wrap;
  11457. justify-content: flex-start;
  11458. padding: 15px 0;
  11459. "
  11460. v-if="studyJuri[0].cover.length > 0"
  11461. >
  11462. <div class="upCover">
  11463. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11464. <img :src="word" alt v-else-if="fileType == 1" />
  11465. <img :src="video" alt v-else-if="fileType == 2" />
  11466. <img :src="word2" alt v-else-if="fileType == 3" />
  11467. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11468. <div class="deleteWord" @click="clean(1)">
  11469. <img src="../../assets/icon/deleteWorks.png" alt />
  11470. </div>
  11471. </div>
  11472. </div>
  11473. </div>
  11474. <div
  11475. class="upload_send"
  11476. @click="addCourseWorks2(taskCount)"
  11477. v-if="!proVisible"
  11478. >
  11479. {{ lang.ssSubmit }}
  11480. </div>
  11481. </el-dialog>
  11482. <el-dialog
  11483. :title="lang.ssModifyGroup"
  11484. :visible.sync="dialogVisibleUpdateGroup"
  11485. :append-to-body="true"
  11486. width="350px"
  11487. :before-close="handleClose"
  11488. class="dialog_diy"
  11489. >
  11490. <div>
  11491. <h2>
  11492. {{ this.updateGroupUser.name }}
  11493. </h2>
  11494. <div style="color: rgb(171 171 171); margin-top: 10px">
  11495. {{ lang.ssSelectGroupToJoin }}
  11496. </div>
  11497. <el-radio-group v-model="checkChair">
  11498. <el-radio
  11499. style="display: block; margin-top: 20px"
  11500. v-for="(item, index) in updateGroupArray"
  11501. :label="item.label"
  11502. :key="index"
  11503. >{{ item.name }}</el-radio
  11504. >
  11505. </el-radio-group>
  11506. </div>
  11507. <span slot="footer" class="dialog-footer">
  11508. <el-button @click="dialogVisibleUpdateGroup = false">{{lang.ssCancel}}</el-button>
  11509. <el-button type="primary" @click="updateChair">{{ lang.ssConfirm }}</el-button>
  11510. </span>
  11511. </el-dialog>
  11512. <el-dialog
  11513. :title="lang.ssRemoveGroupMember"
  11514. :visible.sync="dialogVisibleDeleteGroup"
  11515. :append-to-body="true"
  11516. width="350px"
  11517. :before-close="handleClose"
  11518. class="dialog_diy"
  11519. >
  11520. <div>
  11521. <h2>
  11522. {{ this.deleteGroupArray.name }}
  11523. </h2>
  11524. <div style="color: rgb(171 171 171); margin-top: 10px">
  11525. {{ lang.ssSelectMemberToDelete }}
  11526. </div>
  11527. <el-checkbox-group v-model="checkDeleteGroup">
  11528. <el-checkbox
  11529. style="display: flex; margin-top: 20px"
  11530. v-for="(item, index) in deleteGroupUser"
  11531. :label="item.userid"
  11532. :key="index"
  11533. >{{ item.name }}</el-checkbox
  11534. >
  11535. </el-checkbox-group>
  11536. </div>
  11537. <span slot="footer" class="dialog-footer">
  11538. <el-button @click="dialogVisibleDeleteGroup = false">{{lang.ssCancel}}</el-button>
  11539. <el-button type="primary" @click="deleteChair">{{ lang.ssConfirm }}</el-button>
  11540. </span>
  11541. </el-dialog>
  11542. <el-dialog
  11543. :title="lang.ssBatchUpload"
  11544. :visible.sync="dialogVisiblePl"
  11545. :append-to-body="true"
  11546. width="700px"
  11547. :before-close="handleClose"
  11548. class="dialog_change"
  11549. >
  11550. <div class="marginT">
  11551. <div class="plworkBox">
  11552. <div
  11553. class="chapter_add"
  11554. style="
  11555. display: flex;
  11556. width: 150px;
  11557. flex-direction: row;
  11558. flex-wrap: wrap;
  11559. justify-content: flex-start;
  11560. margin: 0 10px 10px 0;
  11561. "
  11562. v-for="(item, index) in plworkFile"
  11563. :key="index"
  11564. >
  11565. <div class="upCover2">
  11566. <img
  11567. :src="item.url"
  11568. alt
  11569. v-if="item.fileType == 1"
  11570. @click="previewImg(item.url)"
  11571. />
  11572. <img :src="word" alt v-else-if="item.fileType == 4" />
  11573. <img :src="video" alt v-else />
  11574. <!-- <span class="picName">{{ item.name }}</span> -->
  11575. <!-- <el-input
  11576. v-model="item.username"
  11577. placeholder="请输入学生名字"
  11578. style="margin-top: 10px"
  11579. ></el-input> -->
  11580. <div
  11581. class="pl_select_box"
  11582. @click="
  11583. getUpdateMore(true, checkUpload(), item.username, index)
  11584. "
  11585. >
  11586. {{ getSName(item.username) }}
  11587. </div>
  11588. <!-- <el-select
  11589. style="margin-top: 10px"
  11590. v-model="item.username"
  11591. filterable
  11592. allow-create
  11593. placeholder="请选择学生"
  11594. >
  11595. <el-option
  11596. v-for="item1 in checkUpload()"
  11597. :key="item1.userid"
  11598. :label="item1.name ? item1.name : item1.username"
  11599. :value="item1.userid"
  11600. >
  11601. </el-option>
  11602. </el-select> -->
  11603. <div class="deleteWord" @click="clean2(index)">
  11604. <img src="../../assets/icon/deleteWorks.png" alt />
  11605. </div>
  11606. </div>
  11607. </div>
  11608. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11609. <div class="up_photo2">
  11610. <img src="../../assets/icon/plwork.png" alt />
  11611. <span>{{ lang.ssClickUploadFile }}</span>
  11612. </div>
  11613. <input
  11614. type="file"
  11615. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11616. multiple="multiple"
  11617. style="display: none"
  11618. @change="beforeUpload3($event, 6)"
  11619. />
  11620. </div>
  11621. </div>
  11622. </div>
  11623. <!-- capture="camera" -->
  11624. <div
  11625. class="upload_send"
  11626. @click="addCourseWorksPl(taskCount)"
  11627. v-if="!proVisible2"
  11628. >
  11629. {{ lang.ssSubmit }}
  11630. </div>
  11631. </el-dialog>
  11632. <el-dialog
  11633. :title="lang.ssModifyName"
  11634. :visible.sync="dialogVisibleSname"
  11635. width="500px"
  11636. :before-close="handleClose"
  11637. class="dialog_diy"
  11638. center
  11639. >
  11640. <div
  11641. style="
  11642. text-align: center;
  11643. display: flex;
  11644. align-items: center;
  11645. justify-content: center;
  11646. "
  11647. >
  11648. <span class="tian1">{{ lang.ssName }}</span>
  11649. <div
  11650. class="pl_select_box"
  11651. style="margin-left: 10px; width: 200px"
  11652. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11653. >
  11654. {{ getSName(worksSName) }}
  11655. </div>
  11656. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11657. placeholder="请选择学生">
  11658. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11659. :value="item.userid">
  11660. </el-option>
  11661. </el-select> -->
  11662. <!-- <el-input
  11663. v-model="worksSName"
  11664. style="width: 250px; margin: 15px 0px"
  11665. ></el-input> -->
  11666. </div>
  11667. <span slot="footer" class="dialog-footer">
  11668. <el-button @click="dialogVisibleSname = false">{{lang.ssCancel}}</el-button>
  11669. <el-button type="primary" @click="updateName">{{lang.ssConfirm}}</el-button>
  11670. </span>
  11671. </el-dialog>
  11672. <el-dialog
  11673. :title="lang.ssEnglishWrite"
  11674. :visible.sync="engDialogVisible"
  11675. :append-to-body="true"
  11676. width="800px"
  11677. :before-close="handleClose"
  11678. class="dialog_diy"
  11679. >
  11680. <onlineWrite
  11681. v-if="engDialogVisible"
  11682. :englishList="englishList"
  11683. :myAnswerList1="myAnswerList1"
  11684. ref="engJson"
  11685. ></onlineWrite>
  11686. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11687. <el-button @click="engDialogVisible = false">{{lang.ssCancel}}</el-button>
  11688. <el-button type="primary" @click="addEnglishWork">{{lang.ssConfirm}}</el-button>
  11689. </span>
  11690. </el-dialog>
  11691. <el-dialog
  11692. :title="lang.ssEnglishWrite"
  11693. :visible.sync="engUpdateDialogVisible"
  11694. :append-to-body="true"
  11695. width="800px"
  11696. :before-close="handleClose"
  11697. class="dialog_diy fullStyle"
  11698. >
  11699. <div class="engUpBox">
  11700. <div class="engUpTop">
  11701. <div class="engTitle">
  11702. <div>{{lang.ssEssayTitle}}</div>
  11703. <div>{{ englishList1.engTitle }}</div>
  11704. </div>
  11705. <div class="engText">
  11706. <div>{{lang.ssEssayContent}}</div>
  11707. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11708. </div>
  11709. </div>
  11710. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11711. <div class="oldBox">
  11712. <div class="oldMes">{{lang.ssOriginalAuthor}}{{ noteName }} )</div>
  11713. <div class="oldText">
  11714. <div class="detailBox">
  11715. <div class="oldDetail">
  11716. <div>{{lang.ssTitleColon}}</div>
  11717. <div>{{ oldEnglishJson.engTitle }} </div>
  11718. </div>
  11719. <div class="oldDetail1">
  11720. <div>{{lang.ssContentColon}}</div>
  11721. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11722. </div>
  11723. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11724. <div>{{lang.ssImageColon}}</div>
  11725. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11726. </div>
  11727. </div>
  11728. </div>
  11729. </div>
  11730. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11731. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11732. <div class="oldText">
  11733. <div class="detailBox" style="position: relative;">
  11734. <div class="oldDetail">
  11735. <div>{{lang.ssTitleColon}}</div>
  11736. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11737. <div v-else v-html="newEnglishList.engTitle"></div>
  11738. </div>
  11739. <div class="oldDetail">
  11740. <div>{{lang.ssContentColon}}</div>
  11741. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11742. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11743. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11744. </div>
  11745. <div style="position: absolute;bottom: -25px;">{{lang.ssNoteRedDeleteGreenAdd}}</div>
  11746. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11747. <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>
  11748. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{lang.ssConfirm}}</el-button>
  11749. </div>
  11750. </div>
  11751. </div>
  11752. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11753. <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">
  11754. <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>
  11755. <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>
  11756. </div>
  11757. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11758. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11759. <div class="detailBox" style="position: relative;">
  11760. <div class="oldDetail">
  11761. <div>{{lang.ssTitleColon}}</div>
  11762. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11763. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11764. </div>
  11765. <div class="oldDetail">
  11766. <div>{{lang.ssContentColon}}</div>
  11767. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11768. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11769. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  11770. </div>
  11771. <div style="position: absolute;bottom: -25px;">{{lang.ssNoteRedDeleteGreenAdd}}</div>
  11772. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11773. <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>
  11774. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{lang.ssConfirm}}</el-button>
  11775. </div>
  11776. </div>
  11777. <div class="oldText" v-else-if="newEngIndex == -1">
  11778. <div class="detailBox" style="position: relative;">
  11779. <div class="oldDetail">
  11780. <div>{{lang.ssTitleColon}}</div>
  11781. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11782. <div v-else v-html="newEnglishList.engTitle"></div>
  11783. </div>
  11784. <div class="oldDetail">
  11785. <div>{{lang.ssContentColon}}</div>
  11786. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11787. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11788. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11789. </div>
  11790. <div style="position: absolute;bottom: -25px;">{{lang.ssNoteRedDeleteGreenAdd}}</div>
  11791. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11792. <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>
  11793. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{lang.ssConfirm}}</el-button>
  11794. </div>
  11795. </div>
  11796. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11797. <div class="detailBox" style="position: relative;">
  11798. <div class="oldDetail">
  11799. <div>{{lang.ssTitleColon}}</div>
  11800. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11801. <div v-else>
  11802. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  11803. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11804. </div>
  11805. </div>
  11806. <div class="oldDetail">
  11807. <div>{{lang.ssContentColon}}</div>
  11808. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  11809. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11810. <div v-else>
  11811. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11812. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11813. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  11814. </div>
  11815. </div>
  11816. <div style="position: absolute;bottom: -25px;">{{lang.ssNoteRedDeleteGreenAdd}}</div>
  11817. <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>
  11818. <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>
  11819. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{lang.ssConfirm}}</el-button>
  11820. </div>
  11821. </div>
  11822. </div>
  11823. </div>
  11824. </div>
  11825. <span slot="footer" class="dialog-footer">
  11826. <el-button @click="engUpdateDialogVisible = false">{{lang.ssCancel}}</el-button>
  11827. <el-button type="primary" @click="addCorrect">{{lang.ssConfirm}}</el-button>
  11828. </span>
  11829. </el-dialog>
  11830. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11831. <interVideo
  11832. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11833. :videoJson="videoJson"
  11834. :userid="userid"
  11835. :id="id"
  11836. :courseType="courseType"
  11837. :taskCount="taskCount"
  11838. :toolindex="toolindex"
  11839. :videoType="videoType"
  11840. ></interVideo>
  11841. <UpdateMore
  11842. :dialogVisibleMember.sync="dialogVisibleMember"
  11843. :cList="uploadStudentJuri"
  11844. :userid="userid"
  11845. :searchTN="worksSName2"
  11846. @setPlname="setPlname"
  11847. ></UpdateMore>
  11848. <!-- <wordCloud
  11849. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11850. :data="wordCloudData"
  11851. ></wordCloud> -->
  11852. <el-dialog
  11853. :title="lang.ssWordCloud"
  11854. :visible.sync="dialogVisibleWordCloud"
  11855. width="30%"
  11856. class="dialog_diy"
  11857. :before-close="handleClose">
  11858. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  11859. </el-dialog>
  11860. <el-dialog
  11861. :title="lang.ssPickPerson"
  11862. :visible.sync="dialogVisiblePickPeople"
  11863. width="650px"
  11864. :before-close="handleClose"
  11865. class="dialog_diy"
  11866. center
  11867. >
  11868. <div class="pick_box">
  11869. <div
  11870. class="noWorksName"
  11871. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11872. v-for="(item, index) in uploadStudentJuri"
  11873. :key="index"
  11874. @click="pickStudent(item)"
  11875. >
  11876. {{ item.name }}
  11877. </div>
  11878. </div>
  11879. </el-dialog>
  11880. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11881. :englishVoiceJson='englishVoiceJson'
  11882. :userid="userid"
  11883. :id="id"
  11884. :courseType="courseType"
  11885. :taskCount="taskCount"
  11886. :toolindex="toolindex"
  11887. @selectSWorks="selectSWorks"
  11888. @selectStudent="selectStudent"
  11889. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11890. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11891. :userid="userid"
  11892. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11893. :commentDetail="commentDetail"
  11894. :courseDetail="courseDetail"
  11895. :wScore="wScore"
  11896. :scoreDetail="scoreDetail"
  11897. @selectSWorks="selectSWorks"
  11898. @selectStudent="selectStudent"></checkEnglishVoice>
  11899. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  11900. <choseWorksDetailDialog
  11901. ref="choseWorksDetailDialogRef"
  11902. :worksStudentData="worksStudent"
  11903. :noWorksSData="noWorksS"
  11904. :chapInfoListData="chapInfoList"
  11905. :courseType="courseType"
  11906. :taskCount="taskCount"
  11907. :tType="tType"
  11908. :sIsOpen="sIsOpen"
  11909. :courseDetail="courseDetail"
  11910. :groupStudent2="groupStudent"
  11911. :groupStudentUid2="groupStudentUid"
  11912. :oid="oid"
  11913. :org="org"
  11914. @getCourseDetail="getCourseDetail"
  11915. @selectSLook="selectSLook"
  11916. @selectSWorks="selectSWorks"
  11917. @selectStudent="selectStudent"
  11918. @deleteWorks="deleteWorks"
  11919. @openTools="openTools"
  11920. @openWord="openWord"
  11921. @openScore="openScore"
  11922. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  11923. />
  11924. <el-dialog
  11925. :visible.sync="confirmOpenDig"
  11926. width="500px"
  11927. :modal="false"
  11928. class="confirmOpenDigCss dialog_diyCopy"
  11929. :before-close="handleClose">
  11930. <div style="display: flex;align-items: center;">
  11931. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  11932. <span>"{{ courseDetail.title }}"{{lang.ssCourseStarted}}</span>
  11933. </div>
  11934. <div style="margin: 20px 0 35px;">
  11935. <div style="margin-bottom: 10px;">{{lang.ssFollowTeacherLearning}}</div>
  11936. <div>{{lang.ssStudyHard}}</div>
  11937. </div>
  11938. <div style="text-align: center;">
  11939. <el-button type="primary" style="width: 95%;" @click="confirmOpen">{{lang.ssStartLearningBtn}}</el-button>
  11940. </div>
  11941. </el-dialog>
  11942. <appStoreC ref="appStoreC"
  11943. :sStudent="sStudent"
  11944. :courseType="courseType"
  11945. :taskCount="taskCount"
  11946. :toolindex="toolindex"
  11947. @selectSWorks="selectSWorks"
  11948. @selectStudent="selectStudent"
  11949. ></appStoreC>
  11950. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  11951. </div>
  11952. </template>
  11953. <script>
  11954. import "../../common/aws-sdk-2.235.1.min.js";
  11955. // import pdf from "../components/pdf3";
  11956. import pdf from "../components/vpdf";
  11957. import AskStatic from "../components/askStatic";
  11958. import AskStatic2 from "../components/askStatic2";
  11959. import AnswerData2 from "../components/answerData2";
  11960. import AnswerData from "../components/answerData";
  11961. import sortToolWorkShow from "../components/sortToolWorkShow.vue";
  11962. import EditorBar from "../tools/wangEnduit.vue";
  11963. import Table from "../tools/table.vue";
  11964. import Time from "../tools/time.vue";
  11965. import Mind from "../tools/jsmind.vue";
  11966. import Sunburst from "../tools/sunburst";
  11967. import SeeBoard from "../tools/seeBoard";
  11968. import * as imageConversion from "image-conversion";
  11969. import Audio from "../components/audio.vue";
  11970. import ImgDraw from "../tools/imgDraw/imgDraw";
  11971. import { Empty } from "element-ui";
  11972. import RecordRTC from "recordrtc";
  11973. import interVideo from "../interVideo/index.vue";
  11974. import UpdateMore from "../updateMore/updateMore.vue";
  11975. import wordCloud from "../wordCloud/index.vue";
  11976. import axios from "axios";
  11977. import JSZip from "jszip";
  11978. import FileSaver from "file-saver";
  11979. import onlineWrite from "./commpont/onlineWrite";
  11980. import englishEva from "../components/englishEva";
  11981. import * as Diff from 'diff'
  11982. import EnglishVoice from '../EnglishVoice2/index.vue'
  11983. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  11984. import correctText from '../components/correctText.vue'
  11985. import scoreItem from '../scoreList/scoreItem.vue'
  11986. import scoreZong from '../scoreZong/index.vue'
  11987. import classRoomHelper from '../classRoomHelper/index.vue'
  11988. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  11989. import MarkdownIt from "markdown-it";
  11990. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  11991. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  11992. import { v4 as uuidv4 } from "uuid";
  11993. var OpenCC = require("opencc-js");
  11994. import choseWordCloud from '../components/choseWordCloud.vue'
  11995. import appStoreC from "../components/appStoreC.vue";
  11996. import cocoFlowDia from "../components/cocoFlowDia.vue";
  11997. import { myMixin } from "@/mixins/mixin.js"
  11998. import { tools as toolsList } from "@/common/tools2.js";
  11999. import katex from 'katex'
  12000. import 'katex/dist/katex.min.css'
  12001. let converter = OpenCC.Converter({
  12002. from: "hk",
  12003. to: "cn"
  12004. });
  12005. const getFile = (url) => {
  12006. return new Promise((resolve, reject) => {
  12007. var credentials = {
  12008. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12009. secretAccessKey: "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",
  12010. }; //秘钥形式的登录上传
  12011. window.AWS.config.update(credentials);
  12012. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12013. let url2 = url;
  12014. let _url2 = "";
  12015. if (
  12016. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12017. ) {
  12018. _url2 = url2.split(
  12019. "https://view.officeapps.live.com/op/view.aspx?src="
  12020. )[1];
  12021. } else {
  12022. _url2 = url2;
  12023. }
  12024. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12025. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12026. var params = {
  12027. Bucket: "ccrb",
  12028. Key: name
  12029. };
  12030. s3.getObject(params, function (err, data) {
  12031. if (err) {
  12032. console.log(err, err.stack)
  12033. resolve({ data: 1 });
  12034. }else {
  12035. resolve({ data: data.Body });
  12036. console.log(data);
  12037. } // sxuccessful response
  12038. });
  12039. // axios({
  12040. // method: "get",
  12041. // url,
  12042. // responseType: "blob",
  12043. // })
  12044. // .then((data) => {
  12045. // resolve({ data: data.data });
  12046. // })
  12047. // .catch((error) => {
  12048. // resolve({ data: 1 });
  12049. // // reject(error.toString());
  12050. // });
  12051. });
  12052. };
  12053. export default {
  12054. mixins: [ myMixin ],
  12055. components: {
  12056. choseWordCloud,
  12057. EditorBar,
  12058. Time,
  12059. pdf,
  12060. AskStatic,
  12061. AskStatic2,
  12062. Mind,
  12063. Sunburst,
  12064. SeeBoard,
  12065. AnswerData2,
  12066. AnswerData,
  12067. sortToolWorkShow,
  12068. Audio,
  12069. ImgDraw,
  12070. Table,
  12071. interVideo,
  12072. UpdateMore,
  12073. wordCloud,
  12074. onlineWrite,
  12075. englishEva,
  12076. EnglishVoice,
  12077. checkEnglishVoice,
  12078. correctText,
  12079. scoreItem,
  12080. classRoomHelper,
  12081. scoreZong,
  12082. statisticalAnalysis,
  12083. choseWorksDetailDialog,
  12084. appStoreC,
  12085. cocoFlowDia,
  12086. studentClassRoomHelper
  12087. },
  12088. data() {
  12089. return {
  12090. // 学校或者组织随机码
  12091. Code2:'',
  12092. startTime: "",
  12093. // 是否允许学生查看内容资料 2不可以 1可以
  12094. IsStulook:false,
  12095. homeWorkLoading:false,
  12096. toolsList: toolsList,
  12097. wordCloudKey: 0,
  12098. bg: null,
  12099. drawShow: false,
  12100. dialogVisible: false,
  12101. dialogVisiblePl: false,
  12102. commentDialogVisible: false,
  12103. dialogVisibleMember: false,
  12104. dialogVisibleWordCloud: false,
  12105. videoVisible: false,
  12106. isStar: false,
  12107. studentEvalDialogVisible: false,
  12108. studentEvalDialogVisibleTeacher: false,
  12109. dialogVisibleSelect: false,
  12110. dialogVisibleSelectTeacher: false,
  12111. dialogVisibleScore: false,
  12112. dialogVisibleENScore: false,
  12113. dialogVisibleSentence: false,
  12114. dialogVisibleSentenceTeacher: false,
  12115. dialogVisibleSentence1: false,
  12116. dialogVisibleWorks: false,
  12117. dialogVisibleTable: false,
  12118. dialogVisibleTableTeacher: false,
  12119. dialogVisibleWord: false,
  12120. dialogVisibleWordTeacher: false,
  12121. dialogVisibleTable2: false,
  12122. dialogVisibleTable3: false,
  12123. dialogVisibleGroupWork: false,
  12124. dialogVisibleUpdateGroup: false,
  12125. dialogVisibleDeleteGroup: false,
  12126. dialogVisibleSname: false,
  12127. dialogVisibleVideo: false,
  12128. dialogVisiblePickPeople: false,
  12129. worksSName: "",
  12130. classJuri: [],
  12131. uploadStudentJuri: [],
  12132. uploadCid: "",
  12133. snameWid: "",
  12134. sStudent: {},
  12135. sTool: "",
  12136. bzText: "",
  12137. commentDetail: [],
  12138. selectAnswer: [],
  12139. videoDetail: {},
  12140. selectJson: {},
  12141. eScore: { eBzText: "", eStar: [] },
  12142. id: this.$route.query.courseId,
  12143. userid: this.$route.query.userid,
  12144. classId: this.$route.query.cid,
  12145. role: this.$route.query.role,
  12146. // courseTypeLine: this.$route.query.type,
  12147. oid: this.$route.query.oid,
  12148. org: this.$route.query.org,
  12149. tType: this.$route.query.tType,
  12150. courseType: this.$route.query.type,
  12151. screenType: this.$route.query.screenType,
  12152. tcid2: this.$route.query.tcid,
  12153. tcid: "",
  12154. pptImgUrl: "",
  12155. pptImgUrl1: "",
  12156. commentText: "",
  12157. full: false,
  12158. sIsOpen: false,
  12159. IsLookOpen: false,
  12160. IsFollow: false,
  12161. pzDialog: false,
  12162. contentDialog: false,
  12163. mlDialog: false,
  12164. type: 1,
  12165. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12166. sentenceList1: [],
  12167. tableJson: [],
  12168. tableJsonO: [],
  12169. wordJson: [],
  12170. wordJsonO: [],
  12171. vedio: [],
  12172. text: [],
  12173. textList: [],
  12174. line: [],
  12175. lineList: [],
  12176. chapTools: [],
  12177. chapToolList: [],
  12178. file: [],
  12179. fileC: [],
  12180. vedioTime: [],
  12181. upToolImg: "",
  12182. preTime: 0,
  12183. rateList: {
  12184. ca: 0,
  12185. },
  12186. rateParams: [],
  12187. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12188. studyJuri: [
  12189. {
  12190. content: "",
  12191. cover: [],
  12192. upVedio: [],
  12193. upFile: [],
  12194. },
  12195. ],
  12196. isClose: 0,
  12197. plworkFile: [],
  12198. mr: require("../../assets/vedioPic.png"),
  12199. word: require("../../assets/icon/isWord.png"),
  12200. word2: require("../../assets/icon/word2.png"),
  12201. video: require("../../assets/icon/isVideo.png"),
  12202. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12203. likes: require("../../assets/icon/comment/likes.png"),
  12204. scoreImg: require("../../assets/score.png"),
  12205. courseDetail: {},
  12206. reply: "",
  12207. isSelect: false,
  12208. chapInfo: [],
  12209. chapInfoList: [],
  12210. taskCount: 0,
  12211. imgList: [],
  12212. noImgList: [],
  12213. pzList: [],
  12214. timeWorkList: [],
  12215. PlTextList: [
  12216. "Excellent!",
  12217. "nice!",
  12218. this.lang.ssVeryCreative,
  12219. this.lang.ssNotBad,
  12220. this.lang.ssKeepTrying,
  12221. ],
  12222. isClickNav: "",
  12223. navId: "",
  12224. playerOptions: {
  12225. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12226. autoplay: false, //如果true,浏览器准备好时开始回放。
  12227. muted: false, // 默认情况下将会消除任何音频。
  12228. loop: false, // 导致视频一结束就重新开始。
  12229. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12230. language: "zh-CN",
  12231. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12232. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12233. sources: [
  12234. {
  12235. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12236. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12237. },
  12238. ],
  12239. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12240. // poster: dataRes.imgUrl, //你的封面地址
  12241. notSupportedMessage: this.lang.ssVideoNotSupported, //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12242. controlBar: {
  12243. timeDivider: true, //当前时间和持续时间的分隔符
  12244. durationDisplay: true, //显示持续时间
  12245. remainingTimeDisplay: false, //是否显示剩余时间功能
  12246. fullscreenToggle: true, //全屏按钮
  12247. },
  12248. },
  12249. playerOptions1: {
  12250. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12251. autoplay: false, //如果true,浏览器准备好时开始回放。
  12252. muted: false, // 默认情况下将会消除任何音频。
  12253. loop: false, // 导致视频一结束就重新开始。
  12254. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12255. language: "zh-CN",
  12256. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12257. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12258. sources: [
  12259. {
  12260. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12261. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12262. },
  12263. ],
  12264. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12265. // poster: dataRes.imgUrl, //你的封面地址
  12266. notSupportedMessage: this.lang.ssVideoNotSupported, //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12267. controlBar: {
  12268. timeDivider: true, //当前时间和持续时间的分隔符
  12269. durationDisplay: true, //显示持续时间
  12270. remainingTimeDisplay: false, //是否显示剩余时间功能
  12271. fullscreenToggle: true, //全屏按钮
  12272. },
  12273. },
  12274. playerO: {},
  12275. noneBtnImg: false,
  12276. proVisible: false,
  12277. proVisible2: false,
  12278. progress: 0,
  12279. isFinishSize: 0,
  12280. isAllSize: 0,
  12281. questionAnswer: "",
  12282. answerQ: "", //问答标题
  12283. rateJson: [],
  12284. wbCount: 0,
  12285. wordCount: 0,
  12286. mindCount: 0,
  12287. askCount: 0,
  12288. noteCount: 0,
  12289. mindNetWorkCount: 0,
  12290. libraryCount: 0,
  12291. workCount: 0,
  12292. timeCount: 0,
  12293. answerCount: 0,
  12294. trainCount: 0,
  12295. evalCount: 0,
  12296. dialogImageUrl: "",
  12297. pictureDialog: false,
  12298. toolTypeList: [],
  12299. dialogVisible1: false,
  12300. dialogVisible2: false,
  12301. dialogVisible3: false,
  12302. dialogVisible6: false,
  12303. dialogVisible4: false,
  12304. isNoHomeWork: false,
  12305. dialogVisible5: false,
  12306. dialogVisible5Teacher: false,
  12307. dialogVisibleChoice: false,
  12308. dialogVisibleChoiceTeacher: false,
  12309. answerDialogVisible: false,
  12310. answerDialogVisibleTeacher: false,
  12311. juriVisible: false,
  12312. timeDialogVisible: false,
  12313. replyDialogVisible: false,
  12314. toolDialogVisible: false,
  12315. engDialogVisible: false,
  12316. engUpdateDialogVisible:false,
  12317. engEvaDialogVisible: false,
  12318. evaEngJson: {
  12319. teacherJson: {},
  12320. studentJson: {},
  12321. message: {},
  12322. },
  12323. isNoUserid:false,
  12324. engListLength:0,
  12325. engWid:"",
  12326. newEnglishList:{
  12327. engTitle:"",
  12328. engText:"",
  12329. },
  12330. newEnglishList1:[],
  12331. oldEnglishJson:{},
  12332. oldEnglishJson1:{},
  12333. englishList1:{},
  12334. englishList:{},
  12335. myAnswerList1:{},
  12336. topHeight:0,
  12337. newEngIndex:-1,
  12338. englishToolIndex:0,
  12339. userMes:{},
  12340. englishToolIndex:0,
  12341. replyIndex: 0,
  12342. replyPid: "",
  12343. radio: [],
  12344. isAsk: false,
  12345. askJson: {
  12346. askCount: 1,
  12347. askTitle: "",
  12348. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12349. },
  12350. testJson: {},
  12351. englishList: {},
  12352. topHeight:0,
  12353. checkJson: [],
  12354. askList: [],
  12355. answerList: [],
  12356. navList: [],
  12357. addPzDialog: false,
  12358. pzConText: "",
  12359. worksStudent: [],
  12360. isCloseList: [],
  12361. workStudent: [],
  12362. groupStudent: [],
  12363. groupStudentUid: [],
  12364. noWorksS: [],
  12365. isWorksS: [],
  12366. noWorksStudent: [],
  12367. toolindex: 0,
  12368. toolDetailIndex: null,
  12369. groupIndex: 0,
  12370. workTypeB: false,
  12371. workTypeC: false,
  12372. isAnswer: false,
  12373. isHovered: false,
  12374. isHovered1: false,
  12375. isHovered2: false,
  12376. commentTagShow:0,
  12377. timer: null,
  12378. timer2: null,
  12379. opertimer: null,
  12380. showType: '',
  12381. fileType: 0,
  12382. showPDF: false,
  12383. noteName: "",
  12384. evaJuri: [],
  12385. evalua: "",
  12386. eTitle: "",
  12387. eName: "",
  12388. eJson: {},
  12389. fid: "", //一级
  12390. sid: "", //二级
  12391. tid: "", //二级
  12392. typeMode: 1,
  12393. eJSONNum: 0,
  12394. Etype: 1,
  12395. data: {
  12396. meta: {
  12397. name: "example",
  12398. author: "dd@163.com",
  12399. version: "0.2",
  12400. },
  12401. format: "node_array",
  12402. data: [{ id: "root", isroot: true, topic: "" }],
  12403. },
  12404. fullDialogVisible: false,
  12405. fulltype: "",
  12406. fullUrl: "",
  12407. commentIndexJson: {},
  12408. Stbodywidth: 0,
  12409. ispzType: 0,
  12410. pzType: 1,
  12411. wScore: 0,
  12412. scoreDetail: "",
  12413. videoStart: false,
  12414. recorder: null,
  12415. groupJson: {},
  12416. islock: false,
  12417. groupJson2: {},
  12418. dialogVisibleGroup: false,
  12419. dialogVisibleGroup2: false,
  12420. updateGroupArray: [],
  12421. updateGroupUser: {},
  12422. deleteGroupUser: [],
  12423. deleteGroupArray: {},
  12424. checkChair: "",
  12425. checkDeleteGroup: [],
  12426. inviteCode: "",
  12427. courseGroupStudent: [],
  12428. courseGroupStudentUid: [],
  12429. courseGroup: {},
  12430. isGroup: false,
  12431. toolIndex: null,
  12432. tool: {},
  12433. isWorkTool: [
  12434. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12435. ], //, 40
  12436. videoJson: {},
  12437. videoType:0,
  12438. toolType: 0,
  12439. checktoolArray: [],
  12440. vChapterData: [],
  12441. isUpdateToolDetail: false,
  12442. isUpdateToolDetail1: false,
  12443. updateToolDetailInner: "",
  12444. checkboxList: [],
  12445. plIndex: "",
  12446. worksSName2: "",
  12447. worksSid: "",
  12448. wordCloudData: [],
  12449. isPickStudent: [],
  12450. pzStype: 1,
  12451. myAnList: {},
  12452. downLoading: false,
  12453. greyType: false,
  12454. correctWord: [],
  12455. EnglishVoiceDialog: false,
  12456. englishVoiceJson: {},
  12457. englishVoiceJsonWork:[],
  12458. scoreList:{
  12459. listdata:[],
  12460. isScoreList:[],
  12461. },
  12462. classRoomHelperWidth: this.$region != 'hk' ? '85px' : '15px',
  12463. orgArray:[],
  12464. oidArray:[],
  12465. splitScreenData:{
  12466. isOpen:false,
  12467. userId:"",
  12468. uid:"",
  12469. myUid:"",
  12470. loading:false,
  12471. behavior:null,
  12472. },
  12473. confirmOpenDig:false,
  12474. confirmOpenDigData:'',
  12475. diffKey:"1",
  12476. getCourseGroupLoading: false,
  12477. selectSWorksLoading:false,
  12478. selectStudentLoading:false,
  12479. selectSLookLoading:false,
  12480. getPickLoading:false,
  12481. selectPzLoading:false,
  12482. getSplitScreenDataLoading:false,
  12483. };
  12484. },
  12485. methods: {
  12486. // 获取学校或组织随机码
  12487. getCode2(){
  12488. let params = {
  12489. oid: this.oid,
  12490. org: this.org
  12491. };
  12492. this.ajax
  12493. .get(this.$store.state.api + "getCode2", params)
  12494. .then(res => {
  12495. this.Code2 = res.data[0] && res.data[0][0] && res.data[0][0].code2 ? res.data[0][0].code2 : ''
  12496. })
  12497. .catch(err => {
  12498. console.error(err);
  12499. });
  12500. },
  12501. //查看应用中心作业
  12502. openCocoFlow(w){
  12503. this.$refs.cocoFlowDiaRef.openAppWork(w)
  12504. },
  12505. getAIJ(){
  12506. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12507. let oid = res.data[0];
  12508. let org = res.data[1];
  12509. let oidArray = [];
  12510. let orgArray = [];
  12511. oid.forEach(i=>oidArray.push(i.oid))
  12512. org.forEach(i=>orgArray.push(i.oid))
  12513. this.orgArray = orgArray;
  12514. this.oidArray = oidArray;
  12515. })
  12516. },
  12517. insertMemorandum(_html){//保存行为操作
  12518. //variable
  12519. //btn
  12520. let params = [{
  12521. uid:this.userid,
  12522. courseId:this.id+(this.tcid2?this.tcid2:''),
  12523. content:_html
  12524. }]
  12525. console.log(params)
  12526. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12527. if(res.data==1){
  12528. console.log('保存操作成功')
  12529. }else{
  12530. console.log('保存操作失败')
  12531. }
  12532. }).catch(e=>{
  12533. console.log('保存操作失败')
  12534. console.log(e)
  12535. })
  12536. },
  12537. gx(){
  12538. this.$forceUpdate();
  12539. },
  12540. isUpdateCorrect(t,p){
  12541. if(this.greyType == false){
  12542. this.isUpdateText = t;
  12543. this.greyType = true;
  12544. }else{
  12545. if(p == 1){
  12546. this.newEnglishList.engText = this.isUpdateText;
  12547. }else if(p == 2){
  12548. this.oldEnglishJson1.engText = this.isUpdateText;
  12549. }else if(p == 3){
  12550. this.newEnglishList.engText = this.isUpdateText;
  12551. }else{
  12552. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12553. }
  12554. this.greyType = false
  12555. }
  12556. },
  12557. aiCorrect(t,p){
  12558. let aiText = "";
  12559. const loading = this.$loading.service({
  12560. background: "rgba(255, 255, 255)",
  12561. target: document.querySelectorAll(".loadingText")[0],
  12562. });
  12563. let param = {
  12564. model: "gpt-3.5-turbo",
  12565. temperature: 0,
  12566. max_tokens: 2048,
  12567. top_p: 1,
  12568. frequency_penalty: 0,
  12569. presence_penalty: 0,
  12570. messages: [
  12571. {
  12572. role: "user",
  12573. content:
  12574. `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12575. },
  12576. ],
  12577. uid: this.userid,
  12578. stream: false,
  12579. };
  12580. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12581. (res) => {
  12582. if (
  12583. res.data.FunctionResponse &&
  12584. res.data.FunctionResponse.result &&
  12585. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12586. ) {
  12587. this.$message.error(this.lang.ssEssayTooLongForAI);
  12588. return;
  12589. }
  12590. aiText =
  12591. res.data.FunctionResponse.choices[0].message.content;
  12592. aiText = aiText.replace(/%/g,"%25");
  12593. // let w = "";
  12594. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12595. // for(var k = 0;k<a.length;k++){
  12596. // //diffWordsWithSpace
  12597. // if(a.length > 1){
  12598. // if(a[k].added == true){
  12599. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12600. // }else if(a[k].removed == true){
  12601. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12602. // }else{
  12603. // w += '<span>' + a[k].value + '</span>';
  12604. // }
  12605. // }else{
  12606. // if(p == 1){
  12607. // w = this.newEnglishList.engText;
  12608. // }else if(p == 2){
  12609. // w = this.oldEnglishJson1.engText;
  12610. // }else if(p == 3){
  12611. // w = this.newEnglishList.engText;
  12612. // }else{
  12613. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12614. // }
  12615. // }
  12616. // }
  12617. if(p == 1){
  12618. this.newEnglishList.engText = aiText;
  12619. }else if(p == 2){
  12620. this.oldEnglishJson1.engText = aiText;
  12621. }else if(p == 3){
  12622. this.newEnglishList.engText = aiText;
  12623. }else{
  12624. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12625. }
  12626. loading.close();
  12627. },
  12628. (err) => {
  12629. console.log(err);
  12630. loading.close();
  12631. }
  12632. );
  12633. },
  12634. addToolChoose() {
  12635. if (!this.checktoolArray.length) {
  12636. this.$message.error(this.lang.ssSelectTaskToAdd);
  12637. return;
  12638. }
  12639. if (
  12640. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12641. this.taskCount
  12642. ].toolChoose[0].tool.length
  12643. ) {
  12644. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12645. this.taskCount
  12646. ].toolChoose[0].tool = this.checktoolArray;
  12647. } else {
  12648. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12649. this.taskCount
  12650. ].toolChoose.push({
  12651. tool: this.checktoolArray,
  12652. toolDetail: "",
  12653. toolType: 0,
  12654. askCount: 1,
  12655. askTitle: "",
  12656. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12657. });
  12658. }
  12659. let params = [
  12660. {
  12661. cid: this.id,
  12662. chapters: JSON.stringify(this.chapInfoList),
  12663. uid: this.userid,
  12664. unitIndex: this.courseType,
  12665. },
  12666. ];
  12667. this.ajax
  12668. .post(this.$store.state.api + "updateWorkNew4", params)
  12669. .then((res) => {
  12670. this.$message({
  12671. message: this.lang.ssAddSuccess,
  12672. type: "success",
  12673. });
  12674. this.checktoolArray = [];
  12675. this.getCourseDetail(2);
  12676. this.checkBz(
  12677. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12678. this.taskCount
  12679. ].toolChoose.length - 1
  12680. );
  12681. this.toolDialogVisible = false;
  12682. this.refreshCourse();
  12683. this.$forceUpdate();
  12684. })
  12685. .catch((err) => {
  12686. console.error(err);
  12687. });
  12688. },
  12689. checkBz(index) {
  12690. this.isUpdateToolDetail = false;
  12691. this.$forceUpdate();
  12692. setTimeout(() => {
  12693. document.scrollingElement.scrollTop =
  12694. document.querySelectorAll(".filebox")[index].offsetTop +
  12695. document.querySelector(".student_body").offsetTop;
  12696. }, 500);
  12697. },
  12698. updateToolDetail(i, type) {
  12699. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12700. this.toolDetailIndex = i
  12701. this.isUpdateToolDetail1 = true;
  12702. setTimeout(() => {
  12703. this.updateToolDetailInner = JSON.parse(
  12704. JSON.stringify(
  12705. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12706. this.taskCount
  12707. ].toolChoose[i].toolDetail
  12708. )
  12709. );
  12710. document.querySelector(".checkTextArea").focus();
  12711. }, 0);
  12712. } else if((this.isUpdateToolDetail1 && type != 2)){
  12713. // this.toolDetailIndex = i;
  12714. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12715. this.taskCount
  12716. ].toolChoose[i].toolDetail = JSON.parse(
  12717. JSON.stringify(this.updateToolDetailInner)
  12718. );
  12719. let params = [
  12720. {
  12721. cid: this.id,
  12722. chapters: JSON.stringify(this.chapInfoList),
  12723. uid: this.userid,
  12724. unitIndex: this.courseType,
  12725. },
  12726. ];
  12727. this.ajax
  12728. .post(this.$store.state.api + "updateWorkNew4", params)
  12729. .then((res) => {
  12730. this.isUpdateToolDetail1 = false;
  12731. this.$message({
  12732. message: this.lang.ssModifySuccess,
  12733. type: "success",
  12734. });
  12735. this.toolDetailIndex = null;
  12736. this.updateToolDetailInner = "";
  12737. this.getCourseDetail(2);
  12738. this.$forceUpdate();
  12739. })
  12740. .catch((err) => {
  12741. console.error(err);
  12742. });
  12743. } else if((this.isUpdateToolDetail1 && type == 2)){
  12744. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12745. this.taskCount
  12746. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12747. JSON.stringify(this.updateToolDetailInner)
  12748. );
  12749. let params = [
  12750. {
  12751. cid: this.id,
  12752. chapters: JSON.stringify(this.chapInfoList),
  12753. uid: this.userid,
  12754. unitIndex: this.courseType,
  12755. },
  12756. ];
  12757. this.ajax
  12758. .post(this.$store.state.api + "updateWorkNew4", params)
  12759. .then((res) => {
  12760. this.$message({
  12761. message: this.lang.ssModifySuccess,
  12762. type: "success",
  12763. });
  12764. this.toolDetailIndex = i;
  12765. this.isUpdateToolDetail1 = true;
  12766. setTimeout(() => {
  12767. this.updateToolDetailInner = JSON.parse(
  12768. JSON.stringify(
  12769. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12770. this.taskCount
  12771. ].toolChoose[i].toolDetail
  12772. )
  12773. );
  12774. document.querySelector(".checkTextArea").focus();
  12775. }, 0);
  12776. this.getCourseDetail(2);
  12777. this.$forceUpdate();
  12778. })
  12779. .catch((err) => {
  12780. console.error(err);
  12781. });
  12782. }
  12783. },
  12784. jumpGj(i, j, k, l) {
  12785. for (var z = 0; z < this.navList.length; z++) {
  12786. for (var q = 0; q < this.navList[z].task.length; q++) {
  12787. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12788. this.navList[z].task[q].tool[w].isTool = false;
  12789. }
  12790. }
  12791. }
  12792. console.log(this.navList);
  12793. this.navList[i].task[j].tool[k].isTool =
  12794. !this.navList[i].task[j].tool[k].isTool;
  12795. var a = document.scrollingElement;
  12796. let target = document.querySelector(`#gj${k}`);
  12797. if (target) {
  12798. // target.scrollIntoView(true);
  12799. // setTimeout(() => {
  12800. // a.scrollTop = a.scrollTop - 150;
  12801. // }, 0);
  12802. target.scrollIntoView();
  12803. setTimeout(()=>{
  12804. let scrollBody = document.querySelector('.body_student').parentElement
  12805. scrollBody.scrollTop = scrollBody.scrollTop - 100
  12806. }, 0);
  12807. }
  12808. this.navId = ""
  12809. let flag = this.courseType == i;
  12810. let flag2 = this.taskCount == j
  12811. if (l) {
  12812. this.courseType = i;
  12813. // this.navId = l;
  12814. this.taskCount = j;
  12815. this.selectPz();
  12816. this.getHomeWork();
  12817. this.getCourseDetail(2);
  12818. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  12819. if(flag){
  12820. if(flag2){
  12821. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12822. }else{
  12823. 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>`)
  12824. }
  12825. }else{
  12826. 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>`)
  12827. }
  12828. }
  12829. if ((this.courseDetail.userid == this.userid ||
  12830. (this.courseDetail.course_teacher &&
  12831. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
  12832. this.IsFollow) {
  12833. this.setCTask();
  12834. }
  12835. // var b = this.$refs["bz" + k][0];
  12836. // a.scrollTop = b.offsetTop;
  12837. },
  12838. addTools2(i) {
  12839. if (i == 4) {
  12840. // this.openTools2(4);
  12841. this.$message.error(this.lang.ssNotAvailable);
  12842. return;
  12843. }
  12844. if (i == 45) {
  12845. // this.openTools2(45);
  12846. this.$message.error(this.lang.ssNotAvailable);
  12847. return;
  12848. }
  12849. if (i == 47) {
  12850. // this.openTools2(47);
  12851. this.$message.error(this.lang.ssNotAvailable);
  12852. return;
  12853. }
  12854. if (i == 49) {
  12855. // this.openTools2(49);
  12856. this.$message.error(this.lang.ssNotAvailable);
  12857. return;
  12858. }
  12859. if (i == 62) {
  12860. // this.openTools(itemTaskIndex, 62, toolIndex);
  12861. this.$message.error(this.lang.ssNotAvailable);
  12862. return;
  12863. }
  12864. if (i == 15) {
  12865. // this.openTools(itemTaskIndex, 15, toolIndex);
  12866. this.$message.error(this.lang.ssNotAvailable);
  12867. return;
  12868. }
  12869. if (i == 40) {
  12870. // this.openTools(itemTaskIndex, 40, toolIndex);
  12871. this.$message.error(this.lang.ssNotAvailable);
  12872. return;
  12873. }
  12874. if (i == 41) {
  12875. // this.openTools(itemTaskIndex, 41, toolIndex);
  12876. this.$message.error(this.lang.ssNotAvailable);
  12877. return;
  12878. }
  12879. if (i == 42) {
  12880. // this.openTools(itemTaskIndex, 42, toolIndex);
  12881. this.$message.error(this.lang.ssNotAvailable);
  12882. return;
  12883. }
  12884. if (this.checktoolArray.length > 0) {
  12885. if (this.checktoolArray.indexOf(i) != -1) {
  12886. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12887. } else {
  12888. this.checktoolArray = [];
  12889. this.checktoolArray.push(i);
  12890. }
  12891. } else {
  12892. this.checktoolArray.push(i);
  12893. }
  12894. this.$forceUpdate();
  12895. },
  12896. jump() {
  12897. window.topU.postMessage({ tools: "43" }, "*");
  12898. },
  12899. getUpdateMore(f, checkboxList, searchTN, index) {
  12900. this.dialogVisibleMember = f;
  12901. this.checkboxList = checkboxList;
  12902. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12903. this.plIndex = index;
  12904. },
  12905. setPlname(a) {
  12906. if (this.plworkFile.length) {
  12907. this.plworkFile[this.plIndex].username = a;
  12908. } else {
  12909. this.worksSName = a;
  12910. }
  12911. this.dialogVisibleMember = false;
  12912. },
  12913. previewImg(url,w) {
  12914. this.$hevueImgPreview(url);
  12915. if(w){
  12916. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  12917. }
  12918. },
  12919. checkImg(list) {
  12920. if (!list.length) {
  12921. return;
  12922. }
  12923. this.$hevueImgPreview({
  12924. multiple: true, // 开启多图预览模式
  12925. imgList: list, // 需要预览的多图数组
  12926. });
  12927. },
  12928. change(val) {
  12929. console.log(val);
  12930. },
  12931. goTo(path) {
  12932. this.$router.push(path);
  12933. },
  12934. handlePictureCardPreview(url) {
  12935. this.dialogImageUrl = url;
  12936. this.pictureDialog = true;
  12937. },
  12938. clean(type) {
  12939. if (type == 1) {
  12940. this.studyJuri[0].cover.splice(0, 1);
  12941. } else if (type == 2) {
  12942. this.studyJuri[0].upVedio.splice(0, 1);
  12943. } else {
  12944. this.studyJuri[0].upFile.splice(0, 1);
  12945. }
  12946. },
  12947. clean2(index) {
  12948. this.plworkFile.splice(index, 1);
  12949. },
  12950. handleClose(done) {
  12951. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12952. this.videoDetail.sources[0].src = "";
  12953. }
  12954. this.commentIndexJson = {};
  12955. this.changeSplitScreenBehavior({code:99})
  12956. done();
  12957. },
  12958. fullTools() {
  12959. this.full = !this.full;
  12960. },
  12961. imgChange(file, fileList, type) {
  12962. if (type == 1) {
  12963. var _tmp = this.studyJuri[0].cover;
  12964. } else if (type == 2) {
  12965. var _tmp = this.studyJuri[0].upVedio;
  12966. } else {
  12967. var _tmp = this.studyJuri[0].upFile;
  12968. }
  12969. this.noneBtnImg = _tmp.length >= 1;
  12970. },
  12971. setContent(bool) {
  12972. this.contentDialog = bool;
  12973. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12974. document.querySelector(".workd_media").style.height = "650px";
  12975. } else if (document.querySelector(".workd_media")) {
  12976. document.querySelector(".workd_media").style.height = "auto";
  12977. }
  12978. },
  12979. setContent2(bool) {
  12980. this.mlDialog = bool;
  12981. if (
  12982. bool &&
  12983. this.contentDialog &&
  12984. document.querySelector(".workd_media")
  12985. ) {
  12986. document.querySelector(".workd_media").style.height = "650px";
  12987. } else if (document.querySelector(".workd_media")) {
  12988. document.querySelector(".workd_media").style.height = "auto";
  12989. }
  12990. },
  12991. openToolAll() {
  12992. this.toolDialogVisible = true;
  12993. },
  12994. addImg(e) {
  12995. var el = e.currentTarget;
  12996. // this.$message.success('触发上传')
  12997. el.getElementsByTagName("input")[0].click();
  12998. e.target.value = "";
  12999. },
  13000. addSelectAnswer() {
  13001. let params = [
  13002. {
  13003. uid: this.userid,
  13004. cid: this.id,
  13005. stage: this.courseType,
  13006. task: this.taskCount,
  13007. tool: this.toolindex,
  13008. content: this.selectAnswer.answer,
  13009. type: 7,
  13010. },
  13011. ];
  13012. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13013. this.homeWorkLoading = true
  13014. this.ajax
  13015. .post(this.$store.state.api + "addCourseWorks", params)
  13016. .then((res) => {
  13017. this.$message({
  13018. message: this.lang.ssSubmitSuccess,
  13019. type: "success",
  13020. });
  13021. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13022. setTimeout(() => {
  13023. this.homeWorkLoading = false
  13024. }, 500);
  13025. this.dialogVisibleSelect = false;
  13026. // this.selectAnswer = {};
  13027. this.selectSWorks();
  13028. this.selectStudent();
  13029. })
  13030. .catch((err) => {
  13031. this.$message.error(this.lang.ssSubmitFailed);
  13032. console.error(err);
  13033. setTimeout(() => {
  13034. this.homeWorkLoading = false
  13035. }, 500);
  13036. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13037. });
  13038. },
  13039. addSelectAnswerTeacher() {
  13040. let params = [
  13041. {
  13042. uid: this.sStudent.userid,
  13043. cid: this.id,
  13044. stage: this.courseType,
  13045. task: this.taskCount,
  13046. tool: this.toolindex,
  13047. content: this.selectAnswer.answer,
  13048. type: 7,
  13049. },
  13050. ];
  13051. this.ajax
  13052. .post(this.$store.state.api + "addCourseWorks", params)
  13053. .then((res) => {
  13054. this.$message({
  13055. message: this.lang.ssSubmitSuccess,
  13056. type: "success",
  13057. });
  13058. this.dialogVisibleSelectTeacher = false;
  13059. // this.selectAnswer = {};
  13060. this.selectSWorks();
  13061. this.selectStudent();
  13062. })
  13063. .catch((err) => {
  13064. this.$message.error(this.lang.ssSubmitFailed);
  13065. console.error(err);
  13066. });
  13067. },
  13068. addSenWorks() {
  13069. for (var i = 0; i < this.sentenceList.length; i++) {
  13070. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13071. if (
  13072. this.sentenceList[i].chooseSenList[j] == undefined ||
  13073. this.sentenceList[i].chooseSenList[j] == ""
  13074. ) {
  13075. this.$message.error(this.lang.ssFillAnswersComplete);
  13076. return;
  13077. }
  13078. }
  13079. }
  13080. let params = [
  13081. {
  13082. uid: this.userid,
  13083. cid: this.id,
  13084. stage: this.courseType,
  13085. task: this.taskCount,
  13086. tool: this.toolindex,
  13087. content: JSON.stringify(this.sentenceList),
  13088. type: 9,
  13089. },
  13090. ];
  13091. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13092. this.homeWorkLoading = true
  13093. this.ajax
  13094. .post(this.$store.state.api + "addCourseWorks", params)
  13095. .then((res) => {
  13096. this.$message({
  13097. message: this.lang.ssSubmitSuccess,
  13098. type: "success",
  13099. });
  13100. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13101. setTimeout(() => {
  13102. this.homeWorkLoading = false
  13103. }, 500);
  13104. this.dialogVisibleSentence = false;
  13105. // this.selectAnswer = {};
  13106. this.selectSWorks();
  13107. this.selectStudent();
  13108. })
  13109. .catch((err) => {
  13110. this.$message.error(this.lang.ssSubmitFailed);
  13111. console.error(err);
  13112. setTimeout(() => {
  13113. this.homeWorkLoading = false
  13114. }, 500);
  13115. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13116. });
  13117. },
  13118. addSenWorksTeacher() {
  13119. for (var i = 0; i < this.sentenceList.length; i++) {
  13120. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13121. if (
  13122. this.sentenceList[i].chooseSenList[j] == undefined ||
  13123. this.sentenceList[i].chooseSenList[j] == ""
  13124. ) {
  13125. this.$message.error(this.lang.ssFillAnswersComplete);
  13126. return;
  13127. }
  13128. }
  13129. }
  13130. let params = [
  13131. {
  13132. uid: this.sStudent.userid,
  13133. cid: this.id,
  13134. stage: this.courseType,
  13135. task: this.taskCount,
  13136. tool: this.toolindex,
  13137. content: JSON.stringify(this.sentenceList),
  13138. type: 9,
  13139. },
  13140. ];
  13141. this.ajax
  13142. .post(this.$store.state.api + "addCourseWorks", params)
  13143. .then((res) => {
  13144. this.$message({
  13145. message: this.lang.ssSubmitSuccess,
  13146. type: "success",
  13147. });
  13148. this.dialogVisibleSentenceTeacher = false;
  13149. // this.selectAnswer = {};
  13150. this.selectSWorks();
  13151. this.selectStudent();
  13152. })
  13153. .catch((err) => {
  13154. this.$message.error(this.lang.ssSubmitFailed);
  13155. console.error(err);
  13156. });
  13157. },
  13158. returnTableText() {
  13159. this.$confirm(this.lang.ssConfirmRestoreTemplate, this.lang.ssPrompt, {
  13160. confirmButtonText: this.lang.ssConfirm,
  13161. cancelButtonText: this.lang.ssCancel,
  13162. type: "warning",
  13163. })
  13164. .then(() => {
  13165. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13166. })
  13167. .catch(() => {});
  13168. },
  13169. addTableWorks() {
  13170. let params = [
  13171. {
  13172. uid: this.userid,
  13173. cid: this.id,
  13174. stage: this.courseType,
  13175. task: this.taskCount,
  13176. tool: this.toolindex,
  13177. content: JSON.stringify(this.tableJson),
  13178. type: 10,
  13179. },
  13180. ];
  13181. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13182. this.homeWorkLoading = true
  13183. this.ajax
  13184. .post(this.$store.state.api + "addCourseWorks", params)
  13185. .then((res) => {
  13186. this.$message({
  13187. message: this.lang.ssSubmitSuccess,
  13188. type: "success",
  13189. });
  13190. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13191. setTimeout(() => {
  13192. this.homeWorkLoading = false
  13193. }, 500);
  13194. this.dialogVisibleTable = false;
  13195. // this.selectAnswer = {};
  13196. this.selectSWorks();
  13197. this.selectStudent();
  13198. })
  13199. .catch((err) => {
  13200. this.$message.error(this.lang.ssSubmitFailed);
  13201. console.error(err);
  13202. setTimeout(() => {
  13203. this.homeWorkLoading = false
  13204. }, 500);
  13205. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13206. });
  13207. },
  13208. tableRowClassName({ row, rowIndex }) {
  13209. if ((rowIndex + 1) % 2 === 0) {
  13210. return "even_row";
  13211. } else {
  13212. return "";
  13213. }
  13214. },
  13215. addTableWorksTeacher() {
  13216. let params = [
  13217. {
  13218. uid: this.sStudent.userid,
  13219. cid: this.id,
  13220. stage: this.courseType,
  13221. task: this.taskCount,
  13222. tool: this.toolindex,
  13223. content: JSON.stringify(this.tableJson),
  13224. type: 10,
  13225. },
  13226. ];
  13227. this.ajax
  13228. .post(this.$store.state.api + "addCourseWorks", params)
  13229. .then((res) => {
  13230. this.$message({
  13231. message: this.lang.ssSubmitSuccess,
  13232. type: "success",
  13233. });
  13234. this.dialogVisibleTableTeacher = false;
  13235. // this.selectAnswer = {};
  13236. this.selectSWorks();
  13237. this.selectStudent();
  13238. })
  13239. .catch((err) => {
  13240. this.$message.error(this.lang.ssSubmitFailed);
  13241. console.error(err);
  13242. });
  13243. },
  13244. returnWordText() {
  13245. this.$confirm(this.lang.ssConfirmRestoreTemplate, this.lang.ssPrompt, {
  13246. confirmButtonText: this.lang.ssConfirm,
  13247. cancelButtonText: this.lang.ssCancel,
  13248. type: "warning",
  13249. })
  13250. .then(() => {
  13251. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13252. })
  13253. .catch(() => {});
  13254. },
  13255. addWordWorks() {
  13256. let params = [
  13257. {
  13258. uid: this.userid,
  13259. cid: this.id,
  13260. stage: this.courseType,
  13261. task: this.taskCount,
  13262. tool: this.toolindex,
  13263. content: JSON.stringify(this.wordJson),
  13264. type: 13,
  13265. atool: 52,
  13266. },
  13267. ];
  13268. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13269. this.homeWorkLoading = true
  13270. this.ajax
  13271. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13272. .then((res) => {
  13273. this.$message({
  13274. message: this.lang.ssSubmitSuccess,
  13275. type: "success",
  13276. });
  13277. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13278. setTimeout(() => {
  13279. this.homeWorkLoading = false
  13280. }, 500);
  13281. this.dialogVisibleWord = false;
  13282. // this.selectAnswer = {};
  13283. this.selectSWorks();
  13284. this.selectStudent();
  13285. })
  13286. .catch((err) => {
  13287. this.$message.error(this.lang.ssSubmitFailed);
  13288. console.error(err);
  13289. setTimeout(() => {
  13290. this.homeWorkLoading = false
  13291. }, 500);
  13292. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13293. });
  13294. },
  13295. addWordWorksTeacher() {
  13296. let params = [
  13297. {
  13298. uid: this.sStudent.userid,
  13299. cid: this.id,
  13300. stage: this.courseType,
  13301. task: this.taskCount,
  13302. tool: this.toolindex,
  13303. content: JSON.stringify(this.wordJson),
  13304. type: 13,
  13305. atool: 52,
  13306. },
  13307. ];
  13308. this.ajax
  13309. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13310. .then((res) => {
  13311. this.$message({
  13312. message: this.lang.ssSubmitSuccess,
  13313. type: "success",
  13314. });
  13315. this.dialogVisibleWordTeacher = false;
  13316. // this.selectAnswer = {};
  13317. this.selectSWorks();
  13318. this.selectStudent();
  13319. })
  13320. .catch((err) => {
  13321. this.$message.error(this.lang.ssSubmitFailed);
  13322. console.error(err);
  13323. });
  13324. },
  13325. addCourseWorks(i) {
  13326. var typesql;
  13327. if (this.fileType === 0) {
  13328. typesql = 1;
  13329. } else if (this.fileType === 1) {
  13330. typesql = 4;
  13331. } else if (this.fileType === 2) {
  13332. typesql = 5;
  13333. } else if (this.fileType === 3) {
  13334. typesql = 12;
  13335. }
  13336. if (!this.studyJuri[0].cover[0].url) {
  13337. this.$message.error(this.lang.ssUploadFileRequired);
  13338. return;
  13339. }
  13340. let params = [
  13341. {
  13342. uid: this.userid,
  13343. cid: this.id,
  13344. stage: this.courseType,
  13345. task: i,
  13346. tool: this.toolindex,
  13347. content: this.studyJuri[0].cover[0].url,
  13348. type: typesql,
  13349. },
  13350. ];
  13351. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13352. this.homeWorkLoading = true
  13353. this.ajax
  13354. .post(this.$store.state.api + "addCourseWorksR", params)
  13355. .then((res) => {
  13356. this.$message({
  13357. message: this.lang.ssSubmitSuccess,
  13358. type: "success",
  13359. });
  13360. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13361. setTimeout(() => {
  13362. this.homeWorkLoading = false
  13363. }, 500);
  13364. this.studyJuri[0].cover = [];
  13365. this.dialogVisible = false;
  13366. this.getCourseDetail(2);
  13367. })
  13368. .catch((err) => {
  13369. this.$message.error(this.lang.ssSubmitFailed);
  13370. console.error(err);
  13371. setTimeout(() => {
  13372. this.homeWorkLoading = false
  13373. }, 500);
  13374. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13375. });
  13376. },
  13377. addCourseWorksPl(i) {
  13378. let _files = this.plworkFile;
  13379. var c = 1;
  13380. for (var k = 0; k < _files.length; k++) {
  13381. if (!_files[k].username) {
  13382. c = 2;
  13383. }
  13384. }
  13385. if (c == 2) {
  13386. this.$message.error(this.lang.ssEnterStudentName);
  13387. return;
  13388. }
  13389. let params = [
  13390. {
  13391. ateacher: this.userid,
  13392. cid: this.id,
  13393. stage: this.courseType,
  13394. task: i,
  13395. tool: this.toolindex,
  13396. content: JSON.stringify(_files),
  13397. },
  13398. ];
  13399. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13400. this.homeWorkLoading = true
  13401. this.ajax
  13402. .post(this.$store.state.api + "addCourseWorksPl", params)
  13403. .then((res) => {
  13404. this.$message({
  13405. message: this.lang.ssSubmitSuccess,
  13406. type: "success",
  13407. });
  13408. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  13409. setTimeout(() => {
  13410. this.homeWorkLoading = false
  13411. }, 500);
  13412. this.plworkFile = [];
  13413. this.dialogVisiblePl = false;
  13414. this.getCourseDetail(2);
  13415. })
  13416. .catch((err) => {
  13417. this.$message.error(this.lang.ssSubmitFailed);
  13418. console.error(err);
  13419. setTimeout(() => {
  13420. this.homeWorkLoading = false
  13421. }, 500);
  13422. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  13423. });
  13424. },
  13425. addCourseWorks2(i) {
  13426. var typesql;
  13427. if (this.fileType === 0) {
  13428. typesql = 0;
  13429. } else if (this.fileType === 1) {
  13430. typesql = 1;
  13431. } else if (this.fileType === 2) {
  13432. typesql = 3;
  13433. } else if (this.fileType === 3) {
  13434. typesql = 12;
  13435. }
  13436. if (!this.studyJuri[0].cover[0].url) {
  13437. this.$message.error(this.lang.ssUploadFileRequired);
  13438. return;
  13439. }
  13440. let params = [
  13441. {
  13442. uid: this.userid,
  13443. cid: this.id,
  13444. stage: this.courseType,
  13445. task: i,
  13446. tool: this.toolindex,
  13447. content: JSON.stringify({
  13448. type: typesql,
  13449. groupIndex: this.groupIndex,
  13450. url: this.studyJuri[0].cover[0].url,
  13451. }),
  13452. type: 11,
  13453. atool: 49,
  13454. text: "",
  13455. },
  13456. ];
  13457. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13458. this.homeWorkLoading = true
  13459. this.ajax
  13460. .post(this.$store.state.api + "addCourseWorks5", params)
  13461. .then((res) => {
  13462. this.$message({
  13463. message: this.lang.ssSubmitSuccess,
  13464. type: "success",
  13465. });
  13466. setTimeout(() => {
  13467. this.homeWorkLoading = false
  13468. }, 500);
  13469. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13470. type: typesql,
  13471. groupIndex: this.groupIndex,
  13472. url: this.studyJuri[0].cover[0].url,
  13473. }),type: "course_tool_sub" }, "success")
  13474. this.studyJuri[0].cover = [];
  13475. this.dialogVisibleGroupWork = false;
  13476. this.getCourseDetail(2);
  13477. })
  13478. .catch((err) => {
  13479. this.$message.error(this.lang.ssSubmitFailed);
  13480. console.error(err);
  13481. setTimeout(() => {
  13482. this.homeWorkLoading = false
  13483. }, 500);
  13484. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13485. type: typesql,
  13486. groupIndex: this.groupIndex,
  13487. url: this.studyJuri[0].cover[0].url,
  13488. }),type: "course_tool_sub" }, err)
  13489. });
  13490. },
  13491. addEnglishWork() {
  13492. this.myAnList = this.$refs['engJson'].myAnswerList;
  13493. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13494. this.$message.error(this.lang.ssEnterEssayContent);
  13495. return;
  13496. }
  13497. let params = [
  13498. {
  13499. uid: this.userid,
  13500. cid: this.id,
  13501. stage: this.courseType,
  13502. task: this.taskCount,
  13503. tool: this.englishToolIndex,
  13504. content: JSON.stringify(this.myAnList),
  13505. type: 16,
  13506. atool: 69,
  13507. text: "",
  13508. },
  13509. ];
  13510. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13511. this.homeWorkLoading = true
  13512. this.ajax
  13513. .post(this.$store.state.api + "addCourseWorks5", params)
  13514. .then((res) => {
  13515. this.$message({
  13516. message: this.lang.ssSubmitSuccess,
  13517. type: "success",
  13518. });
  13519. setTimeout(() => {
  13520. this.homeWorkLoading = false
  13521. }, 500);
  13522. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  13523. data: JSON.stringify(this.myAnList),
  13524. type: "course_tool_sub" }, "success")
  13525. this.myAnList = {};
  13526. this.englishList = {};
  13527. this.englishToolIndex = 0;
  13528. this.engDialogVisible = false;
  13529. this.selectSWorks();
  13530. this.selectStudent();
  13531. })
  13532. .catch((err) => {
  13533. this.$message.error(this.lang.ssSubmitFailed);
  13534. console.error(err);
  13535. setTimeout(() => {
  13536. this.homeWorkLoading = false
  13537. }, 500);
  13538. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  13539. data: JSON.stringify(this.myAnList),
  13540. type: "course_tool_sub" }, err)
  13541. });
  13542. },
  13543. addCourseWorksGong(i, data, tool) {
  13544. let params = [
  13545. {
  13546. uid: this.userid,
  13547. cid: this.id,
  13548. stage: this.courseType,
  13549. task: this.taskCount,
  13550. tool: i,
  13551. content: data,
  13552. type: 12,
  13553. atool: tool,
  13554. text: "",
  13555. },
  13556. ];
  13557. this.ajax
  13558. .post(this.$store.state.api + "addCourseWorks5", params)
  13559. .then((res) => {
  13560. this.$message({
  13561. message: this.lang.ssSubmitSuccess,
  13562. type: "success",
  13563. });
  13564. this.studyJuri[0].cover = [];
  13565. this.selectSWorks();
  13566. this.selectStudent();
  13567. })
  13568. .catch((err) => {
  13569. this.$message.error(this.lang.ssSubmitFailed);
  13570. console.error(err);
  13571. });
  13572. },
  13573. addCourseWorksGongTeacher(i, data, tool) {
  13574. let params = [
  13575. {
  13576. uid: this.sStudent.userid,
  13577. cid: this.id,
  13578. stage: this.courseType,
  13579. task: this.taskCount,
  13580. tool: i,
  13581. content: data,
  13582. type: 12,
  13583. atool: tool,
  13584. text: "",
  13585. },
  13586. ];
  13587. this.ajax
  13588. .post(this.$store.state.api + "addCourseWorks5", params)
  13589. .then((res) => {
  13590. this.$message({
  13591. message: this.lang.ssSubmitSuccess,
  13592. type: "success",
  13593. });
  13594. this.studyJuri[0].cover = [];
  13595. this.dialogVisibleWorks = false;
  13596. this.selectSWorks();
  13597. this.selectStudent();
  13598. })
  13599. .catch((err) => {
  13600. this.$message.error(this.lang.ssSubmitFailed);
  13601. console.error(err);
  13602. });
  13603. },
  13604. addCourseWorksGongPl(i, data, tool, type) {
  13605. let params = [
  13606. {
  13607. uid: this.sStudent.userid,
  13608. cid: this.id,
  13609. stage: this.courseType,
  13610. task: this.taskCount,
  13611. tool: i,
  13612. content: data,
  13613. type: type,
  13614. atool: tool,
  13615. text: "",
  13616. },
  13617. ];
  13618. this.ajax
  13619. .post(this.$store.state.api + "addCourseWorks5", params)
  13620. .then((res) => {
  13621. this.$message({
  13622. message: this.lang.ssSubmitSuccess,
  13623. type: "success",
  13624. });
  13625. this.studyJuri[0].cover = [];
  13626. this.dialogVisibleWorks = false;
  13627. this.selectSWorks();
  13628. this.selectStudent();
  13629. })
  13630. .catch((err) => {
  13631. this.$message.error(this.lang.ssSubmitFailed);
  13632. console.error(err);
  13633. });
  13634. },
  13635. addCourseWorksTeacher(i) {
  13636. var typesql;
  13637. if (this.sTool == 32) {
  13638. this.addCourseWorksGongTeacher(
  13639. this.toolindex,
  13640. this.studyJuri[0].cover[0].url,
  13641. this.sTool
  13642. );
  13643. return;
  13644. }
  13645. if (this.fileType === 0) {
  13646. typesql = 1;
  13647. } else if (this.fileType === 1) {
  13648. typesql = 4;
  13649. } else if (this.fileType === 2) {
  13650. typesql = 5;
  13651. } else if (this.fileType === 3) {
  13652. typesql = 12;
  13653. }
  13654. if (this.sTool == 50) {
  13655. this.addCourseWorksGongPl(
  13656. this.toolindex,
  13657. this.studyJuri[0].cover[0].url,
  13658. this.sTool,
  13659. typesql
  13660. );
  13661. return;
  13662. }
  13663. if (!this.studyJuri[0].cover[0].url) {
  13664. this.$message.error(this.lang.ssUploadFileRequired);
  13665. return;
  13666. }
  13667. let params = [
  13668. {
  13669. uid: this.sStudent.userid,
  13670. cid: this.id,
  13671. stage: this.courseType,
  13672. task: i,
  13673. tool: this.toolindex,
  13674. content: this.studyJuri[0].cover[0].url,
  13675. type: typesql,
  13676. ateacher: this.userid,
  13677. },
  13678. ];
  13679. this.ajax
  13680. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13681. .then((res) => {
  13682. this.$message({
  13683. message: this.lang.ssSubmitSuccess,
  13684. type: "success",
  13685. });
  13686. this.studyJuri[0].cover = [];
  13687. this.dialogVisibleWorks = false;
  13688. this.getCourseDetail(2);
  13689. })
  13690. .catch((err) => {
  13691. this.$message.error(this.lang.ssSubmitFailed);
  13692. console.error(err);
  13693. });
  13694. },
  13695. selectUploadStudent(type) {
  13696. const loading = this.$loading.service({
  13697. background: "rgba(255, 255, 255, 0.7)",
  13698. target: document.body,
  13699. });
  13700. let params = {
  13701. cid: this.uploadCid,
  13702. oid: this.oid,
  13703. cn: "",
  13704. };
  13705. this.ajax
  13706. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13707. .then((res) => {
  13708. loading.close();
  13709. var studentK = [];
  13710. if (this.isWorksS[this.toolindex].length > 0) {
  13711. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13712. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13713. }
  13714. studentK = studentK.join(",");
  13715. }
  13716. this.uploadStudentJuri = res.data[0].filter((el) => {
  13717. return studentK.indexOf(el.userid) == -1;
  13718. });
  13719. if (this.worksSName && this.worksSid) {
  13720. this.uploadStudentJuri.push({
  13721. userid: this.worksSid,
  13722. name: this.worksSName,
  13723. });
  13724. }
  13725. if (type == 1) {
  13726. this.plworkFile = [];
  13727. this.dialogVisibleSname = true;
  13728. } else if (type == 2) {
  13729. this.dialogVisiblePl = true;
  13730. }
  13731. })
  13732. .catch((err) => {
  13733. loading.close();
  13734. console.error(err);
  13735. });
  13736. },
  13737. selectPickStudent() {
  13738. const loading = this.$loading.service({
  13739. background: "rgba(255, 255, 255, 0.7)",
  13740. target: document.body,
  13741. });
  13742. let params = {
  13743. cid: this.uploadCid,
  13744. oid: this.oid,
  13745. cn: "",
  13746. };
  13747. this.ajax
  13748. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13749. .then((res) => {
  13750. loading.close();
  13751. this.uploadStudentJuri = res.data[0];
  13752. this.dialogVisiblePickPeople = true;
  13753. })
  13754. .catch((err) => {
  13755. loading.close();
  13756. console.error(err);
  13757. });
  13758. },
  13759. arrayToArray(arrayo, arrayt) {
  13760. let array1 = arrayo;
  13761. let array2 = arrayt;
  13762. let commonElements = [];
  13763. for (let i = 0; i < array1.length; i++) {
  13764. for (let j = 0; j < array2.length; j++) {
  13765. if (array1[i] === array2[j]) {
  13766. commonElements.push(array1[i]);
  13767. }
  13768. }
  13769. }
  13770. return commonElements;
  13771. },
  13772. selectWorksStudent() {
  13773. let params = {
  13774. oid: this.oid,
  13775. cid: this.courseDetail.juri,
  13776. };
  13777. this.ajax
  13778. .get(this.$store.state.api + "selectWorksStudent", params)
  13779. .then((res) => {
  13780. var a = res.data[0];
  13781. for (var i = 0; i < this.isWorksS.length; i++) {
  13782. this.noWorksS[i] = [];
  13783. var studentK = [];
  13784. if (this.isWorksS[i].length > 0) {
  13785. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13786. studentK.push(this.isWorksS[i][z].uid);
  13787. }
  13788. studentK = studentK.join(",");
  13789. for (var j = 0; j < a.length; j++) {
  13790. if (studentK.indexOf(a[j].userid) == -1) {
  13791. if (this.tcid) {
  13792. // a[j].classid.indexOf(this.tcid) != -1
  13793. if (
  13794. this.arrayToArray(
  13795. a[j].classid.split(","),
  13796. this.tcid.split(",")
  13797. ).length
  13798. ) {
  13799. this.noWorksS[i].push({
  13800. student: a[j].name,
  13801. userid: a[j].userid,
  13802. });
  13803. }
  13804. } else {
  13805. this.noWorksS[i].push({
  13806. student: a[j].name,
  13807. userid: a[j].userid,
  13808. });
  13809. }
  13810. }
  13811. }
  13812. } else {
  13813. for (var k = 0; k < a.length; k++) {
  13814. if (this.tcid) {
  13815. if (
  13816. this.arrayToArray(
  13817. a[k].classid.split(","),
  13818. this.tcid.split(",")
  13819. ).length
  13820. ) {
  13821. this.noWorksS[i].push({
  13822. student: a[k].name,
  13823. userid: a[k].userid,
  13824. });
  13825. }
  13826. } else {
  13827. this.noWorksS[i].push({
  13828. student: a[k].name,
  13829. userid: a[k].userid,
  13830. });
  13831. }
  13832. }
  13833. }
  13834. }
  13835. this.$forceUpdate();
  13836. if (
  13837. Object.keys(this.commentDetail).length &&
  13838. Object.keys(this.commentIndexJson).length &&
  13839. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13840. ) {
  13841. let a = 1;
  13842. let c = this.commentIndexJson;
  13843. if (
  13844. this.commentIndexJson.gindex ||
  13845. this.commentIndexJson.gindex === 0
  13846. ) {
  13847. for (
  13848. var i = 0;
  13849. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13850. i++
  13851. ) {
  13852. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13853. groupA: for (var k = 0; k < _el.length; k++) {
  13854. let el = _el[k];
  13855. if (el.wid == this.commentDetail.wid) {
  13856. a = 2;
  13857. this.commentOther(
  13858. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13859. this.commentIndexJson.toolIndex,
  13860. k,
  13861. this.commentIndexJson.gindex
  13862. );
  13863. break groupA;
  13864. }
  13865. }
  13866. }
  13867. if (a === 1) {
  13868. this.commentDetail = [];
  13869. this.commentIndexJson = {};
  13870. this.commentDialogVisible = false;
  13871. this.$message(this.lang.ssHomeworkDeleted);
  13872. }
  13873. } else {
  13874. if (this.isGroup && this.commentIndexJson.gid) {
  13875. groupA: for (
  13876. var i = 0;
  13877. i < this.courseGroup.group.length;
  13878. i++
  13879. ) {
  13880. let _group = this.courseGroup.group[i];
  13881. if (_group.id == this.commentIndexJson.gid) {
  13882. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13883. for (var k = 0; k < _el2.length; k++) {
  13884. let el2 = _el2[k];
  13885. if (el2.wid == this.commentDetail.wid) {
  13886. a = 2;
  13887. this.commentOther(
  13888. _el2[k],
  13889. this.commentIndexJson.toolIndex,
  13890. k,
  13891. null,
  13892. this.commentIndexJson.gid
  13893. );
  13894. break groupA;
  13895. }
  13896. }
  13897. }
  13898. }
  13899. }
  13900. if (a == 1) {
  13901. for (
  13902. var i = 0;
  13903. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13904. i++
  13905. ) {
  13906. let el =
  13907. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13908. if (el.wid == this.commentDetail.wid) {
  13909. a = 2;
  13910. this.commentOther(
  13911. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13912. this.commentIndexJson.toolIndex,
  13913. i
  13914. );
  13915. break;
  13916. }
  13917. }
  13918. }
  13919. if (a === 1) {
  13920. this.commentDetail = [];
  13921. this.commentIndexJson = {};
  13922. this.commentDialogVisible = false;
  13923. this.$message(this.lang.ssHomeworkDeleted);
  13924. }
  13925. }
  13926. }
  13927. })
  13928. .catch((err) => {
  13929. console.error(err);
  13930. });
  13931. },
  13932. selectStudent() {
  13933. if(this.selectStudentLoading) return
  13934. this.selectStudentLoading = true
  13935. //学生查看自己作业
  13936. let params = {
  13937. uid: this.userid,
  13938. cid: this.id,
  13939. s: this.courseType,
  13940. t: this.taskCount,
  13941. };
  13942. this.ajax
  13943. .get(this.$store.state.api + "selectStudentWorks", params)
  13944. .then((res) => {
  13945. var a =
  13946. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13947. this.taskCount
  13948. ].toolChoose;
  13949. var b = res.data[0];
  13950. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13951. var y = [
  13952. "AVI",
  13953. "NAVI",
  13954. "MPEG",
  13955. "ASF",
  13956. "MOV",
  13957. "WMV",
  13958. "3GP",
  13959. "RM",
  13960. "RMVB",
  13961. "FLV",
  13962. "F4V",
  13963. "H.264",
  13964. "H.265",
  13965. "REAL VIDEO",
  13966. "MKV",
  13967. "WebM",
  13968. "HDDVD",
  13969. "MP4",
  13970. "MPG",
  13971. "M4V",
  13972. "MGV",
  13973. "OGV",
  13974. "QTM",
  13975. "STR",
  13976. "AMC",
  13977. "DVX",
  13978. "EVO",
  13979. "DAT",
  13980. "OGG",
  13981. "OGM",
  13982. ];
  13983. for (var i = 0; i < a.length; i++) {
  13984. this.workStudent[i] = [];
  13985. for (var j = 0; j < b.length; j++) {
  13986. if (i == b[j].tool) {
  13987. if (
  13988. (b[j].type == 1 ||
  13989. b[j].type == 4 ||
  13990. b[j].type == 5 ||
  13991. b[j].type == 6 ||
  13992. b[j].type == 12 ||
  13993. b[j].type == 7) &&
  13994. a[i].tool[0] != 15 &&
  13995. a[i].tool[0] != 4 &&
  13996. a[i].tool[0] != 45 &&
  13997. a[i].tool[0] != 50 &&
  13998. a[i].tool[0] != 32 &&
  13999. a[i].tool[0] != 57 &&
  14000. a[i].tool[0] != 52 &&
  14001. a[i].tool[0] != 69
  14002. ) {
  14003. if (
  14004. c.indexOf(
  14005. b[j].content
  14006. .split(".")
  14007. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14008. ) != -1 &&
  14009. a[i].tool[0] == 16 &&
  14010. b[j].atool != 50
  14011. ) {
  14012. this.workStudent[i].push({
  14013. works: b[j].content,
  14014. sName: b[j].name,
  14015. score: b[j].score,
  14016. img: b[j].img,
  14017. type: 1,
  14018. time: b[j].time,
  14019. userid: b[j].userid,
  14020. wid: b[j].id,
  14021. });
  14022. } else if (
  14023. y.indexOf(
  14024. b[j].content
  14025. .split(".")
  14026. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14027. ) != -1 &&
  14028. a[i].tool[0] == 16 &&
  14029. b[j].atool != 50
  14030. ) {
  14031. this.workStudent[i].push({
  14032. userid: b[j].userid,
  14033. wid: b[j].id,
  14034. works: b[j].content,
  14035. sName: b[j].name,
  14036. score: b[j].score,
  14037. img: b[j].img,
  14038. type: 3,
  14039. time: b[j].time,
  14040. });
  14041. } else if (b[j].type == 6 && b[j].atool != 50) {
  14042. this.workStudent[i].push({
  14043. userid: b[j].userid,
  14044. wid: b[j].id,
  14045. works: b[j].content,
  14046. sName: b[j].name,
  14047. score: b[j].score,
  14048. img: b[j].img,
  14049. type: 4,
  14050. time: b[j].time,
  14051. });
  14052. } else if (b[j].type == 7 && b[j].atool != 50) {
  14053. this.workStudent[i].push({
  14054. userid: b[j].userid,
  14055. wid: b[j].id,
  14056. works: b[j].content,
  14057. sName: b[j].name,
  14058. score: b[j].score,
  14059. img: b[j].img,
  14060. type: 5,
  14061. time: b[j].time,
  14062. });
  14063. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14064. this.workStudent[i].push({
  14065. works: b[j].content,
  14066. sName: b[j].name,
  14067. score: b[j].score,
  14068. img: b[j].img,
  14069. type: 12,
  14070. time: b[j].time,
  14071. userid: b[j].userid,
  14072. wid: b[j].id,
  14073. });
  14074. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14075. this.workStudent[i].push({
  14076. works: b[j].content,
  14077. sName: b[j].name,
  14078. score: b[j].score,
  14079. img: b[j].img,
  14080. type: 0,
  14081. time: b[j].time,
  14082. userid: b[j].userid,
  14083. wid: b[j].id,
  14084. });
  14085. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14086. this.workStudent[i].push({
  14087. works: b[j].content,
  14088. sName: b[j].name,
  14089. score: b[j].score,
  14090. img: b[j].img,
  14091. type: 0,
  14092. time: b[j].time,
  14093. userid: b[j].userid,
  14094. wid: b[j].id,
  14095. });
  14096. }
  14097. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14098. this.workStudent[i].push({
  14099. works: b[j].content,
  14100. sName: b[j].name,
  14101. score: b[j].score,
  14102. img: b[j].img,
  14103. type: 2,
  14104. time: b[j].time,
  14105. userid: b[j].userid,
  14106. wid: b[j].id,
  14107. });
  14108. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14109. this.workStudent[i].push({
  14110. works: b[j].content,
  14111. sName: b[j].name,
  14112. score: b[j].score,
  14113. img: b[j].img,
  14114. type: 20,
  14115. time: b[j].time,
  14116. userid: b[j].userid,
  14117. wid: b[j].id,
  14118. });
  14119. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14120. //问卷
  14121. this.workStudent[i].push({
  14122. works: b[j].content,
  14123. sName: b[j].name,
  14124. score: b[j].score,
  14125. img: b[j].img,
  14126. type: 2,
  14127. time: b[j].time,
  14128. userid: b[j].userid,
  14129. wid: b[j].id,
  14130. });
  14131. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14132. //选择题
  14133. this.workStudent[i].push({
  14134. works: b[j].content,
  14135. sName: b[j].name,
  14136. score: b[j].score,
  14137. img: b[j].img,
  14138. type: 8,
  14139. time: b[j].time,
  14140. userid: b[j].userid,
  14141. wid: b[j].id,
  14142. });
  14143. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14144. //选择题
  14145. this.workStudent[i].push({
  14146. works: b[j].content,
  14147. sName: b[j].name,
  14148. score: b[j].score,
  14149. img: b[j].img,
  14150. type: 9,
  14151. time: b[j].time,
  14152. userid: b[j].userid,
  14153. wid: b[j].id,
  14154. });
  14155. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14156. //选择题
  14157. this.workStudent[i].push({
  14158. works: b[j].content,
  14159. sName: b[j].name,
  14160. score: b[j].score,
  14161. img: b[j].img,
  14162. type: 10,
  14163. time: b[j].time,
  14164. userid: b[j].userid,
  14165. wid: b[j].id,
  14166. });
  14167. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14168. //选择题
  14169. this.workStudent[i].push({
  14170. works: b[j].content,
  14171. sName: b[j].name,
  14172. score: b[j].score,
  14173. img: b[j].img,
  14174. type: 13,
  14175. time: b[j].time,
  14176. userid: b[j].userid,
  14177. wid: b[j].id,
  14178. });
  14179. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14180. //选择题
  14181. this.workStudent[i].push({
  14182. works: b[j].content,
  14183. sName: b[j].name,
  14184. score: b[j].score,
  14185. img: b[j].img,
  14186. type: 12,
  14187. time: b[j].time,
  14188. userid: b[j].userid,
  14189. wid: b[j].id,
  14190. });
  14191. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14192. //选择题
  14193. this.workStudent[i].push({
  14194. works: b[j].content,
  14195. sName: b[j].name,
  14196. score: b[j].score,
  14197. img: b[j].img,
  14198. type: 12,
  14199. time: b[j].time,
  14200. userid: b[j].userid,
  14201. wid: b[j].id,
  14202. });
  14203. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14204. //选择题
  14205. this.workStudent[i].push({
  14206. works: b[j].content,
  14207. sName: b[j].name,
  14208. score: b[j].score,
  14209. img: b[j].img,
  14210. type: 15,
  14211. time: b[j].time,
  14212. userid: b[j].userid,
  14213. wid: b[j].id,
  14214. });
  14215. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  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: 16,
  14223. time: b[j].time,
  14224. userid: b[j].userid,
  14225. wid: b[j].id,
  14226. aiCode: b[j].aiCode,
  14227. teacherCode: b[j].teacherCode
  14228. });
  14229. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14230. //英语口语
  14231. this.workStudent[i].push({
  14232. works: b[j].content,
  14233. sName: b[j].name,
  14234. score: b[j].score,
  14235. img: b[j].img,
  14236. type: 17,
  14237. time: b[j].time,
  14238. userid: b[j].userid,
  14239. wid: b[j].id,
  14240. });
  14241. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14242. //交互视频
  14243. this.workStudent[i].push({
  14244. works: b[j].content,
  14245. sName: b[j].name,
  14246. score: b[j].score,
  14247. img: b[j].img,
  14248. type: 14,
  14249. time: b[j].time,
  14250. userid: b[j].userid,
  14251. wid: b[j].id,
  14252. });
  14253. }
  14254. }
  14255. }
  14256. }
  14257. this.selectStudentLoading = false
  14258. })
  14259. .catch((err) => {
  14260. this.selectStudentLoading = false
  14261. console.error(err);
  14262. });
  14263. },
  14264. openVideo(w) {
  14265. this.videoDetail = {};
  14266. this.playerOptions1.sources[0].src = w.works;
  14267. this.videoDetail = this.playerOptions1;
  14268. this.videoVisible = true;
  14269. },
  14270. isLikes(wid, uid, t, c, isLikes,sName) {
  14271. if (isLikes == false) {
  14272. let params = [
  14273. {
  14274. wid: wid,
  14275. lid: uid,
  14276. t: t,
  14277. c: c,
  14278. },
  14279. ];
  14280. this.ajax
  14281. .post(this.$store.state.api + "insertComment", params)
  14282. .then((res) => {
  14283. this.$message({
  14284. message: this.lang.ssLikeSuccess,
  14285. type: "success",
  14286. });
  14287. this.selectSWorks();
  14288. this.selectStudent();
  14289. if(this.tType!=2){
  14290. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14291. }
  14292. })
  14293. .catch((err) => {
  14294. this.$message.error(this.lang.ssLikeFailed);
  14295. console.error(err);
  14296. });
  14297. } else {
  14298. let params = {
  14299. wid: wid,
  14300. lid: uid,
  14301. type: t,
  14302. };
  14303. this.ajax
  14304. .get(this.$store.state.api + "deleteComment", params)
  14305. .then((res) => {
  14306. this.$message({
  14307. message: this.lang.ssCancelLikeSuccess,
  14308. type: "success",
  14309. });
  14310. this.selectSWorks();
  14311. this.selectStudent();
  14312. })
  14313. .catch((err) => {
  14314. console.error(err);
  14315. });
  14316. }
  14317. },
  14318. deleteComment(wid) {
  14319. this.$confirm(this.lang.ssConfirmDeleteComment, this.lang.ssPrompt, {
  14320. confirmButtonText: this.lang.ssConfirm,
  14321. cancelButtonText: this.lang.ssCancel,
  14322. type: "warning",
  14323. })
  14324. .then(() => {
  14325. let params = {
  14326. id: wid,
  14327. };
  14328. this.ajax
  14329. .get(this.$store.state.api + "deleteComment2", params)
  14330. .then((res) => {
  14331. this.$message({
  14332. message: this.lang.ssDeleteCommentSuccess,
  14333. type: "success",
  14334. });
  14335. this.selectSWorks();
  14336. this.selectStudent();
  14337. })
  14338. .catch((err) => {
  14339. console.error(err);
  14340. });
  14341. })
  14342. .catch(() => {});
  14343. },
  14344. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14345. this.commentIndexJson = {
  14346. toolIndex: toolIndex,
  14347. wIndex: wIndex,
  14348. gindex: gindex,
  14349. gid: gid,
  14350. };
  14351. this.commentDetail = [];
  14352. this.commentDialogVisible = true;
  14353. this.commentDetail = w;
  14354. if (w.works && w.type == 1) {
  14355. // this.pptImgUrl = "";
  14356. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14357. if (
  14358. a.indexOf(
  14359. w.works
  14360. .split(".")
  14361. [w.works.split(".").length - 1].toLocaleUpperCase()
  14362. ) != -1
  14363. ) {
  14364. let _uuurl = await this.checkLink(w.works);
  14365. console.log(_uuurl)
  14366. this.pptImgUrl =
  14367. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14368. this.showPDF = false;
  14369. } else if (
  14370. w.works
  14371. .split(".")
  14372. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14373. ) {
  14374. this.pptImgUrl = w.works;
  14375. this.showPDF = true;
  14376. }
  14377. } else if (w.works && w.type == 3) {
  14378. this.videoDetail = {};
  14379. this.playerOptions1.sources[0].src = w.works;
  14380. this.videoDetail = this.playerOptions1;
  14381. // this.videoVisible = true;
  14382. } else if (w.works && w.type == 4) {
  14383. this.eScore = JSON.parse(w.works);
  14384. this.rateJson =
  14385. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14386. this.taskCount
  14387. ].toolChoose[toolIndex].rateJson;
  14388. } else if (w.works && w.type == 10) {
  14389. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14390. } else if (w.works && w.type == 13) {
  14391. this.wordJson =
  14392. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14393. this.taskCount
  14394. ].toolChoose[toolIndex].wordJson;
  14395. }
  14396. },
  14397. async openScore(w, index) {
  14398. this.wScore = 0;
  14399. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14400. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14401. this.commentDetail = [];
  14402. if(w.type == 17){
  14403. this.dialogVisibleENScore = true;
  14404. }else{
  14405. this.dialogVisibleScore = true;
  14406. }
  14407. this.commentDetail = w;
  14408. if (w.works && w.type == 1) {
  14409. this.pptImgUrl = "";
  14410. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14411. if (
  14412. a.indexOf(
  14413. w.works
  14414. .split(".")
  14415. [w.works.split(".").length - 1].toLocaleUpperCase()
  14416. ) != -1
  14417. ) {
  14418. let _uuurl = await this.checkLink(w.works);
  14419. console.log(_uuurl)
  14420. this.pptImgUrl =
  14421. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14422. this.showPDF = false;
  14423. } else if (
  14424. w.works
  14425. .split(".")
  14426. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14427. ) {
  14428. this.pptImgUrl = w.works;
  14429. this.showPDF = true;
  14430. }
  14431. } else if (w.works && w.type == 3) {
  14432. this.videoDetail = {};
  14433. this.playerOptions1.sources[0].src = w.works;
  14434. this.videoDetail = this.playerOptions1;
  14435. }else if(w.type == 17){
  14436. let englishVoiceJson = {}
  14437. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14438. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14439. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14440. .toolChoose[index].englishVoiceJson
  14441. : {};
  14442. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14443. }
  14444. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14445. },
  14446. addComment(wid, uid, t,detail) {
  14447. if (this.commentText == "") {
  14448. this.$message.error(this.lang.ssEnterComment);
  14449. return;
  14450. }
  14451. let params2 = [
  14452. {
  14453. wid: wid,
  14454. lid: uid,
  14455. t: t,
  14456. },
  14457. ];
  14458. this.ajax
  14459. .post(this.$store.state.api + "getComment", params2)
  14460. .then((res) => {
  14461. if (res.data[0].length > 0) {
  14462. this.$message.error(this.lang.ssOnlyOneCommentPerHomework);
  14463. } else {
  14464. let params = [
  14465. {
  14466. wid: wid,
  14467. lid: uid,
  14468. t: t,
  14469. c: this.commentText,
  14470. },
  14471. ];
  14472. this.ajax
  14473. .post(this.$store.state.api + "insertComment", params)
  14474. .then((res) => {
  14475. this.$message({
  14476. message: this.lang.ssCommentSuccess,
  14477. type: "success",
  14478. });
  14479. this.commentText = "";
  14480. this.selectSWorks();
  14481. this.selectStudent();
  14482. if(this.tType!=2){
  14483. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14484. }
  14485. })
  14486. .catch((err) => {
  14487. this.$message.error(this.lang.ssCommentFailed);
  14488. console.error(err);
  14489. });
  14490. }
  14491. })
  14492. .catch((err) => {
  14493. // this.$message.error("评论失败");
  14494. console.error(err);
  14495. });
  14496. },
  14497. scoreWork(wid,sName) {
  14498. if (this.wScore == 0) {
  14499. this.$message.error(this.lang.ssPleaseRate);
  14500. return;
  14501. }
  14502. let params = [
  14503. {
  14504. wid: wid,
  14505. score: JSON.stringify({
  14506. wScore: this.wScore,
  14507. detail: this.scoreDetail,
  14508. }),
  14509. },
  14510. ];
  14511. this.ajax
  14512. .post(this.$store.state.api + "scoreWork", params)
  14513. .then((res) => {
  14514. this.$message({
  14515. message: this.lang.ssRatingSuccess,
  14516. type: "success",
  14517. });
  14518. this.wScore = 0;
  14519. this.scoreDetail = "";
  14520. this.dialogVisibleScore = false;
  14521. this.selectSWorks();
  14522. this.selectStudent();
  14523. if(this.tType!=2){
  14524. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14525. }
  14526. })
  14527. .catch((err) => {
  14528. this.$message.error(this.lang.ssRatingFailed);
  14529. console.error(err);
  14530. });
  14531. },
  14532. openXz(w, i) {
  14533. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14534. .taskJson[this.taskCount].toolChoose[i].selectJson
  14535. ? JSON.parse(
  14536. JSON.stringify(
  14537. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14538. this.taskCount
  14539. ].toolChoose[i].selectJson
  14540. )
  14541. )
  14542. : { url: "", select: [], answer: [] };
  14543. var a = w.works.split(",");
  14544. for (var k = 0; k < a.length; k++) {
  14545. a[k] = parseInt(a[k]);
  14546. }
  14547. this.selectAnswer = { answer: a, stu: w.sName };
  14548. this.isSelect = true;
  14549. this.dialogVisibleSelect = true;
  14550. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14551. },
  14552. openSen(w, i) {
  14553. this.sentenceList1 = JSON.parse(w.works);
  14554. this.sentenceList1.stuName = w.sName;
  14555. this.dialogVisibleSentence1 = true;
  14556. },
  14557. openPj(w, toolindex) {
  14558. this.isStar = true;
  14559. this.eScore = JSON.parse(w);
  14560. this.rateJson =
  14561. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14562. this.taskCount
  14563. ].toolChoose[toolindex].rateJson;
  14564. this.studentEvalDialogVisible = true;
  14565. },
  14566. openEnglishEva(id,i){
  14567. let params = {
  14568. wid: id
  14569. };
  14570. this.ajax
  14571. .get(this.$store.state.api + "selectEngWork", params)
  14572. .then((res) => {
  14573. this.evaEngJson.message = res.data[0][0];
  14574. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14575. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14576. .toolChoose[i].englishList;
  14577. this.engEvaDialogVisible = true;
  14578. })
  14579. .catch((err) => {
  14580. console.error(err);
  14581. });
  14582. },
  14583. deleteWorks(id) {
  14584. this.$confirm(this.lang.ssConfirmDeleteWork, this.lang.ssPrompt, {
  14585. confirmButtonText: this.lang.ssConfirm,
  14586. cancelButtonText: this.lang.ssCancel,
  14587. type: "warning",
  14588. })
  14589. .then(() => {
  14590. let params = [
  14591. {
  14592. id: id,
  14593. },
  14594. ];
  14595. this.ajax
  14596. .post(this.$store.state.api + "deleteCourseWork", params)
  14597. .then((res) => {
  14598. this.$message({
  14599. message: this.lang.ssDeleteSuccess,
  14600. type: "success",
  14601. });
  14602. this.selectStudent();
  14603. this.selectSWorks();
  14604. this.selectSLook();
  14605. })
  14606. .catch((err) => {
  14607. this.$message.error(this.lang.ssNetworkError);
  14608. console.error(err);
  14609. });
  14610. })
  14611. .catch(() => {});
  14612. },
  14613. selectSWorks(gindex) {
  14614. if(this.selectSWorksLoading) return
  14615. this.selectSWorksLoading = true
  14616. //教师查看全部作业
  14617. let params = {
  14618. cid: this.id,
  14619. s: this.courseType,
  14620. t: this.taskCount,
  14621. };
  14622. this.ajax
  14623. .get(this.$store.state.api + "selectSWorks", params)
  14624. .then((res) => {
  14625. var a =
  14626. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14627. this.taskCount
  14628. ].toolChoose;
  14629. var b = res.data[0];
  14630. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14631. var y = [
  14632. "AVI",
  14633. "NAVI",
  14634. "MPEG",
  14635. "ASF",
  14636. "MOV",
  14637. "WMV",
  14638. "3GP",
  14639. "RM",
  14640. "RMVB",
  14641. "FLV",
  14642. "F4V",
  14643. "H.264",
  14644. "H.265",
  14645. "REAL VIDEO",
  14646. "MKV",
  14647. "WebM",
  14648. "HDDVD",
  14649. "MP4",
  14650. "MPG",
  14651. "M4V",
  14652. "MGV",
  14653. "OGV",
  14654. "QTM",
  14655. "STR",
  14656. "AMC",
  14657. "DVX",
  14658. "EVO",
  14659. "DAT",
  14660. "OGG",
  14661. "OGM",
  14662. ];
  14663. var d = res.data[1];
  14664. var e = res.data[2];
  14665. var f = res.data[3];
  14666. let _worksStudent = [];
  14667. var _worksStudent2 = [];
  14668. for (var i = 0; i < a.length; i++) {
  14669. _worksStudent[i] = [];
  14670. _worksStudent2[i] = [];
  14671. if (
  14672. !this.isCloseList[i] ||
  14673. this.isCloseList[i].isClose == undefined
  14674. ) {
  14675. this.isCloseList[i] = { isClose: 0 };
  14676. }
  14677. this.groupStudent[i] = [];
  14678. this.groupStudentUid[i] = [];
  14679. if (this.isGroup) {
  14680. for (
  14681. var groupI = 0;
  14682. groupI < this.courseGroup.group.length;
  14683. groupI++
  14684. ) {
  14685. this.courseGroup.group[groupI].works[i] = [];
  14686. }
  14687. }
  14688. this.isWorksS[i] = [];
  14689. this.checkJson[i] = [];
  14690. if (a[i].tool[0] == 49) {
  14691. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14692. this.groupStudent[i][gA] = [];
  14693. this.groupStudentUid[i][gA] = [];
  14694. _worksStudent[i][gA] = [];
  14695. _worksStudent2[i][gA] = [];
  14696. this.isCloseList[i][gA] = [];
  14697. for (var g = 0; g < f.length; g++) {
  14698. if (
  14699. f[g].ttype == 2 &&
  14700. this.tcid &&
  14701. this.arrayToArray(
  14702. (f[g].classid ? f[g].classid.split(",") : []),
  14703. this.tcid.split(",")
  14704. ).length == 0
  14705. ) {
  14706. continue;
  14707. }
  14708. let _classId = this.arrayToArray(
  14709. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14710. this.classId ? this.classId.split(",") : []
  14711. )
  14712. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14713. (f[g].classid ? f[g].classid.split(",") : []),
  14714. this.tcid.split(",")
  14715. ).length !== 0 || this.arrayToArray(
  14716. (f[g].classid ? f[g].classid.split(",") : []),
  14717. _classId
  14718. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14719. this.groupStudent[i][gA].push(f[g]);
  14720. this.groupStudentUid[i][gA].push(f[g].userid);
  14721. }
  14722. }
  14723. }
  14724. this.$forceUpdate();
  14725. }
  14726. for (var j = 0; j < b.length; j++) {
  14727. if (
  14728. b[j].ttype == 2 &&
  14729. this.tcid &&
  14730. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14731. .length == 0
  14732. ) {
  14733. continue;
  14734. }
  14735. var likesCount = 0;
  14736. var commentCount = 0;
  14737. var isLikes = false;
  14738. var commentJson = [];
  14739. var likeJson = [];
  14740. var data = b[j];
  14741. if (i == b[j].tool) {
  14742. if (data.type == 2 && a[i].tool[0] == 4) {
  14743. // if(JSON.parse(data.content)[0].anwer){
  14744. var checkL =
  14745. JSON.parse(data.content)[0].anwer instanceof Array
  14746. ? JSON.parse(data.content)[0].anwer
  14747. : JSON.parse(data.content)[0].anwer.split(",");
  14748. for (var z = 0; z < checkL.length; z++) {
  14749. if (!this.checkJson[i][z]) {
  14750. this.checkJson[i].push({
  14751. checkCount: [],
  14752. checkPerson: [],
  14753. rightPerson: [],
  14754. });
  14755. }
  14756. if (!this.checkJson[i][z].checkCount.length) {
  14757. this.checkJson[i][z].checkCount = [];
  14758. let _askItemCount = JSON.parse(data.content)[0].askJson
  14759. .askJson[z].askItem;
  14760. for (var aic = 0; aic < _askItemCount; aic++) {
  14761. this.checkJson[i][z].checkCount.push(0);
  14762. }
  14763. }
  14764. if (checkL[z] instanceof Array) {
  14765. if (
  14766. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14767. checkL[z].sort().join(",")
  14768. ) {
  14769. this.checkJson[i][z].rightPerson.push(data.name);
  14770. }
  14771. for (var q = 0; q < checkL[z].length; q++) {
  14772. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14773. ? this.checkJson[i][z].checkPerson[
  14774. parseInt(checkL[z][q])
  14775. ].push(data.name)
  14776. : (this.checkJson[i][z].checkPerson[
  14777. parseInt(checkL[z][q])
  14778. ] = [data.name]);
  14779. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14780. ? this.checkJson[i][z].checkCount[
  14781. parseInt(checkL[z][q])
  14782. ]++
  14783. : (this.checkJson[i][z].checkCount[
  14784. parseInt(checkL[z][q])
  14785. ] = 1);
  14786. }
  14787. } else {
  14788. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14789. this.checkJson[i][z].rightPerson.push(data.name);
  14790. }
  14791. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14792. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14793. ? this.checkJson[i][z].checkPerson[
  14794. parseInt(checkL[z])
  14795. ].push(data.name)
  14796. : (this.checkJson[i][z].checkPerson[
  14797. parseInt(checkL[z])
  14798. ] = [data.name]);
  14799. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14800. ? this.checkJson[i][z].checkCount[
  14801. parseInt(checkL[z])
  14802. ]++
  14803. : (this.checkJson[i][z].checkCount[
  14804. parseInt(checkL[z])
  14805. ] = 1);
  14806. }
  14807. }
  14808. }
  14809. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14810. var checkL = JSON.parse(data.content)[0].anwer;
  14811. if(a[i].testJson.testCount != JSON.parse(data.content)[0].testJson.testCount){
  14812. continue
  14813. }
  14814. // console.log('选择题')
  14815. for (var z = 0; z < checkL.length; z++) {
  14816. if (!this.checkJson[i][z]) {
  14817. this.checkJson[i].push({
  14818. checkCount: [],
  14819. checkPerson: [],
  14820. rightPerson: [],
  14821. });
  14822. }
  14823. if (!this.checkJson[i][z].checkCount.length) {
  14824. this.checkJson[i][z].checkCount = [];
  14825. let _askItemCount = JSON.parse(data.content)[0].testJson
  14826. .testJson[z].testItem;
  14827. for (var aic = 0; aic < _askItemCount; aic++) {
  14828. this.checkJson[i][z].checkCount.push(0);
  14829. }
  14830. }
  14831. if (checkL[z] instanceof Array) {
  14832. if (
  14833. JSON.parse(data.content)[0]
  14834. .testJson.testJson[z].answer.sort()
  14835. .join(",") == checkL[z].sort().join(",")
  14836. ) {
  14837. this.checkJson[i][z].rightPerson.push(data.name);
  14838. }
  14839. for (var q = 0; q < checkL[z].length; q++) {
  14840. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14841. ? this.checkJson[i][z].checkPerson[
  14842. parseInt(checkL[z][q])
  14843. ].push(data.name)
  14844. : (this.checkJson[i][z].checkPerson[
  14845. parseInt(checkL[z][q])
  14846. ] = [data.name]);
  14847. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14848. ? this.checkJson[i][z].checkCount[
  14849. parseInt(checkL[z][q])
  14850. ]++
  14851. : (this.checkJson[i][z].checkCount[
  14852. parseInt(checkL[z][q])
  14853. ] = 1);
  14854. }
  14855. } else {
  14856. if (
  14857. JSON.parse(data.content)[0].testJson.testJson[z]
  14858. .answer == checkL[z]
  14859. ) {
  14860. this.checkJson[i][z].rightPerson.push(data.name);
  14861. }
  14862. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14863. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14864. ? this.checkJson[i][z].checkPerson[
  14865. parseInt(checkL[z])
  14866. ].push(data.name)
  14867. : (this.checkJson[i][z].checkPerson[
  14868. parseInt(checkL[z])
  14869. ] = [data.name]);
  14870. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14871. ? this.checkJson[i][z].checkCount[
  14872. parseInt(checkL[z])
  14873. ]++
  14874. : (this.checkJson[i][z].checkCount[
  14875. parseInt(checkL[z])
  14876. ] = 1);
  14877. }
  14878. }
  14879. }
  14880. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14881. var checkL = JSON.parse(data.content);
  14882. for (var z = 0; z < checkL.length; z++) {
  14883. if (!this.checkJson[i][z]) {
  14884. this.checkJson[i].push({
  14885. checkCount: [],
  14886. checkPerson: [],
  14887. rightPerson: [],
  14888. });
  14889. }
  14890. this.checkJson[i][z].checkPerson.push(data.name);
  14891. if (
  14892. checkL[z].chooseSenList.toString() ==
  14893. checkL[z].rightAnswer.toString()
  14894. ) {
  14895. this.checkJson[i][z].rightPerson.push(data.name);
  14896. }
  14897. }
  14898. }
  14899. for (var k = 0; k < d.length; k++) {
  14900. //点赞
  14901. if (d[k].workId == b[j].id) {
  14902. likesCount++;
  14903. likeJson.push(d[k])
  14904. if (d[k].likesId == this.userid) {
  14905. isLikes = true;
  14906. }
  14907. }
  14908. }
  14909. for (var l = 0; l < e.length; l++) {
  14910. //评论
  14911. if (e[l].workId == b[j].id) {
  14912. if (e[l].comment != "") {
  14913. commentCount++;
  14914. commentJson.push({
  14915. commentText: e[l].comment,
  14916. commentTime: e[l].commentTime,
  14917. commentPeople: e[l].commentPeople,
  14918. userid: e[l].userid,
  14919. wid: e[l].id,
  14920. });
  14921. }
  14922. }
  14923. }
  14924. if (
  14925. (b[j].type == 1 ||
  14926. b[j].type == 4 ||
  14927. b[j].type == 5 ||
  14928. b[j].type == 6 ||
  14929. b[j].type == 12 ||
  14930. b[j].type == 7) &&
  14931. a[i].tool[0] != 15 &&
  14932. a[i].tool[0] != 4 &&
  14933. a[i].tool[0] != 45 &&
  14934. a[i].tool[0] != 50 &&
  14935. a[i].tool[0] != 32 &&
  14936. a[i].tool[0] != 57 &&
  14937. a[i].tool[0] != 52
  14938. ) {
  14939. if (
  14940. c.indexOf(
  14941. b[j].content
  14942. .split(".")
  14943. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14944. ) != -1 &&
  14945. a[i].tool[0] == 16 &&
  14946. b[j].atool != 50
  14947. ) {
  14948. let _works = {
  14949. userid: b[j].userid,
  14950. ateacher: b[j].ateacher,
  14951. wid: b[j].id,
  14952. works: b[j].content,
  14953. sName: b[j].name,
  14954. type: 1,
  14955. ttype:b[j].ttype,
  14956. time: b[j].time,
  14957. score: b[j].score,
  14958. img: b[j].img,
  14959. likesCount: likesCount,
  14960. commentCount: commentCount,
  14961. isLikes: isLikes,
  14962. commentJson: commentJson,
  14963. likeJson:likeJson
  14964. };
  14965. if (this.isGroup) {
  14966. let isGw = 1;
  14967. for (
  14968. var groupI = 0;
  14969. groupI < this.courseGroup.group.length;
  14970. groupI++
  14971. ) {
  14972. let gid = this.courseGroup.group[groupI].id;
  14973. if (
  14974. this.courseGroupStudentUid[gid].indexOf(
  14975. b[j].userid
  14976. ) != -1
  14977. ) {
  14978. isGw = 2;
  14979. this.courseGroup.group[groupI].works[i].push(_works);
  14980. break;
  14981. }
  14982. }
  14983. if (isGw == 1) {
  14984. _worksStudent[i].push(_works);
  14985. }
  14986. } else {
  14987. _worksStudent[i].push(_works);
  14988. }
  14989. _worksStudent2[i].push(_works);
  14990. this.isWorksS[i].push({
  14991. uid: b[j].userid,
  14992. sName: b[j].name,
  14993. });
  14994. } else if (
  14995. y.indexOf(
  14996. b[j].content
  14997. .split(".")
  14998. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14999. ) != -1 &&
  15000. a[i].tool[0] == 16 &&
  15001. b[j].atool != 50
  15002. ) {
  15003. let _works = {
  15004. userid: b[j].userid,
  15005. ateacher: b[j].ateacher,
  15006. wid: b[j].id,
  15007. works: b[j].content,
  15008. sName: b[j].name,
  15009. type: 3,
  15010. ttype:b[j].ttype,
  15011. time: b[j].time,
  15012. score: b[j].score,
  15013. img: b[j].img,
  15014. likesCount: likesCount,
  15015. commentCount: commentCount,
  15016. isLikes: isLikes,
  15017. commentJson: commentJson,
  15018. likeJson:likeJson
  15019. };
  15020. if (this.isGroup) {
  15021. let isGw = 1;
  15022. for (
  15023. var groupI = 0;
  15024. groupI < this.courseGroup.group.length;
  15025. groupI++
  15026. ) {
  15027. let gid = this.courseGroup.group[groupI].id;
  15028. if (
  15029. this.courseGroupStudentUid[gid].indexOf(
  15030. b[j].userid
  15031. ) != -1
  15032. ) {
  15033. isGw = 2;
  15034. this.courseGroup.group[groupI].works[i].push(_works);
  15035. break;
  15036. }
  15037. }
  15038. if (isGw == 1) {
  15039. _worksStudent[i].push(_works);
  15040. }
  15041. } else {
  15042. _worksStudent[i].push(_works);
  15043. }
  15044. _worksStudent2[i].push(_works);
  15045. this.isWorksS[i].push({
  15046. uid: b[j].userid,
  15047. sName: b[j].name,
  15048. });
  15049. } else if (b[j].type == 6 && b[j].atool != 50) {
  15050. let _works = {
  15051. userid: b[j].userid,
  15052. ateacher: b[j].ateacher,
  15053. wid: b[j].id,
  15054. works: b[j].content,
  15055. sName: b[j].name,
  15056. type: 4,
  15057. ttype:b[j].ttype,
  15058. time: b[j].time,
  15059. score: b[j].score,
  15060. img: b[j].img,
  15061. likesCount: likesCount,
  15062. commentCount: commentCount,
  15063. isLikes: isLikes,
  15064. commentJson: commentJson,
  15065. likeJson:likeJson
  15066. };
  15067. _worksStudent[i].push(_works);
  15068. _worksStudent2[i].push(_works);
  15069. this.isWorksS[i].push({
  15070. uid: b[j].userid,
  15071. sName: b[j].name,
  15072. });
  15073. } else if (b[j].type == 7 && b[j].atool != 50) {
  15074. let _work = {
  15075. userid: b[j].userid,
  15076. ateacher: b[j].ateacher,
  15077. wid: b[j].id,
  15078. works: b[j].content,
  15079. sName: b[j].name,
  15080. type: 5,
  15081. ttype:b[j].ttype,
  15082. time: b[j].time,
  15083. score: b[j].score,
  15084. img: b[j].img,
  15085. likesCount: likesCount,
  15086. commentCount: commentCount,
  15087. isLikes: isLikes,
  15088. commentJson: commentJson,
  15089. likeJson:likeJson
  15090. };
  15091. _worksStudent[i].push(_work);
  15092. _worksStudent2[i].push(_work);
  15093. this.isWorksS[i].push({
  15094. uid: b[j].userid,
  15095. sName: b[j].name,
  15096. });
  15097. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15098. let _works = {
  15099. userid: b[j].userid,
  15100. ateacher: b[j].ateacher,
  15101. wid: b[j].id,
  15102. works: b[j].content,
  15103. sName: b[j].name,
  15104. type: 12,
  15105. ttype:b[j].ttype,
  15106. time: b[j].time,
  15107. score: b[j].score,
  15108. img: b[j].img,
  15109. likesCount: likesCount,
  15110. commentCount: commentCount,
  15111. isLikes: isLikes,
  15112. commentJson: commentJson,
  15113. likeJson:likeJson
  15114. };
  15115. if (this.isGroup) {
  15116. let isGw = 1;
  15117. for (
  15118. var groupI = 0;
  15119. groupI < this.courseGroup.group.length;
  15120. groupI++
  15121. ) {
  15122. let gid = this.courseGroup.group[groupI].id;
  15123. if (
  15124. this.courseGroupStudentUid[gid].indexOf(
  15125. b[j].userid
  15126. ) != -1
  15127. ) {
  15128. isGw = 2;
  15129. this.courseGroup.group[groupI].works[i].push(_works);
  15130. break;
  15131. }
  15132. }
  15133. if (isGw == 1) {
  15134. _worksStudent[i].push(_works);
  15135. }
  15136. } else {
  15137. _worksStudent[i].push(_works);
  15138. }
  15139. _worksStudent2[i].push(_works);
  15140. this.isWorksS[i].push({
  15141. uid: b[j].userid,
  15142. sName: b[j].name,
  15143. });
  15144. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15145. let _works = {
  15146. userid: b[j].userid,
  15147. ateacher: b[j].ateacher,
  15148. wid: b[j].id,
  15149. works: b[j].content,
  15150. sName: b[j].name,
  15151. type: 0,
  15152. ttype:b[j].ttype,
  15153. time: b[j].time,
  15154. score: b[j].score,
  15155. img: b[j].img,
  15156. likesCount: likesCount,
  15157. commentCount: commentCount,
  15158. isLikes: isLikes,
  15159. commentJson: commentJson,
  15160. likeJson:likeJson
  15161. };
  15162. if (this.isGroup) {
  15163. let isGw = 1;
  15164. for (
  15165. var groupI = 0;
  15166. groupI < this.courseGroup.group.length;
  15167. groupI++
  15168. ) {
  15169. let gid = this.courseGroup.group[groupI].id;
  15170. if (
  15171. this.courseGroupStudentUid[gid].indexOf(
  15172. b[j].userid
  15173. ) != -1
  15174. ) {
  15175. isGw = 2;
  15176. this.courseGroup.group[groupI].works[i].push(_works);
  15177. break;
  15178. }
  15179. }
  15180. if (isGw == 1) {
  15181. _worksStudent[i].push(_works);
  15182. }
  15183. } else {
  15184. _worksStudent[i].push(_works);
  15185. }
  15186. _worksStudent2[i].push(_works);
  15187. this.isWorksS[i].push({
  15188. uid: b[j].userid,
  15189. sName: b[j].name,
  15190. });
  15191. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15192. let _works = {
  15193. userid: b[j].userid,
  15194. ateacher: b[j].ateacher,
  15195. wid: b[j].id,
  15196. works: b[j].content,
  15197. sName: b[j].name,
  15198. type: 0,
  15199. ttype:b[j].ttype,
  15200. time: b[j].time,
  15201. score: b[j].score,
  15202. img: b[j].img,
  15203. likesCount: likesCount,
  15204. commentCount: commentCount,
  15205. isLikes: isLikes,
  15206. commentJson: commentJson,
  15207. likeJson:likeJson
  15208. };
  15209. if (this.isGroup) {
  15210. let isGw = 1;
  15211. for (
  15212. var groupI = 0;
  15213. groupI < this.courseGroup.group.length;
  15214. groupI++
  15215. ) {
  15216. let gid = this.courseGroup.group[groupI].id;
  15217. if (
  15218. this.courseGroupStudentUid[gid].indexOf(
  15219. b[j].userid
  15220. ) != -1
  15221. ) {
  15222. isGw = 2;
  15223. this.courseGroup.group[groupI].works[i].push(_works);
  15224. break;
  15225. }
  15226. }
  15227. if (isGw == 1) {
  15228. _worksStudent[i].push(_works);
  15229. }
  15230. } else {
  15231. _worksStudent[i].push(_works);
  15232. }
  15233. _worksStudent2[i].push(_works);
  15234. this.isWorksS[i].push({
  15235. uid: b[j].userid,
  15236. sName: b[j].name,
  15237. });
  15238. }
  15239. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15240. let _works = {
  15241. userid: b[j].userid,
  15242. ateacher: b[j].ateacher,
  15243. wid: b[j].id,
  15244. works: b[j].content,
  15245. sName: b[j].name,
  15246. type: 2,
  15247. ttype:b[j].ttype,
  15248. time: b[j].time,
  15249. score: b[j].score,
  15250. img: b[j].img,
  15251. likesCount: likesCount,
  15252. commentCount: commentCount,
  15253. isLikes: isLikes,
  15254. commentJson: commentJson,
  15255. likeJson:likeJson
  15256. };
  15257. if (this.isGroup) {
  15258. let isGw = 1;
  15259. for (
  15260. var groupI = 0;
  15261. groupI < this.courseGroup.group.length;
  15262. groupI++
  15263. ) {
  15264. let gid = this.courseGroup.group[groupI].id;
  15265. if (
  15266. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15267. -1
  15268. ) {
  15269. isGw = 2;
  15270. this.courseGroup.group[groupI].works[i].push(_works);
  15271. break;
  15272. }
  15273. }
  15274. if (isGw == 1) {
  15275. _worksStudent[i].push(_works);
  15276. }
  15277. } else {
  15278. _worksStudent[i].push(_works);
  15279. }
  15280. _worksStudent2[i].push(_works);
  15281. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15282. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15283. let _works = {
  15284. userid: b[j].userid,
  15285. ateacher: b[j].ateacher,
  15286. wid: b[j].id,
  15287. works: b[j].content,
  15288. sName: b[j].name,
  15289. type: 20,
  15290. ttype:b[j].ttype,
  15291. time: b[j].time,
  15292. score: b[j].score,
  15293. img: b[j].img,
  15294. likesCount: likesCount,
  15295. commentCount: commentCount,
  15296. isLikes: isLikes,
  15297. commentJson: commentJson,
  15298. likeJson:likeJson
  15299. };
  15300. if (this.isGroup) {
  15301. let isGw = 1;
  15302. for (
  15303. var groupI = 0;
  15304. groupI < this.courseGroup.group.length;
  15305. groupI++
  15306. ) {
  15307. let gid = this.courseGroup.group[groupI].id;
  15308. if (
  15309. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15310. -1
  15311. ) {
  15312. isGw = 2;
  15313. this.courseGroup.group[groupI].works[i].push(_works);
  15314. break;
  15315. }
  15316. }
  15317. if (isGw == 1) {
  15318. _worksStudent[i].push(_works);
  15319. }
  15320. } else {
  15321. _worksStudent[i].push(_works);
  15322. }
  15323. _worksStudent2[i].push(_works);
  15324. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15325. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15326. //问卷
  15327. let _work = {
  15328. userid: b[j].userid,
  15329. ateacher: b[j].ateacher,
  15330. wid: b[j].id,
  15331. works: b[j].content,
  15332. sName: b[j].name,
  15333. type: 2,
  15334. ttype:b[j].ttype,
  15335. time: b[j].time,
  15336. score: b[j].score,
  15337. img: b[j].img,
  15338. likesCount: likesCount,
  15339. commentCount: commentCount,
  15340. isLikes: isLikes,
  15341. commentJson: commentJson,
  15342. likeJson:likeJson
  15343. };
  15344. _worksStudent[i].push(_work);
  15345. _worksStudent2[i].push(_work);
  15346. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15347. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15348. //选择题
  15349. let _work = {
  15350. userid: b[j].userid,
  15351. ateacher: b[j].ateacher,
  15352. wid: b[j].id,
  15353. works: b[j].content,
  15354. sName: b[j].name,
  15355. type: 8,
  15356. ttype:b[j].ttype,
  15357. time: b[j].time,
  15358. score: b[j].score,
  15359. img: b[j].img,
  15360. likesCount: likesCount,
  15361. commentCount: commentCount,
  15362. isLikes: isLikes,
  15363. commentJson: commentJson,
  15364. likeJson:likeJson
  15365. };
  15366. _worksStudent[i].push(_work);
  15367. _worksStudent2[i].push(_work);
  15368. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15369. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15370. //选择题
  15371. let _work = {
  15372. userid: b[j].userid,
  15373. ateacher: b[j].ateacher,
  15374. wid: b[j].id,
  15375. works: b[j].content,
  15376. sName: b[j].name,
  15377. type: 9,
  15378. ttype:b[j].ttype,
  15379. time: b[j].time,
  15380. score: b[j].score,
  15381. img: b[j].img,
  15382. likesCount: likesCount,
  15383. commentCount: commentCount,
  15384. isLikes: isLikes,
  15385. commentJson: commentJson,
  15386. likeJson:likeJson
  15387. };
  15388. _worksStudent[i].push(_work);
  15389. _worksStudent2[i].push(_work);
  15390. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15391. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15392. //选择题
  15393. let _work = {
  15394. userid: b[j].userid,
  15395. ateacher: b[j].ateacher,
  15396. wid: b[j].id,
  15397. works: b[j].content,
  15398. sName: b[j].name,
  15399. type: 10,
  15400. ttype:b[j].ttype,
  15401. time: b[j].time,
  15402. score: b[j].score,
  15403. img: b[j].img,
  15404. likesCount: likesCount,
  15405. commentCount: commentCount,
  15406. isLikes: isLikes,
  15407. commentJson: commentJson,
  15408. likeJson:likeJson
  15409. };
  15410. _worksStudent[i].push(_work);
  15411. _worksStudent2[i].push(_work);
  15412. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15413. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15414. //选择题
  15415. let _work = {
  15416. userid: b[j].userid,
  15417. ateacher: b[j].ateacher,
  15418. wid: b[j].id,
  15419. works: b[j].content,
  15420. sName: b[j].name,
  15421. type: 13,
  15422. ttype:b[j].ttype,
  15423. time: b[j].time,
  15424. score: b[j].score,
  15425. img: b[j].img,
  15426. likesCount: likesCount,
  15427. commentCount: commentCount,
  15428. isLikes: isLikes,
  15429. commentJson: commentJson,
  15430. likeJson:likeJson
  15431. };
  15432. _worksStudent[i].push(_work);
  15433. _worksStudent2[i].push(_work);
  15434. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15435. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15436. //选择题
  15437. let _work = {
  15438. userid: b[j].userid,
  15439. ateacher: b[j].ateacher,
  15440. wid: b[j].id,
  15441. works: b[j].content,
  15442. sName: b[j].name,
  15443. type: 16,
  15444. ttype:b[j].ttype,
  15445. time: b[j].time,
  15446. score: b[j].score,
  15447. img: b[j].img,
  15448. likesCount: likesCount,
  15449. commentCount: commentCount,
  15450. isLikes: isLikes,
  15451. commentJson: commentJson,
  15452. aiCode: b[j].aiCode,
  15453. teacherCode: b[j].teacherCode,
  15454. likeJson:likeJson
  15455. };
  15456. _worksStudent[i].push(_work);
  15457. _worksStudent2[i].push(_work);
  15458. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15459. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15460. //英语口语
  15461. let _work = {
  15462. userid: b[j].userid,
  15463. ateacher: b[j].ateacher,
  15464. wid: b[j].id,
  15465. works: b[j].content,
  15466. sName: b[j].name,
  15467. type: 17,
  15468. ttype:b[j].ttype,
  15469. time: b[j].time,
  15470. score: b[j].score,
  15471. img: b[j].img,
  15472. likesCount: likesCount,
  15473. commentCount: commentCount,
  15474. isLikes: isLikes,
  15475. commentJson: commentJson,
  15476. likeJson:likeJson
  15477. };
  15478. _worksStudent[i].push(_work);
  15479. _worksStudent2[i].push(_work);
  15480. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15481. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15482. //交互视频
  15483. let _work = {
  15484. userid: b[j].userid,
  15485. ateacher: b[j].ateacher,
  15486. wid: b[j].id,
  15487. works: b[j].content,
  15488. sName: b[j].name,
  15489. type: 14,
  15490. ttype:b[j].ttype,
  15491. time: b[j].time,
  15492. score: b[j].score,
  15493. img: b[j].img,
  15494. likesCount: likesCount,
  15495. commentCount: commentCount,
  15496. isLikes: isLikes,
  15497. commentJson: commentJson,
  15498. likeJson:likeJson
  15499. };
  15500. _worksStudent[i].push(_work);
  15501. _worksStudent2[i].push(_work);
  15502. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15503. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15504. let _gindex = JSON.parse(b[j].content);
  15505. if (
  15506. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15507. b[j].userid
  15508. ) != -1
  15509. ) {
  15510. let _work = {
  15511. userid: b[j].userid,
  15512. ateacher: b[j].ateacher,
  15513. wid: b[j].id,
  15514. works: _gindex.url,
  15515. sName: b[j].name,
  15516. type: _gindex.type,
  15517. ttype:b[j].ttype,
  15518. time: b[j].time,
  15519. score: b[j].score,
  15520. img: b[j].img,
  15521. likesCount: likesCount,
  15522. commentCount: commentCount,
  15523. isLikes: isLikes,
  15524. commentJson: commentJson,
  15525. likeJson:likeJson
  15526. };
  15527. _worksStudent[i][_gindex.groupIndex].push(_work);
  15528. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15529. }
  15530. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15531. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15532. let _work = {
  15533. userid: b[j].userid,
  15534. ateacher: b[j].ateacher,
  15535. wid: b[j].id,
  15536. works: b[j].content,
  15537. sName: b[j].name ? b[j].name : b[j].userid,
  15538. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15539. ttype:b[j].ttype,
  15540. time: b[j].time,
  15541. score: b[j].score,
  15542. img: b[j].img,
  15543. likesCount: likesCount,
  15544. commentCount: commentCount,
  15545. isLikes: isLikes,
  15546. commentJson: commentJson,
  15547. likeJson:likeJson
  15548. };
  15549. _worksStudent[i].push(_work);
  15550. _worksStudent2[i].push(_work);
  15551. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15552. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15553. let _work = {
  15554. userid: b[j].userid,
  15555. ateacher: b[j].ateacher,
  15556. wid: b[j].id,
  15557. works: b[j].content,
  15558. sName: b[j].name ? b[j].name : b[j].userid,
  15559. type: 12,
  15560. ttype:b[j].ttype,
  15561. time: b[j].time,
  15562. score: b[j].score,
  15563. img: b[j].img,
  15564. likesCount: likesCount,
  15565. commentCount: commentCount,
  15566. isLikes: isLikes,
  15567. commentJson: commentJson,
  15568. likeJson:likeJson
  15569. };
  15570. _worksStudent[i].push(_work);
  15571. _worksStudent2[i].push(_work);
  15572. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15573. } else if (
  15574. a[i].tool[0] == 57 &&
  15575. b[j].atool == 57 &&
  15576. b[j].type == 12
  15577. ) {
  15578. let _work = {
  15579. userid: b[j].userid,
  15580. ateacher: b[j].ateacher,
  15581. wid: b[j].id,
  15582. works: b[j].content,
  15583. sName: b[j].name ? b[j].name : b[j].userid,
  15584. type: 12,
  15585. ttype:b[j].ttype,
  15586. time: b[j].time,
  15587. score: b[j].score,
  15588. img: b[j].img,
  15589. likesCount: likesCount,
  15590. commentCount: commentCount,
  15591. isLikes: isLikes,
  15592. commentJson: commentJson,
  15593. likeJson:likeJson
  15594. };
  15595. _worksStudent[i].push(_work);
  15596. _worksStudent2[i].push(_work);
  15597. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15598. } else if (
  15599. a[i].tool[0] == 57 &&
  15600. b[j].atool == 57 &&
  15601. b[j].type == 15
  15602. ) {
  15603. let _work = {
  15604. userid: b[j].userid,
  15605. ateacher: b[j].ateacher,
  15606. wid: b[j].id,
  15607. works: b[j].content,
  15608. sName: b[j].name ? b[j].name : b[j].userid,
  15609. type: 15,
  15610. ttype:b[j].ttype,
  15611. time: b[j].time,
  15612. score: b[j].score,
  15613. img: b[j].img,
  15614. likesCount: likesCount,
  15615. commentCount: commentCount,
  15616. isLikes: isLikes,
  15617. commentJson: commentJson,
  15618. likeJson:likeJson
  15619. };
  15620. _worksStudent[i].push(_work);
  15621. _worksStudent2[i].push(_work);
  15622. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15623. }
  15624. }
  15625. }
  15626. if (_worksStudent[i] && _worksStudent[i].length) {
  15627. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15628. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15629. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15630. var scoreA = parseFloat(jscoreA);
  15631. var scoreB = parseFloat(jscoreB);
  15632. if (scoreA == scoreB) {
  15633. return b.likesCount - a.likesCount;
  15634. }
  15635. return scoreB - scoreA;
  15636. });
  15637. if (this.isGroup) {
  15638. for (
  15639. var groupI = 0;
  15640. groupI < this.courseGroup.group.length;
  15641. groupI++
  15642. ) {
  15643. this.courseGroup.group[groupI].works[i] =
  15644. this.courseGroup.group[groupI].works[i].sort(function (
  15645. a,
  15646. b
  15647. ) {
  15648. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15649. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15650. var scoreA = parseFloat(jscoreA);
  15651. var scoreB = parseFloat(jscoreB);
  15652. if (scoreA == scoreB) {
  15653. return b.likesCount - a.likesCount;
  15654. }
  15655. return scoreB - scoreA;
  15656. });
  15657. }
  15658. }
  15659. }
  15660. }
  15661. this.timeWorkList = _worksStudent2;
  15662. for (var i = 0; i < a.length; i++) {
  15663. for (var j = 0; j < b.length; j++) {
  15664. var data = b[j];
  15665. if (i == b[j].tool) {
  15666. if (data.type == 2 || data.type == 8) {
  15667. for (var z = 0; z < this.checkJson[i].length; z++) {
  15668. this.checkJson[i][z].checkPerent = [];
  15669. this.checkJson[i][z].right = Math.round(
  15670. (this.checkJson[i][z].rightPerson.length /
  15671. parseInt(_worksStudent[i].length)) *
  15672. 100
  15673. );
  15674. let aaaa = this.checkJson[i][z];
  15675. for (
  15676. var k = 0;
  15677. k < this.checkJson[i][z].checkCount.length;
  15678. k++
  15679. ) {
  15680. this.checkJson[i][z].checkPerent.push(
  15681. Math.round(
  15682. (this.checkJson[i][z].checkCount[k] /
  15683. parseInt(_worksStudent[i].length)) *
  15684. 100
  15685. )
  15686. );
  15687. }
  15688. }
  15689. } else if (data.type == 9) {
  15690. for (var z = 0; z < this.checkJson[i].length; z++) {
  15691. this.checkJson[i][z].checkPerent = [];
  15692. this.checkJson[i][z].right = Math.round(
  15693. (this.checkJson[i][z].rightPerson.length /
  15694. this.checkJson[i][z].checkPerson.length) *
  15695. 100
  15696. );
  15697. }
  15698. }
  15699. }
  15700. }
  15701. }
  15702. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15703. this.joinGroup(gindex);
  15704. }
  15705. this.worksStudent = _worksStudent;
  15706. this.selectWorksStudent();
  15707. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15708. this.$nextTick(()=>{
  15709. setTimeout(()=>{
  15710. setTimeout(()=>{
  15711. this.panToolHeight('tool-'+ci);
  15712. }, 500)
  15713. }, 0)
  15714. })
  15715. }
  15716. this.selectSWorksLoading = false
  15717. })
  15718. .catch((err) => {
  15719. this.selectSWorksLoading = false
  15720. console.error(err);
  15721. });
  15722. },
  15723. pngToWhiteBg(file) {
  15724. const _file = file;
  15725. let read = new FileReader();
  15726. read.readAsDataURL(file); // 文件转base64
  15727. return new Promise((resolve, reject) => {
  15728. read.onload = (e) => {
  15729. let img = new Image();
  15730. img.src = e.target.result;
  15731. img.onload = async () => {
  15732. // 生成canvas
  15733. let canvas = document.createElement("canvas");
  15734. let context = canvas.getContext("2d");
  15735. // 绘制图片到canvas上
  15736. canvas.width = img.width;
  15737. canvas.height = img.height;
  15738. // 在canvas绘制前填充白色背景
  15739. context.fillStyle = "#fff";
  15740. context.fillRect(0, 0, canvas.width, canvas.height);
  15741. context.drawImage(img, 0, 0);
  15742. let base64 = canvas.toDataURL(file["type"], 1);
  15743. let newFile = this.dataUrlToFile(base64, _file);
  15744. resolve(newFile);
  15745. };
  15746. };
  15747. });
  15748. },
  15749. dataUrlToFile(dataurl, file) {
  15750. let arr = dataurl.split(","),
  15751. mime = arr[0].match(/:(.*?);/)[1],
  15752. bstr = atob(arr[1]),
  15753. n = bstr.length,
  15754. u8arr = new Uint8Array(n);
  15755. while (n--) {
  15756. u8arr[n] = bstr.charCodeAt(n);
  15757. }
  15758. // return new Blob([u8arr], { type: mime });
  15759. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15760. type: mime,
  15761. });
  15762. },
  15763. async beforeUpload1(event, type, i) {
  15764. // this.$message.success('进入上传')
  15765. var file = "";
  15766. if (type == 5) {
  15767. file = event;
  15768. } else {
  15769. file = event.target.files[0];
  15770. }
  15771. var credentials = {
  15772. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15773. secretAccessKey: "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",
  15774. }; //秘钥形式的登录上传
  15775. window.AWS.config.update(credentials);
  15776. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15777. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15778. var _this = this;
  15779. _this.progress = 0;
  15780. _this.proVisible = true;
  15781. _this.isFinishSize = 0;
  15782. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15783. var b = [
  15784. "DOC",
  15785. "DOCX",
  15786. "DOCM",
  15787. "DOTM",
  15788. "DOTX",
  15789. "PPTX",
  15790. "PPSX",
  15791. "PPT",
  15792. "PPS",
  15793. "PPTM",
  15794. "POTM",
  15795. "PPAM",
  15796. "POTX",
  15797. "PPSM",
  15798. ];
  15799. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15800. var photoA = [
  15801. "BMP",
  15802. "GIF",
  15803. "PNG",
  15804. "JPEG",
  15805. "JPEG",
  15806. "JPG",
  15807. "TIF",
  15808. "PCX",
  15809. "TGA",
  15810. "EXIF",
  15811. "FPX",
  15812. "SVG",
  15813. "APNG",
  15814. ];
  15815. // if (
  15816. // b.indexOf(
  15817. // file.name
  15818. // .split(".")
  15819. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15820. // ) != -1
  15821. // ) {
  15822. // if (file.size / 1024 / 1024 > 10) {
  15823. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15824. // return;
  15825. // }
  15826. // } else if (
  15827. // excelA.indexOf(
  15828. // file.name
  15829. // .split(".")
  15830. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15831. // ) != "-1"
  15832. // ) {
  15833. // if (file.size / 1024 / 1024 > 5) {
  15834. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15835. // return;
  15836. // }
  15837. // }
  15838. if (
  15839. photoA.indexOf(
  15840. file.name
  15841. .split(".")
  15842. [file.name.split(".").length - 1].toLocaleUpperCase()
  15843. ) != -1 &&
  15844. type != 4
  15845. ) {
  15846. // const blob = await imageConversion.compress(file, 0.8)
  15847. file = await this.pngToWhiteBg(file);
  15848. const blob = await imageConversion.compressAccurately(file, 256);
  15849. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15850. file = new File([blob], file.name, { type: file.type });
  15851. }
  15852. if (file) {
  15853. var params = {
  15854. Key:
  15855. file.name.split(".")[0] +
  15856. new Date().getTime() +
  15857. "." +
  15858. file.name.split(".")[file.name.split(".").length - 1],
  15859. ContentType: file.type,
  15860. Body: file,
  15861. "Access-Control-Allow-Credentials": "*",
  15862. ACL: "public-read",
  15863. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15864. var options = {
  15865. // partSize: 2048 * 1024 * 1024,
  15866. partSize: 1024 * 1024 * 1024,
  15867. queueSize: 2,
  15868. leavePartsOnError: true,
  15869. };
  15870. bucket
  15871. .upload(params, options)
  15872. .on("httpUploadProgress", function (evt) {
  15873. //这里可以写进度条
  15874. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15875. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15876. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15877. })
  15878. .send(function (err, data) {
  15879. _this.progress = 100;
  15880. _this.isFinishSize = _this.isAllSize;
  15881. setTimeout(() => {
  15882. _this.proVisible = false;
  15883. }, 1000);
  15884. if (err) {
  15885. var a = _this.$refs.upload1.uploadFiles;
  15886. a.splice(a.length - 1, a.length);
  15887. _this.$message.error(this.lang.ssUploadFailed);
  15888. } else {
  15889. // _this.$message.success('上传成功')
  15890. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15891. var c = [
  15892. "AVI",
  15893. "NAVI",
  15894. "MPEG",
  15895. "ASF",
  15896. "MOV",
  15897. "WMV",
  15898. "3GP",
  15899. "RM",
  15900. "RMVB",
  15901. "FLV",
  15902. "F4V",
  15903. "H.264",
  15904. "H.265",
  15905. "REAL VIDEO",
  15906. "MKV",
  15907. "WebM",
  15908. "HDDVD",
  15909. "MP4",
  15910. "MPG",
  15911. "M4V",
  15912. "MGV",
  15913. "OGV",
  15914. "QTM",
  15915. "STR",
  15916. "AMC",
  15917. "DVX",
  15918. "EVO",
  15919. "DAT",
  15920. "OGG",
  15921. "OGM",
  15922. ];
  15923. if (type == 1) {
  15924. _this.studyJuri[0].cover.push({
  15925. name: file.name,
  15926. url: data.Location,
  15927. uid: file.uid,
  15928. });
  15929. if (
  15930. c.indexOf(
  15931. _this.studyJuri[0].cover[0].url
  15932. .split(".")
  15933. [
  15934. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15935. ].toLocaleUpperCase()
  15936. ) != -1
  15937. ) {
  15938. _this.fileType = 2;
  15939. } else if (
  15940. b.indexOf(
  15941. _this.studyJuri[0].cover[0].url
  15942. .split(".")
  15943. [
  15944. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15945. ].toLocaleUpperCase()
  15946. ) != -1
  15947. ) {
  15948. _this.fileType = 1;
  15949. } else if (
  15950. photoA.indexOf(
  15951. _this.studyJuri[0].cover[0].url
  15952. .split(".")
  15953. [
  15954. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15955. ].toLocaleUpperCase()
  15956. ) != -1
  15957. ) {
  15958. _this.fileType = 0;
  15959. } else {
  15960. _this.fileType = 3;
  15961. }
  15962. _this.imgChange(null, null, type);
  15963. } else if (type == 2) {
  15964. _this.upToolImg = data.Location;
  15965. _this.imgChange(null, null, type);
  15966. _this.addCourseWorks(i);
  15967. } else if (type == 4) {
  15968. _this.addPz("3", data.Location);
  15969. } else if (type == 5) {
  15970. _this.addImgDrawImG(data.Location);
  15971. } else if (type == 6) {
  15972. var _ftype = 1;
  15973. if (
  15974. c.indexOf(
  15975. data.Location.split(".")[
  15976. data.Location.split(".").length - 1
  15977. ].toLocaleUpperCase()
  15978. ) != -1
  15979. ) {
  15980. _ftype = 5;
  15981. } else if (
  15982. b.indexOf(
  15983. data.Location.split(".")[
  15984. data.Location.split(".").length - 1
  15985. ].toLocaleUpperCase()
  15986. ) != -1
  15987. ) {
  15988. _ftype = 4;
  15989. } else {
  15990. _ftype = 1;
  15991. }
  15992. _this.plworkFile.push({
  15993. name: file.name,
  15994. url: data.Location,
  15995. uid: file.uid,
  15996. fileType: _ftype,
  15997. username:
  15998. _this.plworkFile.length > 10
  15999. ? _this.plworkFile.length + 1
  16000. : "0" + (_this.plworkFile.length + 1),
  16001. });
  16002. } else if (type == 7) {
  16003. _this.addCourseWorksGong(i, data.Location, 32);
  16004. } else if (type == 8) {
  16005. _this.addCourseWorksGong(i, data.Location, 57);
  16006. }
  16007. _this.imgChange(null, null, type);
  16008. console.log(data.Location);
  16009. // _this.$message.success('上传成功'+data.Location)
  16010. }
  16011. });
  16012. }
  16013. },
  16014. async beforeUpload3(event, type, i) {
  16015. // this.$message.success('进入上传')
  16016. let file = "";
  16017. let cfindex2 = 0;
  16018. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16019. file = event.target.files[cfindex];
  16020. var credentials = {
  16021. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16022. secretAccessKey: "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",
  16023. }; //秘钥形式的登录上传
  16024. window.AWS.config.update(credentials);
  16025. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16026. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16027. var _this = this;
  16028. // _this.progress = 0;
  16029. _this.proVisible2 = true;
  16030. var b = [
  16031. "DOC",
  16032. "DOCX",
  16033. "DOCM",
  16034. "DOTM",
  16035. "DOTX",
  16036. "PPTX",
  16037. "PPSX",
  16038. "PPT",
  16039. "PPS",
  16040. "PPTM",
  16041. "POTM",
  16042. "PPAM",
  16043. "POTX",
  16044. "PPSM",
  16045. ];
  16046. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16047. var photoA = [
  16048. "BMP",
  16049. "GIF",
  16050. "PNG",
  16051. "JPEG",
  16052. "JPG",
  16053. "TIF",
  16054. "PCX",
  16055. "TGA",
  16056. "EXIF",
  16057. "FPX",
  16058. "SVG",
  16059. "APNG",
  16060. ];
  16061. if (
  16062. photoA.indexOf(
  16063. file.name
  16064. .split(".")
  16065. [file.name.split(".").length - 1].toLocaleUpperCase()
  16066. ) != -1 &&
  16067. type != 4
  16068. ) {
  16069. // const blob = await imageConversion.compress(file, 0.8)
  16070. file = await this.pngToWhiteBg(file);
  16071. const blob = await imageConversion.compressAccurately(file, 256);
  16072. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16073. file = new File([blob], file.name, { type: file.type });
  16074. }
  16075. if (file) {
  16076. var params = {
  16077. Key:
  16078. file.name.split(".")[0] +
  16079. new Date().getTime() +
  16080. "." +
  16081. file.name.split(".")[file.name.split(".").length - 1],
  16082. ContentType: file.type,
  16083. Body: file,
  16084. "Access-Control-Allow-Credentials": "*",
  16085. ACL: "public-read",
  16086. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16087. var options = {
  16088. // partSize: 2048 * 1024 * 1024,
  16089. partSize: 1024 * 1024 * 1024,
  16090. queueSize: 2,
  16091. leavePartsOnError: true,
  16092. };
  16093. bucket
  16094. .upload(params, options)
  16095. .on("httpUploadProgress", function (evt) {
  16096. //这里可以写进度条
  16097. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16098. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16099. })
  16100. .send(function (err, data) {
  16101. // _this.progress = 100;
  16102. cfindex2++;
  16103. setTimeout(() => {
  16104. if (
  16105. cfindex2 == event.target.files.length - 1 ||
  16106. cfindex2 > event.target.files.length - 1
  16107. ) {
  16108. _this.proVisible2 = false;
  16109. }
  16110. }, 1000);
  16111. if (err) {
  16112. var a = _this.$refs.upload1.uploadFiles;
  16113. a.splice(a.length - 1, a.length);
  16114. _this.$message.error(this.lang.ssUploadFailed);
  16115. } else {
  16116. // _this.$message.success('上传成功')
  16117. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16118. var c = [
  16119. "AVI",
  16120. "NAVI",
  16121. "MPEG",
  16122. "ASF",
  16123. "MOV",
  16124. "WMV",
  16125. "3GP",
  16126. "RM",
  16127. "RMVB",
  16128. "FLV",
  16129. "F4V",
  16130. "H.264",
  16131. "H.265",
  16132. "REAL VIDEO",
  16133. "MKV",
  16134. "WebM",
  16135. "HDDVD",
  16136. "MP4",
  16137. "MPG",
  16138. "M4V",
  16139. "MGV",
  16140. "OGV",
  16141. "QTM",
  16142. "STR",
  16143. "AMC",
  16144. "DVX",
  16145. "EVO",
  16146. "DAT",
  16147. "OGG",
  16148. "OGM",
  16149. ];
  16150. if (type == 1) {
  16151. _this.studyJuri[0].cover.push({
  16152. name: file.name,
  16153. url: data.Location,
  16154. uid: file.uid,
  16155. });
  16156. if (
  16157. c.indexOf(
  16158. _this.studyJuri[0].cover[0].url
  16159. .split(".")
  16160. [
  16161. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16162. ].toLocaleUpperCase()
  16163. ) != -1
  16164. ) {
  16165. _this.fileType = 2;
  16166. } else if (
  16167. b.indexOf(
  16168. _this.studyJuri[0].cover[0].url
  16169. .split(".")
  16170. [
  16171. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16172. ].toLocaleUpperCase()
  16173. ) != -1
  16174. ) {
  16175. _this.fileType = 1;
  16176. } else {
  16177. _this.fileType = 0;
  16178. }
  16179. _this.imgChange(null, null, type);
  16180. } else if (type == 2) {
  16181. _this.upToolImg = data.Location;
  16182. _this.imgChange(null, null, type);
  16183. _this.addCourseWorks(i);
  16184. } else if (type == 4) {
  16185. _this.addPz("3", data.Location);
  16186. } else if (type == 5) {
  16187. _this.addImgDrawImG(data.Location);
  16188. } else if (type == 6) {
  16189. var _ftype = 1;
  16190. if (
  16191. c.indexOf(
  16192. data.Location.split(".")[
  16193. data.Location.split(".").length - 1
  16194. ].toLocaleUpperCase()
  16195. ) != -1
  16196. ) {
  16197. _ftype = 5;
  16198. } else if (
  16199. b.indexOf(
  16200. data.Location.split(".")[
  16201. data.Location.split(".").length - 1
  16202. ].toLocaleUpperCase()
  16203. ) != -1
  16204. ) {
  16205. _ftype = 4;
  16206. } else {
  16207. _ftype = 1;
  16208. }
  16209. _this.plworkFile.push({
  16210. name: file.name,
  16211. url: data.Location,
  16212. uid: file.uid,
  16213. fileType: _ftype,
  16214. username:
  16215. _this.plworkFile.length + 1 > 9
  16216. ? _this.plworkFile.length + 1
  16217. : "0" + (_this.plworkFile.length + 1),
  16218. });
  16219. }
  16220. _this.imgChange(null, null, type);
  16221. console.log(data.Location);
  16222. // _this.$message.success('上传成功'+data.Location)
  16223. }
  16224. });
  16225. }
  16226. }
  16227. },
  16228. beforeUpload2(event, type) {
  16229. var file = event.target.files[0];
  16230. var credentials = {
  16231. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16232. secretAccessKey: "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",
  16233. }; //秘钥形式的登录上传
  16234. window.AWS.config.update(credentials);
  16235. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16236. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16237. var _this = this;
  16238. _this.progress = 0;
  16239. _this.proVisible = true;
  16240. if (file) {
  16241. var params = {
  16242. Key:
  16243. file.name.split(".")[0] +
  16244. new Date().getTime() +
  16245. "." +
  16246. file.name.split(".")[file.name.split(".").length - 1],
  16247. ContentType: file.type,
  16248. Body: file,
  16249. "Access-Control-Allow-Credentials": "*",
  16250. ACL: "public-read",
  16251. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16252. var options = {
  16253. partSize: 2048 * 1024 * 1024,
  16254. queueSize: 2,
  16255. leavePartsOnError: true,
  16256. };
  16257. bucket
  16258. .upload(params, options)
  16259. .on("httpUploadProgress", function (evt) {
  16260. //这里可以写进度条
  16261. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16262. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16263. })
  16264. .send(function (err, data) {
  16265. _this.progress = 100;
  16266. setTimeout(() => {
  16267. _this.proVisible = false;
  16268. }, 1000);
  16269. if (err) {
  16270. var a = _this.$refs.upload1.uploadFiles;
  16271. a.splice(a.length - 1, a.length);
  16272. _this.$message.error(this.lang.ssUploadFailed);
  16273. } else {
  16274. if (type == 2) {
  16275. _this.studyJuri[0].upVedio.push({
  16276. name: file.name,
  16277. url: data.Location,
  16278. uid: file.uid,
  16279. });
  16280. _this.imgChange(null, null, type);
  16281. } else if (type == 3) {
  16282. _this.studyJuri[0].upFile.push({
  16283. name: file.name,
  16284. url: data.Location,
  16285. uid: file.uid,
  16286. });
  16287. _this.imgChange(null, null, type);
  16288. }
  16289. console.log(data.Location);
  16290. }
  16291. });
  16292. }
  16293. },
  16294. allScrell() {
  16295. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16296. },
  16297. nextOrpreSteps(t) {
  16298. if (this.IsFollow && this.tType == 2) {
  16299. this.$message.error(this.lang.ssFollowModeOn);
  16300. return;
  16301. }
  16302. var b = this.chapInfoList.length - 1;
  16303. if (t == 0) {
  16304. if (this.courseType == 0) {
  16305. if (this.taskCount == 0) {
  16306. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16307. if (this.IsLookOpen) {
  16308. if (
  16309. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16310. ) {
  16311. if (
  16312. this.courseDetail.userid != this.userid &&
  16313. (!this.courseDetail.course_teacher ||
  16314. (this.courseDetail.course_teacher &&
  16315. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16316. ) {
  16317. this.$message.error(this.lang.ssTaskLocked);
  16318. } else {
  16319. this.$message.error(this.lang.ssPrevTaskLocked);
  16320. }
  16321. return;
  16322. }
  16323. }
  16324. this.navList[this.courseType].isOpen = false;
  16325. this.courseType = b;
  16326. this.taskCount =
  16327. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16328. .length - 1;
  16329. this.navList[this.courseType].isOpen = true;
  16330. } else {
  16331. this.taskCount--;
  16332. }
  16333. } else {
  16334. if (this.taskCount == 0) {
  16335. this.navList[this.courseType].isOpen = false;
  16336. this.courseType--;
  16337. this.taskCount =
  16338. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16339. .length - 1;
  16340. this.navList[this.courseType].isOpen = true;
  16341. } else {
  16342. this.taskCount--;
  16343. }
  16344. }
  16345. } else {
  16346. if (this.courseType == b) {
  16347. if (
  16348. this.taskCount ==
  16349. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16350. 1
  16351. ) {
  16352. this.navList[this.courseType].isOpen = false;
  16353. this.courseType = 0;
  16354. this.taskCount = 0;
  16355. this.navList[this.courseType].isOpen = true;
  16356. } else {
  16357. var bbb = parseInt(this.taskCount) + 1;
  16358. if (
  16359. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16360. .isLook &&
  16361. this.courseDetail.userid != this.userid &&
  16362. (!this.courseDetail.course_teacher ||
  16363. (this.courseDetail.course_teacher &&
  16364. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16365. this.IsLookOpen
  16366. ) {
  16367. this.$message.error(this.lang.ssTaskLocked);
  16368. return;
  16369. }
  16370. this.taskCount++;
  16371. if (this.IsLookOpen) {
  16372. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16373. this.taskCount
  16374. ].isLook = true;
  16375. this.addCourseState(3);
  16376. }
  16377. }
  16378. } else {
  16379. if (
  16380. this.taskCount ==
  16381. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16382. 1
  16383. ) {
  16384. var bbb = parseInt(this.courseType) + 1;
  16385. if (
  16386. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16387. this.courseDetail.userid != this.userid &&
  16388. (!this.courseDetail.course_teacher ||
  16389. (this.courseDetail.course_teacher &&
  16390. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16391. this.IsLookOpen
  16392. ) {
  16393. this.$message.error(this.lang.ssTaskLocked);
  16394. return;
  16395. }
  16396. this.navList[this.courseType].isOpen = false;
  16397. this.courseType++;
  16398. this.taskCount = 0;
  16399. this.navList[this.courseType].isOpen = true;
  16400. } else {
  16401. var bbb = parseInt(this.taskCount) + 1;
  16402. if (
  16403. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16404. .isLook &&
  16405. this.courseDetail.userid != this.userid &&
  16406. (!this.courseDetail.course_teacher ||
  16407. (this.courseDetail.course_teacher &&
  16408. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16409. this.IsLookOpen
  16410. ) {
  16411. this.$message.error(this.lang.ssTaskLocked);
  16412. return;
  16413. }
  16414. this.taskCount++;
  16415. }
  16416. if (this.IsLookOpen) {
  16417. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16418. this.taskCount
  16419. ].isLook = true;
  16420. this.addCourseState(3);
  16421. }
  16422. }
  16423. // if (
  16424. // this.taskCount ==
  16425. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16426. // ) {
  16427. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16428. // } else {
  16429. // this.taskCount++;
  16430. // }
  16431. }
  16432. document.scrollingElement.scrollTop = 0;
  16433. // this.showType = 7;
  16434. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16435. // if (this.vedio[this.taskCount].length > 0) {
  16436. // var a =
  16437. // document.getElementsByClassName("box_course")[this.taskCount]
  16438. // .offsetHeight;
  16439. // document.getElementsByClassName("vedioList")[
  16440. // this.taskCount
  16441. // ].style.height = a + "px";
  16442. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16443. // a - 40 + "px";
  16444. // }
  16445. this.isNoHomeWork = false;
  16446. (this.studyJuri = [
  16447. {
  16448. content: "",
  16449. cover: [],
  16450. upVedio: [],
  16451. upFile: [],
  16452. },
  16453. ]),
  16454. (this.radio = []);
  16455. this.isClickNav = "";
  16456. this.selectPz();
  16457. this.getHomeWork();
  16458. this.getCourseDetail(2);
  16459. this.$forceUpdate();
  16460. if ((this.courseDetail.userid == this.userid ||
  16461. (this.courseDetail.course_teacher &&
  16462. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  16463. this.setCTask();
  16464. }
  16465. },
  16466. openTask(s, n, i) {
  16467. if (this.IsFollow && this.tType == 2) {
  16468. this.$message.error(this.lang.ssFollowModeOn);
  16469. return;
  16470. }
  16471. if (this.IsLookOpen &&
  16472. this.courseDetail.userid != this.userid &&
  16473. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  16474. if (
  16475. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16476. this.courseDetail.userid != this.userid &&
  16477. (!this.courseDetail.course_teacher ||
  16478. (this.courseDetail.course_teacher &&
  16479. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16480. ) {
  16481. this.$message.error(this.lang.ssTaskLocked);
  16482. return;
  16483. }
  16484. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16485. if (
  16486. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16487. .isLook
  16488. ) {
  16489. this.$message.error(this.lang.ssPrevTaskLocked);
  16490. return;
  16491. }
  16492. } else if (s > this.courseType) {
  16493. if (n > 0) {
  16494. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16495. this.$message.error(this.lang.ssPrevTaskLocked);
  16496. return;
  16497. }
  16498. } else {
  16499. if (
  16500. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16501. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16502. ].isLook
  16503. ) {
  16504. this.$message.error(this.lang.ssPrevTaskLocked);
  16505. return;
  16506. }
  16507. }
  16508. }
  16509. }
  16510. if (this.navList[s].task[n].isOpen == true) {
  16511. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16512. return;
  16513. }
  16514. let flag = this.courseType==s;
  16515. this.courseType = s;
  16516. this.navId = i;
  16517. this.taskCount = n;
  16518. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  16519. this.navList[this.courseType].task[this.taskCount].isOpen =
  16520. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16521. if (this.IsLookOpen) {
  16522. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16523. this.taskCount
  16524. ].isLook = true;
  16525. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  16526. this.addCourseState(3,yym);
  16527. }
  16528. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  16529. this.isCloseList[ci].isClose = 0;
  16530. this.isCloseList[ci].isCloseBoolean = false;
  16531. this.$nextTick(()=>{
  16532. setTimeout(()=>{
  16533. setTimeout(()=>{
  16534. this.panToolHeight('tool-'+ci);
  16535. }, 0)
  16536. }, 0)
  16537. })
  16538. }
  16539. // this.showType = 7;
  16540. this.isNoHomeWork = false;
  16541. (this.studyJuri = [
  16542. {
  16543. content: "",
  16544. cover: [],
  16545. upVedio: [],
  16546. upFile: [],
  16547. },
  16548. ]),
  16549. (this.radio = []);
  16550. document.scrollingElement.scrollTop = 0;
  16551. // setTimeout(() => {
  16552. // let a = document.getElementById(i);
  16553. // if (a.offsetTop - 110 == 0) {
  16554. // window.scrollTo(0, 0);
  16555. // } else {
  16556. // window.scrollTo(0, a.offsetTop);
  16557. // }
  16558. // }, 0);
  16559. for (var z = 0; z < this.navList.length; z++) {
  16560. for (var q = 0; q < this.navList[z].task.length; q++) {
  16561. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16562. this.navList[z].task[q].tool[w].isTool = false;
  16563. }
  16564. }
  16565. }
  16566. this.selectPz();
  16567. this.getHomeWork();
  16568. this.getCourseDetail(2);
  16569. if ((this.courseDetail.userid == this.userid ||
  16570. (this.courseDetail.course_teacher &&
  16571. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  16572. this.setCTask();
  16573. }
  16574. if(flag){
  16575. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16576. }else{
  16577. 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>`)
  16578. }
  16579. },
  16580. get(i) {
  16581. if (this.IsFollow && this.tType == 2) {
  16582. this.$message.error(this.lang.ssFollowModeOn);
  16583. return;
  16584. }
  16585. // for(var k=0;k<this.navList.length;k++){
  16586. // this.navList[k].isOpen = false;
  16587. // }
  16588. // this.navList[i].isOpen = true;
  16589. this.navList[i].isOpen = !this.navList[i].isOpen;
  16590. if (this.navList[i].isOpen) {
  16591. this.openTask(i, 0, i + "-0");
  16592. }
  16593. },
  16594. addQuestion() {
  16595. this.answerList.push({
  16596. answerTitle: this.answerQ,
  16597. answer: this.questionAnswer,
  16598. });
  16599. let params = [
  16600. {
  16601. uid: this.userid,
  16602. cid: this.id,
  16603. stage: this.courseType,
  16604. task: this.taskCount,
  16605. tool: this.toolindex,
  16606. content: JSON.stringify(this.answerList),
  16607. type: 3,
  16608. },
  16609. ];
  16610. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  16611. this.homeWorkLoading = true
  16612. this.ajax
  16613. .post(this.$store.state.api + "addCourseWorks", params)
  16614. .then((res) => {
  16615. this.$message({
  16616. message: this.lang.ssSubmitSuccess,
  16617. type: "success",
  16618. });
  16619. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  16620. setTimeout(() => {
  16621. this.homeWorkLoading = false
  16622. }, 500);
  16623. this.answerList = [];
  16624. this.answerDialogVisible = false;
  16625. this.selectStudent();
  16626. this.selectSWorks();
  16627. this.selectSLook();
  16628. })
  16629. .catch((err) => {
  16630. this.$message.error(this.lang.ssSubmitFailed);
  16631. console.error(err);
  16632. setTimeout(() => {
  16633. this.homeWorkLoading = false
  16634. }, 500);
  16635. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  16636. });
  16637. },
  16638. addQuestionTeacher() {
  16639. this.answerList.push({
  16640. answerTitle: this.answerQ,
  16641. answer: this.questionAnswer,
  16642. });
  16643. let params = [
  16644. {
  16645. uid: this.sStudent.userid,
  16646. cid: this.id,
  16647. stage: this.courseType,
  16648. task: this.taskCount,
  16649. tool: this.toolindex,
  16650. content: JSON.stringify(this.answerList),
  16651. type: 3,
  16652. ateacher: this.userid,
  16653. },
  16654. ];
  16655. this.ajax
  16656. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16657. .then((res) => {
  16658. this.$message({
  16659. message: this.lang.ssSubmitSuccess,
  16660. type: "success",
  16661. });
  16662. this.answerList = [];
  16663. this.questionAnswer = "";
  16664. this.answerDialogVisibleTeacher = false;
  16665. this.selectStudent();
  16666. this.selectSWorks();
  16667. this.selectSLook();
  16668. })
  16669. .catch((err) => {
  16670. this.$message.error(this.lang.ssSubmitFailed);
  16671. console.error(err);
  16672. });
  16673. },
  16674. refreshCourse() {
  16675. // window.location.reload();
  16676. this.navList = [];
  16677. this.getCourseDetail(1);
  16678. },
  16679. getCourseDetail(type, gindex) {
  16680. let loading;
  16681. if (type != 2) {
  16682. loading = this.$loading.service({
  16683. background: "rgba(255, 255, 255, 0.7)",
  16684. target: document.querySelector(".student_table"),
  16685. });
  16686. }
  16687. this.downLoading = false
  16688. // this.navList[0].isOpen = false;
  16689. // this.navList[this.courseType].isOpen = true;
  16690. // this.courseType = this.courseTypeLine;
  16691. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16692. let params = {
  16693. courseId: this.id,
  16694. };
  16695. this.ajax
  16696. .get(this.$store.state.api + "selectCourseDetail3", params)
  16697. .then((res) => {
  16698. if ((this.courseDetail.userid == this.userid ||
  16699. (this.courseDetail.course_teacher &&
  16700. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  16701. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  16702. }
  16703. if (type != 2) {
  16704. loading.close();
  16705. if (
  16706. this.courseType >
  16707. JSON.parse(res.data[0][0].chapters).length - 1
  16708. ) {
  16709. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16710. }
  16711. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16712. .chapterInfo[0].taskJson;
  16713. var b = [
  16714. "AVI",
  16715. "NAVI",
  16716. "MPEG",
  16717. "ASF",
  16718. "MOV",
  16719. "WMV",
  16720. "3GP",
  16721. "RM",
  16722. "RMVB",
  16723. "FLV",
  16724. "F4V",
  16725. "H.264",
  16726. "H.265",
  16727. "REAL VIDEO",
  16728. "MKV",
  16729. "WebM",
  16730. "HDDVD",
  16731. "MP4",
  16732. "MPG",
  16733. "M4V",
  16734. "MGV",
  16735. "OGV",
  16736. "QTM",
  16737. "STR",
  16738. "AMC",
  16739. "DVX",
  16740. "EVO",
  16741. "DAT",
  16742. "OGG",
  16743. "OGM",
  16744. "MP3",
  16745. ];
  16746. let _chapterData = [];
  16747. for (var i = 0; i < a.length; i++) {
  16748. var c = a[i].chapterData;
  16749. this.vedio[i] = [];
  16750. this.textList[i] = [];
  16751. this.lineList[i] = [];
  16752. this.chapToolList[i] = [];
  16753. this.file[i] = [];
  16754. this.fileC[i] = [];
  16755. _chapterData[i] = c.filter((el) => {
  16756. return el.type != 12;
  16757. });
  16758. this.fileC[i] = c.filter((el) => {
  16759. return el.type == 12;
  16760. });
  16761. if (this.tType == 2) {
  16762. if (this.fileC[i].length) {
  16763. let yym1 = this.fileC[i].filter(e=>{
  16764. if(!converter(e.name).includes(converter(this.lang.ssTeachingPlan))){
  16765. return e
  16766. }
  16767. })
  16768. this.fileC[i] = yym1
  16769. }
  16770. }
  16771. // else if (c[j].type == 12) {
  16772. // this.fileC[i].push(c[j]);
  16773. // }
  16774. for (var j = 0; j < c.length; j++) {
  16775. if (c[j].type == 7) {
  16776. this.chapToolList[i].push(c[j]);
  16777. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  16778. this.lineList[i].push(c[j]);
  16779. } else if (c[j].type == 6) {
  16780. this.textList[i].push(c[j]);
  16781. } else {
  16782. if (
  16783. b.indexOf(
  16784. c[j].url
  16785. .split(".")
  16786. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16787. ) != -1
  16788. ) {
  16789. this.vedio[i].push(c[j]);
  16790. } else {
  16791. this.file[i].push(c[j]);
  16792. }
  16793. }
  16794. }
  16795. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16796. d.sources[0].src =
  16797. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16798. this.playerO[i] = d;
  16799. }
  16800. this.courseDetail = res.data[0][0];
  16801. if(this.tType == 2){
  16802. this.tcid = this.arrayToArray(
  16803. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16804. this.classId ? this.classId.split(",") : []
  16805. ).join(",");
  16806. }else{
  16807. this.tcid = this.arrayToArray(
  16808. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16809. this.tcid2 ? this.tcid2.split(",") : []
  16810. ).join(",");
  16811. }
  16812. this.evalua = res.data[0][0].evaId;
  16813. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16814. this.courseType
  16815. ];
  16816. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16817. if (this.tcid && res.data[1].length) {
  16818. let _inviteA = [];
  16819. for (var ik = 0; ik < res.data[1].length; ik++) {
  16820. _inviteA.push({
  16821. cid: res.data[1][ik].classid,
  16822. ic: res.data[1][ik].code,
  16823. });
  16824. }
  16825. for (var ik = 0; ik < _inviteA.length; ik++) {
  16826. if (
  16827. this.arrayToArray(
  16828. _inviteA[ik].cid.split(","),
  16829. this.tcid.split(",")
  16830. ).length
  16831. ) {
  16832. this.inviteCode = _inviteA[ik].ic;
  16833. break;
  16834. }
  16835. }
  16836. }
  16837. for (var l = 0; l < this.chapInfoList.length; l++) {
  16838. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16839. for (var m = 0; m < w.length; m++) {
  16840. w[m].id = l + "-" + m;
  16841. }
  16842. }
  16843. let taskCount = 0;
  16844. if (
  16845. _chapterData[taskCount].length &&
  16846. _chapterData[taskCount][0].type == 2
  16847. ) {
  16848. this.showType = 0;
  16849. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  16850. } else {
  16851. if (_chapterData[taskCount].length > 0) {
  16852. let _url = _chapterData[taskCount][0].url;
  16853. if (
  16854. _chapterData[taskCount][0].type == 8 ||
  16855. _chapterData[taskCount][0].type == 14 ||
  16856. _chapterData[taskCount][0].type == 15
  16857. ) {
  16858. this.showType = 2;
  16859. if (
  16860. _url.indexOf("https://") == -1 &&
  16861. _url.indexOf("http://") == -1
  16862. ) {
  16863. _url = "https://" + _url;
  16864. }
  16865. this.pptImgUrl1 = _url;
  16866. } else if (_chapterData[taskCount][0].type == 3) {
  16867. if (
  16868. _url
  16869. .split(".")
  16870. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16871. ) {
  16872. this.showType = 3;
  16873. this.pptImgUrl1 = _url;
  16874. } else if (
  16875. this.isAssetTypeAnImage(
  16876. _url
  16877. .split(".")
  16878. [_url.split(".").length - 1].toLocaleLowerCase()
  16879. )
  16880. ) {
  16881. this.showType = 4;
  16882. this.pptImgUrl1 = _url;
  16883. } else {
  16884. this.showType = 2;
  16885. this.pptImgUrl1 =
  16886. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16887. encodeURIComponent(_url);
  16888. }
  16889. } else if (_chapterData[taskCount][0].type == 13) {
  16890. this.showType = 4;
  16891. this.pptImgUrl1 = _url;
  16892. } else if (_chapterData[taskCount][0].type == 6) {
  16893. this.showType = 1;
  16894. this.text = this.textList[taskCount][0];
  16895. } else if (_chapterData[taskCount][0].type == 16) {
  16896. this.showType = 16;
  16897. this.pptImgUrl1 = _url;
  16898. } else if (_chapterData[taskCount][0].type == 17) {
  16899. this.showType = 16;
  16900. this.pptImgUrl1 = _url;
  16901. }
  16902. }
  16903. }
  16904. this.isClickNav = 0;
  16905. if (
  16906. !_chapterData[taskCount].length ||
  16907. _chapterData[taskCount][0].type == 12
  16908. ) {
  16909. this.isClickNav = "";
  16910. this.showType = "";
  16911. }
  16912. if (this.tType == 2) {
  16913. _chapterData.forEach((e,i)=>{
  16914. if (e.length) {
  16915. let yym = e.filter(k=>{
  16916. if(!converter(k.name).includes(converter(this.lang.ssTeachingPlan))){
  16917. return k
  16918. }
  16919. })
  16920. _chapterData[i] = yym
  16921. }
  16922. })
  16923. }
  16924. this.vChapterData = _chapterData;
  16925. } else {
  16926. // this.showType = 0;
  16927. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16928. .chapterInfo[0].taskJson;
  16929. var b = [
  16930. "AVI",
  16931. "NAVI",
  16932. "MPEG",
  16933. "ASF",
  16934. "MOV",
  16935. "WMV",
  16936. "3GP",
  16937. "RM",
  16938. "RMVB",
  16939. "FLV",
  16940. "F4V",
  16941. "H.264",
  16942. "H.265",
  16943. "REAL VIDEO",
  16944. "MKV",
  16945. "WebM",
  16946. "HDDVD",
  16947. "MP4",
  16948. "MPG",
  16949. "M4V",
  16950. "MGV",
  16951. "OGV",
  16952. "QTM",
  16953. "STR",
  16954. "AMC",
  16955. "DVX",
  16956. "EVO",
  16957. "DAT",
  16958. "OGG",
  16959. "OGM",
  16960. "MP3",
  16961. ];
  16962. let _chapterData = [];
  16963. for (var i = 0; i < a.length; i++) {
  16964. var c = a[i].chapterData;
  16965. this.vedio[i] = [];
  16966. this.textList[i] = [];
  16967. this.lineList[i] = [];
  16968. this.chapToolList[i] = [];
  16969. this.file[i] = [];
  16970. this.fileC[i] = [];
  16971. _chapterData[i] = c.filter((el) => {
  16972. return el.type != 12;
  16973. });
  16974. this.fileC[i] = c.filter((el) => {
  16975. return el.type == 12;
  16976. });
  16977. if (this.tType == 2) {
  16978. if (this.fileC[i].length) {
  16979. let yym1 = this.fileC[i].filter(e=>{
  16980. if(!converter(e.name).includes(converter(this.lang.ssTeachingPlan))){
  16981. return e
  16982. }
  16983. })
  16984. this.fileC[i] = yym1
  16985. }
  16986. }
  16987. for (var j = 0; j < c.length; j++) {
  16988. if (c[j].type == 7) {
  16989. this.chapToolList[i].push(c[j]);
  16990. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  16991. this.lineList[i].push(c[j]);
  16992. } else if (c[j].type == 6) {
  16993. this.textList[i].push(c[j]);
  16994. } else {
  16995. if (
  16996. b.indexOf(
  16997. c[j].url
  16998. .split(".")
  16999. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17000. ) != -1
  17001. ) {
  17002. this.vedio[i].push(c[j]);
  17003. } else {
  17004. this.file[i].push(c[j]);
  17005. }
  17006. }
  17007. }
  17008. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17009. d.sources[0].src =
  17010. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17011. this.playerO[i] = d;
  17012. }
  17013. let taskCount = 0;
  17014. if (
  17015. _chapterData[taskCount].length &&
  17016. _chapterData[taskCount][0].type == 2
  17017. ) {
  17018. // this.showType = 0;
  17019. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17020. } else {
  17021. if (_chapterData[taskCount].length > 0) {
  17022. let _url = _chapterData[taskCount][0].url;
  17023. if (
  17024. _chapterData[taskCount][0].type == 8 ||
  17025. _chapterData[taskCount][0].type == 14||
  17026. _chapterData[taskCount][0].type == 15
  17027. ) {
  17028. // this.showType = 2;
  17029. if (
  17030. _url.indexOf("https://") == -1 &&
  17031. _url.indexOf("http://") == -1
  17032. ) {
  17033. _url = "https://" + _url;
  17034. }
  17035. // this.pptImgUrl1 = _url;
  17036. } else if (_chapterData[taskCount][0].type == 3) {
  17037. if (
  17038. _url
  17039. .split(".")
  17040. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17041. ) {
  17042. // this.showType = 3;
  17043. // this.pptImgUrl1 = _url;
  17044. } else if (
  17045. this.isAssetTypeAnImage(
  17046. _url
  17047. .split(".")
  17048. [_url.split(".").length - 1].toLocaleLowerCase()
  17049. )
  17050. ) {
  17051. // this.showType = 4;
  17052. // this.pptImgUrl1 = _url;
  17053. } else {
  17054. // this.showType = 2;
  17055. // this.pptImgUrl1 =
  17056. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  17057. // encodeURIComponent(_url);
  17058. }
  17059. } else if (_chapterData[taskCount][0].type == 13) {
  17060. // this.showType = 4;
  17061. // this.pptImgUrl1 = _url;
  17062. } else if (_chapterData[taskCount][0].type == 6) {
  17063. this.showType = 1;
  17064. this.text = this.textList[taskCount][0];
  17065. } else if (_chapterData[taskCount][0].type == 16) {
  17066. this.showType = 16;
  17067. this.pptImgUrl1 = _url;
  17068. } else if (_chapterData[taskCount][0].type == 17) {
  17069. this.showType = 16;
  17070. this.pptImgUrl1 = _url;
  17071. }
  17072. }
  17073. }
  17074. this.isClickNav = 0;
  17075. if (
  17076. !_chapterData[taskCount].length ||
  17077. _chapterData[taskCount][0].type == 12
  17078. ) {
  17079. this.isClickNav = "";
  17080. // this.showType = "";
  17081. }
  17082. if (this.tType == 2) {
  17083. _chapterData.forEach((e,i)=>{
  17084. if (e.length) {
  17085. let yym = e.filter(k=>{
  17086. if(!converter(k.name).includes(converter(this.lang.ssTeachingPlan))){
  17087. return k
  17088. }
  17089. })
  17090. _chapterData[i] = yym
  17091. }
  17092. })
  17093. }
  17094. this.vChapterData = _chapterData;
  17095. this.$forceUpdate();
  17096. }
  17097. // else {
  17098. // this.courseDetail = res.data[0][0];
  17099. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17100. // }
  17101. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  17102. if (type == 10) {
  17103. console.log('this.courseDetail.userid',this.courseDetail.userid);
  17104. console.log('this.userid',this.userid);
  17105. if (this.courseDetail.userid == this.userid) {
  17106. // 开局关闭学生查看内容
  17107. this.StulookMode(true)
  17108. // 开局打开跟随模式
  17109. this.followingMode(true)
  17110. }
  17111. }
  17112. let _this = this;
  17113. if (_this.timer) {
  17114. clearInterval(_this.timer);
  17115. _this.timer = null;
  17116. }
  17117. if (_this.tcid) {
  17118. _this.getCourseGroup(gindex);
  17119. } else {
  17120. _this.selectSWorks(gindex);
  17121. }
  17122. _this.selectStudent();
  17123. _this.selectSLook();
  17124. _this.getPick();
  17125. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17126. // _this.setCTask();
  17127. // }
  17128. if (_this.dialogVisibleGroup) {
  17129. _this.groupJson =
  17130. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17131. _this.taskCount
  17132. ].toolChoose[_this.toolindex].groupJson;
  17133. }
  17134. _this.$nextTick(() => {
  17135. setTimeout(() => {
  17136. _this.checkEva();
  17137. }, 1000);
  17138. });
  17139. _this.timer = setInterval(function () {
  17140. // _this.getCourseDetail(2);
  17141. if (_this.tcid) {
  17142. _this.getCourseGroup();
  17143. } else {
  17144. _this.selectSWorks();
  17145. }
  17146. _this.selectStudent();
  17147. _this.selectSLook();
  17148. _this.getPick();
  17149. // _this.getSplitScreenData();//获取分屏数据
  17150. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17151. // _this.setCTask();
  17152. // }
  17153. if (_this.dialogVisibleGroup) {
  17154. _this.groupJson =
  17155. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17156. _this.taskCount
  17157. ].toolChoose[_this.toolindex].groupJson;
  17158. }
  17159. if (_this.tType == 4 || _this.ispzType == 4) {
  17160. _this.selectPz();
  17161. }
  17162. }, 5000);
  17163. if (_this.timer2 == null) {
  17164. _this.timer2 = setInterval(()=> {
  17165. if (_this.$region != 'hk') {
  17166. _this.getSplitScreenData();//获取分屏数据
  17167. }
  17168. }, 5000);
  17169. }
  17170. _this.$nextTick(function () {
  17171. setTimeout(() => {
  17172. const element = document.getElementsByClassName("pb_body")[0];
  17173. if (element) {
  17174. element.style.minHeight = 'unset'
  17175. // 或者:element.style.removeProperty("min-height");
  17176. }
  17177. // var a =
  17178. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17179. // document.getElementsByClassName("vedioList")[0].style.height =
  17180. // a + "px";
  17181. // document.getElementsByClassName("navBox")[0].style.height =
  17182. // a - 40 + "px";
  17183. // if (_this.vedio[_this.taskCount].length > 0) {
  17184. // _this.vedioTime = [];
  17185. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17186. // _this.vedioTime[i] = document.getElementsByClassName(
  17187. // "vjs-duration-display"
  17188. // )[i].textContent;
  17189. // }
  17190. // }
  17191. }, 1000);
  17192. });
  17193. })
  17194. .catch((err) => {
  17195. loading.close();
  17196. console.error(err);
  17197. });
  17198. },
  17199. getCourseGroup(gindex) {
  17200. if(this.getCourseGroupLoading) return
  17201. this.getCourseGroupLoading = true
  17202. let params = {
  17203. cid: this.id,
  17204. classid: this.tcid ? this.tcid : "1",
  17205. };
  17206. this.ajax
  17207. .get(this.$store.state.api + "getCourseGroup", params)
  17208. .then((res) => {
  17209. if (res.data && res.data[0].length) {
  17210. if (!this.isGroup) {
  17211. let courseGroup = JSON.parse(res.data[0][0].group);
  17212. courseGroup.group = courseGroup.group.filter((el) => {
  17213. el.works = [];
  17214. return el;
  17215. });
  17216. if (courseGroup.isopen == 2) {
  17217. this.isGroup = false;
  17218. this.selectSWorks(gindex);
  17219. return;
  17220. }
  17221. this.courseGroup = courseGroup;
  17222. let groupPerson = res.data[1];
  17223. let group = JSON.parse(res.data[0][0].group).group;
  17224. let courseGroupStudent = {};
  17225. let courseGroupStudentUid = {};
  17226. for (var i = 0; i < group.length; i++) {
  17227. courseGroupStudent[group[i].id] = [];
  17228. courseGroupStudentUid[group[i].id] = [];
  17229. for (var j = 0; j < groupPerson.length; j++) {
  17230. if (groupPerson[j].groupCid == group[i].id) {
  17231. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17232. courseGroupStudentUid[group[i].id].push(
  17233. groupPerson[j].userid
  17234. );
  17235. }
  17236. }
  17237. }
  17238. this.courseGroupStudent = courseGroupStudent;
  17239. this.courseGroupStudentUid = courseGroupStudentUid;
  17240. }
  17241. if (this.courseGroup.isopen == 2) {
  17242. this.isGroup = false;
  17243. } else {
  17244. this.isGroup = true;
  17245. }
  17246. this.selectSWorks(gindex);
  17247. } else {
  17248. this.selectSWorks(gindex);
  17249. this.isGroup = false;
  17250. }
  17251. this.getCourseGroupLoading = false
  17252. })
  17253. .catch((err) => {
  17254. this.getCourseGroupLoading = false
  17255. // this.$message.error("网络不佳");
  17256. console.error(err);
  17257. });
  17258. },
  17259. setOperationTime() {
  17260. let _this = this;
  17261. if (_this.opertimer) {
  17262. clearInterval(_this.opertimer);
  17263. _this.opertimer = null;
  17264. }
  17265. _this.opertimer = setInterval(() => {
  17266. _this.setoTime("600");
  17267. }, 600000);
  17268. },
  17269. setoTime(time) {
  17270. this.doSyncClassData();
  17271. let params = [
  17272. {
  17273. uid: this.userid,
  17274. cid: this.id + (this.tcid2 || ''),
  17275. type: "2",
  17276. time: time,
  17277. },
  17278. ];
  17279. this.ajax
  17280. .post(this.$store.state.api + "addOperationTimeT2", params)
  17281. .then((res) => {})
  17282. .catch((err) => {
  17283. console.error(err);
  17284. });
  17285. },
  17286. addPz(type, content) {
  17287. if (type == "1" && this.pzConText == "") {
  17288. this.$message.error(this.lang.ssCommentEmpty);
  17289. return;
  17290. }
  17291. let params = [
  17292. {
  17293. cid: this.id,
  17294. uid: this.userid,
  17295. s: this.courseType,
  17296. t: this.taskCount,
  17297. c: type == "1" ? this.pzConText : content,
  17298. type: type,
  17299. },
  17300. ];
  17301. this.ajax
  17302. .post(this.$store.state.api + "addPz2", params)
  17303. .then((res) => {
  17304. this.$message({
  17305. message: this.lang.ssAddSuccess,
  17306. type: "success",
  17307. });
  17308. this.pzConText = "";
  17309. this.addPzDialog = false;
  17310. this.selectPz();
  17311. if(this.tType!=2){
  17312. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17313. }
  17314. })
  17315. .catch((err) => {
  17316. this.$message.error(this.lang.ssAddFailed);
  17317. console.error(err);
  17318. });
  17319. },
  17320. setReplyIndex(id, i) {
  17321. this.replyIndex = i;
  17322. this.replyPid = id;
  17323. this.replyDialogVisible = true;
  17324. },
  17325. addHf() {
  17326. if (this.reply == "") {
  17327. this.$message.error(this.lang.ssReplyEmpty);
  17328. return;
  17329. }
  17330. let params = [
  17331. {
  17332. cid: this.id,
  17333. uid: this.userid,
  17334. s: this.courseType,
  17335. t: this.taskCount,
  17336. type: "1",
  17337. ct: 2,
  17338. pid: this.replyPid,
  17339. c: this.reply,
  17340. },
  17341. ];
  17342. this.ajax
  17343. .post(this.$store.state.api + "addHf", params)
  17344. .then((res) => {
  17345. this.reply = "";
  17346. this.$message({
  17347. message: this.lang.ssReplySuccess,
  17348. type: "success",
  17349. });
  17350. this.replyDialogVisible = false;
  17351. this.selectPz();
  17352. })
  17353. .catch((err) => {
  17354. this.$message.error(this.lang.ssReplyFailed);
  17355. console.error(err);
  17356. });
  17357. },
  17358. deletePz(id) {
  17359. this.$confirm(this.lang.ssConfirmDeleteComment, this.lang.ssPrompt, {
  17360. confirmButtonText: this.lang.ssConfirm,
  17361. cancelButtonText: this.lang.ssCancel,
  17362. type: "warning",
  17363. })
  17364. .then(() => {
  17365. let params = [
  17366. {
  17367. id: id,
  17368. },
  17369. ];
  17370. this.ajax
  17371. .post(this.$store.state.api + "deletePz", params)
  17372. .then((res) => {
  17373. this.$message({
  17374. message: this.lang.ssDeleteSuccess,
  17375. type: "success",
  17376. });
  17377. this.selectPz();
  17378. })
  17379. .catch((err) => {
  17380. this.$message.error(this.lang.ssNetworkError);
  17381. console.error(err);
  17382. });
  17383. })
  17384. .catch(() => {});
  17385. },
  17386. deleteReply(id) {
  17387. this.$confirm(this.lang.ssConfirmDeleteReply, this.lang.ssPrompt, {
  17388. confirmButtonText: this.lang.ssConfirm,
  17389. cancelButtonText: this.lang.ssCancel,
  17390. type: "warning",
  17391. })
  17392. .then(() => {
  17393. let params = [
  17394. {
  17395. id: id,
  17396. },
  17397. ];
  17398. this.ajax
  17399. .post(this.$store.state.api + "deleteReply", params)
  17400. .then((res) => {
  17401. this.$message({
  17402. message: this.lang.ssDeleteSuccess,
  17403. type: "success",
  17404. });
  17405. this.selectPz();
  17406. })
  17407. .catch((err) => {
  17408. this.$message.error(this.lang.ssNetworkError);
  17409. console.error(err);
  17410. });
  17411. })
  17412. .catch(() => {});
  17413. },
  17414. setPz() {
  17415. if (this.ispzType == 4) {
  17416. this.ispzType = 0;
  17417. this.pzDialog = false;
  17418. return;
  17419. }
  17420. this.ispzType = 4;
  17421. this.pzDialog = true;
  17422. this.selectPz();
  17423. },
  17424. selectPz() {
  17425. if(this.selectPzLoading) return
  17426. this.selectPzLoading = true
  17427. let params = {
  17428. cid: this.id,
  17429. s: this.courseType,
  17430. t: this.taskCount,
  17431. type: this.pzStype,
  17432. uid: this.userid,
  17433. };
  17434. this.ajax
  17435. .get(this.$store.state.api + "selectPzListType", params)
  17436. .then((res) => {
  17437. this.pzList = res.data[0];
  17438. var a = res.data[1];
  17439. for (var i = 0; i < a.length; i++) {
  17440. for (var j = 0; j < this.pzList.length; j++) {
  17441. if (!this.pzList[j].hfList) {
  17442. this.pzList[j].hfList = [];
  17443. }
  17444. if (a[i].pid == this.pzList[j].id) {
  17445. this.pzList[j].hfList.push(a[i]);
  17446. }
  17447. }
  17448. }
  17449. this.selectPzLoading = false
  17450. })
  17451. .catch((err) => {
  17452. this.selectPzLoading = false
  17453. console.error(err);
  17454. });
  17455. },
  17456. // selectHf() {
  17457. // let params = {
  17458. // cid: this.id,
  17459. // s: this.courseType,
  17460. // t: this.taskCount,
  17461. // };
  17462. // this.ajax
  17463. // .get(this.$store.state.api + "selectHfList", params)
  17464. // .then((res) => {
  17465. // var a = res.data[0];
  17466. // for (var i = 0; i < a.length; i++) {
  17467. // for (var j = 0; j < this.pzList.length; j++) {
  17468. // if (!this.pzList[i].hfList) {
  17469. // this.pzList[i].hfList = [];
  17470. // }
  17471. // if (a[i].pid == this.pzList[j].id) {
  17472. // this.pzList[i].hfList.push(a[i]);
  17473. // }
  17474. // }
  17475. // }
  17476. // })
  17477. // .catch((err) => {
  17478. // console.error(err);
  17479. // });
  17480. // },
  17481. updateSLook() {
  17482. let params = {
  17483. sopen: this.sIsOpen == false ? 1 : 2,
  17484. cid: this.id,
  17485. };
  17486. this.ajax
  17487. .get(this.$store.state.api + "updateCourseSLook", params)
  17488. .then((res) => {
  17489. if (this.sIsOpen == true) {
  17490. this.$message({
  17491. message: this.lang.ssPermSetSuccess,
  17492. type: "success",
  17493. });
  17494. } else {
  17495. this.$message({
  17496. message: this.lang.ssPermClosedOk,
  17497. type: "success",
  17498. });
  17499. }
  17500. })
  17501. .catch((err) => {
  17502. console.error(err);
  17503. });
  17504. },
  17505. updateIsStulook(){
  17506. let params = [
  17507. {
  17508. sopen: this.IsStulook == false ? 2 : 1,
  17509. cid: this.id
  17510. }
  17511. ];
  17512. this.ajax
  17513. .post(this.$store.state.api + "updateCourseStulook", params)
  17514. .then(res => {
  17515. if (this.IsStulook == true) {
  17516. this.$message({
  17517. message: this.lang.ssStuViewPermOn,
  17518. type: "success"
  17519. });
  17520. } else {
  17521. this.$message({
  17522. message: this.lang.ssStuViewPermOff,
  17523. type: "success"
  17524. });
  17525. }
  17526. // this.setCTask();
  17527. })
  17528. .catch(err => {
  17529. console.error(err);
  17530. });
  17531. },
  17532. updateFollow() {
  17533. let params = [
  17534. {
  17535. sopen: this.IsFollow == false ? 1 : 2,
  17536. cid: this.id,
  17537. },
  17538. ];
  17539. this.ajax
  17540. .post(this.$store.state.api + "updateCourseFollow", params)
  17541. .then((res) => {
  17542. if (this.IsFollow == true) {
  17543. this.$message({
  17544. message: this.lang.ssFollowModeOn2,
  17545. type: "success",
  17546. });
  17547. } else {
  17548. this.$message({
  17549. message: this.lang.ssFollowModeOff,
  17550. type: "success",
  17551. });
  17552. }
  17553. this.setCTask();
  17554. })
  17555. .catch((err) => {
  17556. console.error(err);
  17557. });
  17558. },
  17559. setCTask() {
  17560. let params = [
  17561. {
  17562. sopen: this.courseType + "-" + this.taskCount,
  17563. cid: this.id,
  17564. },
  17565. ];
  17566. this.ajax
  17567. .post(this.$store.state.api + "updateCourseFollowC", params)
  17568. .then((res) => {})
  17569. .catch((err) => {
  17570. console.error(err);
  17571. });
  17572. },
  17573. updateLookOpen() {
  17574. let params = [
  17575. {
  17576. sopen: this.IsLookOpen == false ? 1 : 2,
  17577. cid: this.id,
  17578. },
  17579. ];
  17580. this.ajax
  17581. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17582. .then((res) => {
  17583. if (this.IsLookOpen == true) {
  17584. // if (this.courseType != 0 && this.taskCount != 0) {
  17585. // this.openTask(0, 0, "0-0");
  17586. // }
  17587. this.$message({
  17588. message: this.lang.ssPermSetSuccess,
  17589. type: "success",
  17590. });
  17591. } else {
  17592. this.$message({
  17593. message: this.lang.ssPermClosedOk,
  17594. type: "success",
  17595. });
  17596. }
  17597. this.getCourseState(2);
  17598. })
  17599. .catch((err) => {
  17600. console.error(err);
  17601. });
  17602. },
  17603. selectSLook() {
  17604. if(this.selectSLookLoading) return
  17605. this.selectSLookLoading = true
  17606. let params = {
  17607. cid: this.id,
  17608. };
  17609. this.ajax
  17610. .get(this.$store.state.api + "selectCourseSLook", params)
  17611. .then((res) => {
  17612. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17613. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17614. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17615. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  17616. if (!this.IsLookOpen) {
  17617. this.setNavList();
  17618. }else {
  17619. this.getCourseState(1);
  17620. }
  17621. if ((this.IsFollow && this.tType == 2)) {
  17622. this.setContent2(false);
  17623. let _followC = res.data[0][0].followC.split("-");
  17624. if (
  17625. this.courseType != _followC[0] ||
  17626. this.taskCount != _followC[1]
  17627. ) {
  17628. this.navList[this.courseType].isOpen = false;
  17629. this.courseType = _followC[0];
  17630. this.navList[this.courseType].isOpen = true;
  17631. this.taskCount = parseInt(_followC[1]);
  17632. this.navId = res.data[0][0].followC;
  17633. document.scrollingElement.scrollTop = 0;
  17634. this.getCourseDetail(2);
  17635. }
  17636. }
  17637. this.selectSLookLoading = false
  17638. })
  17639. .catch((err) => {
  17640. this.selectSLookLoading = false
  17641. console.error(err);
  17642. });
  17643. },
  17644. setNavList() {
  17645. if (this.navList.length == 0) {
  17646. this.navList = [];
  17647. var copyList = [];
  17648. for (var l = 0; l < this.chapInfoList.length; l++) {
  17649. var q = this.chapInfoList[l].dyName;
  17650. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17651. var e;
  17652. copyList.push({
  17653. dyName: q,
  17654. isOpen: l === 0 ? true : false,
  17655. task: [],
  17656. });
  17657. for (var r = 0; r < w.length; r++) {
  17658. e = w[r].task;
  17659. if (this.chapInfoList[l].easy == 1) {
  17660. copyList[l].task.push({
  17661. taskName: q,
  17662. id: l + "-" + r,
  17663. isLook: w[r].isLook,
  17664. isOpen: r === 0 ? true : false,
  17665. tool: [],
  17666. });
  17667. } else {
  17668. copyList[l].task.push({
  17669. taskName: e,
  17670. id: l + "-" + r,
  17671. isLook: w[r].isLook,
  17672. isOpen: r === 0 ? true : false,
  17673. tool: [],
  17674. });
  17675. }
  17676. var t = w[r].toolChoose;
  17677. for (var k = 0; k < t.length; k++) {
  17678. var tool = t[k].tool[0];
  17679. copyList[l].task[r].tool.push({
  17680. tool: tool,
  17681. isTool: false,
  17682. });
  17683. }
  17684. // this.navId = this.navId ? this.navId : l + "-" + r;
  17685. // this.navId = l + "-" + r;
  17686. }
  17687. }
  17688. this.navList = copyList;
  17689. this.navList[0].isOpen = false;
  17690. this.navList[this.courseType].isOpen = true;
  17691. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17692. } else {
  17693. this.setNavList2();
  17694. }
  17695. },
  17696. setNavList2() {
  17697. for (var l = 0; l < this.chapInfoList.length; l++) {
  17698. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17699. for (var r = 0; r < w.length; r++) {
  17700. this.navList[l].task[r].isLook = w[r].isLook;
  17701. }
  17702. }
  17703. if (
  17704. this.IsLookOpen &&
  17705. !this.navList[this.courseType].task[this.taskCount].isLook
  17706. ) {
  17707. this.openTask(0, 0, "0-0");
  17708. }
  17709. this.$forceUpdate();
  17710. },
  17711. getCourseState(type) {
  17712. let params = {
  17713. cid: this.id,
  17714. };
  17715. this.ajax
  17716. .get(this.$store.state.api + "getCourseState", params)
  17717. .then((res) => {
  17718. // if (res.data[0].length > 0) {
  17719. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  17720. // }
  17721. if (res.data[0].length > 0 && type == 1) {
  17722. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17723. this.setNavList();
  17724. this.$forceUpdate();
  17725. } else if (res.data[0].length > 0 && type == 2) {
  17726. this.addCourseState(2);
  17727. } else {
  17728. // this.addCourseState(1);
  17729. }
  17730. })
  17731. .catch((err) => {
  17732. console.error(err);
  17733. });
  17734. },
  17735. addCourseState(type,val = '') {
  17736. let _state = val ? val : this.chapInfoList;
  17737. // this.courseType this.taskCount
  17738. if (type == 1 || type == 2) {
  17739. for (var i = 0; i < _state.length; i++) {
  17740. let el = _state[i].chapterInfo[0].taskJson;
  17741. for (var j = 0; j < el.length; j++) {
  17742. // if (i == 0 && j == 0) {
  17743. // el[j].isLook = true;
  17744. // } else {
  17745. // el[j].isLook = false;
  17746. // }
  17747. if (
  17748. this.courseType > i ||
  17749. (this.courseType == i && this.taskCount + 1 > j)
  17750. ) {
  17751. el[j].isLook = true;
  17752. } else {
  17753. el[j].isLook = false;
  17754. }
  17755. }
  17756. }
  17757. }
  17758. let params = [
  17759. {
  17760. cid: this.id,
  17761. state: JSON.stringify(_state),
  17762. },
  17763. ];
  17764. this.ajax
  17765. .post(
  17766. this.$store.state.api +
  17767. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17768. params
  17769. )
  17770. .then((res) => {
  17771. if (this.IsLookOpen) {
  17772. this.setNavList();
  17773. }
  17774. if (type == 3 && type == 2) {
  17775. this.getCourseState(1);
  17776. }
  17777. })
  17778. .catch((err) => {
  17779. console.error(err);
  17780. });
  17781. },
  17782. getHomeWork() {
  17783. let params = {
  17784. cid: this.id,
  17785. stage: this.courseType,
  17786. task: this.taskCount,
  17787. uid: this.userid,
  17788. };
  17789. this.ajax
  17790. .get(this.$store.state.api + "selectWork", params)
  17791. .then((res) => {
  17792. if (res.data[0].length > 0) {
  17793. this.studyJuri = JSON.parse(res.data[0][0].content);
  17794. this.isNoHomeWork = true;
  17795. }
  17796. })
  17797. .catch((err) => {
  17798. console.error(err);
  17799. });
  17800. },
  17801. isAssetTypeAnImage(ext) {
  17802. return (
  17803. [
  17804. "png",
  17805. "jpg",
  17806. "jpeg",
  17807. "bmp",
  17808. "gif",
  17809. "webp",
  17810. "psd",
  17811. "svg",
  17812. "tiff",
  17813. ].indexOf(ext) !== -1
  17814. );
  17815. },
  17816. switchVideo(media) {
  17817. this.playerO = {};
  17818. this.playerOptions.poster = "";
  17819. this.playerOptions.sources[0].src = media;
  17820. this.playerO = this.playerOptions;
  17821. },
  17822. onPlayerPlay() {},
  17823. onPlayerTimeupdate(player) {
  17824. let gklog = player.cache_.currentTime; //当前播放的秒数
  17825. let a = player.cache_.duration; //视频的总时长
  17826. let gklog2 = parseInt(gklog);
  17827. // if(gklog2 == '3'){
  17828. // player.pause()
  17829. // setTimeout(()=>{
  17830. // player.currentTime(gklog2+1)
  17831. // player.play()
  17832. // },1000)
  17833. // }
  17834. console.log(" onPlayerTimeupdate!", gklog);
  17835. console.log(" onPlayerTimeupdate!", gklog2);
  17836. },
  17837. lookVedio(u, i) {
  17838. this.isClickNav = "";
  17839. // this.playerOptions.sources[0].src = u;
  17840. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17841. d.sources[0].src = u;
  17842. this.playerO[0] = d;
  17843. this.showType = 0;
  17844. // this.isClickNav = "video" + i;
  17845. this.isClickNav = i;
  17846. this.$forceUpdate();
  17847. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17848. },
  17849. lookText(i, t) {
  17850. this.isClickNav = "";
  17851. // this.text = this.textList[i][t];
  17852. this.text = this.vChapterData[i][t];
  17853. // this.dialogVisible1 = true;
  17854. this.showType = 1;
  17855. // this.isClickNav = "text" + t;
  17856. this.isClickNav = t;
  17857. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17858. },
  17859. lookTools(i, t) {
  17860. this.chapTools = this.chapToolList[i][t];
  17861. this.dialogVisible2 = true;
  17862. },
  17863. async openFile(f) {
  17864. this.pptImgUrl = "";
  17865. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17866. if (
  17867. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17868. -1
  17869. ) {
  17870. let _uuurl = await this.checkLink(f);
  17871. console.log(_uuurl)
  17872. this.pptImgUrl =
  17873. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17874. this.showPDF = false;
  17875. this.dialogVisible3 = true;
  17876. } else if (
  17877. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17878. ) {
  17879. this.pptImgUrl = f;
  17880. this.showPDF = true;
  17881. this.dialogVisible3 = true;
  17882. }
  17883. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17884. },
  17885. openTable(f) {
  17886. this.tableJson = JSON.parse(f.works);
  17887. this.dialogVisibleTable2 = true;
  17888. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17889. },
  17890. openWord(f) {
  17891. this.tableJson = JSON.parse(f.works);
  17892. this.dialogVisibleTable3 = true;
  17893. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17894. },
  17895. doUrl(url, i) {
  17896. this.isClickNav = "";
  17897. this.pptImgUrl1 = "";
  17898. this.showType = 2;
  17899. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17900. url = "https://" + url;
  17901. }
  17902. this.pptImgUrl1 = "";
  17903. this.diffKey = new Date().getTime();
  17904. setTimeout(() => {
  17905. this.pptImgUrl1 = url;
  17906. }, 500);
  17907. // this.isClickNav = "line" + i;
  17908. this.isClickNav = i;
  17909. this.$forceUpdate();
  17910. },
  17911. checkPhoto(f, i) {
  17912. this.showType = 4;
  17913. this.pptImgUrl1 = f.url;
  17914. this.isClickNav = i;
  17915. this.$forceUpdate();
  17916. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17917. },
  17918. checkHtml(f, i){
  17919. this.showType = 16;
  17920. this.pptImgUrl1 = f.url;
  17921. this.isClickNav = i;
  17922. this.$forceUpdate();
  17923. },
  17924. async downFile(f, i) {
  17925. this.isClickNav = "";
  17926. this.pptImgUrl1 = "";
  17927. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17928. if (
  17929. a.indexOf(
  17930. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17931. ) != -1
  17932. ) {
  17933. let _uuurl = await this.checkLink(f.url);
  17934. console.log(_uuurl)
  17935. this.pptImgUrl1 =
  17936. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17937. // this.dialogVisible3 = true;
  17938. this.showType = 2;
  17939. } else if (
  17940. this.isAssetTypeAnImage(
  17941. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17942. )
  17943. ) {
  17944. this.showType = 4;
  17945. this.pptImgUrl1 = f.url;
  17946. } else if (
  17947. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17948. "PDF"
  17949. ) {
  17950. this.pptImgUrl1 = f.url;
  17951. // this.dialogVisible3 = true;
  17952. this.showType = 3;
  17953. } else {
  17954. window.open(this.file[i].url);
  17955. }
  17956. // this.isClickNav = "word" + i;
  17957. this.isClickNav = i;
  17958. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17959. },
  17960. downFileList(i) {
  17961. window.open(this.noImgList[i].url);
  17962. },
  17963. openAddWork() {
  17964. this.dialogVisible = true;
  17965. },
  17966. addBzWorks() {
  17967. let params = [
  17968. {
  17969. uid: this.userid,
  17970. cid: this.id,
  17971. stage: this.courseType,
  17972. task: this.taskCount,
  17973. tool: this.toolindex,
  17974. content: JSON.stringify(this.eScore),
  17975. type: 6,
  17976. },
  17977. ];
  17978. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17979. this.homeWorkLoading = true
  17980. this.ajax
  17981. .post(this.$store.state.api + "addCourseWorks", params)
  17982. .then((res) => {
  17983. this.$message({
  17984. message: this.lang.ssSubmitSuccess,
  17985. type: "success",
  17986. });
  17987. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  17988. setTimeout(() => {
  17989. this.homeWorkLoading = false
  17990. }, 500);
  17991. this.eScore = { eBzText: "", eStar: [] };
  17992. this.studentEvalDialogVisible = false;
  17993. this.selectSWorks();
  17994. })
  17995. .catch((err) => {
  17996. this.$message.error(this.lang.ssSubmitFailed);
  17997. console.error(err);
  17998. setTimeout(() => {
  17999. this.homeWorkLoading = false
  18000. }, 500);
  18001. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18002. });
  18003. },
  18004. addBzWorksTeacher() {
  18005. let params = [
  18006. {
  18007. uid: this.sStudent.userid,
  18008. cid: this.id,
  18009. stage: this.courseType,
  18010. task: this.taskCount,
  18011. tool: this.toolindex,
  18012. content: JSON.stringify(this.eScore),
  18013. type: 6,
  18014. },
  18015. ];
  18016. this.ajax
  18017. .post(this.$store.state.api + "addCourseWorks", params)
  18018. .then((res) => {
  18019. this.$message({
  18020. message: this.lang.ssSubmitSuccess,
  18021. type: "success",
  18022. });
  18023. this.eScore = { eBzText: "", eStar: [] };
  18024. this.studentEvalDialogVisibleTeacher = false;
  18025. this.selectSWorks();
  18026. })
  18027. .catch((err) => {
  18028. this.$message.error(this.lang.ssSubmitFailed);
  18029. console.error(err);
  18030. });
  18031. },
  18032. addStudentAsk() {
  18033. if (!this.radio.length) {
  18034. this.$message.error(this.lang.ssPleaseSelectOption);
  18035. return;
  18036. }
  18037. for (var i = 0; i < this.askJson.askCount; i++) {
  18038. if (
  18039. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18040. (this.radio[i] !== 0 && !this.radio[i])
  18041. ) {
  18042. this.$message.error(this.lang.ssPleaseSelectOption);
  18043. return;
  18044. }
  18045. }
  18046. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18047. let params = [
  18048. {
  18049. uid: this.userid,
  18050. cid: this.id,
  18051. stage: this.courseType,
  18052. task: this.taskCount,
  18053. tool: this.toolindex,
  18054. content: JSON.stringify(this.askList),
  18055. type: 2,
  18056. },
  18057. ];
  18058. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  18059. this.homeWorkLoading = true
  18060. this.ajax
  18061. .post(this.$store.state.api + "addCourseWorks", params)
  18062. .then((res) => {
  18063. this.$message({
  18064. message: this.lang.ssSubmitSuccess,
  18065. type: "success",
  18066. });
  18067. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18068. setTimeout(() => {
  18069. this.homeWorkLoading = false
  18070. }, 500);
  18071. this.askList = [];
  18072. this.dialogVisible5 = false;
  18073. this.selectStudent();
  18074. this.selectSWorks();
  18075. this.selectSLook();
  18076. })
  18077. .catch((err) => {
  18078. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18079. setTimeout(() => {
  18080. this.homeWorkLoading = false
  18081. }, 500);
  18082. this.$message.error(this.lang.ssSubmitFailed);
  18083. console.error(err);
  18084. });
  18085. },
  18086. addStudentAskTeacher() {
  18087. if (!this.radio.length) {
  18088. this.$message.error(this.lang.ssPleaseSelectOption);
  18089. return;
  18090. }
  18091. for (var i = 0; i < this.askJson.askCount; i++) {
  18092. if (
  18093. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18094. (this.radio[i] !== 0 && !this.radio[i])
  18095. ) {
  18096. this.$message.error(this.lang.ssPleaseSelectOption);
  18097. return;
  18098. }
  18099. }
  18100. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18101. let params = [
  18102. {
  18103. uid: this.sStudent.userid,
  18104. cid: this.id,
  18105. stage: this.courseType,
  18106. task: this.taskCount,
  18107. tool: this.toolindex,
  18108. content: JSON.stringify(this.askList),
  18109. type: 2,
  18110. },
  18111. ];
  18112. this.ajax
  18113. .post(this.$store.state.api + "addCourseWorks", params)
  18114. .then((res) => {
  18115. this.$message({
  18116. message: this.lang.ssSubmitSuccess,
  18117. type: "success",
  18118. });
  18119. this.askList = [];
  18120. this.dialogVisible5Teacher = false;
  18121. this.selectStudent();
  18122. this.selectSWorks();
  18123. this.selectSLook();
  18124. })
  18125. .catch((err) => {
  18126. this.$message.error(this.lang.ssSubmitFailed);
  18127. console.error(err);
  18128. });
  18129. },
  18130. addStudentTest() {
  18131. if (!this.radio.length) {
  18132. this.$message.error(this.lang.ssPleaseSelectOption);
  18133. return;
  18134. }
  18135. for (var i = 0; i < this.testJson.testCount; i++) {
  18136. if (
  18137. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18138. (this.radio[i] !== 0 && !this.radio[i])
  18139. ) {
  18140. this.$message.error(this.lang.ssPleaseSelectOption);
  18141. return;
  18142. }
  18143. }
  18144. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18145. let params = [
  18146. {
  18147. uid: this.userid,
  18148. cid: this.id,
  18149. stage: this.courseType,
  18150. task: this.taskCount,
  18151. tool: this.toolindex,
  18152. content: JSON.stringify(this.askList),
  18153. type: 8,
  18154. },
  18155. ];
  18156. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  18157. this.homeWorkLoading = true
  18158. this.ajax
  18159. .post(this.$store.state.api + "addCourseWorks", params)
  18160. .then((res) => {
  18161. this.$message({
  18162. message: this.lang.ssSubmitSuccess,
  18163. type: "success",
  18164. });
  18165. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18166. setTimeout(() => {
  18167. this.homeWorkLoading = false
  18168. }, 500);
  18169. this.askList = [];
  18170. this.dialogVisibleChoice = false;
  18171. this.selectStudent();
  18172. this.selectSWorks();
  18173. this.selectSLook();
  18174. })
  18175. .catch((err) => {
  18176. this.$message.error(this.lang.ssSubmitFailed);
  18177. console.error(err);
  18178. setTimeout(() => {
  18179. this.homeWorkLoading = false
  18180. }, 500);
  18181. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18182. });
  18183. },
  18184. addStudentTestTeacher() {
  18185. if (!this.radio.length) {
  18186. this.$message.error(this.lang.ssPleaseSelectOption);
  18187. return;
  18188. }
  18189. for (var i = 0; i < this.testJson.testCount; i++) {
  18190. if (
  18191. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18192. (this.radio[i] !== 0 && !this.radio[i])
  18193. ) {
  18194. this.$message.error(this.lang.ssPleaseSelectOption);
  18195. return;
  18196. }
  18197. }
  18198. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18199. let params = [
  18200. {
  18201. uid: this.sStudent.userid,
  18202. cid: this.id,
  18203. stage: this.courseType,
  18204. task: this.taskCount,
  18205. tool: this.toolindex,
  18206. content: JSON.stringify(this.askList),
  18207. type: 8,
  18208. },
  18209. ];
  18210. this.ajax
  18211. .post(this.$store.state.api + "addCourseWorks", params)
  18212. .then((res) => {
  18213. this.$message({
  18214. message: this.lang.ssSubmitSuccess,
  18215. type: "success",
  18216. });
  18217. this.askList = [];
  18218. this.dialogVisibleChoiceTeacher = false;
  18219. this.selectStudent();
  18220. this.selectSWorks();
  18221. this.selectSLook();
  18222. })
  18223. .catch((err) => {
  18224. this.$message.error(this.lang.ssSubmitFailed);
  18225. console.error(err);
  18226. });
  18227. },
  18228. addWork() {
  18229. if (this.studyJuri[0].content == "") {
  18230. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18231. return;
  18232. } else if (this.studyJuri[0].cover.length == 0) {
  18233. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18234. return;
  18235. } else if (this.studyJuri[0].upVedio.length == 0) {
  18236. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18237. return;
  18238. }
  18239. if (this.isNoHomeWork) {
  18240. this.$confirm(
  18241. this.lang.ssAlreadySubmittedHomework,
  18242. this.lang.ssPrompt,
  18243. {
  18244. confirmButtonText: this.lang.ssConfirm,
  18245. cancelButtonText: this.lang.ssCancel,
  18246. type: "warning",
  18247. }
  18248. )
  18249. .then(() => {
  18250. let params = [
  18251. {
  18252. uid: this.userid,
  18253. cid: this.id,
  18254. stage: this.courseType,
  18255. task: this.taskCount,
  18256. content: JSON.stringify(this.studyJuri),
  18257. },
  18258. ];
  18259. this.ajax
  18260. .post(this.$store.state.api + "addWorks", params)
  18261. .then((res) => {
  18262. this.$message({
  18263. message: this.lang.ssSubmitSuccess,
  18264. type: "success",
  18265. });
  18266. this.isNoHomeWork = true;
  18267. this.dialogVisible = false;
  18268. })
  18269. .catch((err) => {
  18270. this.$message.error(this.lang.ssSubmitFailed);
  18271. console.error(err);
  18272. });
  18273. })
  18274. .catch(() => {});
  18275. } else {
  18276. let params = [
  18277. {
  18278. uid: this.userid,
  18279. cid: this.id,
  18280. stage: this.courseType,
  18281. task: this.taskCount,
  18282. content: JSON.stringify(this.studyJuri),
  18283. },
  18284. ];
  18285. this.ajax
  18286. .post(this.$store.state.api + "addWorks", params)
  18287. .then((res) => {
  18288. this.$message({
  18289. message: this.lang.ssSubmitSuccess,
  18290. type: "success",
  18291. });
  18292. this.isNoHomeWork = true;
  18293. this.dialogVisible = false;
  18294. })
  18295. .catch((err) => {
  18296. this.$message.error(this.lang.ssSubmitFailed);
  18297. console.error(err);
  18298. });
  18299. }
  18300. },
  18301. selectCount() {
  18302. let params = {
  18303. cid: this.id,
  18304. chid: this.courseType,
  18305. uid: this.userid,
  18306. };
  18307. this.ajax
  18308. .get(this.$store.state.api + "selectToolsCount", params)
  18309. .then((res) => {
  18310. for (var i = 0; i < res.data[0].length; i++) {
  18311. if (res.data[0][i].tools == 1) {
  18312. this.wbCount = res.data[0][i].count;
  18313. } else if (res.data[0][i].tools == 2) {
  18314. this.wordCount = res.data[0][i].count;
  18315. } else if (res.data[0][i].tools == 3) {
  18316. this.mindCount = res.data[0][i].count;
  18317. } else if (res.data[0][i].tools == 4) {
  18318. this.askCount = res.data[0][i].count;
  18319. } else if (res.data[0][i].tools == 6) {
  18320. this.noteCount = res.data[0][i].count;
  18321. } else if (res.data[0][i].tools == 7) {
  18322. this.mindNetWorkCount = res.data[0][i].count;
  18323. } else if (res.data[0][i].tools == 8) {
  18324. this.libraryCount = res.data[0][i].count;
  18325. } else if (res.data[0][i].tools == 16) {
  18326. this.workCount = res.data[0][i].count;
  18327. } else if (res.data[0][i].tools == 10) {
  18328. this.timeCount = res.data[0][i].count;
  18329. } else if (res.data[0][i].tools == 15) {
  18330. this.answerCount = res.data[0][i].count;
  18331. } else if (res.data[0][i].tools == 18) {
  18332. this.trainCount = res.data[0][i].count;
  18333. }
  18334. }
  18335. })
  18336. .catch((err) => {
  18337. console.error(err);
  18338. });
  18339. },
  18340. openTools(t, i, index, c, sName,id) {
  18341. var z = JSON.parse(c);
  18342. this.noteName = sName;
  18343. if (t == 4) {
  18344. this.radio = [];
  18345. this.isAnswer = false;
  18346. let b = z[0].anwer;
  18347. this.radio = b;
  18348. this.askJson = z[0].askJson;
  18349. this.isAnswer = true;
  18350. this.dialogVisible5 = true;
  18351. } else if (t == 45) {
  18352. this.radio = [];
  18353. this.isAnswer = false;
  18354. let b = z[0].anwer;
  18355. this.radio = b;
  18356. this.testJson = z[0].testJson;
  18357. this.isAnswer = true;
  18358. this.dialogVisibleChoice = true;
  18359. }else if(t == 69){
  18360. this.oldEnglishJson1 = {}
  18361. this.oldEnglishJson = {}
  18362. this.englishList1 = {}
  18363. this.newEngIndex = -1;
  18364. this.isNoUserid = false;
  18365. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18366. .toolChoose[i].englishList;
  18367. this.oldEnglishJson = z;
  18368. this.engWid = id;
  18369. this.newEnglishList = { engTitle:"",engText:"" }
  18370. this.newEnglishList1 = []
  18371. this.selectEngC(id,z);
  18372. }else if(t == 62){
  18373. this.videoType = 1;
  18374. this.videoJson = {};
  18375. this.videoJson = JSON.parse(c);
  18376. // this.videoJson =
  18377. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18378. // index
  18379. // ].toolChoose[i].videoJson;
  18380. this.dialogVisibleVideo = true;
  18381. }
  18382. // else if (t == 15) {
  18383. // this.answerQ = "";
  18384. // this.questionAnswer = "";
  18385. // this.answerQ = z[0].answerTitle;
  18386. // this.questionAnswer = z[0].answer;
  18387. // this.answerDialogVisible = true;
  18388. // }
  18389. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18390. },
  18391. fastText(p, t) {
  18392. if (t == 1) {
  18393. this.commentText += p;
  18394. } else {
  18395. this.eScore.eBzText += p;
  18396. }
  18397. },
  18398. addTools(t, i, index) {
  18399. var a = 0;
  18400. // this.taskCount = index;
  18401. this.toolindex = i;
  18402. if (t == 1) {
  18403. if (this.wbCount > 0) {
  18404. this.updateCount(this.wbCount, t);
  18405. } else {
  18406. this.wbCount++;
  18407. a = this.wbCount;
  18408. this.toolsCount(a, t);
  18409. }
  18410. window.topU.postMessage(
  18411. {
  18412. tools: "1",
  18413. cid: this.id,
  18414. stage: this.courseType,
  18415. task: this.taskCount,
  18416. tool: i,
  18417. },
  18418. "*"
  18419. );
  18420. } else if (t == 2) {
  18421. if (this.wordCount > 0) {
  18422. this.updateCount(this.wordCount, t);
  18423. } else {
  18424. this.wordCount++;
  18425. a = this.wordCount;
  18426. this.toolsCount(a, t);
  18427. }
  18428. window.topU.postMessage({ tools: "2" }, "*");
  18429. } else if (t == 3) {
  18430. if (this.mindCount > 0) {
  18431. this.updateCount(this.mindCount, t);
  18432. } else {
  18433. this.mindCount++;
  18434. a = this.mindCount;
  18435. this.toolsCount(a, t);
  18436. }
  18437. window.topU.postMessage(
  18438. {
  18439. tools: "3",
  18440. cid: this.id,
  18441. stage: this.courseType,
  18442. task: this.taskCount,
  18443. tool: i,
  18444. },
  18445. "*"
  18446. );
  18447. } else if (t == 4) {
  18448. this.radio = [];
  18449. this.noteName = "";
  18450. this.isAnswer = false;
  18451. if (this.askCount > 0) {
  18452. this.updateCount(this.askCount, t);
  18453. } else {
  18454. this.askCount++;
  18455. a = this.askCount;
  18456. this.toolsCount(a, t);
  18457. }
  18458. if (!this.dialogVisible2) {
  18459. this.askJson.askJson =
  18460. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18461. index
  18462. ].toolChoose[i].askJson;
  18463. this.askJson.askTitle =
  18464. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18465. index
  18466. ].toolChoose[i].askTitle;
  18467. this.askJson.askCount =
  18468. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18469. index
  18470. ].toolChoose[i].askCount;
  18471. } else {
  18472. this.askJson.askJson = this.chapTools.askJson.askJson;
  18473. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18474. this.askJson.askCount = this.chapTools.askJson.askCount;
  18475. }
  18476. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18477. if (this.askJson.askJson[k].type == "2") {
  18478. this.radio.push([]);
  18479. } else {
  18480. this.radio.push("");
  18481. }
  18482. }
  18483. this.dialogVisible5 = true;
  18484. // window.topU.postMessage({ tools: "4" }, "*");
  18485. } else if (t == 45) {
  18486. this.noteName = "";
  18487. this.radio = [];
  18488. this.isAnswer = false;
  18489. if (this.askCount > 0) {
  18490. this.updateCount(this.askCount, t);
  18491. } else {
  18492. this.askCount++;
  18493. a = this.askCount;
  18494. this.toolsCount(a, t);
  18495. }
  18496. this.testJson =
  18497. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18498. index
  18499. ].toolChoose[i].testJson;
  18500. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18501. if (this.testJson.testJson[k].type == "2") {
  18502. this.radio.push([]);
  18503. } else {
  18504. this.radio.push("");
  18505. }
  18506. }
  18507. this.dialogVisibleChoice = true;
  18508. // window.topU.postMessage({ tools: "4" }, "*");
  18509. } else if (t == 5) {
  18510. if (this.scoreCount > 0) {
  18511. this.updateCount(this.scoreCount, t);
  18512. } else {
  18513. this.scoreCount++;
  18514. a = this.scoreCount;
  18515. this.toolsCount(a, t);
  18516. }
  18517. this.dialogVisible4 = true;
  18518. // window.topU.postMessage({ tools: "5" }, "*");
  18519. } else if (t == 6) {
  18520. if (this.noteCount > 0) {
  18521. this.updateCount(this.noteCount, t);
  18522. } else {
  18523. this.noteCount++;
  18524. a = this.noteCount;
  18525. this.toolsCount(a, t);
  18526. }
  18527. window.topU.postMessage(
  18528. {
  18529. tools: "6",
  18530. cid: this.id,
  18531. stage: this.courseType,
  18532. task: this.taskCount,
  18533. tool: i,
  18534. },
  18535. "*"
  18536. );
  18537. } else if (t == 7) {
  18538. if (this.mindNetWorkCount > 0) {
  18539. this.updateCount(this.mindNetWorkCount, t);
  18540. } else {
  18541. this.mindNetWorkCount++;
  18542. a = this.mindNetWorkCount;
  18543. this.toolsCount(a, t);
  18544. }
  18545. window.topU.postMessage(
  18546. {
  18547. tools: "7",
  18548. cid: this.id,
  18549. stage: this.courseType,
  18550. task: this.taskCount,
  18551. tool: i,
  18552. },
  18553. "*"
  18554. );
  18555. } else if (t == 16) {
  18556. if (this.workCount > 0) {
  18557. this.updateCount(this.workCount, t);
  18558. } else {
  18559. this.workCount++;
  18560. a = this.workCount;
  18561. this.toolsCount(a, t);
  18562. }
  18563. this.dialogVisible = true;
  18564. } else if (t == 50) {
  18565. if (this.tType == 2) {
  18566. this.$message.error(this.lang.ssNotSupportedForStudents);
  18567. return;
  18568. }
  18569. this.plworkFile = [];
  18570. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18571. if (!this.uploadCid) {
  18572. this.$message.error(this.lang.ssBatchUploadNoClassPermission);
  18573. return;
  18574. }
  18575. // this.uploadCid =
  18576. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18577. // index
  18578. // ].toolChoose[i].uploadJson[0];
  18579. this.selectUploadStudent(2);
  18580. } else if (t == 8) {
  18581. if (this.libraryCount > 0) {
  18582. this.updateCount(this.libraryCount, t);
  18583. } else {
  18584. this.libraryCount++;
  18585. a = this.libraryCount;
  18586. this.toolsCount(a, t);
  18587. }
  18588. window.topU.postMessage({ tools: "8" }, "*");
  18589. } else if (t == 17) {
  18590. if (this.libraryCount > 0) {
  18591. this.updateCount(this.libraryCount, t);
  18592. } else {
  18593. this.libraryCount++;
  18594. a = this.libraryCount;
  18595. this.toolsCount(a, t);
  18596. }
  18597. window.topU.postMessage({ tools: "17" }, "*");
  18598. } else if (t == 18) {
  18599. if (this.trainCount > 0) {
  18600. this.updateCount(this.trainCount, t);
  18601. } else {
  18602. this.trainCount++;
  18603. a = this.trainCount;
  18604. this.toolsCount(a, t);
  18605. }
  18606. window.topU.postMessage({ tools: "18" }, "*");
  18607. } else if (t == 10) {
  18608. if (this.timeCount > 0) {
  18609. this.updateCount(this.timeCount, t);
  18610. } else {
  18611. this.timeCount++;
  18612. a = this.timeCount;
  18613. this.toolsCount(a, t);
  18614. }
  18615. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18616. .taskJson[index].toolChoose[i].preTime
  18617. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18618. .toolChoose[i].preTime
  18619. : "";
  18620. this.timeDialogVisible = true;
  18621. } else if (t == 15) {
  18622. this.answerQ = "";
  18623. this.questionAnswer = "";
  18624. if (this.answerCount > 0) {
  18625. this.updateCount(this.answerCount, t);
  18626. } else {
  18627. this.answerCount++;
  18628. a = this.answerCount;
  18629. this.toolsCount(a, t);
  18630. }
  18631. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18632. .taskJson[index].toolChoose[i].answerQ
  18633. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18634. .toolChoose[i].answerQ
  18635. : "";
  18636. this.answerDialogVisible = true;
  18637. } else if (t == 21) {
  18638. window.topU.postMessage({ tools: "21" }, "*");
  18639. } else if (t == 22) {
  18640. window.topU.postMessage({ tools: "22" }, "*");
  18641. } else if (t == 23) {
  18642. window.topU.postMessage({ tools: "23" }, "*");
  18643. } else if (t == 24) {
  18644. window.topU.postMessage({ tools: "24" }, "*");
  18645. } else if (t == 25) {
  18646. window.topU.postMessage({ tools: "25" }, "*");
  18647. } else if (t == 31) {
  18648. window.topU.postMessage({ tools: "31" }, "*");
  18649. } else if (t == 28) {
  18650. window.topU.postMessage({ tools: "28" }, "*");
  18651. } else if (t == 37) {
  18652. window.topU.postMessage({ tools: "37" }, "*");
  18653. } else if (t == 38) {
  18654. window.topU.postMessage({ tools: "38" }, "*");
  18655. } else if (t == 39) {
  18656. window.topU.postMessage({ tools: "39" }, "*");
  18657. } else if (t == 32) {
  18658. window.topU.postMessage({ tools: "32" }, "*");
  18659. } else if (t == 66) {
  18660. window.topU.postMessage({ tools: "66" }, "*");
  18661. } else if (t == 67) {
  18662. window.topU.postMessage({ tools: "67" }, "*");
  18663. } else if (t == 68) {
  18664. window.topU.postMessage({ tools: "68" }, "*");
  18665. } else if (t == 57) {
  18666. // window.topU.postMessage({ tools: "57" }, "*");
  18667. window.topU.postMessage(
  18668. {
  18669. tools: "57u",
  18670. cid: this.id,
  18671. stage: this.courseType,
  18672. task: this.taskCount,
  18673. tool: i,
  18674. },
  18675. "*"
  18676. );
  18677. } else if (t == 58) {
  18678. window.topU.postMessage({ tools: "58" }, "*");
  18679. } else if (t == 59) {
  18680. window.topU.postMessage({ tools: "59" }, "*");
  18681. } else if (t == 60) {
  18682. window.topU.postMessage({ tools: "60" }, "*");
  18683. } else if (t == 61) {
  18684. window.topU.postMessage({ tools: "61" }, "*");
  18685. } else if (t == 63) {
  18686. window.topU.postMessage({ tools: "63" }, "*");
  18687. } else if (t == 71) {
  18688. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  18689. // this.$message.error("该工具不可使用");
  18690. // return
  18691. // }
  18692. window.topU.postMessage({ tools: "71" }, "*");
  18693. } else if (t == 72) {
  18694. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  18695. .taskJson[index].toolChoose[i].appJson
  18696. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18697. .toolChoose[i].appJson
  18698. : "";
  18699. if(!item || !item.url){
  18700. this.$message.error(this.lang.ssAppConnectionEmpty);
  18701. return;
  18702. }
  18703. if (!document.fullscreenElement) {
  18704. this.enterFullScreen();
  18705. }
  18706. this.$refs.appStoreC.getData(item.url,this.userid)
  18707. // window.topU.postMessage({ tools: "72", data: item }, "*");
  18708. // window.open(item.url, "_blank");
  18709. } else if (t == 69) {
  18710. if (this.worksStudent[i].length) {
  18711. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18712. if (this.userid == this.worksStudent[i][k].userid) {
  18713. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18714. break;
  18715. } else {
  18716. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18717. }
  18718. }
  18719. } else {
  18720. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18721. }
  18722. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18723. .taskJson[index].toolChoose[i].englishList
  18724. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18725. .toolChoose[i].englishList
  18726. : {};
  18727. this.englishToolIndex = i;
  18728. this.myAnList = this.myAnswerList1;
  18729. this.engDialogVisible = true;
  18730. } else if (t == 70) {
  18731. if (this.worksStudent[i].length) {
  18732. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18733. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18734. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18735. break;
  18736. } else {
  18737. this.englishVoiceJsonWork = [];
  18738. }
  18739. }
  18740. } else {
  18741. this.englishVoiceJsonWork = [];
  18742. }
  18743. let englishVoiceJson = {}
  18744. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18745. .taskJson[index].toolChoose[i].englishVoiceJson
  18746. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18747. .toolChoose[i].englishVoiceJson
  18748. : {};
  18749. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18750. this.EnglishVoiceDialog = true;
  18751. } else if (t == 65) {
  18752. if (this.tType == 2) {
  18753. this.$message.error(this.lang.ssNotSupportedForStudents);
  18754. return;
  18755. }
  18756. this.uploadCid = this.tcid;
  18757. if (!this.uploadCid) {
  18758. this.$message.error(this.lang.ssNoClassPermission);
  18759. return;
  18760. }
  18761. this.selectPickStudent();
  18762. } else if (t == 26) {
  18763. window.topU.postMessage(
  18764. {
  18765. tools: "26",
  18766. cid: this.id,
  18767. stage: this.courseType,
  18768. task: this.taskCount,
  18769. tool: i,
  18770. },
  18771. "*"
  18772. );
  18773. } else if (t == 40) {
  18774. if (this.evalCount > 0) {
  18775. this.updateCount(this.evalCount, t);
  18776. } else {
  18777. this.evalCount++;
  18778. a = this.evalCount;
  18779. this.toolsCount(a, t);
  18780. }
  18781. this.eScore = { eBzText: "", eStar: [] };
  18782. if (this.worksStudent[i].length) {
  18783. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18784. if (this.userid == this.worksStudent[i][k].userid) {
  18785. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18786. this.rateJson =
  18787. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18788. index
  18789. ].toolChoose[i].rateJson;
  18790. break;
  18791. } else {
  18792. this.rateJson =
  18793. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18794. index
  18795. ].toolChoose[i].rateJson;
  18796. }
  18797. }
  18798. } else {
  18799. this.rateJson =
  18800. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18801. index
  18802. ].toolChoose[i].rateJson;
  18803. }
  18804. this.isStar = false;
  18805. this.studentEvalDialogVisible = true;
  18806. } else if (t == 41) {
  18807. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18808. .taskJson[index].toolChoose[i].selectJson
  18809. ? JSON.parse(
  18810. JSON.stringify(
  18811. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18812. index
  18813. ].toolChoose[i].selectJson
  18814. )
  18815. )
  18816. : { url: "", select: [], answer: [] };
  18817. if (this.worksStudent[i].length) {
  18818. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18819. if (this.userid == this.worksStudent[i][k].userid) {
  18820. var a = this.worksStudent[i][k].works.split(",");
  18821. for (var ki = 0; ki < a.length; ki++) {
  18822. a[ki] = parseInt(a[ki]);
  18823. }
  18824. this.selectAnswer = {
  18825. answer: a,
  18826. stu: this.worksStudent[i][k].sName,
  18827. };
  18828. break;
  18829. } else {
  18830. this.selectAnswer = { answer: [], stu: "" };
  18831. }
  18832. }
  18833. } else {
  18834. this.selectAnswer = { answer: [], stu: "" };
  18835. }
  18836. this.isSelect = false;
  18837. this.dialogVisibleSelect = true;
  18838. } else if (t == 44) {
  18839. window.topU.postMessage({ tools: "44" }, "*");
  18840. } else if (t == 47) {
  18841. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18842. .taskJson[index].toolChoose[i].sentenceList
  18843. ? JSON.parse(
  18844. JSON.stringify(
  18845. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18846. index
  18847. ].toolChoose[i].sentenceList
  18848. )
  18849. )
  18850. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18851. for (var q = 0; q < this.sentenceList.length; q++) {
  18852. this.sentenceList[q].chooseSenList = [];
  18853. this.sentenceList[q].addChangeSen = [];
  18854. this.sentenceList[q].addChangeSen = JSON.parse(
  18855. JSON.stringify(this.sentenceList[q].addSentence)
  18856. );
  18857. this.sentenceList[q].chooseSenList.length =
  18858. this.sentenceList[q].rightAnswer.length;
  18859. }
  18860. this.dialogVisibleSentence = true;
  18861. } else if (t == 48) {
  18862. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18863. .taskJson[index].toolChoose[i].tableJson
  18864. ? JSON.parse(
  18865. JSON.stringify(
  18866. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18867. index
  18868. ].toolChoose[i].tableJson
  18869. )
  18870. )
  18871. : { text: "" };
  18872. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18873. if (this.worksStudent[i].length) {
  18874. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18875. if (this.userid == this.worksStudent[i][k].userid) {
  18876. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18877. break;
  18878. }
  18879. }
  18880. }
  18881. this.dialogVisibleTable = true;
  18882. } else if (t == 52) {
  18883. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18884. .taskJson[index].toolChoose[i].wordJson
  18885. ? JSON.parse(
  18886. JSON.stringify(
  18887. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18888. index
  18889. ].toolChoose[i].wordJson
  18890. )
  18891. )
  18892. : { text: "" };
  18893. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18894. if (this.worksStudent[i].length) {
  18895. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18896. if (this.userid == this.worksStudent[i][k].userid) {
  18897. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18898. break;
  18899. }
  18900. }
  18901. }
  18902. this.dialogVisibleWord = true;
  18903. } else if (t == 49) {
  18904. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18905. return
  18906. }
  18907. this.groupJson =
  18908. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18909. index
  18910. ].toolChoose[i].groupJson;
  18911. this.islock = this.groupJson.islock == 1 ? true : false;
  18912. this.dialogVisibleGroup = true;
  18913. } else if (t == 62) {
  18914. this.videoType = 0;
  18915. this.videoJson = {};
  18916. this.videoJson =
  18917. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18918. index
  18919. ].toolChoose[i].videoJson;
  18920. this.dialogVisibleVideo = true;
  18921. }
  18922. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  18923. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18924. },
  18925. teacherWorkSubmit(t, i, index, s) {
  18926. console.log('t',t);
  18927. if(t == 72) return
  18928. this.sStudent = s;
  18929. this.toolindex = i;
  18930. this.sTool = t;
  18931. if (this.tType !== "1" && this.tType !== "4") {
  18932. return;
  18933. }
  18934. if (t == 16 || t == 32 || t == 50) {
  18935. this.dialogVisibleWorks = true;
  18936. } else if (t == 15) {
  18937. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18938. .taskJson[index].toolChoose[i].answerQ
  18939. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18940. .toolChoose[i].answerQ
  18941. : "";
  18942. this.questionAnswer = "";
  18943. this.answerDialogVisibleTeacher = true; //问答
  18944. } else if (t == 52) {
  18945. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18946. .taskJson[index].toolChoose[i].wordJson
  18947. ? JSON.parse(
  18948. JSON.stringify(
  18949. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18950. index
  18951. ].toolChoose[i].wordJson
  18952. )
  18953. )
  18954. : { text: "" };
  18955. if (this.worksStudent[i].length) {
  18956. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18957. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18958. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18959. break;
  18960. }
  18961. }
  18962. }
  18963. this.dialogVisibleWordTeacher = true; //文档
  18964. } else if (t == 4) {
  18965. this.radio = [];
  18966. this.noteName = "";
  18967. this.isAnswer = false;
  18968. if (this.askCount > 0) {
  18969. this.updateCount(this.askCount, t);
  18970. } else {
  18971. this.askCount++;
  18972. a = this.askCount;
  18973. this.toolsCount(a, t);
  18974. }
  18975. if (!this.dialogVisible2) {
  18976. this.askJson.askJson =
  18977. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18978. index
  18979. ].toolChoose[i].askJson;
  18980. this.askJson.askTitle =
  18981. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18982. index
  18983. ].toolChoose[i].askTitle;
  18984. this.askJson.askCount =
  18985. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18986. index
  18987. ].toolChoose[i].askCount;
  18988. } else {
  18989. this.askJson.askJson = this.chapTools.askJson.askJson;
  18990. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18991. this.askJson.askCount = this.chapTools.askJson.askCount;
  18992. }
  18993. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18994. if (this.askJson.askJson[k].type == "2") {
  18995. this.radio.push([]);
  18996. } else {
  18997. this.radio.push("");
  18998. }
  18999. }
  19000. this.dialogVisible5Teacher = true;
  19001. } else if (t == 45) {
  19002. this.noteName = "";
  19003. this.radio = [];
  19004. this.isAnswer = false;
  19005. if (this.askCount > 0) {
  19006. this.updateCount(this.askCount, t);
  19007. } else {
  19008. this.askCount++;
  19009. a = this.askCount;
  19010. this.toolsCount(a, t);
  19011. }
  19012. this.testJson =
  19013. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19014. index
  19015. ].toolChoose[i].testJson;
  19016. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19017. if (this.testJson.testJson[k].type == "2") {
  19018. this.radio.push([]);
  19019. } else {
  19020. this.radio.push("");
  19021. }
  19022. }
  19023. this.dialogVisibleChoiceTeacher = true;
  19024. } else if (t == 41) {
  19025. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19026. .taskJson[index].toolChoose[i].selectJson
  19027. ? JSON.parse(
  19028. JSON.stringify(
  19029. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19030. index
  19031. ].toolChoose[i].selectJson
  19032. )
  19033. )
  19034. : { url: "", select: [], answer: [] };
  19035. if (this.worksStudent[i].length) {
  19036. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19037. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19038. var a = this.worksStudent[i][k].works.split(",");
  19039. for (var ki = 0; ki < a.length; ki++) {
  19040. a[ki] = parseInt(a[ki]);
  19041. }
  19042. this.selectAnswer = {
  19043. answer: a,
  19044. stu: this.worksStudent[i][k].sName,
  19045. };
  19046. break;
  19047. } else {
  19048. this.selectAnswer = { answer: [], stu: "" };
  19049. }
  19050. }
  19051. } else {
  19052. this.selectAnswer = { answer: [], stu: "" };
  19053. }
  19054. this.isSelect = false;
  19055. this.dialogVisibleSelectTeacher = true;
  19056. } else if (t == 47) {
  19057. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19058. .taskJson[index].toolChoose[i].sentenceList
  19059. ? JSON.parse(
  19060. JSON.stringify(
  19061. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19062. index
  19063. ].toolChoose[i].sentenceList
  19064. )
  19065. )
  19066. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19067. for (var q = 0; q < this.sentenceList.length; q++) {
  19068. this.sentenceList[q].chooseSenList = [];
  19069. this.sentenceList[q].addChangeSen = [];
  19070. this.sentenceList[q].addChangeSen = JSON.parse(
  19071. JSON.stringify(this.sentenceList[q].addSentence)
  19072. );
  19073. this.sentenceList[q].chooseSenList.length =
  19074. this.sentenceList[q].rightAnswer.length;
  19075. }
  19076. this.dialogVisibleSentenceTeacher = true;
  19077. } else if (t == 48) {
  19078. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19079. .taskJson[index].toolChoose[i].tableJson
  19080. ? JSON.parse(
  19081. JSON.stringify(
  19082. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19083. index
  19084. ].toolChoose[i].tableJson
  19085. )
  19086. )
  19087. : { text: "" };
  19088. if (this.worksStudent[i].length) {
  19089. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19090. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19091. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19092. break;
  19093. }
  19094. }
  19095. }
  19096. this.dialogVisibleTableTeacher = true;
  19097. } else if (t == 40) {
  19098. if (this.evalCount > 0) {
  19099. this.updateCount(this.evalCount, t);
  19100. } else {
  19101. this.evalCount++;
  19102. a = this.evalCount;
  19103. this.toolsCount(a, t);
  19104. }
  19105. this.eScore = { eBzText: "", eStar: [] };
  19106. if (this.worksStudent[i].length) {
  19107. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19108. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19109. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19110. this.rateJson =
  19111. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19112. index
  19113. ].toolChoose[i].rateJson;
  19114. break;
  19115. } else {
  19116. this.rateJson =
  19117. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19118. index
  19119. ].toolChoose[i].rateJson;
  19120. }
  19121. }
  19122. } else {
  19123. this.rateJson =
  19124. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19125. index
  19126. ].toolChoose[i].rateJson;
  19127. }
  19128. this.isStar = false;
  19129. this.studentEvalDialogVisibleTeacher = true;
  19130. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19131. window.topU.postMessage(
  19132. {
  19133. tools: t + "teacher",
  19134. cid: this.id,
  19135. stage: this.courseType,
  19136. task: this.taskCount,
  19137. tool: i,
  19138. student: this.sStudent,
  19139. },
  19140. "*"
  19141. );
  19142. }else if (t == 72) {
  19143. if (!document.fullscreenElement) {
  19144. this.enterFullScreen();
  19145. }
  19146. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19147. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19148. }
  19149. },
  19150. openCocoPi(tool, i, uid, uname) {
  19151. let student = {
  19152. userid: uid,
  19153. student: uname,
  19154. };
  19155. if (tool == 57) {
  19156. window.topU.postMessage(
  19157. {
  19158. tools: tool + "teacher",
  19159. cid: this.id,
  19160. stage: this.courseType,
  19161. task: this.taskCount,
  19162. tool: i,
  19163. student: student,
  19164. },
  19165. "*"
  19166. );
  19167. }
  19168. },
  19169. setRightAnswer(s, i, j) {
  19170. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19171. if (
  19172. this.sentenceList[i].chooseSenList[q] == undefined ||
  19173. this.sentenceList[i].chooseSenList[q] == ""
  19174. ) {
  19175. this.sentenceList[i].chooseSenList[q] = s;
  19176. this.sentenceList[i].addChangeSen[j] = "";
  19177. break;
  19178. }
  19179. }
  19180. this.$forceUpdate();
  19181. },
  19182. returnCard(r, i, j) {
  19183. var a = this.sentenceList[i].addSentence.indexOf(r);
  19184. this.sentenceList[i].chooseSenList[j] = "";
  19185. this.sentenceList[i].addChangeSen[a] = r;
  19186. this.$forceUpdate();
  19187. },
  19188. // addSentenceTool() {
  19189. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19190. // this.taskCount
  19191. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19192. // this.sentenceList = [
  19193. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19194. // ];
  19195. // this.dialogVisibleSentence = false;
  19196. // },
  19197. toolsCount(a, t) {
  19198. let params = {
  19199. cid: this.id,
  19200. chid: this.courseType,
  19201. uid: this.userid,
  19202. tid: t,
  19203. count: a,
  19204. };
  19205. this.ajax
  19206. .get(this.$store.state.api + "insertToolsCount", params)
  19207. .then((res) => {
  19208. this.selectCount();
  19209. })
  19210. .catch((err) => {
  19211. console.error(err);
  19212. });
  19213. },
  19214. updateCount(c, t) {
  19215. c++;
  19216. let params = {
  19217. cid: this.id,
  19218. chid: this.courseType,
  19219. uid: this.userid,
  19220. tid: t,
  19221. count: c,
  19222. };
  19223. this.ajax
  19224. .get(this.$store.state.api + "updateToolsCount", params)
  19225. .then((res) => {
  19226. this.selectCount();
  19227. })
  19228. .catch((err) => {
  19229. console.error(err);
  19230. });
  19231. },
  19232. checkEva() {
  19233. if (this.evalua != "") {
  19234. for (var i = 0; i < this.evaJuri.length; i++) {
  19235. if (this.evalua == this.evaJuri[i].id) {
  19236. this.eTitle = this.evaJuri[i].title;
  19237. this.eJson = JSON.parse(this.evaJuri[i].content);
  19238. }
  19239. }
  19240. this.$forceUpdate();
  19241. setTimeout(() => {
  19242. this.setMindData();
  19243. }, 0);
  19244. }
  19245. },
  19246. selectEva() {
  19247. let params = {
  19248. oid: this.oid,
  19249. };
  19250. this.ajax
  19251. .get(this.$store.state.api + "selectAllEvaluation", params)
  19252. .then((res) => {
  19253. this.evaJuri = res.data[0];
  19254. })
  19255. .catch((err) => {
  19256. console.error(err);
  19257. });
  19258. },
  19259. setMindData() {
  19260. this.data.data = [];
  19261. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19262. let _eJson = Object.keys(this.eJson);
  19263. let _e = this.eJson;
  19264. for (let i = 0; i < _eJson.length; i++) {
  19265. let element = _e[_eJson[i]];
  19266. this.data.data.push({
  19267. id: element.id,
  19268. parentid: "root",
  19269. topic: element.name,
  19270. });
  19271. let _eJsonc = Object.keys(element.child);
  19272. let _e2 = element.child;
  19273. for (let j = 0; j < _eJsonc.length; j++) {
  19274. let _ec = _e2[_eJsonc[j]];
  19275. this.data.data.push({
  19276. id: _ec.id,
  19277. parentid: element.id,
  19278. topic: _ec.name,
  19279. });
  19280. let _eJsonz = Object.keys(_ec.child);
  19281. let _e3 = _ec.child;
  19282. for (let z = 0; z < _eJsonz.length; z++) {
  19283. let _ez = _e3[_eJsonz[z]];
  19284. this.data.data.push({
  19285. id: _ez.id,
  19286. parentid: _ec.id,
  19287. topic: _ez.name,
  19288. });
  19289. }
  19290. }
  19291. }
  19292. this.$forceUpdate();
  19293. },
  19294. checkFileFull(type, url) {
  19295. this.fullDialogVisible = true;
  19296. this.fulltype = type;
  19297. this.fullUrl = url;
  19298. },
  19299. async checkFileFull1(t, f) {
  19300. this.fullDialogVisible = true;
  19301. if (t == 6) {
  19302. this.fulltype = 1;
  19303. console.log('checkFileFull1',f);
  19304. this.fullUrl = JSON.parse(JSON.stringify(f));
  19305. } else if (t == 8) {
  19306. this.fulltype = 2;
  19307. this.fullUrl = f.url;
  19308. } else if (t == 16) {
  19309. this.fulltype = 16;
  19310. this.fullUrl = f.url;
  19311. } else if (t == 15) {
  19312. this.fulltype = 4;
  19313. this.fullUrl = f.url;
  19314. } else if (
  19315. t == 3 &&
  19316. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19317. "PDF"
  19318. ) {
  19319. this.fulltype = 3;
  19320. this.fullUrl = f.url;
  19321. } else if (t == 3) {
  19322. this.fulltype = 2;
  19323. let _uuurl = await this.checkLink(f.url);
  19324. console.log(_uuurl)
  19325. this.fullUrl =
  19326. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19327. }
  19328. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19329. },
  19330. openSname(n, id, i, uid) {
  19331. this.snameWid = id;
  19332. this.worksSName = n;
  19333. this.worksSid = uid == n ? "" : uid;
  19334. this.toolindex = i;
  19335. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19336. if (!this.uploadCid) {
  19337. this.$message.error(this.lang.ssBatchUploadNoClassPermission);
  19338. return;
  19339. }
  19340. this.selectUploadStudent(1);
  19341. },
  19342. updateName() {
  19343. let params = {
  19344. n: this.worksSName,
  19345. cid: this.snameWid,
  19346. };
  19347. this.ajax
  19348. .get(this.$store.state.api + "updateCourseWorksName", params)
  19349. .then((res) => {
  19350. this.$message({
  19351. message: this.lang.ssModifySuccess,
  19352. type: "success",
  19353. });
  19354. this.dialogVisibleSname = false;
  19355. this.getCourseDetail(2);
  19356. this.snameWid = "";
  19357. this.worksSName = "";
  19358. })
  19359. .catch((err) => {
  19360. console.error(err);
  19361. });
  19362. },
  19363. downloadimg(img,val){
  19364. console.log('img',img)
  19365. fetch(img)
  19366. .then((response) => {
  19367. if (!response.ok) throw new Error('download failed')
  19368. return response.blob()
  19369. })
  19370. .then((blob) => {
  19371. const blobUrl = URL.createObjectURL(blob)
  19372. const a = document.createElement('a')
  19373. a.href = blobUrl
  19374. a.download = val + '.jpg'
  19375. document.body.appendChild(a)
  19376. a.click()
  19377. document.body.removeChild(a)
  19378. URL.revokeObjectURL(blobUrl)
  19379. })
  19380. .catch(() => {
  19381. fallbackDownload()
  19382. })
  19383. },
  19384. downloadFile2(f) {
  19385. // const loading = this.$loading.service({
  19386. // background: "rgba(255, 255, 255, 0.7)",
  19387. // target: document.body,
  19388. // text: "文件加载中...",
  19389. // });
  19390. // let url2 = f.url;
  19391. // let _url2 = "";
  19392. // if (
  19393. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19394. // ) {
  19395. // _url2 = url2.split(
  19396. // "https://view.officeapps.live.com/op/view.aspx?src="
  19397. // )[1];
  19398. // } else {
  19399. // _url2 = url2;
  19400. // }
  19401. // let params = {
  19402. // url: _url2,
  19403. // name: f.name,
  19404. // };
  19405. // this.ajax
  19406. // .get(this.$store.state.api + "download", params)
  19407. // .then((res) => {
  19408. // loading.close();
  19409. // let content = res.data.data.data;
  19410. // let ab = new ArrayBuffer(content.length);
  19411. // let view = new Uint8Array(ab);
  19412. // for (var i = 0; i < content.length; ++i) {
  19413. // view[i] = content[i];
  19414. // }
  19415. // let elink = document.createElement("a");
  19416. // elink.download = f.name;
  19417. // elink.style.display = "none";
  19418. // let blob = new Blob([ab], {
  19419. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19420. // });
  19421. // elink.href = URL.createObjectURL(blob);
  19422. // document.body.appendChild(elink);
  19423. // elink.click();
  19424. // document.body.removeChild(elink);
  19425. // })
  19426. // .catch((err) => {
  19427. // loading.close();
  19428. // console.error(err);
  19429. // });
  19430. var credentials = {
  19431. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19432. secretAccessKey: "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",
  19433. }; //秘钥形式的登录上传
  19434. window.AWS.config.update(credentials);
  19435. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19436. let url2 = f.url;
  19437. let _url2 = "";
  19438. if (
  19439. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19440. ) {
  19441. _url2 = url2.split(
  19442. "https://view.officeapps.live.com/op/view.aspx?src="
  19443. )[1];
  19444. } else {
  19445. _url2 = url2;
  19446. }
  19447. let _this = this;
  19448. _this.downLoading = true
  19449. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19450. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19451. var params = {
  19452. Bucket: "ccrb",
  19453. Key: name
  19454. };
  19455. s3.getObject(params, function (err, data) {
  19456. _this.downLoading = false
  19457. if (err) console.log(err, err.stack); // an error occurred
  19458. else {
  19459. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19460. let a = document.createElement("a");
  19461. a.name = f.name;
  19462. a.href = url;
  19463. a.download = f.name;
  19464. a.click();
  19465. console.log(data);
  19466. } // sxuccessful response
  19467. });
  19468. return;
  19469. // let url = f.url;
  19470. // let _url = "";
  19471. // if (
  19472. // url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19473. // ) {
  19474. // _url = url.split(
  19475. // "https://view.officeapps.live.com/op/view.aspx?src="
  19476. // )[1];
  19477. // } else {
  19478. // _url = url;
  19479. // }
  19480. // _this.downLoading = true
  19481. // // const loading = _this.$loading.service({
  19482. // // background: "rgba(255, 255, 255, 0.7)",
  19483. // // target: document.body,
  19484. // // text: "文件加载中...",
  19485. // // });
  19486. // let x = new XMLHttpRequest();
  19487. // x.open("GET", _url, true);
  19488. // x.responseType = "blob";
  19489. // x.onload = function () {
  19490. // _this.downLoading = false
  19491. // // loading.close();
  19492. // let url = window.URL.createObjectURL(new Blob([x.response]));
  19493. // let a = document.createElement("a");
  19494. // a.name = f.name;
  19495. // a.href = url;
  19496. // a.download = f.name;
  19497. // a.click();
  19498. // };
  19499. // x.send();
  19500. },
  19501. downloadFile(url,uid) {
  19502. if (this.tType == 1 || this.userid == uid) {
  19503. var credentials = {
  19504. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19505. secretAccessKey: "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",
  19506. }; //秘钥形式的登录上传
  19507. window.AWS.config.update(credentials);
  19508. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19509. let url2 = url;
  19510. let _url2 = "";
  19511. if (
  19512. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19513. ) {
  19514. _url2 = url2.split(
  19515. "https://view.officeapps.live.com/op/view.aspx?src="
  19516. )[1];
  19517. } else {
  19518. _url2 = url2;
  19519. }
  19520. const loading2 = this.$loading.service({
  19521. background: "rgba(255, 255, 255, 0.7)",
  19522. target: document.body,
  19523. text: this.lang.ssFileLoading,
  19524. });
  19525. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19526. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19527. var params = {
  19528. Bucket: "ccrb",
  19529. Key: name
  19530. };
  19531. s3.getObject(params, function (err, data) {
  19532. loading2.close();
  19533. if (err) console.log(err, err.stack); // an error occurred
  19534. else {
  19535. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19536. let a = document.createElement("a");
  19537. a.name = name;
  19538. a.href = url;
  19539. a.download = name;
  19540. a.click();
  19541. console.log(data);
  19542. } // sxuccessful response
  19543. });
  19544. }
  19545. return;
  19546. // let _this = this;
  19547. // let _url = "";
  19548. // if (
  19549. // url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19550. // ) {
  19551. // _url = url.split(
  19552. // "https://view.officeapps.live.com/op/view.aspx?src="
  19553. // )[1];
  19554. // } else {
  19555. // _url = url;
  19556. // }
  19557. // const x = new XMLHttpRequest();
  19558. // x.open("GET", _url, true);
  19559. // x.responseType = "blob";
  19560. // // this.downLoading = true
  19561. // const loading = _this.$loading.service({
  19562. // background: "rgba(255, 255, 255, 0.7)",
  19563. // target: document.body,
  19564. // text: "文件加载中...",
  19565. // });
  19566. // // _this.$message.success("文件下载中...");
  19567. // x.onload = function (e) {
  19568. // this.downLoading = false
  19569. // loading.close();
  19570. // let content = x.response;
  19571. // let elink = document.createElement("a");
  19572. // elink.download = decodeURI(
  19573. // _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19574. // );
  19575. // elink.style.display = "none";
  19576. // let blob = new Blob([content]);
  19577. // elink.href = URL.createObjectURL(blob);
  19578. // document.body.appendChild(elink);
  19579. // elink.click();
  19580. // document.body.removeChild(elink);
  19581. // };
  19582. // x.send();
  19583. },
  19584. openLine(url) {
  19585. window.open(url);
  19586. },
  19587. resize() {
  19588. if (document.getElementsByClassName("box_course").length) {
  19589. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19590. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19591. if (this.showType == 2 || this.showType == 3) {
  19592. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  19593. document.getElementsByClassName("navBox")[0].style.height =
  19594. a - 40 + 0+ "px";
  19595. }
  19596. } else {
  19597. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  19598. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  19599. }
  19600. }
  19601. }
  19602. this.Stbodywidth =
  19603. document.getElementsByClassName("student_body").length &&
  19604. document.getElementsByClassName("student_body")[0].offsetWidth;
  19605. },
  19606. closeDraw() {
  19607. this.bg = null;
  19608. this.drawShow = false;
  19609. },
  19610. showPicturePaint(url) {
  19611. let params = {
  19612. img: url,
  19613. };
  19614. this.ajax
  19615. .get(this.$store.state.api + "imgToBase64", params)
  19616. .then((res) => {
  19617. this.drawShow = true;
  19618. this.bg = res.data[0].img;
  19619. })
  19620. .catch((err) => {
  19621. console.error(err);
  19622. });
  19623. },
  19624. addImgDraw(base64) {
  19625. let file = { name: this.lang.ssAnnotationImage };
  19626. let img = this.dataUrlToFile(base64, file);
  19627. this.beforeUpload1(img, 5);
  19628. },
  19629. addImgDrawImG(url) {
  19630. // console.log(url);
  19631. let params = [
  19632. {
  19633. wid: this.commentDetail.wid,
  19634. img: url,
  19635. },
  19636. ];
  19637. this.ajax
  19638. .post(this.$store.state.api + "updateCourseWorks", params)
  19639. .then((res) => {
  19640. this.$message({
  19641. message: this.lang.ssSubmitSuccess,
  19642. type: "success",
  19643. });
  19644. this.drawShow = false;
  19645. this.bg = "";
  19646. this.selectSWorks();
  19647. this.selectStudent();
  19648. })
  19649. .catch((err) => {
  19650. this.$message.error(this.lang.ssSubmitFailed);
  19651. console.error(err);
  19652. });
  19653. },
  19654. deletePicturePaint() {
  19655. this.$confirm(this.lang.ssConfirmDeleteAnnotation, this.lang.ssPrompt, {
  19656. confirmButtonText: this.lang.ssConfirm,
  19657. cancelButtonText: this.lang.ssCancel,
  19658. type: "warning",
  19659. })
  19660. .then(() => {
  19661. let params = [
  19662. {
  19663. wid: this.commentDetail.wid,
  19664. img: "",
  19665. },
  19666. ];
  19667. this.ajax
  19668. .post(this.$store.state.api + "updateCourseWorks", params)
  19669. .then((res) => {
  19670. this.$message({
  19671. message: this.lang.ssDeleteSuccess,
  19672. type: "success",
  19673. });
  19674. this.selectSWorks();
  19675. this.selectStudent();
  19676. })
  19677. .catch((err) => {
  19678. this.$message.error(this.lang.ssDeleteFailed);
  19679. console.error(err);
  19680. });
  19681. })
  19682. .catch(() => {});
  19683. },
  19684. getAudioVideo(constraintsData) {
  19685. if (navigator.mediaDevices === undefined) {
  19686. navigator.mediaDevices = {};
  19687. }
  19688. if (navigator.mediaDevices.getUserMedia === undefined) {
  19689. navigator.mediaDevices.getUserMedia = function (constraints) {
  19690. // 首先,如果有getUserMedia的话,就获得它
  19691. var getUserMedia =
  19692. navigator.getUserMedia ||
  19693. navigator.webkitGetUserMedia ||
  19694. navigator.mozGetUserMedia ||
  19695. navigator.msGetUserMedia;
  19696. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19697. if (!getUserMedia) {
  19698. return Promise.reject({ code: 404 });
  19699. }
  19700. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19701. return new Promise(function (resolve, reject) {
  19702. getUserMedia.call(navigator, constraints, resolve, reject);
  19703. });
  19704. };
  19705. }
  19706. return navigator.mediaDevices.getUserMedia(constraintsData);
  19707. },
  19708. /**
  19709. * 开始录制
  19710. */
  19711. startRecording(callback) {
  19712. let _function = (screenStream) => {
  19713. this.addStreamStopListener(screenStream, () => {
  19714. console.log("流停止监听");
  19715. this.stopRecording();
  19716. this.$emit("streamStop", {});
  19717. // this.stopRecording();
  19718. });
  19719. var options = {
  19720. type: "video",
  19721. mimeType: "video/webm",
  19722. disableLogs: false,
  19723. getNativeBlob: false, // enable it for longer recordings
  19724. ignoreMutedMedia: false,
  19725. };
  19726. // this.video.srcObject = screenStream;
  19727. this.recorder = RecordRTC(screenStream, options);
  19728. this.recorder.startRecording();
  19729. this.recorder.screen = screenStream;
  19730. this.videoStart = true;
  19731. // callback(true);
  19732. };
  19733. this.getAudioVideo({ audio: true })
  19734. .then((res) => {
  19735. this.captureScreen(_function, true);
  19736. console.log("已点击允许,开启成功");
  19737. })
  19738. .catch((err) => {
  19739. // console.log('浏览器不支持,请更换浏览器')
  19740. // } else {
  19741. this.captureScreen(_function, false);
  19742. console.log("请检查是否存在麦克风");
  19743. });
  19744. },
  19745. /**
  19746. * 停止录制
  19747. */
  19748. stopRecording(callback) {
  19749. this.recorder.stopRecording(() => {
  19750. // this.video.src = this.video.srcObject = null;
  19751. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19752. const url = URL.createObjectURL(this.recorder.getBlob());
  19753. const a = document.createElement("a"); //this.fileName+
  19754. let videoFile = new File(
  19755. [this.recorder.getBlob()],
  19756. this.courseDetail.title + this.lang.ssScreenRecording + ".mp4",
  19757. {
  19758. type: "video/mp4",
  19759. }
  19760. );
  19761. let downloadUrl = URL.createObjectURL(videoFile);
  19762. if(this.$refs.classRoomHelperRef){
  19763. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19764. }
  19765. document.body.appendChild(a);
  19766. a.style.display = "none";
  19767. a.href = url;
  19768. a.download = this.courseDetail.title + this.lang.ssScreenRecording + ".mp4"; //this.fileName +
  19769. a.click();
  19770. this.recorder.screen.stop();
  19771. this.recorder.destroy();
  19772. this.recorder = null;
  19773. this.videoStart = false;
  19774. // callback(false);
  19775. });
  19776. },
  19777. //初始化
  19778. captureScreen(callback, type) {
  19779. if (navigator.getDisplayMedia) {
  19780. //录制结束,文件下载
  19781. navigator
  19782. .getDisplayMedia({
  19783. video: true,
  19784. })
  19785. .then((screenStream) => {
  19786. if (type) {
  19787. navigator.mediaDevices
  19788. .getUserMedia({ audio: true })
  19789. .then((mic) => {
  19790. screenStream.addTrack(mic.getTracks()[0]);
  19791. callback(screenStream);
  19792. });
  19793. } else {
  19794. callback(screenStream);
  19795. }
  19796. })
  19797. .catch(function (error) {
  19798. console.log("error", error);
  19799. });
  19800. } else if (navigator.mediaDevices.getDisplayMedia) {
  19801. navigator.mediaDevices
  19802. .getDisplayMedia({
  19803. video: true,
  19804. })
  19805. .then((screenStream) => {
  19806. if (type) {
  19807. navigator.mediaDevices
  19808. .getUserMedia({ audio: true })
  19809. .then((mic) => {
  19810. screenStream.addTrack(mic.getTracks()[0]);
  19811. callback(screenStream);
  19812. });
  19813. } else {
  19814. callback(screenStream);
  19815. }
  19816. })
  19817. .catch(function (error) {
  19818. console.log("error", error);
  19819. });
  19820. } else {
  19821. var error = "getDisplayMedia API are not supported in this browser.";
  19822. console.log("error", error);
  19823. alert(error);
  19824. }
  19825. },
  19826. //流监听
  19827. addStreamStopListener(stream, callback) {
  19828. stream.addEventListener(
  19829. "ended",
  19830. function () {
  19831. callback();
  19832. callback = function () {};
  19833. },
  19834. false
  19835. );
  19836. stream.addEventListener(
  19837. "inactive",
  19838. function () {
  19839. callback();
  19840. callback = function () {};
  19841. },
  19842. false
  19843. );
  19844. stream.getTracks().forEach(function (track) {
  19845. track.addEventListener(
  19846. "ended",
  19847. function () {
  19848. callback();
  19849. callback = function () {};
  19850. },
  19851. false
  19852. );
  19853. track.addEventListener(
  19854. "inactive",
  19855. function () {
  19856. callback();
  19857. callback = function () {};
  19858. },
  19859. false
  19860. );
  19861. });
  19862. },
  19863. updateGroup() {
  19864. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19865. this.dialogVisibleGroup2 = true;
  19866. },
  19867. numberPan() {
  19868. if (
  19869. /[^\d]/.test(this.groupJson.number) ||
  19870. this.groupJson.number < 2 ||
  19871. this.groupJson.number > 10
  19872. ) {
  19873. this.$message.error(this.lang.ssEnterNumber2To10);
  19874. this.groupJson.number = "";
  19875. }
  19876. },
  19877. updateGroupJson() {
  19878. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19879. if (
  19880. this.groupStudentUid[this.toolindex][i].length >
  19881. this.groupJson2.number
  19882. ) {
  19883. this.$message.error(this.lang.ssGroupLargerThanSet);
  19884. return;
  19885. }
  19886. }
  19887. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19888. this.islock = this.groupJson.islock == 1 ? true : false;
  19889. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19890. this.taskCount
  19891. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19892. let params = [
  19893. {
  19894. cid: this.id,
  19895. chapters: JSON.stringify(this.chapInfoList),
  19896. uid: this.userid,
  19897. unitIndex: this.courseType,
  19898. },
  19899. ];
  19900. this.ajax
  19901. .post(this.$store.state.api + "updateWorkNew4", params)
  19902. .then((res) => {
  19903. this.$message.success(this.lang.ssSettingSuccess);
  19904. this.getCourseDetail(2);
  19905. this.dialogVisibleGroup2 = false;
  19906. this.groupJson2 = {};
  19907. this.$forceUpdate();
  19908. })
  19909. .catch((err) => {
  19910. this.$message.error(this.lang.ssNetworkPoor);
  19911. console.error(err);
  19912. });
  19913. },
  19914. lockChair() {
  19915. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19916. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19917. this.updateGroupJson();
  19918. },
  19919. selectGroup(index) {
  19920. this.getCourseDetail(2, index);
  19921. },
  19922. joinGroup(index) {
  19923. if (this.groupJson.islock == 2) {
  19924. this.$message.error(this.lang.ssPositionLockedCannotJoin);
  19925. return;
  19926. }
  19927. if (
  19928. this.groupStudent[this.toolindex][index].length >
  19929. this.groupJson.number ||
  19930. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19931. ) {
  19932. this.$message.error(this.lang.ssPositionFullCannotJoin);
  19933. return;
  19934. }
  19935. let params = [
  19936. {
  19937. cid: this.id,
  19938. stage: this.courseType,
  19939. task: this.taskCount,
  19940. tool: this.toolindex,
  19941. g: index,
  19942. uid: this.userid,
  19943. },
  19944. ];
  19945. this.ajax
  19946. .post(this.$store.state.api + "joinGroup", params)
  19947. .then((res) => {
  19948. this.$message.success(this.lang.ssJoinSuccess);
  19949. this.getCourseDetail(2);
  19950. })
  19951. .catch((err) => {
  19952. this.$message.error(this.lang.ssNetworkPoor);
  19953. console.error(err);
  19954. });
  19955. },
  19956. exitGroup(id) {
  19957. if (this.groupJson.islock == 2) {
  19958. this.$message.error(this.lang.ssPositionLockedCannotExit);
  19959. return;
  19960. }
  19961. let params = [
  19962. {
  19963. gid: id,
  19964. },
  19965. ];
  19966. this.ajax
  19967. .post(this.$store.state.api + "exitGroup", params)
  19968. .then((res) => {
  19969. this.$message.success(this.lang.ssExitSuccess);
  19970. this.getCourseDetail(2);
  19971. })
  19972. .catch((err) => {
  19973. this.$message.error(this.lang.ssNetworkPoor);
  19974. console.error(err);
  19975. });
  19976. },
  19977. groupUpload(index, task, gindex) {
  19978. this.taskCount = task;
  19979. this.toolindex = index;
  19980. this.groupIndex = gindex;
  19981. this.dialogVisibleGroupWork = true;
  19982. },
  19983. updateGroupChair(user) {
  19984. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19985. el.label = index;
  19986. return index != user.group;
  19987. });
  19988. this.updateGroupUser = user;
  19989. this.dialogVisibleUpdateGroup = true;
  19990. },
  19991. updateChair() {
  19992. if (
  19993. this.groupStudent[this.toolindex][this.checkChair].length >
  19994. this.groupJson.number ||
  19995. this.groupStudent[this.toolindex][this.checkChair].length ==
  19996. this.groupJson.number
  19997. ) {
  19998. this.$message.error(this.lang.ssPositionFullCannotJoin);
  19999. return;
  20000. }
  20001. let params = [
  20002. {
  20003. cid: this.id,
  20004. stage: this.courseType,
  20005. task: this.taskCount,
  20006. tool: this.toolindex,
  20007. g: this.checkChair,
  20008. uid: this.updateGroupUser.userid,
  20009. },
  20010. ];
  20011. this.ajax
  20012. .post(this.$store.state.api + "joinGroup", params)
  20013. .then((res) => {
  20014. this.$message.success(this.lang.ssModifySuccess);
  20015. this.updateGroupUser = {};
  20016. this.checkChair = "";
  20017. this.updateGroupArray = {};
  20018. this.dialogVisibleUpdateGroup = false;
  20019. this.getCourseDetail(2);
  20020. })
  20021. .catch((err) => {
  20022. this.$message.error(this.lang.ssNetworkPoor);
  20023. console.error(err);
  20024. });
  20025. },
  20026. deleteGroupChair(gindex) {
  20027. this.checkDeleteGroup = [];
  20028. this.deleteGroupUser = JSON.parse(
  20029. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20030. );
  20031. this.deleteGroupArray = this.groupJson.group[gindex];
  20032. this.groupIndex = gindex;
  20033. this.dialogVisibleDeleteGroup = true;
  20034. },
  20035. async deleteChair() {
  20036. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20037. const gid =
  20038. this.groupStudent[this.toolindex][this.groupIndex][
  20039. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20040. this.checkDeleteGroup[i]
  20041. )
  20042. ];
  20043. let params = [
  20044. {
  20045. gid: gid.id,
  20046. },
  20047. ];
  20048. var a = await this.deleteChairA(params);
  20049. if (i == this.checkDeleteGroup.length - 1) {
  20050. this.$message.success(this.lang.ssExitSuccess);
  20051. this.dialogVisibleDeleteGroup = false;
  20052. this.deleteGroupUser = [];
  20053. this.deleteGroupArray = {};
  20054. this.groupIndex = "";
  20055. this.checkDeleteGroup = [];
  20056. this.getCourseDetail(2);
  20057. }
  20058. }
  20059. },
  20060. deleteChairA(params) {
  20061. return new Promise((resolve, reject) => {
  20062. this.ajax
  20063. .post(this.$store.state.api + "exitGroup", params)
  20064. .then((res) => {
  20065. resolve(1);
  20066. })
  20067. .catch((err) => {
  20068. this.$message.error(this.lang.ssNetworkPoor);
  20069. console.error(err);
  20070. });
  20071. });
  20072. },
  20073. contract(i) {
  20074. if (this.isCloseList[i].isClose == 0) {
  20075. this.isCloseList[i].isClose = 1;
  20076. } else {
  20077. this.isCloseList[i].isClose = 0;
  20078. }
  20079. this.$forceUpdate();
  20080. },
  20081. openWordCloud(toolindex) {
  20082. this.wordCloudData = '';
  20083. let array = [];
  20084. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20085. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20086. array.push({ name: works });
  20087. }
  20088. if (this.isGroup) {
  20089. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20090. let works = this.courseGroup.group[i].works[toolindex];
  20091. for (var j = 0; j < works.length; j++) {
  20092. let answer = JSON.parse(works[j].works)[0].answer;
  20093. array.push({ name: answer });
  20094. }
  20095. }
  20096. }
  20097. let _result = ''
  20098. array.forEach(e=>{
  20099. _result +=e.name+','
  20100. })
  20101. this.wordCloudData = _result;
  20102. this.dialogVisibleWordCloud = true;
  20103. this.wordCloudKey += 1;
  20104. },
  20105. uploadWorks(i) {
  20106. this.$confirm(this.lang.ssConfirmExportHomework, this.lang.ssPrompt, {
  20107. confirmButtonText: this.lang.ssConfirm,
  20108. cancelButtonText: this.lang.ssCancel,
  20109. type: "warning",
  20110. })
  20111. .then(() => {
  20112. const loading = this.$loading.service({
  20113. background: "rgba(255, 255, 255, 0.7)",
  20114. target: document.body,
  20115. text: this.lang.ssFileLoading,
  20116. });
  20117. const _worksStudent = this.worksStudent;
  20118. let url = [];
  20119. var counts = {};
  20120. for (var l = 0; l < _worksStudent[i].length; l++) {
  20121. var item = _worksStudent[i][l];
  20122. var name = item.sName;
  20123. if (!counts.hasOwnProperty(name)) {
  20124. counts[name] = 0;
  20125. } else {
  20126. counts[name]++;
  20127. }
  20128. if (counts[name] > 0) {
  20129. item.sName += " (" + counts[name] + ")";
  20130. }
  20131. }
  20132. for (var l = 0; l < _worksStudent[i].length; l++) {
  20133. var item = _worksStudent[i][l];
  20134. if (
  20135. item.works.indexOf(
  20136. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20137. ) !== -1 &&
  20138. item.works.indexOf("img") === -1
  20139. ) {
  20140. url.push({ name: item.sName, url: item.works });
  20141. }
  20142. }
  20143. // var toolList = [
  20144. // { name: "电子白板", tool: 1 },
  20145. // { name: "思维导图", tool: 3 },
  20146. // { name: "协同文档", tool: 6 },
  20147. // { name: "思维网格", tool: 7 },
  20148. // { name: "素材库", tool: 8 },
  20149. // { name: "学习资料", tool: 17 },
  20150. // { name: "便签", tool: 2 },
  20151. // { name: "问卷调查", tool: 4 },
  20152. // { name: "选择题", tool: 45 },
  20153. // { name: "倒计时", tool: 10 },
  20154. // { name: "问答", tool: 15 },
  20155. // { name: "课程设计", tool: 26 },
  20156. // { name: "训练服务器", tool: 18 },
  20157. // { name: "作业提交", tool: 16 },
  20158. // { name: "批量上传", tool: 50 },
  20159. // { name: "AIoT Blockly", tool: 21 },
  20160. // { name: "AI Python", tool: 23 },
  20161. // { name: "AI Blockly", tool: 24 },
  20162. // { name: "目标管理", tool: 25 },
  20163. // { name: "数学画板", tool: 31 },
  20164. // { name: "翻译", tool: 28 },
  20165. // { name: "魔盒识字", tool: 37 },
  20166. // { name: "数学画板", tool: 31 },
  20167. // { name: "24点", tool: 38 },
  20168. // { name: "GeoGebra", tool: 39 },
  20169. // { name: "源码编辑", tool: 32 },
  20170. // { name: "个人评价", tool: 40 },
  20171. // { name: "选择匹配", tool: 41 },
  20172. // { name: "汉字宫", tool: 44 },
  20173. // { name: "排序", tool: 47 },
  20174. // { name: "表格", tool: 48 },
  20175. // { name: "文档", tool: 52 },
  20176. // { name: "学生分组", tool: 49 },
  20177. // { name: "CocoPi", tool: 57 },
  20178. // { name: "模拟驾驶", tool: 58 },
  20179. // { name: "路径搜索", tool: 59 },
  20180. // { name: "深度学习", tool: 60 },
  20181. // { name: "全历史", tool: 61 },
  20182. // { name: "交互视频", tool: 62 },
  20183. // { name: "海龟编程", tool: 63 },
  20184. // { name: "挑人", tool: 65 },
  20185. // { name: "公式编辑", tool: 66 },
  20186. // { name: "分子结构", tool: 67 },
  20187. // { name: "时间轴", tool: 68 },
  20188. // ];
  20189. // var toolName = "";
  20190. // for(var w = 0;w<toolList.length;w++){
  20191. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20192. // toolName = toolList[w].name;
  20193. // }
  20194. // }
  20195. console.log(url);
  20196. this.downLoadAll(url, loading);
  20197. })
  20198. .catch(() => {});
  20199. },
  20200. downLoadAll(url, loading) {
  20201. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20202. const zip = new JSZip();
  20203. const cache = {};
  20204. const promises = [];
  20205. data.forEach((item) => {
  20206. const promise = getFile(item.url).then((data) => {
  20207. if (data.data != 1) {
  20208. // 下载文件, 并存成ArrayBuffer对象
  20209. const file_name =
  20210. item.name +
  20211. "." +
  20212. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20213. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20214. cache[file_name] = data.data;
  20215. }
  20216. });
  20217. promises.push(promise);
  20218. });
  20219. Promise.all(promises).then(() => {
  20220. zip.generateAsync({ type: "blob" }).then((content) => {
  20221. // 生成二进制流
  20222. FileSaver.saveAs(
  20223. content,
  20224. this.courseDetail.title + "-" + this.lang.ssHomeworkSubmissionTool + ".zip"
  20225. ); // 利用file-saver保存文件 自定义文件名
  20226. setTimeout(() => {
  20227. loading.close();
  20228. }, 2000);
  20229. });
  20230. });
  20231. },
  20232. pickStudent(stu) {
  20233. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20234. return;
  20235. }
  20236. this.$confirm(this.lang.ssAskStudentToAnswer.replace(/\*/g, stu.name), this.lang.ssPrompt, {
  20237. confirmButtonText: this.lang.ssConfirm,
  20238. cancelButtonText: this.lang.ssCancel,
  20239. type: "warning",
  20240. })
  20241. .then(() => {
  20242. let params = [
  20243. {
  20244. uid: stu.userid,
  20245. cid: this.id,
  20246. stage: this.courseType,
  20247. task: this.taskCount,
  20248. tool: this.toolindex,
  20249. },
  20250. ];
  20251. this.ajax
  20252. .post(this.$store.state.api + "updateCoursePick", params)
  20253. .then((res) => {
  20254. this.$message.success(this.lang.ssOperationSuccess);
  20255. this.getPick();
  20256. })
  20257. .catch((err) => {
  20258. this.$message.error(this.lang.ssNetworkPoor);
  20259. console.error(err);
  20260. });
  20261. })
  20262. .catch(() => {});
  20263. },
  20264. selectUser(){
  20265. let params = {
  20266. userid: this.userid,
  20267. };
  20268. this.ajax
  20269. .get(this.$store.state.api + "selectUser", params)
  20270. .then((res) => {
  20271. this.userMes = res.data[0];
  20272. })
  20273. .catch((err) => {
  20274. console.error(err);
  20275. });
  20276. },
  20277. setEngText(i){
  20278. this.newEngIndex = i;
  20279. this.$forceUpdate();
  20280. },
  20281. addCorrect(){
  20282. this.$confirm(this.lang.ssConfirmSubmitCorrection, this.lang.ssPrompt, {
  20283. confirmButtonText: this.lang.ssConfirm,
  20284. showCancelButton: false,
  20285. closeOnClickModal: false,
  20286. type: "warning",
  20287. })
  20288. .then(() => {
  20289. let params = {
  20290. cid: this.id,
  20291. s: parseInt(this.courseType),
  20292. t: this.taskCount,
  20293. tool: this.toolindex,
  20294. wid: this.engWid,
  20295. c: this.userid,
  20296. 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) : "",
  20297. };
  20298. this.ajax
  20299. .get(this.$store.state.api + "addEngC", params)
  20300. .then((res) => {
  20301. this.$message.success(this.lang.ssSubmitSuccess);
  20302. this.engUpdateDialogVisible = false;
  20303. })
  20304. .catch((err) => {
  20305. console.error(err);
  20306. });
  20307. })
  20308. .catch(() => {});
  20309. },
  20310. selectEngC(id,z){
  20311. let params = {
  20312. workid: id,
  20313. };
  20314. this.ajax
  20315. .get(this.$store.state.api + "selectEngC", params)
  20316. .then((res) => {
  20317. if(res.data[0].length == 0){
  20318. this.newEnglishList.engTitle = z.engTitle;
  20319. this.newEnglishList.engText = z.engText;
  20320. }else{
  20321. var a = res.data[0];
  20322. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20323. if(this.userMes[0].type == 2){
  20324. var snum = 0;
  20325. for(var i = 0;i<a.length;i++){
  20326. if(this.userMes[0].userid == a[i].correct){
  20327. this.newEnglishList = JSON.parse(a[i].cWork);
  20328. snum = 1;
  20329. }
  20330. }
  20331. if(snum == 0){
  20332. this.newEnglishList = { engTitle:"",engText:"" };
  20333. this.newEnglishList.engTitle = z.engTitle;
  20334. this.newEnglishList.engText = z.engText;
  20335. }
  20336. }else if(this.userMes[0].type == 1){
  20337. var num = 0;
  20338. for(var w= 0;w<a.length;w++){
  20339. if(this.userMes[0].userid == a[w].correct){
  20340. num = 1;
  20341. }
  20342. }
  20343. if(num == 0){
  20344. this.isNoUserid = true;
  20345. var c = JSON.parse(JSON.stringify(z));
  20346. this.oldEnglishJson1 = c;
  20347. }else{
  20348. this.isNoUserid = false;
  20349. }
  20350. var b = a.sort((item, index) => {
  20351. console.log(item)
  20352. if (item.correct === this.userMes[0].userid) {
  20353. return -1; // 将a移到前面
  20354. } else if (index.correct === this.userMes[0].userid) {
  20355. return 1; // 将b移到前面
  20356. } else {
  20357. return 0; // 保持默认顺序
  20358. }
  20359. });
  20360. for(var p = 0;p<b.length;p++){
  20361. for(var y = 0;y<ppp.length;y++){
  20362. if(b[p].id == ppp[y].id){
  20363. b[p].cWork = JSON.parse(ppp[y].cWork);
  20364. break
  20365. }
  20366. }
  20367. }
  20368. this.newEnglishList1 = b;
  20369. }
  20370. }
  20371. this.greyType = false;
  20372. setTimeout(() => {
  20373. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20374. if(this.newEnglishList1.length > 0){
  20375. if(this.isNoUserid == true){
  20376. this.engListLength = this.newEnglishList1.length + 1;
  20377. this.newEngIndex = -1;
  20378. }else{
  20379. this.engListLength = this.newEnglishList1.length;
  20380. this.newEngIndex = 0;
  20381. }
  20382. }
  20383. if(this.userMes[0].type == 2){
  20384. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20385. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20386. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20387. }else if(this.newEngIndex == -1){
  20388. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20389. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20390. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20391. }
  20392. }, 500);
  20393. this.engUpdateDialogVisible = true;
  20394. this.$forceUpdate();
  20395. })
  20396. .catch((err) => {
  20397. console.error(err);
  20398. });
  20399. },
  20400. getPick() {
  20401. if(this.getPickLoading) return
  20402. this.getPickLoading = true
  20403. let params = {
  20404. cid: this.id,
  20405. };
  20406. this.ajax
  20407. .get(this.$store.state.api + "getPick", params)
  20408. .then((res) => {
  20409. let array = [];
  20410. for (var i = 0; i < res.data[0].length; i++) {
  20411. array.push(res.data[0][i].userid);
  20412. }
  20413. this.isPickStudent = array;
  20414. if (array.indexOf(this.userid) !== -1) {
  20415. this.$confirm(this.lang.ssSelectedByTeacher, this.lang.ssPrompt, {
  20416. confirmButtonText: this.lang.ssConfirm,
  20417. showCancelButton: false,
  20418. closeOnClickModal: false,
  20419. type: "warning",
  20420. })
  20421. .then(() => {
  20422. let pa = [
  20423. {
  20424. uid: this.userid,
  20425. cid: this.id,
  20426. },
  20427. ];
  20428. this.ajax
  20429. .post(this.$store.state.api + "deletePick", pa)
  20430. .then((res) => {
  20431. this.getPick();
  20432. })
  20433. .catch((err) => {
  20434. this.$message.error(this.lang.ssNetworkPoor);
  20435. console.error(err);
  20436. });
  20437. })
  20438. .catch(() => {});
  20439. }
  20440. this.getPickLoading = false
  20441. })
  20442. .catch((err) => {
  20443. this.getPickLoading = false
  20444. this.$message.error(this.lang.ssNetworkPoor);
  20445. console.error(err);
  20446. });
  20447. },
  20448. foldEva() {
  20449. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20450. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20451. } else {
  20452. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20453. setTimeout(() => {
  20454. this.checkEva();
  20455. setTimeout(() => {
  20456. this.checkEva();
  20457. }, 500);
  20458. }, 0);
  20459. }
  20460. this.$forceUpdate();
  20461. },
  20462. panToolHeight(tool) {
  20463. var _tool = document.querySelectorAll('#'+tool)[0]
  20464. var _toolA = _tool ? _tool.offsetHeight : 0
  20465. var _toolC = 0
  20466. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20467. let boolean2 = (_toolA > _toolC) ? true : false
  20468. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20469. this.$forceUpdate();
  20470. },
  20471. async checkLink(url) {
  20472. // console.log(url)
  20473. let _url = url
  20474. try {
  20475. const response = await fetch(url);
  20476. if(!response.ok){
  20477. _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]))
  20478. }
  20479. // console.log(response.ok)
  20480. } catch (error) {
  20481. console.error('Error checking link:', error);
  20482. // console.log(false)
  20483. _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]))
  20484. }
  20485. // console.log(_url)
  20486. return _url
  20487. },
  20488. getScoreList(){
  20489. let params = {
  20490. cid: this.id,
  20491. };
  20492. this.ajax
  20493. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20494. .then((res) => {
  20495. let result = res.data;
  20496. this.scoreList.datalist = result[0];
  20497. this.scoreList.isScoreList = result[1];
  20498. })
  20499. .catch((err) => {
  20500. console.error(err);
  20501. });
  20502. },
  20503. setClassRoomHelperWidth(width){
  20504. this.classRoomHelperWidth = width
  20505. },
  20506. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20507. this.$refs.choseWorksDetailDialogRef.open({
  20508. toolType:tooc,
  20509. tType: this.tType,
  20510. toolIndex: toolIndex
  20511. });
  20512. this.changeSplitScreenBehavior({
  20513. code: 1,
  20514. form: {
  20515. toolType:tooc,
  20516. toolIndex: toolIndex,
  20517. courseType: this.courseType,
  20518. taskCount: this.taskCount,
  20519. type: 0
  20520. }
  20521. });
  20522. },
  20523. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20524. this.$refs.statisticalAnalysisRef.open({
  20525. worksStudent: this.worksStudent[toolIndex],
  20526. tType: this.tType,
  20527. toolIndex: toolIndex
  20528. });
  20529. this.changeSplitScreenBehavior({
  20530. code: 2,
  20531. form: {
  20532. toolType:4,
  20533. courseType: this.courseType,
  20534. taskCount: this.taskCount,
  20535. toolIndex: toolIndex,
  20536. type: 0
  20537. }
  20538. });
  20539. },
  20540. statisticalAnalysisRefresh(toolIndex) {
  20541. this.$refs.statisticalAnalysisRef.refreshData({
  20542. worksStudent: this.worksStudent[toolIndex],
  20543. tType: this.tType,
  20544. toolIndex: toolIndex
  20545. });
  20546. },
  20547. async splitScreenBehavior(type = 0) {
  20548. // return;
  20549. if (this.splitScreenData.loading)
  20550. return this.$message.info(this.lang.ssOperationTooFast);
  20551. if (type == 0) {
  20552. //关闭分屏
  20553. this.splitScreenData.isOpen = false;
  20554. // this.splitScreenData.userId = "";
  20555. // this.splitScreenData.uid = "";
  20556. this.splitScreenData.behavior = null;
  20557. await this.updateSplitScreenData(1);
  20558. this.$message.success(this.lang.ssSplitScreenClosed);
  20559. this.studentFreePreview(false);
  20560. this.OpenJobPreview(false);
  20561. // this.followingMode(false);
  20562. } else if (type == 1) {
  20563. //开启分屏
  20564. this.splitScreenData.isOpen = true;
  20565. this.splitScreenData.userId = this.userid;
  20566. this.splitScreenData.uid = this.splitScreenData.myUid;
  20567. this.splitScreenData.behavior = null;
  20568. let status = await this.updateSplitScreenData(0);
  20569. this.changeSplitScreenBehavior({form:{}})
  20570. if (status == 1) {
  20571. this.$message.success(this.lang.ssSplitScreenOpened);
  20572. this.studentFreePreview(false);
  20573. this.OpenJobPreview(true);
  20574. // this.followingMode(true);
  20575. } else {
  20576. this.splitScreenData.isOpen = false;
  20577. this.splitScreenData.userId = "";
  20578. this.splitScreenData.uid = "";
  20579. this.splitScreenData.behavior = null;
  20580. this.$message.success(this.lang.ssSplitScreenOpenFailed);
  20581. }
  20582. }
  20583. },
  20584. enterFullScreen() {
  20585. let element = document.documentElement;
  20586. if (element.requestFullscreen) {
  20587. element.requestFullscreen();
  20588. } else if (element.mozRequestFullScreen) { /* Firefox */
  20589. element.mozRequestFullScreen();
  20590. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  20591. element.webkitRequestFullscreen();
  20592. } else if (element.msRequestFullscreen) { /* IE/Edge */
  20593. element.msRequestFullscreen();
  20594. }
  20595. },
  20596. exitFullScreen() {
  20597. if (document.exitFullscreen) {
  20598. document.exitFullscreen();
  20599. } else if (document.mozCancelFullScreen) { /* Firefox */
  20600. document.mozCancelFullScreen();
  20601. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  20602. document.webkitExitFullscreen();
  20603. } else if (document.msExitFullscreen) { /* IE/Edge */
  20604. document.msExitFullscreen();
  20605. }
  20606. },
  20607. confirmOpen(){
  20608. this.splitScreenData.isOpen = true;
  20609. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  20610. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  20611. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  20612. this.confirmOpenDig = false
  20613. if (!document.fullscreenElement) {
  20614. this.enterFullScreen();
  20615. }
  20616. // if (this.timer2) {
  20617. // clearInterval(this.timer2);
  20618. // this.timer2 = null;
  20619. // }
  20620. // this.timer2 = setInterval(()=> {
  20621. // this.getSplitScreenData();//获取分屏数据
  20622. // }, 1000);
  20623. this.$message.success(this.lang.ssSplitScreenEnabled);
  20624. },
  20625. getSplitScreenData() {
  20626. // return;
  20627. // if (this.tType != 1) return;
  20628. if(this.getSplitScreenDataLoading) return
  20629. this.getSplitScreenDataLoading = true
  20630. let params = {
  20631. cid: this.id
  20632. };
  20633. this.ajax
  20634. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20635. .then(async res => {
  20636. let data = res.data[0][0]["splitScreenData"];
  20637. console.log("获取了分屏数:", data);
  20638. if (data) {
  20639. data = JSON.parse(data);
  20640. if (
  20641. !this.splitScreenData.isOpen &&
  20642. data.isOpen &&
  20643. this.splitScreenData.myUid == data.uid
  20644. ) {
  20645. this.splitScreenData.isOpen = false;
  20646. this.splitScreenData.userId = "";
  20647. this.splitScreenData.uid = "";
  20648. this.splitScreenData.behavior = null;
  20649. await this.updateSplitScreenData(1);
  20650. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20651. this.confirmOpenDig = true
  20652. this.confirmOpenDigData = data
  20653. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20654. this.splitScreenData.isOpen = false;
  20655. this.splitScreenData.userId = "";
  20656. this.splitScreenData.uid = "";
  20657. this.splitScreenData.behavior = null;
  20658. this.$message.error(this.lang.ssSplitScreenEnded);
  20659. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20660. this.splitScreenData.isOpen = true;
  20661. this.splitScreenData.uid = data.uid;
  20662. this.splitScreenData.userId = data.userId;
  20663. this.splitScreenData.behavior = data.behavior;
  20664. }
  20665. this.doSplitScreenBehavior();
  20666. } else {
  20667. if (this.splitScreenData.isOpen) {
  20668. this.splitScreenData.isOpen = false;
  20669. this.splitScreenData.userId = "";
  20670. this.splitScreenData.uid = "";
  20671. this.splitScreenData.behavior = null;
  20672. this.$message.error(this.lang.ssSplitScreenEnded);
  20673. // if (this.timer2) {
  20674. // clearInterval(this.timer2);
  20675. // this.timer2 = null;
  20676. // }
  20677. // this.timer2 = setInterval(()=> {
  20678. // this.getSplitScreenData();//获取分屏数据
  20679. // }, 5000);
  20680. this.$confirm(this.lang.ssTeacherEndedSplitScreen, this.lang.ssPrompt, {
  20681. confirmButtonText: '确定', //确认按钮的文字
  20682. showCancelButton: false, //是否显示取消按钮
  20683. showClose: false, //是否显示关闭按钮
  20684. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  20685. type: "warning",
  20686. })
  20687. .then(() => {
  20688. if (document.fullscreenElement) {
  20689. this.exitFullScreen();
  20690. }
  20691. })
  20692. .catch(() => {});
  20693. }
  20694. }
  20695. this.getSplitScreenDataLoading = false
  20696. })
  20697. .catch(e => {
  20698. this.getSplitScreenDataLoading = false
  20699. console.log("获取分屏数出错:", e);
  20700. });
  20701. },
  20702. doSplitScreenBehavior() {
  20703. if (
  20704. this.splitScreenData.isOpen &&
  20705. this.splitScreenData.uid != this.splitScreenData.myUid
  20706. ) {
  20707. let behavior = this.splitScreenData.behavior;
  20708. if (behavior) {
  20709. if (behavior.code === 99) {
  20710. //初始化
  20711. this.fullDialogVisible = false;
  20712. if(this.$refs.choseWorksDetailDialogRef.show){
  20713. this.$refs.choseWorksDetailDialogRef.close();
  20714. }
  20715. if(this.$refs.statisticalAnalysisRef.show){
  20716. this.$refs.statisticalAnalysisRef.close();
  20717. }
  20718. }
  20719. if (behavior.code === 0) {
  20720. //开启内容列表弹窗
  20721. this.checkFileFull1(behavior.form.t, behavior.form.f);
  20722. }else{
  20723. this.fullDialogVisible = false;
  20724. }
  20725. if (behavior.code === 1) {
  20726. //关于选择题的作业详细的操作
  20727. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20728. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20729. this.courseType = behavior.form.courseType;
  20730. this.taskCount = behavior.form.taskCount;
  20731. }
  20732. this.$nextTick(() => {
  20733. if (this.$refs.choseWorksDetailDialogRef.show) {
  20734. //已经打开了
  20735. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  20736. } else {
  20737. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  20738. }
  20739. });
  20740. }else{
  20741. this.$refs.choseWorksDetailDialogRef.close()
  20742. }
  20743. if(behavior.code === 2){
  20744. if(this.$refs.statisticalAnalysisRef.show){
  20745. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20746. }else{
  20747. this.$refs.statisticalAnalysisRef.open({
  20748. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20749. tType: this.tType,
  20750. toolIndex: behavior.form.toolIndex
  20751. });
  20752. }
  20753. }else{
  20754. this.$refs.statisticalAnalysisRef.close();
  20755. }
  20756. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  20757. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  20758. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  20759. if (behavior.form.courseType != this.courseType ||
  20760. behavior.form.taskCount != this.taskCount ||
  20761. behavior.form.toolType != this.toolindex
  20762. ) {
  20763. var a = document.scrollingElement;
  20764. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  20765. if (target) {
  20766. target.scrollIntoView(true);
  20767. setTimeout(()=>{
  20768. let scrollBody = document.querySelector('.body_student').parentElement
  20769. scrollBody.scrollTop = scrollBody.scrollTop - 100
  20770. }, 0);
  20771. // setTimeout(() => {
  20772. // a.scrollTop = 0
  20773. // }, 0);
  20774. }
  20775. }
  20776. if(this.courseType !=behavior.form.courseType){
  20777. this.courseType = behavior.form.courseType;
  20778. }
  20779. if(this.taskCount !=behavior.form.taskCount){
  20780. this.taskCount = behavior.form.taskCount;
  20781. }
  20782. if((behavior.form.toolType || behavior.form.toolType == 0) && (this.toolindex != behavior.form.toolType)){
  20783. this.toolindex = behavior.form.toolType;
  20784. }
  20785. // if(behavior.form.navId){
  20786. // this.navId = behavior.form.navId
  20787. // }
  20788. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  20789. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  20790. console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  20791. this.getCourseDetail()
  20792. }
  20793. this.setContent2(false)
  20794. }
  20795. } else {
  20796. }
  20797. }
  20798. },
  20799. updateSplitScreenData(empty = 0) {
  20800. return new Promise(resolve => {
  20801. if(this.userid!==this.courseDetail.userid){
  20802. if(!this.courseDetail.userid){
  20803. return setTimeout(()=>{
  20804. this.updateSplitScreenData(empty)
  20805. },2000)
  20806. }
  20807. return;
  20808. };
  20809. if (
  20810. this.splitScreenData.uid == this.splitScreenData.myUid &&
  20811. this.splitScreenData.userId == this.userid
  20812. ) {
  20813. this.splitScreenData.loading = true;
  20814. let params = [
  20815. {
  20816. cid: this.id,
  20817. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  20818. }
  20819. ];
  20820. this.ajax
  20821. .post(
  20822. this.$store.state.api + "update_courseSplitScreenData",
  20823. params
  20824. )
  20825. .then(res => {
  20826. this.splitScreenData.loading = false;
  20827. if (res.data == 1) {
  20828. resolve(1);
  20829. console.log("修改分屏数据成功");
  20830. }
  20831. })
  20832. .catch(e => {
  20833. this.splitScreenData.loading = false;
  20834. console.log("修改分屏数据失败", e);
  20835. resoleve(0);
  20836. });
  20837. } else if (empty == 2 && this.tType == 1) {
  20838. let params = [
  20839. {
  20840. cid: this.id,
  20841. nData: ""
  20842. }
  20843. ];
  20844. return this.ajax
  20845. .post(
  20846. this.$store.state.api + "update_courseSplitScreenData",
  20847. params
  20848. )
  20849. .then(_ => resolve(1))
  20850. .catch(_ => resolve(0));
  20851. } else {
  20852. return resolve(0);
  20853. }
  20854. });
  20855. },
  20856. changeSplitScreenBehavior(newValue) {
  20857. if (
  20858. this.splitScreenData.isOpen &&
  20859. this.splitScreenData.uid == this.splitScreenData.myUid
  20860. ) {
  20861. let _behavior = null;
  20862. if(!newValue){
  20863. _behavior = {}
  20864. }else{
  20865. _behavior = newValue
  20866. }
  20867. if(_behavior.form){
  20868. _behavior.form.taskCount = this.taskCount;
  20869. _behavior.form.courseType = this.courseType
  20870. }else{
  20871. _behavior.form = {
  20872. taskCount:this.taskCount,
  20873. courseType:this.courseType
  20874. }
  20875. }
  20876. this.splitScreenData.behavior = _behavior;
  20877. this.updateSplitScreenData(0);
  20878. }
  20879. },
  20880. studentFreePreview(flag) {
  20881. this.IsLookOpen = flag;
  20882. this.followingMode(flag)
  20883. this.updateLookOpen();
  20884. },
  20885. OpenJobPreview(flag) {
  20886. this.sIsOpen = flag;
  20887. this.updateSLook();
  20888. },
  20889. followingMode(flag) {
  20890. this.IsFollow = flag;
  20891. this.updateFollow();
  20892. },
  20893. StulookMode(flag) {
  20894. this.IsStulook = flag;
  20895. this.updateIsStulook();
  20896. },
  20897. doSyncClassData(){
  20898. if(this.courseDetail.userid == this.userid && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  20899. let endTime = new Date().toLocaleString("zh-CN", {
  20900. hour12: false,
  20901. timeZone: "Asia/Shanghai"
  20902. }).replace(/\//g, "-")
  20903. let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
  20904. this.syncClassData({
  20905. courseId: this.id,
  20906. title: this.courseDetail.title,
  20907. courseGrade: this.tcid2 ? this.tcid2 : '',
  20908. courseTime: courseTime,
  20909. startTime: this.startTime,
  20910. endTime: endTime,
  20911. })
  20912. console.log('同步数据')
  20913. }
  20914. },
  20915. },
  20916. directives: {
  20917. // 使用局部注册指令的方式
  20918. resize: {
  20919. // 指令的名称
  20920. bind(el, binding) {
  20921. // el为绑定的元素,binding为绑定给指令的对象
  20922. let width = "",
  20923. height = "";
  20924. function isReize() {
  20925. const style = document.defaultView.getComputedStyle(el);
  20926. if (width !== style.width || height !== style.height) {
  20927. binding.value(); // 关键
  20928. }
  20929. width = style.width;
  20930. height = style.height;
  20931. }
  20932. el.__vueSetInterval__ = setInterval(isReize, 300);
  20933. },
  20934. unbind(el) {
  20935. clearInterval(el.__vueSetInterval__);
  20936. },
  20937. },
  20938. autoHeight: {
  20939. update(el, binding) {
  20940. const { value } = binding
  20941. if (value && typeof value === 'number') {
  20942. el.style.height = `${value}px`
  20943. } else {
  20944. el.style.height = 'auto'
  20945. }
  20946. },
  20947. componentUpdated(el) {
  20948. el.style.height = `${el.scrollHeight + 5}px`
  20949. },
  20950. },
  20951. },
  20952. beforeDestroy() {
  20953. window.onresize = null;
  20954. clearInterval(this.timer);
  20955. this.timer = null;
  20956. clearInterval(this.timer2);
  20957. this.timer2 = null;
  20958. clearInterval(this.opertimer);
  20959. this.opertimer = null;
  20960. this.updateSplitScreenData(1);
  20961. this.doSyncClassData();
  20962. },
  20963. computed: {
  20964. renderedFormula2() {
  20965. return function(val){
  20966. // 处理换行符和HTML实体
  20967. const normalized = val
  20968. .replace(/&amp;/g, '&')
  20969. .replace(/<br\/?>/g, '\n');
  20970. // 匹配行内公式($...$)和块级公式($$...$$)
  20971. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  20972. try {
  20973. return katex.renderToString(expr.trim(), {
  20974. displayMode: false,
  20975. throwOnError: false,
  20976. macros: {
  20977. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  20978. }
  20979. });
  20980. } catch (e) {
  20981. console.warn('KaTeX渲染失败:', e);
  20982. return `<span style="color:red">${expr}</span>`;
  20983. }
  20984. })
  20985. }
  20986. },
  20987. renderedFormula() {
  20988. return function(val){
  20989. try {
  20990. // 判断是否含有HTML标签,<tag ...>...</tag>
  20991. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  20992. if (!hasTag) {
  20993. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  20994. // 纯文本,整体渲染
  20995. try {
  20996. return katex.renderToString(val.trim(), {
  20997. throwOnError: false,
  20998. strict: false,
  20999. output: "htmlAndMathml"
  21000. });
  21001. } catch (e) {
  21002. return val; // 渲染失败原样输出
  21003. }
  21004. } else {
  21005. // 有标签,对每个标签内容渲染
  21006. return val.replace(
  21007. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  21008. (match, tag, attrs, inner) => {
  21009. let html;
  21010. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21011. try {
  21012. html = katex.renderToString(inner.trim(), {
  21013. throwOnError: false,
  21014. strict: false,
  21015. output: "htmlAndMathml"
  21016. });
  21017. } catch (e) {
  21018. html = inner;
  21019. }
  21020. return `<${tag}${attrs}>${html}</${tag}>`;
  21021. }
  21022. );
  21023. }
  21024. } catch (e) {
  21025. console.error('KaTeX渲染错误:', e);
  21026. return val;
  21027. }
  21028. }
  21029. },
  21030. isAndroid() {
  21031. return /Android/i.test(navigator.userAgent);
  21032. },
  21033. getHeight(){
  21034. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21035. },
  21036. contentConvent() {
  21037. return function (c) {
  21038. return c
  21039. ? c
  21040. .replaceAll(/\r\n/g, "<br/>")
  21041. .replaceAll(/\n/g, "<br/>")
  21042. .replaceAll(/\s/g, "&nbsp")
  21043. : "";
  21044. };
  21045. },
  21046. MarkdownT() {
  21047. return function (c) {
  21048. let md = new MarkdownIt();
  21049. return c
  21050. ? md.render(c) : "";
  21051. };
  21052. },
  21053. commentRight(){
  21054. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21055. return "35px";
  21056. }
  21057. return `calc(${this.classRoomHelperWidth} + 5px)`
  21058. // if(this.$refs["classRoomHelperRef"].type==0){
  21059. // return "100px";
  21060. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21061. // return "502px"
  21062. // }else{
  21063. // return "0px"
  21064. // }
  21065. },
  21066. checkUpload() {
  21067. return function () {
  21068. var studentK = [];
  21069. if (this.plworkFile.length > 0) {
  21070. for (var z = 0; z < this.plworkFile.length; z++) {
  21071. studentK.push(this.plworkFile[z].username);
  21072. }
  21073. studentK = studentK.join(",");
  21074. }
  21075. var a = this.uploadStudentJuri.filter((el) => {
  21076. return studentK.indexOf(el.userid) == -1;
  21077. });
  21078. return a;
  21079. };
  21080. },
  21081. getSName() {
  21082. return function (name) {
  21083. var check = name;
  21084. this.uploadStudentJuri.forEach((el) => {
  21085. if (el.userid == check) {
  21086. check = el.name ? el.name : el.username;
  21087. }
  21088. });
  21089. return check;
  21090. };
  21091. },
  21092. getImgList() {
  21093. return function (val) {
  21094. let srcList = []; // 定义一个数组用来接收后面的img地址
  21095. val.replace(
  21096. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21097. function (match, capture) {
  21098. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21099. srcList.push(capture);
  21100. }
  21101. );
  21102. return srcList;
  21103. };
  21104. },
  21105. retrnToolHeight(){
  21106. return function (tool) {
  21107. var _tool = document.querySelectorAll('#'+tool)[0]
  21108. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21109. };
  21110. },
  21111. Correct() {
  21112. return function (c,d) {
  21113. let w = "";
  21114. let a = this.correctWord;
  21115. for(var k = 0;k<a.length;k++){
  21116. //diffWordsWithSpace
  21117. if(a.length > 1){
  21118. if(a[k].added == true){
  21119. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21120. }else if(a[k].removed == true){
  21121. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21122. }else{
  21123. w += '<span>' + a[k].value + '</span>';
  21124. }
  21125. }else{
  21126. w = c
  21127. }
  21128. console.log("👇👇!+++==")
  21129. console.log(w)
  21130. //diffChars方法
  21131. // if(w == ""){
  21132. // if(a.length > 1){
  21133. // if(a[k].added == true){
  21134. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21135. // }else if(a[k].removed == true){
  21136. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21137. // }
  21138. // }else{
  21139. // w = c
  21140. // }
  21141. // }else{
  21142. // if(k == a.length - 1){
  21143. // if(a[k].added == true){
  21144. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21145. // }else if(a[k].removed == true){
  21146. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21147. // }
  21148. // }else{
  21149. // if(a[k].added == true){
  21150. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21151. // }else if(a[k].removed == true){
  21152. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21153. // }
  21154. // }
  21155. // }
  21156. }
  21157. c = w;
  21158. return c;
  21159. };
  21160. },
  21161. },
  21162. mounted() {
  21163. this.setoTime("1");
  21164. this.startTime = new Date().toLocaleString("zh-CN", {
  21165. hour12: false,
  21166. timeZone: "Asia/Shanghai"
  21167. }).replace(/\//g, "-")
  21168. // if (this.tType == 1) {
  21169. // // 开局关闭学生查看内容
  21170. // this.StulookMode(false)
  21171. // // 开局打开跟随模式
  21172. // this.followingMode(true)
  21173. // }
  21174. document.body.addEventListener("click", (e) => {
  21175. if (this.isUpdateToolDetail1) {
  21176. this.updateToolDetail(this.toolDetailIndex);
  21177. }
  21178. });
  21179. try {
  21180. if (this.screenType == 2) {
  21181. window.topU.postMessage({ allScreen: 4 }, "*");
  21182. } else if (this.screenType == 3) {
  21183. window.topU.postMessage({ allScreen: 5 }, "*");
  21184. } else if (this.screenType == 1) {
  21185. window.topU.postMessage({ allScreen: 6 }, "*");
  21186. }
  21187. } catch (error) {
  21188. console.log(error)
  21189. }
  21190. setTimeout(() => {
  21191. this.doSyncClassData();
  21192. }, 1000);
  21193. this.getCode2()
  21194. this.setOperationTime();
  21195. this.selectEva();
  21196. this.getCourseDetail(10);
  21197. this.selectCount();
  21198. this.getHomeWork();
  21199. this.selectUser();
  21200. this.getAIJ();
  21201. this.contentDialog = false;
  21202. this.setContent2(true);
  21203. if (this.tType == 4) {
  21204. this.pzDialog = true;
  21205. this.selectPz();
  21206. }
  21207. // 获取评分列表
  21208. this.getScoreList()
  21209. this.updateSplitScreenData(2);
  21210. this.splitScreenData.myUid = uuidv4();
  21211. document.scrollingElement.scrollTop = 0;
  21212. window.addEventListener("resize", () => {
  21213. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21214. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21215. if (this.showType == 2 || this.showType == 3) {
  21216. document.getElementsByClassName("navBox")[0].style.height =
  21217. a - 40 + 0+ "px";
  21218. } else {
  21219. document.getElementsByClassName("navBox")[0].style.height =
  21220. a - 40 + "px";
  21221. }
  21222. });
  21223. // let _this = this;
  21224. // setTimeout(() => {
  21225. // _this.vedioTime = [];
  21226. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21227. // _this.vedioTime[i] = document.getElementsByClassName(
  21228. // "vjs-duration-display"
  21229. // )[i].textContent;
  21230. // }
  21231. // }, 1000);
  21232. },
  21233. };
  21234. </script>
  21235. <style scoped>
  21236. @media screen and (max-width: 1280px) {
  21237. /* .courseIndex > div:first-child(2) {
  21238. width: 15% !important;
  21239. } */
  21240. /* .navText {
  21241. width: 120px !important;
  21242. } */
  21243. .evaCss {
  21244. flex-direction: column !important;
  21245. align-items: center !important;
  21246. }
  21247. .elist_input {
  21248. width: 90% !important;
  21249. }
  21250. .dialog_diy1 >>> .el-dialog {
  21251. width: 100% !important;
  21252. }
  21253. .rightWidthCss {
  21254. width: 100% !important;
  21255. }
  21256. .dialog_diy3 >>> .el-dialog {
  21257. width: 100% !important;
  21258. }
  21259. .addToolCss {
  21260. right: 0 !important;
  21261. width: 100% !important;
  21262. min-width: unset !important;
  21263. }
  21264. }
  21265. .evaCssMax {
  21266. flex-direction: column !important;
  21267. align-items: center !important;
  21268. }
  21269. .dialog_diy >>> .el-dialog {
  21270. margin-top: 10vh !important;
  21271. }
  21272. .body_student {
  21273. width: 77%;
  21274. height: 100%;
  21275. position: absolute;
  21276. left: 22%;
  21277. top: 0;
  21278. }
  21279. .student_head {
  21280. width: 100%;
  21281. margin: 20px auto 0;
  21282. padding-bottom: 20px;
  21283. display: flex;
  21284. flex-direction: column;
  21285. flex-wrap: nowrap;
  21286. align-items: flex-start;
  21287. justify-content: flex-start;
  21288. }
  21289. .pb_left {
  21290. width: 15%;
  21291. margin-right: 10px;
  21292. background: rgb(255, 255, 255);
  21293. position: fixed;
  21294. height: calc(100% - 40px);
  21295. border-radius: 20px;
  21296. padding-bottom: 15px;
  21297. box-sizing: border-box;
  21298. }
  21299. .wheel > img,
  21300. .project > img,
  21301. .star > img,
  21302. .evaluate > img,
  21303. .up_photo > img,
  21304. .chapter_add > img,
  21305. .deleteWord > img,
  21306. .question > img,
  21307. .homework > img {
  21308. width: 100%;
  21309. height: 100%;
  21310. }
  21311. .upCover > img {
  21312. width: 131px;
  21313. height: 69px;
  21314. object-fit: cover;
  21315. }
  21316. .upCover {
  21317. width: calc(100% / 3.5);
  21318. position: relative;
  21319. margin: 0 15px 10px 0;
  21320. display: flex;
  21321. flex-direction: column;
  21322. flex-wrap: nowrap;
  21323. justify-content: center;
  21324. align-content: center;
  21325. align-items: center;
  21326. height: fit-content;
  21327. }
  21328. .upCover2 {
  21329. width: 100%;
  21330. position: relative;
  21331. margin: 0 15px 10px 0;
  21332. display: flex;
  21333. flex-direction: column;
  21334. flex-wrap: nowrap;
  21335. justify-content: center;
  21336. align-content: center;
  21337. align-items: center;
  21338. }
  21339. .upCover2 > img {
  21340. width: 100%;
  21341. height: 90px;
  21342. object-fit: contain;
  21343. }
  21344. .chapter_add {
  21345. width: 120px;
  21346. position: relative;
  21347. text-align: center;
  21348. }
  21349. .isAddThings {
  21350. margin-top: 20px;
  21351. position: relative;
  21352. text-align: center;
  21353. background: #f7f8fa;
  21354. height: 90px;
  21355. width: 90px;
  21356. display: flex;
  21357. flex-direction: column;
  21358. justify-content: center;
  21359. }
  21360. .deleteWord {
  21361. width: 22px;
  21362. height: 22px;
  21363. position: absolute;
  21364. right: -5px;
  21365. top: -5px;
  21366. cursor: pointer;
  21367. }
  21368. .box_course {
  21369. /* width: 60%; */
  21370. width: calc(100% - 300px);
  21371. }
  21372. .wheel {
  21373. width: 100%;
  21374. /* height: 100%; */
  21375. height: 650px;
  21376. }
  21377. .right_box {
  21378. display: flex;
  21379. flex-direction: column;
  21380. margin-left: 30px;
  21381. justify-content: space-around;
  21382. }
  21383. .right_box_title {
  21384. font-size: 23px;
  21385. }
  21386. .people {
  21387. display: flex;
  21388. }
  21389. .student_body {
  21390. width: 100%;
  21391. margin: 0 auto;
  21392. margin-top: 10px;
  21393. padding: 0 0 20px;
  21394. }
  21395. .study_top {
  21396. margin-top: 100px;
  21397. width: 100%;
  21398. height: auto;
  21399. padding-bottom: 20px;
  21400. margin-left: 2px;
  21401. min-height: 90%;
  21402. }
  21403. .study_top .checkbox {
  21404. display: flex;
  21405. align-items: center;
  21406. padding: 15px 0 15px 30px;
  21407. flex: 0 0 auto;
  21408. font-weight: bold;
  21409. border-bottom: 1px solid #eee;
  21410. }
  21411. .study_top .check {
  21412. padding-bottom: 5px;
  21413. text-align: center;
  21414. cursor: pointer;
  21415. height: 30px;
  21416. box-sizing: border-box;
  21417. display: flex;
  21418. }
  21419. .study_top .checked {
  21420. border-bottom: 4px solid #3fc6a0;
  21421. padding-bottom: 5px;
  21422. color: #3fc6a0;
  21423. display: flex;
  21424. height: 35px;
  21425. }
  21426. .study_top .checked > div,
  21427. .study_top .check > div {
  21428. margin-right: 5px;
  21429. }
  21430. .videoTop {
  21431. display: flex;
  21432. flex-direction: row;
  21433. justify-content: space-between;
  21434. background: #fff;
  21435. align-items: center;
  21436. width: 95%;
  21437. padding: 20px;
  21438. }
  21439. .filebox {
  21440. display: flex;
  21441. flex-wrap: wrap;
  21442. flex-direction: column;
  21443. padding: 0 0 5px;
  21444. position: relative;
  21445. }
  21446. .filebox:before {
  21447. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21448. position: absolute;
  21449. top: 20px;
  21450. left: 13px;
  21451. border-left: 2px dotted #cad1dc;
  21452. height: calc(100% - 15px);
  21453. }
  21454. .toolHeng2 > div:last-child::before {
  21455. height: calc(100% - 43px);
  21456. }
  21457. .filebox .tooldetail {
  21458. width: calc(100%);
  21459. margin: 0px 12px;
  21460. padding: 12px;
  21461. line-height: 30px;
  21462. word-break: break-word;
  21463. background: #ffffff;
  21464. border-radius: 8px 8px 8px 8px;
  21465. opacity: 1;
  21466. border: 1px solid #cad1dc;
  21467. overflow:hidden;
  21468. box-sizing:border-box;
  21469. }
  21470. .pb_content >>> .katex {
  21471. font-size: 16px;
  21472. width: 100%;
  21473. white-space: normal;
  21474. }
  21475. .pb_content >>> .katex .base{
  21476. display: inline !important;
  21477. display: contents !important;
  21478. }
  21479. .pb_content >>> .katex .base .cjk_fallback{
  21480. white-space: normal !important;
  21481. display: inline !important;
  21482. }
  21483. .file {
  21484. display: flex;
  21485. flex-direction: column;
  21486. align-items: center;
  21487. justify-content: center;
  21488. cursor: pointer;
  21489. width: 200px;
  21490. }
  21491. .file div {
  21492. margin-top: 10px;
  21493. width: 150px;
  21494. text-align: center;
  21495. overflow: hidden;
  21496. white-space: nowrap;
  21497. text-overflow: ellipsis;
  21498. }
  21499. .media {
  21500. display: flex;
  21501. flex-direction: column;
  21502. align-items: center;
  21503. justify-content: center;
  21504. margin: 0 20px 20px 0;
  21505. cursor: pointer;
  21506. margin: 12px 0 5px 15px;
  21507. overflow: hidden;
  21508. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21509. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21510. box-sizing: border-box;
  21511. }
  21512. .media img {
  21513. height: 90px;
  21514. width: 160px;
  21515. object-fit: cover;
  21516. }
  21517. .media .title {
  21518. padding: 5px;
  21519. text-align: left;
  21520. width: 100%;
  21521. box-sizing: border-box;
  21522. }
  21523. .media .btn {
  21524. width: 100%;
  21525. height: 35px;
  21526. line-height: 35px;
  21527. color: #fff;
  21528. background: #606060;
  21529. text-align: center;
  21530. overflow: hidden;
  21531. white-space: nowrap;
  21532. text-overflow: ellipsis;
  21533. }
  21534. .detail_content_top {
  21535. width: 100%;
  21536. padding: 25px 0 25px 0;
  21537. }
  21538. .detail_title {
  21539. text-align: center;
  21540. font-size: 24px;
  21541. }
  21542. .detail_time {
  21543. font-size: 13px;
  21544. padding: 15px 0 0 40px;
  21545. }
  21546. .detail_content {
  21547. line-height: 2pc;
  21548. width: 90%;
  21549. margin: 0 auto;
  21550. padding-top: 30px;
  21551. text-indent: 30px;
  21552. overflow: auto;
  21553. height: 200px;
  21554. }
  21555. .score_box >>> .el-rate {
  21556. margin-left: 10px;
  21557. }
  21558. .dialog_change >>> .el-dialog {
  21559. border-radius: 5px;
  21560. }
  21561. .dialog_change >>> .el-dialog__header {
  21562. background: #f2f2f2;
  21563. text-align: center;
  21564. }
  21565. .dialog_change >>> .el-dialog__title {
  21566. line-height: 5px;
  21567. }
  21568. .dialog_change >>> .el-dialog__body {
  21569. background: #fff;
  21570. padding: 10px 20px;
  21571. }
  21572. .score_box {
  21573. display: flex;
  21574. align-items: center;
  21575. margin-bottom: 18px;
  21576. margin-top: 20px;
  21577. }
  21578. .up_photo {
  21579. width: 120px;
  21580. cursor: pointer;
  21581. margin-top: 10px;
  21582. }
  21583. .up_photo2 {
  21584. width: 180px;
  21585. box-sizing: border-box;
  21586. min-width: 180px;
  21587. height: 180px;
  21588. max-height: 180px;
  21589. min-height: 180px;
  21590. cursor: pointer;
  21591. display: flex;
  21592. flex-direction: column;
  21593. align-items: center;
  21594. justify-content: center;
  21595. background: rgb(242, 246, 255);
  21596. /* padding: 25px; */
  21597. margin-bottom: 10px;
  21598. }
  21599. .up_photo2 img {
  21600. width: 50%;
  21601. height: auto;
  21602. }
  21603. .up_photo2 span {
  21604. color: #898989;
  21605. }
  21606. .plworkBox {
  21607. display: flex;
  21608. align-items: center;
  21609. margin-top: 10px;
  21610. flex-wrap: wrap;
  21611. }
  21612. .upload_send {
  21613. margin: 30px auto 30px;
  21614. width: 60%;
  21615. background: #3681fc;
  21616. text-align: center;
  21617. height: 35px;
  21618. line-height: 35px;
  21619. color: #fff;
  21620. border-radius: 5px;
  21621. cursor: pointer;
  21622. }
  21623. .marginT {
  21624. margin-top: 20px;
  21625. }
  21626. .cd_content_steps {
  21627. display: flex;
  21628. width: 90%;
  21629. justify-content: space-around;
  21630. border-top: 1px solid #eeeeee;
  21631. }
  21632. .cd_steps_box {
  21633. display: flex;
  21634. justify-content: center;
  21635. align-items: center;
  21636. flex-direction: column;
  21637. cursor: pointer;
  21638. }
  21639. .first {
  21640. display: flex;
  21641. align-items: center;
  21642. margin: 15px 0 20px 0;
  21643. font-size: 20px;
  21644. }
  21645. .first > div:nth-child(2) {
  21646. font-size: 16px !important;
  21647. padding-left: 10px;
  21648. line-height: 26px;
  21649. box-sizing: border-box;
  21650. }
  21651. .blue_box_one {
  21652. text-align: center;
  21653. color: #fff;
  21654. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  21655. border-radius: 7px;
  21656. margin: 10px;
  21657. cursor: pointer;
  21658. width: 95%;
  21659. height: 45px;
  21660. display: flex;
  21661. flex-direction: row;
  21662. justify-content: flex-start;
  21663. align-items: center;
  21664. }
  21665. .blue_box_one > div:nth-child(1) {
  21666. line-height: 30px;
  21667. margin: 0 5px 0 10px;
  21668. width: 30%;
  21669. min-width: 70px;
  21670. border-radius: 4px;
  21671. }
  21672. .blue_box_one > div:nth-child(2) {
  21673. white-space: nowrap;
  21674. text-overflow: ellipsis;
  21675. overflow: hidden;
  21676. word-break: break-all;
  21677. width: 70%;
  21678. text-align: left;
  21679. margin-right: 10px;
  21680. max-width: calc(100% - 85px);
  21681. }
  21682. .blue_box_one > div:nth-child(2):hover {
  21683. overflow: hidden;
  21684. text-overflow: ellipsis;
  21685. white-space: nowrap;
  21686. cursor: pointer;
  21687. }
  21688. .upFile {
  21689. margin: 0 auto;
  21690. width: 120px;
  21691. background: #3681fc;
  21692. color: #fff;
  21693. height: 30px;
  21694. text-align: center;
  21695. line-height: 30px;
  21696. border-radius: 5px;
  21697. font-size: 14px;
  21698. cursor: pointer;
  21699. }
  21700. .courseTitle {
  21701. width: 85%;
  21702. margin: 10px auto 26px auto;
  21703. display: flex;
  21704. flex-direction: row;
  21705. align-items: center;
  21706. justify-content: space-between;
  21707. text-align: center;
  21708. }
  21709. .courseTitle .ctitle {
  21710. font-size: 20px;
  21711. font-weight: bold;
  21712. color: #0e1e33;
  21713. white-space: nowrap;
  21714. overflow: hidden;
  21715. text-overflow: ellipsis;
  21716. }
  21717. .inviteBox {
  21718. font-size: 14px;
  21719. /* margin-top: 5px; */
  21720. color: #00000099;
  21721. text-align: center;
  21722. }
  21723. .courseTitle >>> .el-tooltip {
  21724. width: 100%;
  21725. white-space: nowrap;
  21726. overflow: hidden;
  21727. text-overflow: ellipsis;
  21728. word-break: break-word;
  21729. }
  21730. .ml {
  21731. margin-left: 20px;
  21732. color: #5b7dba;
  21733. border-left: 3px solid #5b7dba;
  21734. padding-left: 5px;
  21735. font-weight: bold;
  21736. }
  21737. .return {
  21738. width: 2rem;
  21739. height: 2rem;
  21740. cursor: pointer;
  21741. }
  21742. .return > img {
  21743. width: 100%;
  21744. height: 100%;
  21745. }
  21746. .returnBtn {
  21747. /* width: 86px; */
  21748. /* height: 36px; */
  21749. background: #3681fc;
  21750. border-radius: 4px;
  21751. color: #fff;
  21752. text-align: center;
  21753. padding: 8px 10px;
  21754. /* line-height: 36px; */
  21755. margin-right: 20px;
  21756. cursor: pointer;
  21757. font-size: 14px;
  21758. font-weight: 400;
  21759. display: flex;
  21760. flex-direction: row;
  21761. flex-wrap: nowrap;
  21762. align-items: center;
  21763. justify-content: center;
  21764. }
  21765. .reBtnIcon,
  21766. .commentIcon,
  21767. .vedioIcon,
  21768. .vedioIcon1 {
  21769. /* width: 36px; */
  21770. height: 36px;
  21771. border-radius: 4px;
  21772. position: relative;
  21773. /* background: #e0eafb; */
  21774. background: #0061ff;
  21775. cursor: pointer;
  21776. margin-right: 12px;
  21777. display: flex;
  21778. align-items: center;
  21779. padding: 0 10px;
  21780. box-sizing: border-box;
  21781. font-size: 14px;
  21782. color: #fff;
  21783. }
  21784. .reBtnIcon::before,
  21785. .commentIcon::before,
  21786. .vedioIcon::before,
  21787. .vedioIcon1::before {
  21788. content: "";
  21789. display: block;
  21790. background-size: 100% 100%;
  21791. background-repeat: no-repeat;
  21792. width: 20px;
  21793. height: 20px;
  21794. margin-right: 5px;
  21795. /* position: absolute; */
  21796. /* top: 8px;
  21797. left: 8px; */
  21798. }
  21799. .vedioIcon1 {
  21800. background: #f63564;
  21801. }
  21802. .reBtnIcon::before {
  21803. background-image: url("../../assets/icon/newIcons/refresh.png");
  21804. }
  21805. .commentIcon::before {
  21806. background-image: url("../../assets/icon/newIcons/comment.png");
  21807. }
  21808. .vedioIcon::before {
  21809. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21810. }
  21811. .vedioIcon1::before {
  21812. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  21813. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21814. }
  21815. .tool {
  21816. display: flex;
  21817. flex-direction: column;
  21818. flex-wrap: nowrap;
  21819. width: 13%;
  21820. margin: 0 30px;
  21821. align-items: center;
  21822. position: relative;
  21823. padding: 10px 25px;
  21824. cursor: pointer;
  21825. }
  21826. .whiteBIcon {
  21827. width: 150px;
  21828. }
  21829. .whiteBIcon > img {
  21830. width: 100%;
  21831. height: 100%;
  21832. }
  21833. .mask {
  21834. background-color: rgba(0, 0, 0, 0);
  21835. position: fixed;
  21836. top: 0;
  21837. left: 0;
  21838. width: 100%;
  21839. height: 100%;
  21840. z-index: 20000;
  21841. display: flex;
  21842. align-items: center;
  21843. justify-content: center;
  21844. }
  21845. .progressBox {
  21846. width: 500px;
  21847. height: 180px;
  21848. background: #fff;
  21849. border-radius: 10px;
  21850. box-shadow: 0 0 6px 1px #bfbfbf;
  21851. display: flex;
  21852. align-items: center;
  21853. justify-content: center;
  21854. flex-direction: column;
  21855. position: relative;
  21856. color: #6c6c6c;
  21857. }
  21858. .progressBox >>> .el-progress-bar__outer {
  21859. background-color: #d1dfff !important;
  21860. }
  21861. .progressBox .lbox {
  21862. height: 50px;
  21863. font-size: 19px;
  21864. display: flex;
  21865. align-items: center;
  21866. color: #747474;
  21867. }
  21868. .progressBox .lbox img {
  21869. width: 40px;
  21870. margin-right: 20px;
  21871. }
  21872. .closeCss {
  21873. position: absolute;
  21874. top: 8px;
  21875. right: 8px;
  21876. cursor: pointer;
  21877. width: 20px;
  21878. height: 20px;
  21879. }
  21880. .closeCss > img {
  21881. width: 100%;
  21882. height: 100%;
  21883. }
  21884. .uploadVedio {
  21885. display: flex;
  21886. flex-direction: column;
  21887. flex-wrap: nowrap;
  21888. justify-content: center;
  21889. align-items: center;
  21890. margin: 0 15px 10px 0;
  21891. }
  21892. .uploadVedio > img {
  21893. width: 30px;
  21894. height: 30px;
  21895. }
  21896. .uploadVedio > span {
  21897. white-space: nowrap;
  21898. overflow: hidden;
  21899. text-overflow: ellipsis;
  21900. width: 75px;
  21901. margin-top: 7px;
  21902. }
  21903. .picName {
  21904. white-space: nowrap;
  21905. overflow: hidden;
  21906. text-overflow: ellipsis;
  21907. width: 75px;
  21908. margin-top: 7px;
  21909. }
  21910. .new_top {
  21911. display: flex;
  21912. background: #fff;
  21913. flex-direction: row;
  21914. justify-content: flex-start;
  21915. align-items: center;
  21916. height: 60px;
  21917. position: fixed;
  21918. top: 20px;
  21919. left: 22%;
  21920. width: 77%;
  21921. z-index: 999;
  21922. border-radius: 12px 12px 0 0;
  21923. border-bottom: 1px solid #cad1dc;
  21924. padding: 10px 0;
  21925. }
  21926. .new_topFixed {
  21927. width: 100%;
  21928. height: 40px;
  21929. position: fixed;
  21930. top: 0px;
  21931. display: block;
  21932. background: #f2f2f2;
  21933. z-index: 998;
  21934. }
  21935. .before {
  21936. position: absolute;
  21937. background: #c3dad4;
  21938. width: 6px;
  21939. height: 100%;
  21940. }
  21941. .courseIndex {
  21942. display: flex;
  21943. flex-direction: row;
  21944. align-items: center;
  21945. width: calc(100% - 745px);
  21946. }
  21947. .courseIndex > div:nth-child(1) {
  21948. margin: 0 0 0 10px;
  21949. font-size: 20px;
  21950. min-width: 100px;
  21951. font-weight: bold;
  21952. border-left: 4px solid #3363b9;
  21953. height: 32px;
  21954. text-align: center;
  21955. line-height: 35px;
  21956. }
  21957. .courseIndex > div:nth-child(2) {
  21958. font-size: 20px;
  21959. /* width: 300px; */
  21960. max-width: calc(100% - 105px);
  21961. white-space: nowrap;
  21962. overflow: hidden;
  21963. text-overflow: ellipsis;
  21964. }
  21965. .courseIndex > div:nth-child(3) {
  21966. border-bottom: 1px solid #d7d7d7;
  21967. padding-bottom: 5px;
  21968. background: #3681fc;
  21969. width: 55px;
  21970. min-width: 55px;
  21971. border-radius: 5px;
  21972. color: #fff;
  21973. text-align: center;
  21974. height: 20px;
  21975. line-height: 26px;
  21976. font-size: 14px;
  21977. margin: 0 0 0 10px;
  21978. }
  21979. .course_text {
  21980. padding: 20px 0 0 15px;
  21981. text-indent: 30px;
  21982. width: 80%;
  21983. min-height: 20px;
  21984. }
  21985. .vedioList {
  21986. background: #f2f2f2;
  21987. border: 1px solid #ececec;
  21988. /* width: 38.8%; */
  21989. /* width: 300px; */
  21990. width: 100%;
  21991. height: 445px;
  21992. border-radius: 10px;
  21993. overflow: hidden;
  21994. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  21995. }
  21996. .vedioNav {
  21997. margin: 10px 0 0 15px;
  21998. border-bottom: 1px solid #d7d7d7;
  21999. padding-bottom: 5px;
  22000. background: #3681fc;
  22001. width: 55px;
  22002. min-width: 55px;
  22003. border-radius: 5px;
  22004. color: #fff;
  22005. text-align: center;
  22006. height: 20px;
  22007. line-height: 26px;
  22008. font-size: 14px;
  22009. }
  22010. .queTop {
  22011. display: flex;
  22012. padding: 20px 0 20px 30px;
  22013. width: 100%;
  22014. flex-direction: row;
  22015. justify-content: flex-start;
  22016. align-items: center;
  22017. box-sizing: border-box;
  22018. }
  22019. .queTopTitle {
  22020. display: flex;
  22021. flex-direction: row;
  22022. flex-wrap: nowrap;
  22023. align-items: center;
  22024. font-weight: bold;
  22025. font-size: 20px;
  22026. color: rgb(14, 30, 51);
  22027. }
  22028. .queTopTitle::before {
  22029. content: "";
  22030. width: 2px;
  22031. height: 22px;
  22032. background: #3681fc;
  22033. border-radius: 3px;
  22034. display: block;
  22035. margin: 2px 6px 0 0;
  22036. }
  22037. .queTopRight {
  22038. display: flex;
  22039. flex-direction: row;
  22040. flex-wrap: nowrap;
  22041. align-items: center;
  22042. }
  22043. .queTopClose {
  22044. margin-right: 20px;
  22045. cursor: pointer;
  22046. position: relative;
  22047. display: flex;
  22048. }
  22049. .closeImg,
  22050. .openImg {
  22051. width: 25px;
  22052. height: 25px;
  22053. position: absolute;
  22054. left: -20px;
  22055. top: -1px;
  22056. }
  22057. .closeImg > img,
  22058. .openImg > img {
  22059. width: 100%;
  22060. height: 100%;
  22061. }
  22062. .question {
  22063. width: 40px;
  22064. margin-right: 10px;
  22065. margin-top: 7px;
  22066. flex-shrink: 0;
  22067. }
  22068. .queTitle {
  22069. margin-left: 5px;
  22070. font-size: 25px;
  22071. display: flex;
  22072. align-items: center;
  22073. }
  22074. .queTitle > div:nth-child(1){
  22075. width: 120px;
  22076. flex-shrink: 0;
  22077. }
  22078. .addEditor {
  22079. width: 100px;
  22080. height: 30px;
  22081. background: #42cda6;
  22082. color: #fff;
  22083. border-radius: 5px;
  22084. text-align: center;
  22085. line-height: 30px;
  22086. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22087. cursor: pointer;
  22088. }
  22089. /* .vedioName {
  22090. cursor: pointer;
  22091. margin: 0px 0px 10px 5px;
  22092. white-space: nowrap;
  22093. overflow: hidden;
  22094. text-overflow: ellipsis;
  22095. width: 100%;
  22096. } */
  22097. .vedioTime {
  22098. width: 35px;
  22099. position: absolute;
  22100. color: #fff;
  22101. bottom: 0px;
  22102. right: 0px;
  22103. text-align: center;
  22104. background: #46411f;
  22105. height: 20px;
  22106. font-size: 14px;
  22107. line-height: 20px;
  22108. }
  22109. .homework {
  22110. width: 200px;
  22111. display: flex;
  22112. flex-direction: column;
  22113. flex-wrap: nowrap;
  22114. align-items: center;
  22115. cursor: pointer;
  22116. }
  22117. .homebox {
  22118. display: flex;
  22119. flex-wrap: wrap;
  22120. flex-direction: row;
  22121. justify-content: flex-start;
  22122. align-items: center;
  22123. padding: 15px 0;
  22124. }
  22125. .isChooseActive {
  22126. color: #3681fc !important;
  22127. font-weight: bold !important;
  22128. }
  22129. .chooseWho {
  22130. display: flex;
  22131. width: 100%;
  22132. flex-direction: row;
  22133. flex-wrap: nowrap;
  22134. justify-content: flex-start;
  22135. padding-bottom: 10px;
  22136. }
  22137. .chooseWho > div {
  22138. cursor: pointer;
  22139. padding-bottom: 10px;
  22140. margin: 0 30px 0 0;
  22141. font-weight: 400;
  22142. color: #0e1e33;
  22143. }
  22144. .addPoint > div > img {
  22145. cursor: pointer;
  22146. width: 85px;
  22147. border-radius: 15px;
  22148. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22149. }
  22150. .addPoint > div {
  22151. display: flex;
  22152. flex-direction: column;
  22153. flex-wrap: nowrap;
  22154. align-items: center;
  22155. }
  22156. .isBorder > div {
  22157. margin: 0 0 10px 0;
  22158. align-items: flex-start !important;
  22159. }
  22160. .noiframeBox {
  22161. display: flex;
  22162. flex-wrap: wrap;
  22163. }
  22164. .iframeBox iframe {
  22165. width: 100%;
  22166. height: 800px;
  22167. border: none;
  22168. margin-bottom: 20px;
  22169. border: 1px solid #ccc;
  22170. }
  22171. .upload_toolBtn {
  22172. background: #3681fc;
  22173. color: #fff;
  22174. width: 110px;
  22175. text-align: center;
  22176. height: 35px;
  22177. line-height: 35px;
  22178. font-size: 14px;
  22179. border-radius: 5px;
  22180. cursor: pointer;
  22181. position: absolute;
  22182. right: 10px;
  22183. bottom: 0;
  22184. }
  22185. .binfo_input,
  22186. .pj {
  22187. font: inherit;
  22188. color: currentColor;
  22189. width: 100%;
  22190. margin: 0;
  22191. padding: 15px 14px;
  22192. display: block;
  22193. min-width: 0;
  22194. outline: none;
  22195. box-sizing: content-box;
  22196. background: none;
  22197. -webkit-tap-highlight-color: transparent;
  22198. border: 1px solid rgba(0, 0, 0, 0.23);
  22199. border-radius: 4px;
  22200. box-sizing: border-box;
  22201. resize: none;
  22202. }
  22203. .binfo_input:focus-visible {
  22204. border: 1px solid rgba(61, 103, 188);
  22205. }
  22206. .dialog_diy >>> .el-dialog__header,
  22207. .dialog_diy1 >>> .el-dialog__header {
  22208. background: #454545 !important;
  22209. padding: 15px 20px;
  22210. }
  22211. .dialog_diy >>> .el-dialog__title,
  22212. .dialog_diy1 >>> .el-dialog__title {
  22213. color: #fff;
  22214. }
  22215. .dialog_diy >>> .el-dialog__headerbtn,
  22216. .dialog_diy1 >>> .el-dialog__headerbtn {
  22217. top: 19px;
  22218. }
  22219. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22220. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22221. color: #fff;
  22222. }
  22223. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22224. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22225. color: #fff;
  22226. }
  22227. .dialog_diy1 >>> .el-dialog__body {
  22228. padding: 0;
  22229. }
  22230. .dialog_diy >>> .el-dialog__body,
  22231. .dialog_diy >>> .el-dialog__footer,
  22232. .dialog_diy1 >>> .el-dialog__footer {
  22233. background: #fafafa;
  22234. }
  22235. .a_addBox {
  22236. padding: 0 0 0 15px;
  22237. }
  22238. .a_add_box {
  22239. padding: 10px;
  22240. background: #fff;
  22241. margin-bottom: 10px;
  22242. border-radius: 5px;
  22243. box-shadow: 0 0 5px 0 #d5d5d5;
  22244. }
  22245. .a_add_head {
  22246. display: flex;
  22247. align-items: flex-start;
  22248. /* justify-content: space-between; */
  22249. flex-direction: column;
  22250. /* flex-direction: row; */
  22251. margin: 10px 0 20px 0;
  22252. font-size: 18px;
  22253. width: 100%;
  22254. }
  22255. .askIndex {
  22256. background: #3681fc;
  22257. border-radius: 50%;
  22258. color: #fff;
  22259. width: 25px;
  22260. height: 25px;
  22261. min-width: 25px;
  22262. min-height: 25px;
  22263. text-align: center;
  22264. line-height: 25px;
  22265. margin-right: 5px;
  22266. }
  22267. .a_add_head .a_add_head_input {
  22268. width: 300px;
  22269. }
  22270. .a_add_head .a_add_head_div {
  22271. display: flex;
  22272. align-items: center;
  22273. justify-content: space-between;
  22274. }
  22275. .a_add_body {
  22276. display: flex;
  22277. align-items: center;
  22278. }
  22279. .a_add_input {
  22280. display: flex;
  22281. align-items: center;
  22282. flex-wrap: wrap;
  22283. width: 100%;
  22284. }
  22285. .a_add_input >>> .el-radio-group,
  22286. .a_add_input >>> .el-checkbox-group {
  22287. width: 100%;
  22288. }
  22289. .a_add_input >>> .el-radio,
  22290. .a_add_input >>> .el-checkbox {
  22291. display: flex;
  22292. flex-direction: row;
  22293. flex-wrap: nowrap;
  22294. align-items: center;
  22295. padding: 15px 0;
  22296. }
  22297. .a_add_input >>> .el-radio:not(:last-child),
  22298. .a_add_input >>> .el-checkbox:not(:last-child) {
  22299. width: 100%;
  22300. border-bottom: 1px solid #efefef;
  22301. }
  22302. .redioStyle >>> .el-radio__label {
  22303. font-size: 18px;
  22304. }
  22305. .redioStyle >>> .el-radio__label > span,
  22306. .redioStyle >>> .el-checkbox__label > span {
  22307. word-break: break-all;
  22308. white-space: normal;
  22309. }
  22310. .redioStyle >>> .el-checkbox__label {
  22311. font-size: 18px;
  22312. }
  22313. .toolHeng2 {
  22314. width: 100%;
  22315. padding-left: 15px;
  22316. box-sizing: border-box;
  22317. }
  22318. .workNav {
  22319. font-size: 20px;
  22320. font-weight: bold;
  22321. color: #0e1e33;
  22322. display: flex;
  22323. flex-direction: row;
  22324. flex-wrap: nowrap;
  22325. align-items: center;
  22326. padding: 15px 0 15px 0;
  22327. }
  22328. .workNav::before {
  22329. content: "";
  22330. width: 2px;
  22331. height: 22px;
  22332. background: #3681fc;
  22333. border-radius: 3px;
  22334. display: block;
  22335. margin: 2px 6px 0 0;
  22336. }
  22337. .toolHeng {
  22338. display: flex;
  22339. flex-direction: row;
  22340. flex-wrap: wrap;
  22341. justify-content: flex-start;
  22342. align-items: center;
  22343. width: 100%;
  22344. }
  22345. .toolHeng > div {
  22346. padding-left: 20px;
  22347. }
  22348. .isWidth {
  22349. width: 20%;
  22350. }
  22351. .textTitle {
  22352. display: flex;
  22353. flex-direction: row;
  22354. flex-wrap: nowrap;
  22355. align-items: center;
  22356. width: 95%;
  22357. }
  22358. .textTitle >>> .el-form-item__label {
  22359. font-size: 22px;
  22360. color: #918f8f;
  22361. width: 100px;
  22362. }
  22363. .textTitle >>> .el-form-item__content {
  22364. width: calc(100% - 100px);
  22365. }
  22366. .textCss >>> .el-dialog {
  22367. width: 800px !important;
  22368. height: 400px;
  22369. background: #fafafa;
  22370. }
  22371. .textCss >>> .el-dialog__body {
  22372. margin: 55px 8% 0 8%;
  22373. padding: 0 !important;
  22374. }
  22375. .textCss >>> .el-dialog__footer {
  22376. padding-top: 38px;
  22377. }
  22378. .toolsCss >>> .el-dialog__body {
  22379. padding: 20px;
  22380. }
  22381. .lineCss >>> .el-dialog__body {
  22382. display: flex;
  22383. flex-direction: row;
  22384. align-items: center;
  22385. justify-content: center;
  22386. }
  22387. .newNav {
  22388. display: flex;
  22389. flex-direction: row;
  22390. align-items: baseline;
  22391. justify-content: flex-start;
  22392. }
  22393. .navListItem {
  22394. width: calc(100% - 20px);
  22395. height: 50px;
  22396. margin: 0px auto 10px;
  22397. display: flex;
  22398. flex-direction: row;
  22399. flex-wrap: nowrap;
  22400. align-items: center;
  22401. justify-content: space-between;
  22402. background: #f0f4fa;
  22403. border-radius: 6px 6px 6px 6px;
  22404. }
  22405. .navText {
  22406. cursor: pointer;
  22407. white-space: nowrap;
  22408. overflow: hidden;
  22409. text-overflow: ellipsis;
  22410. width: 220px;
  22411. padding: 0 10px;
  22412. font-weight: 400;
  22413. color: #0e1e33;
  22414. }
  22415. .downIcon {
  22416. width: 20px;
  22417. min-width: 20px;
  22418. height: 20px;
  22419. margin-right: 15px;
  22420. cursor: pointer;
  22421. }
  22422. .downIcon > img {
  22423. width: 100%;
  22424. height: 100%;
  22425. }
  22426. .noVedio {
  22427. display: flex;
  22428. flex-direction: row;
  22429. justify-content: center;
  22430. align-content: center;
  22431. }
  22432. .noNavText {
  22433. cursor: pointer;
  22434. margin: 0px 0px 10px 5px;
  22435. width: 112px;
  22436. }
  22437. .listNoVedio {
  22438. margin: 0 0 0 30px;
  22439. width: 97%;
  22440. }
  22441. .video-player >>> .video-js {
  22442. height: 100%;
  22443. }
  22444. .hangVedioList {
  22445. width: 90% !important;
  22446. height: 150px !important;
  22447. margin: 20px 0 0 30px;
  22448. }
  22449. .hangVedio {
  22450. width: 100%;
  22451. height: 170px !important;
  22452. align-items: flex-start !important;
  22453. }
  22454. .hangHand {
  22455. height: 150px !important;
  22456. }
  22457. .twoChild {
  22458. width: 95%;
  22459. margin: 10px;
  22460. border-radius: 5px;
  22461. background: #f2f2f2;
  22462. display: flex;
  22463. flex-direction: column;
  22464. flex-wrap: nowrap;
  22465. justify-content: flex-start;
  22466. align-items: flex-start;
  22467. transition: all 0.5s;
  22468. overflow: hidden;
  22469. height: 0;
  22470. background: #e7f3ff;
  22471. }
  22472. .twoChild > div:nth-child(1) {
  22473. margin-top: 5px;
  22474. }
  22475. .navChild {
  22476. width: 100%;
  22477. cursor: pointer;
  22478. margin-bottom: 10px;
  22479. position: relative;
  22480. }
  22481. .navChild img {
  22482. position: absolute;
  22483. right: 11px;
  22484. width: 15px;
  22485. top: 50%;
  22486. transform: translateY(-50%);
  22487. }
  22488. .navActive,
  22489. .toolActive {
  22490. height: auto !important;
  22491. overflow: auto !important;
  22492. /* padding-bottom: 16px; */
  22493. }
  22494. .toolActive {
  22495. padding: 0;
  22496. }
  22497. .navTask {
  22498. display: flex;
  22499. flex-direction: row;
  22500. flex-wrap: nowrap;
  22501. align-items: center;
  22502. align-content: flex-start;
  22503. height: 40px;
  22504. justify-content: flex-start;
  22505. padding: 0 10px;
  22506. width: 100%;
  22507. box-sizing: border-box;
  22508. }
  22509. .navTaskname {
  22510. white-space: nowrap;
  22511. text-overflow: ellipsis;
  22512. overflow: hidden;
  22513. word-break: break-all;
  22514. padding-left: 5px;
  22515. }
  22516. .openTaskActive {
  22517. /* background-color: #e0eafb !important;
  22518. color: #0061ff; */
  22519. color:#fff;
  22520. background: rgb(55, 129, 252) !important;
  22521. }
  22522. .iframeName {
  22523. margin: 5px 0;
  22524. border-left: 4px solid #41c4a4;
  22525. padding-left: 4px;
  22526. }
  22527. .toolTitle {
  22528. margin: 0px 0px 20px;
  22529. font-size: 20px;
  22530. font-weight: 500;
  22531. border-left: 4px solid #41c4a4;
  22532. padding-left: 4px;
  22533. }
  22534. .cru_selectBox {
  22535. overflow: auto;
  22536. width: 95%;
  22537. margin: 17px auto 0;
  22538. height: calc(100% - 40px - 21px - 20px - 17px);
  22539. background: #fff;
  22540. border-radius: 8px;
  22541. }
  22542. .cru_selectBox::-webkit-scrollbar,
  22543. .study_top::-webkit-scrollbar,
  22544. .textContent::-webkit-scrollbar {
  22545. /*滚动条整体样式*/
  22546. width: 6px;
  22547. /*高宽分别对应横竖滚动条的尺寸*/
  22548. height: 6px;
  22549. }
  22550. /*定义滚动条轨道 内阴影+圆角*/
  22551. .cru_selectBox::-webkit-scrollbar-track,
  22552. .study_top::-webkit-scrollbar-track,
  22553. .textContent::-webkit-scrollbar {
  22554. border-radius: 10px;
  22555. background-color: #b8bdc9;
  22556. }
  22557. /*定义滑块 内阴影+圆角*/
  22558. .cru_selectBox::-webkit-scrollbar-thumb,
  22559. .study_top::-webkit-scrollbar-thumb,
  22560. .textContent::-webkit-scrollbar-thumb {
  22561. border-radius: 10px;
  22562. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22563. background-color: #2c5ab3;
  22564. }
  22565. .vedioBox {
  22566. border-radius: 0 0 20px 20px;
  22567. background: #fff;
  22568. overflow: auto;
  22569. }
  22570. .taskBox {
  22571. width: 98%;
  22572. background: #f0f4fa;
  22573. margin: 10px auto;
  22574. padding: 0 10px;
  22575. border-radius: 4px;
  22576. box-sizing: border-box;
  22577. }
  22578. .vedioTaskBox {
  22579. width: 100%;
  22580. display: flex;
  22581. flex-direction: row;
  22582. flex-wrap: nowrap;
  22583. align-items: flex-start;
  22584. position: relative;
  22585. }
  22586. .toolBox {
  22587. margin: 15px 0 0 25px;
  22588. display: flex;
  22589. position: relative;
  22590. padding: 18px 20px;
  22591. border-top-left-radius: 5px;
  22592. border-top-right-radius: 5px;
  22593. width: 90%;
  22594. }
  22595. .btnAll {
  22596. position: absolute;
  22597. right: 0;
  22598. display: flex;
  22599. flex-direction: row;
  22600. flex-wrap: nowrap;
  22601. align-items: center;
  22602. }
  22603. .btnLeft,
  22604. .btnRight {
  22605. display: flex;
  22606. flex-direction: row;
  22607. flex-wrap: nowrap;
  22608. align-items: center;
  22609. padding: 5px 0;
  22610. }
  22611. .btnLeft {
  22612. border-right: 1px solid #cad1dc;
  22613. }
  22614. .btnLeft > .custom-tooltip {
  22615. background: #3681fc;
  22616. color: #fff;
  22617. }
  22618. .last:hover {
  22619. background: #3383fa !important;
  22620. color: #fff;
  22621. border: 1px solid #3383fa !important;
  22622. }
  22623. .last,
  22624. .returnBtn1 {
  22625. width: 90px;
  22626. height: 36px;
  22627. background: #ffffff;
  22628. border-radius: 4px;
  22629. border: 1px solid #0061ff;
  22630. color: #0061ff;
  22631. cursor: pointer;
  22632. display: flex;
  22633. flex-direction: row;
  22634. flex-wrap: nowrap;
  22635. align-items: center;
  22636. justify-content: center;
  22637. margin-left: 12px;
  22638. }
  22639. .returnBtn1 {
  22640. background: #f0f4fa;
  22641. border-radius: 4px;
  22642. border: 1px solid #cad1dc;
  22643. margin: 0 12px;
  22644. }
  22645. .lastImg {
  22646. min-width: 15px;
  22647. width: 15px;
  22648. height: 15px;
  22649. display: flex;
  22650. }
  22651. .lastText {
  22652. padding: 0 5px 0 5px;
  22653. box-sizing: border-box;
  22654. font-size: 14px;
  22655. }
  22656. .lastImg > img {
  22657. width: 100%;
  22658. height: 100%;
  22659. }
  22660. /* .vedioTimeBox {
  22661. display: flex;
  22662. flex-direction: row;
  22663. align-items: center;
  22664. flex-wrap: nowrap;
  22665. position: relative;
  22666. } */
  22667. .navBox {
  22668. background: #fff;
  22669. height: calc(100% - 40px);
  22670. overflow-y: auto;
  22671. overflow-x: hidden;
  22672. }
  22673. .worksBox {
  22674. margin: 0 0 10px 25px;
  22675. border-bottom: 1px solid #eeeeee;
  22676. padding: 18px 20px;
  22677. border-radius: 4px;
  22678. width: 90%;
  22679. }
  22680. .worksBTitle {
  22681. font-size: 20px;
  22682. padding-bottom: 15px;
  22683. border-bottom: 1px solid #eeeeee;
  22684. display: flex;
  22685. align-items: center;
  22686. }
  22687. .greenBox {
  22688. width: 5px;
  22689. height: 30px;
  22690. background: #63b6fa;
  22691. margin-right: 5px;
  22692. }
  22693. .worksDetailBox {
  22694. display: flex;
  22695. width: 100%;
  22696. flex-direction: row;
  22697. flex-wrap: wrap;
  22698. align-items: flex-end;
  22699. justify-content: flex-start;
  22700. padding: 15px 5px;
  22701. box-sizing: border-box;
  22702. }
  22703. .works {
  22704. display: flex;
  22705. flex-direction: column;
  22706. flex-wrap: nowrap;
  22707. align-items: flex-start;
  22708. justify-content: flex-start;
  22709. align-content: center;
  22710. max-width: 240px;
  22711. width: calc(100% / 3 - 10px);
  22712. height: auto;
  22713. margin-right: 10px;
  22714. margin-bottom: 10px;
  22715. overflow: hidden;
  22716. height: 140px;
  22717. box-shadow: 0 0 6px 1px #dfdada;
  22718. border-radius: 15px;
  22719. }
  22720. .workImg {
  22721. width: 100%;
  22722. /* height: calc(100% - 40px); */
  22723. height: 105px;
  22724. position: relative;
  22725. }
  22726. .workImg > img {
  22727. width: 100%;
  22728. height: 100%;
  22729. object-fit: contain;
  22730. cursor: pointer;
  22731. }
  22732. .worksName {
  22733. height: 40px;
  22734. line-height: 40px;
  22735. display: flex;
  22736. width: 100%;
  22737. flex-direction: row;
  22738. flex-wrap: nowrap;
  22739. justify-content: space-between;
  22740. align-items: center;
  22741. margin: 0 0 0 10px;
  22742. }
  22743. .worksName > div:nth-child(1) {
  22744. width: 110px;
  22745. white-space: nowrap;
  22746. overflow: hidden;
  22747. text-overflow: ellipsis;
  22748. }
  22749. .worksName > div:nth-child(2) {
  22750. color: #b7b4b5;
  22751. }
  22752. .noWorksS {
  22753. padding: 15px 0;
  22754. display: flex;
  22755. flex-direction: row;
  22756. flex-wrap: wrap;
  22757. align-items: center;
  22758. justify-content: flex-start;
  22759. }
  22760. .noWorksName,
  22761. .isWorksName,
  22762. .isWorksName2 {
  22763. background: #ddebf8;
  22764. color: #000;
  22765. width: 90px;
  22766. height: 25px;
  22767. text-align: center;
  22768. line-height: 25px;
  22769. border-radius: 4px;
  22770. margin: 10px 15px 10px 0;
  22771. white-space: nowrap;
  22772. overflow: hidden;
  22773. padding: 5px;
  22774. text-overflow: ellipsis;
  22775. cursor: pointer;
  22776. border: 1px solid #ddebf8;
  22777. }
  22778. .noWorksName {
  22779. background: #fff;
  22780. color: #0061ff;
  22781. border: 1px solid #0061ff;
  22782. }
  22783. .noWorksName > span{
  22784. max-width: 100%;
  22785. display: block;
  22786. overflow: hidden;
  22787. text-overflow: ellipsis;
  22788. white-space: nowrap;
  22789. }
  22790. .noWorksName2 {
  22791. background: #fff;
  22792. color: #0061ff;
  22793. width: 90px;
  22794. height: 25px;
  22795. text-align: center;
  22796. line-height: 25px;
  22797. border-radius: 4px;
  22798. margin: 10px 15px 10px 0;
  22799. white-space: nowrap;
  22800. overflow: hidden;
  22801. padding: 5px;
  22802. text-overflow: ellipsis;
  22803. cursor: pointer;
  22804. border: 1px solid #0061ff;
  22805. }
  22806. .noWorksName2 > span {
  22807. max-width: 100%;
  22808. display: block;
  22809. overflow: hidden;
  22810. text-overflow: ellipsis;
  22811. white-space: nowrap;
  22812. }
  22813. .isWorksName2 {
  22814. width: 100px;
  22815. height: 40px;
  22816. line-height: 40px;
  22817. position: relative;
  22818. background: #dae6f9;
  22819. }
  22820. .isWorksName {
  22821. background: #e7ebf1 !important;
  22822. width: 100px;
  22823. height: 40px;
  22824. line-height: 40px;
  22825. position: relative;
  22826. color: #acb4bf;
  22827. border: 1px solid #cad1dc !important;
  22828. }
  22829. .isSelectName,
  22830. .noWorksName:hover {
  22831. background: #3383fa !important;
  22832. color: #fff !important;
  22833. border: 1px solid #3383fa !important;
  22834. }
  22835. .title {
  22836. background: #1e5cc9;
  22837. /* width: 98%; */
  22838. height: 45px;
  22839. color: #fff;
  22840. line-height: 45px;
  22841. padding-left: 20px;
  22842. box-sizing: border-box;
  22843. }
  22844. .textBox {
  22845. font-size: 20px;
  22846. width: 90%;
  22847. display: flex;
  22848. flex-direction: column;
  22849. align-items: center;
  22850. margin: 20px auto 0;
  22851. max-height: calc(100% - 75px);
  22852. overflow: auto;
  22853. }
  22854. .textContent {
  22855. font-size: 18px;
  22856. width: 95%;
  22857. max-width: 95%;
  22858. }
  22859. .answerBg {
  22860. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  22861. background-size: 100% 100%;
  22862. width: 100%;
  22863. height: 100%;
  22864. color: #fff;
  22865. text-align: center;
  22866. display: flex;
  22867. flex-direction: column;
  22868. flex-wrap: nowrap;
  22869. align-items: center;
  22870. position: relative;
  22871. justify-content: center;
  22872. }
  22873. /* .answerBg > div:nth-child(1) {
  22874. font-size: 22px;
  22875. padding: 25px 0 10px;
  22876. } */
  22877. .answerContent {
  22878. width: 215px;
  22879. max-height: 60px;
  22880. word-break: break-all;
  22881. text-align: center;
  22882. /* white-space: nowrap; */
  22883. overflow: hidden;
  22884. text-overflow: ellipsis;
  22885. /* padding: 23px 0 0; */
  22886. -webkit-line-clamp: 3;
  22887. -webkit-box-orient: vertical;
  22888. display: -webkit-box;
  22889. font-size: 15px;
  22890. cursor: pointer;
  22891. }
  22892. .elist_input_box {
  22893. display: flex;
  22894. align-items: flex-start;
  22895. flex-wrap: nowrap;
  22896. padding: 10px 0 15px 30px;
  22897. flex-direction: column;
  22898. }
  22899. .elist_input {
  22900. /* width: 40%; */
  22901. width: 45%;
  22902. margin: 20px;
  22903. }
  22904. .elist_input .elist_input_box input {
  22905. font: inherit;
  22906. color: currentColor;
  22907. width: 200px;
  22908. padding: 8px 14px;
  22909. display: block;
  22910. min-width: 0;
  22911. outline: none;
  22912. border: 1px solid rgba(0, 0, 0, 0.23);
  22913. border-radius: 4px;
  22914. box-sizing: border-box;
  22915. background: #fff;
  22916. margin: 0 20px 0 0;
  22917. }
  22918. .elist_input .elist_input_box span {
  22919. height: 36px;
  22920. line-height: 36px;
  22921. color: rgb(82, 82, 82);
  22922. }
  22923. .elist_input .elist_input_box .remove {
  22924. height: 20px;
  22925. width: 20px;
  22926. background-size: 100% 100%;
  22927. background-position: unset;
  22928. margin-left: 5px;
  22929. }
  22930. .elist_input_box >>> .el-rate {
  22931. display: flex;
  22932. height: 36px;
  22933. align-items: center;
  22934. }
  22935. .elist_input_box .elist_inptu_text {
  22936. min-height: 50px;
  22937. /* width: 500px;
  22938. max-height: 150px; */
  22939. width: 100%;
  22940. line-height: 50px;
  22941. color: rgb(82, 82, 82);
  22942. overflow: auto;
  22943. text-indent: 5px;
  22944. background: #f7f6f9;
  22945. border-radius: 10px;
  22946. }
  22947. .elist_input_box .elist_inptu_text input {
  22948. width: 500px;
  22949. }
  22950. .elist_input_box >>> .el-rate__icon {
  22951. font-size: 24px;
  22952. }
  22953. .isClick {
  22954. background: #4d9def;
  22955. }
  22956. .bzBox {
  22957. display: flex;
  22958. flex-direction: row;
  22959. align-items: center;
  22960. }
  22961. .bzBox .yCss {
  22962. width: 7px;
  22963. height: 7px;
  22964. background: #fff;
  22965. margin: 0 16px 0 6px;
  22966. border-radius: 50%;
  22967. border: 5px solid #3681fc;
  22968. z-index: 99;
  22969. }
  22970. .bzBox > div:nth-child(2) {
  22971. font-size: 18px;
  22972. font-weight: bold;
  22973. color: #0e1e33;
  22974. }
  22975. .navTitile {
  22976. padding: 0 0px 0 15px;
  22977. font-size: 16px;
  22978. font-weight: bold;
  22979. color: #0e1e33;
  22980. height: 40px;
  22981. line-height: 40px;
  22982. }
  22983. .isTypeOne {
  22984. width: 240px;
  22985. height: 170px;
  22986. /* border: 1px solid #f8f8f8; */
  22987. border-radius: 10px;
  22988. box-shadow: 0 0 6px 1px #dfdada;
  22989. }
  22990. .e_add_top {
  22991. display: flex;
  22992. justify-content: space-between;
  22993. padding: 10px 20px;
  22994. border-radius: 3px;
  22995. background: #fff;
  22996. }
  22997. .e_add_title2 {
  22998. display: flex;
  22999. align-items: center;
  23000. }
  23001. .e_add_title2 span {
  23002. width: 40px;
  23003. }
  23004. .e_add_title {
  23005. display: flex;
  23006. align-items: center;
  23007. color: #b8b8b8;
  23008. font-size: 18px;
  23009. position: relative;
  23010. height: 40px;
  23011. }
  23012. .e_add_title span {
  23013. margin-right: 10px;
  23014. }
  23015. .e_add_title .el_input {
  23016. width: 300px;
  23017. }
  23018. .e_add_title >>> .el-input__inner {
  23019. width: 400px;
  23020. }
  23021. /* .e_add_btn {
  23022. } */
  23023. .e_add_content {
  23024. display: flex;
  23025. width: 100%;
  23026. max-width: 650px;
  23027. height: 550px;
  23028. }
  23029. .e_add_list {
  23030. background: #fff;
  23031. height: 500px;
  23032. width: 210px;
  23033. position: relative;
  23034. margin: 15px 5px 0 0;
  23035. flex-shrink: 0;
  23036. display: flex;
  23037. flex-direction: column;
  23038. }
  23039. .e_add_list_title {
  23040. font-size: 20px;
  23041. width: 100%;
  23042. box-sizing: border-box;
  23043. padding: 15px 40px;
  23044. text-align: center;
  23045. border-bottom: 1px solid #eaeaea;
  23046. position: relative;
  23047. display: flex;
  23048. align-items: center;
  23049. justify-content: center;
  23050. height: 57px;
  23051. background: #f6f6f6;
  23052. }
  23053. .e_add_list_title span {
  23054. overflow: hidden;
  23055. white-space: nowrap;
  23056. text-overflow: ellipsis;
  23057. }
  23058. .e_add_list_title img {
  23059. position: absolute;
  23060. right: 15px;
  23061. width: 25px;
  23062. cursor: pointer;
  23063. top: 50%;
  23064. transform: translateY(-50%);
  23065. }
  23066. .e_add_list_body {
  23067. height: calc(100% - 187px);
  23068. overflow: auto;
  23069. }
  23070. .e_add_list_child {
  23071. width: 100%;
  23072. display: flex;
  23073. align-items: center;
  23074. justify-content: center;
  23075. position: relative;
  23076. box-sizing: border-box;
  23077. padding: 15px 40px;
  23078. text-align: center;
  23079. }
  23080. .e_add_list_child span {
  23081. overflow: hidden;
  23082. white-space: nowrap;
  23083. text-overflow: ellipsis;
  23084. cursor: pointer;
  23085. }
  23086. .e_add_list_child img {
  23087. position: absolute;
  23088. right: 10px;
  23089. width: 21px;
  23090. cursor: pointer;
  23091. top: 50%;
  23092. transform: translateY(-50%);
  23093. }
  23094. .e_add_list_child + .e_add_list_child {
  23095. border-top: 1px solid #eaeaea;
  23096. }
  23097. .e_add_list_child .active {
  23098. color: #409eff;
  23099. }
  23100. .e_add_list_btn {
  23101. position: absolute;
  23102. bottom: 0;
  23103. height: 50px;
  23104. background: rgb(120, 120, 254);
  23105. width: 100%;
  23106. color: #fff;
  23107. font-size: 16px;
  23108. text-align: center;
  23109. line-height: 50px;
  23110. cursor: pointer;
  23111. }
  23112. .e_add_list_detail {
  23113. position: absolute;
  23114. bottom: 0;
  23115. height: 130px;
  23116. background: rgb(120, 120, 254);
  23117. width: 100%;
  23118. color: #fff;
  23119. font-size: 16px;
  23120. display: flex;
  23121. align-items: center;
  23122. justify-content: center;
  23123. }
  23124. .e_add_list_detail textarea {
  23125. height: 90%;
  23126. width: 95%;
  23127. border: none;
  23128. resize: none;
  23129. outline: none;
  23130. padding: 5px;
  23131. box-sizing: border-box;
  23132. }
  23133. .e_add_list_pbox {
  23134. width: 100%;
  23135. max-width: 650px;
  23136. /* height: 600px; */
  23137. }
  23138. .e_add_list_pbox_title {
  23139. height: 50px;
  23140. background: #fff;
  23141. display: flex;
  23142. align-items: center;
  23143. width: 100%;
  23144. box-sizing: border-box;
  23145. padding: 0 20px;
  23146. }
  23147. .type_title {
  23148. font-size: 18px;
  23149. font-weight: 700;
  23150. }
  23151. .type_content {
  23152. font-size: 16px;
  23153. /* margin-left: 30px; */
  23154. }
  23155. .type_content span + span {
  23156. margin-left: 20px;
  23157. }
  23158. .type_content span {
  23159. cursor: pointer;
  23160. padding-bottom: 5px;
  23161. box-sizing: border-box;
  23162. }
  23163. .type_content .active {
  23164. color: #409eff;
  23165. border-bottom: 2px solid #409eff;
  23166. }
  23167. .e_add_list_pbox_content {
  23168. height: calc(100% - 50px);
  23169. display: flex;
  23170. align-items: center;
  23171. width: 100%;
  23172. background: #fff;
  23173. }
  23174. .evaCss {
  23175. display: flex;
  23176. flex-direction: row;
  23177. flex-wrap: nowrap;
  23178. align-items: flex-start;
  23179. padding: 0 0 20px;
  23180. }
  23181. .cru_line {
  23182. position: absolute;
  23183. bottom: 0px;
  23184. transition: all 0.5s;
  23185. left: 0px;
  23186. width: 125px;
  23187. margin-left: -25px;
  23188. }
  23189. .isNoMessage {
  23190. width: 20%;
  23191. margin: 25% auto 0;
  23192. }
  23193. .isNoMessage > img {
  23194. width: 100%;
  23195. height: 100%;
  23196. }
  23197. .fullStyle >>> .el-dialog__body {
  23198. height: 100% !important;
  23199. }
  23200. .fullStyle >>> .el-dialog,
  23201. .fullStyle {
  23202. width: 100% !important;
  23203. max-width: 100% !important;
  23204. height: 100% !important;
  23205. margin: 0 !important;
  23206. }
  23207. .full_diy >>> .el-dialog {
  23208. margin: 0 !important;
  23209. height: 100%;
  23210. padding: 4px;
  23211. }
  23212. .full_diy >>> .el-dialog__body {
  23213. height: calc(100% - 100px);
  23214. }
  23215. .full_diy2 >>> .el-dialog__body {
  23216. height: calc(100% - 50px);
  23217. padding: 0;
  23218. }
  23219. .switchCss {
  23220. /* width: 100%; */
  23221. display: flex;
  23222. flex-direction: row;
  23223. flex-wrap: nowrap;
  23224. align-items: center;
  23225. /* justify-content: center; */
  23226. }
  23227. .isClickNav {
  23228. /* color: #499eef; */
  23229. color: #000;
  23230. }
  23231. .commentImg {
  23232. width: 25px;
  23233. height: 25px;
  23234. cursor: pointer;
  23235. }
  23236. .commentImg > img {
  23237. width: 100%;
  23238. height: 100%;
  23239. }
  23240. .comment {
  23241. background: #f9f9f9;
  23242. border-radius: 0 0 4px 4px;
  23243. display: flex;
  23244. flex-direction: row;
  23245. flex-wrap: nowrap;
  23246. align-items: center;
  23247. justify-content: flex-end;
  23248. height: 35px;
  23249. }
  23250. .commentList {
  23251. display: flex;
  23252. flex-direction: row;
  23253. flex-wrap: nowrap;
  23254. align-items: center;
  23255. justify-content: center;
  23256. align-content: center;
  23257. /* margin-left: 15px; */
  23258. /* margin-left: 8px; */
  23259. }
  23260. .scoreImg {
  23261. width: 17px;
  23262. height: 17px;
  23263. }
  23264. .studentDetail {
  23265. display: flex;
  23266. flex-direction: row;
  23267. flex-wrap: nowrap;
  23268. /* align-items: center; */
  23269. align-items: flex-start;
  23270. }
  23271. .tx {
  23272. width: 50px;
  23273. }
  23274. .tx > img {
  23275. width: 100%;
  23276. height: 100%;
  23277. }
  23278. .nameAndTime {
  23279. display: flex;
  23280. flex-direction: column;
  23281. flex-wrap: nowrap;
  23282. align-items: flex-start;
  23283. margin-left: 10px;
  23284. }
  23285. .worksAnswer {
  23286. color: #4078dd;
  23287. margin: 10px 0;
  23288. font-size: 16px;
  23289. position: relative;
  23290. }
  23291. .worksAnswer > img {
  23292. width: 500px;
  23293. height: 300px;
  23294. object-fit: contain;
  23295. margin: 0 auto;
  23296. display: block;
  23297. }
  23298. .commentTop {
  23299. border-bottom: 1px solid #eaeaea;
  23300. padding-bottom: 10px;
  23301. }
  23302. .commentBox {
  23303. padding-top: 15px;
  23304. }
  23305. .pl {
  23306. font-size: 18px;
  23307. }
  23308. .plPerson {
  23309. width: 100%;
  23310. }
  23311. .plName {
  23312. display: flex;
  23313. flex-direction: row;
  23314. flex-wrap: nowrap;
  23315. align-items: baseline;
  23316. color: #78787a;
  23317. width: 100%;
  23318. }
  23319. .deleteComment {
  23320. cursor: pointer;
  23321. margin-left: auto;
  23322. color: #237ade;
  23323. }
  23324. .plContent {
  23325. margin-top: 5px;
  23326. }
  23327. .evalCss {
  23328. background: #fff;
  23329. font-size: 18px;
  23330. }
  23331. .nav {
  23332. color: #9d9d9d;
  23333. padding: 5px 0 15px 20px;
  23334. }
  23335. .middleBox {
  23336. padding: 5px 0 15px 20px;
  23337. }
  23338. .pfBox {
  23339. padding-bottom: 30px;
  23340. }
  23341. .nameAndrate {
  23342. display: flex;
  23343. flex-direction: row;
  23344. flex-wrap: nowrap;
  23345. align-items: center;
  23346. padding-bottom: 10px;
  23347. height: 30px;
  23348. line-height: 30px;
  23349. }
  23350. .nameAndrate > div {
  23351. margin-left: 10px;
  23352. color: #000;
  23353. height: 30px;
  23354. }
  23355. .nameAndrate >>> .el-rate__icon {
  23356. font-size: 28px !important;
  23357. }
  23358. .pfBox > div:nth-child(2) {
  23359. background: #f7f6f9;
  23360. width: 400px;
  23361. min-height: 45px;
  23362. border-radius: 10px;
  23363. font-size: 16px;
  23364. display: flex;
  23365. flex-wrap: wrap;
  23366. align-items: center;
  23367. padding: 10px 20px;
  23368. box-sizing: border-box;
  23369. color: #000;
  23370. }
  23371. .bz {
  23372. display: flex;
  23373. flex-direction: row;
  23374. flex-wrap: nowrap;
  23375. align-items: flex-start;
  23376. }
  23377. .bz > div {
  23378. padding: 0 10px;
  23379. }
  23380. .select_box2_title {
  23381. background: #fff;
  23382. border-radius: 5px;
  23383. padding: 15px 10px;
  23384. box-sizing: border-box;
  23385. margin-bottom: 10px;
  23386. display: flex;
  23387. flex-direction: row;
  23388. flex-wrap: nowrap;
  23389. align-items: center;
  23390. }
  23391. .select_box2_title > div:nth-child(2) {
  23392. margin-left: 10px;
  23393. color: #c4c4c4;
  23394. }
  23395. .select_box2_box {
  23396. display: flex;
  23397. height: 500px;
  23398. }
  23399. .select_box2_img {
  23400. width: calc(100% - 310px);
  23401. height: 100%;
  23402. overflow: auto;
  23403. background: #fff;
  23404. border-radius: 5px;
  23405. }
  23406. .select_box2_img img {
  23407. width: 100%;
  23408. }
  23409. .select_box2_answer {
  23410. background: #fff;
  23411. margin-left: 10px;
  23412. border-radius: 5px;
  23413. width: 300px;
  23414. overflow: auto;
  23415. height: 90%;
  23416. display: flex;
  23417. flex-direction: column;
  23418. align-items: flex-start;
  23419. padding-top: 10px;
  23420. box-sizing: border-box;
  23421. position: relative;
  23422. }
  23423. .select_answer_title {
  23424. padding: 0 0 15px 20px;
  23425. color: #c4c4c4;
  23426. }
  23427. .select_box2_answer_box {
  23428. margin: 0 0 10px 20px;
  23429. width: 85%;
  23430. display: flex;
  23431. flex-direction: row;
  23432. flex-wrap: nowrap;
  23433. align-items: center;
  23434. }
  23435. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23436. color: #000;
  23437. }
  23438. .upAnswerCss {
  23439. position: absolute;
  23440. bottom: 15px;
  23441. right: 15px;
  23442. }
  23443. .upAnswerCss >>> .el-button {
  23444. width: 95px;
  23445. height: 35px;
  23446. line-height: 35px;
  23447. padding: 0;
  23448. }
  23449. .rightWidthCss {
  23450. width: 60%;
  23451. display: flex;
  23452. flex-direction: row;
  23453. align-items: flex-start;
  23454. }
  23455. .rightAnswer {
  23456. display: flex;
  23457. flex-direction: row;
  23458. flex-wrap: nowrap;
  23459. align-items: center;
  23460. color: red;
  23461. margin-bottom: 31px;
  23462. }
  23463. .rightAnswerCss {
  23464. display: flex;
  23465. flex-direction: column;
  23466. flex-wrap: nowrap;
  23467. padding-top: 60px;
  23468. }
  23469. .blueCss {
  23470. color: #767de1;
  23471. margin-left: 10px;
  23472. }
  23473. .redCss {
  23474. color: red;
  23475. }
  23476. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23477. color: rgb(0 123 255) !important;
  23478. }
  23479. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23480. color: rgb(0 123 255) !important;
  23481. }
  23482. .zuoyeYulan {
  23483. padding-top: 0;
  23484. font-size: 18px;
  23485. display: flex;
  23486. align-items: flex-end;
  23487. }
  23488. .buttonA {
  23489. margin-left: 10px;
  23490. padding: 0;
  23491. }
  23492. .displayBox {
  23493. margin-bottom: 10px;
  23494. display: block;
  23495. border-bottom: 3px solid #eee;
  23496. display: flex;
  23497. align-items: center;
  23498. }
  23499. .easy_comment {
  23500. width: calc(100% - 90px);
  23501. margin-left: 10px;
  23502. display: flex;
  23503. flex-wrap: wrap;
  23504. }
  23505. .easy_comment > div {
  23506. border: 1px solid #4a4a4a;
  23507. color: #666;
  23508. border-radius: 15px;
  23509. padding: 5px 10px;
  23510. font-size: 16px;
  23511. margin-bottom: 10px;
  23512. margin-right: 5px;
  23513. cursor: pointer;
  23514. }
  23515. .easy_comment div:hover {
  23516. border: 1px solid #f7ba2a;
  23517. color: #c69217;
  23518. }
  23519. .xuan_right_box {
  23520. padding: 10px 0;
  23521. background: #f0f4fa;
  23522. margin: 0 15px 0 25px;
  23523. border-bottom-left-radius: 5px;
  23524. border-bottom-right-radius: 5px;
  23525. width: 91.5%;
  23526. }
  23527. .tool_right_box {
  23528. display: flex;
  23529. align-items: center;
  23530. }
  23531. .tool_right_box + .tool_right_box {
  23532. margin-top: 10px;
  23533. }
  23534. .right_box_xuan {
  23535. border-radius: 5px;
  23536. padding: 5px;
  23537. margin-left: 10px;
  23538. min-width: 95px;
  23539. background: #fff;
  23540. color: #0061ff;
  23541. border: 1px solid #0061ff;
  23542. font-size: 14px;
  23543. }
  23544. .pButton:hover {
  23545. opacity: 1 !important;
  23546. }
  23547. .pButton {
  23548. position: fixed;
  23549. text-align: center;
  23550. cursor: pointer;
  23551. z-index: 999;
  23552. right: 20px;
  23553. top: 110px;
  23554. width: 50px;
  23555. height: 50px;
  23556. display: flex;
  23557. align-items: center;
  23558. justify-content: center;
  23559. border-radius: 5px;
  23560. }
  23561. .pzClass {
  23562. width: calc(100% - 340px);
  23563. }
  23564. .newDialogCss {
  23565. /* position: fixed;
  23566. right: 5%;
  23567. top: 50%;
  23568. width: 340px;
  23569. transform: translateY(-50%);
  23570. height: 60%;
  23571. box-shadow: 0px 0 8px 0px #555555;
  23572. border-radius: 15px;
  23573. z-index: 999; */
  23574. position: fixed;
  23575. right: 20px;
  23576. top: 101px;
  23577. width: 330px;
  23578. height: calc(100% - 80px);
  23579. z-index: 999;
  23580. background: #fff;
  23581. border-top-right-radius: 0px;
  23582. border-bottom-right-radius: 0px;
  23583. overflow: hidden;
  23584. }
  23585. .newDialogCss>.scoreList{
  23586. width:100%;
  23587. height:100%;
  23588. box-sizing:border-box;
  23589. padding:10px 15px;
  23590. overflow:auto;
  23591. padding-bottom:80px;
  23592. }
  23593. .pzTop {
  23594. color: #fff;
  23595. background: #000;
  23596. display: flex;
  23597. flex-direction: row;
  23598. flex-wrap: nowrap;
  23599. align-items: center;
  23600. justify-content: space-between;
  23601. height: 40px;
  23602. border-radius: 15px 15px 0 0;
  23603. user-select: none;
  23604. }
  23605. .pzTop2 .checkbox {
  23606. display: flex;
  23607. align-items: center;
  23608. padding: 5px 10px;
  23609. flex: 0 0 auto;
  23610. font-weight: bold;
  23611. border-bottom: 1px solid #eee;
  23612. justify-content: space-between;
  23613. }
  23614. .checkbox>.cb-tabList{
  23615. display:flex;
  23616. align-items:center;
  23617. }
  23618. .cb-tabList>div{
  23619. margin-right:20px;
  23620. font-weight:400;
  23621. cursor:pointer;
  23622. }
  23623. .cb-tabList>.cb-tabItem{
  23624. color:#1684FC;
  23625. position:relative;
  23626. }
  23627. .cb-tabItem::after{
  23628. content:"";
  23629. width:100%;
  23630. height:2px;
  23631. background:#1684FC;
  23632. position:absolute;
  23633. bottom:-5px;
  23634. left:0
  23635. }
  23636. .pzTop2 .check {
  23637. text-align: center;
  23638. cursor: pointer;
  23639. box-sizing: border-box;
  23640. display: flex;
  23641. }
  23642. .pzTop2 img {
  23643. width: 25px;
  23644. cursor: pointer;
  23645. }
  23646. .pzTop > div:nth-child(1) {
  23647. padding-left: 10px;
  23648. }
  23649. .pzTop > div:nth-child(2) {
  23650. width: 15px;
  23651. height: 15px;
  23652. padding-right: 10px;
  23653. cursor: pointer;
  23654. }
  23655. .pzTop > div:nth-child(2) > img {
  23656. width: 100%;
  23657. height: 100%;
  23658. }
  23659. .pzBox,
  23660. .noPzBox {
  23661. height: calc(100% - 60px);
  23662. /* background: #ededed; */
  23663. background: #fff;
  23664. /* border-radius: 0 0 15px 15px; */
  23665. }
  23666. .noPzBox {
  23667. display: flex;
  23668. flex-direction: column;
  23669. flex-wrap: nowrap;
  23670. justify-content: center;
  23671. align-items: center;
  23672. }
  23673. .pzList {
  23674. background: #f7f7f7;
  23675. width: 90%;
  23676. margin: 0 auto 15px;
  23677. border-radius: 5px;
  23678. }
  23679. .pzNavTop {
  23680. display: flex;
  23681. flex-direction: row;
  23682. flex-wrap: nowrap;
  23683. padding: 10px 10px 0 10px;
  23684. align-items: center;
  23685. }
  23686. .pzDelete {
  23687. cursor: pointer;
  23688. margin-left: auto;
  23689. font-size: 14px;
  23690. color: #afafaf;
  23691. }
  23692. .pzNavTop > div:nth-child(1) {
  23693. background: #3760af;
  23694. width: 35px;
  23695. height: 35px;
  23696. color: #fff;
  23697. text-align: center;
  23698. line-height: 35px;
  23699. border-radius: 50%;
  23700. font-size: 14px;
  23701. }
  23702. .pzNavTop > div:nth-child(2) {
  23703. font-size: 18px;
  23704. color: #959595;
  23705. margin-left: 5px;
  23706. }
  23707. .pzContent {
  23708. padding: 10px;
  23709. word-break: break-word;
  23710. }
  23711. .pzContent audio {
  23712. width: 100%;
  23713. }
  23714. .pzContent audio::-webkit-media-controls-panel {
  23715. background: #fff;
  23716. }
  23717. .pzContent >>> img {
  23718. max-width: 100%;
  23719. }
  23720. .pzListBox {
  23721. padding-top: 15px;
  23722. height: calc(100% - 110px);
  23723. overflow: auto;
  23724. }
  23725. .addPzButton {
  23726. position: relative;
  23727. margin-top: 3px;
  23728. width: 100%;
  23729. }
  23730. .addPzButton .img1 {
  23731. position: absolute;
  23732. top: 50%;
  23733. right: 25px;
  23734. transform: translateY(-50%);
  23735. height: 100%;
  23736. display: flex;
  23737. align-items: center;
  23738. }
  23739. .addPzButton .img1 div {
  23740. display: flex;
  23741. }
  23742. .addPzButton .img1 div img {
  23743. width: 28px;
  23744. margin-left: 10px;
  23745. cursor: pointer;
  23746. }
  23747. .addPzButton .img1 div span {
  23748. font-size: 14px;
  23749. margin: 4px 0 0 3px;
  23750. color: #afafaf;
  23751. }
  23752. .addPz {
  23753. background: #4b79ce;
  23754. width: 100px;
  23755. color: #fff;
  23756. font-size: 12px;
  23757. height: 30px;
  23758. margin: 0 auto;
  23759. text-align: center;
  23760. line-height: 30px;
  23761. border-radius: 10px;
  23762. cursor: pointer;
  23763. }
  23764. .addDialogCss {
  23765. position: fixed;
  23766. width: 600px;
  23767. height: 70%;
  23768. min-height: 450px;
  23769. box-shadow: 0px 0 8px 0px #555555;
  23770. border-radius: 15px;
  23771. z-index: 999;
  23772. left: 50%;
  23773. top: 50%;
  23774. margin: -18% 0 0 -300px;
  23775. }
  23776. .teacherPz {
  23777. display: flex;
  23778. flex-direction: row;
  23779. align-items: center;
  23780. flex-wrap: nowrap;
  23781. }
  23782. .teacherPzImg {
  23783. width: 30px;
  23784. height: 30px;
  23785. }
  23786. .teacherPzImg > img {
  23787. width: 100%;
  23788. height: 100%;
  23789. }
  23790. .addPzBox {
  23791. height: calc(100% - 40px);
  23792. background: #ededed;
  23793. border-bottom-left-radius: 15px;
  23794. border-bottom-right-radius: 15px;
  23795. }
  23796. .pzAudioClass {
  23797. margin: 15px 14px;
  23798. background: #fff;
  23799. height: 100%;
  23800. display: flex;
  23801. justify-content: center;
  23802. align-items: center;
  23803. }
  23804. .pzConText {
  23805. width: 95%;
  23806. height: 100%;
  23807. margin: 10px auto 0;
  23808. border: none;
  23809. background: #fff;
  23810. border-radius: 0px;
  23811. }
  23812. .pzConText >>> .text {
  23813. height: calc(100% - 82px);
  23814. }
  23815. .addTextCss {
  23816. background: #4b79ce;
  23817. width: 80px;
  23818. height: 30px;
  23819. text-align: center;
  23820. color: #fff;
  23821. line-height: 30px;
  23822. border-radius: 10px;
  23823. margin: 10px auto 0;
  23824. cursor: pointer;
  23825. }
  23826. .pzConText:focus-visible {
  23827. border: none !important;
  23828. }
  23829. .maxWidth {
  23830. width: 1000px;
  23831. }
  23832. .noPz {
  23833. width: 150px;
  23834. margin: 0 auto 20%;
  23835. }
  23836. .noPz > img {
  23837. width: 100%;
  23838. height: 100%;
  23839. }
  23840. .timeAndReply {
  23841. display: flex;
  23842. flex-direction: row;
  23843. flex-wrap: nowrap;
  23844. justify-content: space-between;
  23845. align-items: center;
  23846. font-size: 14px;
  23847. box-sizing: border-box;
  23848. padding: 0 10px 10px 0px;
  23849. }
  23850. .timeAndReply .time {
  23851. color: #bfbfbf;
  23852. padding: 0 0 0 10px;
  23853. box-sizing: border-box;
  23854. }
  23855. .timeAndReply > div:last-child {
  23856. cursor: pointer;
  23857. color: #777;
  23858. }
  23859. /* table 样式 */
  23860. .cont >>> table {
  23861. border-top: 1px solid #ccc;
  23862. border-left: 1px solid #ccc;
  23863. }
  23864. .cont >>> table td,
  23865. .cont >>> table th {
  23866. border-bottom: 1px solid #ccc;
  23867. border-right: 1px solid #ccc;
  23868. /* padding: 20px 5px; */
  23869. padding: 5px 10px;
  23870. max-width: 0px;
  23871. height: 30px;
  23872. vertical-align: baseline;
  23873. box-sizing: border-box;
  23874. }
  23875. .cont >>> table th {
  23876. border-bottom: 2px solid #ccc;
  23877. text-align: center;
  23878. }
  23879. /* blockquote 样式 */
  23880. .cont >>> blockquote {
  23881. display: block;
  23882. border-left: 8px solid #d0e5f2;
  23883. padding: 5px 10px;
  23884. margin: 10px 0;
  23885. line-height: 1.4;
  23886. font-size: 100%;
  23887. background-color: #f1f1f1;
  23888. }
  23889. /* code 样式 */
  23890. .cont >>> code {
  23891. display: inline-block;
  23892. /* *display: inline; */
  23893. zoom: 1;
  23894. background-color: #f1f1f1;
  23895. border-radius: 3px;
  23896. padding: 3px 5px;
  23897. margin: 0 3px;
  23898. }
  23899. .cont >>> pre code {
  23900. display: block;
  23901. }
  23902. /* ul ol 样式 */
  23903. .cont >>> ul,
  23904. ol {
  23905. margin: 10px 0 10px 20px;
  23906. }
  23907. .addPzCheck {
  23908. display: flex;
  23909. flex-direction: row;
  23910. flex-wrap: nowrap;
  23911. padding: 10px 15px 0;
  23912. }
  23913. .addPzCheck span {
  23914. cursor: pointer;
  23915. padding-bottom: 5px;
  23916. font-weight: bold;
  23917. }
  23918. .addPzCheck span + span {
  23919. margin-left: 10px;
  23920. }
  23921. .addPzCheck .isChooseActive {
  23922. color: #3e88f4;
  23923. border-bottom: 2px solid #2f80f3;
  23924. }
  23925. /* code 样式 */
  23926. .cont {
  23927. /* -webkit-user-modify: read-write; */
  23928. overflow-wrap: break-word;
  23929. -webkit-line-break: after-white-space;
  23930. word-break: break-word;
  23931. white-space: pre-line;
  23932. }
  23933. .scoreBox,
  23934. .scoreDetailBox {
  23935. display: flex;
  23936. align-items: center;
  23937. justify-content: flex-start;
  23938. margin-top: 20px;
  23939. font-size: 18px;
  23940. width: 100%;
  23941. }
  23942. .scoreBox .t,
  23943. .scoreDetailBox .t {
  23944. margin-right: 10px;
  23945. min-width:100px;
  23946. text-align: right;
  23947. }
  23948. .scoreDetailBox {
  23949. align-items: flex-start;
  23950. }
  23951. .scoreDetailBox >>> .el-textarea {
  23952. width: calc(100% - 200px);
  23953. }
  23954. .scoreBox >>> .el-input {
  23955. width: 130px;
  23956. font-size: 38px;
  23957. }
  23958. .scoreBox >>> .el-input__inner {
  23959. height: 60px;
  23960. }
  23961. .answerScore {
  23962. position: absolute;
  23963. top: 10px;
  23964. right: 10px;
  23965. background: #0000008f;
  23966. border-radius: 5px;
  23967. padding: 3px 5px;
  23968. font-size: 14px;
  23969. color: #fff;
  23970. cursor: pointer;
  23971. }
  23972. .open_box .switch_box {
  23973. width: 100%;
  23974. margin: 0 auto;
  23975. display: flex;
  23976. justify-content: space-between;
  23977. }
  23978. .open_box .switch_box + .switch_box {
  23979. margin-top: 10px;
  23980. }
  23981. .deleteImg,.deleteImg1 {
  23982. width: 25px !important;
  23983. height: 25px !important;
  23984. cursor: pointer;
  23985. position: absolute;
  23986. top: 10px;
  23987. right: 10px;
  23988. }
  23989. .deleteImg2 {
  23990. width: 23px !important;
  23991. height: 23px !important;
  23992. top: 5px;
  23993. right: 5px;
  23994. }
  23995. .deleteImg1{
  23996. width: 23px !important;
  23997. height: 23px !important;
  23998. top: 5px !important;
  23999. right: 30px !important;
  24000. }
  24001. .rightW {
  24002. right: 40px;
  24003. }
  24004. .drawPBox {
  24005. display: flex;
  24006. flex-direction: column;
  24007. position: relative;
  24008. }
  24009. .drawPBox span {
  24010. font-size: 18px;
  24011. color: #606266;
  24012. padding-bottom: 10px;
  24013. margin: 10px 0;
  24014. border-bottom: 1px solid #eaeaea;
  24015. }
  24016. .drawPBox img {
  24017. width: 500px;
  24018. height: 300px;
  24019. object-fit: contain;
  24020. cursor: pointer;
  24021. margin: 0 auto;
  24022. }
  24023. .sentenBox {
  24024. background: #fff;
  24025. height: 450px;
  24026. overflow: auto;
  24027. background-image: url("../../assets/icon/conSentences/stuBg.png");
  24028. background-position: 102%;
  24029. background-repeat: no-repeat;
  24030. background-size: 60%;
  24031. }
  24032. .addSen {
  24033. background: #409efe;
  24034. width: 90px;
  24035. color: #fff;
  24036. height: 35px;
  24037. text-align: center;
  24038. line-height: 35px;
  24039. border-radius: 5px;
  24040. float: right;
  24041. margin: 10px 20px 0 0;
  24042. cursor: pointer;
  24043. }
  24044. .sentenTop {
  24045. display: flex;
  24046. flex-direction: row;
  24047. flex-wrap: nowrap;
  24048. align-items: center;
  24049. padding: 55px 0 0 20px;
  24050. box-sizing: border-box;
  24051. }
  24052. .sentenTop > div:nth-child(2) {
  24053. width: 300px;
  24054. margin: 0 15px;
  24055. }
  24056. .sentenTop > div:nth-child(3) {
  24057. background: #409efe;
  24058. color: #fff;
  24059. width: 65px;
  24060. height: 35px;
  24061. text-align: center;
  24062. line-height: 35px;
  24063. border-radius: 5px;
  24064. cursor: pointer;
  24065. }
  24066. .cardList,
  24067. .cardList1 {
  24068. padding: 10px 0 10px 0;
  24069. display: flex;
  24070. flex-direction: row;
  24071. flex-wrap: wrap;
  24072. align-items: center;
  24073. box-sizing: border-box;
  24074. border-bottom: 1px solid #f4f4f4;
  24075. width: 98%;
  24076. margin: 0 auto;
  24077. min-width: 60%;
  24078. max-width: 85%;
  24079. }
  24080. .cardList1 {
  24081. padding: 10px 0 10px 10px !important;
  24082. margin: 0 !important;
  24083. }
  24084. .cardBox {
  24085. display: flex;
  24086. flex-direction: row;
  24087. flex-wrap: wrap;
  24088. align-items: center;
  24089. align-content: center;
  24090. }
  24091. .cardBox > div {
  24092. margin-bottom: 10px;
  24093. }
  24094. .isCard,
  24095. .isChooseCard,
  24096. .noCard,
  24097. .isCard1 {
  24098. min-width: 130px;
  24099. width: auto;
  24100. height: 60px;
  24101. text-align: center;
  24102. line-height: 60px;
  24103. font-size: 20px;
  24104. cursor: pointer;
  24105. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  24106. background-size: cover;
  24107. transition: all 2s;
  24108. margin-right: 20px;
  24109. background-size: 100% 100%;
  24110. padding: 0 20px;
  24111. box-sizing: border-box;
  24112. }
  24113. .isCard > div,
  24114. .noCard > div,
  24115. .isCard1 > div {
  24116. white-space: nowrap;
  24117. overflow: hidden;
  24118. text-overflow: ellipsis;
  24119. width: 100%;
  24120. margin: 0 auto;
  24121. }
  24122. .noCard {
  24123. background-image: none;
  24124. }
  24125. .isCard1 {
  24126. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  24127. }
  24128. .isChooseCard {
  24129. background-image: none;
  24130. border: 1px dashed #b9b9b9;
  24131. border-radius: 10px;
  24132. }
  24133. .card {
  24134. width: 130px;
  24135. height: 60px;
  24136. }
  24137. .card > img {
  24138. width: 100%;
  24139. height: 100%;
  24140. }
  24141. .rightCardBox {
  24142. margin: 10px 0 0 10px;
  24143. }
  24144. .rightCardBox > div:nth-child(1) {
  24145. margin-bottom: 10px;
  24146. }
  24147. .cardCss {
  24148. display: flex;
  24149. flex-direction: column;
  24150. flex-wrap: nowrap;
  24151. align-items: center;
  24152. border-bottom: 3px solid #b4c3d3;
  24153. padding: 0 0 5px 0;
  24154. margin-right: 10px;
  24155. }
  24156. .cardCss > div:nth-child(2) {
  24157. background: #5b7b9d;
  24158. color: #fff;
  24159. width: 20px;
  24160. height: 20px;
  24161. border-radius: 50%;
  24162. text-align: center;
  24163. line-height: 20px;
  24164. }
  24165. .isWrong {
  24166. display: flex;
  24167. flex-direction: row;
  24168. flex-wrap: nowrap;
  24169. align-content: center;
  24170. align-items: center;
  24171. }
  24172. .answerRight {
  24173. width: 25%;
  24174. }
  24175. .isTj {
  24176. display: flex;
  24177. flex-direction: row;
  24178. flex-wrap: nowrap;
  24179. align-items: center;
  24180. }
  24181. .isTj > div:nth-child(2) {
  24182. color: #727070;
  24183. margin-left: 10px;
  24184. }
  24185. .isTjImg {
  24186. width: 30px;
  24187. height: 30px;
  24188. }
  24189. .isTjImg > img {
  24190. width: 100%;
  24191. height: 100%;
  24192. }
  24193. .cardAnswerBox {
  24194. font-size: 18px;
  24195. width: 97%;
  24196. border: 5px;
  24197. padding: 0;
  24198. border-radius: 5px;
  24199. margin: 10px auto;
  24200. word-break: break-word;
  24201. }
  24202. .w_name {
  24203. margin-bottom: 10px;
  24204. }
  24205. .w_name span {
  24206. font-size: 16px;
  24207. }
  24208. .w_teachert {
  24209. width: 50px !important;
  24210. position: absolute;
  24211. height: auto !important;
  24212. z-index: 10;
  24213. right: 25px;
  24214. top: -25px;
  24215. }
  24216. /* .group_workBox {
  24217. } */
  24218. .group_workBox + .group_workBox {
  24219. margin-top: 20px;
  24220. }
  24221. .group_box {
  24222. padding-bottom: 20px;
  24223. border-bottom: 2px solid #f0f0f0;
  24224. margin-top: 10px;
  24225. }
  24226. .group_title {
  24227. display: flex;
  24228. align-items: center;
  24229. justify-content: space-between;
  24230. width: 95%;
  24231. }
  24232. .group_name {
  24233. background-image: url(../../assets/icon/groupN.png);
  24234. width: 220px;
  24235. background-size: 100% 100%;
  24236. height: 67px;
  24237. padding: 0 20px 0 43px;
  24238. box-sizing: border-box;
  24239. line-height: 63px;
  24240. color: #fff;
  24241. overflow: hidden;
  24242. white-space: nowrap;
  24243. text-overflow: ellipsis;
  24244. }
  24245. .group_work {
  24246. width: 100%;
  24247. padding: 0 10px;
  24248. box-sizing: border-box;
  24249. display: flex;
  24250. flex-wrap: wrap;
  24251. }
  24252. .g_d_box {
  24253. display: flex;
  24254. flex-flow: wrap;
  24255. justify-content: space-around;
  24256. }
  24257. .g_d_box .isChair {
  24258. background-image: url(../../assets/avatar.png) !important;
  24259. }
  24260. .g_d_group {
  24261. width: 500px;
  24262. margin-bottom: 80px;
  24263. }
  24264. .g_d_group_chair {
  24265. display: flex;
  24266. align-items: center;
  24267. justify-content: center;
  24268. }
  24269. .g_d_group_chair > div + div {
  24270. margin-left: 30px;
  24271. }
  24272. .g_d_group_chair > div,
  24273. .g_d_group_chair2 > div {
  24274. display: flex;
  24275. flex-direction: column;
  24276. align-items: center;
  24277. }
  24278. .g_d_group_chair > div > span:nth-child(1),
  24279. .g_d_group_chair2 > div > span:nth-child(1) {
  24280. background-image: url(../../assets/icon/chair.png);
  24281. width: 50px;
  24282. height: 50px;
  24283. display: block;
  24284. background-size: 100% 100%;
  24285. }
  24286. .g_d_group_tableBox {
  24287. display: flex;
  24288. align-items: center;
  24289. justify-content: center;
  24290. }
  24291. .g_d_group_chair2 {
  24292. display: flex;
  24293. flex-direction: column;
  24294. align-items: center;
  24295. justify-content: center;
  24296. }
  24297. .g_d_group_chair2 > div + div {
  24298. margin-top: 10px;
  24299. }
  24300. .g_d_group_table {
  24301. background-image: url(../../assets/icon/groupBg.png);
  24302. width: 354px;
  24303. height: 196px;
  24304. background-size: 100% 100%;
  24305. display: flex;
  24306. align-items: center;
  24307. justify-content: center;
  24308. flex-direction: column;
  24309. color: #fff;
  24310. }
  24311. .g_d_group_table > div:nth-child(1) {
  24312. font-size: 24px;
  24313. margin-bottom: 5px;
  24314. }
  24315. .g_d_group_table > div:nth-child(2) div {
  24316. cursor: pointer;
  24317. background: #2e77bf;
  24318. padding: 4px 10px;
  24319. border-radius: 5px;
  24320. }
  24321. /* .groupBox {
  24322. } */
  24323. .groupContent + .groupContent {
  24324. margin-top: 30px;
  24325. }
  24326. .groupTitle {
  24327. font-size: 24px;
  24328. color: rgb(80, 80, 80);
  24329. margin-bottom: 20px;
  24330. }
  24331. .groupName {
  24332. display: flex;
  24333. align-items: center;
  24334. }
  24335. .groupn {
  24336. font-size: 15px;
  24337. margin-right: 10px;
  24338. }
  24339. .groupName + .groupName {
  24340. margin-top: 15px;
  24341. }
  24342. .groupBtn {
  24343. margin-left: 10px;
  24344. }
  24345. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24346. text-align: left;
  24347. }
  24348. .g_d_btnBox {
  24349. display: flex;
  24350. justify-content: flex-end;
  24351. align-items: center;
  24352. margin-bottom: 20px;
  24353. }
  24354. .updateChair {
  24355. position: relative;
  24356. }
  24357. .updateChairBtn {
  24358. position: absolute;
  24359. width: 50px;
  24360. height: 50px;
  24361. overflow: hidden;
  24362. /* display: flex; */
  24363. align-items: center;
  24364. justify-content: center;
  24365. background: #00000087;
  24366. color: #fff;
  24367. border-radius: 50px;
  24368. display: none;
  24369. cursor: pointer;
  24370. }
  24371. .updateChair:hover .updateChairBtn {
  24372. display: flex;
  24373. }
  24374. .group_staic_box {
  24375. display: flex;
  24376. padding: 30px 40px 10px;
  24377. flex-wrap: wrap;
  24378. }
  24379. .group_staic {
  24380. /* width: 50%; */
  24381. margin-bottom: 20px;
  24382. display: flex;
  24383. align-items: center;
  24384. }
  24385. .group_staic span:nth-child(1) {
  24386. width: 150px;
  24387. text-align: right;
  24388. margin-right: 15px;
  24389. }
  24390. .group_staic span:nth-child(2) {
  24391. background: rgb(0 123 255);
  24392. color: #fff;
  24393. border-radius: 5px;
  24394. padding: 5px;
  24395. }
  24396. .codeFileBox {
  24397. height: 300px;
  24398. background: #fff;
  24399. display: flex;
  24400. align-items: center;
  24401. justify-content: center;
  24402. }
  24403. .codeFileBox img {
  24404. width: 200px;
  24405. margin: 0;
  24406. height: auto;
  24407. }
  24408. .codeFileBox div {
  24409. background: rgb(80, 142, 226);
  24410. color: #fff;
  24411. padding: 10px 20px;
  24412. border-radius: 25px;
  24413. cursor: pointer;
  24414. margin-left: 15px;
  24415. }
  24416. .radioBox {
  24417. display: flex;
  24418. flex-direction: column;
  24419. flex-wrap: nowrap;
  24420. align-items: flex-start;
  24421. }
  24422. .radioBox > div {
  24423. margin: 10px 0 0 10px;
  24424. }
  24425. /* .radioBox >>> .el-radio__input,
  24426. .radioBox >>> .el-checkbox__inner {
  24427. margin-left: 10px;
  24428. } */
  24429. .radioBox >>> .el-radio__label,
  24430. .radioBox >>> .el-checkbox__label {
  24431. display: flex;
  24432. align-items: center;
  24433. width: 100%;
  24434. }
  24435. .radioBox >>> .el-radio__label > span {
  24436. width: 100%;
  24437. display: -webkit-box;
  24438. overflow: hidden;
  24439. white-space: normal !important;
  24440. text-overflow: ellipsis;
  24441. word-wrap: break-word;
  24442. }
  24443. .inImg {
  24444. width: 100px;
  24445. cursor: pointer;
  24446. }
  24447. .inImg > img {
  24448. width: 100%;
  24449. height: 100%;
  24450. object-fit: cover;
  24451. }
  24452. .timuImgBox {
  24453. margin: 10px 0;
  24454. display: flex;
  24455. flex-direction: column;
  24456. flex-wrap: wrap;
  24457. align-items: flex-start;
  24458. }
  24459. .timuImg {
  24460. width: 150px;
  24461. margin: 5px 0;
  24462. cursor: pointer;
  24463. }
  24464. .timuImg > img {
  24465. width: 100%;
  24466. height: 100%;
  24467. object-fit: cover;
  24468. }
  24469. .worksTop {
  24470. display: flex;
  24471. flex-direction: row;
  24472. align-items: flex-end;
  24473. }
  24474. .worksTitle {
  24475. display: flex;
  24476. flex-direction: row;
  24477. flex-wrap: nowrap;
  24478. align-items: center;
  24479. }
  24480. .worksTitle::before,
  24481. .worksTop::before {
  24482. content: "";
  24483. display: block;
  24484. width: 3px;
  24485. height: 20px;
  24486. background: #0061ff;
  24487. border-radius: 3px;
  24488. margin: 0 5px 0 0;
  24489. }
  24490. .corOpen {
  24491. margin: 0 0 0 10px;
  24492. font-size: 14px;
  24493. cursor: pointer;
  24494. color: #505050;
  24495. }
  24496. .corOpen:hover {
  24497. color: #499eef;
  24498. }
  24499. .navCorOpenBox {
  24500. display: flex;
  24501. flex-direction: row;
  24502. align-items: center;
  24503. justify-content: space-between;
  24504. height: 55px;
  24505. background: #ffffff;
  24506. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24507. border-radius: 8px 8px 0px 0px;
  24508. z-index: 9;
  24509. position: relative;
  24510. }
  24511. .navCorOpen {
  24512. padding-right: 15px;
  24513. cursor: pointer;
  24514. width: 45px;
  24515. display: flex;
  24516. }
  24517. .navCorOpen > img {
  24518. width: 100%;
  24519. height: 100%;
  24520. }
  24521. .mlImg {
  24522. width: 40px !important;
  24523. min-width: 40px;
  24524. cursor: pointer;
  24525. transform: rotate(180deg);
  24526. }
  24527. .mlImg > img {
  24528. width: 100%;
  24529. height: 100%;
  24530. }
  24531. .navLeftCss {
  24532. width: 100% !important;
  24533. left: 0 !important;
  24534. }
  24535. .isContentCss {
  24536. width: 100% !important;
  24537. }
  24538. .isAllWidth {
  24539. width: 100% !important;
  24540. }
  24541. .group_switch {
  24542. margin-right: 10px;
  24543. height: 30px;
  24544. display: flex;
  24545. align-items: center;
  24546. }
  24547. .group_switch > span {
  24548. margin-right: 5px;
  24549. }
  24550. .fileC_box {
  24551. padding-top: 15px;
  24552. }
  24553. .fileC_box > .fileC_title {
  24554. padding: 10px 5px 14px 10px;
  24555. border-top: 1px solid #cad1dc;
  24556. font-size: 14px;
  24557. font-weight: 400;
  24558. color: #cad1dc;
  24559. width: calc(100% - 20px);
  24560. margin: 0 auto;
  24561. box-sizing: border-box;
  24562. }
  24563. .pl_select_box {
  24564. height: 40px;
  24565. line-height: 40px;
  24566. width: 100%;
  24567. cursor: pointer;
  24568. padding: 0 20px;
  24569. box-sizing: border-box;
  24570. border-radius: 5px;
  24571. border: 1px solid #d6d6d6;
  24572. white-space: nowrap;
  24573. overflow: hidden;
  24574. text-overflow: ellipsis;
  24575. background: #fff;
  24576. text-align: left;
  24577. }
  24578. .newButton {
  24579. width: 102px;
  24580. height: 36px;
  24581. background: #e7ebf1;
  24582. border-radius: 4px;
  24583. color: #0e1e33;
  24584. font-weight: 400;
  24585. font-size: 14px;
  24586. border: none;
  24587. float: right;
  24588. margin-left: 10px;
  24589. }
  24590. .el-table >>> .even_row {
  24591. background-color: #f0f4fa;
  24592. }
  24593. .stageBoxCss,
  24594. .stageBoxIsCss {
  24595. display: flex;
  24596. flex-direction: row;
  24597. flex-wrap: nowrap;
  24598. align-items: center;
  24599. height: 50px;
  24600. border-bottom: 1px solid #e2f5fc;
  24601. cursor: pointer;
  24602. width: 100%;
  24603. }
  24604. .stageBoxIsCss {
  24605. background: #0061ff;
  24606. color: #fff;
  24607. border-radius: 8px;
  24608. }
  24609. .closeTri,
  24610. .closeTri1 {
  24611. min-width: 15px;
  24612. width: 15px;
  24613. height: 15px;
  24614. }
  24615. .closeTri1 {
  24616. padding-left: 10px;
  24617. cursor: pointer;
  24618. }
  24619. .closeTri > img,
  24620. .closeTri1 > img {
  24621. width: 100%;
  24622. height: 100%;
  24623. /* transition: all .5s; */
  24624. }
  24625. .noToolBlue {
  24626. min-width: 10px;
  24627. width: 10px;
  24628. height: 10px;
  24629. background: #0061ff;
  24630. border-radius: 50%;
  24631. margin-left: 13px;
  24632. }
  24633. .stageChild,
  24634. .toolChild {
  24635. height: 0;
  24636. overflow: hidden;
  24637. transition: all 0.5s;
  24638. }
  24639. /* .toolChild { */
  24640. /* margin: 0 0 0 17px;
  24641. padding: 0 0 0 20px;
  24642. border-left: 1px solid #d7d7d7; */
  24643. /* } */
  24644. .toolChild > div + div{
  24645. margin-top:5px;
  24646. }
  24647. .gjCss {
  24648. display: flex;
  24649. flex-direction: row;
  24650. flex-wrap: nowrap;
  24651. align-items: center;
  24652. padding: 10px 0 10px 25px;
  24653. box-sizing: border-box;
  24654. font-size: 14px;
  24655. cursor: pointer;
  24656. border-radius:5px;
  24657. }
  24658. .gjCss > div:nth-child(1){
  24659. flex-shrink: 0;
  24660. }
  24661. .toolChild > div {
  24662. position: relative;
  24663. width: 100%;
  24664. }
  24665. /* .toolChild > div::before { */
  24666. /* content: "";
  24667. width: 15px;
  24668. height: 1px;
  24669. background: #cad1dc;
  24670. position: absolute;
  24671. top: 24px;
  24672. left: -20px;
  24673. display: block; */
  24674. /* } */
  24675. .isGjCss {
  24676. /* color: #0061ff; */
  24677. color:#fff;
  24678. background: rgb(55, 129, 252);
  24679. /* background-color: #e0eafb !important;
  24680. color: #0061ff !important; */
  24681. }
  24682. .navItem {
  24683. background: #ffffff;
  24684. border-radius: 4px;
  24685. width: 100%;
  24686. margin: 10px auto;
  24687. position: relative;
  24688. height: 40px;
  24689. display: flex;
  24690. flex-direction: row;
  24691. flex-wrap: nowrap;
  24692. align-items: center;
  24693. }
  24694. .navItemList {
  24695. display: flex;
  24696. flex-direction: row;
  24697. flex-wrap: nowrap;
  24698. align-items: center;
  24699. padding: 0 13px;
  24700. cursor: pointer;
  24701. width: calc(100% - 60px);
  24702. height: 100%;
  24703. }
  24704. .navItemList > div:first-child {
  24705. min-width: 60px;
  24706. }
  24707. .navItemList > div:last-child {
  24708. width: calc(100% - 80px);
  24709. white-space: nowrap;
  24710. overflow: hidden;
  24711. text-overflow: ellipsis;
  24712. word-break: break-word;
  24713. }
  24714. /* .isItemList > div {
  24715. color: #fff !important;
  24716. } */
  24717. .tool_work_box {
  24718. width: 100%;
  24719. padding: 0 37px 0;
  24720. box-sizing: border-box;
  24721. }
  24722. .tool_box {
  24723. width: 100%;
  24724. padding: 0 0 0 20px;
  24725. }
  24726. .tool_type_box {
  24727. display: flex;
  24728. flex-direction: row;
  24729. align-items: baseline;
  24730. flex-wrap: nowrap;
  24731. justify-content: flex-start;
  24732. position: relative;
  24733. }
  24734. .toolSort {
  24735. display: flex;
  24736. flex-direction: row;
  24737. flex-wrap: wrap;
  24738. justify-content: flex-start;
  24739. align-items: flex-start;
  24740. padding: 0 0 15px 0;
  24741. }
  24742. .toolSort > div {
  24743. margin: 0 10px 0 0;
  24744. width: 135px;
  24745. box-sizing: border-box;
  24746. border: 2px solid transparent;
  24747. }
  24748. .tools {
  24749. width: 100%;
  24750. display: flex;
  24751. flex-direction: column;
  24752. flex-wrap: nowrap;
  24753. align-items: flex-start;
  24754. }
  24755. .whiteBIcon {
  24756. width: fit-content;
  24757. cursor: pointer;
  24758. display: flex;
  24759. flex-direction: column;
  24760. flex-wrap: nowrap;
  24761. align-items: center;
  24762. font-size: 14px;
  24763. }
  24764. .tool:hover {
  24765. border: 2px solid #a5c7ff;
  24766. border-radius: 5px;
  24767. }
  24768. .whiteBIcon > img {
  24769. width: 65px;
  24770. height: 100%;
  24771. }
  24772. .whiteBIcon > img {
  24773. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  24774. border-radius: 15px;
  24775. }
  24776. .check {
  24777. /* width: 20px;
  24778. height: 20px; */
  24779. cursor: pointer;
  24780. margin: 10px 0;
  24781. position: absolute;
  24782. right: 2px;
  24783. top: -5px;
  24784. }
  24785. .noChoose,
  24786. .isChoose {
  24787. width: 15px;
  24788. height: 15px;
  24789. border-radius: 50%;
  24790. border: 1px solid #adadad;
  24791. }
  24792. .isChoose {
  24793. border: 4px solid #0363ff !important;
  24794. width: 10px;
  24795. height: 10px;
  24796. }
  24797. .isToolChoose {
  24798. border: 2px solid #5394ff !important;
  24799. border-radius: 5px;
  24800. box-shadow: 0 0 6px 0px #5394ff;
  24801. }
  24802. .checkDiv {
  24803. display: flex;
  24804. align-items: center;
  24805. }
  24806. .checkDiv span {
  24807. margin-left: 5px;
  24808. color: #858585;
  24809. }
  24810. .check img {
  24811. width: 20px;
  24812. height: 20px;
  24813. }
  24814. .lockTaskIcon {
  24815. width: 20px;
  24816. height: 20px;
  24817. position: absolute;
  24818. right: 10px;
  24819. top: 10px;
  24820. }
  24821. .lockTaskIcon > img {
  24822. width: 100%;
  24823. height: 100%;
  24824. }
  24825. .pick_box {
  24826. display: flex;
  24827. align-items: flex-start;
  24828. flex-wrap: wrap;
  24829. }
  24830. .selectBox {
  24831. width: 110px;
  24832. margin-left: 10px;
  24833. margin: 0 10px 0 auto;
  24834. }
  24835. .selectBox >>> .el-input__inner {
  24836. height: 30px;
  24837. line-height: 30px;
  24838. }
  24839. .selectBox >>> .el-input__icon {
  24840. line-height: 30px;
  24841. }
  24842. .sentenceTitle {
  24843. display: flex;
  24844. flex-direction: row;
  24845. flex-wrap: nowrap;
  24846. align-items: center;
  24847. }
  24848. .sentenceTitle::before {
  24849. content: attr(index);
  24850. background: #3681fc;
  24851. border-radius: 50%;
  24852. color: #fff;
  24853. width: 25px;
  24854. height: 25px;
  24855. min-width: 25px;
  24856. min-height: 25px;
  24857. text-align: center;
  24858. line-height: 25px;
  24859. margin-right: 5px;
  24860. }
  24861. .hfBox {
  24862. padding: 10px;
  24863. box-sizing: border-box;
  24864. }
  24865. .whoReplyWho {
  24866. display: flex;
  24867. flex-direction: row;
  24868. flex-wrap: nowrap;
  24869. align-items: baseline;
  24870. justify-content: flex-start;
  24871. }
  24872. .hfBottom {
  24873. display: flex;
  24874. flex-direction: row;
  24875. flex-wrap: nowrap;
  24876. align-items: center;
  24877. justify-content: space-between;
  24878. font-size: 14px;
  24879. }
  24880. .deleteHfItem {
  24881. cursor: pointer;
  24882. width: 20px;
  24883. height: 20px;
  24884. }
  24885. .deleteHfItem > img {
  24886. width: 100%;
  24887. height: 100%;
  24888. }
  24889. .whoReplyWho > .hfImg {
  24890. width: 12px;
  24891. height: 12px;
  24892. margin: 0 5px;
  24893. }
  24894. .whoReplyWho > .hfImg > img {
  24895. width: 100%;
  24896. height: 100%;
  24897. }
  24898. .hfContent {
  24899. padding-top: 10px;
  24900. box-sizing: border-box;
  24901. display: -webkit-box;
  24902. overflow: hidden;
  24903. white-space: normal !important;
  24904. text-overflow: ellipsis;
  24905. word-wrap: break-word;
  24906. -webkit-box-orient: vertical;
  24907. }
  24908. .hfTime {
  24909. text-align: left;
  24910. box-sizing: border-box;
  24911. padding: 10px 0 10px 0px;
  24912. color: #bfbfbf;
  24913. font-size: 14px;
  24914. }
  24915. .btnAllNT {
  24916. position: fixed;
  24917. bottom: 100px;
  24918. right: 40px;
  24919. z-index: 999;
  24920. display: flex;
  24921. flex-direction: row;
  24922. }
  24923. .btnAllNT > img {
  24924. cursor: pointer;
  24925. width: 80px;
  24926. }
  24927. .toolMask {
  24928. position: fixed;
  24929. width: 100%;
  24930. height: 100%;
  24931. background: #3f3c3c;
  24932. opacity: 0.5;
  24933. top: 0;
  24934. left: 0;
  24935. z-index: 999;
  24936. }
  24937. .addToolCss {
  24938. position: fixed;
  24939. z-index: 999;
  24940. background: #fff;
  24941. right: 5%;
  24942. bottom: 18%;
  24943. min-width: 1035px;
  24944. min-height: 300px;
  24945. border-radius: 10px;
  24946. box-shadow: 0 0 8px 1px #b2b2b2;
  24947. }
  24948. .toolTop {
  24949. display: flex;
  24950. flex-direction: row;
  24951. flex-wrap: nowrap;
  24952. justify-content: space-between;
  24953. align-items: center;
  24954. padding: 20px;
  24955. }
  24956. .toolTop > div:nth-child(2) {
  24957. width: 15px;
  24958. height: 15px;
  24959. padding-right: 10px;
  24960. cursor: pointer;
  24961. }
  24962. .toolTop > div:nth-child(2) > img {
  24963. width: 100%;
  24964. height: 100%;
  24965. }
  24966. .fullStyle>>>.el-dialog__body {
  24967. height: calc(100% - 125px) !important;
  24968. box-sizing: border-box;
  24969. padding: 30px 0 !important;
  24970. background: #fff !important;
  24971. }
  24972. .fullStyle>>>.el-dialog {
  24973. width: 100% !important;
  24974. max-width: 100% !important;
  24975. height: 100% !important;
  24976. margin: 0 !important;
  24977. }
  24978. .fullStyle {
  24979. width: 100% !important;
  24980. max-width: 100% !important;
  24981. height: 100% !important;
  24982. margin: 0 auto !important;
  24983. }
  24984. .fullStyle>>>.el-dialog__footer{
  24985. background: #fff !important;
  24986. }
  24987. .engUpBox {
  24988. width: 100%;
  24989. height: 100%;
  24990. }
  24991. .engTitle,
  24992. .engText {
  24993. display: flex;
  24994. flex-direction: row;
  24995. flex-wrap: nowrap;
  24996. align-items: flex-start;
  24997. padding: 0 20px 20px 20px;
  24998. box-sizing: border-box;
  24999. }
  25000. .engTitle > .div:first-child,
  25001. .engText > div:first-child {
  25002. min-width: 75px;
  25003. }
  25004. .correctBox{
  25005. width: 100%;
  25006. display: flex;
  25007. flex-direction: row;
  25008. flex-wrap: nowrap;
  25009. align-items: flex-start;
  25010. }
  25011. .oldBox{
  25012. width: 50%;
  25013. height: 100%;
  25014. display: flex;
  25015. flex-direction: column;
  25016. flex-wrap: nowrap;
  25017. align-items: center;
  25018. border-top: 1px solid #d9d9d9;
  25019. border-left: 1px solid #d9d9d9;
  25020. border-right: 1px solid #d9d9d9;
  25021. }
  25022. .oldBox>div:first-child{
  25023. width: 100%;
  25024. text-align: center;
  25025. background: #d9d9d9;
  25026. height: 35px;
  25027. line-height: 35px;
  25028. font-weight: bold;
  25029. }
  25030. .oldText{
  25031. width: 100%;
  25032. height: calc(100% - 35px);
  25033. overflow: auto;
  25034. margin: 10px 0;
  25035. display: flex;
  25036. flex-direction: column;
  25037. flex-wrap: nowrap;
  25038. align-content: center;
  25039. align-items: center;
  25040. }
  25041. .detailBox{
  25042. width: 50%;
  25043. padding: 10px;
  25044. background: #f6f6f6;
  25045. border-radius: 5px;
  25046. }
  25047. .oldDetail,.oldDetail1{
  25048. padding-bottom: 30px;
  25049. }
  25050. .oldImg{
  25051. width:30px;
  25052. height: 30px;
  25053. }
  25054. .oldImg>img{
  25055. width: 100%;
  25056. height: 100%;
  25057. }
  25058. .allName{
  25059. min-width: 200px;
  25060. white-space: nowrap;
  25061. overflow: hidden;
  25062. text-overflow: ellipsis;
  25063. word-break: break-word;
  25064. cursor: pointer;
  25065. text-align: center;
  25066. border: 1px solid #bcc2cc;
  25067. box-sizing: border-box;
  25068. }
  25069. .engUpTop{
  25070. max-height: 300px;
  25071. overflow: auto;
  25072. }
  25073. .isUpdateToolDetailClass{
  25074. padding: 0 !important;
  25075. }
  25076. .isUpdateToolDetailClass textarea{
  25077. padding:12px;
  25078. font-size: 16px;
  25079. min-height:100%;
  25080. width: 100%;
  25081. box-sizing:border-box;
  25082. outline: none;
  25083. border:none;
  25084. line-height: 30px;
  25085. resize: none;
  25086. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25087. color: #838383;
  25088. }
  25089. .show_taskD {
  25090. min-width: fit-content;
  25091. margin-left: 10px;
  25092. display: flex;
  25093. align-items: center;
  25094. font-size: 14px;
  25095. cursor: pointer;
  25096. color: #717c8d;
  25097. }
  25098. .show_taskD > img {
  25099. width: 15px;
  25100. margin-right: 5px;
  25101. transition: 0.2s all;
  25102. transform: rotate(-90deg);
  25103. }
  25104. .show_taskD.show > img {
  25105. transform: rotate(0deg);
  25106. }
  25107. .dialog_diyCopy >>> .el-dialog__header {
  25108. display: none !important;
  25109. }
  25110. .dialog_diyCopy >>> .el-dialog__body {
  25111. padding: 0 !important;
  25112. height: 100% !important;
  25113. }
  25114. .confirmOpenDigCss > div{
  25115. font-size: 14px;
  25116. color: rgba(0, 0, 0, 0.6);
  25117. }
  25118. .confirmOpenDigCss >>> .el-dialog{
  25119. border-radius: 6px;
  25120. }
  25121. .confirmOpenDigCss >>> .el-dialog__body{
  25122. padding: 25px !important;
  25123. }
  25124. .confirmOpenDigCss > span{
  25125. font-size: 16px;
  25126. font-weight: 600;
  25127. color: rgba(0, 0, 0, 0.8);
  25128. }
  25129. .correctCss{
  25130. position: absolute;
  25131. bottom: -70px;
  25132. background: #409eff;
  25133. color: #fff;
  25134. }
  25135. div::-webkit-scrollbar {
  25136. width: 10px;
  25137. height: 6px;
  25138. }
  25139. .Ovh{
  25140. margin: 5px 0;
  25141. width: 4em;
  25142. -webkit-line-clamp: 2;
  25143. display: -webkit-box;
  25144. -webkit-box-orient: vertical;
  25145. overflow: hidden;
  25146. text-overflow: ellipsis;
  25147. }
  25148. .renderedFor >>> .katex {
  25149. font-size: 18px;
  25150. width: 100%;
  25151. white-space: normal;
  25152. font-family: '黑体' !important;
  25153. }
  25154. .renderedFor >>> .katex .base{
  25155. display: inline !important;
  25156. display: contents !important;
  25157. }
  25158. .renderedFor >>> .katex .base .cjk_fallback{
  25159. white-space: normal !important;
  25160. display: inline !important;
  25161. }
  25162. .notop >>> .vjs-fluid{
  25163. padding-top: 0 !important;
  25164. }
  25165. .xiaz{
  25166. position: absolute;
  25167. right: 40px;
  25168. top: 10px;
  25169. width: 24px !important;
  25170. padding: 4px;
  25171. box-sizing: border-box;
  25172. background: #243052;
  25173. border-radius: 8px;
  25174. height: 24px !important;
  25175. }
  25176. </style>