studyStudent.vue 875 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- 阶段模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <div class="btnAllNT" v-if="false">
  16. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  17. <img
  18. v-if="
  19. courseDetail.userid == userid ||
  20. (courseDetail.course_teacher &&
  21. courseDetail.course_teacher.indexOf(userid) != -1)
  22. "
  23. src="../assets/icon/learn/addTool.png"
  24. @click="openToolAll"
  25. style="position: relative"
  26. />
  27. </div>
  28. <div
  29. class="pButton"
  30. style="left: 0; top: 140px"
  31. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  32. @click="setContent2(true)"
  33. >
  34. <!-- 批 , getCourseDetail()-->
  35. <img
  36. src="../assets/icon/newIcons/isRight.png"
  37. style="width: 45px"
  38. alt=""
  39. />
  40. </div>
  41. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  42. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  43. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  44. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  45. <div
  46. style="
  47. max-width: calc(100% - 40px);
  48. width: auto;
  49. white-space: nowrap;
  50. overflow: hidden;
  51. text-overflow: ellipsis;
  52. word-break: break-word;
  53. display: block;
  54. "
  55. >
  56. <el-tooltip
  57. effect="light"
  58. :content="courseDetail.title"
  59. placement="top"
  60. >
  61. <div class="ctitle">
  62. {{ courseDetail.title }}
  63. </div>
  64. </el-tooltip>
  65. </div>
  66. <el-tooltip effect="light" :content="lang.ssCollapse" placement="top">
  67. <div class="mlImg" @click="setContent2(false)">
  68. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  69. </div>
  70. </el-tooltip>
  71. </div>
  72. <div
  73. class="inviteBox"
  74. v-if="tcid && inviteCode"
  75. style="padding: 0 0 8px 0"
  76. >
  77. <div>
  78. <!-- <span>识别码:{{ inviteCode }}</span> -->
  79. <span>{{ lang.ssInviteCodeLabel }}{{ Code2 ? Code2 + inviteCode : inviteCode }}</span>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="cru_selectBox">
  84. <div
  85. style="background: #fff; margin: 0 10px; border-radius: 8px"
  86. v-for="(item, stageIndex) in navList"
  87. :key="stageIndex"
  88. >
  89. <div
  90. class="stageBoxCss"
  91. @click="get(stageIndex)"
  92. :class="{
  93. // stageBoxIsCss: stageIndex == courseType,
  94. }"
  95. >
  96. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  97. <div>{{ lang.ssStage2.replace(/\*/g, stageIndex + 1) }}</div>
  98. <el-tooltip
  99. effect="light"
  100. :content="item.dyName"
  101. placement="top"
  102. >
  103. <div>
  104. {{ item.dyName }}
  105. </div>
  106. </el-tooltip>
  107. </div>
  108. <!-- <div class="closeTri" v-if="stageIndex == courseType" :style="{transform:item.isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}">
  109. <img src="../assets/icon/newIcons/downC.png" alt />
  110. </div> -->
  111. <div class="closeTri" :style="{transform:item.isOpen ? 'rotate(90deg)' : 'rotate(0deg)'}">
  112. <img src="../assets/icon/newIcons/right.png" alt />
  113. </div>
  114. </div>
  115. <div class="stageChild" :class="{ navActive: item.isOpen }">
  116. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  117. <div
  118. class="navItem"
  119. :class="{
  120. openTaskActive:
  121. navIndex == taskCount &&
  122. nav.id == navId &&
  123. stageIndex == courseType,
  124. }"
  125. >
  126. <div v-if="nav.tool[0].tool != undefined">
  127. <div
  128. class="closeTri1"
  129. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  130. @click="openTask(stageIndex, navIndex, nav.id)"
  131. >
  132. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../assets/icon/newIcons/bDown2.png" alt />
  133. </div>
  134. <div
  135. class="closeTri1"
  136. v-else
  137. @click="openTask(stageIndex, navIndex, nav.id)"
  138. >
  139. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../assets/icon/newIcons/right.png" alt />
  140. </div>
  141. </div>
  142. <div v-else class="noToolBlue"></div>
  143. <div
  144. @click="openTask(stageIndex, navIndex, nav.id)"
  145. class="navItemList"
  146. :class="{
  147. isItemList:
  148. navIndex == taskCount &&
  149. nav.id == navId &&
  150. stageIndex == courseType,
  151. }"
  152. >
  153. <div>{{ lang.ssTask + (navIndex + 1)}}:</div>
  154. <el-tooltip
  155. effect="light"
  156. :content="nav.taskName"
  157. placement="top"
  158. >
  159. <div
  160. :style="{
  161. width:
  162. IsLookOpen &&
  163. !(
  164. navIndex == taskCount &&
  165. nav.id == navId &&
  166. stageIndex == courseType
  167. )
  168. ? 'calc(100% - 75px)'
  169. : 'auto',
  170. }"
  171. >
  172. {{ nav.taskName }}
  173. </div>
  174. </el-tooltip>
  175. </div>
  176. <div class="lockTaskIcon">
  177. <img
  178. src="../assets/lock.png"
  179. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  180. courseDetail.course_teacher.indexOf(userid) ==-1"
  181. alt=""
  182. />
  183. </div>
  184. </div>
  185. <div
  186. v-if="nav.tool[0].tool != undefined"
  187. class="toolChild"
  188. :class="{ toolActive: nav.isOpen }"
  189. >
  190. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  191. <div
  192. class="gjCss"
  193. :class="{ isGjCss: t.isTool }"
  194. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  195. >
  196. <div>{{ lang.ssTool + (toolIndex + 1)}}:</div>
  197. <div v-if="t.tool == 58">{{ lang.ssSimulateDrive }}</div>
  198. <div v-if="t.tool == 59">{{ lang.ssPathSearch }}</div>
  199. <div v-if="t.tool == 60">{{ lang.ssDeepLearning }}</div>
  200. <div v-if="t.tool == 10">{{ lang.ssCountdown }}</div>
  201. <div v-if="t.tool == 65">{{ lang.ssPickPerson }}</div>
  202. <div v-if="t.tool == 7">{{ lang.ssMindGrid }}</div>
  203. <div v-if="t.tool == 1">{{ lang.ssWhiteboard }}</div>
  204. <div v-if="t.tool == 52">{{ lang.ssDocument }}</div>
  205. <div v-if="t.tool == 3">{{ lang.ssMindMap }}</div>
  206. <div v-if="t.tool == 48">{{ lang.ssTable }}</div>
  207. <div v-if="t.tool == 49">{{ lang.ssStudentGroup }}</div>
  208. <div v-if="t.tool == 4">{{ lang.ssSurvey }}</div>
  209. <div v-if="t.tool == 45">{{ lang.ssChoice }}</div>
  210. <div v-if="t.tool == 15">{{ lang.ssQa }}</div>
  211. <div v-if="t.tool == 16">{{ lang.ssHomework }}</div>
  212. <div v-if="t.tool == 50">{{ lang.ssBatchUpload }}</div>
  213. <div v-if="t.tool == 41">{{ lang.ssMatch }}</div>
  214. <div v-if="t.tool == 47">{{ lang.ssSort }}</div>
  215. <div v-if="t.tool == 40">{{ lang.ssPersonalEval }}</div>
  216. <div v-if="t.tool == 18">{{ lang.ssTraining }}</div>
  217. <div v-if="t.tool == 21">AIoT Blockly</div>
  218. <div v-if="t.tool == 23">AI Python</div>
  219. <div v-if="t.tool == 24">AI Blockly</div>
  220. <div v-if="t.tool == 32">{{ lang.ssCodeEdit }}</div>
  221. <div v-if="t.tool == 57">CocoPi</div>
  222. <div v-if="t.tool == 63">{{ lang.ssTurtle }}</div>
  223. <div v-if="t.tool == 28">{{ lang.ssTranslate }}</div>
  224. <div v-if="t.tool == 31">{{ lang.ssDigitalBoard }}</div>
  225. <div v-if="t.tool == 39">GeoGebra</div>
  226. <div v-if="t.tool == 66">{{ lang.ssFormula }}</div>
  227. <div v-if="t.tool == 67">{{ lang.ssMolecule }}</div>
  228. <div v-if="t.tool == 68">{{ lang.ssTimeline }}</div>
  229. <div v-if="t.tool == 69">{{ lang.ssEnglishWrite }}</div>
  230. <div v-if="t.tool == 70">{{ lang.ssEnglishSpeak }}</div>
  231. <div v-if="t.tool == 25">{{ lang.ssGoalManage }}</div>
  232. <div v-if="t.tool == 26">{{ lang.ssCourseDesign }}</div>
  233. <div v-if="t.tool == 62">{{ lang.ssInteractiveVideo }}</div>
  234. <div v-if="t.tool == 71">{{ lang.ssAiAgent }}</div>
  235. <div v-if="t.tool == 72">{{ lang.ssAppCenter }}</div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. </div>
  241. </div>
  242. </div>
  243. </div>
  244. <!-- :class="{ navLeftCss: !mlDialog }" -->
  245. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  246. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  247. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  248. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  249. <div>{{ lang.ssTask.replace(/\*/g, taskCount + 1) }}</div>
  250. <el-tooltip
  251. effect="light"
  252. :content="
  253. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  254. "
  255. placement="top"
  256. >
  257. <div>
  258. {{
  259. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  260. .task
  261. }}
  262. </div>
  263. </el-tooltip>
  264. </div>
  265. <div class="btnAll" v-show="(!orgArray.includes(org) && !oidArray.includes(oid)) || $region == 'hk'"><!--v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'"-->
  266. <div class="btnLeft">
  267. <el-tooltip effect="light" :content="lang.ssRefresh" placement="top">
  268. <div class="reBtnIcon" @click="refreshCourse">
  269. <span>{{ lang.ssRefresh }}</span>
  270. </div>
  271. </el-tooltip>
  272. <el-tooltip effect="light" :content="lang.ssComment" placement="top">
  273. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  274. <span>{{ lang.ssComment }}</span>
  275. </div>
  276. </el-tooltip>
  277. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  278. <el-tooltip effect="light" :content="lang.ssRecord" placement="top">
  279. <div class="vedioIcon" @click="startRecording">
  280. <span>{{ lang.ssRecord }}</span>
  281. </div>
  282. </el-tooltip>
  283. </div>
  284. <div v-else-if="tType == 1 || tType == 4">
  285. <el-tooltip effect="light" :content="lang.ssDownload" placement="top">
  286. <div class="vedioIcon1" @click="stopRecording">
  287. <span>{{ lang.ssDownload }}</span>
  288. </div>
  289. </el-tooltip>
  290. </div>
  291. </div>
  292. <div class="btnRight">
  293. <div
  294. class="last"
  295. @click="nextOrpreSteps(0)"
  296. v-if="!(IsFollow && tType == 2)"
  297. @mouseover="isHovered = true"
  298. @mouseout="isHovered = false"
  299. >
  300. <div class="lastImg">
  301. <img
  302. :src="
  303. isHovered
  304. ? require('../assets/icon/newIcons/whiteLast.png')
  305. : require('../assets/icon/newIcons/last.png')
  306. "
  307. alt=""
  308. />
  309. </div>
  310. <div class="lastText">{{ lang.ssPrevious }}</div>
  311. </div>
  312. <div
  313. class="last"
  314. @click="nextOrpreSteps(1)"
  315. v-if="!(IsFollow && tType == 2)"
  316. @mouseover="isHovered1 = true"
  317. @mouseout="isHovered1 = false"
  318. >
  319. <div class="lastText">{{ lang.ssNext }}</div>
  320. <div class="lastImg">
  321. <img
  322. :src="
  323. isHovered1
  324. ? require('../assets/icon/newIcons/whiteNext.png')
  325. : require('../assets/icon/newIcons/next.png')
  326. "
  327. alt=""
  328. />
  329. </div>
  330. </div>
  331. <div
  332. class="last"
  333. @click="juriVisible = true"
  334. v-if="tType == 1"
  335. @mouseover="isHovered2 = true"
  336. @mouseout="isHovered2 = false"
  337. >
  338. <div class="lastImg">
  339. <img
  340. :src="
  341. isHovered2
  342. ? require('../assets/icon/newIcons/whiteLock.png')
  343. : require('../assets/icon/newIcons/lock.png')
  344. "
  345. alt=""
  346. />
  347. </div>
  348. <div class="lastText">{{ lang.ssPermission }}</div>
  349. </div>
  350. <div
  351. class="returnBtn1 returnIcon"
  352. @click.stop="
  353. goTo(
  354. '/courseDetail?userid=' +
  355. userid +
  356. '&oid=' +
  357. oid +
  358. '&org=' +
  359. org +
  360. '&cid=' +
  361. classId +
  362. '&courseId=' +
  363. id +
  364. '&tType=' +
  365. tType +
  366. '&screenType=' +
  367. screenType
  368. )
  369. "
  370. >
  371. <div class="lastImg">
  372. <img src="../assets/icon/newIcon/return.png" alt="" />
  373. </div>
  374. <div class="lastText" style="color: #000">{{ lang.ssReturn }}</div>
  375. </div>
  376. </div>
  377. <!-- <div
  378. class="returnBtn lockIcon"
  379. @click="juriVisible = true"
  380. v-if="tType == 1"
  381. >
  382. 权限
  383. </div>
  384. <div
  385. class="returnBtn vedioIcon"
  386. @click="startRecording"
  387. v-if="!videoStart && (tType == 1 || tType == 4)"
  388. >
  389. 录制
  390. </div>
  391. <div
  392. class="returnBtn"
  393. @click="stopRecording"
  394. v-else-if="tType == 1 || tType == 4"
  395. style="background: #ee5255"
  396. >
  397. {{ lang.ssDownload }}
  398. </div>
  399. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  400. {{ lang.ssComment }}
  401. </div>
  402. <div
  403. class="returnBtn"
  404. @click="nextOrpreSteps(0)"
  405. v-if="!(IsFollow && tType == 2)"
  406. >
  407. {{ lang.ssPrevious }}
  408. </div>
  409. <div
  410. class="returnBtn"
  411. @click="nextOrpreSteps(1)"
  412. v-if="!(IsFollow && tType == 2)"
  413. >
  414. {{ lang.ssNext }}
  415. </div>
  416. <div class="returnBtn" @click="refreshCourse">{{ lang.ssRefresh }}</div>
  417. <div
  418. class="returnBtn returnIcon"
  419. @click.stop="
  420. goTo(
  421. '/courseDetail?userid=' +
  422. userid +
  423. '&oid=' +
  424. oid +
  425. '&org=' +
  426. org +
  427. '&cid=' +
  428. classId +
  429. '&courseId=' +
  430. id +
  431. '&tType=' +
  432. tType +
  433. '&screenType=' +
  434. screenType
  435. )
  436. "
  437. >
  438. 返回
  439. </div> -->
  440. </div>
  441. </div>
  442. <div
  443. class="isNoMessage"
  444. v-if="
  445. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  446. .chapterData.length == 0 &&
  447. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .toolChoose[0].tool.length == 0 &&
  449. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  450. .taskDetail == '' &&
  451. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  452. .eList &&
  453. !(
  454. courseDetail.userid == userid ||
  455. (courseDetail.course_teacher &&
  456. courseDetail.course_teacher.indexOf(userid) != -1)
  457. )
  458. "
  459. >
  460. <img src="../assets/icon/isNoMessage.png" alt />
  461. </div>
  462. <div class="study_top" :class="{ pzClass: pzDialog }">
  463. <div
  464. class="vedioBox"
  465. v-if="
  466. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  467. .taskDetail != '' ||
  468. vChapterData[taskCount].length > 0 ||
  469. fileC[taskCount].length > 0) && (tType == 1 || (tType == 2 && IsStulook))
  470. "
  471. style="border-radius: 0 0 20px 20px"
  472. >
  473. <div
  474. class="taskBox"
  475. v-if="
  476. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  477. .taskDetail != ''
  478. "
  479. >
  480. <div
  481. style="
  482. display: flex;
  483. flex-wrap: nowrap;
  484. flex-direction: column;
  485. position: relative;
  486. "
  487. class="renderedFor"
  488. >
  489. <div
  490. style="
  491. padding: 15px 0;
  492. line-height: 29px;
  493. font-size: 18px;
  494. color: #0e1e33;
  495. "
  496. class="cont"
  497. v-if="
  498. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  499. .taskDetail != ''
  500. "
  501. v-html="
  502. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  503. .taskDetail
  504. ? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
  505. taskCount
  506. ].taskDetail)
  507. : lang.ssNoDesc
  508. "
  509. ></div>
  510. </div>
  511. </div>
  512. <div
  513. class="student_head"
  514. v-if="
  515. vChapterData[taskCount].length > 0 ||
  516. fileC[taskCount].length > 0
  517. "
  518. >
  519. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  520. <div
  521. :class="
  522. contentDialog == false
  523. ? 'box_course isContentCss'
  524. : 'box_course'
  525. "
  526. v-if="
  527. vChapterData.length > 0 &&
  528. vChapterData[taskCount] &&
  529. showType !== ''
  530. "
  531. >
  532. <div class="wheel" style="height: auto" v-if="showType === 0">
  533. <div
  534. class="workd_media"
  535. style="height: 650px; width: calc(100% - 50px)"
  536. >
  537. <video-player
  538. class="video-player vjs-custom-skin notop"
  539. :class="contentDialog == false ? 'isAllWidth' : ''"
  540. :playsinline="true"
  541. :options="playerO[taskCount]"
  542. @play="onPlayerPlay($event)"
  543. style="width: 100%; height: 650px; margin: 0 0 0 30px"
  544. ></video-player>
  545. </div>
  546. </div>
  547. <div
  548. class="wheel"
  549. v-if="showType == 1"
  550. style="
  551. box-shadow: 0 0 6px 1px #f2f2f2;
  552. width: 95%;
  553. margin: 0 auto;
  554. background: #f1f1f1;
  555. "
  556. >
  557. <div class="title">{{ lang.ssViewDoc }}</div>
  558. <el-form class="textBox">
  559. <el-form-item class="textTitle">
  560. <div style="font-size: 22px">
  561. {{ text.name }}
  562. </div>
  563. </el-form-item>
  564. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  565. <div v-html="text.url" class="textContent cont"></div>
  566. </el-form>
  567. </div>
  568. <div
  569. class="wheel"
  570. v-if="
  571. pptImgUrl1.indexOf(
  572. 'https://view.officeapps.live.com/op/view.aspx?src='
  573. ) != -1 && showType == 2
  574. "
  575. style="width: 95%; margin: 0 auto"
  576. >
  577. <iframe
  578. style="width: 100%; height: 100%; border: none"
  579. :src="pptImgUrl1"
  580. ></iframe>
  581. </div>
  582. <div
  583. class="wheel"
  584. v-else-if="showType == 2"
  585. style="width: 95%; margin: 0 auto"
  586. >
  587. <iframe
  588. style="width: 100%; height: 100%; border: none"
  589. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  590. :key="diffKey"
  591. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  592. :src="pptImgUrl1"
  593. ></iframe>
  594. <iframe
  595. style="width: 100%; height: 100%; border: none"
  596. security="restricted"
  597. v-else
  598. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  599. :src="pptImgUrl1"
  600. ></iframe>
  601. </div>
  602. <div
  603. class="wheel"
  604. v-if="showType === 16"
  605. style="width: 95%; margin: 0 auto"
  606. >
  607. <iframe
  608. style="width: 100%; height: 100%; border: none"
  609. :src="pptImgUrl1"
  610. ></iframe>
  611. </div>
  612. <div
  613. class="wheel"
  614. v-if="showType == 3"
  615. style="width: 95%; margin: 0 auto"
  616. >
  617. <pdf
  618. :pdfUrl="pptImgUrl1"
  619. style="width: 100%; height: 100%; overflow: auto"
  620. ></pdf>
  621. </div>
  622. <div
  623. class="wheel"
  624. v-if="showType == 4"
  625. style="width: 95%; margin: 0 auto"
  626. >
  627. <el-image
  628. :src="pptImgUrl1"
  629. fit="contain"
  630. style="width: 100%; height: 100%; cursor: pointer"
  631. @click="previewImg(pptImgUrl1)"
  632. ></el-image>
  633. </div>
  634. </div>
  635. <div
  636. class="pButton"
  637. style="position: absolute; right: 20px; top: 0; z-index: 998"
  638. v-if="!contentDialog"
  639. @click="setContent(true)"
  640. >
  641. <!-- 批 -->
  642. <img
  643. src="../assets/icon/newIcons/isLeft.png"
  644. style="width: 45px"
  645. alt=""
  646. />
  647. </div>
  648. <div
  649. v-if="contentDialog == true"
  650. :style="{
  651. width:
  652. (vChapterData[taskCount].length > 0 ||
  653. fileC[taskCount].length > 0) &&
  654. showType === ''
  655. ? 'calc(100%)'
  656. : '300px',
  657. margin:
  658. (vChapterData[taskCount].length > 0 ||
  659. fileC[taskCount].length > 0) &&
  660. showType === ''
  661. ? '0 15px'
  662. : '0 15px 0 0',
  663. }"
  664. >
  665. <div
  666. class="vedioList"
  667. v-if="
  668. vChapterData[taskCount].length > 0 ||
  669. fileC[taskCount].length > 0
  670. "
  671. style="height: 650px"
  672. >
  673. <div class="navCorOpenBox">
  674. <div class="navTitile">{{ lang.ssContentListLabel }}</div>
  675. <div class="navCorOpen" @click="setContent(false)">
  676. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  677. </div>
  678. </div>
  679. <div class="navBox">
  680. <div
  681. v-show="
  682. vChapterData[taskCount].length > 0 ||
  683. fileC[taskCount].length > 0
  684. "
  685. style="padding: 10px 0 25px 0"
  686. >
  687. <div
  688. class="vedioTimeBox"
  689. v-for="(vitem, vindex) in vChapterData[taskCount]"
  690. :key="vindex + '1'"
  691. >
  692. <div class="navListItem" v-if="vitem.type == 2">
  693. <div
  694. @click="lookVedio(vitem.url, vindex)"
  695. class="navText"
  696. :class="isClickNav == vindex ? 'isClickNav' : ''"
  697. >
  698. <span v-if="vitem.text">{{ vitem.text }}-</span
  699. >{{ vitem.name }}
  700. </div>
  701. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  702. <img src="../assets/icon/newIcon/down.png" alt />
  703. </div> -->
  704. </div>
  705. <div class="navListItem" v-if="vitem.type == 6">
  706. <div
  707. @click="lookText(taskCount, vindex)"
  708. class="navText"
  709. :class="isClickNav == vindex ? 'isClickNav' : ''"
  710. >
  711. {{ vitem.name }}.doc
  712. </div>
  713. <div
  714. class="downIcon"
  715. @click="checkFileFull1(vitem.type, vitem)"
  716. >
  717. <img
  718. src="../assets/icon/newIcon/allScreen.png"
  719. alt
  720. />
  721. </div>
  722. </div>
  723. <div
  724. class="navListItem"
  725. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  726. >
  727. <div
  728. @click="doUrl(vitem.url, vindex)"
  729. class="navText"
  730. :class="isClickNav == vindex ? 'isClickNav' : ''"
  731. >
  732. {{ vitem.title ? vitem.title : vitem.url }}
  733. </div>
  734. <div
  735. class="downIcon"
  736. @click="checkFileFull1(vitem.type, vitem)"
  737. >
  738. <img
  739. src="../assets/icon/newIcon/allScreen.png"
  740. alt
  741. />
  742. </div>
  743. </div>
  744. <div class="navListItem" v-if="vitem.type == 3">
  745. <div
  746. @click="downFile(vitem, vindex)"
  747. class="navText"
  748. :class="isClickNav == vindex ? 'isClickNav' : ''"
  749. >
  750. <span v-if="vitem.text">{{ vitem.text }}-</span
  751. >{{ vitem.name }}
  752. </div>
  753. <div
  754. class="downIcon"
  755. @click="checkFileFull1(vitem.type, vitem)"
  756. >
  757. <img
  758. src="../assets/icon/newIcon/allScreen.png"
  759. alt
  760. />
  761. </div>
  762. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  763. <img src="../assets/icon/newIcon/down.png" alt />
  764. </div> -->
  765. </div>
  766. <div class="navListItem" v-if="vitem.type == 12">
  767. <div class="navText" @click="downloadFile2(vitem)">
  768. <span v-if="vitem.text">{{ vitem.text }}-</span
  769. >{{ vitem.name }}
  770. </div>
  771. <div
  772. class="downIcon"
  773. @click="checkFileFull1(vitem.type, vitem)"
  774. >
  775. <img
  776. src="../assets/icon/newIcon/allScreen.png"
  777. alt
  778. />
  779. </div>
  780. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  781. <img src="../assets/icon/newIcon/down.png" alt />
  782. </div> -->
  783. </div>
  784. <div class="navListItem" v-if="vitem.type == 13">
  785. <div
  786. class="navText"
  787. @click="checkPhoto(vitem, vindex)"
  788. :class="isClickNav == vindex ? 'isClickNav' : ''"
  789. >
  790. {{ vitem.name }}
  791. </div>
  792. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  793. <img src="../assets/icon/newIcon/down.png" alt />
  794. </div> -->
  795. </div>
  796. <div class="navListItem" v-if="vitem.type == 16">
  797. <div
  798. class="navText"
  799. @click="checkHtml(vitem, vindex)"
  800. :class="isClickNav == vindex ? 'isClickNav' : ''"
  801. >
  802. {{ vitem.name }}
  803. </div>
  804. <div
  805. class="downIcon"
  806. @click="checkFileFull1(vitem.type, vitem)"
  807. >
  808. <img
  809. src="../assets/icon/newIcon/allScreen.png"
  810. alt
  811. />
  812. </div>
  813. </div>
  814. <div class="navListItem" v-if="vitem.type == 17">
  815. <div
  816. class="navText"
  817. @click="checkHtml(vitem, vindex)"
  818. :class="isClickNav == vindex ? 'isClickNav' : ''"
  819. >
  820. {{ vitem.name }}
  821. </div>
  822. <div
  823. class="downIcon"
  824. @click="checkFileFull1(vitem.type, vitem)"
  825. >
  826. <img
  827. src="../assets/icon/newIcon/allScreen.png"
  828. alt
  829. />
  830. </div>
  831. </div>
  832. </div>
  833. <div
  834. class="fileC_box"
  835. v-if="fileC[taskCount].length > 0"
  836. >
  837. <div class="fileC_title">{{ lang.ssNoPreview }}</div>
  838. <div
  839. class="vedioTimeBox"
  840. v-for="(vitem, vindex) in fileC[taskCount]"
  841. :key="vindex + '1'"
  842. >
  843. <div class="navListItem" v-if="vitem.type == 12">
  844. <div class="navText" style="color: #acb4bf">
  845. <span v-if="vitem.text">{{ vitem.text }}-</span
  846. >{{ vitem.name }}
  847. </div>
  848. <div
  849. class="downIcon"
  850. @click="downloadFile2(vitem)"
  851. >
  852. <img
  853. src="../assets/icon/newIcon/down.png"
  854. alt
  855. />
  856. </div>
  857. </div>
  858. </div>
  859. </div>
  860. </div>
  861. </div>
  862. </div>
  863. </div>
  864. </div>
  865. <div style="width: calc(100% - 315px)">
  866. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  867. <!-- <el-button
  868. type="primary"
  869. class="newButton"
  870. @click="checkFileFull(showType, pptImgUrl1)"
  871. >全屏查看</el-button
  872. >
  873. <el-button
  874. type="primary"
  875. class="newButton"
  876. @click="downloadFile(pptImgUrl1)"
  877. v-if="showType != 2"
  878. >文件下载</el-button
  879. > -->
  880. <el-button
  881. class="newButton"
  882. v-if="
  883. showType == 2 &&
  884. pptImgUrl1.indexOf(
  885. 'https://view.officeapps.live.com/op/view.aspx?src='
  886. ) == -1
  887. "
  888. type="primary"
  889. @click="openLine(pptImgUrl1)"
  890. >{{ lang.ssOpenLink }}
  891. </el-button>
  892. </div>
  893. <!-- <div
  894. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  895. v-if="showType == 1"
  896. >
  897. <el-button
  898. type="primary"
  899. class="newButton"
  900. @click="checkFileFull(showType, text)"
  901. >{{ lang.ssFullScreenView }}</el-button
  902. >
  903. </div> -->
  904. </div>
  905. </div>
  906. </div>
  907. <div class="student_body" v-resize="resize">
  908. <div
  909. class="vedioBox"
  910. :style="{
  911. borderRadius:
  912. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  913. .taskDetail == '' &&
  914. vChapterData[taskCount].length == 0 &&
  915. fileC[taskCount].length == 0
  916. ? '0 0 20px 20px'
  917. : '20px',
  918. }"
  919. v-if="
  920. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  921. .toolChoose[0].tool &&
  922. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  923. .toolChoose[0].tool.length > 0
  924. "
  925. >
  926. <div
  927. class="toolHeng2"
  928. style="position: relative"
  929. v-if="
  930. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  931. .toolChoose[0].tool &&
  932. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  933. .toolChoose[0].tool.length &&
  934. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  935. .toolChoose[0].tool.length > 0
  936. "
  937. >
  938. <div class="workNav">{{ lang.ssWorkArea }}</div>
  939. <div
  940. class="filebox"
  941. style="flex-wrap: nowrap"
  942. v-for="(tool, toolIndex) in chapInfoList[courseType]
  943. .chapterInfo[0].taskJson[taskCount].toolChoose"
  944. :key="toolIndex"
  945. >
  946. <div class="bzBox">
  947. <div class="yCss"></div>
  948. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  949. {{ lang.ssTool + (toolIndex + 1) }}
  950. </div>
  951. <div
  952. v-if="timeWorkList[toolIndex].length > 0"
  953. style="margin: 0 0 0 10px"
  954. >
  955. {{
  956. timeWorkList[toolIndex][0].time
  957. ? lang.ssTimeLabel + timeWorkList[toolIndex][0].time
  958. : ""
  959. }}
  960. </div>
  961. </div>
  962. <div class="toolBox">
  963. <div>
  964. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  965. :key="indexTool"-->
  966. <!-- <div class="iframeBox">
  967. <div
  968. class="addPoint isBorder"
  969. v-for="(tooC, toolCIndex) in tool.tool"
  970. :key="toolCIndex"
  971. >
  972. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  973. <div
  974. class="iframeName"
  975. >
  976. {{ lang.ssWhiteboard }}
  977. </div>
  978. <iframe
  979. src="https://iwb.cocorobo.cn/"
  980. ref="whiteBoard"
  981. ></iframe>
  982. </div>
  983. </div>
  984. </div>-->
  985. <div class="noiframeBox">
  986. <div
  987. class="addPoint"
  988. v-for="(tooC, toolCIndex) in tool.tool"
  989. :key="toolCIndex"
  990. >
  991. <div v-if="tooC == 1">
  992. <img
  993. src="../assets/icon/secondToolList/whiteBoard.png"
  994. alt
  995. @click="addTools(tooC, toolIndex, taskCount)"
  996. />
  997. <div style="margin: 5px 0">{{ lang.ssWhiteboard }}</div>
  998. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  999. style="position: absolute;right: 33px;top: -30px;">
  1000. {{ lang.ssAnalyze }}
  1001. </div>
  1002. </div>
  1003. <div v-if="tooC == 3">
  1004. <img
  1005. src="../assets/icon/secondToolList/mindMapping.png"
  1006. alt
  1007. @click="addTools(tooC, toolIndex, taskCount)"
  1008. />
  1009. <div style="margin: 5px 0">{{ lang.ssMindMap }}</div>
  1010. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1011. style="position: absolute;right: 33px;top: -30px;">
  1012. {{ lang.ssAnalyze }}
  1013. </div>
  1014. </div>
  1015. <div v-if="tooC == 6">
  1016. <img
  1017. src="../assets/icon/secondToolList/doc.png"
  1018. alt
  1019. @click="addTools(tooC, toolIndex, taskCount)"
  1020. />
  1021. <div style="margin: 5px 0">{{ lang.ssCoDoc }}</div>
  1022. </div>
  1023. <div v-if="tooC == 7">
  1024. <img
  1025. src="../assets/icon/secondToolList/mindNetwork.png"
  1026. alt
  1027. @click="addTools(tooC, toolIndex, taskCount)"
  1028. />
  1029. <div style="margin: 5px 0">{{ lang.ssMindGrid }}</div>
  1030. <!-- && worksStudent[toolIndex].length>0 -->
  1031. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1032. style="position: absolute;right: 33px;top: -30px;">
  1033. {{ lang.ssAnalyze }}
  1034. </div>
  1035. </div>
  1036. <div v-if="tooC == 8">
  1037. <img
  1038. src="../assets/icon/secondToolList/library.png"
  1039. alt
  1040. @click="addTools(tooC, toolIndex, taskCount)"
  1041. />
  1042. <div style="margin: 5px 0">{{ lang.ssMaterialLib }}</div>
  1043. </div>
  1044. <div v-if="tooC == 17">
  1045. <img
  1046. src="../assets/icon/secondToolList/library.png"
  1047. alt
  1048. @click="addTools(tooC, toolIndex, taskCount)"
  1049. />
  1050. <div style="margin: 5px 0">{{ lang.ssLearningMaterial }}</div>
  1051. </div>
  1052. <div v-if="tooC == 2">
  1053. <img
  1054. @click="addTools(tooC, toolIndex, taskCount)"
  1055. src="../assets/icon/secondToolList/note.png"
  1056. alt
  1057. />
  1058. <div style="margin: 5px 0">{{ lang.ssNote }}</div>
  1059. </div>
  1060. <div v-if="tooC == 4">
  1061. <img
  1062. @click="addTools(tooC, toolIndex, taskCount)"
  1063. src="../assets/icon/thirdToolList/ask.png"
  1064. alt
  1065. />
  1066. <div style="margin: 5px 0">{{ lang.ssSurvey }}</div>
  1067. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1068. style="position: absolute;right: 153px;top: -30px;">
  1069. {{ lang.ssAnalyze }}
  1070. </div>
  1071. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1072. style="position: absolute;right: 33px;top: -30px;">
  1073. {{ lang.ssStatisticalAnalysis }}
  1074. </div>
  1075. </div>
  1076. <div v-if="tooC == 45">
  1077. <img
  1078. @click="addTools(tooC, toolIndex, taskCount)"
  1079. src="../assets/icon/thirdToolList/choose.png"
  1080. alt
  1081. />
  1082. <div style="margin: 5px 0">{{ lang.ssChoice }}</div>
  1083. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1084. style="position: absolute;right: 33px;top: -30px;">
  1085. {{ lang.ssAnalyze }}
  1086. </div>
  1087. </div>
  1088. <!-- <div v-if="tooC == 5">
  1089. <img
  1090. @click="addTools(tooC, toolIndex, taskCount)"
  1091. src="../assets/icon/thirdToolList/score.png"
  1092. alt
  1093. />
  1094. <div style="margin: 5px 0">{{ lang.ssRatingScale }}</div>
  1095. </div> -->
  1096. <div v-if="tooC == 10">
  1097. <img
  1098. @click="addTools(tooC, toolIndex, taskCount)"
  1099. src="../assets/icon/thirdToolList/time.png"
  1100. alt
  1101. />
  1102. <div style="margin: 5px 0">{{ lang.ssCountdown }}</div>
  1103. </div>
  1104. <div v-if="tooC == 15">
  1105. <img
  1106. @click="addTools(tooC, toolIndex, taskCount)"
  1107. src="../assets/icon/thirdToolList/answer.png"
  1108. alt
  1109. />
  1110. <div style="margin: 5px 0">{{ lang.ssQa }}</div>
  1111. <div class="upload_toolBtn" v-if="tType == 1"
  1112. :style="{ right: lang.lang == 'com' ? '220px' : '135px' }"
  1113. @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1114. style="position: absolute;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1115. {{ lang.ssAnalyze }}
  1116. </div>
  1117. </div>
  1118. <div v-if="tooC == 26">
  1119. <img
  1120. @click="addTools(tooC, toolIndex, taskCount)"
  1121. src="../assets/icon/thirdToolList/courseDesign.png"
  1122. alt
  1123. />
  1124. <div style="margin: 5px 0">{{ lang.ssCourseDesign }}</div>
  1125. </div>
  1126. <div v-if="tooC == 18">
  1127. <img
  1128. @click="addTools(tooC, toolIndex, taskCount)"
  1129. src="../assets/icon/thirdToolList/trainPlatform.png"
  1130. alt
  1131. />
  1132. <div style="margin: 5px 0">{{ lang.ssTrainingServer }}</div>
  1133. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1134. style="position: absolute;right: 33px;top: -30px;">
  1135. {{ lang.ssAnalyze }}
  1136. </div>
  1137. </div>
  1138. <div v-if="tooC == 16">
  1139. <img
  1140. @click="addTools(tooC, toolIndex, taskCount)"
  1141. src="../assets/icon/thirdToolList/work.png"
  1142. alt
  1143. />
  1144. <div style="margin: 5px 0">{{ lang.ssHomework }}</div>
  1145. </div>
  1146. <div v-if="tooC == 50">
  1147. <img
  1148. @click="addTools(tooC, toolIndex, taskCount)"
  1149. src="../assets/icon/thirdToolList/plwork.png"
  1150. alt
  1151. />
  1152. <div style="margin: 5px 0">{{ lang.ssBatchUpload }}</div>
  1153. </div>
  1154. <div v-if="tooC == 21">
  1155. <img
  1156. @click="addTools(tooC, toolIndex, taskCount)"
  1157. src="../assets/icon/fourthToolList/program.png"
  1158. alt
  1159. />
  1160. <div style="margin: 5px 0">{{ lang.ssAiotBlockly }}</div>
  1161. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1162. style="position: absolute;right: 33px;top: -30px;">
  1163. {{ lang.ssAnalyze }}
  1164. </div>
  1165. </div>
  1166. <!-- <div v-if="tooC == 22">
  1167. <img
  1168. @click="addTools(tooC, toolIndex, taskCount)"
  1169. src="../assets/icon/fourthToolList/program.png"
  1170. alt
  1171. />
  1172. <div style="margin: 5px 0">{{ lang.ssAiExperience }}</div>
  1173. </div> -->
  1174. <div v-if="tooC == 23">
  1175. <img
  1176. @click="addTools(tooC, toolIndex, taskCount)"
  1177. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1178. alt
  1179. />
  1180. <div style="margin: 5px 0">AI Python</div>
  1181. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1182. style="position: absolute;right: 33px;top: -30px;">
  1183. {{ lang.ssAnalyze }}
  1184. </div>
  1185. </div>
  1186. <div v-if="tooC == 24">
  1187. <img
  1188. @click="addTools(tooC, toolIndex, taskCount)"
  1189. src="../assets/icon/fourthToolList/AIprogram.png"
  1190. alt
  1191. />
  1192. <div style="margin: 5px 0">AI Blockly</div>
  1193. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1194. style="position: absolute;right: 33px;top: -30px;">
  1195. {{ lang.ssAnalyze }}
  1196. </div>
  1197. </div>
  1198. <div v-if="tooC == 25">
  1199. <img
  1200. @click="addTools(tooC, toolIndex, taskCount)"
  1201. src="../assets/icon/thirdToolList/evalua.png"
  1202. alt
  1203. />
  1204. <div style="margin: 5px 0">{{ lang.ssGoalManage }}</div>
  1205. </div>
  1206. <div v-if="tooC == 31">
  1207. <img
  1208. @click="addTools(tooC, toolIndex, taskCount)"
  1209. src="../assets/icon/secondToolList/networkPanel.png"
  1210. alt
  1211. />
  1212. <div style="margin: 5px 0">{{ lang.ssMathBoard }}</div>
  1213. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1214. style="position: absolute;right: 33px;top: -30px;">
  1215. {{ lang.ssAnalyze }}
  1216. </div>
  1217. </div>
  1218. <div v-if="tooC == 28">
  1219. <img
  1220. @click="addTools(tooC, toolIndex, taskCount)"
  1221. src="../assets/icon/secondToolList/translation.png"
  1222. alt
  1223. />
  1224. <div style="margin: 5px 0">{{ lang.ssTranslate }}</div>
  1225. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1226. style="position: absolute;right: 33px;top: -30px;">
  1227. {{ lang.ssAnalyze }}
  1228. </div>
  1229. </div>
  1230. <div v-if="tooC == 37">
  1231. <img
  1232. @click="addTools(tooC, toolIndex, taskCount)"
  1233. src="../assets/icon/secondToolList/mohe.png"
  1234. alt
  1235. />
  1236. <div style="margin: 5px 0">{{ lang.ssMohe }}</div>
  1237. </div>
  1238. <div v-if="tooC == 38">
  1239. <img
  1240. @click="addTools(tooC, toolIndex, taskCount)"
  1241. src="../assets/icon/secondToolList/24game.png"
  1242. alt
  1243. />
  1244. <div style="margin: 5px 0">{{ lang.ss24Game }}</div>
  1245. </div>
  1246. <div v-if="tooC == 39">
  1247. <img
  1248. @click="addTools(tooC, toolIndex, taskCount)"
  1249. src="../assets/icon/secondToolList/GeoGebra.png"
  1250. alt
  1251. />
  1252. <div style="margin: 5px 0">GeoGebra</div>
  1253. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1254. style="position: absolute;right: 33px;top: -30px;">
  1255. {{ lang.ssAnalyze }}
  1256. </div>
  1257. </div>
  1258. <div v-if="tooC == 32">
  1259. <img
  1260. @click="addTools(tooC, toolIndex, taskCount)"
  1261. src="../assets/icon/thirdToolList/code.png"
  1262. alt
  1263. />
  1264. <div style="margin: 5px 0">{{ lang.ssCodeEdit }}</div>
  1265. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1266. style="position: absolute;right: 153px;top: -42px;">
  1267. {{ lang.ssAnalyze }}
  1268. </div>
  1269. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1270. style="position: absolute;left: 110px;bottom: 30px;">
  1271. {{ lang.ssUpFile }}
  1272. <input type="file" accept="*" style="display: none"
  1273. @change="beforeUpload1($event, 7, toolIndex)" />
  1274. </div> -->
  1275. </div>
  1276. <div v-if="tooC == 40">
  1277. <img
  1278. @click="addTools(tooC, toolIndex, taskCount)"
  1279. src="../assets/icon/secondToolList/eval.png"
  1280. alt
  1281. />
  1282. <div style="margin: 5px 0">{{ lang.ssPersonalEval }}</div>
  1283. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1284. style="position: absolute;right: 33px;top: -30px;">
  1285. {{ lang.ssAnalyze }}
  1286. </div>
  1287. </div>
  1288. <div v-if="tooC == 41">
  1289. <img
  1290. @click="addTools(tooC, toolIndex, taskCount)"
  1291. src="../assets/icon/thirdToolList/select.png"
  1292. alt
  1293. />
  1294. <div style="margin: 5px 0">{{ lang.ssMatch }}</div>
  1295. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1296. style="position: absolute;right: 33px;top: -30px;">
  1297. {{ lang.ssAnalyze }}
  1298. </div>
  1299. </div>
  1300. <div v-if="tooC == 44">
  1301. <img
  1302. @click="addTools(tooC, toolIndex, taskCount)"
  1303. src="../assets/icon/thirdToolList/hanClass.png"
  1304. alt
  1305. />
  1306. <div style="margin: 5px 0">{{ lang.ssHanziPalace }}</div>
  1307. </div>
  1308. <div v-if="tooC == 47">
  1309. <img
  1310. @click="addTools(tooC, toolIndex, taskCount)"
  1311. src="../assets/icon/fourthToolList/conSentences.png"
  1312. alt
  1313. />
  1314. <div style="margin: 5px 0">{{ lang.ssSort }}</div>
  1315. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1316. style="position: absolute;right: 33px;top: -30px;">
  1317. {{ lang.ssAnalyze }}
  1318. </div>
  1319. </div>
  1320. <div v-if="tooC == 48">
  1321. <img
  1322. @click="addTools(tooC, toolIndex, taskCount)"
  1323. src="../assets/icon/fourthToolList/table.png"
  1324. alt
  1325. />
  1326. <div style="margin: 5px 0">{{ lang.ssTable }}</div>
  1327. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1328. style="position: absolute;right: 33px;top: -30px;">
  1329. {{ lang.ssAnalyze }}
  1330. </div>
  1331. </div>
  1332. <div v-if="tooC == 52">
  1333. <img
  1334. @click="addTools(tooC, toolIndex, taskCount)"
  1335. src="../assets/icon/fourthToolList/text.png"
  1336. alt
  1337. />
  1338. <div style="margin: 5px 0">{{ lang.ssDocument }}</div>
  1339. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1340. style="position: absolute;right: 33px;top: -30px;">
  1341. {{ lang.ssAnalyze }}
  1342. </div>
  1343. </div>
  1344. <div v-if="tooC == 49">
  1345. <img
  1346. @click="addTools(tooC, toolIndex, taskCount)"
  1347. src="../assets/icon/fourthToolList/group.png"
  1348. alt
  1349. />
  1350. <div style="margin: 5px 0">{{ lang.ssStudentGroup }}</div>
  1351. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1352. style="position: absolute;right: 33px;top: -30px;">
  1353. {{ lang.ssAnalyze }}
  1354. </div>
  1355. </div>
  1356. <div v-if="tooC == 57">
  1357. <img
  1358. @click="addTools(tooC, toolIndex, taskCount)"
  1359. src="../assets/icon/fourthToolList/cocopi.png"
  1360. alt
  1361. />
  1362. <div style="margin: 5px 0">CocoPi</div>
  1363. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1364. style="position: absolute;right: 33px;top: -30px;">
  1365. {{ lang.ssAnalyze }}
  1366. </div>
  1367. </div>
  1368. <div v-if="tooC == 58">
  1369. <img
  1370. @click="addTools(tooC, toolIndex, taskCount)"
  1371. src="../assets/icon/fourthToolList/car.png"
  1372. alt
  1373. />
  1374. <div style="margin: 5px 0">{{ lang.ssSimulateDrive }}</div>
  1375. </div>
  1376. <div v-if="tooC == 59">
  1377. <img
  1378. @click="addTools(tooC, toolIndex, taskCount)"
  1379. src="../assets/icon/fourthToolList/lineSearch.png"
  1380. alt
  1381. />
  1382. <div style="margin: 5px 0">{{ lang.ssPathSearch }}</div>
  1383. </div>
  1384. <div v-if="tooC == 60">
  1385. <img
  1386. @click="addTools(tooC, toolIndex, taskCount)"
  1387. src="../assets/icon/fourthToolList/deepLearning.png"
  1388. alt
  1389. />
  1390. <div style="margin: 5px 0">{{ lang.ssDeepLearning }}</div>
  1391. </div>
  1392. <div v-if="tooC == 61">
  1393. <img
  1394. @click="addTools(tooC, toolIndex, taskCount)"
  1395. src="../assets/icon/fourthToolList/allHistory.png"
  1396. alt
  1397. />
  1398. <div style="margin: 5px 0">{{ lang.ssAllHistory }}</div>
  1399. </div>
  1400. <div v-if="tooC == 62">
  1401. <img
  1402. @click="addTools(tooC, toolIndex, taskCount)"
  1403. src="../assets/icon/fourthToolList/interVideo.png"
  1404. alt
  1405. />
  1406. <div style="margin: 5px 0">{{ lang.ssInteractiveVideo }}</div>
  1407. </div>
  1408. <div v-if="tooC == 63">
  1409. <img
  1410. @click="addTools(tooC, toolIndex, taskCount)"
  1411. src="../assets/icon/fourthToolList/Wood.png"
  1412. alt
  1413. />
  1414. <div style="margin: 5px 0">{{ lang.ssTurtle }}</div>
  1415. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1416. style="position: absolute;right: 33px;top: -30px;">
  1417. {{ lang.ssAnalyze }}
  1418. </div>
  1419. </div>
  1420. <div v-if="tooC == 71">
  1421. <img
  1422. @click="addTools(tooC, toolIndex, taskCount)"
  1423. src="../assets/icon/fourthToolList/chatgpt.png"
  1424. alt
  1425. />
  1426. <div style="margin: 5px 0">{{ lang.ssAiAgent }}</div>
  1427. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1428. style="position: absolute;right: 33px;top: -30px;">
  1429. {{ lang.ssAnalyze }}
  1430. </div>
  1431. </div>
  1432. <div v-if="tooC == 72">
  1433. <img
  1434. style="height: 85px;object-fit: cover;"
  1435. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1436. @click="addTools(tooC, toolIndex, taskCount)"
  1437. :src="tool.appJson.json.icon"
  1438. alt
  1439. />
  1440. <img
  1441. v-else
  1442. @click="addTools(tooC, toolIndex, taskCount)"
  1443. src="../assets/icon/firstToolList/appStore.png"
  1444. alt
  1445. />
  1446. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : lang.ssAppCenter" placement="top" effect="dark">
  1447. <!-- content to trigger tooltip here -->
  1448. <div class="Ovh">
  1449. {{tool.appJson && tool.appJson.name ? tool.appJson.name : lang.ssAppCenter}}
  1450. </div>
  1451. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1452. style="position: absolute;right: 33px;top: -30px;">
  1453. {{ lang.ssAnalyze }}
  1454. </div>
  1455. </el-tooltip>
  1456. </div>
  1457. <div v-if="tooC == 65">
  1458. <img
  1459. @click="addTools(tooC, toolIndex, taskCount)"
  1460. src="../assets/icon/firstToolList/pickPeople.png"
  1461. alt
  1462. />
  1463. <div style="margin: 5px 0">{{ lang.ssPickPerson }}</div>
  1464. </div>
  1465. <div v-if="tooC == 66">
  1466. <img
  1467. @click="addTools(tooC, toolIndex, taskCount)"
  1468. src="../assets/icon/secondToolList/formulaEdi.png"
  1469. alt
  1470. />
  1471. <div style="margin: 5px 0">{{ lang.ssFormula }}</div>
  1472. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1473. style="position: absolute;right: 33px;top: -30px;">
  1474. {{ lang.ssAnalyze }}
  1475. </div>
  1476. </div>
  1477. <div v-if="tooC == 67">
  1478. <img
  1479. @click="addTools(tooC, toolIndex, taskCount)"
  1480. src="../assets/icon/secondToolList/molStr.png"
  1481. alt
  1482. />
  1483. <div style="margin: 5px 0">{{ lang.ssMolecule }}</div>
  1484. </div>
  1485. <div v-if="tooC == 68">
  1486. <img
  1487. @click="addTools(tooC, toolIndex, taskCount)"
  1488. src="../assets/icon/secondToolList/timeAxis.png"
  1489. alt
  1490. />
  1491. <div style="margin: 5px 0">{{ lang.ssTimeline }}</div>
  1492. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1493. style="position: absolute;right: 33px;top: -30px;">
  1494. {{ lang.ssAnalyze }}
  1495. </div> -->
  1496. </div>
  1497. <div v-if="tooC == 69">
  1498. <img
  1499. @click="addTools(tooC, toolIndex, taskCount)"
  1500. src="../assets/icon/secondToolList/english.png"
  1501. alt
  1502. />
  1503. <div style="margin: 5px 0">{{ lang.ssEnglishWrite }}</div>
  1504. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1505. style="position: absolute;right: 33px;top: -30px;">
  1506. {{ lang.ssAnalyze }}
  1507. </div>
  1508. </div>
  1509. <div v-if="tooC == 70">
  1510. <img
  1511. @click="addTools(tooC, toolIndex, taskCount)"
  1512. src="../assets/icon/thirdToolList/englishVoice.png"
  1513. alt
  1514. />
  1515. <div style="margin: 5px 0">{{ lang.ssEnglishSpeak }}</div>
  1516. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1517. style="position: absolute;right: 33px;top: -30px;">
  1518. {{ lang.ssAnalyze }}
  1519. </div>
  1520. </div>
  1521. </div>
  1522. </div>
  1523. </div>
  1524. <div class="tooldetail renderedFor" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1525. <!-- <div class="toolTitle">工具描述</div> -->
  1526. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1527. <div style="height:100%;"
  1528. v-html="renderedFormula(tool.toolDetail)"
  1529. v-if="toolDetailIndex != toolIndex"
  1530. ></div>
  1531. <div v-else @click.stop="" style="height:100%;">
  1532. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" :placeholder="lang.ssEnterTaskDesc" v-model="updateToolDetailInner"></textarea>
  1533. </div>
  1534. </div>
  1535. <el-button
  1536. type="primary"
  1537. v-if="tool.tool[0] == 32"
  1538. style="position: absolute; right: 30px; top: -45px"
  1539. @click="addImg($event)"
  1540. >{{ lang.ssUploadHomework }}<input
  1541. type="file"
  1542. accept="*"
  1543. style="display: none"
  1544. @change="beforeUpload1($event, 7, toolIndex)"
  1545. /></el-button>
  1546. <el-button
  1547. type="primary"
  1548. v-if="tool.tool[0] == 15"
  1549. style="position: absolute; right: 30px; top: -45px"
  1550. @click="openWordCloud(toolIndex)"
  1551. >{{ lang.ssGenerateWordCloud }}
  1552. </el-button>
  1553. <el-button
  1554. type="primary"
  1555. v-if="
  1556. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1557. "
  1558. style="position: absolute; right: 30px; top: -45px"
  1559. @click="uploadWorks(toolIndex)"
  1560. >{{ lang.ssExportHomework }}
  1561. </el-button>
  1562. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1563. position: absolute;
  1564. right: 30px;
  1565. transform: translateY(-130%);
  1566. " @click="addImg($event)">{{ lang.ssUploadHomework }}<input type="file" accept="*" style="display: none"
  1567. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1568. </div>
  1569. <div
  1570. v-if="
  1571. tType &&
  1572. tType == 2 &&
  1573. !sIsOpen &&
  1574. tool.tool.indexOf(16) != -1
  1575. "
  1576. class="worksBox"
  1577. >
  1578. <div
  1579. class="zuoyeYulan"
  1580. v-if="workStudent[toolIndex].length > 0"
  1581. >
  1582. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1583. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1584. </div>
  1585. <div
  1586. class="worksDetailBox"
  1587. v-if="workStudent[toolIndex].length > 0"
  1588. >
  1589. <div
  1590. class="works"
  1591. style="
  1592. width: 200px;
  1593. height: 140px;
  1594. margin: 10px 10px 10px 0;
  1595. box-shadow: 0 0 6px 1px #dfdada;
  1596. "
  1597. v-for="(w, wIndex) in workStudent[toolIndex]"
  1598. :key="wIndex"
  1599. >
  1600. <div class="workImg" v-if="w.type == 0">
  1601. <img
  1602. :src="w.works"
  1603. @click="previewImg(w.works,w)"
  1604. alt
  1605. />
  1606. <div
  1607. class="answerScore"
  1608. v-if="w.score"
  1609. @click.stop="openScore(w)"
  1610. :class="{
  1611. rightW:
  1612. w.userid == userid || tType == 1 || tType == 4,
  1613. }"
  1614. >
  1615. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1616. </div>
  1617. <div
  1618. class="answerScore"
  1619. @click.stop="openScore(w)"
  1620. v-else-if="courseDetail.userid == userid"
  1621. :class="{
  1622. rightW:
  1623. w.userid == userid || tType == 1 || tType == 4,
  1624. }"
  1625. >
  1626. {{ lang.ssMarkScore }}
  1627. </div>
  1628. <img
  1629. class="deleteImg"
  1630. src="../assets/deleteworks.png"
  1631. v-if="
  1632. w.userid == userid || tType == 1 || tType == 4
  1633. "
  1634. @click.stop="deleteWorks(w.wid)"
  1635. alt
  1636. />
  1637. </div>
  1638. <div class="workImg" v-if="w.type == 1">
  1639. <img :src="word" @click="openFile(w.works,w)" alt />
  1640. <div
  1641. class="answerScore"
  1642. v-if="w.score"
  1643. @click.stop="openScore(w)"
  1644. :class="{
  1645. rightW:
  1646. w.userid == userid || tType == 1 || tType == 4,
  1647. }"
  1648. >
  1649. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1650. </div>
  1651. <div
  1652. class="answerScore"
  1653. @click.stop="openScore(w)"
  1654. v-else-if="courseDetail.userid == userid"
  1655. :class="{
  1656. rightW:
  1657. w.userid == userid || tType == 1 || tType == 4,
  1658. }"
  1659. >
  1660. {{ lang.ssMarkScore }}
  1661. </div>
  1662. <img
  1663. class="deleteImg"
  1664. src="../assets/deleteworks.png"
  1665. v-if="
  1666. w.userid == userid || tType == 1 || tType == 4
  1667. "
  1668. @click.stop="deleteWorks(w.wid)"
  1669. alt
  1670. />
  1671. </div>
  1672. <div class="workImg" v-if="w.type == 3">
  1673. <img
  1674. style="cursor: pointer"
  1675. :src="video"
  1676. @click="openVideo(w)"
  1677. alt
  1678. />
  1679. <div
  1680. class="answerScore"
  1681. v-if="w.score"
  1682. @click.stop="openScore(w)"
  1683. :class="{
  1684. rightW:
  1685. w.userid == userid || tType == 1 || tType == 4,
  1686. }"
  1687. >
  1688. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1689. </div>
  1690. <div
  1691. class="answerScore"
  1692. @click.stop="openScore(w)"
  1693. v-else-if="courseDetail.userid == userid"
  1694. :class="{
  1695. rightW:
  1696. w.userid == userid || tType == 1 || tType == 4,
  1697. }"
  1698. >
  1699. {{ lang.ssMarkScore }}
  1700. </div>
  1701. <img
  1702. class="deleteImg"
  1703. src="../assets/deleteworks.png"
  1704. v-if="
  1705. w.userid == userid || tType == 1 || tType == 4
  1706. "
  1707. @click.stop="deleteWorks(w.wid)"
  1708. alt
  1709. />
  1710. </div>
  1711. <div class="workImg" v-if="w.type == 12">
  1712. <img
  1713. style="cursor: pointer"
  1714. :src="word2"
  1715. @click="downloadFile(w.works,w.userid)"
  1716. alt
  1717. />
  1718. <div
  1719. class="answerScore"
  1720. v-if="w.score"
  1721. @click.stop="openScore(w)"
  1722. :class="{
  1723. rightW:
  1724. w.userid == userid || tType == 1 || tType == 4,
  1725. }"
  1726. >
  1727. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1728. </div>
  1729. <div
  1730. class="answerScore"
  1731. @click.stop="openScore(w)"
  1732. v-else-if="courseDetail.userid == userid"
  1733. :class="{
  1734. rightW:
  1735. w.userid == userid || tType == 1 || tType == 4,
  1736. }"
  1737. >
  1738. {{ lang.ssMarkScore }}
  1739. </div>
  1740. <img
  1741. class="deleteImg"
  1742. src="../assets/deleteworks.png"
  1743. v-if="
  1744. w.userid == userid || tType == 1 || tType == 4
  1745. "
  1746. @click.stop="deleteWorks(w.wid)"
  1747. alt
  1748. />
  1749. </div>
  1750. <div class="worksName">
  1751. <div>{{ w.sName }}</div>
  1752. </div>
  1753. </div>
  1754. </div>
  1755. </div>
  1756. <div
  1757. v-if="
  1758. tType &&
  1759. tType == 2 &&
  1760. !sIsOpen &&
  1761. tool.tool.indexOf(32) != -1
  1762. "
  1763. class="worksBox"
  1764. >
  1765. <div
  1766. class="zuoyeYulan"
  1767. v-if="workStudent[toolIndex].length > 0"
  1768. >
  1769. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1770. </div>
  1771. <div
  1772. class="worksDetailBox"
  1773. v-if="workStudent[toolIndex].length > 0"
  1774. >
  1775. <div
  1776. class="works"
  1777. style="
  1778. width: 200px;
  1779. height: 140px;
  1780. margin: 10px 10px 10px 0;
  1781. box-shadow: 0 0 6px 1px #dfdada;
  1782. "
  1783. v-for="(w, wIndex) in workStudent[toolIndex]"
  1784. :key="wIndex"
  1785. >
  1786. <div class="workImg">
  1787. <img
  1788. :src="word2"
  1789. @click="downloadFile(w.works,w.userid)"
  1790. alt
  1791. />
  1792. <div
  1793. class="answerScore"
  1794. v-if="w.score"
  1795. @click.stop="openScore(w)"
  1796. :class="{
  1797. rightW:
  1798. w.userid == userid || tType == 1 || tType == 4,
  1799. }"
  1800. >
  1801. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1802. </div>
  1803. <div
  1804. class="answerScore"
  1805. @click.stop="openScore(w)"
  1806. v-else-if="courseDetail.userid == userid"
  1807. :class="{
  1808. rightW:
  1809. w.userid == userid || tType == 1 || tType == 4,
  1810. }"
  1811. >
  1812. {{ lang.ssMarkScore }}
  1813. </div>
  1814. <img
  1815. class="deleteImg"
  1816. src="../assets/deleteworks.png"
  1817. v-if="
  1818. w.userid == userid || tType == 1 || tType == 4
  1819. "
  1820. @click.stop="deleteWorks(w.wid)"
  1821. alt
  1822. />
  1823. </div>
  1824. <div class="worksName">
  1825. <div>{{ w.sName }}</div>
  1826. </div>
  1827. </div>
  1828. </div>
  1829. </div>
  1830. <div
  1831. v-if="
  1832. tType &&
  1833. tType == 2 &&
  1834. !sIsOpen &&
  1835. tool.tool.indexOf(57) != -1
  1836. "
  1837. class="worksBox"
  1838. >
  1839. <div
  1840. class="zuoyeYulan"
  1841. v-if="workStudent[toolIndex].length > 0"
  1842. >
  1843. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1844. </div>
  1845. <div
  1846. class="worksDetailBox"
  1847. v-if="workStudent[toolIndex].length > 0"
  1848. >
  1849. <div
  1850. class="works"
  1851. style="
  1852. width: 200px;
  1853. height: 140px;
  1854. margin: 10px 10px 10px 0;
  1855. box-shadow: 0 0 6px 1px #dfdada;
  1856. "
  1857. v-for="(w, wIndex) in workStudent[toolIndex]"
  1858. :key="wIndex"
  1859. >
  1860. <div class="workImg">
  1861. <img
  1862. :src="word2"
  1863. @click="downloadFile(w.works,w.userid)"
  1864. v-if="w.type == 12"
  1865. alt
  1866. />
  1867. <img
  1868. :src="word2"
  1869. @click="
  1870. openCocoPi(57, toolIndex, w.userid, w.sName)
  1871. "
  1872. v-else-if="w.type == 15"
  1873. alt
  1874. />
  1875. <div
  1876. class="answerScore"
  1877. v-if="w.score"
  1878. @click.stop="openScore(w)"
  1879. :class="{
  1880. rightW:
  1881. w.userid == userid || tType == 1 || tType == 4,
  1882. }"
  1883. >
  1884. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1885. </div>
  1886. <div
  1887. class="answerScore"
  1888. @click.stop="openScore(w)"
  1889. v-else-if="courseDetail.userid == userid"
  1890. :class="{
  1891. rightW:
  1892. w.userid == userid || tType == 1 || tType == 4,
  1893. }"
  1894. >
  1895. {{ lang.ssMarkScore }}
  1896. </div>
  1897. <img
  1898. class="deleteImg"
  1899. src="../assets/deleteworks.png"
  1900. v-if="
  1901. w.userid == userid || tType == 1 || tType == 4
  1902. "
  1903. @click.stop="deleteWorks(w.wid)"
  1904. alt
  1905. />
  1906. </div>
  1907. <div class="worksName">
  1908. <div>{{ w.sName }}</div>
  1909. </div>
  1910. </div>
  1911. </div>
  1912. </div>
  1913. <div
  1914. v-if="
  1915. tType &&
  1916. tType == 2 &&
  1917. !sIsOpen &&
  1918. tool.tool.indexOf(4) != -1
  1919. "
  1920. class="worksBox"
  1921. >
  1922. <div
  1923. class="zuoyeYulan"
  1924. v-if="workStudent[toolIndex].length > 0"
  1925. >
  1926. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1927. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1928. </div>
  1929. <div
  1930. class="worksDetailBox"
  1931. v-if="workStudent[toolIndex].length > 0"
  1932. >
  1933. <div
  1934. class="isWorksName2"
  1935. v-for="(w, wIndex) in workStudent[toolIndex]"
  1936. :key="wIndex"
  1937. @click="
  1938. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1939. "
  1940. >
  1941. {{ w.sName }}
  1942. <img
  1943. class="deleteImg deleteImg2"
  1944. src="../assets/deleteworks.png"
  1945. v-if="w.userid == userid || tType == 1 || tType == 4"
  1946. @click.stop="deleteWorks(w.wid)"
  1947. alt
  1948. />
  1949. </div>
  1950. <!-- <div
  1951. class="works"
  1952. style="
  1953. width: 200px;
  1954. height: 140px;
  1955. border-radius: 10px;
  1956. box-shadow: 0 0 6px 1px #dfdada;
  1957. overflow: hidden;
  1958. "
  1959. v-for="(w, wIndex) in workStudent[toolIndex]"
  1960. :key="wIndex"
  1961. >
  1962. <div class="workImg">
  1963. <img
  1964. src="../assets/icon/works/noImg.png"
  1965. @click="
  1966. openTools(
  1967. 4,
  1968. toolIndex,
  1969. taskCount,
  1970. w.works,
  1971. w.sName
  1972. )
  1973. "
  1974. alt
  1975. />
  1976. </div>
  1977. <div class="worksName">
  1978. <div>{{ w.sName }}</div>
  1979. <div>{{ w.time }}</div>
  1980. </div>
  1981. </div> -->
  1982. </div>
  1983. </div>
  1984. <div
  1985. v-if="
  1986. tType &&
  1987. ((tType == 2 && sIsOpen == true) ||
  1988. tType == 1 ||
  1989. tType == 4) &&
  1990. tool.tool.indexOf(62) != -1
  1991. "
  1992. class="worksBox"
  1993. >
  1994. <div
  1995. class="zuoyeYulan"
  1996. v-if="
  1997. worksStudent.length &&
  1998. worksStudent[toolIndex].length > 0
  1999. "
  2000. >
  2001. <div class="worksTop">
  2002. <div>{{ lang.ssHomeworkPreview }}</div>
  2003. <div
  2004. class="corOpen"
  2005. @click="contract(toolIndex)"
  2006. v-if="
  2007. (isCloseList[toolIndex].isCloseBoolean) &&
  2008. isCloseList[toolIndex].isClose == 0
  2009. "
  2010. >
  2011. {{ lang.ssFold }}
  2012. </div>
  2013. <div
  2014. class="corOpen"
  2015. @click="contract(toolIndex)"
  2016. v-if="isCloseList[toolIndex].isClose == 1"
  2017. >
  2018. {{ lang.ssExpand }}
  2019. </div>
  2020. </div>
  2021. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2022. </div>
  2023. <div>
  2024. <div
  2025. :id="'tool-' + toolIndex"
  2026. :style="{
  2027. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2028. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2029. }"
  2030. class="worksDetailBox"
  2031. v-if="
  2032. worksStudent.length &&
  2033. worksStudent[toolIndex].length > 0
  2034. "
  2035. >
  2036. <div
  2037. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2038. :key="wIndex"
  2039. class="isWorksName2"
  2040. @click="
  2041. openTools(
  2042. 62,
  2043. toolIndex,
  2044. taskCount,
  2045. w.works,
  2046. w.sName
  2047. )
  2048. "
  2049. >
  2050. {{ w.sName }}
  2051. <img
  2052. class="deleteImg deleteImg2"
  2053. src="../assets/deleteworks.png"
  2054. v-if="
  2055. w.userid == userid || tType == 1 || tType == 4
  2056. "
  2057. @click.stop="deleteWorks(w.wid)"
  2058. alt
  2059. />
  2060. </div>
  2061. </div>
  2062. </div>
  2063. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2064. {{ lang.ssNotSubmitted }}
  2065. </div>
  2066. <div
  2067. class="noWorksS"
  2068. v-if="noWorksS && noWorksS[toolIndex].length"
  2069. >
  2070. <div
  2071. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2072. :key="sIndex"
  2073. class="noWorksName"
  2074. >
  2075. <el-tooltip effect="dark" :content="s.student" placement="top">
  2076. <span>{{ s.student }}</span>
  2077. </el-tooltip>
  2078. </div>
  2079. </div>
  2080. </div>
  2081. <div
  2082. v-if="
  2083. tType &&
  2084. tType == 2 &&
  2085. !sIsOpen &&
  2086. tool.tool.indexOf(62) != -1
  2087. "
  2088. class="worksBox"
  2089. >
  2090. <div
  2091. class="zuoyeYulan"
  2092. v-if="workStudent[toolIndex].length > 0"
  2093. >
  2094. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2095. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2096. </div>
  2097. <div
  2098. class="worksDetailBox"
  2099. v-if="workStudent[toolIndex].length > 0"
  2100. >
  2101. <div
  2102. class="isWorksName2"
  2103. v-for="(w, wIndex) in workStudent[toolIndex]"
  2104. :key="wIndex"
  2105. @click="
  2106. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2107. "
  2108. >
  2109. {{ w.sName }}
  2110. <img
  2111. class="deleteImg deleteImg2"
  2112. src="../assets/deleteworks.png"
  2113. v-if="w.userid == userid || tType == 1 || tType == 4"
  2114. @click.stop="deleteWorks(w.wid)"
  2115. alt
  2116. />
  2117. </div>
  2118. </div>
  2119. </div>
  2120. <div
  2121. v-if="
  2122. tType &&
  2123. tType == 2 &&
  2124. !sIsOpen &&
  2125. tool.tool.indexOf(45) != -1
  2126. "
  2127. class="worksBox"
  2128. >
  2129. <div
  2130. class="zuoyeYulan"
  2131. v-if="workStudent[toolIndex].length > 0"
  2132. >
  2133. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2134. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2135. </div>
  2136. <div
  2137. class="worksDetailBox"
  2138. v-if="workStudent[toolIndex].length > 0"
  2139. >
  2140. <div
  2141. class="isWorksName2"
  2142. v-for="(w, wIndex) in workStudent[toolIndex]"
  2143. :key="wIndex"
  2144. @click="
  2145. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2146. "
  2147. >
  2148. {{ w.sName }}
  2149. <img
  2150. class="deleteImg deleteImg2"
  2151. src="../assets/deleteworks.png"
  2152. v-if="w.userid == userid || tType == 1 || tType == 4"
  2153. @click.stop="deleteWorks(w.wid)"
  2154. alt
  2155. />
  2156. </div>
  2157. </div>
  2158. </div>
  2159. <div
  2160. v-if="
  2161. tType &&
  2162. tType == 2 &&
  2163. !sIsOpen &&
  2164. tool.tool.indexOf(69) != -1
  2165. "
  2166. class="worksBox"
  2167. >
  2168. <div
  2169. class="zuoyeYulan"
  2170. v-if="workStudent[toolIndex].length > 0"
  2171. >
  2172. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2173. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2174. </div>
  2175. <div
  2176. class="worksDetailBox"
  2177. v-if="workStudent[toolIndex].length > 0"
  2178. >
  2179. <div
  2180. class="isWorksName2"
  2181. v-for="(w, wIndex) in workStudent[toolIndex]"
  2182. :key="wIndex"
  2183. @click="
  2184. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2185. "
  2186. >
  2187. {{ w.sName }}
  2188. <img
  2189. class="deleteImg deleteImg2"
  2190. src="../assets/deleteworks.png"
  2191. v-if="w.userid == userid || tType == 1 || tType == 4"
  2192. @click.stop="deleteWorks(w.wid)"
  2193. alt
  2194. />
  2195. </div>
  2196. </div>
  2197. </div>
  2198. <div
  2199. v-if="
  2200. tType &&
  2201. tType == 2 &&
  2202. !sIsOpen &&
  2203. tool.tool.indexOf(15) != -1
  2204. "
  2205. class="worksBox"
  2206. >
  2207. <div
  2208. class="zuoyeYulan"
  2209. v-if="workStudent[toolIndex].length > 0"
  2210. >
  2211. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2212. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2213. </div>
  2214. <div
  2215. class="worksDetailBox"
  2216. v-if="workStudent[toolIndex].length > 0"
  2217. >
  2218. <div
  2219. class="works"
  2220. v-for="(w, wIndex) in workStudent[toolIndex]"
  2221. :key="wIndex"
  2222. >
  2223. <div class="workImg">
  2224. <!-- <img
  2225. src="../assets/icon/works/noImg.png"
  2226. @click="openTools(15, toolIndex, taskCount, w.works)"
  2227. alt=""
  2228. />-->
  2229. <div class="answerBg">
  2230. <!-- <div>{{ w.sName }}</div> -->
  2231. <el-tooltip
  2232. class="item"
  2233. effect="light"
  2234. :content="JSON.parse(w.works)[0].answer"
  2235. placement="top"
  2236. >
  2237. <div class="answerContent">
  2238. {{ JSON.parse(w.works)[0].answer }}
  2239. </div>
  2240. </el-tooltip>
  2241. <div
  2242. class="answerScore"
  2243. v-if="w.score"
  2244. @click.stop="openScore(w)"
  2245. :class="{
  2246. rightW:
  2247. w.userid == userid ||
  2248. tType == 1 ||
  2249. tType == 4,
  2250. }"
  2251. >
  2252. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2253. </div>
  2254. <div
  2255. class="answerScore"
  2256. @click.stop="openScore(w)"
  2257. v-else-if="courseDetail.userid == userid"
  2258. :class="{
  2259. rightW:
  2260. w.userid == userid ||
  2261. tType == 1 ||
  2262. tType == 4,
  2263. }"
  2264. >
  2265. {{ lang.ssMarkScore }}
  2266. </div>
  2267. <img
  2268. class="deleteImg"
  2269. src="../assets/deleteworks.png"
  2270. v-if="
  2271. w.userid == userid || tType == 1 || tType == 4
  2272. "
  2273. @click.stop="deleteWorks(w.wid)"
  2274. alt
  2275. />
  2276. </div>
  2277. <div class="comment">
  2278. <div class="worksName">
  2279. <div>{{ w.sName }}</div>
  2280. </div>
  2281. </div>
  2282. </div>
  2283. </div>
  2284. </div>
  2285. </div>
  2286. <div
  2287. v-if="
  2288. tType &&
  2289. tType == 2 &&
  2290. !sIsOpen &&
  2291. tool.tool.indexOf(1) != -1
  2292. "
  2293. class="worksBox"
  2294. >
  2295. <div
  2296. class="zuoyeYulan"
  2297. v-if="workStudent[toolIndex].length > 0"
  2298. >
  2299. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2300. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2301. </div>
  2302. <div
  2303. class="worksDetailBox"
  2304. v-if="workStudent[toolIndex].length > 0"
  2305. >
  2306. <div
  2307. class="works"
  2308. style="
  2309. width: 200px;
  2310. height: 140px;
  2311. margin: 10px 10px 10px 0;
  2312. box-shadow: 0 0 6px 1px #dfdada;
  2313. "
  2314. v-for="(w, wIndex) in workStudent[toolIndex]"
  2315. :key="wIndex"
  2316. >
  2317. <div class="workImg">
  2318. <img
  2319. :src="w.works"
  2320. @click="previewImg(w.works,w)"
  2321. alt
  2322. />
  2323. <div
  2324. class="answerScore"
  2325. v-if="w.score"
  2326. @click.stop="openScore(w)"
  2327. :class="{
  2328. rightW:
  2329. w.userid == userid || tType == 1 || tType == 4,
  2330. }"
  2331. >
  2332. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2333. </div>
  2334. <div
  2335. class="answerScore"
  2336. @click.stop="openScore(w)"
  2337. v-else-if="courseDetail.userid == userid"
  2338. :class="{
  2339. rightW:
  2340. w.userid == userid || tType == 1 || tType == 4,
  2341. }"
  2342. >
  2343. {{ lang.ssMarkScore }}
  2344. </div>
  2345. <img
  2346. class="deleteImg"
  2347. src="../assets/deleteworks.png"
  2348. v-if="
  2349. w.userid == userid || tType == 1 || tType == 4
  2350. "
  2351. @click.stop="deleteWorks(w.wid)"
  2352. alt
  2353. />
  2354. </div>
  2355. <div class="worksName">
  2356. <div>{{ w.sName }}</div>
  2357. </div>
  2358. </div>
  2359. </div>
  2360. </div>
  2361. <div
  2362. v-if="
  2363. tType &&
  2364. tType == 2 &&
  2365. !sIsOpen &&
  2366. tool.tool.indexOf(3) != -1
  2367. "
  2368. class="worksBox"
  2369. >
  2370. <div
  2371. class="zuoyeYulan"
  2372. v-if="workStudent[toolIndex].length > 0"
  2373. >
  2374. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2375. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2376. </div>
  2377. <div
  2378. class="worksDetailBox"
  2379. v-if="workStudent[toolIndex].length > 0"
  2380. >
  2381. <div
  2382. class="works"
  2383. style="
  2384. width: 200px;
  2385. height: 140px;
  2386. margin: 10px 10px 10px 0;
  2387. box-shadow: 0 0 6px 1px #dfdada;
  2388. "
  2389. v-for="(w, wIndex) in workStudent[toolIndex]"
  2390. :key="wIndex"
  2391. >
  2392. <div class="workImg">
  2393. <img
  2394. :src="w.works"
  2395. @click="previewImg(w.works,w)"
  2396. alt
  2397. />
  2398. <div
  2399. class="answerScore"
  2400. v-if="w.score"
  2401. @click.stop="openScore(w)"
  2402. :class="{
  2403. rightW:
  2404. w.userid == userid || tType == 1 || tType == 4,
  2405. }"
  2406. >
  2407. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2408. </div>
  2409. <div
  2410. class="answerScore"
  2411. @click.stop="openScore(w)"
  2412. v-else-if="courseDetail.userid == userid"
  2413. :class="{
  2414. rightW:
  2415. w.userid == userid || tType == 1 || tType == 4,
  2416. }"
  2417. >
  2418. {{ lang.ssMarkScore }}
  2419. </div>
  2420. <img
  2421. class="deleteImg"
  2422. src="../assets/deleteworks.png"
  2423. v-if="
  2424. w.userid == userid || tType == 1 || tType == 4
  2425. "
  2426. @click.stop="deleteWorks(w.wid)"
  2427. alt
  2428. />
  2429. </div>
  2430. <div class="worksName">
  2431. <div>{{ w.sName }}</div>
  2432. </div>
  2433. </div>
  2434. </div>
  2435. </div>
  2436. <div
  2437. v-if="
  2438. tType &&
  2439. tType == 2 &&
  2440. !sIsOpen &&
  2441. tool.tool.indexOf(6) != -1
  2442. "
  2443. class="worksBox"
  2444. >
  2445. <div
  2446. class="zuoyeYulan"
  2447. v-if="workStudent[toolIndex].length > 0"
  2448. >
  2449. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2450. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2451. </div>
  2452. <div
  2453. class="worksDetailBox"
  2454. v-if="workStudent[toolIndex].length > 0"
  2455. >
  2456. <div
  2457. class="works"
  2458. style="
  2459. width: 200px;
  2460. height: 140px;
  2461. margin: 10px 10px 10px 0;
  2462. box-shadow: 0 0 6px 1px #dfdada;
  2463. "
  2464. v-for="(w, wIndex) in workStudent[toolIndex]"
  2465. :key="wIndex"
  2466. >
  2467. <div class="workImg">
  2468. <img
  2469. :src="w.works"
  2470. @click="previewImg(w.works,w)"
  2471. alt
  2472. />
  2473. <div
  2474. class="answerScore"
  2475. v-if="w.score"
  2476. @click.stop="openScore(w)"
  2477. :class="{
  2478. rightW:
  2479. w.userid == userid || tType == 1 || tType == 4,
  2480. }"
  2481. >
  2482. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2483. </div>
  2484. <div
  2485. class="answerScore"
  2486. @click.stop="openScore(w)"
  2487. v-else-if="courseDetail.userid == userid"
  2488. :class="{
  2489. rightW:
  2490. w.userid == userid || tType == 1 || tType == 4,
  2491. }"
  2492. >
  2493. {{ lang.ssMarkScore }}
  2494. </div>
  2495. <img
  2496. class="deleteImg"
  2497. src="../assets/deleteworks.png"
  2498. v-if="
  2499. w.userid == userid || tType == 1 || tType == 4
  2500. "
  2501. @click.stop="deleteWorks(w.wid)"
  2502. alt
  2503. />
  2504. </div>
  2505. <div class="worksName">
  2506. <div>{{ w.sName }}</div>
  2507. </div>
  2508. </div>
  2509. </div>
  2510. </div>
  2511. <div
  2512. v-if="
  2513. tType &&
  2514. tType == 2 &&
  2515. !sIsOpen &&
  2516. tool.tool.indexOf(7) != -1
  2517. "
  2518. class="worksBox"
  2519. >
  2520. <div
  2521. class="zuoyeYulan"
  2522. v-if="workStudent[toolIndex].length > 0"
  2523. >
  2524. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2525. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2526. </div>
  2527. <div
  2528. class="worksDetailBox"
  2529. v-if="workStudent[toolIndex].length > 0"
  2530. >
  2531. <div
  2532. class="works"
  2533. style="
  2534. width: 200px;
  2535. height: 140px;
  2536. margin: 10px 10px 10px 0;
  2537. box-shadow: 0 0 6px 1px #dfdada;
  2538. "
  2539. v-for="(w, wIndex) in workStudent[toolIndex]"
  2540. :key="wIndex"
  2541. >
  2542. <div class="workImg">
  2543. <img
  2544. :src="w.works"
  2545. @click="previewImg(w.works,w)"
  2546. alt
  2547. />
  2548. <div
  2549. class="answerScore"
  2550. v-if="w.score"
  2551. @click.stop="openScore(w)"
  2552. :class="{
  2553. rightW:
  2554. w.userid == userid || tType == 1 || tType == 4,
  2555. }"
  2556. >
  2557. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2558. </div>
  2559. <div
  2560. class="answerScore"
  2561. @click.stop="openScore(w)"
  2562. v-else-if="courseDetail.userid == userid"
  2563. :class="{
  2564. rightW:
  2565. w.userid == userid || tType == 1 || tType == 4,
  2566. }"
  2567. >
  2568. {{ lang.ssMarkScore }}
  2569. </div>
  2570. <img
  2571. class="deleteImg"
  2572. src="../assets/deleteworks.png"
  2573. v-if="
  2574. w.userid == userid || tType == 1 || tType == 4
  2575. "
  2576. @click.stop="deleteWorks(w.wid)"
  2577. alt
  2578. />
  2579. </div>
  2580. <div class="worksName">
  2581. <div>{{ w.sName }}</div>
  2582. </div>
  2583. </div>
  2584. </div>
  2585. </div>
  2586. <div
  2587. v-if="
  2588. tType &&
  2589. tType == 2 &&
  2590. !sIsOpen &&
  2591. tool.tool.indexOf(26) != -1
  2592. "
  2593. class="worksBox"
  2594. >
  2595. <div
  2596. class="zuoyeYulan"
  2597. v-if="workStudent[toolIndex].length > 0"
  2598. >
  2599. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2600. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2601. </div>
  2602. <div
  2603. class="worksDetailBox"
  2604. v-if="workStudent[toolIndex].length > 0"
  2605. >
  2606. <div
  2607. class="works"
  2608. style="
  2609. width: 200px;
  2610. height: 140px;
  2611. margin: 10px 10px 10px 0;
  2612. box-shadow: 0 0 6px 1px #dfdada;
  2613. "
  2614. v-for="(w, wIndex) in workStudent[toolIndex]"
  2615. :key="wIndex"
  2616. >
  2617. <div class="workImg">
  2618. <img
  2619. :src="w.works"
  2620. @click="previewImg(w.works,w)"
  2621. alt
  2622. />
  2623. <img
  2624. class="deleteImg"
  2625. src="../assets/deleteworks.png"
  2626. v-if="
  2627. w.userid == userid || tType == 1 || tType == 4
  2628. "
  2629. @click.stop="deleteWorks(w.wid)"
  2630. alt
  2631. />
  2632. </div>
  2633. <div class="worksName">
  2634. <div>{{ w.sName }}</div>
  2635. </div>
  2636. </div>
  2637. </div>
  2638. </div>
  2639. <div
  2640. v-if="
  2641. tType &&
  2642. ((tType == 2 && sIsOpen == true) ||
  2643. tType == 1 ||
  2644. tType == 4) &&
  2645. tool.tool.indexOf(16) != -1
  2646. "
  2647. class="worksBox"
  2648. >
  2649. <div
  2650. class="zuoyeYulan"
  2651. v-if="
  2652. (worksStudent.length &&
  2653. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2654. "
  2655. >
  2656. <div class="worksTop">
  2657. <div>{{ lang.ssHomeworkPreview }}</div>
  2658. <div
  2659. class="corOpen"
  2660. @click="contract(toolIndex)"
  2661. v-if="
  2662. (isCloseList[toolIndex].isCloseBoolean) &&
  2663. isCloseList[toolIndex].isClose == 0
  2664. "
  2665. >
  2666. {{ lang.ssFold }}
  2667. </div>
  2668. <div
  2669. class="corOpen"
  2670. @click="contract(toolIndex)"
  2671. v-if="isCloseList[toolIndex].isClose == 1"
  2672. >
  2673. {{ lang.ssExpand }}
  2674. </div>
  2675. </div>
  2676. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2677. </div>
  2678. <div
  2679. class="group_workBox"
  2680. v-for="(g, gindex) in courseGroup.group"
  2681. :key="gindex"
  2682. >
  2683. <div class="group_box">
  2684. <div class="group_title">
  2685. <el-tooltip
  2686. class="item"
  2687. effect="light"
  2688. :content="g.name"
  2689. placement="top"
  2690. >
  2691. <div class="group_name">{{ g.name }}</div>
  2692. </el-tooltip>
  2693. </div>
  2694. <div
  2695. class="group_work"
  2696. v-if="
  2697. g.works &&
  2698. g.works.length &&
  2699. g.works[toolIndex].length
  2700. "
  2701. >
  2702. <div
  2703. class="works"
  2704. style="
  2705. width: 200px;
  2706. height: 140px;
  2707. margin: 10px 10px 10px 0;
  2708. border-radius: 15px;
  2709. box-shadow: 0 0 6px 1px #dfdada;
  2710. "
  2711. v-for="(w, wIndex) in g.works[toolIndex]"
  2712. :key="wIndex"
  2713. :class="w.type == 1 ? 'isTypeOne' : ''"
  2714. >
  2715. <div class="workImg" v-if="w.type == 0">
  2716. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2717. <img
  2718. :src="w.works"
  2719. @click="previewImg(w.works,w)"
  2720. alt
  2721. />
  2722. <div
  2723. class="answerScore"
  2724. v-if="w.score"
  2725. @click.stop="openScore(w)"
  2726. :class="{
  2727. rightW:
  2728. w.userid == userid ||
  2729. tType == 1 ||
  2730. tType == 4 ||
  2731. w.ateacher == userid,
  2732. }"
  2733. >
  2734. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2735. </div>
  2736. <div
  2737. class="answerScore"
  2738. @click.stop="openScore(w)"
  2739. v-else-if="courseDetail.userid == userid"
  2740. :class="{
  2741. rightW:
  2742. w.userid == userid ||
  2743. tType == 1 ||
  2744. tType == 4 ||
  2745. w.ateacher == userid,
  2746. }"
  2747. >
  2748. {{ lang.ssMarkScore }}
  2749. </div>
  2750. <img
  2751. class="deleteImg"
  2752. src="../assets/deleteworks.png"
  2753. v-if="
  2754. w.userid == userid || tType == 1 || tType == 4
  2755. "
  2756. @click.stop="deleteWorks(w.wid)"
  2757. alt
  2758. />
  2759. </div>
  2760. <div class="workImg" v-if="w.type == 1">
  2761. <img :src="word" @click="openFile(w.works,w)" alt />
  2762. <!-- @click="openFile(w.works)" -->
  2763. <div
  2764. class="answerScore"
  2765. v-if="w.score"
  2766. @click.stop="openScore(w)"
  2767. :class="{
  2768. rightW:
  2769. w.userid == userid ||
  2770. tType == 1 ||
  2771. tType == 4 ||
  2772. w.ateacher == userid,
  2773. }"
  2774. >
  2775. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2776. </div>
  2777. <div
  2778. class="answerScore"
  2779. @click.stop="openScore(w)"
  2780. v-else-if="courseDetail.userid == userid"
  2781. :class="{
  2782. rightW:
  2783. w.userid == userid ||
  2784. tType == 1 ||
  2785. tType == 4 ||
  2786. w.ateacher == userid,
  2787. }"
  2788. >
  2789. {{ lang.ssMarkScore }}
  2790. </div>
  2791. <img
  2792. class="deleteImg"
  2793. src="../assets/deleteworks.png"
  2794. v-if="
  2795. w.userid == userid || tType == 1 || tType == 4
  2796. "
  2797. @click.stop="deleteWorks(w.wid)"
  2798. alt
  2799. />
  2800. </div>
  2801. <div class="workImg" v-if="w.type == 3">
  2802. <img
  2803. style="cursor: pointer"
  2804. :src="video"
  2805. @click="openVideo(w)"
  2806. alt
  2807. />
  2808. <!-- @click="openVideo(w.works)" -->
  2809. <div
  2810. class="answerScore"
  2811. v-if="w.score"
  2812. @click.stop="openScore(w)"
  2813. :class="{
  2814. rightW:
  2815. w.userid == userid ||
  2816. tType == 1 ||
  2817. tType == 4 ||
  2818. w.ateacher == userid,
  2819. }"
  2820. >
  2821. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2822. </div>
  2823. <div
  2824. class="answerScore"
  2825. @click.stop="openScore(w)"
  2826. v-else-if="courseDetail.userid == userid"
  2827. :class="{
  2828. rightW:
  2829. w.userid == userid ||
  2830. tType == 1 ||
  2831. tType == 4 ||
  2832. w.ateacher == userid,
  2833. }"
  2834. >
  2835. {{ lang.ssMarkScore }}
  2836. </div>
  2837. <img
  2838. class="deleteImg"
  2839. src="../assets/deleteworks.png"
  2840. v-if="
  2841. w.userid == userid || tType == 1 || tType == 4
  2842. "
  2843. @click.stop="deleteWorks(w.wid)"
  2844. alt
  2845. />
  2846. </div>
  2847. <div class="workImg" v-if="w.type == 12">
  2848. <img
  2849. style="cursor: pointer"
  2850. :src="word2"
  2851. @click="downloadFile(w.works,w.userid)"
  2852. alt
  2853. />
  2854. <!-- @click="openVideo(w.works)" -->
  2855. <div
  2856. class="answerScore"
  2857. v-if="w.score"
  2858. @click.stop="openScore(w)"
  2859. :class="{
  2860. rightW:
  2861. w.userid == userid ||
  2862. tType == 1 ||
  2863. tType == 4 ||
  2864. w.ateacher == userid,
  2865. }"
  2866. >
  2867. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2868. </div>
  2869. <div
  2870. class="answerScore"
  2871. @click.stop="openScore(w)"
  2872. v-else-if="courseDetail.userid == userid"
  2873. :class="{
  2874. rightW:
  2875. w.userid == userid ||
  2876. tType == 1 ||
  2877. tType == 4 ||
  2878. w.ateacher == userid,
  2879. }"
  2880. >
  2881. {{ lang.ssMarkScore }}
  2882. </div>
  2883. <img
  2884. class="deleteImg"
  2885. src="../assets/deleteworks.png"
  2886. v-if="
  2887. w.userid == userid || tType == 1 || tType == 4
  2888. "
  2889. @click.stop="deleteWorks(w.wid)"
  2890. alt
  2891. />
  2892. </div>
  2893. <div class="comment" style="min-width: 200px">
  2894. <div class="worksName">
  2895. <div>{{ w.sName }}</div>
  2896. </div>
  2897. <div class="commentList">
  2898. <div class="commentList">
  2899. <div
  2900. class="commentImg"
  2901. @click="
  2902. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2903. "
  2904. >
  2905. <img
  2906. :src="w.isLikes == true ? likes : noLikes"
  2907. alt=""
  2908. />
  2909. </div>
  2910. <div>{{ w.likesCount }}</div>
  2911. </div>
  2912. <div
  2913. class="commentList"
  2914. style="margin-right: 15px"
  2915. >
  2916. <div
  2917. class="commentImg"
  2918. @click="
  2919. commentOther(
  2920. w,
  2921. toolIndex,
  2922. wIndex,
  2923. null,
  2924. g.id
  2925. )
  2926. "
  2927. >
  2928. <img
  2929. src="../assets/icon/comment/comment.png"
  2930. alt=""
  2931. />
  2932. </div>
  2933. <div>{{ w.commentCount }}</div>
  2934. </div>
  2935. </div>
  2936. </div>
  2937. </div>
  2938. </div>
  2939. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  2940. </div>
  2941. </div>
  2942. <div
  2943. :id="'tool-' + toolIndex"
  2944. :style="{
  2945. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2946. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2947. }"
  2948. class="worksDetailBox"
  2949. v-if="
  2950. worksStudent.length &&
  2951. worksStudent[toolIndex].length > 0
  2952. "
  2953. >
  2954. <div
  2955. class="works"
  2956. style="
  2957. width: 200px;
  2958. height: 140px;
  2959. margin: 10px 10px 10px 0;
  2960. border-radius: 15px;
  2961. box-shadow: 0 0 6px 1px #dfdada;
  2962. "
  2963. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2964. :key="wIndex"
  2965. :class="w.type == 1 ? 'isTypeOne' : ''"
  2966. >
  2967. <div class="workImg" v-if="w.type == 0">
  2968. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2969. <img
  2970. :src="w.works"
  2971. @click="previewImg(w.works,w)"
  2972. alt
  2973. />
  2974. <div
  2975. class="answerScore"
  2976. v-if="w.score"
  2977. @click.stop="openScore(w)"
  2978. :class="{
  2979. rightW:
  2980. w.userid == userid ||
  2981. tType == 1 ||
  2982. tType == 4 ||
  2983. w.ateacher == userid,
  2984. }"
  2985. >
  2986. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2987. </div>
  2988. <div
  2989. class="answerScore"
  2990. @click.stop="openScore(w)"
  2991. v-else-if="courseDetail.userid == userid"
  2992. :class="{
  2993. rightW:
  2994. w.userid == userid ||
  2995. tType == 1 ||
  2996. tType == 4 ||
  2997. w.ateacher == userid,
  2998. }"
  2999. >
  3000. {{ lang.ssMarkScore }}
  3001. </div>
  3002. <img
  3003. class="deleteImg"
  3004. src="../assets/deleteworks.png"
  3005. v-if="
  3006. w.userid == userid || tType == 1 || tType == 4
  3007. "
  3008. @click.stop="deleteWorks(w.wid)"
  3009. alt
  3010. />
  3011. </div>
  3012. <div class="workImg" v-if="w.type == 1">
  3013. <img :src="word" @click="openFile(w.works,w)" alt />
  3014. <!-- @click="openFile(w.works)" -->
  3015. <div
  3016. class="answerScore"
  3017. v-if="w.score"
  3018. @click.stop="openScore(w)"
  3019. :class="{
  3020. rightW:
  3021. w.userid == userid ||
  3022. tType == 1 ||
  3023. tType == 4 ||
  3024. w.ateacher == userid,
  3025. }"
  3026. >
  3027. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3028. </div>
  3029. <div
  3030. class="answerScore"
  3031. @click.stop="openScore(w)"
  3032. v-else-if="courseDetail.userid == userid"
  3033. :class="{
  3034. rightW:
  3035. w.userid == userid ||
  3036. tType == 1 ||
  3037. tType == 4 ||
  3038. w.ateacher == userid,
  3039. }"
  3040. >
  3041. {{ lang.ssMarkScore }}
  3042. </div>
  3043. <img
  3044. class="deleteImg"
  3045. src="../assets/deleteworks.png"
  3046. v-if="
  3047. w.userid == userid || tType == 1 || tType == 4
  3048. "
  3049. @click.stop="deleteWorks(w.wid)"
  3050. alt
  3051. />
  3052. </div>
  3053. <div class="workImg" v-if="w.type == 3">
  3054. <img
  3055. style="cursor: pointer"
  3056. :src="video"
  3057. @click="openVideo(w)"
  3058. alt
  3059. />
  3060. <!-- @click="openVideo(w.works)" -->
  3061. <div
  3062. class="answerScore"
  3063. v-if="w.score"
  3064. @click.stop="openScore(w)"
  3065. :class="{
  3066. rightW:
  3067. w.userid == userid ||
  3068. tType == 1 ||
  3069. tType == 4 ||
  3070. w.ateacher == userid,
  3071. }"
  3072. >
  3073. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3074. </div>
  3075. <div
  3076. class="answerScore"
  3077. @click.stop="openScore(w)"
  3078. v-else-if="courseDetail.userid == userid"
  3079. :class="{
  3080. rightW:
  3081. w.userid == userid ||
  3082. tType == 1 ||
  3083. tType == 4 ||
  3084. w.ateacher == userid,
  3085. }"
  3086. >
  3087. {{ lang.ssMarkScore }}
  3088. </div>
  3089. <img
  3090. class="deleteImg"
  3091. src="../assets/deleteworks.png"
  3092. v-if="
  3093. w.userid == userid || tType == 1 || tType == 4
  3094. "
  3095. @click.stop="deleteWorks(w.wid)"
  3096. alt
  3097. />
  3098. </div>
  3099. <div class="workImg" v-if="w.type == 12">
  3100. <img
  3101. style="cursor: pointer"
  3102. :src="word2"
  3103. @click="downloadFile(w.works,w.userid)"
  3104. alt
  3105. />
  3106. <!-- @click="openVideo(w.works)" -->
  3107. <div
  3108. class="answerScore"
  3109. v-if="w.score"
  3110. @click.stop="openScore(w)"
  3111. :class="{
  3112. rightW:
  3113. w.userid == userid ||
  3114. tType == 1 ||
  3115. tType == 4 ||
  3116. w.ateacher == userid,
  3117. }"
  3118. >
  3119. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3120. </div>
  3121. <div
  3122. class="answerScore"
  3123. @click.stop="openScore(w)"
  3124. v-else-if="courseDetail.userid == userid"
  3125. :class="{
  3126. rightW:
  3127. w.userid == userid ||
  3128. tType == 1 ||
  3129. tType == 4 ||
  3130. w.ateacher == userid,
  3131. }"
  3132. >
  3133. {{ lang.ssMarkScore }}
  3134. </div>
  3135. <img
  3136. class="deleteImg"
  3137. src="../assets/deleteworks.png"
  3138. v-if="
  3139. w.userid == userid || tType == 1 || tType == 4
  3140. "
  3141. @click.stop="deleteWorks(w.wid)"
  3142. alt
  3143. />
  3144. </div>
  3145. <div class="comment" style="min-width: 200px">
  3146. <div class="worksName">
  3147. <div>{{ w.sName }}</div>
  3148. </div>
  3149. <div class="commentList">
  3150. <div class="commentList">
  3151. <div
  3152. class="commentImg"
  3153. @click="
  3154. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3155. "
  3156. >
  3157. <img
  3158. :src="w.isLikes == true ? likes : noLikes"
  3159. alt=""
  3160. />
  3161. </div>
  3162. <div>{{ w.likesCount }}</div>
  3163. </div>
  3164. <div class="commentList" style="margin-right: 15px">
  3165. <div
  3166. class="commentImg"
  3167. @click="commentOther(w, toolIndex, wIndex)"
  3168. >
  3169. <img
  3170. src="../assets/icon/comment/comment.png"
  3171. alt=""
  3172. />
  3173. </div>
  3174. <div>{{ w.commentCount }}</div>
  3175. </div>
  3176. </div>
  3177. </div>
  3178. </div>
  3179. </div>
  3180. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3181. {{ lang.ssNotSubmitted }}
  3182. </div>
  3183. <div
  3184. class="noWorksS"
  3185. v-if="noWorksS && noWorksS[toolIndex].length"
  3186. >
  3187. <div
  3188. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3189. :key="sIndex"
  3190. class="noWorksName"
  3191. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3192. >
  3193. <el-tooltip effect="dark" :content="s.student" placement="top">
  3194. <span>{{ s.student }}</span>
  3195. </el-tooltip>
  3196. </div>
  3197. </div>
  3198. </div>
  3199. <div
  3200. v-if="
  3201. tType &&
  3202. ((tType == 2 && sIsOpen == true) ||
  3203. tType == 1 ||
  3204. tType == 4) &&
  3205. tool.tool.indexOf(70) != -1
  3206. "
  3207. class="worksBox"
  3208. >
  3209. <div
  3210. class="zuoyeYulan"
  3211. v-if="
  3212. (worksStudent.length &&
  3213. worksStudent[toolIndex].length > 0)
  3214. "
  3215. >
  3216. <div class="worksTop">
  3217. <div>{{ lang.ssHomeworkPreview }}</div>
  3218. <div
  3219. class="corOpen"
  3220. @click="contract(toolIndex)"
  3221. v-if="
  3222. (isCloseList[toolIndex].isCloseBoolean) &&
  3223. isCloseList[toolIndex].isClose == 0
  3224. "
  3225. >
  3226. {{ lang.ssFold }}
  3227. </div>
  3228. <div
  3229. class="corOpen"
  3230. @click="contract(toolIndex)"
  3231. v-if="isCloseList[toolIndex].isClose == 1"
  3232. >
  3233. {{ lang.ssExpand }}
  3234. </div>
  3235. </div>
  3236. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3237. </div>
  3238. <div
  3239. :id="'tool-' + toolIndex"
  3240. :style="{
  3241. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3242. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3243. }"
  3244. class="worksDetailBox"
  3245. v-if="
  3246. worksStudent.length &&
  3247. worksStudent[toolIndex].length > 0
  3248. "
  3249. >
  3250. <div
  3251. class="works"
  3252. style="
  3253. width: 200px;
  3254. height: 140px;
  3255. margin: 10px 10px 10px 0;
  3256. border-radius: 15px;
  3257. box-shadow: 0 0 6px 1px #dfdada;
  3258. "
  3259. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3260. :key="wIndex"
  3261. :class="w.type == 1 ? 'isTypeOne' : ''"
  3262. >
  3263. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3264. <img :src="word" alt />
  3265. <img
  3266. class="deleteImg"
  3267. src="../assets/deleteworks.png"
  3268. v-if="
  3269. w.userid == userid || tType == 1 || tType == 4
  3270. "
  3271. @click.stop="deleteWorks(w.wid)"
  3272. alt
  3273. />
  3274. </div>
  3275. <div class="comment" style="min-width: 200px">
  3276. <div class="worksName">
  3277. <div>{{ w.sName }}</div>
  3278. </div>
  3279. </div>
  3280. </div>
  3281. </div>
  3282. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3283. {{ lang.ssNotSubmitted }}
  3284. </div>
  3285. <div
  3286. class="noWorksS"
  3287. v-if="noWorksS && noWorksS[toolIndex].length"
  3288. >
  3289. <div
  3290. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3291. :key="sIndex"
  3292. class="noWorksName"
  3293. >
  3294. <el-tooltip effect="dark" :content="s.student" placement="top">
  3295. <span>{{ s.student }}</span>
  3296. </el-tooltip>
  3297. </div>
  3298. </div>
  3299. </div>
  3300. <div
  3301. v-if="
  3302. tType &&
  3303. tType == 2 &&
  3304. !sIsOpen &&
  3305. tool.tool.indexOf(70) != -1
  3306. "
  3307. class="worksBox"
  3308. >
  3309. <div
  3310. class="zuoyeYulan"
  3311. v-if="workStudent[toolIndex].length > 0"
  3312. >
  3313. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  3314. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3315. </div>
  3316. <div
  3317. class="worksDetailBox"
  3318. v-if="workStudent[toolIndex].length > 0"
  3319. >
  3320. <div
  3321. class="works"
  3322. style="
  3323. width: 200px;
  3324. height: 140px;
  3325. margin: 10px 10px 10px 0;
  3326. box-shadow: 0 0 6px 1px #dfdada;
  3327. "
  3328. v-for="(w, wIndex) in workStudent[toolIndex]"
  3329. :key="wIndex"
  3330. >
  3331. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3332. <img :src="word" alt />
  3333. <img
  3334. class="deleteImg"
  3335. src="../assets/deleteworks.png"
  3336. v-if="
  3337. w.userid == userid || tType == 1 || tType == 4
  3338. "
  3339. @click.stop="deleteWorks(w.wid)"
  3340. alt
  3341. />
  3342. </div>
  3343. <div class="worksName">
  3344. <div>{{ w.sName }}</div>
  3345. </div>
  3346. </div>
  3347. </div>
  3348. </div>
  3349. <div
  3350. v-if="
  3351. tType &&
  3352. ((tType == 2 && sIsOpen == true) ||
  3353. tType == 1 ||
  3354. tType == 4) &&
  3355. tool.tool.indexOf(32) != -1
  3356. "
  3357. class="worksBox"
  3358. >
  3359. <div
  3360. class="zuoyeYulan"
  3361. v-if="
  3362. worksStudent.length &&
  3363. worksStudent[toolIndex].length > 0
  3364. "
  3365. >
  3366. <div class="worksTop">
  3367. <div>{{ lang.ssHomeworkPreview }}</div>
  3368. <div
  3369. class="corOpen"
  3370. @click="contract(toolIndex)"
  3371. v-if="
  3372. (isCloseList[toolIndex].isCloseBoolean) &&
  3373. isCloseList[toolIndex].isClose == 0
  3374. "
  3375. >
  3376. {{ lang.ssFold }}
  3377. </div>
  3378. <div
  3379. class="corOpen"
  3380. @click="contract(toolIndex)"
  3381. v-if="isCloseList[toolIndex].isClose == 1"
  3382. >
  3383. {{ lang.ssExpand }}
  3384. </div>
  3385. </div>
  3386. </div>
  3387. <div
  3388. :id="'tool-' + toolIndex"
  3389. class="worksDetailBox"
  3390. :style="{
  3391. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3392. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3393. }"
  3394. v-if="
  3395. worksStudent.length &&
  3396. worksStudent[toolIndex].length > 0
  3397. "
  3398. >
  3399. <div
  3400. class="works"
  3401. style="
  3402. width: 200px;
  3403. height: 140px;
  3404. margin: 10px 10px 10px 0;
  3405. border-radius: 15px;
  3406. box-shadow: 0 0 6px 1px #dfdada;
  3407. "
  3408. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3409. :key="wIndex"
  3410. :class="w.type == 1 ? 'isTypeOne' : ''"
  3411. >
  3412. <div class="workImg">
  3413. <img
  3414. :src="word2"
  3415. @click="downloadFile(w.works,w.userid)"
  3416. alt
  3417. />
  3418. <div
  3419. class="answerScore"
  3420. v-if="w.score"
  3421. @click.stop="openScore(w)"
  3422. :class="{
  3423. rightW:
  3424. w.userid == userid ||
  3425. tType == 1 ||
  3426. tType == 4 ||
  3427. w.ateacher == userid,
  3428. }"
  3429. >
  3430. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3431. </div>
  3432. <div
  3433. class="answerScore"
  3434. @click.stop="openScore(w)"
  3435. v-else-if="courseDetail.userid == userid"
  3436. :class="{
  3437. rightW:
  3438. w.userid == userid ||
  3439. tType == 1 ||
  3440. tType == 4 ||
  3441. w.ateacher == userid,
  3442. }"
  3443. >
  3444. {{ lang.ssMarkScore }}
  3445. </div>
  3446. <img
  3447. class="deleteImg"
  3448. src="../assets/deleteworks.png"
  3449. v-if="
  3450. w.userid == userid || tType == 1 || tType == 4
  3451. "
  3452. @click.stop="deleteWorks(w.wid)"
  3453. alt
  3454. />
  3455. </div>
  3456. <div class="comment" style="min-width: 200px">
  3457. <div class="worksName">
  3458. <div>{{ w.sName }}</div>
  3459. </div>
  3460. <div class="commentList">
  3461. <div class="commentList">
  3462. <div
  3463. class="commentImg"
  3464. @click="
  3465. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3466. "
  3467. >
  3468. <img
  3469. :src="w.isLikes == true ? likes : noLikes"
  3470. alt=""
  3471. />
  3472. </div>
  3473. <div>{{ w.likesCount }}</div>
  3474. </div>
  3475. <div class="commentList" style="margin-right: 15px">
  3476. <div
  3477. class="commentImg"
  3478. @click="commentOther(w, toolIndex, wIndex)"
  3479. >
  3480. <img
  3481. src="../assets/icon/comment/comment.png"
  3482. alt=""
  3483. />
  3484. </div>
  3485. <div>{{ w.commentCount }}</div>
  3486. </div>
  3487. </div>
  3488. </div>
  3489. </div>
  3490. </div>
  3491. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3492. {{ lang.ssNotSubmitted }}
  3493. </div>
  3494. <div
  3495. class="noWorksS"
  3496. v-if="noWorksS && noWorksS[toolIndex].length"
  3497. >
  3498. <div
  3499. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3500. :key="sIndex"
  3501. class="noWorksName"
  3502. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3503. >
  3504. <el-tooltip effect="dark" :content="s.student" placement="top">
  3505. <span>{{ s.student }}</span>
  3506. </el-tooltip>
  3507. </div>
  3508. </div>
  3509. </div>
  3510. <div
  3511. v-if="
  3512. tType &&
  3513. ((tType == 2 && sIsOpen == true) ||
  3514. tType == 1 ||
  3515. tType == 4) &&
  3516. tool.tool.indexOf(57) != -1
  3517. "
  3518. class="worksBox"
  3519. >
  3520. <div
  3521. class="zuoyeYulan"
  3522. v-if="
  3523. worksStudent.length &&
  3524. worksStudent[toolIndex].length > 0
  3525. "
  3526. >
  3527. <div class="worksTop">
  3528. <div>{{ lang.ssHomeworkPreview }}</div>
  3529. <div
  3530. class="corOpen"
  3531. @click="contract(toolIndex)"
  3532. v-if="
  3533. (isCloseList[toolIndex].isCloseBoolean) &&
  3534. isCloseList[toolIndex].isClose == 0
  3535. "
  3536. >
  3537. {{ lang.ssFold }}
  3538. </div>
  3539. <div
  3540. class="corOpen"
  3541. @click="contract(toolIndex)"
  3542. v-if="isCloseList[toolIndex].isClose == 1"
  3543. >
  3544. {{ lang.ssExpand }}
  3545. </div>
  3546. </div>
  3547. </div>
  3548. <div
  3549. :id="'tool-' + toolIndex"
  3550. class="worksDetailBox"
  3551. :style="{
  3552. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3553. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3554. }"
  3555. v-if="
  3556. worksStudent.length &&
  3557. worksStudent[toolIndex].length > 0
  3558. "
  3559. >
  3560. <div
  3561. class="works"
  3562. style="
  3563. width: 200px;
  3564. height: 140px;
  3565. margin: 10px 10px 10px 0;
  3566. border-radius: 15px;
  3567. box-shadow: 0 0 6px 1px #dfdada;
  3568. "
  3569. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3570. :key="wIndex"
  3571. :class="w.type == 1 ? 'isTypeOne' : ''"
  3572. >
  3573. <div class="workImg">
  3574. <img
  3575. :src="word2"
  3576. @click="downloadFile(w.works,w.userid)"
  3577. v-if="w.type == 12"
  3578. alt
  3579. />
  3580. <img
  3581. :src="word2"
  3582. @click="
  3583. openCocoPi(57, toolIndex, w.userid, w.sName)
  3584. "
  3585. v-else-if="w.type == 15"
  3586. alt
  3587. />
  3588. <div
  3589. class="answerScore"
  3590. v-if="w.score"
  3591. @click.stop="openScore(w)"
  3592. :class="{
  3593. rightW:
  3594. w.userid == userid ||
  3595. tType == 1 ||
  3596. tType == 4 ||
  3597. w.ateacher == userid,
  3598. }"
  3599. >
  3600. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3601. </div>
  3602. <div
  3603. class="answerScore"
  3604. @click.stop="openScore(w)"
  3605. v-else-if="courseDetail.userid == userid"
  3606. :class="{
  3607. rightW:
  3608. w.userid == userid ||
  3609. tType == 1 ||
  3610. tType == 4 ||
  3611. w.ateacher == userid,
  3612. }"
  3613. >
  3614. {{ lang.ssMarkScore }}
  3615. </div>
  3616. <img
  3617. class="deleteImg"
  3618. src="../assets/deleteworks.png"
  3619. v-if="
  3620. w.userid == userid || tType == 1 || tType == 4
  3621. "
  3622. @click.stop="deleteWorks(w.wid)"
  3623. alt
  3624. />
  3625. </div>
  3626. <div class="comment" style="min-width: 200px">
  3627. <div class="worksName">
  3628. <div>{{ w.sName }}</div>
  3629. </div>
  3630. <div class="commentList">
  3631. <div class="commentList">
  3632. <div
  3633. class="commentImg"
  3634. @click="
  3635. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3636. "
  3637. >
  3638. <img
  3639. :src="w.isLikes == true ? likes : noLikes"
  3640. alt=""
  3641. />
  3642. </div>
  3643. <div>{{ w.likesCount }}</div>
  3644. </div>
  3645. <div class="commentList" style="margin-right: 15px">
  3646. <div
  3647. class="commentImg"
  3648. @click="commentOther(w, toolIndex, wIndex)"
  3649. >
  3650. <img
  3651. src="../assets/icon/comment/comment.png"
  3652. alt=""
  3653. />
  3654. </div>
  3655. <div>{{ w.commentCount }}</div>
  3656. </div>
  3657. </div>
  3658. </div>
  3659. </div>
  3660. </div>
  3661. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3662. {{ lang.ssNotSubmitted }}
  3663. </div>
  3664. <div
  3665. class="noWorksS"
  3666. v-if="noWorksS && noWorksS[toolIndex].length"
  3667. >
  3668. <div
  3669. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3670. :key="sIndex"
  3671. class="noWorksName"
  3672. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3673. >
  3674. <el-tooltip effect="dark" :content="s.student" placement="top">
  3675. <span>{{ s.student }}</span>
  3676. </el-tooltip>
  3677. </div>
  3678. </div>
  3679. </div>
  3680. <div
  3681. v-if="
  3682. tType &&
  3683. ((tType == 2 && sIsOpen == true) ||
  3684. tType == 1 ||
  3685. tType == 4) &&
  3686. tool.tool.indexOf(72) != -1
  3687. "
  3688. class="worksBox"
  3689. >
  3690. <div
  3691. class="zuoyeYulan"
  3692. v-if="
  3693. worksStudent.length &&
  3694. worksStudent[toolIndex].length > 0
  3695. "
  3696. >
  3697. <div class="worksTop">
  3698. <div>{{ lang.ssHomeworkPreview }}</div>
  3699. <div
  3700. class="corOpen"
  3701. @click="contract(toolIndex)"
  3702. v-if="
  3703. isCloseList[toolIndex].isCloseBoolean &&
  3704. isCloseList[toolIndex].isClose == 0
  3705. "
  3706. >
  3707. {{ lang.ssFold }}
  3708. </div>
  3709. <div
  3710. class="corOpen"
  3711. @click="contract(toolIndex)"
  3712. v-if="isCloseList[toolIndex].isClose == 1"
  3713. >
  3714. {{ lang.ssExpand }}
  3715. </div>
  3716. </div>
  3717. </div>
  3718. <div
  3719. :id="'tool-' + toolIndex"
  3720. :style="{
  3721. height:
  3722. isCloseList[toolIndex].isClose == 1
  3723. ? retrnToolHeight('tool-' + toolIndex)
  3724. : 'auto',
  3725. overflow:
  3726. isCloseList[toolIndex].isClose == 1
  3727. ? 'hidden'
  3728. : 'unset'
  3729. }"
  3730. class="worksDetailBox"
  3731. v-if="
  3732. worksStudent.length &&
  3733. worksStudent[toolIndex].length > 0
  3734. "
  3735. >
  3736. <div
  3737. class="works"
  3738. style="
  3739. width: 200px;
  3740. height: 140px;
  3741. margin: 10px 10px 10px 0;
  3742. border-radius: 15px;
  3743. box-shadow: 0 0 6px 1px #dfdada;
  3744. "
  3745. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3746. :key="wIndex"
  3747. :class="w.type == 1 ? 'isTypeOne' : ''"
  3748. >
  3749. <div class="workImg">
  3750. <!-- <img
  3751. :src="word2"
  3752. @click="downloadFile(w.works)"
  3753. v-if="w.type == 12"
  3754. alt
  3755. /> -->
  3756. <img
  3757. :src="word2"
  3758. @click="
  3759. openCocoFlow(w)
  3760. "
  3761. alt
  3762. />
  3763. <div
  3764. class="answerScore"
  3765. v-if="w.score"
  3766. @click.stop="openScore(w)"
  3767. :class="{
  3768. rightW:
  3769. w.userid == userid ||
  3770. tType == 1 ||
  3771. tType == 4 ||
  3772. w.ateacher == userid
  3773. }"
  3774. >
  3775. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3776. </div>
  3777. <div
  3778. class="answerScore"
  3779. @click.stop="openScore(w)"
  3780. v-else-if="
  3781. courseDetail.userid == userid &&
  3782. courseDetail.state != 5 &&
  3783. chapInfoList[courseType].chapterInfo[0]
  3784. .taskJson[taskCount].eList &&
  3785. chapInfoList[courseType].chapterInfo[0]
  3786. .taskJson[taskCount].eList.length
  3787. "
  3788. :class="{
  3789. rightW:
  3790. w.userid == userid ||
  3791. tType == 1 ||
  3792. tType == 4 ||
  3793. w.ateacher == userid
  3794. }"
  3795. >
  3796. {{ lang.ssMarkScore }}
  3797. </div>
  3798. <img
  3799. class="deleteImg"
  3800. src="../assets/deleteworks.png"
  3801. v-if="
  3802. w.userid == userid || tType == 1 || tType == 4
  3803. "
  3804. @click.stop="deleteWorks(w.wid)"
  3805. alt
  3806. />
  3807. </div>
  3808. <div class="comment" style="min-width: 200px">
  3809. <div class="worksName">
  3810. <div>{{ w.sName }}</div>
  3811. </div>
  3812. <div class="commentList">
  3813. <div class="commentList">
  3814. <div
  3815. class="commentImg"
  3816. @click="
  3817. isLikes(
  3818. w.wid,
  3819. userid,
  3820. 1,
  3821. null,
  3822. w.isLikes,
  3823. w.sName
  3824. )
  3825. "
  3826. >
  3827. <img
  3828. :src="w.isLikes == true ? likes : noLikes"
  3829. alt=""
  3830. />
  3831. </div>
  3832. <div>{{ w.likesCount }}</div>
  3833. </div>
  3834. <div class="commentList" style="margin-right: 15px">
  3835. <div
  3836. class="commentImg"
  3837. @click="commentOther(w, toolIndex, wIndex)"
  3838. >
  3839. <img
  3840. src="../assets/icon/comment/comment.png"
  3841. alt=""
  3842. />
  3843. </div>
  3844. <div>{{ w.commentCount }}</div>
  3845. </div>
  3846. </div>
  3847. </div>
  3848. </div>
  3849. </div>
  3850. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3851. {{ lang.ssNotSubmitted }}
  3852. </div>
  3853. <div
  3854. class="noWorksS"
  3855. v-if="noWorksS && noWorksS[toolIndex].length"
  3856. >
  3857. <div
  3858. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3859. :key="sIndex"
  3860. class="noWorksName2"
  3861. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3862. >
  3863. <el-tooltip
  3864. effect="dark"
  3865. :content="s.student"
  3866. placement="top"
  3867. >
  3868. <span>{{ s.student }}</span>
  3869. </el-tooltip>
  3870. </div>
  3871. </div>
  3872. </div>
  3873. <div
  3874. v-if="
  3875. tType &&
  3876. tType == 2 &&
  3877. !sIsOpen &&
  3878. tool.tool.indexOf(72) != -1
  3879. "
  3880. class="worksBox"
  3881. >
  3882. <div
  3883. class="zuoyeYulan"
  3884. v-if="workStudent[toolIndex].length > 0"
  3885. >
  3886. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  3887. </div>
  3888. <div
  3889. class="worksDetailBox"
  3890. v-if="workStudent[toolIndex].length > 0"
  3891. >
  3892. <div
  3893. class="works"
  3894. style="
  3895. width: 200px;
  3896. height: 140px;
  3897. margin: 10px 10px 10px 0;
  3898. box-shadow: 0 0 6px 1px #dfdada;
  3899. "
  3900. v-for="(w, wIndex) in workStudent[toolIndex]"
  3901. :key="wIndex"
  3902. >
  3903. <div class="workImg">
  3904. <!-- <img
  3905. :src="word2"
  3906. @click="downloadFile(w.works)"
  3907. v-if="w.type == 12"
  3908. alt
  3909. /> -->
  3910. <img
  3911. :src="word2"
  3912. @click="
  3913. openCocoFlow(w)
  3914. "
  3915. alt
  3916. />
  3917. <div
  3918. class="answerScore"
  3919. v-if="w.score"
  3920. @click.stop="openScore(w)"
  3921. :class="{
  3922. rightW:
  3923. w.userid == userid || tType == 1 || tType == 4
  3924. }"
  3925. >
  3926. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3927. </div>
  3928. <div
  3929. class="answerScore"
  3930. @click.stop="openScore(w)"
  3931. v-else-if="courseDetail.userid == userid"
  3932. :class="{
  3933. rightW:
  3934. w.userid == userid || tType == 1 || tType == 4
  3935. }"
  3936. >
  3937. {{ lang.ssMarkScore }}
  3938. </div>
  3939. <img
  3940. class="deleteImg"
  3941. src="../assets/deleteworks.png"
  3942. v-if="
  3943. w.userid == userid || tType == 1 || tType == 4
  3944. "
  3945. @click.stop="deleteWorks(w.wid)"
  3946. alt
  3947. />
  3948. </div>
  3949. <div class="worksName">
  3950. <div>{{ w.sName }}</div>
  3951. </div>
  3952. </div>
  3953. </div>
  3954. </div>
  3955. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3956. <div
  3957. class="zuoyeYulan"
  3958. v-if="
  3959. worksStudent.length &&
  3960. worksStudent[toolIndex].length > 0
  3961. "
  3962. >
  3963. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  3964. <div
  3965. class="corOpen"
  3966. @click="contract(toolIndex)"
  3967. v-if="
  3968. (isCloseList[toolIndex].isCloseBoolean) &&
  3969. isCloseList[toolIndex].isClose == 0
  3970. "
  3971. >
  3972. {{ lang.ssFold }}
  3973. </div>
  3974. <div
  3975. class="corOpen"
  3976. @click="contract(toolIndex)"
  3977. v-if="isCloseList[toolIndex].isClose == 1"
  3978. >
  3979. {{ lang.ssExpand }}
  3980. </div>
  3981. </div>
  3982. <div
  3983. :id="'tool-' + toolIndex"
  3984. :style="{
  3985. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3986. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3987. }"
  3988. class="worksDetailBox"
  3989. v-if="
  3990. worksStudent.length &&
  3991. worksStudent[toolIndex].length > 0
  3992. "
  3993. >
  3994. <div
  3995. class="works"
  3996. style="
  3997. width: 200px;
  3998. height: 140px;
  3999. margin: 10px 10px 10px 0;
  4000. border-radius: 15px;
  4001. box-shadow: 0 0 6px 1px #dfdada;
  4002. "
  4003. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4004. :key="wIndex"
  4005. :class="w.type == 1 ? 'isTypeOne' : ''"
  4006. >
  4007. <div class="workImg" v-if="w.type == 0">
  4008. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4009. <img
  4010. :src="w.works"
  4011. @click="previewImg(w.works,w)"
  4012. alt
  4013. />
  4014. <div
  4015. class="answerScore"
  4016. v-if="w.score"
  4017. @click.stop="openScore(w)"
  4018. :class="{
  4019. rightW:
  4020. w.userid == userid ||
  4021. tType == 1 ||
  4022. tType == 4 ||
  4023. w.ateacher == userid,
  4024. }"
  4025. >
  4026. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4027. </div>
  4028. <div
  4029. class="answerScore"
  4030. @click.stop="openScore(w)"
  4031. v-else-if="courseDetail.userid == userid"
  4032. :class="{
  4033. rightW:
  4034. w.userid == userid ||
  4035. tType == 1 ||
  4036. tType == 4 ||
  4037. w.ateacher == userid,
  4038. }"
  4039. >
  4040. {{ lang.ssMarkScore }}
  4041. </div>
  4042. <img
  4043. class="deleteImg"
  4044. src="../assets/deleteworks.png"
  4045. v-if="
  4046. w.userid == userid || tType == 1 || tType == 4
  4047. "
  4048. @click.stop="deleteWorks(w.wid)"
  4049. alt
  4050. />
  4051. </div>
  4052. <div
  4053. class="workImg"
  4054. style="cursor: pointer"
  4055. v-if="w.type == 1"
  4056. >
  4057. <img :src="word" @click="openFile(w.works,w)" alt />
  4058. <!-- @click="openFile(w.works)" -->
  4059. <div
  4060. class="answerScore"
  4061. v-if="w.score"
  4062. @click.stop="openScore(w)"
  4063. :class="{
  4064. rightW:
  4065. w.userid == userid ||
  4066. tType == 1 ||
  4067. tType == 4 ||
  4068. w.ateacher == userid,
  4069. }"
  4070. >
  4071. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4072. </div>
  4073. <div
  4074. class="answerScore"
  4075. @click.stop="openScore(w)"
  4076. v-else-if="courseDetail.userid == userid"
  4077. :class="{
  4078. rightW:
  4079. w.userid == userid ||
  4080. tType == 1 ||
  4081. tType == 4 ||
  4082. w.ateacher == userid,
  4083. }"
  4084. >
  4085. {{ lang.ssMarkScore }}
  4086. </div>
  4087. <img
  4088. class="deleteImg"
  4089. src="../assets/deleteworks.png"
  4090. v-if="
  4091. w.userid == userid || tType == 1 || tType == 4
  4092. "
  4093. @click.stop="deleteWorks(w.wid)"
  4094. alt
  4095. />
  4096. </div>
  4097. <div class="workImg" v-if="w.type == 3">
  4098. <img
  4099. style="cursor: pointer"
  4100. :src="video"
  4101. @click="openVideo(w)"
  4102. alt
  4103. />
  4104. <!-- @click="openVideo(w.works)" -->
  4105. <div
  4106. class="answerScore"
  4107. v-if="w.score"
  4108. @click.stop="openScore(w)"
  4109. :class="{
  4110. rightW:
  4111. w.userid == userid ||
  4112. tType == 1 ||
  4113. tType == 4 ||
  4114. w.ateacher == userid,
  4115. }"
  4116. >
  4117. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4118. </div>
  4119. <div
  4120. class="answerScore"
  4121. @click.stop="openScore(w)"
  4122. v-else-if="courseDetail.userid == userid"
  4123. :class="{
  4124. rightW:
  4125. w.userid == userid ||
  4126. tType == 1 ||
  4127. tType == 4 ||
  4128. w.ateacher == userid,
  4129. }"
  4130. >
  4131. {{ lang.ssMarkScore }}
  4132. </div>
  4133. <img
  4134. class="deleteImg"
  4135. src="../assets/deleteworks.png"
  4136. v-if="
  4137. w.userid == userid || tType == 1 || tType == 4
  4138. "
  4139. @click.stop="deleteWorks(w.wid)"
  4140. alt
  4141. />
  4142. </div>
  4143. <div class="comment" style="min-width: 200px">
  4144. <div class="worksName">
  4145. <div
  4146. style="cursor: pointer"
  4147. @click="
  4148. openSname(w.sName, w.wid, toolIndex, w.userid)
  4149. "
  4150. >
  4151. {{ w.sName }}
  4152. </div>
  4153. </div>
  4154. <div class="commentList">
  4155. <div class="commentList">
  4156. <div
  4157. class="commentImg"
  4158. @click="
  4159. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4160. "
  4161. >
  4162. <img
  4163. :src="w.isLikes == true ? likes : noLikes"
  4164. alt=""
  4165. />
  4166. </div>
  4167. <div>{{ w.likesCount }}</div>
  4168. </div>
  4169. <div class="commentList" style="margin-right: 15px">
  4170. <div
  4171. class="commentImg"
  4172. @click="commentOther(w, toolIndex, wIndex)"
  4173. >
  4174. <img
  4175. src="../assets/icon/comment/comment.png"
  4176. alt=""
  4177. />
  4178. </div>
  4179. <div>{{ w.commentCount }}</div>
  4180. </div>
  4181. </div>
  4182. </div>
  4183. </div>
  4184. </div>
  4185. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4186. {{ lang.ssNotSubmitted }}
  4187. </div>
  4188. <div
  4189. class="noWorksS"
  4190. v-if="noWorksS && noWorksS[toolIndex].length"
  4191. >
  4192. <div
  4193. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4194. :key="sIndex"
  4195. class="noWorksName"
  4196. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4197. >
  4198. <el-tooltip effect="dark" :content="s.student" placement="top">
  4199. <span>{{ s.student }}</span>
  4200. </el-tooltip>
  4201. </div>
  4202. </div>
  4203. </div>
  4204. <div
  4205. v-if="
  4206. tType &&
  4207. ((tType == 2 && sIsOpen == true) ||
  4208. tType == 1 ||
  4209. tType == 4) &&
  4210. tool.tool.indexOf(4) != -1 &&
  4211. (tool.askJson[0].answer ||
  4212. tool.askJson[0].answer === 0) &&
  4213. checkJson[toolIndex].length
  4214. "
  4215. class="xuan_right_box"
  4216. >
  4217. <div
  4218. class="tool_right_box"
  4219. v-for="(item, index) in tool.askJson"
  4220. :key="index"
  4221. >
  4222. <div style="width: calc(100% - 30px);">
  4223. <el-tooltip
  4224. effect="light"
  4225. :content="index + 1 + '、' + item.askstitle"
  4226. placement="top"
  4227. popper-class="text_tooltip"
  4228. >
  4229. <div
  4230. style="
  4231. width: calc(100% - 130px);
  4232. display: block;
  4233. white-space: nowrap;
  4234. overflow: hidden;
  4235. text-overflow: ellipsis;
  4236. word-break: break-word;
  4237. cursor: pointer;
  4238. "
  4239. >
  4240. {{ index + 1 + "、" + item.askstitle }}
  4241. </div>
  4242. </el-tooltip>
  4243. </div>
  4244. <div class="right_box_xuan">
  4245. <span>{{ lang.ssCorrectRate }}</span>
  4246. <span>{{
  4247. (checkJson[toolIndex][index].right
  4248. ? checkJson[toolIndex][index].right
  4249. : 0) + "%"
  4250. }}</span>
  4251. </div>
  4252. </div>
  4253. </div>
  4254. <div
  4255. class="xuan_right_box"
  4256. style="background: unset; padding: 0 10px"
  4257. v-if="
  4258. tType &&
  4259. ((tType == 2 && sIsOpen == true) ||
  4260. tType == 1 ||
  4261. tType == 4) &&
  4262. tool.tool.indexOf(4) != -1
  4263. "
  4264. >
  4265. <AskStatic
  4266. v-if="
  4267. worksStudent.length &&
  4268. worksStudent[toolIndex].length > 0
  4269. "
  4270. :askJSON="tool"
  4271. :checkJson="checkJson[toolIndex]"
  4272. ></AskStatic>
  4273. </div>
  4274. <div
  4275. v-if="
  4276. tType &&
  4277. ((tType == 2 && sIsOpen == true) ||
  4278. tType == 1 ||
  4279. tType == 4) &&
  4280. tool.tool.indexOf(4) != -1
  4281. "
  4282. class="worksBox"
  4283. >
  4284. <div
  4285. class="zuoyeYulan"
  4286. v-if="
  4287. worksStudent.length &&
  4288. worksStudent[toolIndex].length > 0
  4289. "
  4290. >
  4291. <div class="worksTop">
  4292. <div>{{ lang.ssHomeworkPreview }}</div>
  4293. <div
  4294. class="corOpen"
  4295. @click="contract(toolIndex)"
  4296. v-if="
  4297. (isCloseList[toolIndex].isCloseBoolean) &&
  4298. isCloseList[toolIndex].isClose == 0
  4299. "
  4300. >
  4301. {{ lang.ssFold }}
  4302. </div>
  4303. <div
  4304. class="corOpen"
  4305. @click="contract(toolIndex)"
  4306. v-if="isCloseList[toolIndex].isClose == 1"
  4307. >
  4308. {{ lang.ssExpand }}
  4309. </div>
  4310. </div>
  4311. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4312. </div>
  4313. <div>
  4314. <div
  4315. :id="'tool-' + toolIndex"
  4316. :style="{
  4317. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4318. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4319. }"
  4320. class="worksDetailBox"
  4321. v-if="
  4322. worksStudent.length &&
  4323. worksStudent[toolIndex].length > 0
  4324. "
  4325. >
  4326. <div
  4327. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4328. :key="wIndex"
  4329. class="isWorksName2"
  4330. @click="
  4331. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4332. "
  4333. >
  4334. {{ w.sName }}
  4335. <img
  4336. class="deleteImg deleteImg2"
  4337. src="../assets/deleteworks.png"
  4338. v-if="
  4339. w.userid == userid || tType == 1 || tType == 4
  4340. "
  4341. @click.stop="deleteWorks(w.wid)"
  4342. alt
  4343. />
  4344. </div>
  4345. <!-- <div class="works" style="
  4346. width: 200px;
  4347. height: 140px;
  4348. border-radius: 10px;
  4349. box-shadow: 0 0 6px 1px #dfdada;
  4350. overflow: hidden;
  4351. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4352. <div class="workImg">
  4353. <img src="../assets/icon/works/noImg.png" @click="
  4354. openTools(
  4355. 4,
  4356. toolIndex,
  4357. taskCount,
  4358. w.works,
  4359. w.sName
  4360. )
  4361. " alt />
  4362. </div>
  4363. <div class="worksName">
  4364. <div>{{ w.sName }}</div>
  4365. <div>{{ w.time }}</div>
  4366. </div>
  4367. </div> -->
  4368. </div>
  4369. </div>
  4370. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4371. {{ lang.ssNotSubmitted }}
  4372. </div>
  4373. <div
  4374. class="noWorksS"
  4375. v-if="noWorksS && noWorksS[toolIndex].length"
  4376. >
  4377. <div
  4378. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4379. :key="sIndex"
  4380. class="noWorksName"
  4381. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4382. >
  4383. <el-tooltip effect="dark" :content="s.student" placement="top">
  4384. <span>{{ s.student }}</span>
  4385. </el-tooltip>
  4386. </div>
  4387. </div>
  4388. </div>
  4389. <div
  4390. v-if="
  4391. tType &&
  4392. ((tType == 2 && sIsOpen == true) ||
  4393. tType == 1 ||
  4394. tType == 4) &&
  4395. tool.tool.indexOf(45) != -1 &&
  4396. (tool.testJson.testJson[0].answer ||
  4397. tool.testJson.testJson[0].answer === 0) &&
  4398. checkJson[toolIndex].length
  4399. "
  4400. class="xuan_right_box"
  4401. >
  4402. <div
  4403. class="tool_right_box"
  4404. v-for="(item, index) in tool.testJson.testJson"
  4405. :key="index"
  4406. >
  4407. <div class="right_box_xuan" style="margin-right: 10px">
  4408. <span>{{ lang.ssCorrectRate }}</span>
  4409. <span>{{
  4410. (checkJson[toolIndex][index].right
  4411. ? checkJson[toolIndex][index].right
  4412. : 0) + "%"
  4413. }}</span>
  4414. </div>
  4415. <div style="width: calc(100% - 30px);">
  4416. <el-tooltip
  4417. effect="light"
  4418. :content="index + 1 + '、' + item.teststitle"
  4419. placement="top"
  4420. popper-class="text_tooltip"
  4421. >
  4422. <div
  4423. style="
  4424. width: calc(100% - 130px);
  4425. display: flex;
  4426. white-space: nowrap;
  4427. overflow: hidden;
  4428. text-overflow: ellipsis;
  4429. word-break: break-word;
  4430. cursor: pointer;
  4431. "
  4432. class="renderedFor"
  4433. >
  4434. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  4435. </div>
  4436. </el-tooltip>
  4437. </div>
  4438. </div>
  4439. </div>
  4440. <div
  4441. class="xuan_right_box"
  4442. style="background: unset; padding: 0 10px; width: 91.5%"
  4443. v-if="
  4444. tType &&
  4445. ((tType == 2 && sIsOpen == true) ||
  4446. tType == 1 ||
  4447. tType == 4) &&
  4448. tool.tool.indexOf(45) != -1
  4449. "
  4450. >
  4451. <AskStatic2
  4452. v-if="
  4453. worksStudent.length &&
  4454. worksStudent[toolIndex].length > 0
  4455. "
  4456. :askJSON="tool"
  4457. :checkJson="checkJson[toolIndex]"
  4458. ></AskStatic2>
  4459. </div>
  4460. <div
  4461. v-if="
  4462. tType &&
  4463. ((tType == 2 && sIsOpen == true) ||
  4464. tType == 1 ||
  4465. tType == 4) &&
  4466. tool.tool.indexOf(45) != -1
  4467. "
  4468. class="worksBox"
  4469. >
  4470. <div
  4471. class="zuoyeYulan"
  4472. v-if="
  4473. worksStudent.length &&
  4474. worksStudent[toolIndex].length > 0
  4475. "
  4476. >
  4477. <div class="worksTop">
  4478. <div>{{ lang.ssHomeworkPreview }}</div>
  4479. <div
  4480. class="corOpen"
  4481. @click="contract(toolIndex)"
  4482. v-if="
  4483. (isCloseList[toolIndex].isCloseBoolean) &&
  4484. isCloseList[toolIndex].isClose == 0
  4485. "
  4486. >
  4487. {{ lang.ssFold }}
  4488. </div>
  4489. <div
  4490. class="corOpen"
  4491. @click="contract(toolIndex)"
  4492. v-if="isCloseList[toolIndex].isClose == 1"
  4493. >
  4494. {{ lang.ssExpand }}
  4495. </div>
  4496. </div>
  4497. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4498. </div>
  4499. <div>
  4500. <div
  4501. :id="'tool-' + toolIndex"
  4502. :style="{
  4503. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4504. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4505. }"
  4506. class="worksDetailBox"
  4507. v-if="
  4508. worksStudent.length &&
  4509. worksStudent[toolIndex].length > 0
  4510. "
  4511. >
  4512. <div
  4513. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4514. :key="wIndex"
  4515. class="isWorksName2"
  4516. @click="
  4517. openTools(
  4518. 45,
  4519. toolIndex,
  4520. taskCount,
  4521. w.works,
  4522. w.sName
  4523. )
  4524. "
  4525. >
  4526. {{ w.sName }}
  4527. <img
  4528. class="deleteImg deleteImg2"
  4529. src="../assets/deleteworks.png"
  4530. v-if="
  4531. w.userid == userid || tType == 1 || tType == 4
  4532. "
  4533. @click.stop="deleteWorks(w.wid)"
  4534. alt
  4535. />
  4536. </div>
  4537. </div>
  4538. </div>
  4539. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4540. {{ lang.ssNotSubmitted }}
  4541. </div>
  4542. <div
  4543. class="noWorksS"
  4544. v-if="noWorksS && noWorksS[toolIndex].length"
  4545. >
  4546. <div
  4547. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4548. :key="sIndex"
  4549. class="noWorksName"
  4550. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4551. >
  4552. <el-tooltip effect="dark" :content="s.student" placement="top">
  4553. <span>{{ s.student }}</span>
  4554. </el-tooltip>
  4555. </div>
  4556. </div>
  4557. </div>
  4558. <div
  4559. v-if="
  4560. tType &&
  4561. ((tType == 2 && sIsOpen == true) ||
  4562. tType == 1 ||
  4563. tType == 4) &&
  4564. tool.tool.indexOf(69) != -1
  4565. "
  4566. class="worksBox"
  4567. >
  4568. <div
  4569. class="zuoyeYulan"
  4570. v-if="
  4571. worksStudent.length &&
  4572. worksStudent[toolIndex].length > 0
  4573. "
  4574. >
  4575. <div class="worksTop">
  4576. <div>{{ lang.ssHomeworkPreview }}</div>
  4577. <div
  4578. class="corOpen"
  4579. @click="contract(toolIndex)"
  4580. v-if="
  4581. (isCloseList[toolIndex].isCloseBoolean) &&
  4582. isCloseList[toolIndex].isClose == 0
  4583. "
  4584. >
  4585. {{ lang.ssFold }}
  4586. </div>
  4587. <div
  4588. class="corOpen"
  4589. @click="contract(toolIndex)"
  4590. v-if="isCloseList[toolIndex].isClose == 1"
  4591. >
  4592. {{ lang.ssExpand }}
  4593. </div>
  4594. </div>
  4595. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4596. </div>
  4597. <div>
  4598. <div
  4599. :id="'tool-' + toolIndex"
  4600. :style="{
  4601. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4602. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4603. }"
  4604. class="worksDetailBox"
  4605. v-if="
  4606. worksStudent.length &&
  4607. worksStudent[toolIndex].length > 0
  4608. "
  4609. >
  4610. <div
  4611. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4612. :key="wIndex"
  4613. class="isWorksName2"
  4614. style="width: 160px;height: 65px;line-height: 65px;"
  4615. @click="
  4616. openTools(
  4617. 69,
  4618. toolIndex,
  4619. taskCount,
  4620. w.works,
  4621. w.sName,
  4622. w.wid
  4623. )
  4624. "
  4625. >
  4626. {{ w.sName }}
  4627. <img
  4628. class="deleteImg1"
  4629. src="../assets/evaEnglish.png"
  4630. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4631. alt
  4632. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4633. />
  4634. <img
  4635. class="deleteImg deleteImg2"
  4636. src="../assets/deleteworks.png"
  4637. v-if="
  4638. w.userid == userid || tType == 1 || tType == 4
  4639. "
  4640. @click.stop="deleteWorks(w.wid)"
  4641. alt
  4642. />
  4643. </div>
  4644. </div>
  4645. </div>
  4646. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4647. {{ lang.ssNotSubmitted }}
  4648. </div>
  4649. <div
  4650. class="noWorksS"
  4651. v-if="noWorksS && noWorksS[toolIndex].length"
  4652. >
  4653. <div
  4654. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4655. :key="sIndex"
  4656. class="noWorksName"
  4657. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4658. >
  4659. <el-tooltip effect="dark" :content="s.student" placement="top">
  4660. <span>{{ s.student }}</span>
  4661. </el-tooltip>
  4662. </div>
  4663. </div>
  4664. </div>
  4665. <div
  4666. v-if="
  4667. tType &&
  4668. ((tType == 2 && sIsOpen == true) ||
  4669. tType == 1 ||
  4670. tType == 4) &&
  4671. tool.tool.indexOf(15) != -1
  4672. "
  4673. class="worksBox"
  4674. >
  4675. <div
  4676. class="zuoyeYulan"
  4677. v-if="
  4678. (worksStudent.length &&
  4679. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4680. "
  4681. >
  4682. <div class="worksTop">
  4683. <div>{{ lang.ssHomeworkPreview }}</div>
  4684. <div
  4685. class="corOpen"
  4686. @click="contract(toolIndex)"
  4687. v-if="
  4688. (isCloseList[toolIndex].isCloseBoolean) &&
  4689. isCloseList[toolIndex].isClose == 0
  4690. "
  4691. >
  4692. {{ lang.ssFold }}
  4693. </div>
  4694. <div
  4695. class="corOpen"
  4696. @click="contract(toolIndex)"
  4697. v-if="isCloseList[toolIndex].isClose == 1"
  4698. >
  4699. {{ lang.ssExpand }}
  4700. </div>
  4701. </div>
  4702. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4703. </div>
  4704. <div
  4705. class="group_workBox"
  4706. v-for="(g, gindex) in courseGroup.group"
  4707. :key="gindex"
  4708. >
  4709. <div class="group_box">
  4710. <div class="group_title">
  4711. <el-tooltip
  4712. class="item"
  4713. effect="light"
  4714. :content="g.name"
  4715. placement="top"
  4716. >
  4717. <div class="group_name">{{ g.name }}</div>
  4718. </el-tooltip>
  4719. </div>
  4720. <div
  4721. class="group_work"
  4722. v-if="
  4723. g.works &&
  4724. g.works.length &&
  4725. g.works[toolIndex].length
  4726. "
  4727. >
  4728. <div
  4729. class="works"
  4730. v-for="(w, wIndex) in g.works[toolIndex]"
  4731. :key="wIndex"
  4732. >
  4733. <div
  4734. class="workImg"
  4735. style="
  4736. border-radius: 15px;
  4737. box-shadow: 0px 0px 5px 5px #eee;
  4738. "
  4739. >
  4740. <div
  4741. class="answerBg"
  4742. style="border-radius: 15px 15px 0 0"
  4743. @click="
  4744. commentOther(w, toolIndex, wIndex, null, g.id)
  4745. "
  4746. >
  4747. <div class="answerContent">
  4748. {{ JSON.parse(w.works)[0].answer }}
  4749. </div>
  4750. <div
  4751. class="answerScore"
  4752. v-if="w.score"
  4753. @click.stop="openScore(w)"
  4754. :class="{
  4755. rightW:
  4756. w.userid == userid ||
  4757. tType == 1 ||
  4758. tType == 4,
  4759. }"
  4760. >
  4761. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4762. </div>
  4763. <div
  4764. class="answerScore"
  4765. @click.stop="openScore(w)"
  4766. v-else-if="courseDetail.userid == userid"
  4767. :class="{
  4768. rightW:
  4769. w.userid == userid ||
  4770. tType == 1 ||
  4771. tType == 4,
  4772. }"
  4773. >
  4774. {{ lang.ssMarkScore }}
  4775. </div>
  4776. <img
  4777. class="deleteImg"
  4778. src="../assets/deleteworks.png"
  4779. v-if="
  4780. w.userid == userid ||
  4781. tType == 1 ||
  4782. tType == 4
  4783. "
  4784. @click.stop="deleteWorks(w.wid)"
  4785. alt
  4786. />
  4787. </div>
  4788. <div class="comment">
  4789. <div class="worksName">
  4790. <div>{{ w.sName }}</div>
  4791. </div>
  4792. <div class="commentList">
  4793. <div
  4794. class="commentImg"
  4795. @click="
  4796. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4797. "
  4798. >
  4799. <img
  4800. :src="w.isLikes == true ? likes : noLikes"
  4801. alt=""
  4802. />
  4803. </div>
  4804. <div>{{ w.likesCount }}</div>
  4805. </div>
  4806. <div
  4807. class="commentList"
  4808. style="margin-right: 15px"
  4809. >
  4810. <div
  4811. class="commentImg"
  4812. @click="
  4813. commentOther(
  4814. w,
  4815. toolIndex,
  4816. wIndex,
  4817. null,
  4818. g.id
  4819. )
  4820. "
  4821. >
  4822. <img
  4823. src="../assets/icon/comment/comment.png"
  4824. alt=""
  4825. />
  4826. </div>
  4827. <div>{{ w.commentCount }}</div>
  4828. </div>
  4829. </div>
  4830. </div>
  4831. </div>
  4832. </div>
  4833. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  4834. </div>
  4835. </div>
  4836. <div
  4837. :id="'tool-' + toolIndex"
  4838. :style="{
  4839. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4840. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4841. }"
  4842. class="worksDetailBox"
  4843. v-if="
  4844. worksStudent.length &&
  4845. worksStudent[toolIndex].length > 0
  4846. "
  4847. >
  4848. <div
  4849. class="works"
  4850. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4851. :key="wIndex"
  4852. >
  4853. <div
  4854. class="workImg"
  4855. style="
  4856. border-radius: 15px;
  4857. box-shadow: 0px 0px 5px 5px #eee;
  4858. "
  4859. >
  4860. <!-- <img
  4861. src="../assets/icon/works/noImg.png"
  4862. @click="openTools(15, toolIndex, taskCount, w.works)"
  4863. alt=""
  4864. />-->
  4865. <div
  4866. class="answerBg"
  4867. style="border-radius: 15px 15px 0 0"
  4868. @click="commentOther(w, toolIndex, wIndex)"
  4869. >
  4870. <!-- <div>{{ w.sName }}</div> -->
  4871. <div class="answerContent">
  4872. {{ JSON.parse(w.works)[0].answer }}
  4873. </div>
  4874. <div
  4875. class="answerScore"
  4876. v-if="w.score"
  4877. @click.stop="openScore(w)"
  4878. :class="{
  4879. rightW:
  4880. w.userid == userid ||
  4881. tType == 1 ||
  4882. tType == 4,
  4883. }"
  4884. >
  4885. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4886. </div>
  4887. <div
  4888. class="answerScore"
  4889. @click.stop="openScore(w)"
  4890. v-else-if="courseDetail.userid == userid"
  4891. :class="{
  4892. rightW:
  4893. w.userid == userid ||
  4894. tType == 1 ||
  4895. tType == 4,
  4896. }"
  4897. >
  4898. {{ lang.ssMarkScore }}
  4899. </div>
  4900. <img
  4901. class="deleteImg"
  4902. src="../assets/deleteworks.png"
  4903. v-if="
  4904. w.userid == userid || tType == 1 || tType == 4
  4905. "
  4906. @click.stop="deleteWorks(w.wid)"
  4907. alt
  4908. />
  4909. </div>
  4910. <div class="comment">
  4911. <div class="worksName">
  4912. <div>{{ w.sName }}</div>
  4913. </div>
  4914. <div class="commentList">
  4915. <div
  4916. class="commentImg"
  4917. @click="
  4918. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4919. "
  4920. >
  4921. <img
  4922. :src="w.isLikes == true ? likes : noLikes"
  4923. alt=""
  4924. />
  4925. </div>
  4926. <div>{{ w.likesCount }}</div>
  4927. </div>
  4928. <div class="commentList" style="margin-right: 15px">
  4929. <div
  4930. class="commentImg"
  4931. @click="commentOther(w, toolIndex, wIndex)"
  4932. >
  4933. <img
  4934. src="../assets/icon/comment/comment.png"
  4935. alt=""
  4936. />
  4937. </div>
  4938. <div>{{ w.commentCount }}</div>
  4939. </div>
  4940. </div>
  4941. </div>
  4942. </div>
  4943. </div>
  4944. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4945. {{ lang.ssNotSubmitted }}
  4946. </div>
  4947. <div
  4948. class="noWorksS"
  4949. v-if="noWorksS && noWorksS[toolIndex].length"
  4950. >
  4951. <div
  4952. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4953. :key="sIndex"
  4954. class="noWorksName"
  4955. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4956. >
  4957. <el-tooltip effect="dark" :content="s.student" placement="top">
  4958. <span>{{ s.student }}</span>
  4959. </el-tooltip>
  4960. </div>
  4961. </div>
  4962. </div>
  4963. <div
  4964. v-if="
  4965. tType &&
  4966. ((tType == 2 && sIsOpen == true) ||
  4967. tType == 1 ||
  4968. tType == 4) &&
  4969. tool.tool.indexOf(1) != -1
  4970. "
  4971. class="worksBox"
  4972. >
  4973. <div
  4974. class="zuoyeYulan"
  4975. v-if="
  4976. (worksStudent.length &&
  4977. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4978. "
  4979. >
  4980. <div class="worksTop">
  4981. <div>{{ lang.ssHomeworkPreview }}</div>
  4982. <div
  4983. class="corOpen"
  4984. @click="contract(toolIndex)"
  4985. v-if="
  4986. (isCloseList[toolIndex].isCloseBoolean) &&
  4987. isCloseList[toolIndex].isClose == 0
  4988. "
  4989. >
  4990. {{ lang.ssFold }}
  4991. </div>
  4992. <div
  4993. class="corOpen"
  4994. @click="contract(toolIndex)"
  4995. v-if="isCloseList[toolIndex].isClose == 1"
  4996. >
  4997. {{ lang.ssExpand }}
  4998. </div>
  4999. </div>
  5000. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5001. </div>
  5002. <div
  5003. class="group_workBox"
  5004. v-for="(g, gindex) in courseGroup.group"
  5005. :key="gindex"
  5006. >
  5007. <div class="group_box">
  5008. <div class="group_title">
  5009. <el-tooltip
  5010. class="item"
  5011. effect="light"
  5012. :content="g.name"
  5013. placement="top"
  5014. >
  5015. <div class="group_name">{{ g.name }}</div>
  5016. </el-tooltip>
  5017. </div>
  5018. <div
  5019. class="group_work"
  5020. v-if="
  5021. g.works &&
  5022. g.works.length &&
  5023. g.works[toolIndex].length
  5024. "
  5025. >
  5026. <div
  5027. class="works"
  5028. style="
  5029. width: 200px;
  5030. height: 140px;
  5031. margin: 10px 10px 10px 0;
  5032. border-radius: 15px;
  5033. box-shadow: 0 0 6px 1px #dfdada;
  5034. "
  5035. v-for="(w, wIndex) in g.works[toolIndex]"
  5036. :key="wIndex"
  5037. :class="w.type == 1 ? 'isTypeOne' : ''"
  5038. >
  5039. <div class="workImg">
  5040. <img
  5041. :src="w.works"
  5042. @click="previewImg(w.works,w)"
  5043. alt
  5044. />
  5045. <div
  5046. class="answerScore"
  5047. v-if="w.score"
  5048. @click.stop="openScore(w)"
  5049. :class="{
  5050. rightW:
  5051. w.userid == userid ||
  5052. tType == 1 ||
  5053. tType == 4,
  5054. }"
  5055. >
  5056. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5057. </div>
  5058. <div
  5059. class="answerScore"
  5060. @click.stop="openScore(w)"
  5061. v-else-if="courseDetail.userid == userid"
  5062. :class="{
  5063. rightW:
  5064. w.userid == userid ||
  5065. tType == 1 ||
  5066. tType == 4,
  5067. }"
  5068. >
  5069. {{ lang.ssMarkScore }}
  5070. </div>
  5071. <img
  5072. class="deleteImg"
  5073. src="../assets/deleteworks.png"
  5074. v-if="
  5075. w.userid == userid || tType == 1 || tType == 4
  5076. "
  5077. @click.stop="deleteWorks(w.wid)"
  5078. alt
  5079. />
  5080. </div>
  5081. <div class="comment" style="min-width: 200px">
  5082. <div class="worksName">
  5083. <div>{{ w.sName }}</div>
  5084. </div>
  5085. <div class="commentList">
  5086. <div class="commentList">
  5087. <div
  5088. class="commentImg"
  5089. @click="
  5090. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5091. "
  5092. >
  5093. <img
  5094. :src="w.isLikes == true ? likes : noLikes"
  5095. alt=""
  5096. />
  5097. </div>
  5098. <div>{{ w.likesCount }}</div>
  5099. </div>
  5100. <div
  5101. class="commentList"
  5102. style="margin-right: 15px"
  5103. >
  5104. <div
  5105. class="commentImg"
  5106. @click="
  5107. commentOther(
  5108. w,
  5109. toolIndex,
  5110. wIndex,
  5111. null,
  5112. g.id
  5113. )
  5114. "
  5115. >
  5116. <img
  5117. src="../assets/icon/comment/comment.png"
  5118. alt=""
  5119. />
  5120. </div>
  5121. <div>{{ w.commentCount }}</div>
  5122. </div>
  5123. </div>
  5124. </div>
  5125. </div>
  5126. </div>
  5127. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  5128. </div>
  5129. </div>
  5130. <div
  5131. :id="'tool-' + toolIndex"
  5132. :style="{
  5133. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5134. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5135. }"
  5136. class="worksDetailBox"
  5137. v-if="
  5138. worksStudent.length &&
  5139. worksStudent[toolIndex].length > 0
  5140. "
  5141. >
  5142. <div
  5143. class="works"
  5144. style="
  5145. width: 200px;
  5146. height: 140px;
  5147. margin: 10px 10px 10px 0;
  5148. border-radius: 15px;
  5149. box-shadow: 0 0 6px 1px #dfdada;
  5150. "
  5151. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5152. :key="wIndex"
  5153. >
  5154. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5155. <div class="workImg">
  5156. <img
  5157. :src="w.works"
  5158. @click="previewImg(w.works,w)"
  5159. alt
  5160. />
  5161. <div
  5162. class="answerScore"
  5163. v-if="w.score"
  5164. @click.stop="openScore(w)"
  5165. :class="{
  5166. rightW:
  5167. w.userid == userid || tType == 1 || tType == 4,
  5168. }"
  5169. >
  5170. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5171. </div>
  5172. <div
  5173. class="answerScore"
  5174. @click.stop="openScore(w)"
  5175. v-else-if="courseDetail.userid == userid"
  5176. :class="{
  5177. rightW:
  5178. w.userid == userid || tType == 1 || tType == 4,
  5179. }"
  5180. >
  5181. {{ lang.ssMarkScore }}
  5182. </div>
  5183. <img
  5184. class="deleteImg"
  5185. src="../assets/deleteworks.png"
  5186. v-if="
  5187. w.userid == userid || tType == 1 || tType == 4
  5188. "
  5189. @click.stop="deleteWorks(w.wid)"
  5190. alt
  5191. />
  5192. </div>
  5193. <div class="comment" style="min-width: 200px">
  5194. <div class="worksName">
  5195. <div>{{ w.sName }}</div>
  5196. </div>
  5197. <div class="commentList">
  5198. <div class="commentList">
  5199. <div
  5200. class="commentImg"
  5201. @click="
  5202. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5203. "
  5204. >
  5205. <img
  5206. :src="w.isLikes == true ? likes : noLikes"
  5207. alt=""
  5208. />
  5209. </div>
  5210. <div>{{ w.likesCount }}</div>
  5211. </div>
  5212. <div class="commentList" style="margin-right: 15px">
  5213. <div
  5214. class="commentImg"
  5215. @click="commentOther(w, toolIndex, wIndex)"
  5216. >
  5217. <img
  5218. src="../assets/icon/comment/comment.png"
  5219. alt=""
  5220. />
  5221. </div>
  5222. <div>{{ w.commentCount }}</div>
  5223. </div>
  5224. </div>
  5225. </div>
  5226. </div>
  5227. </div>
  5228. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5229. {{ lang.ssNotSubmitted }}
  5230. </div>
  5231. <div
  5232. class="noWorksS"
  5233. v-if="noWorksS && noWorksS[toolIndex].length"
  5234. >
  5235. <div
  5236. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5237. :key="sIndex"
  5238. class="noWorksName"
  5239. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5240. >
  5241. <el-tooltip effect="dark" :content="s.student" placement="top">
  5242. <span>{{ s.student }}</span>
  5243. </el-tooltip>
  5244. </div>
  5245. </div>
  5246. </div>
  5247. <div
  5248. v-if="
  5249. tType &&
  5250. ((tType == 2 && sIsOpen == true) ||
  5251. tType == 1 ||
  5252. tType == 4) &&
  5253. tool.tool.indexOf(3) != -1
  5254. "
  5255. class="worksBox"
  5256. >
  5257. <div
  5258. class="zuoyeYulan"
  5259. v-if="
  5260. (worksStudent.length &&
  5261. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5262. "
  5263. >
  5264. <div class="worksTop">
  5265. <div>{{ lang.ssHomeworkPreview }}</div>
  5266. <div
  5267. class="corOpen"
  5268. @click="contract(toolIndex)"
  5269. v-if="
  5270. (isCloseList[toolIndex].isCloseBoolean) &&
  5271. isCloseList[toolIndex].isClose == 0
  5272. "
  5273. >
  5274. {{ lang.ssFold }}
  5275. </div>
  5276. <div
  5277. class="corOpen"
  5278. @click="contract(toolIndex)"
  5279. v-if="isCloseList[toolIndex].isClose == 1"
  5280. >
  5281. {{ lang.ssExpand }}
  5282. </div>
  5283. </div>
  5284. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5285. </div>
  5286. <div
  5287. class="group_workBox"
  5288. v-for="(g, gindex) in courseGroup.group"
  5289. :key="gindex"
  5290. >
  5291. <div class="group_box">
  5292. <div class="group_title">
  5293. <el-tooltip
  5294. class="item"
  5295. effect="light"
  5296. :content="g.name"
  5297. placement="top"
  5298. >
  5299. <div class="group_name">{{ g.name }}</div>
  5300. </el-tooltip>
  5301. </div>
  5302. <div
  5303. class="group_work"
  5304. v-if="
  5305. g.works &&
  5306. g.works.length &&
  5307. g.works[toolIndex].length
  5308. "
  5309. >
  5310. <div
  5311. class="works"
  5312. style="
  5313. width: 200px;
  5314. height: 140px;
  5315. margin: 10px 10px 10px 0;
  5316. border-radius: 15px;
  5317. box-shadow: 0 0 6px 1px #dfdada;
  5318. "
  5319. v-for="(w, wIndex) in g.works[toolIndex]"
  5320. :key="wIndex"
  5321. :class="w.type == 1 ? 'isTypeOne' : ''"
  5322. >
  5323. <div class="workImg">
  5324. <img
  5325. :src="w.works"
  5326. @click="previewImg(w.works,w)"
  5327. alt
  5328. />
  5329. <div
  5330. class="answerScore"
  5331. v-if="w.score"
  5332. @click.stop="openScore(w)"
  5333. :class="{
  5334. rightW:
  5335. w.userid == userid ||
  5336. tType == 1 ||
  5337. tType == 4,
  5338. }"
  5339. >
  5340. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5341. </div>
  5342. <div
  5343. class="answerScore"
  5344. @click.stop="openScore(w)"
  5345. v-else-if="courseDetail.userid == userid"
  5346. :class="{
  5347. rightW:
  5348. w.userid == userid ||
  5349. tType == 1 ||
  5350. tType == 4,
  5351. }"
  5352. >
  5353. {{ lang.ssMarkScore }}
  5354. </div>
  5355. <img
  5356. class="deleteImg"
  5357. src="../assets/deleteworks.png"
  5358. v-if="
  5359. w.userid == userid || tType == 1 || tType == 4
  5360. "
  5361. @click.stop="deleteWorks(w.wid)"
  5362. alt
  5363. />
  5364. </div>
  5365. <div class="comment" style="min-width: 200px">
  5366. <div class="worksName">
  5367. <div>{{ w.sName }}</div>
  5368. </div>
  5369. <div class="commentList">
  5370. <div class="commentList">
  5371. <div
  5372. class="commentImg"
  5373. @click="
  5374. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5375. "
  5376. >
  5377. <img
  5378. :src="w.isLikes == true ? likes : noLikes"
  5379. alt=""
  5380. />
  5381. </div>
  5382. <div>{{ w.likesCount }}</div>
  5383. </div>
  5384. <div
  5385. class="commentList"
  5386. style="margin-right: 15px"
  5387. >
  5388. <div
  5389. class="commentImg"
  5390. @click="
  5391. commentOther(
  5392. w,
  5393. toolIndex,
  5394. wIndex,
  5395. null,
  5396. g.id
  5397. )
  5398. "
  5399. >
  5400. <img
  5401. src="../assets/icon/comment/comment.png"
  5402. alt=""
  5403. />
  5404. </div>
  5405. <div>{{ w.commentCount }}</div>
  5406. </div>
  5407. </div>
  5408. </div>
  5409. </div>
  5410. </div>
  5411. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  5412. </div>
  5413. </div>
  5414. <div
  5415. :id="'tool-' + toolIndex"
  5416. :style="{
  5417. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5418. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5419. }"
  5420. class="worksDetailBox"
  5421. v-if="
  5422. worksStudent.length &&
  5423. worksStudent[toolIndex].length > 0
  5424. "
  5425. >
  5426. <div
  5427. class="works"
  5428. style="
  5429. width: 200px;
  5430. height: 140px;
  5431. margin: 10px 10px 10px 0;
  5432. border-radius: 15px;
  5433. box-shadow: 0 0 6px 1px #dfdada;
  5434. "
  5435. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5436. :key="wIndex"
  5437. >
  5438. <!-- @click="previewImg(w.works)" -->
  5439. <div class="workImg">
  5440. <img
  5441. :src="w.works"
  5442. @click="previewImg(w.works,w)"
  5443. alt
  5444. />
  5445. <div
  5446. class="answerScore"
  5447. v-if="w.score"
  5448. @click.stop="openScore(w)"
  5449. :class="{
  5450. rightW:
  5451. w.userid == userid || tType == 1 || tType == 4,
  5452. }"
  5453. >
  5454. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5455. </div>
  5456. <div
  5457. class="answerScore"
  5458. @click.stop="openScore(w)"
  5459. v-else-if="courseDetail.userid == userid"
  5460. :class="{
  5461. rightW:
  5462. w.userid == userid || tType == 1 || tType == 4,
  5463. }"
  5464. >
  5465. {{ lang.ssMarkScore }}
  5466. </div>
  5467. <img
  5468. class="deleteImg"
  5469. src="../assets/deleteworks.png"
  5470. v-if="
  5471. w.userid == userid || tType == 1 || tType == 4
  5472. "
  5473. @click.stop="deleteWorks(w.wid)"
  5474. alt
  5475. />
  5476. </div>
  5477. <div class="comment" style="min-width: 200px">
  5478. <div class="worksName">
  5479. <div>{{ w.sName }}</div>
  5480. </div>
  5481. <div class="commentList">
  5482. <div class="commentList">
  5483. <div
  5484. class="commentImg"
  5485. @click="
  5486. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5487. "
  5488. >
  5489. <img
  5490. :src="w.isLikes == true ? likes : noLikes"
  5491. alt=""
  5492. />
  5493. </div>
  5494. <div>{{ w.likesCount }}</div>
  5495. </div>
  5496. <div class="commentList" style="margin-right: 15px">
  5497. <div
  5498. class="commentImg"
  5499. @click="commentOther(w, toolIndex, wIndex)"
  5500. >
  5501. <img
  5502. src="../assets/icon/comment/comment.png"
  5503. alt=""
  5504. />
  5505. </div>
  5506. <div>{{ w.commentCount }}</div>
  5507. </div>
  5508. </div>
  5509. </div>
  5510. </div>
  5511. </div>
  5512. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5513. {{ lang.ssNotSubmitted }}
  5514. </div>
  5515. <div
  5516. class="noWorksS"
  5517. v-if="noWorksS && noWorksS[toolIndex].length"
  5518. >
  5519. <div
  5520. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5521. :key="sIndex"
  5522. class="noWorksName"
  5523. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5524. >
  5525. <el-tooltip effect="dark" :content="s.student" placement="top">
  5526. <span>{{ s.student }}</span>
  5527. </el-tooltip>
  5528. </div>
  5529. </div>
  5530. </div>
  5531. <div
  5532. v-if="
  5533. tType &&
  5534. ((tType == 2 && sIsOpen == true) ||
  5535. tType == 1 ||
  5536. tType == 4) &&
  5537. tool.tool.indexOf(6) != -1
  5538. "
  5539. class="worksBox"
  5540. >
  5541. <div
  5542. class="zuoyeYulan"
  5543. v-if="
  5544. (worksStudent.length &&
  5545. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5546. "
  5547. >
  5548. <div class="worksTop">
  5549. <div>{{ lang.ssHomeworkPreview }}</div>
  5550. <div
  5551. class="corOpen"
  5552. @click="contract(toolIndex)"
  5553. v-if="
  5554. (isCloseList[toolIndex].isCloseBoolean) &&
  5555. isCloseList[toolIndex].isClose == 0
  5556. "
  5557. >
  5558. {{ lang.ssFold }}
  5559. </div>
  5560. <div
  5561. class="corOpen"
  5562. @click="contract(toolIndex)"
  5563. v-if="isCloseList[toolIndex].isClose == 1"
  5564. >
  5565. {{ lang.ssExpand }}
  5566. </div>
  5567. </div>
  5568. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5569. </div>
  5570. <div
  5571. class="group_workBox"
  5572. v-for="(g, gindex) in courseGroup.group"
  5573. :key="gindex"
  5574. >
  5575. <div class="group_box">
  5576. <div class="group_title">
  5577. <el-tooltip
  5578. class="item"
  5579. effect="light"
  5580. :content="g.name"
  5581. placement="top"
  5582. >
  5583. <div class="group_name">{{ g.name }}</div>
  5584. </el-tooltip>
  5585. </div>
  5586. <div
  5587. class="group_work"
  5588. v-if="
  5589. g.works &&
  5590. g.works.length &&
  5591. g.works[toolIndex].length
  5592. "
  5593. >
  5594. <div
  5595. class="works"
  5596. style="
  5597. width: 200px;
  5598. height: 140px;
  5599. margin: 10px 10px 10px 0;
  5600. border-radius: 15px;
  5601. box-shadow: 0 0 6px 1px #dfdada;
  5602. "
  5603. v-for="(w, wIndex) in g.works[toolIndex]"
  5604. :key="wIndex"
  5605. :class="w.type == 1 ? 'isTypeOne' : ''"
  5606. >
  5607. <div class="workImg">
  5608. <img
  5609. :src="w.works"
  5610. @click="previewImg(w.works,w)"
  5611. alt
  5612. />
  5613. <div
  5614. class="answerScore"
  5615. v-if="w.score"
  5616. @click.stop="openScore(w)"
  5617. :class="{
  5618. rightW:
  5619. w.userid == userid ||
  5620. tType == 1 ||
  5621. tType == 4,
  5622. }"
  5623. >
  5624. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5625. </div>
  5626. <div
  5627. class="answerScore"
  5628. @click.stop="openScore(w)"
  5629. v-else-if="courseDetail.userid == userid"
  5630. :class="{
  5631. rightW:
  5632. w.userid == userid ||
  5633. tType == 1 ||
  5634. tType == 4,
  5635. }"
  5636. >
  5637. {{ lang.ssMarkScore }}
  5638. </div>
  5639. <img
  5640. class="deleteImg"
  5641. src="../assets/deleteworks.png"
  5642. v-if="
  5643. w.userid == userid || tType == 1 || tType == 4
  5644. "
  5645. @click.stop="deleteWorks(w.wid)"
  5646. alt
  5647. />
  5648. </div>
  5649. <div class="comment" style="min-width: 200px">
  5650. <div class="worksName">
  5651. <div>{{ w.sName }}</div>
  5652. </div>
  5653. <div class="commentList">
  5654. <div class="commentList">
  5655. <div
  5656. class="commentImg"
  5657. @click="
  5658. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5659. "
  5660. >
  5661. <img
  5662. :src="w.isLikes == true ? likes : noLikes"
  5663. alt=""
  5664. />
  5665. </div>
  5666. <div>{{ w.likesCount }}</div>
  5667. </div>
  5668. <div
  5669. class="commentList"
  5670. style="margin-right: 15px"
  5671. >
  5672. <div
  5673. class="commentImg"
  5674. @click="
  5675. commentOther(
  5676. w,
  5677. toolIndex,
  5678. wIndex,
  5679. null,
  5680. g.id
  5681. )
  5682. "
  5683. >
  5684. <img
  5685. src="../assets/icon/comment/comment.png"
  5686. alt=""
  5687. />
  5688. </div>
  5689. <div>{{ w.commentCount }}</div>
  5690. </div>
  5691. </div>
  5692. </div>
  5693. </div>
  5694. </div>
  5695. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  5696. </div>
  5697. </div>
  5698. <div
  5699. :id="'tool-' + toolIndex"
  5700. :style="{
  5701. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5702. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5703. }"
  5704. class="worksDetailBox"
  5705. v-if="
  5706. worksStudent.length &&
  5707. worksStudent[toolIndex].length > 0
  5708. "
  5709. >
  5710. <div
  5711. class="works"
  5712. style="
  5713. width: 200px;
  5714. height: 140px;
  5715. margin: 10px 10px 10px 0;
  5716. border-radius: 15px;
  5717. box-shadow: 0 0 6px 1px #dfdada;
  5718. "
  5719. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5720. :key="wIndex"
  5721. >
  5722. <!-- @click="previewImg(w.works)" -->
  5723. <div class="workImg">
  5724. <img
  5725. :src="w.works"
  5726. @click="previewImg(w.works,w)"
  5727. alt
  5728. />
  5729. <div
  5730. class="answerScore"
  5731. v-if="w.score"
  5732. @click.stop="openScore(w)"
  5733. :class="{
  5734. rightW:
  5735. w.userid == userid || tType == 1 || tType == 4,
  5736. }"
  5737. >
  5738. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5739. </div>
  5740. <div
  5741. class="answerScore"
  5742. @click.stop="openScore(w)"
  5743. v-else-if="courseDetail.userid == userid"
  5744. :class="{
  5745. rightW:
  5746. w.userid == userid || tType == 1 || tType == 4,
  5747. }"
  5748. >
  5749. {{ lang.ssMarkScore }}
  5750. </div>
  5751. <img
  5752. class="deleteImg"
  5753. src="../assets/deleteworks.png"
  5754. v-if="
  5755. w.userid == userid || tType == 1 || tType == 4
  5756. "
  5757. @click.stop="deleteWorks(w.wid)"
  5758. alt
  5759. />
  5760. </div>
  5761. <div class="comment" style="min-width: 200px">
  5762. <div class="worksName">
  5763. <div>{{ w.sName }}</div>
  5764. </div>
  5765. <div class="commentList">
  5766. <div class="commentList">
  5767. <div
  5768. class="commentImg"
  5769. @click="
  5770. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5771. "
  5772. >
  5773. <img
  5774. :src="w.isLikes == true ? likes : noLikes"
  5775. alt=""
  5776. />
  5777. </div>
  5778. <div>{{ w.likesCount }}</div>
  5779. </div>
  5780. <div class="commentList" style="margin-right: 15px">
  5781. <div
  5782. class="commentImg"
  5783. @click="commentOther(w, toolIndex, wIndex)"
  5784. >
  5785. <img
  5786. src="../assets/icon/comment/comment.png"
  5787. alt=""
  5788. />
  5789. </div>
  5790. <div>{{ w.commentCount }}</div>
  5791. </div>
  5792. </div>
  5793. </div>
  5794. </div>
  5795. </div>
  5796. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5797. {{ lang.ssNotSubmitted }}
  5798. </div>
  5799. <div
  5800. class="noWorksS"
  5801. v-if="noWorksS && noWorksS[toolIndex].length"
  5802. >
  5803. <div
  5804. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5805. :key="sIndex"
  5806. class="noWorksName"
  5807. >
  5808. <el-tooltip effect="dark" :content="s.student" placement="top">
  5809. <span>{{ s.student }}</span>
  5810. </el-tooltip>
  5811. </div>
  5812. </div>
  5813. </div>
  5814. <div
  5815. v-if="
  5816. tType &&
  5817. ((tType == 2 && sIsOpen == true) ||
  5818. tType == 1 ||
  5819. tType == 4) &&
  5820. tool.tool.indexOf(7) != -1
  5821. "
  5822. class="worksBox"
  5823. >
  5824. <div
  5825. class="zuoyeYulan"
  5826. v-if="
  5827. (worksStudent.length &&
  5828. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5829. "
  5830. >
  5831. <div class="worksTop">
  5832. <div>{{ lang.ssHomeworkPreview }}</div>
  5833. <div
  5834. class="corOpen"
  5835. @click="contract(toolIndex)"
  5836. v-if="
  5837. (isCloseList[toolIndex].isCloseBoolean) &&
  5838. isCloseList[toolIndex].isClose == 0
  5839. "
  5840. >
  5841. {{ lang.ssFold }}
  5842. </div>
  5843. <div
  5844. class="corOpen"
  5845. @click="contract(toolIndex)"
  5846. v-if="isCloseList[toolIndex].isClose == 1"
  5847. >
  5848. {{ lang.ssExpand }}
  5849. </div>
  5850. </div>
  5851. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5852. </div>
  5853. <div
  5854. class="group_workBox"
  5855. v-for="(g, gindex) in courseGroup.group"
  5856. :key="gindex"
  5857. >
  5858. <div class="group_box">
  5859. <div class="group_title">
  5860. <el-tooltip
  5861. class="item"
  5862. effect="light"
  5863. :content="g.name"
  5864. placement="top"
  5865. >
  5866. <div class="group_name">{{ g.name }}</div>
  5867. </el-tooltip>
  5868. </div>
  5869. <div
  5870. class="group_work"
  5871. v-if="
  5872. g.works &&
  5873. g.works.length &&
  5874. g.works[toolIndex].length
  5875. "
  5876. >
  5877. <div
  5878. class="works"
  5879. style="
  5880. width: 200px;
  5881. height: 140px;
  5882. margin: 10px 10px 10px 0;
  5883. border-radius: 15px;
  5884. box-shadow: 0 0 6px 1px #dfdada;
  5885. "
  5886. v-for="(w, wIndex) in g.works[toolIndex]"
  5887. :key="wIndex"
  5888. :class="w.type == 1 ? 'isTypeOne' : ''"
  5889. >
  5890. <div class="workImg">
  5891. <img
  5892. :src="w.works"
  5893. @click="previewImg(w.works,w)"
  5894. alt
  5895. />
  5896. <div
  5897. class="answerScore"
  5898. v-if="w.score"
  5899. @click.stop="openScore(w)"
  5900. :class="{
  5901. rightW:
  5902. w.userid == userid ||
  5903. tType == 1 ||
  5904. tType == 4,
  5905. }"
  5906. >
  5907. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5908. </div>
  5909. <div
  5910. class="answerScore"
  5911. @click.stop="openScore(w)"
  5912. v-else-if="courseDetail.userid == userid"
  5913. :class="{
  5914. rightW:
  5915. w.userid == userid ||
  5916. tType == 1 ||
  5917. tType == 4,
  5918. }"
  5919. >
  5920. {{ lang.ssMarkScore }}
  5921. </div>
  5922. <img
  5923. class="deleteImg"
  5924. src="../assets/deleteworks.png"
  5925. v-if="
  5926. w.userid == userid || tType == 1 || tType == 4
  5927. "
  5928. @click.stop="deleteWorks(w.wid)"
  5929. alt
  5930. />
  5931. </div>
  5932. <div class="comment" style="min-width: 200px">
  5933. <div class="worksName">
  5934. <div>{{ w.sName }}</div>
  5935. </div>
  5936. <div class="commentList">
  5937. <div class="commentList">
  5938. <div
  5939. class="commentImg"
  5940. @click="
  5941. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5942. "
  5943. >
  5944. <img
  5945. :src="w.isLikes == true ? likes : noLikes"
  5946. alt=""
  5947. />
  5948. </div>
  5949. <div>{{ w.likesCount }}</div>
  5950. </div>
  5951. <div
  5952. class="commentList"
  5953. style="margin-right: 15px"
  5954. >
  5955. <div
  5956. class="commentImg"
  5957. @click="
  5958. commentOther(
  5959. w,
  5960. toolIndex,
  5961. wIndex,
  5962. null,
  5963. g.id
  5964. )
  5965. "
  5966. >
  5967. <img
  5968. src="../assets/icon/comment/comment.png"
  5969. alt=""
  5970. />
  5971. </div>
  5972. <div>{{ w.commentCount }}</div>
  5973. </div>
  5974. </div>
  5975. </div>
  5976. </div>
  5977. </div>
  5978. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  5979. </div>
  5980. </div>
  5981. <div
  5982. :id="'tool-' + toolIndex"
  5983. :style="{
  5984. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5985. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5986. }"
  5987. class="worksDetailBox"
  5988. v-if="
  5989. worksStudent.length &&
  5990. worksStudent[toolIndex].length > 0
  5991. "
  5992. >
  5993. <div
  5994. class="works"
  5995. style="
  5996. width: 200px;
  5997. height: 140px;
  5998. margin: 10px 10px 10px 0;
  5999. border-radius: 15px;
  6000. box-shadow: 0 0 6px 1px #dfdada;
  6001. "
  6002. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6003. :key="wIndex"
  6004. >
  6005. <!-- @click="previewImg(w.works)" -->
  6006. <div class="workImg">
  6007. <img
  6008. :src="w.works"
  6009. @click="previewImg(w.works,w)"
  6010. alt
  6011. />
  6012. <div
  6013. class="answerScore"
  6014. v-if="w.score"
  6015. @click.stop="openScore(w)"
  6016. :class="{
  6017. rightW:
  6018. w.userid == userid || tType == 1 || tType == 4,
  6019. }"
  6020. >
  6021. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  6022. </div>
  6023. <div
  6024. class="answerScore"
  6025. @click.stop="openScore(w)"
  6026. v-else-if="courseDetail.userid == userid"
  6027. :class="{
  6028. rightW:
  6029. w.userid == userid || tType == 1 || tType == 4,
  6030. }"
  6031. >
  6032. {{ lang.ssMarkScore }}
  6033. </div>
  6034. <img
  6035. class="deleteImg"
  6036. src="../assets/deleteworks.png"
  6037. v-if="
  6038. w.userid == userid || tType == 1 || tType == 4
  6039. "
  6040. @click.stop="deleteWorks(w.wid)"
  6041. alt
  6042. />
  6043. </div>
  6044. <div class="comment" style="min-width: 200px">
  6045. <div class="worksName">
  6046. <div>{{ w.sName }}</div>
  6047. </div>
  6048. <div class="commentList">
  6049. <div class="commentList">
  6050. <div
  6051. class="commentImg"
  6052. @click="
  6053. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6054. "
  6055. >
  6056. <img
  6057. :src="w.isLikes == true ? likes : noLikes"
  6058. alt=""
  6059. />
  6060. </div>
  6061. <div>{{ w.likesCount }}</div>
  6062. </div>
  6063. <div class="commentList" style="margin-right: 15px">
  6064. <div
  6065. class="commentImg"
  6066. @click="commentOther(w, toolIndex, wIndex)"
  6067. >
  6068. <img
  6069. src="../assets/icon/comment/comment.png"
  6070. alt=""
  6071. />
  6072. </div>
  6073. <div>{{ w.commentCount }}</div>
  6074. </div>
  6075. </div>
  6076. </div>
  6077. </div>
  6078. </div>
  6079. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6080. {{ lang.ssNotSubmitted }}
  6081. </div>
  6082. <div
  6083. class="noWorksS"
  6084. v-if="noWorksS && noWorksS[toolIndex].length"
  6085. >
  6086. <div
  6087. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6088. :key="sIndex"
  6089. class="noWorksName"
  6090. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6091. >
  6092. <el-tooltip effect="dark" :content="s.student" placement="top">
  6093. <span>{{ s.student }}</span>
  6094. </el-tooltip>
  6095. </div>
  6096. </div>
  6097. </div>
  6098. <div
  6099. v-if="
  6100. tType &&
  6101. ((tType == 2 && sIsOpen == true) ||
  6102. tType == 1 ||
  6103. tType == 4) &&
  6104. tool.tool.indexOf(26) != -1
  6105. "
  6106. class="worksBox"
  6107. >
  6108. <div
  6109. class="zuoyeYulan"
  6110. v-if="
  6111. worksStudent.length &&
  6112. worksStudent[toolIndex].length > 0
  6113. "
  6114. >
  6115. <div class="worksTop">
  6116. <div>{{ lang.ssHomeworkPreview }}</div>
  6117. <div
  6118. class="corOpen"
  6119. @click="contract(toolIndex)"
  6120. v-if="
  6121. (isCloseList[toolIndex].isCloseBoolean) &&
  6122. isCloseList[toolIndex].isClose == 0
  6123. "
  6124. >
  6125. {{ lang.ssFold }}
  6126. </div>
  6127. <div
  6128. class="corOpen"
  6129. @click="contract(toolIndex)"
  6130. v-if="isCloseList[toolIndex].isClose == 1"
  6131. >
  6132. {{ lang.ssExpand }}
  6133. </div>
  6134. </div>
  6135. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6136. </div>
  6137. <div
  6138. :id="'tool-' + toolIndex"
  6139. :style="{
  6140. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6141. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6142. }"
  6143. class="worksDetailBox"
  6144. v-if="
  6145. worksStudent.length &&
  6146. worksStudent[toolIndex].length > 0
  6147. "
  6148. >
  6149. <div
  6150. class="works"
  6151. style="width: 240px; height: 140px; overflow: hidden"
  6152. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6153. :key="wIndex"
  6154. :class="w.type == 1 ? 'isTypeOne' : ''"
  6155. >
  6156. <div class="workImg" v-if="w.type == 0">
  6157. <img
  6158. :src="w.works"
  6159. @click="previewImg(w.works,w)"
  6160. alt
  6161. />
  6162. <img
  6163. class="deleteImg"
  6164. src="../assets/deleteworks.png"
  6165. v-if="
  6166. w.userid == userid || tType == 1 || tType == 4
  6167. "
  6168. @click.stop="deleteWorks(w.wid)"
  6169. alt
  6170. />
  6171. </div>
  6172. <div class="workImg" v-if="w.type == 1">
  6173. <img :src="word" @click="openFile(w.works,w)" alt />
  6174. <img
  6175. class="deleteImg"
  6176. src="../assets/deleteworks.png"
  6177. v-if="
  6178. w.userid == userid || tType == 1 || tType == 4
  6179. "
  6180. @click.stop="deleteWorks(w.wid)"
  6181. alt
  6182. />
  6183. </div>
  6184. <div class="worksName">
  6185. <div>{{ w.sName }}</div>
  6186. </div>
  6187. </div>
  6188. </div>
  6189. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6190. {{ lang.ssNotSubmitted }}
  6191. </div>
  6192. <div
  6193. class="noWorksS"
  6194. v-if="noWorksS && noWorksS[toolIndex].length"
  6195. >
  6196. <div
  6197. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6198. :key="sIndex"
  6199. class="noWorksName"
  6200. >
  6201. <el-tooltip effect="dark" :content="s.student" placement="top">
  6202. <span>{{ s.student }}</span>
  6203. </el-tooltip>
  6204. </div>
  6205. </div>
  6206. </div>
  6207. <div
  6208. v-if="
  6209. tType &&
  6210. ((tType == 2 && sIsOpen == true) ||
  6211. tType == 1 ||
  6212. tType == 4) &&
  6213. tool.tool.indexOf(40) != -1
  6214. "
  6215. class="worksBox"
  6216. >
  6217. <div
  6218. class="zuoyeYulan"
  6219. v-if="
  6220. worksStudent.length &&
  6221. worksStudent[toolIndex].length > 0
  6222. "
  6223. >
  6224. <div class="worksTop">
  6225. <div>{{ lang.ssHomeworkPreview }}</div>
  6226. <div
  6227. class="corOpen"
  6228. @click="contract(toolIndex)"
  6229. v-if="
  6230. (isCloseList[toolIndex].isCloseBoolean) &&
  6231. isCloseList[toolIndex].isClose == 0
  6232. "
  6233. >
  6234. {{ lang.ssFold }}
  6235. </div>
  6236. <div
  6237. class="corOpen"
  6238. @click="contract(toolIndex)"
  6239. v-if="isCloseList[toolIndex].isClose == 1"
  6240. >
  6241. {{ lang.ssExpand }}
  6242. </div>
  6243. </div>
  6244. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6245. </div>
  6246. <div
  6247. :id="'tool-' + toolIndex"
  6248. :style="{
  6249. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6250. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6251. }"
  6252. class="worksDetailBox"
  6253. v-if="
  6254. worksStudent.length &&
  6255. worksStudent[toolIndex].length > 0
  6256. "
  6257. >
  6258. <div
  6259. class="works"
  6260. style="
  6261. width: 200px;
  6262. height: 140px;
  6263. margin: 10px 10px 10px 0;
  6264. border-radius: 15px;
  6265. box-shadow: 0 0 6px 1px #dfdada;
  6266. "
  6267. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6268. :key="wIndex"
  6269. :class="w.type == 1 ? 'isTypeOne' : ''"
  6270. >
  6271. <div class="workImg">
  6272. <img
  6273. src="../assets/icon/works/noImg.png"
  6274. @click="openPj(w.works, toolIndex)"
  6275. alt
  6276. />
  6277. <img
  6278. class="deleteImg"
  6279. src="../assets/deleteworks.png"
  6280. v-if="
  6281. w.userid == userid || tType == 1 || tType == 4
  6282. "
  6283. @click.stop="deleteWorks(w.wid)"
  6284. alt
  6285. />
  6286. </div>
  6287. <div class="comment" style="min-width: 200px">
  6288. <div class="worksName">
  6289. <div>{{ w.sName }}</div>
  6290. </div>
  6291. <div class="commentList">
  6292. <div class="commentList">
  6293. <div
  6294. class="commentImg"
  6295. @click="
  6296. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6297. "
  6298. >
  6299. <img
  6300. :src="w.isLikes == true ? likes : noLikes"
  6301. alt=""
  6302. />
  6303. </div>
  6304. <div>{{ w.likesCount }}</div>
  6305. </div>
  6306. <div class="commentList" style="margin-right: 15px">
  6307. <div
  6308. class="commentImg"
  6309. @click="commentOther(w, toolIndex, wIndex)"
  6310. >
  6311. <img
  6312. src="../assets/icon/comment/comment.png"
  6313. alt=""
  6314. />
  6315. </div>
  6316. <div>{{ w.commentCount }}</div>
  6317. </div>
  6318. </div>
  6319. </div>
  6320. </div>
  6321. </div>
  6322. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6323. {{ lang.ssNotSubmitted }}
  6324. </div>
  6325. <div
  6326. class="noWorksS"
  6327. v-if="noWorksS && noWorksS[toolIndex].length"
  6328. >
  6329. <div
  6330. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6331. :key="sIndex"
  6332. class="noWorksName"
  6333. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6334. >
  6335. <el-tooltip effect="dark" :content="s.student" placement="top">
  6336. <span>{{ s.student }}</span>
  6337. </el-tooltip>
  6338. </div>
  6339. </div>
  6340. </div>
  6341. <div
  6342. v-if="
  6343. tType &&
  6344. tType == 2 &&
  6345. !sIsOpen &&
  6346. tool.tool.indexOf(40) != -1
  6347. "
  6348. class="worksBox"
  6349. >
  6350. <div
  6351. class="zuoyeYulan"
  6352. v-if="workStudent[toolIndex].length > 0"
  6353. >
  6354. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6355. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6356. </div>
  6357. <div
  6358. class="worksDetailBox"
  6359. v-if="workStudent[toolIndex].length > 0"
  6360. >
  6361. <div
  6362. class="works"
  6363. style="
  6364. width: 200px;
  6365. height: 140px;
  6366. margin: 10px 10px 10px 0;
  6367. "
  6368. v-for="(w, wIndex) in workStudent[toolIndex]"
  6369. :key="wIndex"
  6370. >
  6371. <div class="workImg">
  6372. <img
  6373. src="../assets/icon/works/noImg.png"
  6374. @click="openPj(w.works, toolIndex)"
  6375. alt
  6376. />
  6377. <img
  6378. class="deleteImg"
  6379. src="../assets/deleteworks.png"
  6380. v-if="
  6381. w.userid == userid || tType == 1 || tType == 4
  6382. "
  6383. @click.stop="deleteWorks(w.wid)"
  6384. alt
  6385. />
  6386. </div>
  6387. <div class="worksName">
  6388. <div>{{ w.sName }}</div>
  6389. </div>
  6390. </div>
  6391. </div>
  6392. </div>
  6393. <div
  6394. v-if="
  6395. tType &&
  6396. ((tType == 2 && sIsOpen == true) ||
  6397. tType == 1 ||
  6398. tType == 4) &&
  6399. tool.tool.indexOf(41) != -1
  6400. "
  6401. >
  6402. <AnswerData2
  6403. v-if="
  6404. worksStudent.length &&
  6405. worksStudent[toolIndex].length > 0
  6406. "
  6407. :problemJson="tool.selectJson.answer"
  6408. :people="worksStudent[toolIndex]"
  6409. ></AnswerData2>
  6410. </div>
  6411. <div
  6412. v-if="
  6413. tType &&
  6414. ((tType == 2 && sIsOpen == true) ||
  6415. tType == 1 ||
  6416. tType == 4) &&
  6417. tool.tool.indexOf(41) != -1
  6418. "
  6419. class="worksBox"
  6420. >
  6421. <div
  6422. class="zuoyeYulan"
  6423. v-if="
  6424. worksStudent.length &&
  6425. worksStudent[toolIndex].length > 0
  6426. "
  6427. >
  6428. <div class="worksTop">
  6429. <div>{{ lang.ssHomeworkPreview }}</div>
  6430. <div
  6431. class="corOpen"
  6432. @click="contract(toolIndex)"
  6433. v-if="
  6434. (isCloseList[toolIndex].isCloseBoolean) &&
  6435. isCloseList[toolIndex].isClose == 0
  6436. "
  6437. >
  6438. {{ lang.ssFold }}
  6439. </div>
  6440. <div
  6441. class="corOpen"
  6442. @click="contract(toolIndex)"
  6443. v-if="isCloseList[toolIndex].isClose == 1"
  6444. >
  6445. {{ lang.ssExpand }}
  6446. </div>
  6447. </div>
  6448. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6449. </div>
  6450. <div
  6451. :id="'tool-' + toolIndex"
  6452. :style="{
  6453. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6454. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6455. }"
  6456. class="worksDetailBox"
  6457. v-if="
  6458. worksStudent.length &&
  6459. worksStudent[toolIndex].length > 0
  6460. "
  6461. >
  6462. <div
  6463. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6464. :key="wIndex"
  6465. class="isWorksName2"
  6466. @click="openXz(w, toolIndex)"
  6467. >
  6468. {{ w.sName }}
  6469. <img
  6470. class="deleteImg deleteImg2"
  6471. src="../assets/deleteworks.png"
  6472. v-if="w.userid == userid || tType == 1 || tType == 4"
  6473. @click.stop="deleteWorks(w.wid)"
  6474. alt
  6475. />
  6476. </div>
  6477. <!-- <div
  6478. class="works"
  6479. style="
  6480. width: 200px;
  6481. height: 140px;
  6482. margin: 10px 10px 10px 0;
  6483. border-radius: 15px;
  6484. box-shadow: 0 0 6px 1px #dfdada;
  6485. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6486. :class="w.type == 5 ? 'isTypeOne' : ''">
  6487. <div class="workImg">
  6488. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6489. </div>
  6490. <div class="worksName">
  6491. <div>{{ w.sName }}</div>
  6492. </div>
  6493. </div> -->
  6494. </div>
  6495. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6496. {{ lang.ssNotSubmitted }}
  6497. </div>
  6498. <div
  6499. class="noWorksS"
  6500. v-if="noWorksS && noWorksS[toolIndex].length"
  6501. >
  6502. <div
  6503. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6504. :key="sIndex"
  6505. class="noWorksName"
  6506. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6507. >
  6508. <el-tooltip effect="dark" :content="s.student" placement="top">
  6509. <span>{{ s.student }}</span>
  6510. </el-tooltip>
  6511. </div>
  6512. </div>
  6513. </div>
  6514. <div
  6515. v-if="
  6516. tType &&
  6517. tType == 2 &&
  6518. !sIsOpen &&
  6519. tool.tool.indexOf(41) != -1
  6520. "
  6521. class="worksBox"
  6522. >
  6523. <div
  6524. class="zuoyeYulan"
  6525. v-if="workStudent[toolIndex].length > 0"
  6526. >
  6527. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6528. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6529. </div>
  6530. <div
  6531. class="worksDetailBox"
  6532. v-if="workStudent[toolIndex].length > 0"
  6533. >
  6534. <div
  6535. class="works"
  6536. style="
  6537. width: 200px;
  6538. height: 140px;
  6539. margin: 10px 10px 10px 0;
  6540. "
  6541. v-for="(w, wIndex) in workStudent[toolIndex]"
  6542. :key="wIndex"
  6543. >
  6544. <div class="workImg">
  6545. <img
  6546. src="../assets/icon/works/noImg.png"
  6547. @click="openXz(w, toolIndex)"
  6548. alt
  6549. />
  6550. <img
  6551. class="deleteImg"
  6552. src="../assets/deleteworks.png"
  6553. v-if="
  6554. w.userid == userid || tType == 1 || tType == 4
  6555. "
  6556. @click.stop="deleteWorks(w.wid)"
  6557. alt
  6558. />
  6559. </div>
  6560. <div class="worksName">
  6561. <div>{{ w.sName }}</div>
  6562. </div>
  6563. </div>
  6564. </div>
  6565. </div>
  6566. <div v-if="false" class="xuan_right_box">
  6567. <div
  6568. class="tool_right_box"
  6569. v-for="(item, index) in tool.sentenceList"
  6570. :key="index"
  6571. >
  6572. <div>
  6573. <span
  6574. style="word-break: break-all; white-space: normal"
  6575. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6576. >
  6577. </div>
  6578. <div class="right_box_xuan">
  6579. <span>{{ lang.ssCorrectRate }}</span>
  6580. <span>{{
  6581. (checkJson[toolIndex][index].right
  6582. ? checkJson[toolIndex][index].right
  6583. : 0) + "%"
  6584. }}</span>
  6585. </div>
  6586. <div class="right_box_xuan">
  6587. <span>{{ lang.ssRightPerson }}</span>
  6588. <span>{{
  6589. checkJson[toolIndex][index].rightPerson.length
  6590. }}</span>
  6591. </div>
  6592. </div>
  6593. </div>
  6594. <div
  6595. v-if="
  6596. tType &&
  6597. ((tType == 2 && sIsOpen == true) ||
  6598. tType == 1 ||
  6599. tType == 4) &&
  6600. tool.tool.indexOf(47) != -1
  6601. "
  6602. >
  6603. <!-- <AnswerData
  6604. v-if="
  6605. checkJson[toolIndex].length &&
  6606. (tool.sentenceList || tool.sentenceList.length > 0)
  6607. "
  6608. :people="checkJson[toolIndex]"
  6609. ></AnswerData> -->
  6610. <sortToolWorkShow v-if="
  6611. worksStudent[toolIndex].length
  6612. "
  6613. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  6614. </div>
  6615. <div
  6616. v-if="
  6617. tType &&
  6618. tType == 2 &&
  6619. !sIsOpen &&
  6620. tool.tool.indexOf(47) != -1
  6621. "
  6622. class="worksBox"
  6623. >
  6624. <div
  6625. class="zuoyeYulan"
  6626. v-if="workStudent[toolIndex].length > 0"
  6627. >
  6628. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6629. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6630. </div>
  6631. <div
  6632. class="worksDetailBox"
  6633. v-if="workStudent[toolIndex].length > 0"
  6634. >
  6635. <div
  6636. class="works"
  6637. style="
  6638. width: 200px;
  6639. height: 140px;
  6640. margin: 10px 10px 10px 0;
  6641. "
  6642. v-for="(w, wIndex) in workStudent[toolIndex]"
  6643. :key="wIndex"
  6644. >
  6645. <!-- @click="openXz(w, toolIndex)" -->
  6646. <div class="workImg" @click="openSen(w, toolIndex)">
  6647. <img src="../assets/icon/works/noImg.png" alt />
  6648. <img
  6649. class="deleteImg"
  6650. src="../assets/deleteworks.png"
  6651. v-if="
  6652. w.userid == userid || tType == 1 || tType == 4
  6653. "
  6654. @click.stop="deleteWorks(w.wid)"
  6655. alt
  6656. />
  6657. </div>
  6658. <div class="worksName">
  6659. <div>
  6660. {{ w.sName }}
  6661. </div>
  6662. </div>
  6663. </div>
  6664. </div>
  6665. </div>
  6666. <div
  6667. v-if="
  6668. tType &&
  6669. ((tType == 2 && sIsOpen == true) ||
  6670. tType == 1 ||
  6671. tType == 4) &&
  6672. tool.tool.indexOf(47) != -1
  6673. "
  6674. class="worksBox"
  6675. >
  6676. <div
  6677. class="zuoyeYulan"
  6678. v-if="
  6679. worksStudent.length &&
  6680. worksStudent[toolIndex].length > 0
  6681. "
  6682. >
  6683. <div class="worksTop">
  6684. <div>{{ lang.ssHomeworkPreview }}</div>
  6685. <div
  6686. class="corOpen"
  6687. @click="contract(toolIndex)"
  6688. v-if="
  6689. (isCloseList[toolIndex].isCloseBoolean) &&
  6690. isCloseList[toolIndex].isClose == 0
  6691. "
  6692. >
  6693. {{ lang.ssFold }}
  6694. </div>
  6695. <div
  6696. class="corOpen"
  6697. @click="contract(toolIndex)"
  6698. v-if="isCloseList[toolIndex].isClose == 1"
  6699. >
  6700. {{ lang.ssExpand }}
  6701. </div>
  6702. </div>
  6703. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6704. </div>
  6705. <div
  6706. :id="'tool-' + toolIndex"
  6707. :style="{
  6708. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6709. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6710. }"
  6711. class="worksDetailBox"
  6712. v-if="
  6713. worksStudent.length &&
  6714. worksStudent[toolIndex].length > 0
  6715. "
  6716. >
  6717. <!-- @click="openXz(w, toolIndex)" -->
  6718. <div
  6719. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6720. :key="wIndex"
  6721. class="isWorksName2"
  6722. @click="openSen(w, toolIndex)"
  6723. >
  6724. {{ w.sName }}
  6725. <img
  6726. class="deleteImg deleteImg2"
  6727. src="../assets/deleteworks.png"
  6728. v-if="w.userid == userid || tType == 1 || tType == 4"
  6729. @click.stop="deleteWorks(w.wid)"
  6730. alt
  6731. />
  6732. </div>
  6733. </div>
  6734. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6735. {{ lang.ssNotSubmitted }}
  6736. </div>
  6737. <div
  6738. class="noWorksS"
  6739. v-if="noWorksS && noWorksS[toolIndex].length"
  6740. >
  6741. <div
  6742. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6743. :key="sIndex"
  6744. class="noWorksName"
  6745. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6746. >
  6747. <el-tooltip effect="dark" :content="s.student" placement="top">
  6748. <span>{{ s.student }}</span>
  6749. </el-tooltip>
  6750. </div>
  6751. </div>
  6752. </div>
  6753. <div
  6754. v-if="
  6755. tType &&
  6756. ((tType == 2 && sIsOpen == true) ||
  6757. tType == 1 ||
  6758. tType == 4) &&
  6759. tool.tool.indexOf(48) != -1
  6760. "
  6761. class="worksBox"
  6762. >
  6763. <div
  6764. class="zuoyeYulan"
  6765. v-if="
  6766. worksStudent.length &&
  6767. worksStudent[toolIndex].length > 0
  6768. "
  6769. >
  6770. <div class="worksTop">
  6771. <div>{{ lang.ssHomeworkPreview }}</div>
  6772. <div
  6773. class="corOpen"
  6774. @click="contract(toolIndex)"
  6775. v-if="
  6776. (isCloseList[toolIndex].isCloseBoolean) &&
  6777. isCloseList[toolIndex].isClose == 0
  6778. "
  6779. >
  6780. {{ lang.ssFold }}
  6781. </div>
  6782. <div
  6783. class="corOpen"
  6784. @click="contract(toolIndex)"
  6785. v-if="isCloseList[toolIndex].isClose == 1"
  6786. >
  6787. {{ lang.ssExpand }}
  6788. </div>
  6789. </div>
  6790. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6791. </div>
  6792. <div
  6793. :id="'tool-' + toolIndex"
  6794. :style="{
  6795. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6796. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6797. }"
  6798. class="worksDetailBox"
  6799. v-if="
  6800. worksStudent.length &&
  6801. worksStudent[toolIndex].length > 0
  6802. "
  6803. >
  6804. <div
  6805. class="works"
  6806. style="
  6807. width: 200px;
  6808. height: 140px;
  6809. margin: 10px 10px 10px 0;
  6810. border-radius: 15px;
  6811. box-shadow: 0 0 6px 1px #dfdada;
  6812. "
  6813. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6814. :key="wIndex"
  6815. :class="w.type == 1 ? 'isTypeOne' : ''"
  6816. >
  6817. <div class="workImg">
  6818. <img :src="word" @click="openTable(w)" alt />
  6819. <!-- @click="openFile(w.works)" -->
  6820. <div
  6821. class="answerScore"
  6822. v-if="w.score"
  6823. @click.stop="openScore(w)"
  6824. :class="{
  6825. rightW:
  6826. w.userid == userid ||
  6827. tType == 1 ||
  6828. tType == 4 ||
  6829. w.ateacher == userid,
  6830. }"
  6831. >
  6832. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  6833. </div>
  6834. <div
  6835. class="answerScore"
  6836. @click.stop="openScore(w)"
  6837. v-else-if="courseDetail.userid == userid"
  6838. :class="{
  6839. rightW:
  6840. w.userid == userid ||
  6841. tType == 1 ||
  6842. tType == 4 ||
  6843. w.ateacher == userid,
  6844. }"
  6845. >
  6846. {{ lang.ssMarkScore }}
  6847. </div>
  6848. <img
  6849. class="deleteImg"
  6850. src="../assets/deleteworks.png"
  6851. v-if="
  6852. w.userid == userid || tType == 1 || tType == 4
  6853. "
  6854. @click.stop="deleteWorks(w.wid)"
  6855. alt
  6856. />
  6857. </div>
  6858. <div class="comment" style="min-width: 200px">
  6859. <div class="worksName">
  6860. <div>{{ w.sName }}</div>
  6861. </div>
  6862. <div class="commentList">
  6863. <div class="commentList">
  6864. <div
  6865. class="commentImg"
  6866. @click="
  6867. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6868. "
  6869. >
  6870. <img
  6871. :src="w.isLikes == true ? likes : noLikes"
  6872. alt=""
  6873. />
  6874. </div>
  6875. <div>{{ w.likesCount }}</div>
  6876. </div>
  6877. <div class="commentList" style="margin-right: 15px">
  6878. <div
  6879. class="commentImg"
  6880. @click="commentOther(w, toolIndex, wIndex)"
  6881. >
  6882. <img
  6883. src="../assets/icon/comment/comment.png"
  6884. alt=""
  6885. />
  6886. </div>
  6887. <div>{{ w.commentCount }}</div>
  6888. </div>
  6889. </div>
  6890. </div>
  6891. </div>
  6892. </div>
  6893. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6894. {{ lang.ssNotSubmitted }}
  6895. </div>
  6896. <div
  6897. class="noWorksS"
  6898. v-if="noWorksS && noWorksS[toolIndex].length"
  6899. >
  6900. <div
  6901. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6902. :key="sIndex"
  6903. class="noWorksName"
  6904. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6905. >
  6906. <el-tooltip effect="dark" :content="s.student" placement="top">
  6907. <span>{{ s.student }}</span>
  6908. </el-tooltip>
  6909. </div>
  6910. </div>
  6911. </div>
  6912. <div
  6913. v-if="
  6914. tType &&
  6915. tType == 2 &&
  6916. !sIsOpen &&
  6917. tool.tool.indexOf(48) != -1
  6918. "
  6919. class="worksBox"
  6920. >
  6921. <div
  6922. class="zuoyeYulan"
  6923. v-if="workStudent[toolIndex].length > 0"
  6924. >
  6925. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6926. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6927. </div>
  6928. <div
  6929. class="worksDetailBox"
  6930. v-if="workStudent[toolIndex].length > 0"
  6931. >
  6932. <div
  6933. class="works"
  6934. style="
  6935. width: 200px;
  6936. height: 140px;
  6937. margin: 10px 10px 10px 0;
  6938. box-shadow: 0 0 6px 1px #dfdada;
  6939. "
  6940. v-for="(w, wIndex) in workStudent[toolIndex]"
  6941. :key="wIndex"
  6942. >
  6943. <div class="workImg">
  6944. <img :src="word" @click="openTable(w)" alt />
  6945. <div
  6946. class="answerScore"
  6947. v-if="w.score"
  6948. @click.stop="openScore(w)"
  6949. :class="{
  6950. rightW:
  6951. w.userid == userid || tType == 1 || tType == 4,
  6952. }"
  6953. >
  6954. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  6955. </div>
  6956. <div
  6957. class="answerScore"
  6958. @click.stop="openScore(w)"
  6959. v-else-if="courseDetail.userid == userid"
  6960. :class="{
  6961. rightW:
  6962. w.userid == userid || tType == 1 || tType == 4,
  6963. }"
  6964. >
  6965. {{ lang.ssMarkScore }}
  6966. </div>
  6967. <img
  6968. class="deleteImg"
  6969. src="../assets/deleteworks.png"
  6970. v-if="
  6971. w.userid == userid || tType == 1 || tType == 4
  6972. "
  6973. @click.stop="deleteWorks(w.wid)"
  6974. alt
  6975. />
  6976. </div>
  6977. <div class="worksName">
  6978. <div>{{ w.sName }}</div>
  6979. </div>
  6980. </div>
  6981. </div>
  6982. </div>
  6983. <div
  6984. v-if="
  6985. tType &&
  6986. ((tType == 2 && sIsOpen == true) ||
  6987. tType == 1 ||
  6988. tType == 4) &&
  6989. tool.tool.indexOf(52) != -1
  6990. "
  6991. class="worksBox"
  6992. >
  6993. <div
  6994. class="zuoyeYulan"
  6995. v-if="
  6996. worksStudent.length &&
  6997. worksStudent[toolIndex].length > 0
  6998. "
  6999. >
  7000. <div class="worksTop">
  7001. <div>{{ lang.ssHomeworkPreview }}</div>
  7002. <div
  7003. class="corOpen"
  7004. @click="contract(toolIndex)"
  7005. v-if="
  7006. (isCloseList[toolIndex].isCloseBoolean) &&
  7007. isCloseList[toolIndex].isClose == 0
  7008. "
  7009. >
  7010. {{ lang.ssFold }}
  7011. </div>
  7012. <div
  7013. class="corOpen"
  7014. @click="contract(toolIndex)"
  7015. v-if="isCloseList[toolIndex].isClose == 1"
  7016. >
  7017. {{ lang.ssExpand }}
  7018. </div>
  7019. </div>
  7020. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7021. </div>
  7022. <div
  7023. :id="'tool-' + toolIndex"
  7024. :style="{
  7025. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7026. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7027. }"
  7028. class="worksDetailBox"
  7029. v-if="
  7030. worksStudent.length &&
  7031. worksStudent[toolIndex].length > 0
  7032. "
  7033. >
  7034. <div
  7035. class="works"
  7036. style="
  7037. width: 200px;
  7038. height: 140px;
  7039. margin: 10px 10px 10px 0;
  7040. border-radius: 15px;
  7041. box-shadow: 0 0 6px 1px #dfdada;
  7042. "
  7043. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7044. :key="wIndex"
  7045. :class="w.type == 1 ? 'isTypeOne' : ''"
  7046. >
  7047. <div class="workImg">
  7048. <img :src="word" @click="openWord(w)" alt />
  7049. <!-- @click="openFile(w.works)" -->
  7050. <div
  7051. class="answerScore"
  7052. v-if="w.score"
  7053. @click.stop="openScore(w)"
  7054. :class="{
  7055. rightW:
  7056. w.userid == userid ||
  7057. tType == 1 ||
  7058. tType == 4 ||
  7059. w.ateacher == userid,
  7060. }"
  7061. >
  7062. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7063. </div>
  7064. <div
  7065. class="answerScore"
  7066. @click.stop="openScore(w)"
  7067. v-else-if="courseDetail.userid == userid"
  7068. :class="{
  7069. rightW:
  7070. w.userid == userid ||
  7071. tType == 1 ||
  7072. tType == 4 ||
  7073. w.ateacher == userid,
  7074. }"
  7075. >
  7076. {{ lang.ssMarkScore }}
  7077. </div>
  7078. <img
  7079. class="deleteImg"
  7080. src="../assets/deleteworks.png"
  7081. v-if="
  7082. w.userid == userid || tType == 1 || tType == 4
  7083. "
  7084. @click.stop="deleteWorks(w.wid)"
  7085. alt
  7086. />
  7087. </div>
  7088. <div class="comment" style="min-width: 200px">
  7089. <div class="worksName">
  7090. <div>{{ w.sName }}</div>
  7091. </div>
  7092. <div class="commentList">
  7093. <div class="commentList">
  7094. <div
  7095. class="commentImg"
  7096. @click="
  7097. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7098. "
  7099. >
  7100. <img
  7101. :src="w.isLikes == true ? likes : noLikes"
  7102. alt=""
  7103. />
  7104. </div>
  7105. <div>{{ w.likesCount }}</div>
  7106. </div>
  7107. <div class="commentList" style="margin-right: 15px">
  7108. <div
  7109. class="commentImg"
  7110. @click="commentOther(w, toolIndex, wIndex)"
  7111. >
  7112. <img
  7113. src="../assets/icon/comment/comment.png"
  7114. alt=""
  7115. />
  7116. </div>
  7117. <div>{{ w.commentCount }}</div>
  7118. </div>
  7119. </div>
  7120. </div>
  7121. </div>
  7122. </div>
  7123. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7124. {{ lang.ssNotSubmitted }}
  7125. </div>
  7126. <div
  7127. class="noWorksS"
  7128. v-if="noWorksS && noWorksS[toolIndex].length"
  7129. >
  7130. <div
  7131. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7132. :key="sIndex"
  7133. class="noWorksName"
  7134. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7135. >
  7136. <el-tooltip effect="dark" :content="s.student" placement="top">
  7137. <span>{{ s.student }}</span>
  7138. </el-tooltip>
  7139. </div>
  7140. </div>
  7141. </div>
  7142. <div
  7143. v-if="
  7144. tType &&
  7145. tType == 2 &&
  7146. !sIsOpen &&
  7147. tool.tool.indexOf(52) != -1
  7148. "
  7149. class="worksBox"
  7150. >
  7151. <div
  7152. class="zuoyeYulan"
  7153. v-if="workStudent[toolIndex].length > 0"
  7154. >
  7155. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  7156. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7157. </div>
  7158. <div
  7159. class="worksDetailBox"
  7160. v-if="workStudent[toolIndex].length > 0"
  7161. >
  7162. <div
  7163. class="works"
  7164. style="
  7165. width: 200px;
  7166. height: 140px;
  7167. margin: 10px 10px 10px 0;
  7168. box-shadow: 0 0 6px 1px #dfdada;
  7169. "
  7170. v-for="(w, wIndex) in workStudent[toolIndex]"
  7171. :key="wIndex"
  7172. >
  7173. <div class="workImg">
  7174. <img :src="word" @click="openWord(w)" alt />
  7175. <div
  7176. class="answerScore"
  7177. v-if="w.score"
  7178. @click.stop="openScore(w)"
  7179. :class="{
  7180. rightW:
  7181. w.userid == userid || tType == 1 || tType == 4,
  7182. }"
  7183. >
  7184. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7185. </div>
  7186. <div
  7187. class="answerScore"
  7188. @click.stop="openScore(w)"
  7189. v-else-if="courseDetail.userid == userid"
  7190. :class="{
  7191. rightW:
  7192. w.userid == userid || tType == 1 || tType == 4,
  7193. }"
  7194. >
  7195. {{ lang.ssMarkScore }}
  7196. </div>
  7197. <img
  7198. class="deleteImg"
  7199. src="../assets/deleteworks.png"
  7200. v-if="
  7201. w.userid == userid || tType == 1 || tType == 4
  7202. "
  7203. @click.stop="deleteWorks(w.wid)"
  7204. alt
  7205. />
  7206. </div>
  7207. <div class="worksName">
  7208. <div>{{ w.sName }}</div>
  7209. </div>
  7210. </div>
  7211. </div>
  7212. </div>
  7213. <div
  7214. v-if="tool.tool.indexOf(49) != -1"
  7215. class="xuan_right_box"
  7216. style="margin: 0 15px 0 25px; width: 93%"
  7217. >
  7218. <div
  7219. v-if="courseDetail.userid == userid"
  7220. style="
  7221. display: flex;
  7222. justify-content: flex-end;
  7223. margin-right: 10px;
  7224. "
  7225. >
  7226. <el-button
  7227. type="primary"
  7228. size="small"
  7229. @click="addTools(49, toolIndex, taskCount)"
  7230. >{{ lang.ssGroupSetting }}
  7231. </el-button>
  7232. </div>
  7233. <div
  7234. v-if="groupStudentUid[toolIndex]"
  7235. class="group_staic_box"
  7236. >
  7237. <div
  7238. v-for="(gp, gd) in tool.groupJson.group"
  7239. :key="gd"
  7240. class="group_staic"
  7241. >
  7242. <span> {{ gp.name }}</span>
  7243. <span>
  7244. {{ lang.ssCurrentCountNum.replace(/\*/, groupStudentUid[toolIndex][gd].length) }}</span
  7245. >
  7246. </div>
  7247. </div>
  7248. </div>
  7249. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7250. <div
  7251. class="zuoyeYulan"
  7252. v-if="
  7253. worksStudent.length &&
  7254. worksStudent[toolIndex].length > 0
  7255. "
  7256. >
  7257. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  7258. </div>
  7259. <div>
  7260. <div
  7261. class="group_workBox"
  7262. v-for="(g, gindex) in tool.groupJson.group"
  7263. :key="gindex"
  7264. >
  7265. <div
  7266. class="group_box"
  7267. v-if="
  7268. groupStudentUid[toolIndex] &&
  7269. worksStudent[toolIndex] &&
  7270. (worksStudent[toolIndex][gindex].length ||
  7271. groupStudentUid[toolIndex][gindex].indexOf(
  7272. userid
  7273. ) != -1)
  7274. "
  7275. >
  7276. <div class="group_title">
  7277. <el-tooltip
  7278. class="item"
  7279. effect="light"
  7280. :content="g.name"
  7281. placement="top"
  7282. >
  7283. <div class="group_name">{{ g.name }}</div>
  7284. </el-tooltip>
  7285. <el-button
  7286. type="primary"
  7287. v-if="
  7288. groupStudentUid[toolIndex][gindex].indexOf(
  7289. userid
  7290. ) != -1
  7291. "
  7292. @click="groupUpload(toolIndex, taskCount, gindex)"
  7293. >{{ lang.ssUploadHomework }}
  7294. </el-button>
  7295. </div>
  7296. <div class="group_work">
  7297. <div
  7298. class="works"
  7299. style="
  7300. width: 200px;
  7301. height: 140px;
  7302. margin: 10px 10px 10px 0;
  7303. border-radius: 15px;
  7304. box-shadow: 0 0 6px 1px #dfdada;
  7305. "
  7306. v-for="(w, wIndex) in worksStudent[toolIndex][
  7307. gindex
  7308. ]"
  7309. :key="wIndex"
  7310. :class="w.type == 1 ? 'isTypeOne' : ''"
  7311. >
  7312. <div class="workImg" style="overflow: hidden;" v-if="w.type == 0">
  7313. <el-image
  7314. crossorigin="anonymous"
  7315. allow="*"
  7316. :src="w.works"
  7317. @click="previewImg(w.works,w)"
  7318. alt
  7319. />
  7320. <div
  7321. class="answerScore"
  7322. style="right: 70px;"
  7323. v-if="w.score"
  7324. @click.stop="openScore(w)"
  7325. :class="{
  7326. rightW:
  7327. w.userid == userid ||
  7328. tType == 1 ||
  7329. tType == 4 ||
  7330. w.ateacher == userid,
  7331. }"
  7332. >
  7333. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7334. </div>
  7335. <div
  7336. class="answerScore"
  7337. style="right: 70px;"
  7338. @click.stop="openScore(w)"
  7339. v-else-if="courseDetail.userid == userid"
  7340. :class="{
  7341. rightW:
  7342. w.userid == userid ||
  7343. tType == 1 ||
  7344. tType == 4 ||
  7345. w.ateacher == userid,
  7346. }"
  7347. >
  7348. {{ lang.ssMarkScore }}
  7349. </div>
  7350. <img class="xiaz" @click="downloadimg(w.works,w.sName)" style="right: 40px;" src="../assets/icon/works/xiaz.png" alt="">
  7351. <img
  7352. class="deleteImg"
  7353. src="../assets/deleteworks.png"
  7354. v-if="
  7355. w.userid == userid ||
  7356. tType == 1 ||
  7357. tType == 4
  7358. "
  7359. @click.stop="deleteWorks(w.wid)"
  7360. alt
  7361. />
  7362. </div>
  7363. <div class="workImg" v-if="w.type == 1">
  7364. <img
  7365. :src="word"
  7366. @click="openFile(w.works,w)"
  7367. alt
  7368. />
  7369. <!-- @click="openFile(w.works)" -->
  7370. <div
  7371. class="answerScore"
  7372. style="right: 70px;"
  7373. v-if="w.score"
  7374. @click.stop="openScore(w)"
  7375. :class="{
  7376. rightW:
  7377. w.userid == userid ||
  7378. tType == 1 ||
  7379. tType == 4 ||
  7380. w.ateacher == userid,
  7381. }"
  7382. >
  7383. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7384. </div>
  7385. <div
  7386. class="answerScore"
  7387. style="right: 70px;"
  7388. @click.stop="openScore(w)"
  7389. v-else-if="courseDetail.userid == userid"
  7390. :class="{
  7391. rightW:
  7392. w.userid == userid ||
  7393. tType == 1 ||
  7394. tType == 4 ||
  7395. w.ateacher == userid,
  7396. }"
  7397. >
  7398. {{ lang.ssMarkScore }}
  7399. </div>
  7400. <img class="xiaz" @click="downloadFile(w.works,w.userid)" style="right: 40px;" src="../assets/icon/works/xiaz.png" alt="">
  7401. <img
  7402. class="deleteImg"
  7403. src="../assets/deleteworks.png"
  7404. v-if="
  7405. w.userid == userid ||
  7406. tType == 1 ||
  7407. tType == 4
  7408. "
  7409. @click.stop="deleteWorks(w.wid)"
  7410. alt
  7411. />
  7412. </div>
  7413. <div class="workImg" v-if="w.type == 3">
  7414. <img
  7415. style="cursor: pointer"
  7416. :src="video"
  7417. @click="openVideo(w)"
  7418. alt
  7419. />
  7420. <!-- @click="openVideo(w.works)" -->
  7421. <div
  7422. class="answerScore"
  7423. style="right: 70px;"
  7424. v-if="w.score"
  7425. @click.stop="openScore(w)"
  7426. :class="{
  7427. rightW:
  7428. w.userid == userid ||
  7429. tType == 1 ||
  7430. tType == 4 ||
  7431. w.ateacher == userid,
  7432. }"
  7433. >
  7434. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7435. </div>
  7436. <div
  7437. class="answerScore"
  7438. style="right: 70px;"
  7439. @click.stop="openScore(w)"
  7440. v-else-if="courseDetail.userid == userid"
  7441. :class="{
  7442. rightW:
  7443. w.userid == userid ||
  7444. tType == 1 ||
  7445. tType == 4 ||
  7446. w.ateacher == userid,
  7447. }"
  7448. >
  7449. {{ lang.ssMarkScore }}
  7450. </div>
  7451. <img class="xiaz" @click="downloadFile(w.works,w.userid)" style="right: 40px;" src="../assets/icon/works/xiaz.png" alt="">
  7452. <img
  7453. class="deleteImg"
  7454. src="../assets/deleteworks.png"
  7455. v-if="
  7456. w.userid == userid ||
  7457. tType == 1 ||
  7458. tType == 4
  7459. "
  7460. @click.stop="deleteWorks(w.wid)"
  7461. alt
  7462. />
  7463. </div>
  7464. <div class="workImg" v-if="w.type == 12">
  7465. <img
  7466. style="cursor: pointer"
  7467. :src="word2"
  7468. @click="downloadFile(w.works,w.userid)"
  7469. alt
  7470. />
  7471. <!-- @click="openVideo(w.works)" -->
  7472. <div
  7473. class="answerScore"
  7474. style="right: 70px;"
  7475. v-if="w.score"
  7476. @click.stop="openScore(w)"
  7477. :class="{
  7478. rightW:
  7479. w.userid == userid ||
  7480. tType == 1 ||
  7481. tType == 4 ||
  7482. w.ateacher == userid,
  7483. }"
  7484. >
  7485. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7486. </div>
  7487. <div
  7488. class="answerScore"
  7489. style="right: 70px;"
  7490. @click.stop="openScore(w)"
  7491. v-else-if="courseDetail.userid == userid"
  7492. :class="{
  7493. rightW:
  7494. w.userid == userid ||
  7495. tType == 1 ||
  7496. tType == 4 ||
  7497. w.ateacher == userid,
  7498. }"
  7499. >
  7500. {{ lang.ssMarkScore }}
  7501. </div>
  7502. <img class="xiaz" @click="downloadFile(w.works,w.userid)" style="right: 40px;" src="../assets/icon/works/xiaz.png" alt="">
  7503. <img
  7504. class="deleteImg"
  7505. src="../assets/deleteworks.png"
  7506. v-if="
  7507. w.userid == userid ||
  7508. tType == 1 ||
  7509. tType == 4
  7510. "
  7511. @click.stop="deleteWorks(w.wid)"
  7512. alt
  7513. />
  7514. </div>
  7515. <div class="comment" style="min-width: 200px">
  7516. <div class="worksName">
  7517. <div>{{ w.sName }}</div>
  7518. </div>
  7519. <div class="commentList">
  7520. <div class="commentList">
  7521. <div
  7522. class="commentImg"
  7523. @click="
  7524. isLikes(
  7525. w.wid,
  7526. userid,
  7527. 1,
  7528. null,
  7529. w.isLikes,
  7530. w.sName
  7531. )
  7532. "
  7533. >
  7534. <img
  7535. :src="
  7536. w.isLikes == true ? likes : noLikes
  7537. "
  7538. alt=""
  7539. />
  7540. </div>
  7541. <div>{{ w.likesCount }}</div>
  7542. </div>
  7543. <div
  7544. class="commentList"
  7545. style="margin-right: 15px"
  7546. >
  7547. <div
  7548. class="commentImg"
  7549. @click="
  7550. commentOther(
  7551. w,
  7552. toolIndex,
  7553. wIndex,
  7554. gindex
  7555. )
  7556. "
  7557. >
  7558. <img
  7559. src="../assets/icon/comment/comment.png"
  7560. alt=""
  7561. />
  7562. </div>
  7563. <div>{{ w.commentCount }}</div>
  7564. </div>
  7565. </div>
  7566. </div>
  7567. </div>
  7568. </div>
  7569. </div>
  7570. </div>
  7571. </div>
  7572. </div>
  7573. </div>
  7574. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7575. 上传文件
  7576. <input
  7577. type="file"
  7578. accept="image/png, image/gif, image/jpeg"
  7579. style="display: none"
  7580. @change="beforeUpload1($event, 2, index)"
  7581. />
  7582. </div>-->
  7583. </div>
  7584. </div>
  7585. <div
  7586. class="vedioBox"
  7587. style="margin-top: 10px; border-radius: 20px"
  7588. v-if="
  7589. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7590. .eList &&
  7591. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7592. .eList.length &&
  7593. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7594. .eList.length > 0 &&
  7595. tType != 2
  7596. "
  7597. >
  7598. <div
  7599. class="queTop"
  7600. style="
  7601. font-size: 20px;
  7602. padding: 15px 0 15px 37px;
  7603. font-weight: bold;
  7604. "
  7605. >
  7606. <!-- <div class="question" style="width: 30px">
  7607. <img src="../assets/icon/toolIcon.png" alt />
  7608. </div>
  7609. <div class="queTitle">
  7610. <div>工具</div>
  7611. </div>-->
  7612. {{ lang.ssEvaluate }}
  7613. </div>
  7614. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7615. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7616. <el-table
  7617. :data="
  7618. chapInfoList[courseType].chapterInfo[0].taskJson[
  7619. taskCount
  7620. ].eList
  7621. "
  7622. :header-cell-style="{ background: '#F0F4FA' }"
  7623. :row-class-name="tableRowClassName"
  7624. border
  7625. stripe
  7626. style="width: 100%"
  7627. >
  7628. <el-table-column
  7629. :label="lang.ssEvalName"
  7630. align="center"
  7631. >
  7632. <template slot-scope="scope"
  7633. ><div>{{ scope.row.value }}</div></template
  7634. >
  7635. </el-table-column>
  7636. <el-table-column
  7637. :label="lang.ssEvalDimensionDesc"
  7638. align="center"
  7639. >
  7640. <template slot-scope="scope"
  7641. ><div>
  7642. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7643. </div></template
  7644. >
  7645. </el-table-column>
  7646. <el-table-column :label="lang.ssTarget" align="center">
  7647. <template slot-scope="scope"
  7648. ><div>
  7649. {{
  7650. scope.row.target
  7651. ? scope.row.target[scope.row.target.length - 1]
  7652. : "-"
  7653. }}
  7654. </div></template
  7655. ></el-table-column
  7656. >
  7657. </el-table>
  7658. <!-- <div
  7659. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7660. .chapterInfo[0].taskJson[taskCount].eList"
  7661. :key="eIndex"
  7662. class="elist_input_box"
  7663. >
  7664. <div style="width: 95%">
  7665. <div
  7666. style="
  7667. display: flex;
  7668. flex-direction: row;
  7669. flex-wrap: nowrap;
  7670. align-items: center;
  7671. "
  7672. >
  7673. <div style="max-width: calc(100% - 285px)">
  7674. <span>{{ eItem.value }}</span>
  7675. </div>
  7676. <div
  7677. style="
  7678. padding-left: 25px;
  7679. display: flex;
  7680. flex-direction: row;
  7681. align-items: center;
  7682. "
  7683. >
  7684. <el-rate
  7685. v-model="eItem.score"
  7686. :colors="colors"
  7687. disabled
  7688. ></el-rate>
  7689. </div>
  7690. </div>
  7691. <div class="elist_inptu_text" style="padding-left: 10px">
  7692. <span v-if="eItem.detail != ''">{{
  7693. eItem.detail
  7694. }}</span>
  7695. <span v-else style="color: #b2b1b3; font-size: 14px"
  7696. >{{ lang.ssNoDesc }}</span
  7697. >
  7698. </div>
  7699. </div>
  7700. </div> -->
  7701. </div>
  7702. <div
  7703. v-if="evalua"
  7704. style="
  7705. border: 1px solid #e5e5e5;
  7706. max-width: 650px;
  7707. width: 100%;
  7708. margin-top: 20px;
  7709. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7710. "
  7711. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7712. >
  7713. <div class="e_add_top">
  7714. <div class="e_add_title" style="width: 100%">
  7715. <!-- <span>目标管理名称</span> -->
  7716. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7717. <img
  7718. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7719. src="../assets/line.png"
  7720. class="cru_line"
  7721. style="
  7722. width: 125px;
  7723. height: 20px;
  7724. bottom: -10px;
  7725. left: 5px;
  7726. "
  7727. />
  7728. <!-- <el-input
  7729. v-model="eTitle"
  7730. :placeholder="this.lang.ssEnterName"
  7731. @change="setMindData"
  7732. ></el-input>-->
  7733. <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>
  7734. <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>
  7735. </div>
  7736. </div>
  7737. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7738. <div class="e_add_list_pbox">
  7739. <div class="e_add_list_pbox_title">
  7740. <!-- <span class="type_title">切换模式</span> -->
  7741. <div class="type_content">
  7742. <span
  7743. :class="{ active: typeMode == 1 }"
  7744. @click="typeMode = 1"
  7745. >{{lang.ssTargetTree}}</span
  7746. >
  7747. <span
  7748. :class="{ active: typeMode == 2 }"
  7749. @click="typeMode = 2"
  7750. >{{lang.ssTargetCompass}}</span
  7751. >
  7752. <!-- <span
  7753. :class="{ active: typeMode == 3 }"
  7754. @click="typeMode = 3"
  7755. >目标看板</span
  7756. > -->
  7757. </div>
  7758. </div>
  7759. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7760. <Mind
  7761. :showBar="false"
  7762. :mindData="data"
  7763. style="width: 100%"
  7764. v-show="typeMode == 1"
  7765. ></Mind>
  7766. <Sunburst
  7767. :Josn="eJson"
  7768. :num="eJSONNum"
  7769. style="width: 100%"
  7770. v-if="typeMode == 2"
  7771. ></Sunburst>
  7772. <SeeBoard
  7773. :Josn="eJson"
  7774. :num="eJSONNum"
  7775. :ename="eTitle"
  7776. style="width: 100%"
  7777. v-if="typeMode == 3"
  7778. >
  7779. </SeeBoard>
  7780. </div>
  7781. </div>
  7782. </div>
  7783. </div>
  7784. </div>
  7785. </div>
  7786. <!-- <div
  7787. class="project_box"
  7788. style="margin-top: 15px; padding-bottom: 30px"
  7789. >
  7790. <div
  7791. style="
  7792. display: flex;
  7793. flex-wrap: nowrap;
  7794. flex-direction: column;
  7795. position: relative;
  7796. "
  7797. >
  7798. <div class="queTop">
  7799. <div class="question">
  7800. <img src="../assets/icon/homeWork.png" alt="" />
  7801. </div>
  7802. <div class="queTitle">
  7803. <div>{{ lang.ssHomeworkSubmit }}<span>{{ lang.ssSubmitDescText }}</span></div>
  7804. <div>{{ lang.ssTaskColon }}{{ task.task }}</div>
  7805. </div>
  7806. </div>
  7807. <div class="ediBottom">
  7808. <div
  7809. class="addEditor"
  7810. style="margin-top: 23px"
  7811. @click="openAddWork"
  7812. v-if="!isNoHomeWork"
  7813. >
  7814. {{ lang.ssSelectFile }}
  7815. </div>
  7816. <div
  7817. class="addEditor"
  7818. style="margin-top: 23px"
  7819. @click="openAddWork"
  7820. v-else
  7821. >
  7822. {{ lang.ssSubmitted }}
  7823. </div>
  7824. </div>
  7825. </div>
  7826. </div>-->
  7827. </div>
  7828. </div>
  7829. <el-dialog
  7830. :title="lang.ssHomeworkSubmit"
  7831. :visible.sync="dialogVisible"
  7832. :append-to-body="true"
  7833. width="500px"
  7834. :before-close="handleClose"
  7835. class="dialog_change"
  7836. >
  7837. <div class="marginT">
  7838. <div>{{ lang.ssUploadHomework }}</div>
  7839. <div style="display: flex; gap: 10px">
  7840. <div
  7841. class="chapter_add"
  7842. @click="addImg($event)"
  7843. v-if="studyJuri[0].cover.length == 0"
  7844. >
  7845. <div class="up_photo">
  7846. <img src="../assets/icon/uploadImg.png" alt />
  7847. </div>
  7848. <!-- <input
  7849. type="file"
  7850. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7851. style="display: none"
  7852. @change="beforeUpload1($event, 1)"
  7853. /> -->
  7854. <input
  7855. type="file"
  7856. accept="*"
  7857. style="display: none"
  7858. @change="beforeUpload1($event, 1)"
  7859. />
  7860. <!-- <input
  7861. type="file"
  7862. accept="image/*"
  7863. capture="camera"
  7864. style="display: none"
  7865. @change="beforeUpload1($event, 1)"
  7866. /> -->
  7867. </div>
  7868. <div
  7869. class="chapter_add"
  7870. @click="addImg($event)"
  7871. v-if="studyJuri[0].cover.length == 0"
  7872. >
  7873. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  7874. <img src="../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  7875. </div>
  7876. <input
  7877. type="file"
  7878. accept="image/*"
  7879. capture="camera"
  7880. style="display: none"
  7881. @change="beforeUpload1($event, 1)"
  7882. />
  7883. </div>
  7884. </div>
  7885. <div
  7886. class="chapter_add"
  7887. style="
  7888. display: flex;
  7889. width: 100%;
  7890. flex-direction: row;
  7891. flex-wrap: wrap;
  7892. justify-content: flex-start;
  7893. padding: 15px 0;
  7894. "
  7895. v-if="studyJuri[0].cover.length > 0"
  7896. >
  7897. <div class="upCover">
  7898. <img
  7899. :src="studyJuri[0].cover[0].url"
  7900. alt
  7901. v-if="fileType == 0"
  7902. />
  7903. <img :src="word" alt v-else-if="fileType == 1" />
  7904. <img :src="video" alt v-else-if="fileType == 2" />
  7905. <img :src="word2" alt v-else-if="fileType == 3" />
  7906. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7907. <div class="deleteWord" @click="clean(1)">
  7908. <img src="../assets/icon/deleteWorks.png" alt />
  7909. </div>
  7910. </div>
  7911. </div>
  7912. </div>
  7913. <div
  7914. class="upload_send"
  7915. @click="addCourseWorks(taskCount)"
  7916. v-if="!proVisible"
  7917. >
  7918. {{ lang.ssSubmit }}
  7919. </div>
  7920. </el-dialog>
  7921. </div>
  7922. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  7923. <classRoomHelper v-if="(!['2'].includes(tType) || canUseCourseId.includes(id)) && $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(
  7924. '/courseDetail?userid=' +
  7925. userid +
  7926. '&oid=' +
  7927. oid +
  7928. '&org=' +
  7929. org +
  7930. '&cid=' +
  7931. classId +
  7932. '&courseId=' +
  7933. id +
  7934. '&tType=' +
  7935. tType +
  7936. '&screenType=' +
  7937. screenType+
  7938. '&role=' +
  7939. role
  7940. )"></classRoomHelper>
  7941. <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(
  7942. '/courseDetail?userid=' +
  7943. userid +
  7944. '&oid=' +
  7945. oid +
  7946. '&org=' +
  7947. org +
  7948. '&cid=' +
  7949. classId +
  7950. '&courseId=' +
  7951. id +
  7952. '&tType=' +
  7953. tType +
  7954. '&screenType=' +
  7955. screenType+
  7956. '&role=' +
  7957. role
  7958. )"></studentClassRoomHelper>
  7959. </div>
  7960. <div
  7961. class="pButton"
  7962. @click="(pzDialog = true), selectPz()"
  7963. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7964. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  7965. >
  7966. <!-- 批 -->
  7967. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  7968. </div>
  7969. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  7970. <div class="pzTop2">
  7971. <!-- <div>评论</div>
  7972. <div @click="pzDialog = false">
  7973. <img src="../assets/close1.png" alt="" />
  7974. </div> -->
  7975. <div class="checkbox">
  7976. <!-- <div class="check" style="font-size: 25px; position: unset">
  7977. 评论
  7978. </div> -->
  7979. <div class="cb-tabList">
  7980. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">{{ lang.ssComment }}</div>
  7981. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  7982. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  7983. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">{{ lang.ssTotalEval }}</div>
  7984. </div>
  7985. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  7986. <el-option :label="lang.ssTimeDesc" :value="1"></el-option>
  7987. <el-option :label="lang.ssTimeAsc" :value="2"></el-option>
  7988. <el-option :label="lang.ssMyComment" :value="3"></el-option>
  7989. </el-select>
  7990. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7991. </div>
  7992. </div>
  7993. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  7994. <div class="pzListBox" v-if="pzList && pzList.length">
  7995. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7996. <div class="pzNavTop">
  7997. <div>{{ lang.ssEval }}</div>
  7998. <div>
  7999. {{
  8000. pz.username && pz.username.length > 5
  8001. ? pz.username.substring(0, 5) + "..."
  8002. : pz.username
  8003. }}{{ lang.ssCommentOf.replace(/\*/g, pz.username) }}
  8004. </div>
  8005. <div
  8006. class="pzDelete"
  8007. v-if="pz.userid == userid"
  8008. @click="deletePz(pz.id)"
  8009. >
  8010. {{ lang.ssDelete }}
  8011. </div>
  8012. </div>
  8013. <div
  8014. @click="checkImg(getImgList(pz.content))"
  8015. class="pzContent cont"
  8016. v-html="pz.content"
  8017. v-if="pz.type == '1'"
  8018. ></div>
  8019. <div class="pzContent" v-if="pz.type == '2'">
  8020. <audio :src="pz.content" controls="controls" ref="audio">
  8021. Your browser does not support the audio element.
  8022. </audio>
  8023. </div>
  8024. <div class="pzContent" v-if="pz.type == '3'">
  8025. <img
  8026. :src="pz.content"
  8027. style="width: 90%; margin: 0 auto; display: block"
  8028. @click="previewImg(pz.content)"
  8029. />
  8030. </div>
  8031. <div class="timeAndReply">
  8032. <div class="time">
  8033. {{ pz.time }}
  8034. </div>
  8035. <div @click="setReplyIndex(pz.id, pzIndex)">{{ lang.ssReply }}</div>
  8036. </div>
  8037. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8038. <div
  8039. v-for="(h, hIndex) in pz.hfList"
  8040. :key="hIndex"
  8041. class="hfItem"
  8042. >
  8043. <div class="whoReplyWho">
  8044. <div class="hfName">{{ h.username }}</div>
  8045. <div class="hfImg">
  8046. <img src="../assets/icon/newIcons/right.png" alt="" />
  8047. </div>
  8048. <div class="hfName">{{ pz.username }}</div>
  8049. </div>
  8050. <div class="hfContent" v-html="h.content"></div>
  8051. <div class="hfBottom">
  8052. <div class="hfTime">{{ h.time }}</div>
  8053. <div
  8054. class="deleteHfItem"
  8055. @click="deleteReply(h.id)"
  8056. v-if="userid == h.userid"
  8057. >
  8058. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8059. </div>
  8060. </div>
  8061. </div>
  8062. </div>
  8063. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8064. <div class="replyInput">
  8065. <el-input v-model="reply[pzIndex]"></el-input>
  8066. </div>
  8067. <el-button @click="addHf(pz.id, pzIndex)">{{ lang.ssReply }}</el-button>
  8068. </div> -->
  8069. </div>
  8070. </div>
  8071. <div class="noPz" v-else>
  8072. <img src="../assets/icon/noPz.png" alt="" />
  8073. </div>
  8074. <div class="addPzButton">
  8075. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8076. {{ lang.ssAddComment }}
  8077. </div>
  8078. <!-- <div class="img1">
  8079. <div @click="(addPzDialog = true), (pzType = 2)">
  8080. <img src="../assets/audio.png" /><span>{{ lang.ssAudio }}</span>
  8081. </div>
  8082. </div> -->
  8083. </div>
  8084. </div>
  8085. <div class="scoreList" v-if="commentTagShow==1">
  8086. <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"/>
  8087. </div>
  8088. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8089. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8090. </div>
  8091. </div>
  8092. <div
  8093. v-if="toolDialogVisible == true"
  8094. class="toolMask"
  8095. @click="toolDialogVisible = false"
  8096. ></div>
  8097. <div v-if="toolDialogVisible == true" class="addToolCss">
  8098. <div class="toolTop">
  8099. <div style="font-weight: bold">{{ lang.ssNewTool }}</div>
  8100. <div @click="toolDialogVisible = false">
  8101. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8102. </div>
  8103. </div>
  8104. <div class="tool_box">
  8105. <div class="tool_type_box">
  8106. <div class="chooseWho">
  8107. <div
  8108. :class="toolType == 0 ? 'isChooseActive' : ''"
  8109. @click="(toolType = 0), $forceUpdate()"
  8110. >
  8111. {{ lang.ssInteract }}
  8112. </div>
  8113. <div
  8114. :class="toolType == 1 ? 'isChooseActive' : ''"
  8115. @click="(toolType = 1), $forceUpdate()"
  8116. >
  8117. {{ lang.ssThinking }}
  8118. </div>
  8119. <div
  8120. :class="toolType == 2 ? 'isChooseActive' : ''"
  8121. @click="(toolType = 2), $forceUpdate()"
  8122. >
  8123. {{ lang.ssEvalType }}
  8124. </div>
  8125. <div
  8126. :class="toolType == 3 ? 'isChooseActive' : ''"
  8127. @click="(toolType = 3), $forceUpdate()"
  8128. >
  8129. {{ lang.ssProgram }}
  8130. </div>
  8131. <div
  8132. :class="toolType == 5 ? 'isChooseActive' : ''"
  8133. @click="(toolType = 5), $forceUpdate()"
  8134. >
  8135. {{ lang.ssSubject }}
  8136. </div>
  8137. </div>
  8138. </div>
  8139. <div>
  8140. <div class="toolSort" v-if="toolType == 0">
  8141. <div
  8142. class="tool"
  8143. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8144. @click="addTools2(10)"
  8145. >
  8146. <div class="whiteBIcon">
  8147. <img src="../assets/icon/thirdToolList/time.png" alt />
  8148. <div style="margin: 5px 0">{{ lang.ssCountdown }}</div>
  8149. </div>
  8150. <div class="check">
  8151. <div
  8152. v-if="checktoolArray.indexOf(10) == -1"
  8153. class="noChoose"
  8154. ></div>
  8155. <div v-else class="isChoose"></div>
  8156. </div>
  8157. </div>
  8158. <div
  8159. class="tool"
  8160. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8161. @click="addTools2(65)"
  8162. >
  8163. <div class="whiteBIcon">
  8164. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8165. <div style="margin: 5px 0">{{ lang.ssPickPerson }}</div>
  8166. </div>
  8167. <div class="check">
  8168. <div
  8169. v-if="checktoolArray.indexOf(65) == -1"
  8170. class="noChoose"
  8171. ></div>
  8172. <div v-else class="isChoose"></div>
  8173. </div>
  8174. </div>
  8175. </div>
  8176. <div class="toolSort" v-if="toolType == 1">
  8177. <div
  8178. class="tool"
  8179. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8180. @click="addTools2(7)"
  8181. >
  8182. <div class="whiteBIcon">
  8183. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8184. <div style="margin: 5px 0">{{ lang.ssMindGrid }}</div>
  8185. </div>
  8186. <div class="check">
  8187. <div
  8188. v-if="checktoolArray.indexOf(7) == -1"
  8189. class="noChoose"
  8190. ></div>
  8191. <div v-else class="isChoose"></div>
  8192. </div>
  8193. </div>
  8194. <div
  8195. class="tool"
  8196. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8197. @click="addTools2(1)"
  8198. >
  8199. <div class="whiteBIcon">
  8200. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8201. <div style="margin: 5px 0">{{ lang.ssWhiteboard }}</div>
  8202. </div>
  8203. <div class="check">
  8204. <div
  8205. v-if="checktoolArray.indexOf(1) == -1"
  8206. class="noChoose"
  8207. ></div>
  8208. <div v-else class="isChoose"></div>
  8209. </div>
  8210. </div>
  8211. <div
  8212. class="tool"
  8213. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8214. @click="addTools2(52)"
  8215. >
  8216. <div class="whiteBIcon">
  8217. <img src="../assets/icon/fourthToolList/text.png" alt />
  8218. <div style="margin: 5px 0">{{ lang.ssDocument }}</div>
  8219. </div>
  8220. <div class="check">
  8221. <div
  8222. v-if="checktoolArray.indexOf(52) == -1"
  8223. class="noChoose"
  8224. ></div>
  8225. <div v-else class="isChoose"></div>
  8226. </div>
  8227. </div>
  8228. <div
  8229. class="tool"
  8230. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8231. @click="addTools2(3)"
  8232. >
  8233. <div class="whiteBIcon">
  8234. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8235. <div style="margin: 5px 0">{{ lang.ssMindMap }}</div>
  8236. </div>
  8237. <div class="check">
  8238. <div
  8239. v-if="checktoolArray.indexOf(3) == -1"
  8240. class="noChoose"
  8241. ></div>
  8242. <div v-else class="isChoose"></div>
  8243. </div>
  8244. </div>
  8245. <div
  8246. class="tool"
  8247. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8248. @click="addTools2(48)"
  8249. >
  8250. <div class="whiteBIcon">
  8251. <img src="../assets/icon/fourthToolList/table.png" alt />
  8252. <div style="margin: 5px 0">{{ lang.ssTable }}</div>
  8253. </div>
  8254. <div class="check">
  8255. <div
  8256. v-if="checktoolArray.indexOf(48) == -1"
  8257. class="noChoose"
  8258. ></div>
  8259. <div v-else class="isChoose"></div>
  8260. </div>
  8261. </div>
  8262. </div>
  8263. <div class="toolSort" v-if="toolType == 6">
  8264. <div v-show="tooC == 49">
  8265. <img
  8266. @click="addTools(tooC, toolIndex, taskCount)"
  8267. src="../assets/icon/fourthToolList/group.png"
  8268. alt
  8269. />
  8270. <div style="margin: 5px 0">{{ lang.ssStudentGroup }}</div>
  8271. </div>
  8272. </div>
  8273. <div class="toolSort" v-if="toolType == 2">
  8274. <div
  8275. class="tool"
  8276. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8277. @click="addTools2(16)"
  8278. >
  8279. <div class="whiteBIcon">
  8280. <img src="../assets/icon/thirdToolList/work.png" alt />
  8281. <div style="margin: 5px 0">{{ lang.ssHomework }}</div>
  8282. </div>
  8283. <div class="check">
  8284. <div
  8285. v-if="checktoolArray.indexOf(16) == -1"
  8286. class="noChoose"
  8287. ></div>
  8288. <div v-else class="isChoose"></div>
  8289. </div>
  8290. </div>
  8291. <div
  8292. class="tool"
  8293. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8294. @click="addTools2(50)"
  8295. >
  8296. <div class="whiteBIcon">
  8297. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8298. <div style="margin: 5px 0">{{ lang.ssBatchUpload }}</div>
  8299. </div>
  8300. <div class="check">
  8301. <div
  8302. v-if="checktoolArray.indexOf(50) == -1"
  8303. class="noChoose"
  8304. ></div>
  8305. <div v-else class="isChoose"></div>
  8306. </div>
  8307. </div>
  8308. </div>
  8309. <div class="toolSort" v-if="toolType == 3">
  8310. <div
  8311. class="tool"
  8312. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8313. @click="addTools2(18)"
  8314. >
  8315. <div class="whiteBIcon">
  8316. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8317. <div style="margin: 5px 0">{{ lang.ssTraining }}</div>
  8318. </div>
  8319. <div class="check">
  8320. <div
  8321. v-if="checktoolArray.indexOf(18) == -1"
  8322. class="noChoose"
  8323. ></div>
  8324. <div v-else class="isChoose"></div>
  8325. </div>
  8326. </div>
  8327. <div
  8328. class="tool"
  8329. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8330. @click="addTools2(21)"
  8331. >
  8332. <div class="whiteBIcon">
  8333. <img src="../assets/icon/fourthToolList/program.png" alt />
  8334. <div style="margin: 5px 0">{{ lang.ssAiotBlockly }}</div>
  8335. </div>
  8336. <div class="check">
  8337. <div
  8338. v-if="checktoolArray.indexOf(21) == -1"
  8339. class="noChoose"
  8340. ></div>
  8341. <div v-else class="isChoose"></div>
  8342. </div>
  8343. </div>
  8344. <div
  8345. class="tool"
  8346. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8347. @click="addTools2(23)"
  8348. >
  8349. <div class="whiteBIcon">
  8350. <img
  8351. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8352. alt
  8353. />
  8354. <div style="margin: 5px 0">{{ lang.ssAiPython }}</div>
  8355. </div>
  8356. <div class="check">
  8357. <div
  8358. v-if="checktoolArray.indexOf(23) == -1"
  8359. class="noChoose"
  8360. ></div>
  8361. <div v-else class="isChoose"></div>
  8362. </div>
  8363. </div>
  8364. <div
  8365. class="tool"
  8366. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8367. @click="addTools2(24)"
  8368. >
  8369. <div class="whiteBIcon">
  8370. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8371. <div style="margin: 5px 0">{{ lang.ssAiBlockly }}</div>
  8372. </div>
  8373. <div class="check">
  8374. <div
  8375. v-if="checktoolArray.indexOf(24) == -1"
  8376. class="noChoose"
  8377. ></div>
  8378. <div v-else class="isChoose"></div>
  8379. </div>
  8380. </div>
  8381. <div
  8382. class="tool"
  8383. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8384. @click="addTools2(32)"
  8385. >
  8386. <div class="whiteBIcon">
  8387. <img src="../assets/icon/thirdToolList/code.png" alt />
  8388. <div style="margin: 5px 0">{{ lang.ssCodeEdit }}</div>
  8389. </div>
  8390. <div class="check">
  8391. <div
  8392. v-if="checktoolArray.indexOf(32) == -1"
  8393. class="noChoose"
  8394. ></div>
  8395. <div v-else class="isChoose"></div>
  8396. </div>
  8397. </div>
  8398. <div
  8399. class="tool"
  8400. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8401. @click="addTools2(57)"
  8402. >
  8403. <div class="whiteBIcon">
  8404. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8405. <div style="margin: 5px 0">{{ lang.ssCocoPi }}</div>
  8406. </div>
  8407. <div class="check">
  8408. <div
  8409. v-if="checktoolArray.indexOf(57) == -1"
  8410. class="noChoose"
  8411. ></div>
  8412. <div v-else class="isChoose"></div>
  8413. </div>
  8414. </div>
  8415. <div
  8416. class="tool"
  8417. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8418. @click="addTools2(63)"
  8419. >
  8420. <div class="whiteBIcon">
  8421. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8422. <div style="margin: 5px 0">{{ lang.ssTurtle }}</div>
  8423. </div>
  8424. <div class="check">
  8425. <div
  8426. v-if="checktoolArray.indexOf(63) == -1"
  8427. class="noChoose"
  8428. ></div>
  8429. <div v-else class="isChoose"></div>
  8430. </div>
  8431. </div>
  8432. <div
  8433. class="tool"
  8434. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8435. @click="addTools2(71)"
  8436. >
  8437. <div class="whiteBIcon">
  8438. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  8439. <div style="margin: 5px 0">{{ lang.ssAiAgent }}</div>
  8440. </div>
  8441. <div class="check">
  8442. <div
  8443. v-if="checktoolArray.indexOf(71) == -1"
  8444. class="noChoose"
  8445. ></div>
  8446. <div v-else class="isChoose"></div>
  8447. </div>
  8448. </div>
  8449. </div>
  8450. <div class="toolSort" v-if="toolType == 7">
  8451. <div
  8452. class="tool"
  8453. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8454. @click="addTools2(40)"
  8455. >
  8456. <div class="whiteBIcon">
  8457. <img src="../assets/icon/secondToolList/eval.png" alt />
  8458. <div style="margin: 5px 0">{{ lang.ssPersonalEval }}</div>
  8459. </div>
  8460. <div class="check">
  8461. <div
  8462. v-if="checktoolArray.indexOf(40) == -1"
  8463. class="noChoose"
  8464. ></div>
  8465. <div v-else class="isChoose"></div>
  8466. </div>
  8467. </div>
  8468. </div>
  8469. <div class="toolSort" v-if="toolType == 5">
  8470. <div
  8471. class="tool"
  8472. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8473. @click="addTools2(28)"
  8474. >
  8475. <div class="whiteBIcon">
  8476. <img src="../assets/icon/secondToolList/translation.png" alt />
  8477. <div style="margin: 5px 0">{{ lang.ssTranslate }}</div>
  8478. </div>
  8479. <div class="check">
  8480. <div
  8481. v-if="checktoolArray.indexOf(28) == -1"
  8482. class="noChoose"
  8483. ></div>
  8484. <div v-else class="isChoose"></div>
  8485. </div>
  8486. </div>
  8487. <div
  8488. class="tool"
  8489. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8490. @click="addTools2(31)"
  8491. >
  8492. <div class="whiteBIcon">
  8493. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8494. <div style="margin: 5px 0">{{ lang.ssDigitalBoard }}</div>
  8495. </div>
  8496. <div class="check">
  8497. <div
  8498. v-if="checktoolArray.indexOf(31) == -1"
  8499. class="noChoose"
  8500. ></div>
  8501. <div v-else class="isChoose"></div>
  8502. </div>
  8503. </div>
  8504. <div
  8505. class="tool"
  8506. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8507. @click="addTools2(39)"
  8508. >
  8509. <div class="whiteBIcon">
  8510. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8511. <div style="margin: 5px 0">GeoGebra</div>
  8512. </div>
  8513. <div class="check">
  8514. <div
  8515. v-if="checktoolArray.indexOf(39) == -1"
  8516. class="noChoose"
  8517. ></div>
  8518. <div v-else class="isChoose"></div>
  8519. </div>
  8520. </div>
  8521. <div
  8522. class="tool"
  8523. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8524. @click="addTools2(66)"
  8525. >
  8526. <div class="whiteBIcon">
  8527. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8528. <div style="margin: 5px 0">{{ lang.ssFormula }}</div>
  8529. </div>
  8530. <div class="check">
  8531. <div
  8532. v-if="checktoolArray.indexOf(66) == -1"
  8533. class="noChoose"
  8534. ></div>
  8535. <div v-else class="isChoose"></div>
  8536. </div>
  8537. </div>
  8538. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8539. <div class="whiteBIcon" @click="addTools2(67)">
  8540. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8541. <div style="margin: 5px 0">分子结构</div>
  8542. </div>
  8543. <div class="check" @click="addTools2(67)">
  8544. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8545. <div v-else class="isChoose"></div>
  8546. </div>
  8547. </div> -->
  8548. <div
  8549. class="tool"
  8550. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8551. @click="addTools2(68)"
  8552. >
  8553. <div class="whiteBIcon">
  8554. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8555. <div style="margin: 5px 0">{{ lang.ssTimeline }}</div>
  8556. </div>
  8557. <div class="check">
  8558. <div
  8559. v-if="checktoolArray.indexOf(68) == -1"
  8560. class="noChoose"
  8561. ></div>
  8562. <div v-else class="isChoose"></div>
  8563. </div>
  8564. </div>
  8565. <!-- <div
  8566. class="tool"
  8567. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8568. @click="addTools2(69)"
  8569. >
  8570. <div class="whiteBIcon">
  8571. <img src="../assets/icon/secondToolList/english.png" alt />
  8572. <div style="margin: 5px 0">{{ lang.ssEnglishWrite }}</div>
  8573. </div>
  8574. <div class="check">
  8575. <div
  8576. v-if="checktoolArray.indexOf(69) == -1"
  8577. class="noChoose"
  8578. ></div>
  8579. <div v-else class="isChoose"></div>
  8580. </div>
  8581. </div> -->
  8582. </div>
  8583. <div class="toolSort" v-if="toolType == 4">
  8584. <div
  8585. class="tool"
  8586. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8587. @click="addTools2(26)"
  8588. >
  8589. <div class="whiteBIcon">
  8590. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8591. <div style="margin: 5px 0">{{ lang.ssCourseDesignLabel }}</div>
  8592. </div>
  8593. <div class="check">
  8594. <div
  8595. v-if="checktoolArray.indexOf(26) == -1"
  8596. class="noChoose"
  8597. ></div>
  8598. <div v-else class="isChoose"></div>
  8599. </div>
  8600. </div>
  8601. <div
  8602. class="tool"
  8603. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8604. @click="addTools2(25)"
  8605. >
  8606. <div class="whiteBIcon">
  8607. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8608. <div style="margin: 5px 0">{{ lang.ssGoalManageLabel }}</div>
  8609. </div>
  8610. <div class="check">
  8611. <div
  8612. v-if="checktoolArray.indexOf(25) == -1"
  8613. class="noChoose"
  8614. ></div>
  8615. <div v-else class="isChoose"></div>
  8616. </div>
  8617. </div>
  8618. </div>
  8619. </div>
  8620. </div>
  8621. <span
  8622. slot="footer"
  8623. class="dialog-footer"
  8624. style="display: block; text-align: center; padding: 0 0 10px 0"
  8625. >
  8626. <el-button @click="toolDialogVisible = false">{{ lang.ssCancel }}</el-button>
  8627. <el-button type="primary" @click.stop="addToolChoose">{{ lang.ssConfirm }}</el-button>
  8628. </span>
  8629. </div>
  8630. <div
  8631. v-if="replyDialogVisible == true"
  8632. class="addDialogCss"
  8633. v-el-drag-dialog
  8634. >
  8635. <div class="pzTop">
  8636. <div class="teacherPz">
  8637. <div class="teacherPzImg">
  8638. <img src="../assets/icon/teacherPz.png" alt="" />
  8639. </div>
  8640. <div style="margin-left: 10px; height: 25px">{{ lang.ssAddReply }}</div>
  8641. </div>
  8642. <div @click="replyDialogVisible = false">
  8643. <img src="../assets/close1.png" class="pzClose" alt="" />
  8644. </div>
  8645. </div>
  8646. <div class="addPzBox">
  8647. <!-- <div class="addPzCheck">
  8648. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8649. >{{ lang.ssText }}</span
  8650. >
  8651. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8652. >{{ lang.ssAudio }}</span
  8653. >
  8654. </div> -->
  8655. <div style="height: calc(100% - 50px)">
  8656. <editor-bar
  8657. class="binfo_input pzConText"
  8658. style="width: 100% !important; margin: 0 auto"
  8659. :placeholder="lang.ssEnterReply"
  8660. v-model="reply"
  8661. @change="change"
  8662. ></editor-bar>
  8663. </div>
  8664. <div class="addTextCss" @click="addHf">{{ lang.ssConfirm }}</div>
  8665. </div>
  8666. </div>
  8667. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8668. <div class="pzTop">
  8669. <div class="teacherPz">
  8670. <div class="teacherPzImg">
  8671. <img src="../assets/icon/teacherPz.png" alt="" />
  8672. </div>
  8673. <div style="margin-left: 10px; height: 25px">{{ lang.ssTeacherComment }}</div>
  8674. </div>
  8675. <div @click="addPzDialog = false">
  8676. <img src="../assets/close1.png" class="pzClose" alt="" />
  8677. </div>
  8678. </div>
  8679. <div class="addPzBox">
  8680. <div class="addPzCheck">
  8681. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8682. >{{ lang.ssText }}</span
  8683. >
  8684. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8685. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8686. >{{ lang.ssAudio }}</span
  8687. >
  8688. </div>
  8689. <div style="height: calc(100% - 95px)">
  8690. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8691. v-if="pzType == 1"></textarea> -->
  8692. <editor-bar
  8693. class="binfo_input pzConText"
  8694. style="width: 100% !important"
  8695. :placeholder="lang.ssEnterTaskDesc"
  8696. v-model="pzConText"
  8697. @change="change"
  8698. v-if="pzType == 1"
  8699. ></editor-bar>
  8700. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8701. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8702. <div @click="addImg($event)">
  8703. <el-button type="primary">{{ lang.ssUploadImage }}</el-button>
  8704. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8705. @change="beforeUpload1($event, 4)" />
  8706. </div>
  8707. </div> -->
  8708. </div>
  8709. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8710. {{ lang.ssConfirm }}
  8711. </div>
  8712. </div>
  8713. </div>
  8714. <div v-if="proVisible" class="mask">
  8715. <div class="progressBox">
  8716. <!-- <div id="closePro" class="closeCss">
  8717. <img src="../assets/icon/close.png" alt />
  8718. </div> -->
  8719. <div class="lbox">
  8720. <img src="../assets/loading.gif" />{{ lang.ssUploading }}
  8721. </div>
  8722. <div style="margin-bottom: 10px">
  8723. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8724. </div>
  8725. <el-progress
  8726. :text-inside="true"
  8727. :stroke-width="20"
  8728. :percentage="progress"
  8729. style="width: 80%"
  8730. ></el-progress>
  8731. </div>
  8732. </div>
  8733. <div v-if="proVisible2" class="mask">
  8734. <div class="progressBox">
  8735. <div class="lbox">
  8736. <img src="../assets/loading.gif" />{{ lang.ssUploading }}
  8737. </div>
  8738. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8739. </div>
  8740. </div>
  8741. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8742. <img width="100%" :src="dialogImageUrl" alt />
  8743. </el-dialog>
  8744. <el-dialog
  8745. :title="noteName != '' ? noteName : lang.ssViewSurvey"
  8746. :visible.sync="dialogVisible5"
  8747. :append-to-body="true"
  8748. width="1000px"
  8749. :before-close="handleClose"
  8750. class="dialog_diy dialog_diy3"
  8751. >
  8752. <div>
  8753. <div
  8754. class="a_add_title"
  8755. style="
  8756. display: flex;
  8757. flex-direction: row;
  8758. align-items: center;
  8759. justify-content: center;
  8760. "
  8761. >
  8762. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitleColon }}</div>
  8763. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8764. </div>
  8765. <div class="a_addBox">
  8766. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8767. {{ lang.ssQuestionContent }}
  8768. </div>
  8769. <div
  8770. class="a_add_box"
  8771. v-for="(item1, index1) in askJson.askCount"
  8772. :key="index1"
  8773. >
  8774. <div class="a_add_head">
  8775. <div style="display: flex">
  8776. <span class="askIndex"> {{ index1 + 1 }}</span>
  8777. <div>{{ lang.ssQuestionColon }}{{ askJson.askJson[index1].askstitle }}</div>
  8778. </div>
  8779. <img
  8780. v-if="askJson.askJson[index1].img"
  8781. :src="askJson.askJson[index1].img"
  8782. style="height: 300px; margin-top: 10px; max-width: 100%"
  8783. />
  8784. </div>
  8785. <div class="a_add_body">
  8786. <div class="a_add_input">
  8787. <el-radio-group
  8788. v-model="radio[index1]"
  8789. v-if="
  8790. askJson.askJson[index1].type == '1' ||
  8791. !askJson.askJson[index1].type
  8792. "
  8793. >
  8794. <el-radio
  8795. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8796. .checkList"
  8797. :key="checkIndex"
  8798. :label="checkIndex"
  8799. :disabled="isAnswer"
  8800. class="redioStyle"
  8801. ><span v-html="item2"></span
  8802. ></el-radio>
  8803. </el-radio-group>
  8804. <el-checkbox-group
  8805. v-model="radio[index1]"
  8806. v-if="askJson.askJson[index1].type == '2'"
  8807. >
  8808. <el-checkbox
  8809. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8810. .checkList"
  8811. :key="checkIndex1"
  8812. :label="checkIndex1"
  8813. :disabled="isAnswer"
  8814. class="redioStyle"
  8815. ><span v-html="item2"></span>
  8816. </el-checkbox>
  8817. </el-checkbox-group>
  8818. </div>
  8819. </div>
  8820. </div>
  8821. </div>
  8822. </div>
  8823. <span slot="footer" class="dialog-footer">
  8824. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8825. >{{lang.ssCancelBtn}}</el-button
  8826. >
  8827. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8828. >{{lang.ssConfirmBtn}}</el-button
  8829. >
  8830. </span>
  8831. </el-dialog>
  8832. <el-dialog
  8833. :title="noteName != '' ? noteName : lang.ssViewSurvey"
  8834. :visible.sync="dialogVisible5Teacher"
  8835. :append-to-body="true"
  8836. width="1000px"
  8837. :before-close="handleClose"
  8838. class="dialog_diy dialog_diy3"
  8839. >
  8840. <div>
  8841. <div class="w_name">
  8842. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  8843. </div>
  8844. <div
  8845. class="a_add_title"
  8846. style="
  8847. display: flex;
  8848. flex-direction: row;
  8849. align-items: center;
  8850. justify-content: center;
  8851. "
  8852. >
  8853. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitleColon }}</div>
  8854. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8855. </div>
  8856. <div class="a_addBox">
  8857. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8858. {{ lang.ssQuestionContent }}
  8859. </div>
  8860. <div
  8861. class="a_add_box"
  8862. v-for="(item1, index1) in askJson.askCount"
  8863. :key="index1"
  8864. >
  8865. <div class="a_add_head">
  8866. <div style="display: flex">
  8867. <span class="askIndex">{{ index1 + 1 }}</span>
  8868. <div>{{ lang.ssQuestionColon }}{{ askJson.askJson[index1].askstitle }}</div>
  8869. </div>
  8870. <img
  8871. v-if="askJson.askJson[index1].img"
  8872. :src="askJson.askJson[index1].img"
  8873. style="height: 300px; margin-top: 10px; max-width: 100%"
  8874. />
  8875. </div>
  8876. <div class="a_add_body">
  8877. <div class="a_add_input">
  8878. <el-radio-group
  8879. v-model="radio[index1]"
  8880. v-if="
  8881. askJson.askJson[index1].type == '1' ||
  8882. !askJson.askJson[index1].type
  8883. "
  8884. >
  8885. <el-radio
  8886. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8887. .checkList"
  8888. :key="checkIndex"
  8889. :label="checkIndex"
  8890. :disabled="isAnswer"
  8891. class="redioStyle"
  8892. ><span v-html="item2"></span
  8893. ></el-radio>
  8894. </el-radio-group>
  8895. <el-checkbox-group
  8896. v-model="radio[index1]"
  8897. v-if="askJson.askJson[index1].type == '2'"
  8898. >
  8899. <el-checkbox
  8900. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8901. .checkList"
  8902. :key="checkIndex1"
  8903. :label="checkIndex1"
  8904. :disabled="isAnswer"
  8905. class="redioStyle"
  8906. ><span v-html="item2"></span>
  8907. </el-checkbox>
  8908. </el-checkbox-group>
  8909. </div>
  8910. </div>
  8911. </div>
  8912. </div>
  8913. </div>
  8914. <span slot="footer" class="dialog-footer">
  8915. <el-button
  8916. @click="dialogVisible5Teacher = false"
  8917. v-show="noteName == ''"
  8918. >{{lang.ssCancelBtn}}</el-button
  8919. >
  8920. <el-button
  8921. type="primary"
  8922. @click="addStudentAskTeacher"
  8923. v-show="noteName == ''"
  8924. >{{lang.ssConfirmBtn}}</el-button
  8925. >
  8926. </span>
  8927. </el-dialog>
  8928. <el-dialog
  8929. :title="noteName != '' ? noteName : lang.ssViewChoice"
  8930. :visible.sync="dialogVisibleChoice"
  8931. :append-to-body="true"
  8932. width="1000px"
  8933. :before-close="handleClose"
  8934. class="dialog_diy dialog_diy3"
  8935. >
  8936. <div>
  8937. <!-- <div class="a_add_title" style="
  8938. display: flex;
  8939. flex-direction: row;
  8940. align-items: center;
  8941. justify-content: center;
  8942. ">
  8943. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitleColon }}</div>
  8944. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  8945. </div> -->
  8946. <div class="a_addBox">
  8947. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8948. {{ lang.ssQuestionContent }}
  8949. </div>
  8950. <div
  8951. class="a_add_box"
  8952. v-for="(item1, index1) in testJson.testCount"
  8953. :key="index1"
  8954. >
  8955. <div class="a_add_head">
  8956. <div style="display: flex;">
  8957. <span class="askIndex">{{ index1 + 1 }}</span>
  8958. <div
  8959. v-if="testJson.testJson[index1].type == '1'"
  8960. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  8961. >
  8962. {{ lang.ssSingleChoice }}
  8963. </div>
  8964. <div
  8965. v-if="testJson.testJson[index1].type == '2'"
  8966. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  8967. >
  8968. {{ lang.ssMultiChoice }}
  8969. </div>
  8970. <div class="renderedFor"><span>{{lang.ssQuestionColon}}</span> <span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  8971. </div>
  8972. <img
  8973. v-if="testJson.testJson[index1].img"
  8974. :src="testJson.testJson[index1].img"
  8975. style="height: 300px; margin-top: 10px; max-width: 100%"
  8976. />
  8977. </div>
  8978. <div
  8979. class="timuImgBox"
  8980. v-if="
  8981. testJson.testJson[index1].timuList &&
  8982. testJson.testJson[index1].timuList.length
  8983. "
  8984. >
  8985. <div
  8986. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8987. :key="tIndex"
  8988. class="timuImg"
  8989. @click.stop="previewImg(timg.src)"
  8990. >
  8991. <img :src="timg.src" alt="" />
  8992. </div>
  8993. </div>
  8994. <div class="a_add_body">
  8995. <div class="a_add_input">
  8996. <el-radio-group
  8997. v-model="radio[index1]"
  8998. v-if="testJson.testJson[index1].type == '1'"
  8999. >
  9000. <div class="radioBox">
  9001. <el-radio
  9002. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9003. .checkList"
  9004. :key="checkIndex"
  9005. :label="checkIndex"
  9006. :disabled="isAnswer"
  9007. class="redioStyle"
  9008. >
  9009. <div
  9010. style="margin-right: 10px"
  9011. v-if="item2 && item2.imgType && item2.imgType == 1"
  9012. >
  9013. <div class="inImg" @click.stop="previewImg(item2.src)">
  9014. <img :src="item2.src" alt="" />
  9015. </div>
  9016. </div>
  9017. <span v-else v-html="item2"></span>
  9018. </el-radio>
  9019. </div>
  9020. </el-radio-group>
  9021. <el-checkbox-group
  9022. v-model="radio[index1]"
  9023. v-if="testJson.testJson[index1].type == '2'"
  9024. >
  9025. <div class="radioBox">
  9026. <el-checkbox
  9027. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9028. .checkList"
  9029. :key="checkIndex"
  9030. :label="checkIndex"
  9031. :disabled="isAnswer"
  9032. class="redioStyle"
  9033. >
  9034. <div
  9035. style="margin-right: 10px"
  9036. v-if="item2 && item2.imgType && item2.imgType == 1"
  9037. >
  9038. <div class="inImg" @click.stop="previewImg(item2.src)">
  9039. <img :src="item2.src" alt="" />
  9040. </div>
  9041. </div>
  9042. <span v-else v-html="item2"></span>
  9043. </el-checkbox>
  9044. </div>
  9045. </el-checkbox-group>
  9046. </div>
  9047. </div>
  9048. </div>
  9049. </div>
  9050. </div>
  9051. <span slot="footer" class="dialog-footer">
  9052. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9053. >{{lang.ssCancelBtn}}</el-button
  9054. >
  9055. <el-button
  9056. type="primary"
  9057. @click="addStudentTest"
  9058. v-show="noteName == ''"
  9059. >{{lang.ssConfirmBtn}}</el-button
  9060. >
  9061. </span>
  9062. </el-dialog>
  9063. <el-dialog
  9064. :title="noteName != '' ? noteName : lang.ssViewChoice"
  9065. :visible.sync="dialogVisibleChoiceTeacher"
  9066. :append-to-body="true"
  9067. width="1000px"
  9068. :before-close="handleClose"
  9069. class="dialog_diy dialog_diy3"
  9070. >
  9071. <div>
  9072. <div class="w_name">
  9073. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  9074. </div>
  9075. <div class="a_addBox">
  9076. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9077. {{ lang.ssQuestionContent }}
  9078. </div>
  9079. <div
  9080. class="a_add_box"
  9081. v-for="(item1, index1) in testJson.testCount"
  9082. :key="index1"
  9083. >
  9084. <div class="a_add_head">
  9085. <div style="display: flex">
  9086. <span class="askIndex">{{ index1 + 1 }}</span>
  9087. <div
  9088. v-if="testJson.testJson[index1].type == '1'"
  9089. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9090. >
  9091. {{ lang.ssSingleChoice }}
  9092. </div>
  9093. <div
  9094. v-if="testJson.testJson[index1].type == '2'"
  9095. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9096. >
  9097. {{ lang.ssMultiChoice }}
  9098. </div>
  9099. <div>{{ lang.ssQuestionColon }}{{ testJson.testJson[index1].teststitle }}</div>
  9100. </div>
  9101. <img
  9102. v-if="testJson.testJson[index1].img"
  9103. :src="testJson.testJson[index1].img"
  9104. style="height: 300px; margin-top: 10px; max-width: 100%"
  9105. />
  9106. </div>
  9107. <div
  9108. class="timuImgBox"
  9109. v-if="
  9110. testJson.testJson[index1].timuList &&
  9111. testJson.testJson[index1].timuList.length
  9112. "
  9113. >
  9114. <div
  9115. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9116. :key="tIndex"
  9117. class="timuImg"
  9118. @click.stop="previewImg(timg.src)"
  9119. >
  9120. <img :src="timg.src" alt="" />
  9121. </div>
  9122. </div>
  9123. <div class="a_add_body">
  9124. <div class="a_add_input">
  9125. <el-radio-group
  9126. v-model="radio[index1]"
  9127. v-if="testJson.testJson[index1].type == '1'"
  9128. >
  9129. <div class="radioBox">
  9130. <el-radio
  9131. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9132. .checkList"
  9133. :key="checkIndex"
  9134. :label="checkIndex"
  9135. :disabled="isAnswer"
  9136. class="redioStyle"
  9137. >
  9138. <div
  9139. style="margin-right: 10px"
  9140. v-if="item2 && item2.imgType && item2.imgType == 1"
  9141. >
  9142. <div class="inImg" @click.stop="previewImg(item2.src)">
  9143. <img :src="item2.src" alt="" />
  9144. </div>
  9145. </div>
  9146. <span v-else v-html="item2"></span>
  9147. </el-radio>
  9148. </div>
  9149. </el-radio-group>
  9150. <el-checkbox-group
  9151. v-model="radio[index1]"
  9152. v-if="testJson.testJson[index1].type == '2'"
  9153. >
  9154. <div class="radioBox">
  9155. <el-checkbox
  9156. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9157. .checkList"
  9158. :key="checkIndex"
  9159. :label="checkIndex"
  9160. :disabled="isAnswer"
  9161. class="redioStyle"
  9162. >
  9163. <div
  9164. style="margin-right: 10px"
  9165. v-if="item2 && item2.imgType && item2.imgType == 1"
  9166. >
  9167. <div class="inImg" @click.stop="previewImg(item2.src)">
  9168. <img :src="item2.src" alt="" />
  9169. </div>
  9170. </div>
  9171. <span v-else v-html="item2"></span>
  9172. </el-checkbox>
  9173. </div>
  9174. </el-checkbox-group>
  9175. </div>
  9176. </div>
  9177. </div>
  9178. </div>
  9179. </div>
  9180. <span slot="footer" class="dialog-footer">
  9181. <el-button
  9182. @click="dialogVisibleChoiceTeacher = false"
  9183. v-show="noteName == ''"
  9184. >{{lang.ssCancelBtn}}</el-button
  9185. >
  9186. <el-button
  9187. type="primary"
  9188. @click="addStudentTestTeacher"
  9189. v-show="noteName == ''"
  9190. >{{lang.ssConfirmBtn}}</el-button
  9191. >
  9192. </span>
  9193. </el-dialog>
  9194. <el-dialog
  9195. :title="lang.ssViewRichText"
  9196. :visible.sync="dialogVisible1"
  9197. :append-to-body="true"
  9198. width="500px"
  9199. :before-close="handleClose"
  9200. class="dialog_diy textCss"
  9201. >
  9202. <el-form style="font-size: 20px">
  9203. <el-form-item :label="lang.ssTextTitle" class="textTitle">
  9204. <div style="font-size: 20px">{{ text.name }}</div>
  9205. </el-form-item>
  9206. <div>{{ lang.ssRichTextContent }}</div>
  9207. <div
  9208. v-html="text.url"
  9209. style="font-size: 18px; padding: 40px 0 0 0"
  9210. ></div>
  9211. </el-form>
  9212. <span slot="footer" class="dialog-footer">
  9213. <el-button type="primary" @click="dialogVisible1 = false"
  9214. >{{ lang.ssConfirmBtn }}</el-button
  9215. >
  9216. </span>
  9217. </el-dialog>
  9218. <el-dialog
  9219. :title="lang.ssFilePreview"
  9220. :visible.sync="dialogVisible3"
  9221. width="50%"
  9222. :before-close="handleClose"
  9223. class="dialog_diy"
  9224. :class="{ fullStyle: full }"
  9225. >
  9226. <div slot="title" class="header-title">
  9227. <div style="color: #fff">{{ lang.ssFilePreview }}</div>
  9228. <div style="position: absolute; top: 19px; right: 50px">
  9229. <img
  9230. src="../assets/full.png"
  9231. style="height: 16px; cursor: pointer"
  9232. alt=""
  9233. @click="fullTools"
  9234. />
  9235. </div>
  9236. </div>
  9237. <pdf
  9238. v-if="showPDF"
  9239. :pdfUrl="pptImgUrl"
  9240. style="width: 100%; height: 520px; overflow: auto"
  9241. :class="{ fullStyle: full }"
  9242. ></pdf>
  9243. <iframe
  9244. v-else
  9245. :src="pptImgUrl"
  9246. frameborder="0"
  9247. width="100%"
  9248. height="600"
  9249. :class="{ fullStyle: full }"
  9250. ></iframe>
  9251. </el-dialog>
  9252. <el-dialog
  9253. :title="lang.ssFilePreview"
  9254. :visible.sync="dialogVisible6"
  9255. width="50%"
  9256. :before-close="handleClose"
  9257. class="dialog_diy"
  9258. >
  9259. <iframe
  9260. :src="pptImgUrl1"
  9261. frameborder="0"
  9262. width="100%"
  9263. height="600"
  9264. ></iframe>
  9265. </el-dialog>
  9266. <el-dialog
  9267. :title="lang.ssTip"
  9268. :visible.sync="dialogVisible4"
  9269. :append-to-body="true"
  9270. width="800px"
  9271. :before-close="handleClose"
  9272. class="dialog_diy notice"
  9273. >
  9274. <div>{{ lang.ssFunctionNotOpen }}</div>
  9275. <el-button type="primary" @click="dialogVisible4 = false">{{ lang.ssConfirmBtn }}</el-button>
  9276. </el-dialog>
  9277. <el-dialog
  9278. :title="lang.ssQa"
  9279. :visible.sync="answerDialogVisible"
  9280. :append-to-body="true"
  9281. width="800px"
  9282. :before-close="handleClose"
  9283. class="dialog_diy"
  9284. >
  9285. <div>
  9286. <div
  9287. style="
  9288. display: flex;
  9289. flex-wrap: nowrap;
  9290. flex-direction: column;
  9291. position: relative;
  9292. "
  9293. >
  9294. <div class="queTop" style="padding: 20px 0 20px 0">
  9295. <div class="question">
  9296. <img src="../assets/icon/question.png" alt />
  9297. </div>
  9298. <div class="queTitle">
  9299. <div style="min-width: 60px">{{ lang.ssQuestionColon }}</div>
  9300. <div>{{ answerQ }}</div>
  9301. </div>
  9302. </div>
  9303. <div class="ediBottom">
  9304. <textarea
  9305. rows="6"
  9306. class="binfo_input"
  9307. cols
  9308. style="width: 95%; height: 120px"
  9309. v-model="questionAnswer"
  9310. ></textarea>
  9311. </div>
  9312. </div>
  9313. </div>
  9314. <div slot="footer">
  9315. <el-button @click="answerDialogVisible = false">{{lang.ssCancelBtn}}</el-button>
  9316. <el-button type="primary" @click="addQuestion">{{ lang.ssSubmit }}</el-button>
  9317. </div>
  9318. </el-dialog>
  9319. <el-dialog
  9320. :title="lang.ssQa"
  9321. :visible.sync="answerDialogVisibleTeacher"
  9322. :append-to-body="true"
  9323. width="800px"
  9324. :before-close="handleClose"
  9325. class="dialog_diy"
  9326. >
  9327. <div>
  9328. <div class="w_name">
  9329. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  9330. </div>
  9331. <div
  9332. style="
  9333. display: flex;
  9334. flex-wrap: nowrap;
  9335. flex-direction: column;
  9336. position: relative;
  9337. "
  9338. >
  9339. <div class="queTop" style="padding: 20px 0 20px 0">
  9340. <div class="question">
  9341. <img src="../assets/icon/question.png" alt />
  9342. </div>
  9343. <div class="queTitle">
  9344. <div style="min-width: 60px">{{ lang.ssQuestionColon }}</div>
  9345. <div>{{ answerQ }}</div>
  9346. </div>
  9347. </div>
  9348. <div class="ediBottom">
  9349. <textarea
  9350. rows="6"
  9351. class="binfo_input"
  9352. cols
  9353. style="width: 95%; height: 120px"
  9354. v-model="questionAnswer"
  9355. ></textarea>
  9356. </div>
  9357. </div>
  9358. </div>
  9359. <div slot="footer">
  9360. <el-button @click="answerDialogVisibleTeacher = false">{{lang.ssCancelBtn}}</el-button>
  9361. <el-button type="primary" @click="addQuestionTeacher">{{ lang.ssSubmit }}</el-button>
  9362. </div>
  9363. </el-dialog>
  9364. <el-dialog
  9365. :title="lang.ssCountdown"
  9366. :visible.sync="timeDialogVisible"
  9367. :append-to-body="true"
  9368. width="800px"
  9369. :before-close="handleClose"
  9370. class="dialog_diy"
  9371. >
  9372. <div>
  9373. <div style="margin-bottom: 20px; color: #999">
  9374. {{ lang.ssCountdownHint }}
  9375. </div>
  9376. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9377. </div>
  9378. <div slot="footer">
  9379. <el-button @click="timeDialogVisible = false">{{ lang.ssCloseBtn }}</el-button>
  9380. </div>
  9381. </el-dialog>
  9382. <el-dialog
  9383. :title="lang.ssPermissionSettings"
  9384. :visible.sync="juriVisible"
  9385. :append-to-body="true"
  9386. width="400px"
  9387. :before-close="handleClose"
  9388. class="dialog_diy"
  9389. >
  9390. <div>
  9391. <div class="open_box">
  9392. <div class="switch_box">
  9393. <span>{{ lang.ssAllowStudentViewAllWork }}</span>
  9394. <el-switch
  9395. v-model="sIsOpen"
  9396. active-text=""
  9397. class="switchCss"
  9398. @change="updateSLook"
  9399. ></el-switch>
  9400. </div>
  9401. <div
  9402. class="switch_box"
  9403. v-if="
  9404. (courseDetail.userid == userid ||
  9405. (courseDetail.course_teacher &&
  9406. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  9407. "
  9408. >
  9409. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9410. <span>{{ lang.ssProhibitStudentViewStage }}</span>
  9411. <el-switch
  9412. v-model="IsLookOpen"
  9413. active-text=""
  9414. class="switchCss"
  9415. @change="updateLookOpen"
  9416. ></el-switch>
  9417. </div>
  9418. <div class="switch_box" v-if="(courseDetail.userid == userid ||
  9419. (courseDetail.course_teacher &&
  9420. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen">
  9421. <span>{{ lang.ssEnableFollowMode }}</span>
  9422. <el-switch
  9423. v-model="IsFollow"
  9424. active-text=""
  9425. class="switchCss"
  9426. @change="updateFollow"
  9427. ></el-switch>
  9428. </div>
  9429. <div class="switch_box" v-if="courseDetail.userid == userid">
  9430. <span>{{ lang.ssAllowStudentViewContent }}</span>
  9431. <el-switch
  9432. v-model="IsStulook"
  9433. active-text=""
  9434. class="switchCss"
  9435. @change="updateIsStulook"
  9436. ></el-switch>
  9437. </div>
  9438. </div>
  9439. </div>
  9440. <div slot="footer">
  9441. <el-button
  9442. style="background: #409efe; color: #fff"
  9443. @click="juriVisible = false"
  9444. >{{ lang.ssCloseBtn }}</el-button
  9445. >
  9446. </div>
  9447. </el-dialog>
  9448. <el-dialog
  9449. :title="lang.ssViewVideo"
  9450. :visible.sync="videoVisible"
  9451. :append-to-body="true"
  9452. width="1000px"
  9453. :before-close="handleClose"
  9454. class="dialog_diy1"
  9455. >
  9456. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9457. <video-player
  9458. class="video-player vjs-custom-skin"
  9459. :playsinline="true"
  9460. :options="videoDetail"
  9461. @play="onPlayerPlay($event)"
  9462. style="width: 100%; height: 100%"
  9463. ></video-player>
  9464. </div>
  9465. <div slot="footer">
  9466. <el-button
  9467. style="background: #409efe; color: #fff"
  9468. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9469. >
  9470. {{ lang.ssCloseBtn }}</el-button
  9471. >
  9472. </div>
  9473. </el-dialog>
  9474. <el-dialog
  9475. :title="lang.ssViewDetails"
  9476. :visible.sync="commentDialogVisible"
  9477. :append-to-body="true"
  9478. width="800px"
  9479. :before-close="handleClose"
  9480. class="dialog_diy"
  9481. >
  9482. <div class="commentTop">
  9483. <div class="studentDetail">
  9484. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9485. <div class="nameAndTime">
  9486. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9487. <div>{{ commentDetail.time }}</div>
  9488. </div>
  9489. <div
  9490. class="returnBtn"
  9491. style="margin-left: auto; width: 80px"
  9492. v-if="
  9493. commentDetail.works &&
  9494. commentDetail.type == 0 &&
  9495. (tType == 1 || tType == 4)
  9496. "
  9497. @click="
  9498. showPicturePaint(
  9499. commentDetail.img ? commentDetail.img : commentDetail.works
  9500. )
  9501. "
  9502. >
  9503. {{ lang.ssTeacherComment }}
  9504. </div>
  9505. </div>
  9506. <div
  9507. class="worksAnswer"
  9508. v-if="commentDetail.works && commentDetail.type == 2"
  9509. >
  9510. {{ JSON.parse(commentDetail.works)[0].answer }}
  9511. </div>
  9512. <div
  9513. class="worksAnswer"
  9514. v-if="commentDetail.works && commentDetail.type == 1"
  9515. >
  9516. <img
  9517. src="../assets/teacherWork.png"
  9518. v-if="commentDetail.ateacher"
  9519. class="w_teachert"
  9520. />
  9521. <pdf
  9522. v-if="showPDF"
  9523. :pdfUrl="pptImgUrl"
  9524. style="width: 100%; height: 520px; overflow: auto"
  9525. :class="{ fullStyle: full }"
  9526. ></pdf>
  9527. <iframe
  9528. v-else
  9529. :src="pptImgUrl"
  9530. frameborder="0"
  9531. width="100%"
  9532. height="600"
  9533. :class="{ fullStyle: full }"
  9534. ></iframe>
  9535. </div>
  9536. <div
  9537. class="worksAnswer"
  9538. v-if="commentDetail.works && commentDetail.type == 0"
  9539. >
  9540. <img
  9541. src="../assets/teacherWork.png"
  9542. v-if="commentDetail.ateacher"
  9543. class="w_teachert"
  9544. style="right: 105px"
  9545. />
  9546. <img
  9547. :src="commentDetail.works"
  9548. alt=""
  9549. @click="previewImg(commentDetail.works)"
  9550. />
  9551. </div>
  9552. <div
  9553. class="worksAnswer"
  9554. v-if="commentDetail.works && commentDetail.type == 3"
  9555. >
  9556. <img
  9557. src="../assets/teacherWork.png"
  9558. v-if="commentDetail.ateacher"
  9559. class="w_teachert"
  9560. />
  9561. <video-player
  9562. class="video-player vjs-custom-skin"
  9563. :playsinline="true"
  9564. :options="videoDetail"
  9565. @play="onPlayerPlay($event)"
  9566. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9567. ></video-player>
  9568. </div>
  9569. <div
  9570. class="worksAnswer"
  9571. v-if="commentDetail.works && commentDetail.type == 10"
  9572. >
  9573. <div class="cont" v-html="commentDetail.works.text"></div>
  9574. </div>
  9575. <div
  9576. class="worksAnswer codeFileBox"
  9577. v-if="commentDetail.works && commentDetail.type == 12"
  9578. @click="downloadFile(commentDetail.works)"
  9579. >
  9580. <img src="../assets/icon/codeFile.png" />
  9581. <div>{{ lang.ssClickDownloadFile }}</div>
  9582. </div>
  9583. <div
  9584. class="worksAnswer codeFileBox"
  9585. v-if="commentDetail.works && commentDetail.type == 15"
  9586. @click="
  9587. openCocoPi(
  9588. 57,
  9589. commentIndexJson.toolIndex,
  9590. commentDetail.userid,
  9591. commentDetail.sName
  9592. )
  9593. "
  9594. >
  9595. <img src="../assets/icon/codeFile.png" />
  9596. <div>{{ lang.ssClickOpenCocoPi }}</div>
  9597. </div>
  9598. <div
  9599. class="worksAnswer"
  9600. v-if="commentDetail.works && commentDetail.type == 13"
  9601. >
  9602. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9603. </div>
  9604. <div
  9605. class="worksAnswer"
  9606. v-if="commentDetail.works && commentDetail.type == 4"
  9607. >
  9608. <div class="evalCss">
  9609. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  9610. <div class="middleBox" v-if="eScore.eStar">
  9611. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9612. <div class="nameAndrate">
  9613. <div>{{ e.value }}</div>
  9614. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9615. </div>
  9616. <div v-if="e.detail">{{ e.detail }}</div>
  9617. </div>
  9618. <div class="bz">
  9619. <textarea
  9620. disabled
  9621. rows="4"
  9622. class="pj"
  9623. style="
  9624. padding: 10px 5px;
  9625. width: 70%;
  9626. background: #f7f6f9;
  9627. font-size: 14px;
  9628. text-indent: 10px;
  9629. color: #000;
  9630. "
  9631. cols
  9632. v-model="eScore.eBzText"
  9633. :placeholder="lang.ssEnterEvalContent"
  9634. ></textarea>
  9635. </div>
  9636. </div>
  9637. </div>
  9638. </div>
  9639. <div class="comment">
  9640. <div class="commentList">
  9641. <div class="commentImg">
  9642. <img
  9643. @click="
  9644. isLikes(
  9645. commentDetail.wid,
  9646. userid,
  9647. 1,
  9648. null,
  9649. commentDetail.isLikes,
  9650. commentDetail.sName
  9651. )
  9652. "
  9653. :src="commentDetail.isLikes == true ? likes : noLikes"
  9654. alt=""
  9655. />
  9656. </div>
  9657. <div>{{ commentDetail.likesCount }}</div>
  9658. </div>
  9659. <div class="commentList">
  9660. <div class="commentImg">
  9661. <img src="../assets/icon/comment/comment.png" alt="" />
  9662. </div>
  9663. <div>{{ commentDetail.commentCount }}</div>
  9664. </div>
  9665. </div>
  9666. <div class="drawPBox" v-if="commentDetail.img">
  9667. <span>{{ lang.ssTeacherComment }}</span>
  9668. <img
  9669. :src="commentDetail.img"
  9670. alt=""
  9671. @click="previewImg(commentDetail.img)"
  9672. />
  9673. <span
  9674. class="deleteImg"
  9675. v-if="tType == 1 || tType == 4"
  9676. @click.stop="deletePicturePaint(commentDetail.wid)"
  9677. style="
  9678. font-size: 14px;
  9679. width: auto !important;
  9680. color: #b4b4b4;
  9681. top: unset;
  9682. bottom: 0;
  9683. border: none;
  9684. padding: 0;
  9685. height: auto !important;
  9686. margin: 0;
  9687. "
  9688. >{{ lang.ssDelete }}</span
  9689. >
  9690. </div>
  9691. </div>
  9692. <div class="commentBox">
  9693. <div class="pl">{{ lang.ssCommentColon }}</div>
  9694. <div style="max-height: 200px; overflow: auto">
  9695. <div
  9696. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9697. style="padding: 10px 0 0 0"
  9698. >
  9699. <div
  9700. class="studentDetail"
  9701. style="padding-top: 10px"
  9702. v-for="(co, coIndex) in commentDetail.commentJson"
  9703. :key="coIndex"
  9704. >
  9705. <div class="tx" style="min-width: 50px">
  9706. <img src="../assets/avatar.png" alt="" />
  9707. </div>
  9708. <div class="plPerson">
  9709. <div class="plName">
  9710. <div>{{ co.commentPeople }}</div>
  9711. <div style="margin-left: 5px">
  9712. {{ co.commentTime }}
  9713. </div>
  9714. <div
  9715. class="deleteComment"
  9716. v-if="userid == co.userid"
  9717. @click="deleteComment(co.wid)"
  9718. >
  9719. {{ lang.ssDelete }}
  9720. </div>
  9721. </div>
  9722. <div class="plContent">{{ co.commentText }}</div>
  9723. </div>
  9724. </div>
  9725. </div>
  9726. <div v-else style="padding: 10px 0 0 0">{{ lang.ssNoComments }}</div>
  9727. </div>
  9728. </div>
  9729. <div style="margin-top: 10px">
  9730. <div class="displayBox">
  9731. <div
  9732. style="
  9733. color: #556db4;
  9734. font-size: 14px;
  9735. font-weight: bold;
  9736. padding-bottom: 10px;
  9737. "
  9738. >
  9739. {{ lang.ssEvaluation }}
  9740. </div>
  9741. <div class="easy_comment" v-if="false">
  9742. <div
  9743. v-for="(p, pIndex) in PlTextList"
  9744. :key="pIndex"
  9745. @click="fastText(p, 1)"
  9746. >
  9747. {{ p }}
  9748. </div>
  9749. </div>
  9750. </div>
  9751. <div>
  9752. <textarea
  9753. rows="3"
  9754. class="pj"
  9755. style="padding: 10px 5px"
  9756. cols
  9757. v-model="commentText"
  9758. :placeholder="lang.ssEnterComment"
  9759. ></textarea>
  9760. </div>
  9761. </div>
  9762. <div slot="footer">
  9763. <el-button
  9764. @click="
  9765. (commentDialogVisible = false),
  9766. (commentIndexJson = {}),
  9767. videoDetail.sources && videoDetail.sources[0]
  9768. ? (videoDetail.sources[0].src = '')
  9769. : ''
  9770. "
  9771. >{{lang.ssCancelBtn}}</el-button
  9772. >
  9773. <el-button
  9774. type="primary"
  9775. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  9776. >{{lang.ssConfirmBtn}}</el-button
  9777. >
  9778. </div>
  9779. </el-dialog>
  9780. <el-dialog
  9781. :title="lang.ssViewDocument"
  9782. :visible.sync="fullDialogVisible"
  9783. :append-to-body="true"
  9784. width="100%"
  9785. :before-close="handleClose"
  9786. :show-close="false"
  9787. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  9788. >
  9789. <div slot="title" class="header-title">
  9790. <div v-if="fulltype == 4" style="color: #fff">{{ lang.ssAIApplication }}</div>
  9791. <div v-else style="color: #fff">{{ lang.ssViewDocument }}</div>
  9792. <div
  9793. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  9794. style="
  9795. cursor: pointer;
  9796. position: absolute;
  9797. top: 20px;
  9798. right: 20px;
  9799. color: #fff;
  9800. "
  9801. >
  9802. {{ lang.ssExitFullscreen }}
  9803. </div>
  9804. </div>
  9805. <div style="height: 100%;position: relative;">
  9806. <el-button
  9807. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  9808. size="medium"
  9809. type="primary"
  9810. @click="
  9811. () => {
  9812. (fullDialogVisible = false),
  9813. changeSplitScreenBehavior({ code: 99 });
  9814. }
  9815. "
  9816. style="
  9817. cursor: pointer;
  9818. position: absolute;
  9819. top: 10px;
  9820. right: 20px;
  9821. color: #fff;
  9822. "
  9823. >
  9824. {{ lang.ssExitFullscreen }}
  9825. </el-button>
  9826. <div
  9827. class="wheel"
  9828. v-if="fulltype == 1"
  9829. style="
  9830. box-shadow: 0 0 6px 1px #f2f2f2;
  9831. width: 100%;
  9832. height:100%;
  9833. background: #f1f1f1;
  9834. "
  9835. >
  9836. <div class="title" style="width: 100%; box-sizing: border-box">
  9837. {{ lang.ssViewDocument }}
  9838. </div>
  9839. <el-form class="textBox" style="height: 90%">
  9840. <el-form-item class="textTitle">
  9841. <div style="font-size: 22px">
  9842. {{ fullUrl.name }}
  9843. </div>
  9844. </el-form-item>
  9845. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9846. <div
  9847. v-html="fullUrl.url"
  9848. class="textContent"
  9849. style="height: auto"
  9850. ></div>
  9851. </el-form>
  9852. </div>
  9853. <div
  9854. class="wheel"
  9855. v-else-if="
  9856. (fulltype == 2 || fulltype == 4) &&
  9857. fullUrl.indexOf(
  9858. 'https://view.officeapps.live.com/op/view.aspx?src='
  9859. ) != -1
  9860. "
  9861. style="width: 100%;height:100%; margin: 0 auto"
  9862. >
  9863. <iframe
  9864. style="width: 100%; height: 100%; border: none"
  9865. :src="fullUrl"
  9866. ></iframe>
  9867. </div>
  9868. <!-- <iframe
  9869. v-else-if="fulltype == 2"
  9870. style="width: 100%; height: 100%; border: none"
  9871. :src="fullUrl"
  9872. security="restricted"
  9873. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9874. ></iframe> -->
  9875. <iframe
  9876. style="width: 100%; height: 100%; border: none"
  9877. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  9878. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo')!=-1)"
  9879. :src="fullUrl"
  9880. ></iframe>
  9881. <iframe
  9882. style="width: 100%; height: 100%; border: none"
  9883. security="restricted"
  9884. v-else-if="(fulltype == 2 || fulltype == 4)"
  9885. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9886. :src="fullUrl"
  9887. ></iframe>
  9888. <pdf
  9889. v-else-if="fulltype == 3"
  9890. :pdfUrl="fullUrl"
  9891. style="width: 100%; height: 100%; overflow: auto"
  9892. ></pdf>
  9893. <iframe
  9894. style="width: 100%; height: 100%; border: none"
  9895. security="restricted"
  9896. v-else-if="(fulltype == 16) && (fullUrl.indexOf('cocorobo')!=-1)"
  9897. :src="fullUrl"
  9898. ></iframe>
  9899. <iframe
  9900. style="width: 100%; height: 100%; border: none"
  9901. security="restricted"
  9902. v-else
  9903. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9904. :src="fullUrl"
  9905. ></iframe>
  9906. </div>
  9907. <!-- <div slot="footer">
  9908. <el-button @click="fullDialogVisible = false">{{ lang.ssCloseBtn }}</el-button>
  9909. </div> -->
  9910. </el-dialog>
  9911. <el-dialog
  9912. :title="lang.ssPersonalEval"
  9913. :visible.sync="studentEvalDialogVisible"
  9914. :append-to-body="true"
  9915. width="800px"
  9916. :before-close="handleClose"
  9917. class="dialog_diy"
  9918. >
  9919. <div class="evalCss">
  9920. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  9921. <div class="middleBox" v-if="eScore.eStar">
  9922. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9923. <div class="nameAndrate">
  9924. <div>{{ e.value }}</div>
  9925. <el-rate
  9926. v-model="eScore.eStar[eIndex]"
  9927. :disabled="isStar"
  9928. ></el-rate>
  9929. </div>
  9930. <div v-if="e.detail">{{ e.detail }}</div>
  9931. </div>
  9932. <div class="easy_comment" v-if="false">
  9933. <div
  9934. v-for="(p, pIndex) in PlTextList"
  9935. :key="pIndex"
  9936. @click="fastText(p, 2)"
  9937. >
  9938. {{ p }}
  9939. </div>
  9940. </div>
  9941. <div class="bz">
  9942. <textarea
  9943. :disabled="isStar"
  9944. rows="4"
  9945. class="pj"
  9946. style="
  9947. padding: 10px 5px;
  9948. width: 70%;
  9949. background: #f7f6f9;
  9950. font-size: 14px;
  9951. text-indent: 10px;
  9952. "
  9953. cols
  9954. v-model="eScore.eBzText"
  9955. :placeholder="lang.ssEnterEvalContent"
  9956. ></textarea>
  9957. </div>
  9958. </div>
  9959. </div>
  9960. <div slot="footer">
  9961. <el-button @click="studentEvalDialogVisible = false">{{lang.ssCancelBtn}}</el-button>
  9962. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9963. >{{lang.ssConfirmBtn}}</el-button
  9964. >
  9965. </div>
  9966. </el-dialog>
  9967. <el-dialog
  9968. :title="lang.ssPersonalEval"
  9969. :visible.sync="studentEvalDialogVisibleTeacher"
  9970. :append-to-body="true"
  9971. width="800px"
  9972. :before-close="handleClose"
  9973. class="dialog_diy"
  9974. >
  9975. <div class="w_name">
  9976. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  9977. </div>
  9978. <div class="evalCss">
  9979. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  9980. <div class="middleBox" v-if="eScore.eStar">
  9981. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9982. <div class="nameAndrate">
  9983. <div>{{ e.value }}</div>
  9984. <el-rate
  9985. v-model="eScore.eStar[eIndex]"
  9986. :disabled="isStar"
  9987. ></el-rate>
  9988. </div>
  9989. <div v-if="e.detail">{{ e.detail }}</div>
  9990. </div>
  9991. <div class="easy_comment" v-if="false">
  9992. <div
  9993. v-for="(p, pIndex) in PlTextList"
  9994. :key="pIndex"
  9995. @click="fastText(p, 2)"
  9996. >
  9997. {{ p }}
  9998. </div>
  9999. </div>
  10000. <div class="bz">
  10001. <textarea
  10002. :disabled="isStar"
  10003. rows="4"
  10004. class="pj"
  10005. style="
  10006. padding: 10px 5px;
  10007. width: 70%;
  10008. background: #f7f6f9;
  10009. font-size: 14px;
  10010. text-indent: 10px;
  10011. "
  10012. cols
  10013. v-model="eScore.eBzText"
  10014. :placeholder="lang.ssEnterEvalContent"
  10015. ></textarea>
  10016. </div>
  10017. </div>
  10018. </div>
  10019. <div slot="footer">
  10020. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10021. >{{lang.ssCancelBtn}}</el-button
  10022. >
  10023. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10024. >{{lang.ssConfirmBtn}}</el-button
  10025. >
  10026. </div>
  10027. </el-dialog>
  10028. <el-dialog
  10029. :title="lang.ssMatch"
  10030. :visible.sync="dialogVisibleSelect"
  10031. :append-to-body="true"
  10032. width="90%"
  10033. :before-close="handleClose"
  10034. class="dialog_diy dialog_diy3"
  10035. >
  10036. <div v-if="selectJson">
  10037. <div class="select_box2">
  10038. <div class="select_box2_title">
  10039. <div>{{ lang.ssMatch }}</div>
  10040. <div>{{ lang.ssSelectCorrespondingAnswer }}</div>
  10041. </div>
  10042. <div class="select_box2_box">
  10043. <div class="select_box2_img">
  10044. <img
  10045. :src="selectJson.url"
  10046. @click="previewImg(selectJson.url)"
  10047. alt=""
  10048. />
  10049. </div>
  10050. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10051. <div style="padding-top: 15px">
  10052. <div class="select_answer_title" v-if="isSelect">
  10053. {{ selectAnswer.stu }}
  10054. </div>
  10055. <div class="select_answer_title" v-else>
  10056. {{ lang.ssSelectAnswerByQuestion }}
  10057. </div>
  10058. <div
  10059. class="select_box2_answer_box"
  10060. v-for="(item2, checkIndex) in selectJson.select"
  10061. :key="checkIndex"
  10062. >
  10063. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10064. <el-select
  10065. :disabled="isSelect"
  10066. v-model="selectAnswer.answer[checkIndex]"
  10067. :placeholder="lang.ssSelectCorrectAnswer"
  10068. >
  10069. <el-option
  10070. v-for="(e, eIndex) in selectJson.select"
  10071. :key="eIndex"
  10072. :label="e"
  10073. :value="eIndex"
  10074. >
  10075. </el-option>
  10076. </el-select>
  10077. </div>
  10078. </div>
  10079. <div
  10080. class="rightAnswerCss"
  10081. v-if="isSelect && (tType == 1 || tType == 4)"
  10082. >
  10083. <div
  10084. v-for="(a, aIndex) in selectJson.answer"
  10085. :key="aIndex"
  10086. class="rightAnswer"
  10087. >
  10088. <div
  10089. v-if="selectAnswer.answer[aIndex] === a"
  10090. style="color: #767de1"
  10091. >
  10092. {{ lang.ssAnswerCorrect }}
  10093. </div>
  10094. <div v-else>{{ lang.ssAnswerWrong }}</div>
  10095. <div
  10096. style="margin-left: 10px"
  10097. v-if="selectAnswer.answer[aIndex] !== a"
  10098. >
  10099. {{ lang.ssCorrectAnswer }}
  10100. </div>
  10101. <div
  10102. :class="
  10103. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10104. "
  10105. >
  10106. {{ selectJson.select[a] }}
  10107. </div>
  10108. </div>
  10109. </div>
  10110. </div>
  10111. <div class="upAnswerCss">
  10112. <el-button
  10113. type="primary"
  10114. @click="addSelectAnswer"
  10115. v-if="!isSelect"
  10116. >{{ lang.ssSubmitAnswer }}</el-button
  10117. >
  10118. </div>
  10119. </div>
  10120. </div>
  10121. </div>
  10122. </el-dialog>
  10123. <el-dialog
  10124. :title="lang.ssMatch"
  10125. :visible.sync="dialogVisibleSelectTeacher"
  10126. :append-to-body="true"
  10127. width="90%"
  10128. :before-close="handleClose"
  10129. class="dialog_diy dialog_diy3"
  10130. >
  10131. <div v-if="selectJson">
  10132. <div class="w_name">
  10133. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  10134. </div>
  10135. <div class="select_box2">
  10136. <div class="select_box2_title">
  10137. <div>{{ lang.ssMatch }}</div>
  10138. <div>{{ lang.ssSelectCorrespondingAnswer }}</div>
  10139. </div>
  10140. <div class="select_box2_box">
  10141. <div class="select_box2_img">
  10142. <img
  10143. :src="selectJson.url"
  10144. @click="previewImg(selectJson.url)"
  10145. alt=""
  10146. />
  10147. </div>
  10148. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10149. <div style="padding-top: 15px">
  10150. <div class="select_answer_title" v-if="isSelect">
  10151. {{ selectAnswer.stu }}
  10152. </div>
  10153. <div class="select_answer_title" v-else>
  10154. {{ lang.ssSelectAnswerByQuestion }}
  10155. </div>
  10156. <div
  10157. class="select_box2_answer_box"
  10158. v-for="(item2, checkIndex) in selectJson.select"
  10159. :key="checkIndex"
  10160. >
  10161. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10162. <el-select
  10163. :disabled="isSelect"
  10164. v-model="selectAnswer.answer[checkIndex]"
  10165. :placeholder="lang.ssSelectCorrectAnswer"
  10166. >
  10167. <el-option
  10168. v-for="(e, eIndex) in selectJson.select"
  10169. :key="eIndex"
  10170. :label="e"
  10171. :value="eIndex"
  10172. >
  10173. </el-option>
  10174. </el-select>
  10175. </div>
  10176. </div>
  10177. <div
  10178. class="rightAnswerCss"
  10179. v-if="isSelect && (tType == 1 || tType == 4)"
  10180. >
  10181. <div
  10182. v-for="(a, aIndex) in selectJson.answer"
  10183. :key="aIndex"
  10184. class="rightAnswer"
  10185. >
  10186. <div
  10187. v-if="selectAnswer.answer[aIndex] === a"
  10188. style="color: #767de1"
  10189. >
  10190. {{ lang.ssAnswerCorrect }}
  10191. </div>
  10192. <div v-else>{{ lang.ssAnswerWrong }}</div>
  10193. <div
  10194. style="margin-left: 10px"
  10195. v-if="selectAnswer.answer[aIndex] !== a"
  10196. >
  10197. {{ lang.ssCorrectAnswer }}
  10198. </div>
  10199. <div
  10200. :class="
  10201. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10202. "
  10203. >
  10204. {{ selectJson.select[a] }}
  10205. </div>
  10206. </div>
  10207. </div>
  10208. </div>
  10209. <div class="upAnswerCss">
  10210. <el-button
  10211. type="primary"
  10212. @click="addSelectAnswerTeacher"
  10213. v-if="!isSelect"
  10214. >{{ lang.ssSubmitAnswer }}</el-button
  10215. >
  10216. </div>
  10217. </div>
  10218. </div>
  10219. </div>
  10220. </el-dialog>
  10221. <el-dialog
  10222. :title="lang.ssTeacherScoring"
  10223. :visible.sync="dialogVisibleScore"
  10224. :append-to-body="true"
  10225. width="800px"
  10226. :before-close="handleClose"
  10227. class="dialog_diy"
  10228. >
  10229. <div>
  10230. <div class="studentDetail">
  10231. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10232. <div class="nameAndTime">
  10233. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10234. <div>{{ commentDetail.time }}</div>
  10235. </div>
  10236. </div>
  10237. <div
  10238. class="worksAnswer"
  10239. v-if="commentDetail.works && commentDetail.type == 2"
  10240. >
  10241. {{ JSON.parse(commentDetail.works)[0].answer }}
  10242. </div>
  10243. <div
  10244. class="worksAnswer"
  10245. v-if="commentDetail.works && commentDetail.type == 1"
  10246. >
  10247. <pdf
  10248. v-if="showPDF"
  10249. :pdfUrl="pptImgUrl"
  10250. style="width: 100%; height: 520px; overflow: auto"
  10251. :class="{ fullStyle: full }"
  10252. ></pdf>
  10253. <iframe
  10254. v-else
  10255. :src="pptImgUrl"
  10256. frameborder="0"
  10257. width="100%"
  10258. height="600"
  10259. :class="{ fullStyle: full }"
  10260. ></iframe>
  10261. </div>
  10262. <div
  10263. class="worksAnswer"
  10264. v-if="commentDetail.works && commentDetail.type == 0"
  10265. >
  10266. <img
  10267. :src="commentDetail.works"
  10268. alt=""
  10269. @click="previewImg(commentDetail.works)"
  10270. />
  10271. </div>
  10272. <div
  10273. class="worksAnswer"
  10274. v-if="commentDetail.works && commentDetail.type == 3"
  10275. >
  10276. <video-player
  10277. class="video-player vjs-custom-skin"
  10278. :playsinline="true"
  10279. :options="videoDetail"
  10280. @play="onPlayerPlay($event)"
  10281. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10282. ></video-player>
  10283. </div>
  10284. <div
  10285. class="worksAnswer codeFileBox"
  10286. v-if="commentDetail.works && commentDetail.type == 12"
  10287. @click="downloadFile(commentDetail.works)"
  10288. >
  10289. <img src="../assets/icon/codeFile.png" />
  10290. <div>{{ lang.ssClickDownloadFile }}</div>
  10291. </div>
  10292. <div
  10293. class="worksAnswer codeFileBox"
  10294. v-if="commentDetail.works && commentDetail.type == 15"
  10295. @click="
  10296. openCocoPi(
  10297. 57,
  10298. commentIndexJson.toolIndex,
  10299. commentDetail.userid,
  10300. commentDetail.sName
  10301. )
  10302. "
  10303. >
  10304. <img src="../assets/icon/codeFile.png" />
  10305. <div>{{ lang.ssClickOpenCocoPi }}</div>
  10306. </div>
  10307. <div
  10308. class="worksAnswer"
  10309. v-if="commentDetail.works && commentDetail.type == 13"
  10310. >
  10311. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10312. </div>
  10313. <div class="scoreBox">
  10314. <span class="t">{{ lang.ssEnterScore }}</span>
  10315. <el-input-number
  10316. :disabled="courseDetail.userid != userid"
  10317. v-model="wScore"
  10318. :controls="false"
  10319. :min="0"
  10320. :max="100"
  10321. ></el-input-number>
  10322. </div>
  10323. <div class="scoreDetailBox">
  10324. <span class="t">{{ lang.ssScoringComment }}</span>
  10325. <el-input
  10326. type="textarea"
  10327. :rows="5"
  10328. :disabled="courseDetail.userid != userid"
  10329. resize="none"
  10330. v-model="scoreDetail"
  10331. :placeholder="lang.ssEnterStudentEvaluation"
  10332. >
  10333. </el-input>
  10334. </div>
  10335. </div>
  10336. <span slot="footer" class="dialog-footer">
  10337. <el-button
  10338. @click="
  10339. (dialogVisibleScore = false),
  10340. (commentIndexJson = {}),
  10341. videoDetail.sources && videoDetail.sources[0]
  10342. ? (videoDetail.sources[0].src = '')
  10343. : ''
  10344. "
  10345. >{{lang.ssCancelBtn}}</el-button
  10346. >
  10347. <el-button
  10348. type="primary"
  10349. v-if="courseDetail.userid == userid"
  10350. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10351. >{{lang.ssConfirmBtn}}
  10352. </el-button>
  10353. </span>
  10354. </el-dialog>
  10355. <el-dialog
  10356. :title="lang.ssSort"
  10357. :visible.sync="dialogVisibleSentence"
  10358. :append-to-body="true"
  10359. width="1000px"
  10360. :before-close="handleClose"
  10361. class="dialog_diy dialog_diy3"
  10362. >
  10363. <div>
  10364. <div class="sentenBox">
  10365. <div
  10366. v-for="(st, stIndex) in sentenceList"
  10367. :key="stIndex"
  10368. style="padding-bottom: 20px"
  10369. >
  10370. <div
  10371. style="padding: 15px 0 10px 20px"
  10372. class="sentenceTitle"
  10373. :index="stIndex + 1"
  10374. >
  10375. {{ lang.ssQuestionNum.replace(/\*/g, stIndex + 1) }}:{{ lang.ssSelectCorrectOrder }}
  10376. </div>
  10377. <div class="cardList" v-if="st.chooseSenList">
  10378. <div class="cardBox">
  10379. <div
  10380. v-for="(r, rIndex) in st.chooseSenList"
  10381. :key="rIndex"
  10382. @click="returnCard(r, stIndex, rIndex)"
  10383. >
  10384. <el-tooltip
  10385. class="item"
  10386. effect="light"
  10387. :content="r"
  10388. placement="top"
  10389. v-if="r != '' && r != undefined"
  10390. >
  10391. <div
  10392. :class="{
  10393. isCard: r,
  10394. isChooseCard: r == '' || r == undefined,
  10395. }"
  10396. >
  10397. <div>{{ r }}</div>
  10398. </div>
  10399. </el-tooltip>
  10400. <div
  10401. :class="{
  10402. isCard: r,
  10403. isChooseCard: r == '' || r == undefined,
  10404. }"
  10405. v-else
  10406. >
  10407. <div>{{ r }}</div>
  10408. </div>
  10409. </div>
  10410. </div>
  10411. </div>
  10412. <div class="cardList" v-if="st.addChangeSen">
  10413. <div class="cardBox">
  10414. <div
  10415. v-for="(s, sIndex) in st.addChangeSen"
  10416. :key="sIndex"
  10417. @click="setRightAnswer(s, stIndex, sIndex)"
  10418. >
  10419. <el-tooltip
  10420. class="item"
  10421. effect="light"
  10422. :content="s"
  10423. placement="top"
  10424. v-if="s != '' && s != undefined"
  10425. >
  10426. <div
  10427. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10428. >
  10429. <div>{{ s }}</div>
  10430. </div>
  10431. </el-tooltip>
  10432. <div
  10433. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10434. v-else
  10435. >
  10436. <div>{{ s }}</div>
  10437. </div>
  10438. </div>
  10439. </div>
  10440. </div>
  10441. </div>
  10442. </div>
  10443. </div>
  10444. <span slot="footer" class="dialog-footer">
  10445. <el-button @click="dialogVisibleSentence = false">{{lang.ssCancelBtn}}</el-button>
  10446. <el-button type="primary" @click="addSenWorks">{{lang.ssConfirmBtn}}</el-button>
  10447. </span>
  10448. </el-dialog>
  10449. <el-dialog
  10450. :title="lang.ssSort"
  10451. :visible.sync="dialogVisibleSentenceTeacher"
  10452. :append-to-body="true"
  10453. width="1000px"
  10454. :before-close="handleClose"
  10455. class="dialog_diy dialog_diy3"
  10456. >
  10457. <div>
  10458. <div class="w_name">
  10459. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  10460. </div>
  10461. <div class="sentenBox">
  10462. <div
  10463. v-for="(st, stIndex) in sentenceList"
  10464. :key="stIndex"
  10465. style="padding-bottom: 20px"
  10466. >
  10467. <div
  10468. style="padding: 15px 0 10px 20px"
  10469. class="sentenceTitle"
  10470. :index="stIndex + 1"
  10471. >
  10472. {{ lang.ssQuestionNum.replace(/\*/g, stIndex + 1) }}:{{ lang.ssSelectCorrectOrder }}
  10473. </div>
  10474. <div class="cardList" v-if="st.chooseSenList">
  10475. <div class="cardBox">
  10476. <div
  10477. v-for="(r, rIndex) in st.chooseSenList"
  10478. :key="rIndex"
  10479. @click="returnCard(r, stIndex, rIndex)"
  10480. >
  10481. <el-tooltip
  10482. class="item"
  10483. effect="light"
  10484. :content="r"
  10485. placement="top"
  10486. v-if="r != '' && r != undefined"
  10487. >
  10488. <div
  10489. :class="{
  10490. isCard: r,
  10491. isChooseCard: r == '' || r == undefined,
  10492. }"
  10493. >
  10494. <div>{{ r }}</div>
  10495. </div>
  10496. </el-tooltip>
  10497. <div
  10498. :class="{
  10499. isCard: r,
  10500. isChooseCard: r == '' || r == undefined,
  10501. }"
  10502. v-else
  10503. >
  10504. <div>{{ r }}</div>
  10505. </div>
  10506. </div>
  10507. </div>
  10508. </div>
  10509. <div class="cardList" v-if="st.addChangeSen">
  10510. <div class="cardBox">
  10511. <div
  10512. v-for="(s, sIndex) in st.addChangeSen"
  10513. :key="sIndex"
  10514. @click="setRightAnswer(s, stIndex, sIndex)"
  10515. >
  10516. <el-tooltip
  10517. class="item"
  10518. effect="light"
  10519. :content="s"
  10520. placement="top"
  10521. v-if="s != '' && s != undefined"
  10522. >
  10523. <div
  10524. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10525. >
  10526. <div>{{ s }}</div>
  10527. </div>
  10528. </el-tooltip>
  10529. <div
  10530. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10531. v-else
  10532. >
  10533. <div>{{ s }}</div>
  10534. </div>
  10535. </div>
  10536. </div>
  10537. </div>
  10538. </div>
  10539. </div>
  10540. </div>
  10541. <span slot="footer" class="dialog-footer">
  10542. <el-button @click="dialogVisibleSentenceTeacher = false"
  10543. >{{lang.ssCancelBtn}}</el-button
  10544. >
  10545. <el-button type="primary" @click="addSenWorksTeacher">{{lang.ssConfirmBtn}}</el-button>
  10546. </span>
  10547. </el-dialog>
  10548. <el-dialog
  10549. :title="lang.ssSort"
  10550. :visible.sync="dialogVisibleSentence1"
  10551. :append-to-body="true"
  10552. width="1000px"
  10553. :before-close="handleClose"
  10554. class="dialog_diy dialog_diy3"
  10555. >
  10556. <div>
  10557. <div class="sentenBox">
  10558. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10559. {{ sentenceList1.stuName }}{{ lang.ssHomeworkOf }}
  10560. </div>
  10561. <div
  10562. v-for="(st, stIndex) in sentenceList1"
  10563. :key="stIndex"
  10564. style="padding-bottom: 20px"
  10565. >
  10566. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10567. {{ lang.ssQuestionNum.replace(/\*/g, stIndex + 1) }}
  10568. </div>
  10569. <div class="isWrong">
  10570. <div class="cardList1" v-if="st.chooseSenList">
  10571. <div class="cardBox">
  10572. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10573. <el-tooltip
  10574. class="item"
  10575. effect="light"
  10576. :content="s"
  10577. placement="top"
  10578. >
  10579. <div class="isCard">
  10580. <div>{{ s }}</div>
  10581. </div>
  10582. </el-tooltip>
  10583. </div>
  10584. </div>
  10585. <div class="cardAnswerBox">
  10586. {{ lang.ssFormSentence }}{{ st.chooseSenList.join(" ") }}
  10587. </div>
  10588. </div>
  10589. <div v-if="tType == 2" class="isTj">
  10590. <div class="isTjImg">
  10591. <img src="../assets/icon/conSentences/right.png" alt="" />
  10592. </div>
  10593. <div>{{ lang.ssSubmitted }}</div>
  10594. </div>
  10595. <div
  10596. class="answerRight isTj"
  10597. v-if="
  10598. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10599. (tType == 1 || tType == 4)
  10600. "
  10601. >
  10602. <div class="isTjImg">
  10603. <img src="../assets/icon/conSentences/right.png" alt="" />
  10604. </div>
  10605. <div>{{ lang.ssAnswerCorrect }}</div>
  10606. </div>
  10607. <div
  10608. class="answerRight isTj"
  10609. v-if="
  10610. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10611. (tType == 1 || tType == 4)
  10612. "
  10613. >
  10614. <div class="isTjImg">
  10615. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10616. </div>
  10617. <div>{{ lang.ssAnswerWrong }}</div>
  10618. </div>
  10619. </div>
  10620. <div
  10621. v-if="
  10622. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10623. (tType == 1 || tType == 4)
  10624. "
  10625. >
  10626. <div style="padding: 15px 0 10px 20px">{{ lang.ssCorrectAnswerBelow }}</div>
  10627. <div
  10628. class="cardList"
  10629. v-if="st.rightAnswer"
  10630. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10631. >
  10632. <div class="cardBox">
  10633. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex"></div>
  10634. <el-tooltip
  10635. class="item"
  10636. effect="light"
  10637. :content="r"
  10638. placement="top"
  10639. >
  10640. <div class="isCard1">
  10641. <div>{{ r }}</div>
  10642. </div>
  10643. </el-tooltip>
  10644. </div>
  10645. </div>
  10646. <div class="cardAnswerBox">
  10647. {{ lang.ssFormSentence }}{{ st.rightAnswer.join(" ") }}
  10648. </div>
  10649. </div>
  10650. </div>
  10651. </div>
  10652. </div>
  10653. <span slot="footer" class="dialog-footer">
  10654. <el-button @click="dialogVisibleSentence1 = false">{{lang.ssCancelBtn}}</el-button>
  10655. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10656. >{{lang.ssConfirmBtn}}</el-button
  10657. >
  10658. </span>
  10659. </el-dialog>
  10660. <el-dialog
  10661. :title="lang.ssTeacherSubmitWork"
  10662. :visible.sync="dialogVisibleWorks"
  10663. :append-to-body="true"
  10664. width="500px"
  10665. :before-close="handleClose"
  10666. class="dialog_change"
  10667. >
  10668. <div class="marginT">
  10669. <div class="w_name">
  10670. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  10671. </div>
  10672. <div>{{ lang.ssUploadHomework }}</div>
  10673. <div style="display: flex; gap: 10px">
  10674. <div
  10675. class="chapter_add"
  10676. @click="addImg($event)"
  10677. v-if="studyJuri[0].cover.length == 0"
  10678. >
  10679. <div class="up_photo">
  10680. <img src="../assets/icon/uploadImg.png" alt />
  10681. </div>
  10682. <!-- <input
  10683. type="file"
  10684. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10685. style="display: none"
  10686. @change="beforeUpload1($event, 1)"
  10687. /> -->
  10688. <input
  10689. type="file"
  10690. accept="*"
  10691. style="display: none"
  10692. @change="beforeUpload1($event, 1)"
  10693. />
  10694. <!-- <input
  10695. type="file"
  10696. accept="image/*"
  10697. capture="camera"
  10698. style="display: none"
  10699. @change="beforeUpload1($event, 1)"
  10700. /> -->
  10701. </div>
  10702. <div
  10703. class="chapter_add"
  10704. @click="addImg($event)"
  10705. v-if="studyJuri[0].cover.length == 0"
  10706. >
  10707. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  10708. <img src="../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  10709. </div>
  10710. <input
  10711. type="file"
  10712. accept="image/*"
  10713. capture="camera"
  10714. style="display: none"
  10715. @change="beforeUpload1($event, 1)"
  10716. />
  10717. </div>
  10718. </div>
  10719. <!-- capture="camera" -->
  10720. <div
  10721. class="chapter_add"
  10722. style="
  10723. display: flex;
  10724. width: 100%;
  10725. flex-direction: row;
  10726. flex-wrap: wrap;
  10727. justify-content: flex-start;
  10728. padding: 15px 0;
  10729. "
  10730. v-if="studyJuri[0].cover.length > 0"
  10731. >
  10732. <div class="upCover">
  10733. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10734. <img :src="word" alt v-else-if="fileType == 1" />
  10735. <img :src="video" alt v-else-if="fileType == 2" />
  10736. <img :src="word2" alt v-else-if="fileType == 3" />
  10737. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10738. <div class="deleteWord" @click="clean(1)">
  10739. <img src="../assets/icon/deleteWorks.png" alt />
  10740. </div>
  10741. </div>
  10742. </div>
  10743. </div>
  10744. <div
  10745. class="upload_send"
  10746. @click="addCourseWorksTeacher(taskCount)"
  10747. v-if="!proVisible"
  10748. >
  10749. {{ lang.ssSubmit }}
  10750. </div>
  10751. </el-dialog>
  10752. <ImgDraw
  10753. :drawShow="drawShow"
  10754. @closeDraw="closeDraw"
  10755. @addImgDraw="addImgDraw"
  10756. :bg="bg"
  10757. ></ImgDraw>
  10758. <el-dialog
  10759. :title="lang.ssTable"
  10760. :visible.sync="dialogVisibleTable"
  10761. :append-to-body="true"
  10762. width="95%"
  10763. :before-close="handleClose"
  10764. class="dialog_diy"
  10765. >
  10766. <el-form>
  10767. <div
  10768. style="
  10769. display: flex;
  10770. align-items: center;
  10771. justify-content: space-between;
  10772. "
  10773. >
  10774. <span>{{ lang.ssTableContent }}</span>
  10775. <el-button type="primary" size="small" @click="returnTableText"
  10776. >{{ lang.ssRestoreTemplate }}</el-button
  10777. >
  10778. </div>
  10779. <Table
  10780. v-model="tableJson.text"
  10781. @change="change"
  10782. v-if="dialogVisibleTable"
  10783. ></Table>
  10784. </el-form>
  10785. <span slot="footer" class="dialog-footer">
  10786. <el-button @click="dialogVisibleTable = false">{{lang.ssCancelBtn}}</el-button>
  10787. <el-button type="primary" @click="addTableWorks">{{ lang.ssConfirmBtn }}</el-button>
  10788. </span>
  10789. </el-dialog>
  10790. <el-dialog
  10791. :title="lang.ssTable"
  10792. :visible.sync="dialogVisibleTableTeacher"
  10793. :append-to-body="true"
  10794. width="95%"
  10795. :before-close="handleClose"
  10796. class="dialog_diy"
  10797. >
  10798. <el-form>
  10799. <div class="w_name">
  10800. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  10801. </div>
  10802. <div>{{ lang.ssTableContent }}</div>
  10803. <Table
  10804. v-model="tableJson.text"
  10805. @change="change"
  10806. v-if="dialogVisibleTableTeacher"
  10807. ></Table>
  10808. </el-form>
  10809. <span slot="footer" class="dialog-footer">
  10810. <el-button @click="dialogVisibleTableTeacher = false">{{lang.ssCancelBtn}}</el-button>
  10811. <el-button type="primary" @click="addTableWorksTeacher">{{ lang.ssConfirmBtn }}</el-button>
  10812. </span>
  10813. </el-dialog>
  10814. <el-dialog
  10815. :title="lang.ssDocument"
  10816. :visible.sync="dialogVisibleWord"
  10817. :append-to-body="true"
  10818. width="95%"
  10819. :before-close="handleClose"
  10820. class="dialog_diy"
  10821. >
  10822. <el-form>
  10823. <div
  10824. style="
  10825. display: flex;
  10826. align-items: center;
  10827. justify-content: space-between;
  10828. "
  10829. >
  10830. <span>{{ lang.ssDocumentContent }}</span>
  10831. <el-button type="primary" size="small" @click="returnWordText"
  10832. >{{ lang.ssRestoreTemplate }}</el-button
  10833. >
  10834. </div>
  10835. <editor-bar
  10836. v-model="wordJson.text"
  10837. v-if="dialogVisibleWord"
  10838. ></editor-bar>
  10839. </el-form>
  10840. <span slot="footer" class="dialog-footer">
  10841. <el-button @click="dialogVisibleWord = false">{{lang.ssCancelBtn}}</el-button>
  10842. <el-button type="primary" @click="addWordWorks">{{ lang.ssConfirmBtn }}</el-button>
  10843. </span>
  10844. </el-dialog>
  10845. <el-dialog
  10846. :title="lang.ssDocument"
  10847. :visible.sync="dialogVisibleWordTeacher"
  10848. :append-to-body="true"
  10849. width="95%"
  10850. :before-close="handleClose"
  10851. class="dialog_diy"
  10852. >
  10853. <el-form>
  10854. <div class="w_name">
  10855. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  10856. </div>
  10857. <div>{{ lang.ssDocumentContent }}</div>
  10858. <editor-bar
  10859. v-model="wordJson.text"
  10860. v-if="dialogVisibleWordTeacher"
  10861. ></editor-bar>
  10862. </el-form>
  10863. <span slot="footer" class="dialog-footer">
  10864. <el-button @click="dialogVisibleWordTeacher = false">{{lang.ssCancelBtn}}</el-button>
  10865. <el-button type="primary" @click="addWordWorksTeacher">{{ lang.ssConfirmBtn }}</el-button>
  10866. </span>
  10867. </el-dialog>
  10868. <el-dialog
  10869. :title="lang.ssTable"
  10870. :visible.sync="dialogVisibleTable2"
  10871. :append-to-body="true"
  10872. width="95%"
  10873. :before-close="handleClose"
  10874. class="dialog_diy"
  10875. >
  10876. <el-form>
  10877. <div class="cont" v-html="tableJson.text"></div>
  10878. </el-form>
  10879. <span slot="footer" class="dialog-footer">
  10880. <el-button @click="dialogVisibleTable2 = false">{{ lang.ssCloseBtn }}</el-button>
  10881. </span>
  10882. </el-dialog>
  10883. <el-dialog
  10884. :title="lang.ssDocument"
  10885. :visible.sync="dialogVisibleTable3"
  10886. :append-to-body="true"
  10887. width="95%"
  10888. :before-close="handleClose"
  10889. class="dialog_diy"
  10890. >
  10891. <el-form>
  10892. <div class="cont" v-html="tableJson.text"></div>
  10893. </el-form>
  10894. <span slot="footer" class="dialog-footer">
  10895. <el-button @click="dialogVisibleTable3 = false">{{ lang.ssCloseBtn }}</el-button>
  10896. </span>
  10897. </el-dialog>
  10898. <el-dialog
  10899. :title="lang.ssGroupSetting"
  10900. :visible.sync="dialogVisibleGroup"
  10901. :append-to-body="true"
  10902. width="95%"
  10903. :before-close="handleClose"
  10904. class="dialog_diy"
  10905. >
  10906. <div v-if="dialogVisibleGroup">
  10907. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10908. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10909. {{ lang.ssOpenSeatTip }}
  10910. </div>
  10911. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10912. @click="lockChair">
  10913. {{ lang.ssLockPosition }}
  10914. </div>
  10915. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10916. {{ lang.ssUnlockPosition }}
  10917. </div> -->
  10918. <div class="group_switch">
  10919. <span>{{ lang.ssOpenSeat }}</span>
  10920. <el-switch
  10921. v-model="islock"
  10922. active-text=""
  10923. class="switchCss"
  10924. @change="lockChair"
  10925. ></el-switch>
  10926. </div>
  10927. <div
  10928. type="primary"
  10929. @click="updateGroup"
  10930. class="returnBtn"
  10931. style="background-color: #225bc7"
  10932. >
  10933. {{ lang.ssGroupSetting }}
  10934. </div>
  10935. </div>
  10936. <div>
  10937. <div
  10938. class="g_d_box"
  10939. v-if="groupJson.group && groupStudent[toolindex]"
  10940. >
  10941. <div
  10942. class="g_d_group"
  10943. v-for="(g, gindex) in groupJson.group"
  10944. :key="gindex"
  10945. >
  10946. <div class="g_d_group_chair">
  10947. <div v-if="groupJson.number > 1">
  10948. <span
  10949. :class="{
  10950. isChair:
  10951. groupStudent[toolindex][gindex] &&
  10952. groupStudent[toolindex][gindex][0],
  10953. updateChair:
  10954. courseDetail.userid == userid &&
  10955. groupStudent[toolindex][gindex] &&
  10956. groupStudent[toolindex][gindex][0] &&
  10957. groupJson.islock == 2,
  10958. }"
  10959. ><span
  10960. class="updateChairBtn"
  10961. @click="
  10962. updateGroupChair(
  10963. groupStudent[toolindex][gindex] &&
  10964. groupStudent[toolindex][gindex][0]
  10965. )
  10966. "
  10967. >{{ lang.ssModify }}</span
  10968. ></span
  10969. ><span>{{
  10970. groupStudent[toolindex][gindex] &&
  10971. groupStudent[toolindex][gindex][0]
  10972. ? groupStudent[toolindex][gindex] &&
  10973. groupStudent[toolindex][gindex][0].name
  10974. : lang.ssEmptyPosition
  10975. }}</span>
  10976. </div>
  10977. <div v-if="groupJson.number > 4">
  10978. <span
  10979. :class="{
  10980. isChair:
  10981. groupStudent[toolindex][gindex] &&
  10982. groupStudent[toolindex][gindex][4],
  10983. updateChair:
  10984. courseDetail.userid == userid &&
  10985. groupStudent[toolindex][gindex] &&
  10986. groupStudent[toolindex][gindex][4] &&
  10987. groupJson.islock == 2,
  10988. }"
  10989. ><span
  10990. class="updateChairBtn"
  10991. @click="
  10992. updateGroupChair(
  10993. groupStudent[toolindex][gindex] &&
  10994. groupStudent[toolindex][gindex][4]
  10995. )
  10996. "
  10997. >{{ lang.ssModify }}</span
  10998. ></span
  10999. ><span>{{
  11000. groupStudent[toolindex][gindex] &&
  11001. groupStudent[toolindex][gindex][4]
  11002. ? groupStudent[toolindex][gindex] &&
  11003. groupStudent[toolindex][gindex][4].name
  11004. : lang.ssEmptyPosition
  11005. }}</span>
  11006. </div>
  11007. <div v-if="groupJson.number > 8">
  11008. <span
  11009. :class="{
  11010. isChair:
  11011. groupStudent[toolindex][gindex] &&
  11012. groupStudent[toolindex][gindex][8],
  11013. updateChair:
  11014. courseDetail.userid == userid &&
  11015. groupStudent[toolindex][gindex] &&
  11016. groupStudent[toolindex][gindex][8] &&
  11017. groupJson.islock == 2,
  11018. }"
  11019. ><span
  11020. class="updateChairBtn"
  11021. @click="
  11022. updateGroupChair(
  11023. groupStudent[toolindex][gindex] &&
  11024. groupStudent[toolindex][gindex][8]
  11025. )
  11026. "
  11027. >{{ lang.ssModify }}</span
  11028. ></span
  11029. ><span>{{
  11030. groupStudent[toolindex][gindex] &&
  11031. groupStudent[toolindex][gindex][8]
  11032. ? groupStudent[toolindex][gindex] &&
  11033. groupStudent[toolindex][gindex][8].name
  11034. : lang.ssEmptyPosition
  11035. }}</span>
  11036. </div>
  11037. </div>
  11038. <div class="g_d_group_tableBox">
  11039. <div class="g_d_group_chair2">
  11040. <div v-if="groupJson.number > 2">
  11041. <span
  11042. :class="{
  11043. isChair:
  11044. groupStudent[toolindex][gindex] &&
  11045. groupStudent[toolindex][gindex][2],
  11046. updateChair:
  11047. courseDetail.userid == userid &&
  11048. groupStudent[toolindex][gindex] &&
  11049. groupStudent[toolindex][gindex][2] &&
  11050. groupJson.islock == 2,
  11051. }"
  11052. ><span
  11053. class="updateChairBtn"
  11054. @click="
  11055. updateGroupChair(
  11056. groupStudent[toolindex][gindex] &&
  11057. groupStudent[toolindex][gindex][2]
  11058. )
  11059. "
  11060. >{{ lang.ssModify }}</span
  11061. ></span
  11062. ><span>{{
  11063. groupStudent[toolindex][gindex] &&
  11064. groupStudent[toolindex][gindex][2]
  11065. ? groupStudent[toolindex][gindex] &&
  11066. groupStudent[toolindex][gindex][2].name
  11067. : lang.ssEmptyPosition
  11068. }}</span>
  11069. </div>
  11070. <div v-if="groupJson.number > 6">
  11071. <span
  11072. :class="{
  11073. isChair:
  11074. groupStudent[toolindex][gindex] &&
  11075. groupStudent[toolindex][gindex][6],
  11076. updateChair:
  11077. courseDetail.userid == userid &&
  11078. groupStudent[toolindex][gindex] &&
  11079. groupStudent[toolindex][gindex][6] &&
  11080. groupJson.islock == 2,
  11081. }"
  11082. ><span
  11083. class="updateChairBtn"
  11084. @click="
  11085. updateGroupChair(
  11086. groupStudent[toolindex][gindex] &&
  11087. groupStudent[toolindex][gindex][6]
  11088. )
  11089. "
  11090. >{{ lang.ssModify }}</span
  11091. ></span
  11092. ><span>{{
  11093. groupStudent[toolindex][gindex] &&
  11094. groupStudent[toolindex][gindex][6]
  11095. ? groupStudent[toolindex][gindex] &&
  11096. groupStudent[toolindex][gindex][6].name
  11097. : lang.ssEmptyPosition
  11098. }}</span>
  11099. </div>
  11100. </div>
  11101. <div class="g_d_group_table">
  11102. <div>
  11103. {{ g.name }}
  11104. </div>
  11105. <div>
  11106. <div
  11107. v-if="
  11108. courseDetail.userid == userid && groupJson.islock == 2
  11109. "
  11110. @click="deleteGroupChair(gindex)"
  11111. >
  11112. {{ lang.ssRemoveMember }}
  11113. </div>
  11114. <div
  11115. @click="selectGroup(gindex)"
  11116. v-else-if="
  11117. groupStudentUid[toolindex] &&
  11118. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11119. "
  11120. >
  11121. {{ lang.ssJoinGroup }}
  11122. </div>
  11123. <div
  11124. @click="
  11125. exitGroup(
  11126. groupStudent[toolindex][gindex] &&
  11127. groupStudent[toolindex][gindex][
  11128. groupStudentUid[toolindex][gindex].indexOf(userid)
  11129. ].id
  11130. )
  11131. "
  11132. v-else-if="
  11133. groupStudentUid[toolindex] &&
  11134. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11135. "
  11136. >
  11137. {{ lang.ssExitGroupBtn }}
  11138. </div>
  11139. </div>
  11140. </div>
  11141. <div class="g_d_group_chair2">
  11142. <div v-if="groupJson.number > 3">
  11143. <span
  11144. :class="{
  11145. isChair:
  11146. groupStudent[toolindex][gindex] &&
  11147. groupStudent[toolindex][gindex][3],
  11148. updateChair:
  11149. courseDetail.userid == userid &&
  11150. groupStudent[toolindex][gindex] &&
  11151. groupStudent[toolindex][gindex][3] &&
  11152. groupJson.islock == 2,
  11153. }"
  11154. ><span
  11155. class="updateChairBtn"
  11156. @click="
  11157. updateGroupChair(
  11158. groupStudent[toolindex][gindex] &&
  11159. groupStudent[toolindex][gindex][3]
  11160. )
  11161. "
  11162. >{{ lang.ssModify }}</span
  11163. ></span
  11164. ><span>{{
  11165. groupStudent[toolindex][gindex] &&
  11166. groupStudent[toolindex][gindex][3]
  11167. ? groupStudent[toolindex][gindex] &&
  11168. groupStudent[toolindex][gindex][3].name
  11169. : lang.ssEmptyPosition
  11170. }}</span>
  11171. </div>
  11172. <div v-if="groupJson.number > 7">
  11173. <span
  11174. :class="{
  11175. isChair:
  11176. groupStudent[toolindex][gindex] &&
  11177. groupStudent[toolindex][gindex][7],
  11178. updateChair:
  11179. courseDetail.userid == userid &&
  11180. groupStudent[toolindex][gindex] &&
  11181. groupStudent[toolindex][gindex][7] &&
  11182. groupJson.islock == 2,
  11183. }"
  11184. ><span
  11185. class="updateChairBtn"
  11186. @click="
  11187. updateGroupChair(
  11188. groupStudent[toolindex][gindex] &&
  11189. groupStudent[toolindex][gindex][7]
  11190. )
  11191. "
  11192. >{{ lang.ssModify }}</span
  11193. ></span
  11194. ><span>{{
  11195. groupStudent[toolindex][gindex] &&
  11196. groupStudent[toolindex][gindex][7]
  11197. ? groupStudent[toolindex][gindex] &&
  11198. groupStudent[toolindex][gindex][7].name
  11199. : lang.ssEmptyPosition
  11200. }}</span>
  11201. </div>
  11202. </div>
  11203. </div>
  11204. <div class="g_d_group_chair">
  11205. <div v-if="groupJson.number > 1">
  11206. <span
  11207. :class="{
  11208. isChair:
  11209. groupStudent[toolindex][gindex] &&
  11210. groupStudent[toolindex][gindex][1],
  11211. updateChair:
  11212. courseDetail.userid == userid &&
  11213. groupStudent[toolindex][gindex] &&
  11214. groupStudent[toolindex][gindex][1] &&
  11215. groupJson.islock == 2,
  11216. }"
  11217. ><span
  11218. class="updateChairBtn"
  11219. @click="
  11220. updateGroupChair(
  11221. groupStudent[toolindex][gindex] &&
  11222. groupStudent[toolindex][gindex][1]
  11223. )
  11224. "
  11225. >{{ lang.ssModify }}</span
  11226. ></span
  11227. ><span>{{
  11228. groupStudent[toolindex][gindex] &&
  11229. groupStudent[toolindex][gindex][1]
  11230. ? groupStudent[toolindex][gindex] &&
  11231. groupStudent[toolindex][gindex][1].name
  11232. : lang.ssEmptyPosition
  11233. }}</span>
  11234. </div>
  11235. <div v-if="groupJson.number > 5">
  11236. <span
  11237. :class="{
  11238. isChair:
  11239. groupStudent[toolindex][gindex] &&
  11240. groupStudent[toolindex][gindex][5],
  11241. updateChair:
  11242. courseDetail.userid == userid &&
  11243. groupStudent[toolindex][gindex] &&
  11244. groupStudent[toolindex][gindex][5] &&
  11245. groupJson.islock == 2,
  11246. }"
  11247. ><span
  11248. class="updateChairBtn"
  11249. @click="
  11250. updateGroupChair(
  11251. groupStudent[toolindex][gindex] &&
  11252. groupStudent[toolindex][gindex][5]
  11253. )
  11254. "
  11255. >{{ lang.ssModify }}</span
  11256. ></span
  11257. ><span>{{
  11258. groupStudent[toolindex][gindex] &&
  11259. groupStudent[toolindex][gindex][5]
  11260. ? groupStudent[toolindex][gindex] &&
  11261. groupStudent[toolindex][gindex][5].name
  11262. : lang.ssEmptyPosition
  11263. }}</span>
  11264. </div>
  11265. <div v-if="groupJson.number > 9">
  11266. <span
  11267. :class="{
  11268. isChair:
  11269. groupStudent[toolindex][gindex] &&
  11270. groupStudent[toolindex][gindex][9],
  11271. updateChair:
  11272. courseDetail.userid == userid &&
  11273. groupStudent[toolindex][gindex] &&
  11274. groupStudent[toolindex][gindex][9] &&
  11275. groupJson.islock == 2,
  11276. }"
  11277. ><span
  11278. class="updateChairBtn"
  11279. @click="
  11280. updateGroupChair(
  11281. groupStudent[toolindex][gindex] &&
  11282. groupStudent[toolindex][gindex][9]
  11283. )
  11284. "
  11285. >{{ lang.ssModify }}</span
  11286. ></span
  11287. ><span>{{
  11288. groupStudent[toolindex][gindex] &&
  11289. groupStudent[toolindex][gindex][9]
  11290. ? groupStudent[toolindex][gindex] &&
  11291. groupStudent[toolindex][gindex][9].name
  11292. : lang.ssEmptyPosition
  11293. }}</span>
  11294. </div>
  11295. </div>
  11296. </div>
  11297. </div>
  11298. </div>
  11299. </div>
  11300. <span slot="footer" class="dialog-footer">
  11301. <!-- <el-button @click="(dialogVisibleGroup = false)">{{ lang.ssCloseBtn }}</el-button> -->
  11302. </span>
  11303. </el-dialog>
  11304. <el-dialog
  11305. :title="lang.ssGroupSetting"
  11306. :visible.sync="dialogVisibleGroup2"
  11307. :append-to-body="true"
  11308. width="650px"
  11309. :before-close="handleClose"
  11310. class="dialog_diy"
  11311. >
  11312. <div class="groupBox">
  11313. <div v-if="groupJson2.group" class="groupContent">
  11314. <div class="groupTitle">{{ lang.ssSetGroupCountAndName }}</div>
  11315. <div
  11316. v-for="(item, index) in groupJson2.group"
  11317. :key="index"
  11318. class="groupName"
  11319. >
  11320. <span class="groupn">{{ lang.ssGroupNumName.replace(/\*/g, index + 1) }}</span>
  11321. <el-input
  11322. v-model="item.name"
  11323. :placeholder="lang.ssEnterName"
  11324. style="width: 250px"
  11325. ></el-input>
  11326. <!-- <div class="groupBtn">
  11327. <el-button type="primary" size="small" @click="addGroup(index)">
  11328. 添加</el-button>
  11329. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11330. v-if="groupJson2.group && groupJson2.group.length > 1">{{ lang.ssDeleteBtn }}</el-button>
  11331. </div> -->
  11332. </div>
  11333. </div>
  11334. <div class="groupContent">
  11335. <div class="groupTitle">{{ lang.ssSetGroupMemberCount }}</div>
  11336. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11337. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11338. <el-input
  11339. v-model="groupJson2.number"
  11340. style="width: 150px"
  11341. :placeholder="lang.ssEnterNumber2To10"
  11342. @change="numberPan"
  11343. ></el-input>
  11344. </div>
  11345. </div>
  11346. <span slot="footer" class="dialog-footer">
  11347. <el-button @click="dialogVisibleGroup2 = false">{{lang.ssCancelBtn}}</el-button>
  11348. <el-button type="primary" @click="updateGroupJson">{{ lang.ssConfirmBtn }}</el-button>
  11349. </span>
  11350. </el-dialog>
  11351. <el-dialog
  11352. :title=lang.ssHomework
  11353. :visible.sync="dialogVisibleGroupWork"
  11354. :append-to-body="true"
  11355. width="500px"
  11356. :before-close="handleClose"
  11357. class="dialog_change"
  11358. >
  11359. <div class="marginT">
  11360. <div>{{ lang.ssUploadHomework }}</div>
  11361. <div
  11362. class="chapter_add"
  11363. @click="addImg($event)"
  11364. v-if="studyJuri[0].cover.length == 0"
  11365. >
  11366. <div class="up_photo">
  11367. <img src="../assets/icon/uploadImg.png" alt />
  11368. </div>
  11369. <!-- <input
  11370. type="file"
  11371. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11372. style="display: none"
  11373. @change="beforeUpload1($event, 1)"
  11374. /> -->
  11375. <input
  11376. type="file"
  11377. accept="*"
  11378. style="display: none"
  11379. @change="beforeUpload1($event, 1)"
  11380. />
  11381. </div>
  11382. <!-- capture="camera" -->
  11383. <div
  11384. class="chapter_add"
  11385. style="
  11386. display: flex;
  11387. width: 100%;
  11388. flex-direction: row;
  11389. flex-wrap: wrap;
  11390. justify-content: flex-start;
  11391. padding: 15px 0;
  11392. "
  11393. v-if="studyJuri[0].cover.length > 0"
  11394. >
  11395. <div class="upCover">
  11396. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11397. <img :src="word" alt v-else-if="fileType == 1" />
  11398. <img :src="video" alt v-else-if="fileType == 2" />
  11399. <img :src="word2" alt v-else-if="fileType == 3" />
  11400. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11401. <div class="deleteWord" @click="clean(1)">
  11402. <img src="../assets/icon/deleteWorks.png" alt />
  11403. </div>
  11404. </div>
  11405. </div>
  11406. </div>
  11407. <div
  11408. class="upload_send"
  11409. @click="addCourseWorks2(taskCount)"
  11410. v-if="!proVisible"
  11411. >
  11412. {{ lang.ssSubmit }}
  11413. </div>
  11414. </el-dialog>
  11415. <el-dialog
  11416. :title=lang.ssModifyGroup
  11417. :visible.sync="dialogVisibleUpdateGroup"
  11418. :append-to-body="true"
  11419. width="350px"
  11420. :before-close="handleClose"
  11421. class="dialog_diy"
  11422. >
  11423. <div>
  11424. <h2>
  11425. {{ updateGroupUser.name }}
  11426. </h2>
  11427. <div style="color: rgb(171 171 171); margin-top: 10px">
  11428. {{ lang.ssSelectGroupPrompt }}
  11429. </div>
  11430. <el-radio-group v-model="checkChair">
  11431. <el-radio
  11432. style="display: block; margin-top: 20px"
  11433. v-for="(item, index) in updateGroupArray"
  11434. :label="item.label"
  11435. :key="index"
  11436. >{{ item.name }}</el-radio
  11437. >
  11438. </el-radio-group>
  11439. </div>
  11440. <span slot="footer" class="dialog-footer">
  11441. <el-button @click="dialogVisibleUpdateGroup = false">{{lang.ssCancelBtn}}</el-button>
  11442. <el-button type="primary" @click="updateChair">{{ lang.ssConfirmBtn }}</el-button>
  11443. </span>
  11444. </el-dialog>
  11445. <el-dialog
  11446. :title="lang.ssRemoveMember"
  11447. :visible.sync="dialogVisibleDeleteGroup"
  11448. :append-to-body="true"
  11449. width="350px"
  11450. :before-close="handleClose"
  11451. class="dialog_diy"
  11452. >
  11453. <div>
  11454. <h2>
  11455. {{ deleteGroupArray.name }}
  11456. </h2>
  11457. <div style="color: rgb(171 171 171); margin-top: 10px">
  11458. {{ lang.ssSelectMemberPrompt }}
  11459. </div>
  11460. <el-checkbox-group v-model="checkDeleteGroup">
  11461. <el-checkbox
  11462. style="display: flex; margin-top: 20px"
  11463. v-for="(item, index) in deleteGroupUser"
  11464. :label="item.userid"
  11465. :key="index"
  11466. >{{ item.name }}</el-checkbox
  11467. >
  11468. </el-checkbox-group>
  11469. </div>
  11470. <span slot="footer" class="dialog-footer">
  11471. <el-button @click="dialogVisibleDeleteGroup = false">{{lang.ssCancelBtn}}</el-button>
  11472. <el-button type="primary" @click="deleteChair">{{ lang.ssConfirmBtn }}</el-button>
  11473. </span>
  11474. </el-dialog>
  11475. <el-dialog
  11476. :title="lang.ssBatchUpload"
  11477. :visible.sync="dialogVisiblePl"
  11478. :append-to-body="true"
  11479. width="700px"
  11480. :before-close="handleClose"
  11481. class="dialog_change"
  11482. >
  11483. <div class="marginT">
  11484. <div class="plworkBox">
  11485. <div
  11486. class="chapter_add"
  11487. style="
  11488. display: flex;
  11489. width: 150px;
  11490. flex-direction: row;
  11491. flex-wrap: wrap;
  11492. justify-content: flex-start;
  11493. margin: 0 10px 10px 0;
  11494. "
  11495. v-for="(item, index) in plworkFile"
  11496. :key="index"
  11497. >
  11498. <div class="upCover2">
  11499. <img
  11500. :src="item.url"
  11501. alt
  11502. v-if="item.fileType == 1"
  11503. @click="previewImg(item.url)"
  11504. />
  11505. <img :src="word" alt v-else-if="item.fileType == 4" />
  11506. <img :src="video" alt v-else />
  11507. <!-- <span class="picName">{{ item.name }}</span> -->
  11508. <!-- <el-input
  11509. v-model="item.username"
  11510. :placeholder="this.lang.ssEnterStudentNamePlaceholder"
  11511. style="margin-top: 10px"
  11512. ></el-input> -->
  11513. <div
  11514. class="pl_select_box"
  11515. @click="
  11516. getUpdateMore(true, checkUpload(), item.username, index)
  11517. "
  11518. >
  11519. {{ getSName(item.username) }}
  11520. </div>
  11521. <!-- <el-select
  11522. style="margin-top: 10px"
  11523. v-model="item.username"
  11524. filterable
  11525. allow-create
  11526. :placeholder="this.lang.ssSelectStudentPlaceholder"
  11527. >
  11528. <el-option
  11529. v-for="item1 in checkUpload()"
  11530. :key="item1.userid"
  11531. :label="item1.name ? item1.name : item1.username"
  11532. :value="item1.userid"
  11533. >
  11534. </el-option>
  11535. </el-select> -->
  11536. <div class="deleteWord" @click="clean2(index)">
  11537. <img src="../assets/icon/deleteWorks.png" alt />
  11538. </div>
  11539. </div>
  11540. </div>
  11541. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11542. <div class="up_photo2">
  11543. <img src="../assets/icon/plwork.png" alt />
  11544. <span>{{ lang.ssClickUploadFile }}</span>
  11545. </div>
  11546. <input
  11547. type="file"
  11548. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11549. multiple="multiple"
  11550. style="display: none"
  11551. @change="beforeUpload3($event, 6)"
  11552. />
  11553. </div>
  11554. </div>
  11555. </div>
  11556. <!-- capture="camera" -->
  11557. <div
  11558. class="upload_send"
  11559. @click="addCourseWorksPl(taskCount)"
  11560. v-if="!proVisible2"
  11561. >
  11562. {{ lang.ssSubmit }}
  11563. </div>
  11564. </el-dialog>
  11565. <el-dialog
  11566. :title="lang.ssModifyName"
  11567. :visible.sync="dialogVisibleSname"
  11568. width="500px"
  11569. :before-close="handleClose"
  11570. class="dialog_diy"
  11571. center
  11572. >
  11573. <div
  11574. style="
  11575. text-align: center;
  11576. display: flex;
  11577. align-items: center;
  11578. justify-content: center;
  11579. "
  11580. >
  11581. <span class="tian1">{{ lang.ssName }}</span>
  11582. <div
  11583. class="pl_select_box"
  11584. style="margin-left: 10px; width: 200px"
  11585. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11586. >
  11587. {{ getSName(worksSName) }}
  11588. </div>
  11589. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11590. :placeholder="lang.ssSelectStudentPrompt"
  11591. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11592. :value="item.userid">
  11593. </el-option>
  11594. </el-select> -->
  11595. <!-- <el-input
  11596. v-model="worksSName"
  11597. style="width: 250px; margin: 15px 0px"
  11598. ></el-input> -->
  11599. </div>
  11600. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11601. <el-button @click="dialogVisibleSname = false">{{lang.ssCancelBtn}}</el-button>
  11602. <el-button type="primary" @click="updateName">{{lang.ssConfirmBtn}}</el-button>
  11603. </span>
  11604. </el-dialog>
  11605. <el-dialog
  11606. :title="lang.ssEnglishWrite"
  11607. :visible.sync="engDialogVisible"
  11608. :append-to-body="true"
  11609. width="800px"
  11610. :before-close="handleClose"
  11611. class="dialog_diy"
  11612. >
  11613. <onlineWrite
  11614. v-if="engDialogVisible"
  11615. :englishList="englishList"
  11616. :myAnswerList1="myAnswerList1"
  11617. :userid="userid"
  11618. ref="engJson"
  11619. ></onlineWrite>
  11620. <span slot="footer" class="dialog-footer">
  11621. <el-button @click="engDialogVisible = false">{{lang.ssCancelBtn}}</el-button>
  11622. <el-button type="primary" @click="addEnglishWork">{{lang.ssConfirmBtn}}</el-button>
  11623. </span>
  11624. </el-dialog>
  11625. <el-dialog
  11626. :title="lang.ssEnglishWrite"
  11627. :visible.sync="engUpdateDialogVisible"
  11628. :append-to-body="true"
  11629. width="800px"
  11630. :before-close="handleClose"
  11631. class="dialog_diy fullStyle"
  11632. >
  11633. <div class="engUpBox">
  11634. <div class="engUpTop">
  11635. <div class="engTitle">
  11636. <div>{{ lang.ssEssayTitle }}</div>
  11637. <div>{{ englishList1.engTitle }}</div>
  11638. </div>
  11639. <div class="engText">
  11640. <div>{{ lang.ssEssayContent }}</div>
  11641. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11642. </div>
  11643. </div>
  11644. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11645. <div class="oldBox">
  11646. <div class="oldMes">{{ lang.ssOriginalAuthor }}{{ noteName }} )</div>
  11647. <div class="oldText">
  11648. <div class="detailBox">
  11649. <div class="oldDetail">
  11650. <div>{{ lang.ssTitleColon }}</div>
  11651. <div>{{ oldEnglishJson.engTitle }} </div>
  11652. </div>
  11653. <div class="oldDetail1">
  11654. <div>{{ lang.ssContentColon }}</div>
  11655. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11656. </div>
  11657. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11658. <div>{{ lang.ssImageColon }}</div>
  11659. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11660. </div>
  11661. </div>
  11662. </div>
  11663. </div>
  11664. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11665. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11666. <div class="oldText">
  11667. <div class="detailBox" style="position: relative;">
  11668. <div class="oldDetail">
  11669. <div>{{ lang.ssTitleColon }}</div>
  11670. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11671. <div v-else v-html="newEnglishList.engTitle"></div>
  11672. </div>
  11673. <div class="oldDetail">
  11674. <div>{{ lang.ssContentColon }}</div>
  11675. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11676. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11677. </div>
  11678. <div style="position: absolute;bottom: -25px;">{{ lang.ssEditNoteText }}</div>
  11679. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11680. <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>
  11681. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirmBtn }}</el-button>
  11682. </div>
  11683. </div>
  11684. </div>
  11685. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11686. <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">
  11687. <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>
  11688. <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>
  11689. </div>
  11690. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11691. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11692. <div class="detailBox" style="position: relative;">
  11693. <div class="oldDetail">
  11694. <div>{{ lang.ssTitleColon }}</div>
  11695. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11696. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11697. </div>
  11698. <div class="oldDetail">
  11699. <div>{{ lang.ssContentColon }}</div>
  11700. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11701. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11702. </div>
  11703. <div style="position: absolute;bottom: -25px;">{{ lang.ssEditNoteText }}</div>
  11704. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11705. <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>
  11706. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirmBtn }}</el-button>
  11707. </div>
  11708. </div>
  11709. <div class="oldText" v-else-if="newEngIndex == -1">
  11710. <div class="detailBox" style="position: relative;">
  11711. <div class="oldDetail">
  11712. <div>{{ lang.ssTitleColon }}</div>
  11713. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11714. <div v-else v-html="newEnglishList.engTitle"></div>
  11715. </div>
  11716. <div class="oldDetail">
  11717. <div>{{ lang.ssContentColon }}</div>
  11718. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11719. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11720. </div>
  11721. <div style="position: absolute;bottom: -25px;">{{ lang.ssEditNoteText }}</div>
  11722. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11723. <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>
  11724. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirmBtn }}</el-button>
  11725. </div>
  11726. </div>
  11727. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11728. <div class="detailBox" style="position: relative;">
  11729. <div class="oldDetail">
  11730. <div>{{ lang.ssTitleColon }}</div>
  11731. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11732. <div v-else>
  11733. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  11734. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11735. </div>
  11736. </div>
  11737. <div class="oldDetail">
  11738. <div>{{ lang.ssContentColon }}</div>
  11739. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11740. <div v-else>
  11741. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11742. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11743. </div>
  11744. </div>
  11745. <div style="position: absolute;bottom: -25px;">{{ lang.ssEditNoteText }}</div>
  11746. <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>
  11747. <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>
  11748. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirmBtn }}</el-button>
  11749. </div>
  11750. </div>
  11751. </div>
  11752. </div>
  11753. </div>
  11754. <span slot="footer" class="dialog-footer">
  11755. <el-button @click="engUpdateDialogVisible = false">{{lang.ssCancelBtn}}</el-button>
  11756. <el-button type="primary" @click="addCorrect">{{lang.ssConfirmBtn}}</el-button>
  11757. </span>
  11758. </el-dialog>
  11759. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11760. <interVideo
  11761. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11762. :videoJson="videoJson"
  11763. :userid="userid"
  11764. :id="id"
  11765. :courseType="courseType"
  11766. :taskCount="taskCount"
  11767. :toolindex="toolindex"
  11768. :videoType="videoType"
  11769. ></interVideo>
  11770. <UpdateMore
  11771. :dialogVisibleMember.sync="dialogVisibleMember"
  11772. :cList="uploadStudentJuri"
  11773. :userid="userid"
  11774. :searchTN="worksSName2"
  11775. @setPlname="setPlname"
  11776. ></UpdateMore>
  11777. <!-- <wordCloud
  11778. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11779. :data="wordCloudData"
  11780. ></wordCloud> -->
  11781. <el-dialog
  11782. :title="lang.ssWordCloudTitle"
  11783. :visible.sync="dialogVisibleWordCloud"
  11784. width="800px"
  11785. class="dialog_diy"
  11786. :before-close="handleClose">
  11787. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  11788. </el-dialog>
  11789. <el-dialog
  11790. :title="lang.ssPickPerson"
  11791. :visible.sync="dialogVisiblePickPeople"
  11792. width="650px"
  11793. :before-close="handleClose"
  11794. class="dialog_diy"
  11795. center
  11796. >
  11797. <div class="pick_box">
  11798. <div
  11799. class="noWorksName"
  11800. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11801. v-for="(item, index) in uploadStudentJuri"
  11802. :key="index"
  11803. @click="pickStudent(item)"
  11804. >
  11805. {{ item.name }}
  11806. </div>
  11807. </div>
  11808. </el-dialog>
  11809. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11810. :englishVoiceJson='englishVoiceJson'
  11811. :userid="userid"
  11812. :id="id"
  11813. :courseType="courseType"
  11814. :taskCount="taskCount"
  11815. :toolindex="toolindex"
  11816. @selectSWorks="selectSWorks"
  11817. @selectStudent="selectStudent"
  11818. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11819. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11820. :userid="userid"
  11821. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11822. :commentDetail="commentDetail"
  11823. :courseDetail="courseDetail"
  11824. :wScore="wScore"
  11825. :scoreDetail="scoreDetail"
  11826. @selectSWorks="selectSWorks"
  11827. @selectStudent="selectStudent"></checkEnglishVoice>
  11828. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  11829. <choseWorksDetailDialog
  11830. ref="choseWorksDetailDialogRef"
  11831. :worksStudentData="worksStudent"
  11832. :noWorksSData="noWorksS"
  11833. :chapInfoListData="chapInfoList"
  11834. :courseType="courseType"
  11835. :taskCount="taskCount"
  11836. :tType="tType"
  11837. :sIsOpen="sIsOpen"
  11838. :courseDetail="courseDetail"
  11839. :groupStudent2="groupStudent"
  11840. :groupStudentUid2="groupStudentUid"
  11841. :oid="oid"
  11842. :org="org"
  11843. @getCourseDetail="getCourseDetail"
  11844. @selectSLook="selectSLook"
  11845. @selectSWorks="selectSWorks"
  11846. @selectStudent="selectStudent"
  11847. @deleteWorks="deleteWorks"
  11848. @openTools="openTools"
  11849. @openWord="openWord"
  11850. @openScore="openScore"
  11851. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  11852. />
  11853. <el-dialog
  11854. :visible.sync="confirmOpenDig"
  11855. width="500px"
  11856. :modal="false"
  11857. class="confirmOpenDigCss dialog_diyCopy"
  11858. :before-close="handleClose">
  11859. <div style="display: flex;align-items: center;">
  11860. <img src="../assets/icon/course/confirmOpenDig.svg" alt="">
  11861. <span>{{ lang.ssCourseStartWithTitle.replace(/\*/g, courseDetail.title) }}</span>
  11862. </div>
  11863. <div style="margin: 20px 0 35px;">
  11864. <div style="margin-bottom: 10px;">{{ lang.ssFollowTeacherMsg }}</div>
  11865. <div>{{ lang.ssStudyHardMsg }}</div>
  11866. </div>
  11867. <div style="text-align: center;">
  11868. <el-button type="primary" style="width: 95%;" @click="confirmOpen">{{ lang.ssStartLearningBtn }}</el-button>
  11869. </div>
  11870. </el-dialog>
  11871. <appStoreC ref="appStoreC"
  11872. :sStudent="sStudent"
  11873. :courseType="courseType"
  11874. :taskCount="taskCount"
  11875. :toolindex="toolindex"
  11876. @selectSWorks="selectSWorks"
  11877. @selectStudent="selectStudent"
  11878. ></appStoreC>
  11879. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  11880. </div>
  11881. </template>
  11882. <script>
  11883. import "../common/aws-sdk-2.235.1.min.js";
  11884. // import pdf from "./components/pdf3";
  11885. import pdf from "./components/vpdf";
  11886. import AskStatic from "./components/askStatic";
  11887. import AskStatic2 from "./components/askStatic2";
  11888. import AnswerData2 from "./components/answerData2";
  11889. import AnswerData from "./components/answerData";
  11890. import sortToolWorkShow from "./components/sortToolWorkShow.vue";
  11891. import EditorBar from "./tools/wangEnduit.vue";
  11892. import Table from "./tools/table.vue";
  11893. import Time from "./tools/time.vue";
  11894. import Mind from "./tools/jsmind.vue";
  11895. import Sunburst from "./tools/sunburst";
  11896. import SeeBoard from "./tools/seeBoard";
  11897. import * as imageConversion from "image-conversion";
  11898. import Audio from "./components/audio.vue";
  11899. import ImgDraw from "./tools/imgDraw/imgDraw";
  11900. import { Empty } from "element-ui";
  11901. import RecordRTC from "recordrtc";
  11902. import interVideo from "./interVideo/index.vue";
  11903. import UpdateMore from "./updateMore/updateMore.vue";
  11904. import wordCloud from "./wordCloud/index.vue";
  11905. import axios from "axios";
  11906. import JSZip from "jszip";
  11907. import FileSaver from "file-saver";
  11908. import onlineWrite from "./components/onlineWrite";
  11909. import englishEva from "./components/englishEva";
  11910. import * as Diff from 'diff'
  11911. import EnglishVoice from './EnglishVoice2/index.vue'
  11912. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  11913. import correctText from './components/correctText.vue'
  11914. import scoreItem from './scoreList/scoreItem.vue'
  11915. import scoreZong from './scoreZong/index.vue'
  11916. import classRoomHelper from './classRoomHelper/index.vue'
  11917. import studentClassRoomHelper from './classRoomHelper/studentIndex.vue'
  11918. import statisticalAnalysis from "./components/statisticalAnalysis.vue";
  11919. import choseWorksDetailDialog from './components/choseWorksDetailDialog.vue';
  11920. import { v4 as uuidv4 } from "uuid";
  11921. var OpenCC = require("opencc-js");
  11922. import choseWordCloud from './components/choseWordCloud.vue'
  11923. import appStoreC from "./components/appStoreC.vue";
  11924. import cocoFlowDia from "./components/cocoFlowDia.vue";
  11925. import { myMixin } from "@/mixins/mixin.js"
  11926. import { tools as toolsList } from "@/common/tools2.js";
  11927. import katex from 'katex'
  11928. import 'katex/dist/katex.min.css'
  11929. let converter = OpenCC.Converter({
  11930. from: "hk",
  11931. to: "cn"
  11932. });
  11933. const getFile = (url) => {
  11934. return new Promise((resolve, reject) => {
  11935. var credentials = {
  11936. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11937. secretAccessKey: "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",
  11938. }; //秘钥形式的登录上传
  11939. window.AWS.config.update(credentials);
  11940. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11941. let url2 = url;
  11942. let _url2 = "";
  11943. if (
  11944. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11945. ) {
  11946. _url2 = url2.split(
  11947. "https://view.officeapps.live.com/op/view.aspx?src="
  11948. )[1];
  11949. } else {
  11950. _url2 = url2;
  11951. }
  11952. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11953. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11954. var params = {
  11955. Bucket: "ccrb",
  11956. Key: name
  11957. };
  11958. s3.getObject(params, function (err, data) {
  11959. if (err) {
  11960. console.log(err, err.stack)
  11961. resolve({ data: 1 });
  11962. }else {
  11963. resolve({ data: data.Body });
  11964. console.log(data);
  11965. } // sxuccessful response
  11966. });
  11967. // axios({
  11968. // method: "get",
  11969. // url,
  11970. // responseType: "blob",
  11971. // })
  11972. // .then((data) => {
  11973. // resolve({ data: data.data });
  11974. // })
  11975. // .catch((error) => {
  11976. // resolve({ data: 1 });
  11977. // // reject(error.toString());
  11978. // });
  11979. });
  11980. };
  11981. export default {
  11982. mixins: [ myMixin ],
  11983. components: {
  11984. choseWordCloud,
  11985. EditorBar,
  11986. Time,
  11987. pdf,
  11988. AskStatic,
  11989. AskStatic2,
  11990. Mind,
  11991. Sunburst,
  11992. SeeBoard,
  11993. AnswerData2,
  11994. AnswerData,
  11995. sortToolWorkShow,
  11996. Audio,
  11997. ImgDraw,
  11998. Table,
  11999. interVideo,
  12000. UpdateMore,
  12001. wordCloud,
  12002. onlineWrite,
  12003. englishEva,
  12004. EnglishVoice,
  12005. checkEnglishVoice,
  12006. correctText,
  12007. scoreItem,
  12008. classRoomHelper,
  12009. scoreZong,
  12010. statisticalAnalysis,
  12011. choseWorksDetailDialog,
  12012. appStoreC,
  12013. cocoFlowDia,
  12014. studentClassRoomHelper
  12015. },
  12016. data() {
  12017. return {
  12018. // 学校或者组织随机码
  12019. Code2:'',
  12020. startTime: "",
  12021. // 是否允许学生查看内容资料 2不可以 1可以
  12022. IsStulook:false,
  12023. homeWorkLoading:false,
  12024. wordCloudKey: 0,
  12025. bg: null,
  12026. drawShow: false,
  12027. dialogVisible: false,
  12028. dialogVisiblePl: false,
  12029. commentDialogVisible: false,
  12030. dialogVisibleMember: false,
  12031. dialogVisibleWordCloud: false,
  12032. videoVisible: false,
  12033. isStar: false,
  12034. studentEvalDialogVisible: false,
  12035. studentEvalDialogVisibleTeacher: false,
  12036. dialogVisibleSelect: false,
  12037. dialogVisibleSelectTeacher: false,
  12038. dialogVisibleScore: false,
  12039. dialogVisibleENScore: false,
  12040. dialogVisibleSentence: false,
  12041. dialogVisibleSentenceTeacher: false,
  12042. dialogVisibleSentence1: false,
  12043. dialogVisibleWorks: false,
  12044. dialogVisibleTable: false,
  12045. dialogVisibleTableTeacher: false,
  12046. dialogVisibleWord: false,
  12047. dialogVisibleWordTeacher: false,
  12048. dialogVisibleTable2: false,
  12049. dialogVisibleTable3: false,
  12050. dialogVisibleGroupWork: false,
  12051. dialogVisibleUpdateGroup: false,
  12052. dialogVisibleDeleteGroup: false,
  12053. dialogVisibleSname: false,
  12054. dialogVisibleVideo: false,
  12055. dialogVisiblePickPeople: false,
  12056. engDialogVisible: false,
  12057. engUpdateDialogVisible: false,
  12058. engEvaDialogVisible: false,
  12059. evaEngJson: {
  12060. teacherJson: {},
  12061. studentJson: {},
  12062. message: {},
  12063. },
  12064. isNoUserid:false,
  12065. engListLength:0,
  12066. engWid:"",
  12067. newEnglishList:{
  12068. engTitle:"",
  12069. engText:"",
  12070. },
  12071. newEnglishList1:[],
  12072. oldEnglishJson:{},
  12073. oldEnglishJson1:{},
  12074. englishList1:{},
  12075. englishList:{},
  12076. myAnswerList1:{},
  12077. topHeight:0,
  12078. newEngIndex:-1,
  12079. englishToolIndex:0,
  12080. worksSName: "",
  12081. classJuri: [],
  12082. uploadStudentJuri: [],
  12083. uploadCid: "",
  12084. snameWid: "",
  12085. sStudent: {},
  12086. sTool: "",
  12087. bzText: "",
  12088. commentDetail: [],
  12089. selectAnswer: [],
  12090. videoDetail: {},
  12091. selectJson: {},
  12092. eScore: { eBzText: "", eStar: [] },
  12093. id: this.$route.query.courseId,
  12094. userid: this.$route.query.userid,
  12095. classId: this.$route.query.cid,
  12096. role: this.$route.query.role,
  12097. // courseTypeLine: this.$route.query.type,
  12098. oid: this.$route.query.oid,
  12099. org: this.$route.query.org,
  12100. tType: this.$route.query.tType,
  12101. courseType: this.$route.query.type,
  12102. screenType: this.$route.query.screenType,
  12103. tcid2: this.$route.query.tcid,
  12104. tcid: "",
  12105. pptImgUrl: "",
  12106. pptImgUrl1: "",
  12107. commentText: "",
  12108. full: false,
  12109. sIsOpen: false,
  12110. IsLookOpen: false,
  12111. IsFollow: false,
  12112. pzDialog: false,
  12113. contentDialog: false,
  12114. mlDialog: false,
  12115. type: 1,
  12116. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12117. sentenceList1: [],
  12118. tableJson: [],
  12119. tableJsonO: [],
  12120. wordJson: [],
  12121. wordJsonO: [],
  12122. vedio: [],
  12123. text: [],
  12124. textList: [],
  12125. line: [],
  12126. lineList: [],
  12127. chapTools: [],
  12128. chapToolList: [],
  12129. file: [],
  12130. fileC: [],
  12131. vedioTime: [],
  12132. upToolImg: "",
  12133. preTime: 0,
  12134. rateList: {
  12135. ca: 0,
  12136. },
  12137. rateParams: [],
  12138. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12139. studyJuri: [
  12140. {
  12141. content: "",
  12142. cover: [],
  12143. upVedio: [],
  12144. upFile: [],
  12145. },
  12146. ],
  12147. isClose: 0,
  12148. plworkFile: [],
  12149. mr: require("../assets/vedioPic.png"),
  12150. word: require("../assets/icon/isWord.png"),
  12151. word2: require("../assets/icon/word2.png"),
  12152. video: require("../assets/icon/isVideo.png"),
  12153. noLikes: require("../assets/icon/comment/noLikes.png"),
  12154. likes: require("../assets/icon/comment/likes.png"),
  12155. scoreImg: require("../assets/score.png"),
  12156. courseDetail: {},
  12157. reply: "",
  12158. isSelect: false,
  12159. chapInfo: [],
  12160. chapInfoList: [],
  12161. taskCount: 0,
  12162. imgList: [],
  12163. noImgList: [],
  12164. pzList: [],
  12165. timeWorkList: [],
  12166. PlTextList: [
  12167. "Excellent!",
  12168. "nice!",
  12169. this.lang.ssVeryCreative,
  12170. this.lang.ssNotBad,
  12171. this.lang.ssKeepTrying,
  12172. ],
  12173. isClickNav: "",
  12174. navId: "",
  12175. playerOptions: {
  12176. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12177. autoplay: false, //如果true,浏览器准备好时开始回放。
  12178. muted: false, // 默认情况下将会消除任何音频。
  12179. loop: false, // 导致视频一结束就重新开始。
  12180. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12181. language: "zh-CN",
  12182. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12183. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12184. sources: [
  12185. {
  12186. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12187. src: "", //url地址require("../../assets/media/aaa.mp4")
  12188. },
  12189. ],
  12190. // poster: require("../../assets/tu31.png"), //你的封面地址
  12191. // poster: dataRes.imgUrl, //你的封面地址
  12192. notSupportedMessage: this.lang.ssVideoNotSupported, //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12193. controlBar: {
  12194. timeDivider: true, //当前时间和持续时间的分隔符
  12195. durationDisplay: true, //显示持续时间
  12196. remainingTimeDisplay: false, //是否显示剩余时间功能
  12197. fullscreenToggle: true, //全屏按钮
  12198. },
  12199. },
  12200. playerOptions1: {
  12201. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12202. autoplay: false, //如果true,浏览器准备好时开始回放。
  12203. muted: false, // 默认情况下将会消除任何音频。
  12204. loop: false, // 导致视频一结束就重新开始。
  12205. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12206. language: "zh-CN",
  12207. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12208. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12209. sources: [
  12210. {
  12211. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12212. src: "", //url地址require("../../assets/media/aaa.mp4")
  12213. },
  12214. ],
  12215. // poster: require("../../assets/tu31.png"), //你的封面地址
  12216. // poster: dataRes.imgUrl, //你的封面地址
  12217. notSupportedMessage: this.lang.ssVideoNotSupported, //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12218. controlBar: {
  12219. timeDivider: true, //当前时间和持续时间的分隔符
  12220. durationDisplay: true, //显示持续时间
  12221. remainingTimeDisplay: false, //是否显示剩余时间功能
  12222. fullscreenToggle: true, //全屏按钮
  12223. },
  12224. },
  12225. playerO: {},
  12226. noneBtnImg: false,
  12227. proVisible: false,
  12228. proVisible2: false,
  12229. progress: 0,
  12230. isFinishSize: 0,
  12231. isAllSize: 0,
  12232. questionAnswer: "",
  12233. answerQ: "", //问答标题
  12234. rateJson: [],
  12235. wbCount: 0,
  12236. wordCount: 0,
  12237. mindCount: 0,
  12238. askCount: 0,
  12239. noteCount: 0,
  12240. mindNetWorkCount: 0,
  12241. libraryCount: 0,
  12242. workCount: 0,
  12243. timeCount: 0,
  12244. answerCount: 0,
  12245. trainCount: 0,
  12246. evalCount: 0,
  12247. dialogImageUrl: "",
  12248. pictureDialog: false,
  12249. toolTypeList: [],
  12250. dialogVisible1: false,
  12251. dialogVisible2: false,
  12252. dialogVisible3: false,
  12253. dialogVisible6: false,
  12254. dialogVisible4: false,
  12255. isNoHomeWork: false,
  12256. dialogVisible5: false,
  12257. dialogVisible5Teacher: false,
  12258. dialogVisibleChoice: false,
  12259. dialogVisibleChoiceTeacher: false,
  12260. answerDialogVisible: false,
  12261. answerDialogVisibleTeacher: false,
  12262. juriVisible: false,
  12263. timeDialogVisible: false,
  12264. replyDialogVisible: false,
  12265. toolDialogVisible: false,
  12266. replyIndex: 0,
  12267. replyPid: "",
  12268. radio: [],
  12269. isAsk: false,
  12270. askJson: {
  12271. askCount: 1,
  12272. askTitle: "",
  12273. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12274. },
  12275. testJson: {},
  12276. videoType:0,
  12277. checkJson: [],
  12278. askList: [],
  12279. answerList: [],
  12280. navList: [],
  12281. addPzDialog: false,
  12282. pzConText: "",
  12283. worksStudent: [],
  12284. isCloseList: [],
  12285. workStudent: [],
  12286. groupStudent: [],
  12287. groupStudentUid: [],
  12288. noWorksS: [],
  12289. isWorksS: [],
  12290. noWorksStudent: [],
  12291. toolindex: 0,
  12292. toolDetailIndex: null,
  12293. groupIndex: 0,
  12294. workTypeB: false,
  12295. workTypeC: false,
  12296. isAnswer: false,
  12297. isHovered: false,
  12298. isHovered1: false,
  12299. isHovered2: false,
  12300. commentTagShow:0,
  12301. timer: null,
  12302. timer2: null,
  12303. opertimer: null,
  12304. showType: '',
  12305. fileType: 0,
  12306. showPDF: false,
  12307. noteName: "",
  12308. evaJuri: [],
  12309. evalua: "",
  12310. eTitle: "",
  12311. eName: "",
  12312. eJson: {},
  12313. fid: "", //一级
  12314. sid: "", //二级
  12315. tid: "", //二级
  12316. typeMode: 1,
  12317. eJSONNum: 0,
  12318. Etype: 1,
  12319. data: {
  12320. meta: {
  12321. name: "example",
  12322. author: "dd@163.com",
  12323. version: "0.2",
  12324. },
  12325. format: "node_array",
  12326. data: [{ id: "root", isroot: true, topic: "" }],
  12327. },
  12328. fullDialogVisible: false,
  12329. fulltype: "",
  12330. fullUrl: "",
  12331. commentIndexJson: {},
  12332. Stbodywidth: 0,
  12333. ispzType: 0,
  12334. pzType: 1,
  12335. wScore: 0,
  12336. scoreDetail: "",
  12337. videoStart: false,
  12338. recorder: null,
  12339. groupJson: {},
  12340. islock: false,
  12341. groupJson2: {},
  12342. dialogVisibleGroup: false,
  12343. dialogVisibleGroup2: false,
  12344. updateGroupArray: [],
  12345. updateGroupUser: {},
  12346. deleteGroupUser: [],
  12347. deleteGroupArray: {},
  12348. checkChair: "",
  12349. checkDeleteGroup: [],
  12350. inviteCode: "",
  12351. courseGroupStudent: [],
  12352. courseGroupStudentUid: [],
  12353. courseGroup: {},
  12354. isGroup: false,
  12355. // toolIndex: null,
  12356. tool: {},
  12357. isWorkTool: [
  12358. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12359. ], //, 40
  12360. videoJson: {},
  12361. toolType: 0,
  12362. checktoolArray: [],
  12363. vChapterData: [],
  12364. isUpdateToolDetail: false,
  12365. isUpdateToolDetail1: false,
  12366. updateToolDetailInner: "",
  12367. checkboxList: [],
  12368. plIndex: "",
  12369. worksSName2: "",
  12370. worksSid: "",
  12371. wordCloudData: [],
  12372. isPickStudent: [],
  12373. pzStype: 1,
  12374. myAnList: {},
  12375. userMes:{},
  12376. downLoading: false,
  12377. greyType: false,
  12378. correctWord: [],
  12379. isUpdateText: "",
  12380. EnglishVoiceDialog: false,
  12381. englishVoiceJson: {},
  12382. englishVoiceJsonWork:[],
  12383. scoreList:{
  12384. listdata:[],
  12385. isScoreList:[],
  12386. },
  12387. classRoomHelperWidth: this.$region != 'hk' ? '85px' : '15px',
  12388. orgArray:[],
  12389. oidArray:[],
  12390. toolsList: toolsList,
  12391. splitScreenData:{
  12392. isOpen:false,
  12393. userId:"",
  12394. uid:"",
  12395. myUid:"",
  12396. loading:false,
  12397. behavior:null,
  12398. },
  12399. confirmOpenDig:false,
  12400. confirmOpenDigData:'',
  12401. canUseCourseId: ['bfbe1913-2f87-11ef-bf55-005056b86db5','3a64b199-d2eb-11ef-a2d1-005056b86db5', 'bb0b1995-0207-11ef-b534-005056b86db5', 'f77921c8-d2f1-11ef-a2d1-005056b86db5'],
  12402. diffKey:"1",
  12403. getCourseGroupLoading: false,
  12404. selectSWorksLoading:false,
  12405. selectStudentLoading:false,
  12406. selectSLookLoading:false,
  12407. getPickLoading:false,
  12408. selectPzLoading:false,
  12409. getSplitScreenDataLoading:false,
  12410. timeoutPan: null,
  12411. isTimeOutPan: false,
  12412. };
  12413. },
  12414. methods: {
  12415. // 获取学校或组织随机码
  12416. getCode2(){
  12417. let params = {
  12418. oid: this.oid,
  12419. org: this.org
  12420. };
  12421. this.ajax
  12422. .get(this.$store.state.api + "getCode2", params)
  12423. .then(res => {
  12424. this.Code2 = res.data[0] && res.data[0][0] && res.data[0][0].code2 ? res.data[0][0].code2 : ''
  12425. })
  12426. .catch(err => {
  12427. console.error(err);
  12428. });
  12429. },
  12430. //查看应用中心作业
  12431. openCocoFlow(w){
  12432. this.$refs.cocoFlowDiaRef.openAppWork(w)
  12433. },
  12434. getAIJ(){
  12435. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12436. let oid = res.data[0];
  12437. let org = res.data[1];
  12438. let oidArray = [];
  12439. let orgArray = [];
  12440. oid.forEach(i=>oidArray.push(i.oid))
  12441. org.forEach(i=>orgArray.push(i.oid))
  12442. this.orgArray = orgArray;
  12443. this.oidArray = oidArray;
  12444. })
  12445. },
  12446. insertMemorandum(_html){//保存行为操作
  12447. //variable
  12448. //btn
  12449. let params = [{
  12450. uid:this.userid,
  12451. courseId:this.id+(this.tcid2?this.tcid2:''),
  12452. content:_html
  12453. }]
  12454. console.log("👇👇")
  12455. console.log(params)
  12456. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12457. if(res.data==1){
  12458. console.log('保存操作成功')
  12459. }else{
  12460. console.log('保存操作失败')
  12461. }
  12462. }).catch(e=>{
  12463. console.log('保存操作失败')
  12464. console.log(e)
  12465. })
  12466. },
  12467. gx(){
  12468. this.$forceUpdate();
  12469. },
  12470. isUpdateCorrect(t,p){
  12471. if(this.greyType == false){
  12472. this.isUpdateText = t;
  12473. this.greyType = true;
  12474. }else{
  12475. if(p == 1){
  12476. this.newEnglishList.engText = this.isUpdateText;
  12477. }else if(p == 2){
  12478. this.oldEnglishJson1.engText = this.isUpdateText;
  12479. }else if(p == 3){
  12480. this.newEnglishList.engText = this.isUpdateText;
  12481. }else{
  12482. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12483. }
  12484. this.greyType = false
  12485. }
  12486. },
  12487. aiCorrect(t,p){
  12488. let aiText = "";
  12489. const loading = this.$loading.service({
  12490. background: "rgba(255, 255, 255)",
  12491. target: document.querySelectorAll(".loadingText")[0],
  12492. });
  12493. let param = {
  12494. model: "gpt-3.5-turbo",
  12495. temperature: 0,
  12496. max_tokens: 2048,
  12497. top_p: 1,
  12498. frequency_penalty: 0,
  12499. presence_penalty: 0,
  12500. messages: [
  12501. {
  12502. role: "user",
  12503. content:
  12504. `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12505. },
  12506. ],
  12507. uid: this.userid,
  12508. stream: false,
  12509. };
  12510. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12511. (res) => {
  12512. if (
  12513. res.data.FunctionResponse &&
  12514. res.data.FunctionResponse.result &&
  12515. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12516. ) {
  12517. this.$message.error(this.lang.ssEssayTooLongForAI);
  12518. return;
  12519. }
  12520. aiText =
  12521. res.data.FunctionResponse.choices[0].message.content;
  12522. aiText = aiText.replace(/%/g,"%25");
  12523. // let w = "";
  12524. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12525. // for(var k = 0;k<a.length;k++){
  12526. // //diffWordsWithSpace
  12527. // if(a.length > 1){
  12528. // if(a[k].added == true){
  12529. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12530. // }else if(a[k].removed == true){
  12531. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12532. // }else{
  12533. // w += '<span>' + a[k].value + '</span>';
  12534. // }
  12535. // }else{
  12536. // if(p == 1){
  12537. // w = this.newEnglishList.engText;
  12538. // }else if(p == 2){
  12539. // w = this.oldEnglishJson1.engText;
  12540. // }else if(p == 3){
  12541. // w = this.newEnglishList.engText;
  12542. // }else{
  12543. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12544. // }
  12545. // }
  12546. // }
  12547. if(p == 1){
  12548. this.newEnglishList.engText = aiText;
  12549. }else if(p == 2){
  12550. this.oldEnglishJson1.engText = aiText;
  12551. }else if(p == 3){
  12552. this.newEnglishList.engText = aiText;
  12553. }else{
  12554. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12555. }
  12556. loading.close();
  12557. },
  12558. (err) => {
  12559. console.log(err);
  12560. loading.close();
  12561. }
  12562. );
  12563. },
  12564. addToolChoose() {
  12565. if (!this.checktoolArray.length) {
  12566. this.$message.error(this.lang.ssSelectTaskToAdd);
  12567. return;
  12568. }
  12569. if (
  12570. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12571. this.taskCount
  12572. ].toolChoose[0].tool.length
  12573. ) {
  12574. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12575. this.taskCount
  12576. ].toolChoose[0].tool = this.checktoolArray;
  12577. } else {
  12578. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12579. this.taskCount
  12580. ].toolChoose.push({
  12581. tool: this.checktoolArray,
  12582. toolDetail: "",
  12583. toolType: 0,
  12584. askCount: 1,
  12585. askTitle: "",
  12586. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12587. });
  12588. }
  12589. let params = [
  12590. {
  12591. cid: this.id,
  12592. chapters: JSON.stringify(this.chapInfoList),
  12593. uid: this.userid,
  12594. unitIndex: this.courseType,
  12595. },
  12596. ];
  12597. this.ajax
  12598. .post(this.$store.state.api + "updateWorkNew4", params)
  12599. .then((res) => {
  12600. this.$message({
  12601. message: this.lang.ssAddSuccess,
  12602. type: "success",
  12603. });
  12604. this.checktoolArray = [];
  12605. this.getCourseDetail(2);
  12606. this.checkBz(
  12607. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12608. this.taskCount
  12609. ].toolChoose.length - 1
  12610. );
  12611. this.toolDialogVisible = false;
  12612. this.refreshCourse();
  12613. this.$forceUpdate();
  12614. })
  12615. .catch((err) => {
  12616. console.error(err);
  12617. });
  12618. },
  12619. checkBz(index) {
  12620. this.isUpdateToolDetail = false;
  12621. this.$forceUpdate();
  12622. setTimeout(() => {
  12623. document.scrollingElement.scrollTop =
  12624. document.querySelectorAll(".filebox")[index].offsetTop +
  12625. document.querySelector(".student_body").offsetTop;
  12626. }, 500);
  12627. },
  12628. updateToolDetail(i, type) {
  12629. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12630. this.toolDetailIndex = i
  12631. this.isUpdateToolDetail1 = true;
  12632. setTimeout(() => {
  12633. this.updateToolDetailInner = JSON.parse(
  12634. JSON.stringify(
  12635. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12636. this.taskCount
  12637. ].toolChoose[i].toolDetail
  12638. )
  12639. );
  12640. document.querySelector(".checkTextArea").focus();
  12641. }, 0);
  12642. } else if((this.isUpdateToolDetail1 && type != 2)){
  12643. // this.toolDetailIndex = i;
  12644. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12645. this.taskCount
  12646. ].toolChoose[i].toolDetail = JSON.parse(
  12647. JSON.stringify(this.updateToolDetailInner)
  12648. );
  12649. let params = [
  12650. {
  12651. cid: this.id,
  12652. chapters: JSON.stringify(this.chapInfoList),
  12653. uid: this.userid,
  12654. unitIndex: this.courseType,
  12655. },
  12656. ];
  12657. this.ajax
  12658. .post(this.$store.state.api + "updateWorkNew4", params)
  12659. .then((res) => {
  12660. this.isUpdateToolDetail1 = false;
  12661. this.$message({
  12662. message: this.lang.ssModifySuccess,
  12663. type: "success",
  12664. });
  12665. this.toolDetailIndex = null;
  12666. this.updateToolDetailInner = "";
  12667. this.getCourseDetail(2);
  12668. this.$forceUpdate();
  12669. })
  12670. .catch((err) => {
  12671. console.error(err);
  12672. });
  12673. } else if((this.isUpdateToolDetail1 && type == 2)){
  12674. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12675. this.taskCount
  12676. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12677. JSON.stringify(this.updateToolDetailInner)
  12678. );
  12679. let params = [
  12680. {
  12681. cid: this.id,
  12682. chapters: JSON.stringify(this.chapInfoList),
  12683. uid: this.userid,
  12684. unitIndex: this.courseType,
  12685. },
  12686. ];
  12687. this.ajax
  12688. .post(this.$store.state.api + "updateWorkNew4", params)
  12689. .then((res) => {
  12690. this.$message({
  12691. message: this.lang.ssModifySuccess,
  12692. type: "success",
  12693. });
  12694. this.toolDetailIndex = i;
  12695. this.isUpdateToolDetail1 = true;
  12696. setTimeout(() => {
  12697. this.updateToolDetailInner = JSON.parse(
  12698. JSON.stringify(
  12699. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12700. this.taskCount
  12701. ].toolChoose[i].toolDetail
  12702. )
  12703. );
  12704. document.querySelector(".checkTextArea").focus();
  12705. }, 0);
  12706. this.getCourseDetail(2);
  12707. this.$forceUpdate();
  12708. })
  12709. .catch((err) => {
  12710. console.error(err);
  12711. });
  12712. }
  12713. },
  12714. jumpGj(i, j, k, l) {
  12715. for (var z = 0; z < this.navList.length; z++) {
  12716. for (var q = 0; q < this.navList[z].task.length; q++) {
  12717. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12718. this.navList[z].task[q].tool[w].isTool = false;
  12719. }
  12720. }
  12721. }
  12722. this.navList[i].task[j].tool[k].isTool =
  12723. !this.navList[i].task[j].tool[k].isTool;
  12724. var a = document.scrollingElement;
  12725. this.navId = ""
  12726. let target = document.querySelector(`#gj${k}`);
  12727. if (target) {
  12728. // target.scrollIntoView(true);
  12729. // setTimeout(() => {
  12730. // a.scrollTop = a.scrollTop - 150;
  12731. // }, 0);
  12732. target.scrollIntoView();
  12733. setTimeout(()=>{
  12734. let scrollBody = document.querySelector('.body_student').parentElement
  12735. scrollBody.scrollTop = scrollBody.scrollTop - 100
  12736. }, 0);
  12737. }
  12738. let flag = this.courseType == i;
  12739. let flag2 = this.taskCount == j
  12740. if (l) {
  12741. this.courseType = i;
  12742. // this.navId = l;
  12743. this.taskCount = j;
  12744. this.selectPz();
  12745. this.getHomeWork();
  12746. this.getCourseDetail(2);
  12747. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  12748. if(flag){
  12749. if(flag2){
  12750. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12751. }else{
  12752. 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>`)
  12753. }
  12754. }else{
  12755. 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>`)
  12756. }
  12757. }
  12758. if ((this.courseDetail.userid == this.userid ||
  12759. (this.courseDetail.course_teacher &&
  12760. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
  12761. this.IsFollow) {
  12762. this.setCTask();
  12763. }
  12764. // var b = this.$refs["bz" + k][0];
  12765. // a.scrollTop = b.offsetTop;
  12766. },
  12767. addTools2(i) {
  12768. if (i == 4) {
  12769. // this.openTools2(4);
  12770. this.$message.error(this.lang.ssNotAvailable);
  12771. return;
  12772. }
  12773. if (i == 45) {
  12774. // this.openTools2(45);
  12775. this.$message.error(this.lang.ssNotAvailable);
  12776. return;
  12777. }
  12778. if (i == 47) {
  12779. // this.openTools2(47);
  12780. this.$message.error(this.lang.ssNotAvailable);
  12781. return;
  12782. }
  12783. if (i == 49) {
  12784. // this.openTools2(49);
  12785. this.$message.error(this.lang.ssNotAvailable);
  12786. return;
  12787. }
  12788. if (i == 62) {
  12789. // this.openTools(itemTaskIndex, 62, toolIndex);
  12790. this.$message.error(this.lang.ssNotAvailable);
  12791. return;
  12792. }
  12793. if (i == 15) {
  12794. // this.openTools(itemTaskIndex, 15, toolIndex);
  12795. this.$message.error(this.lang.ssNotAvailable);
  12796. return;
  12797. }
  12798. if (i == 40) {
  12799. // this.openTools(itemTaskIndex, 40, toolIndex);
  12800. this.$message.error(this.lang.ssNotAvailable);
  12801. return;
  12802. }
  12803. if (i == 41) {
  12804. // this.openTools(itemTaskIndex, 41, toolIndex);
  12805. this.$message.error(this.lang.ssNotAvailable);
  12806. return;
  12807. }
  12808. if (i == 42) {
  12809. // this.openTools(itemTaskIndex, 42, toolIndex);
  12810. this.$message.error(this.lang.ssNotAvailable);
  12811. return;
  12812. }
  12813. if (this.checktoolArray.length > 0) {
  12814. if (this.checktoolArray.indexOf(i) != -1) {
  12815. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12816. } else {
  12817. this.checktoolArray = [];
  12818. this.checktoolArray.push(i);
  12819. }
  12820. } else {
  12821. this.checktoolArray.push(i);
  12822. }
  12823. this.$forceUpdate();
  12824. },
  12825. jump() {
  12826. window.topU.postMessage({ tools: "43" }, "*");
  12827. },
  12828. getUpdateMore(f, checkboxList, searchTN, index) {
  12829. this.dialogVisibleMember = f;
  12830. this.checkboxList = checkboxList;
  12831. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12832. this.plIndex = index;
  12833. },
  12834. setPlname(a) {
  12835. if (this.plworkFile.length) {
  12836. this.plworkFile[this.plIndex].username = a;
  12837. } else {
  12838. this.worksSName = a;
  12839. }
  12840. this.dialogVisibleMember = false;
  12841. },
  12842. previewImg(url,w=null) {
  12843. this.$hevueImgPreview(url);
  12844. if(w){
  12845. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  12846. }
  12847. },
  12848. checkImg(list) {
  12849. if (!list.length) {
  12850. return;
  12851. }
  12852. this.$hevueImgPreview({
  12853. multiple: true, // 开启多图预览模式
  12854. imgList: list, // 需要预览的多图数组
  12855. });
  12856. },
  12857. change(val) {
  12858. console.log(val);
  12859. },
  12860. goTo(path) {
  12861. this.$router.push(path);
  12862. },
  12863. handlePictureCardPreview(url) {
  12864. this.dialogImageUrl = url;
  12865. this.pictureDialog = true;
  12866. },
  12867. clean(type) {
  12868. if (type == 1) {
  12869. this.studyJuri[0].cover.splice(0, 1);
  12870. } else if (type == 2) {
  12871. this.studyJuri[0].upVedio.splice(0, 1);
  12872. } else {
  12873. this.studyJuri[0].upFile.splice(0, 1);
  12874. }
  12875. },
  12876. clean2(index) {
  12877. this.plworkFile.splice(index, 1);
  12878. },
  12879. handleClose(done) {
  12880. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12881. this.videoDetail.sources[0].src = "";
  12882. }
  12883. this.commentIndexJson = {};
  12884. done();
  12885. },
  12886. fullTools() {
  12887. this.full = !this.full;
  12888. },
  12889. imgChange(file, fileList, type) {
  12890. if (type == 1) {
  12891. var _tmp = this.studyJuri[0].cover;
  12892. } else if (type == 2) {
  12893. var _tmp = this.studyJuri[0].upVedio;
  12894. } else {
  12895. var _tmp = this.studyJuri[0].upFile;
  12896. }
  12897. this.noneBtnImg = _tmp.length >= 1;
  12898. },
  12899. setContent(bool) {
  12900. this.contentDialog = bool;
  12901. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12902. document.querySelector(".workd_media").style.height = "650px";
  12903. } else if (document.querySelector(".workd_media")) {
  12904. document.querySelector(".workd_media").style.height = "auto";
  12905. }
  12906. },
  12907. setContent2(bool) {
  12908. this.mlDialog = bool;
  12909. if (
  12910. bool &&
  12911. this.contentDialog &&
  12912. document.querySelector(".workd_media")
  12913. ) {
  12914. document.querySelector(".workd_media").style.height = "650px";
  12915. } else if (document.querySelector(".workd_media")) {
  12916. document.querySelector(".workd_media").style.height = "auto";
  12917. }
  12918. this.$forceUpdate();
  12919. },
  12920. openToolAll() {
  12921. this.toolDialogVisible = true;
  12922. },
  12923. addImg(e) {
  12924. var el = e.currentTarget;
  12925. // this.$message.success('触发上传')
  12926. el.getElementsByTagName("input")[0].click();
  12927. e.target.value = "";
  12928. },
  12929. addSelectAnswer() {
  12930. let params = [
  12931. {
  12932. uid: this.userid,
  12933. cid: this.id,
  12934. stage: this.courseType,
  12935. task: this.taskCount,
  12936. tool: this.toolindex,
  12937. content: this.selectAnswer.answer,
  12938. type: 7,
  12939. },
  12940. ];
  12941. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  12942. this.homeWorkLoading = true
  12943. this.ajax
  12944. .post(this.$store.state.api + "addCourseWorks", params)
  12945. .then((res) => {
  12946. this.$message({
  12947. message: this.lang.ssSubmitSuccess,
  12948. type: "success",
  12949. });
  12950. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  12951. setTimeout(() => {
  12952. this.homeWorkLoading = false
  12953. }, 500);
  12954. this.dialogVisibleSelect = false;
  12955. // this.selectAnswer = {};
  12956. this.selectSWorks();
  12957. this.selectStudent();
  12958. })
  12959. .catch((err) => {
  12960. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  12961. setTimeout(() => {
  12962. this.homeWorkLoading = false
  12963. }, 500);
  12964. this.$message.error(this.lang.ssSubmitFailed);
  12965. console.error(err);
  12966. });
  12967. },
  12968. addSelectAnswerTeacher() {
  12969. let params = [
  12970. {
  12971. uid: this.sStudent.userid,
  12972. cid: this.id,
  12973. stage: this.courseType,
  12974. task: this.taskCount,
  12975. tool: this.toolindex,
  12976. content: this.selectAnswer.answer,
  12977. type: 7,
  12978. },
  12979. ];
  12980. this.ajax
  12981. .post(this.$store.state.api + "addCourseWorks", params)
  12982. .then((res) => {
  12983. this.$message({
  12984. message: this.lang.ssSubmitSuccess,
  12985. type: "success",
  12986. });
  12987. this.dialogVisibleSelectTeacher = false;
  12988. // this.selectAnswer = {};
  12989. this.selectSWorks();
  12990. this.selectStudent();
  12991. })
  12992. .catch((err) => {
  12993. this.$message.error(this.lang.ssSubmitFailed);
  12994. console.error(err);
  12995. });
  12996. },
  12997. addSenWorks() {
  12998. for (var i = 0; i < this.sentenceList.length; i++) {
  12999. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13000. if (
  13001. this.sentenceList[i].chooseSenList[j] == undefined ||
  13002. this.sentenceList[i].chooseSenList[j] == ""
  13003. ) {
  13004. this.$message.error(this.lang.ssFillAnswersComplete);
  13005. return;
  13006. }
  13007. }
  13008. }
  13009. let params = [
  13010. {
  13011. uid: this.userid,
  13012. cid: this.id,
  13013. stage: this.courseType,
  13014. task: this.taskCount,
  13015. tool: this.toolindex,
  13016. content: JSON.stringify(this.sentenceList),
  13017. type: 9,
  13018. },
  13019. ];
  13020. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13021. this.homeWorkLoading = true
  13022. this.ajax
  13023. .post(this.$store.state.api + "addCourseWorks", params)
  13024. .then((res) => {
  13025. this.$message({
  13026. message: this.lang.ssSubmitSuccess,
  13027. type: "success",
  13028. });
  13029. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13030. setTimeout(() => {
  13031. this.homeWorkLoading = false
  13032. }, 500);
  13033. this.dialogVisibleSentence = false;
  13034. // this.selectAnswer = {};
  13035. this.selectSWorks();
  13036. this.selectStudent();
  13037. })
  13038. .catch((err) => {
  13039. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13040. setTimeout(() => {
  13041. this.homeWorkLoading = false
  13042. }, 500);
  13043. this.$message.error(this.lang.ssSubmitFailed);
  13044. console.error(err);
  13045. });
  13046. },
  13047. addSenWorksTeacher() {
  13048. for (var i = 0; i < this.sentenceList.length; i++) {
  13049. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13050. if (
  13051. this.sentenceList[i].chooseSenList[j] == undefined ||
  13052. this.sentenceList[i].chooseSenList[j] == ""
  13053. ) {
  13054. this.$message.error(this.lang.ssFillAnswersComplete);
  13055. return;
  13056. }
  13057. }
  13058. }
  13059. let params = [
  13060. {
  13061. uid: this.sStudent.userid,
  13062. cid: this.id,
  13063. stage: this.courseType,
  13064. task: this.taskCount,
  13065. tool: this.toolindex,
  13066. content: JSON.stringify(this.sentenceList),
  13067. type: 9,
  13068. },
  13069. ];
  13070. this.ajax
  13071. .post(this.$store.state.api + "addCourseWorks", params)
  13072. .then((res) => {
  13073. this.$message({
  13074. message: this.lang.ssSubmitSuccess,
  13075. type: "success",
  13076. });
  13077. this.dialogVisibleSentenceTeacher = false;
  13078. // this.selectAnswer = {};
  13079. this.selectSWorks();
  13080. this.selectStudent();
  13081. })
  13082. .catch((err) => {
  13083. this.$message.error(this.lang.ssSubmitFailed);
  13084. console.error(err);
  13085. });
  13086. },
  13087. returnTableText() {
  13088. this.$confirm(this.lang.ssConfirmRestoreTemplate, this.lang.ssPrompt, {
  13089. confirmButtonText: this.lang.ssConfirm,
  13090. cancelButtonText: this.lang.ssCancel,
  13091. type: "warning",
  13092. })
  13093. .then(() => {
  13094. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13095. })
  13096. .catch(() => {});
  13097. },
  13098. addTableWorks() {
  13099. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13100. this.homeWorkLoading = true
  13101. let params = [
  13102. {
  13103. uid: this.userid,
  13104. cid: this.id,
  13105. stage: this.courseType,
  13106. task: this.taskCount,
  13107. tool: this.toolindex,
  13108. content: JSON.stringify(this.tableJson),
  13109. type: 10,
  13110. },
  13111. ];
  13112. this.ajax
  13113. .post(this.$store.state.api + "addCourseWorks", params)
  13114. .then((res) => {
  13115. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13116. this.$message({
  13117. message: this.lang.ssSubmitSuccess,
  13118. type: "success",
  13119. });
  13120. this.dialogVisibleTable = false;
  13121. setTimeout(() => {
  13122. this.homeWorkLoading = false
  13123. }, 500);
  13124. // this.selectAnswer = {};
  13125. this.selectSWorks();
  13126. this.selectStudent();
  13127. })
  13128. .catch((err) => {
  13129. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13130. setTimeout(() => {
  13131. this.homeWorkLoading = false
  13132. }, 500);
  13133. this.$message.error(this.lang.ssSubmitFailed);
  13134. console.error(err);
  13135. });
  13136. },
  13137. tableRowClassName({ row, rowIndex }) {
  13138. if ((rowIndex + 1) % 2 === 0) {
  13139. return "even_row";
  13140. } else {
  13141. return "";
  13142. }
  13143. },
  13144. addTableWorksTeacher() {
  13145. let params = [
  13146. {
  13147. uid: this.sStudent.userid,
  13148. cid: this.id,
  13149. stage: this.courseType,
  13150. task: this.taskCount,
  13151. tool: this.toolindex,
  13152. content: JSON.stringify(this.tableJson),
  13153. type: 10,
  13154. },
  13155. ];
  13156. this.ajax
  13157. .post(this.$store.state.api + "addCourseWorks", params)
  13158. .then((res) => {
  13159. this.$message({
  13160. message: this.lang.ssSubmitSuccess,
  13161. type: "success",
  13162. });
  13163. this.dialogVisibleTableTeacher = false;
  13164. // this.selectAnswer = {};
  13165. this.selectSWorks();
  13166. this.selectStudent();
  13167. })
  13168. .catch((err) => {
  13169. this.$message.error(this.lang.ssSubmitFailed);
  13170. console.error(err);
  13171. });
  13172. },
  13173. returnWordText() {
  13174. this.$confirm(this.lang.ssConfirmRestoreTemplate, this.lang.ssPrompt, {
  13175. confirmButtonText: this.lang.ssConfirm,
  13176. cancelButtonText: this.lang.ssCancel,
  13177. type: "warning",
  13178. })
  13179. .then(() => {
  13180. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13181. })
  13182. .catch(() => {});
  13183. },
  13184. addWordWorks() {
  13185. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13186. this.homeWorkLoading = true
  13187. let params = [
  13188. {
  13189. uid: this.userid,
  13190. cid: this.id,
  13191. stage: this.courseType,
  13192. task: this.taskCount,
  13193. tool: this.toolindex,
  13194. content: JSON.stringify(this.wordJson),
  13195. type: 13,
  13196. atool: 52,
  13197. },
  13198. ];
  13199. this.ajax
  13200. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13201. .then((res) => {
  13202. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13203. this.$message({
  13204. message: this.lang.ssSubmitSuccess,
  13205. type: "success",
  13206. });
  13207. this.dialogVisibleWord = false;
  13208. setTimeout(() => {
  13209. this.homeWorkLoading = false
  13210. }, 500);
  13211. // this.selectAnswer = {};
  13212. this.selectSWorks();
  13213. this.selectStudent();
  13214. })
  13215. .catch((err) => {
  13216. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13217. setTimeout(() => {
  13218. this.homeWorkLoading = false
  13219. }, 500);
  13220. this.$message.error(this.lang.ssSubmitFailed);
  13221. console.error(err);
  13222. });
  13223. },
  13224. addWordWorksTeacher() {
  13225. let params = [
  13226. {
  13227. uid: this.sStudent.userid,
  13228. cid: this.id,
  13229. stage: this.courseType,
  13230. task: this.taskCount,
  13231. tool: this.toolindex,
  13232. content: JSON.stringify(this.wordJson),
  13233. type: 13,
  13234. atool: 52,
  13235. },
  13236. ];
  13237. this.ajax
  13238. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13239. .then((res) => {
  13240. this.$message({
  13241. message: this.lang.ssSubmitSuccess,
  13242. type: "success",
  13243. });
  13244. this.dialogVisibleWordTeacher = false;
  13245. // this.selectAnswer = {};
  13246. this.selectSWorks();
  13247. this.selectStudent();
  13248. })
  13249. .catch((err) => {
  13250. this.$message.error(this.lang.ssSubmitFailed);
  13251. console.error(err);
  13252. });
  13253. },
  13254. addCourseWorks(i) {
  13255. var typesql;
  13256. if (this.fileType === 0) {
  13257. typesql = 1;
  13258. } else if (this.fileType === 1) {
  13259. typesql = 4;
  13260. } else if (this.fileType === 2) {
  13261. typesql = 5;
  13262. } else if (this.fileType === 3) {
  13263. typesql = 12;
  13264. }
  13265. if (!this.studyJuri[0].cover[0].url) {
  13266. this.$message.error(this.lang.ssUploadFileRequired);
  13267. return;
  13268. }
  13269. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13270. this.homeWorkLoading = true
  13271. let params = [
  13272. {
  13273. uid: this.userid,
  13274. cid: this.id,
  13275. stage: this.courseType,
  13276. task: i,
  13277. tool: this.toolindex,
  13278. content: this.studyJuri[0].cover[0].url,
  13279. type: typesql,
  13280. },
  13281. ];
  13282. this.ajax
  13283. .post(this.$store.state.api + "addCourseWorksR", params)
  13284. .then((res) => {
  13285. this.$message({
  13286. message: this.lang.ssSubmitSuccess,
  13287. type: "success",
  13288. });
  13289. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13290. setTimeout(() => {
  13291. this.homeWorkLoading = false
  13292. }, 500);
  13293. this.studyJuri[0].cover = [];
  13294. this.dialogVisible = false;
  13295. this.getCourseDetail(2);
  13296. })
  13297. .catch((err) => {
  13298. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13299. setTimeout(() => {
  13300. this.homeWorkLoading = false
  13301. }, 500);
  13302. this.$message.error(this.lang.ssSubmitFailed);
  13303. console.error(err);
  13304. });
  13305. },
  13306. addCourseWorksPl(i) {
  13307. let _files = this.plworkFile;
  13308. var c = 1;
  13309. for (var k = 0; k < _files.length; k++) {
  13310. if (!_files[k].username) {
  13311. c = 2;
  13312. }
  13313. }
  13314. if (c == 2) {
  13315. this.$message.error(this.lang.ssEnterStudentName);
  13316. return;
  13317. }
  13318. let params = [
  13319. {
  13320. ateacher: this.userid,
  13321. cid: this.id,
  13322. stage: this.courseType,
  13323. task: i,
  13324. tool: this.toolindex,
  13325. content: JSON.stringify(_files),
  13326. },
  13327. ];
  13328. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13329. this.homeWorkLoading = true
  13330. this.ajax
  13331. .post(this.$store.state.api + "addCourseWorksPl", params)
  13332. .then((res) => {
  13333. this.$message({
  13334. message: this.lang.ssSubmitSuccess,
  13335. type: "success",
  13336. });
  13337. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  13338. setTimeout(() => {
  13339. this.homeWorkLoading = false
  13340. }, 500);
  13341. this.plworkFile = [];
  13342. this.dialogVisiblePl = false;
  13343. this.getCourseDetail(2);
  13344. })
  13345. .catch((err) => {
  13346. this.$message.error(this.lang.ssSubmitFailed);
  13347. setTimeout(() => {
  13348. this.homeWorkLoading = false
  13349. }, 500);
  13350. console.error(err);
  13351. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  13352. });
  13353. },
  13354. addCourseWorks2(i) {
  13355. var typesql;
  13356. if (this.fileType === 0) {
  13357. typesql = 0;
  13358. } else if (this.fileType === 1) {
  13359. typesql = 1;
  13360. } else if (this.fileType === 2) {
  13361. typesql = 3;
  13362. } else if (this.fileType === 3) {
  13363. typesql = 12;
  13364. }
  13365. if (!this.studyJuri[0].cover[0].url) {
  13366. this.$message.error(this.lang.ssUploadFileRequired);
  13367. return;
  13368. }
  13369. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13370. this.homeWorkLoading = true
  13371. let params = [
  13372. {
  13373. uid: this.userid,
  13374. cid: this.id,
  13375. stage: this.courseType,
  13376. task: i,
  13377. tool: this.toolindex,
  13378. content: JSON.stringify({
  13379. type: typesql,
  13380. groupIndex: this.groupIndex,
  13381. url: this.studyJuri[0].cover[0].url,
  13382. }),
  13383. type: 11,
  13384. atool: 49,
  13385. text: "",
  13386. },
  13387. ];
  13388. this.ajax
  13389. .post(this.$store.state.api + "addCourseWorks5", params)
  13390. .then((res) => {
  13391. this.$message({
  13392. message: this.lang.ssSubmitSuccess,
  13393. type: "success",
  13394. });
  13395. setTimeout(() => {
  13396. this.homeWorkLoading = false
  13397. }, 500);
  13398. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13399. type: typesql,
  13400. groupIndex: this.groupIndex,
  13401. url: this.studyJuri[0].cover[0].url,
  13402. }),type: "course_tool_sub" }, "success")
  13403. this.studyJuri[0].cover = [];
  13404. this.dialogVisibleGroupWork = false;
  13405. this.getCourseDetail(2);
  13406. })
  13407. .catch((err) => {
  13408. this.$message.error(this.lang.ssSubmitFailed);
  13409. setTimeout(() => {
  13410. this.homeWorkLoading = false
  13411. }, 500);
  13412. console.error(err);
  13413. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13414. type: typesql,
  13415. groupIndex: this.groupIndex,
  13416. url: this.studyJuri[0].cover[0].url,
  13417. }),type: "course_tool_sub" }, err)
  13418. });
  13419. },
  13420. addEnglishWork() {
  13421. this.myAnList = this.$refs['engJson'].myAnswerList;
  13422. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13423. this.$message.error(this.lang.ssEnterEssayContent);
  13424. return;
  13425. }
  13426. let params = [
  13427. {
  13428. uid: this.userid,
  13429. cid: this.id,
  13430. stage: this.courseType,
  13431. task: this.taskCount,
  13432. tool: this.englishToolIndex,
  13433. content: JSON.stringify(this.myAnList),
  13434. type: 16,
  13435. atool: 69,
  13436. text: "",
  13437. },
  13438. ];
  13439. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13440. this.homeWorkLoading = true
  13441. this.ajax
  13442. .post(this.$store.state.api + "addCourseWorks5", params)
  13443. .then((res) => {
  13444. this.$message({
  13445. message: this.lang.ssSubmitSuccess,
  13446. type: "success",
  13447. });
  13448. setTimeout(() => {
  13449. this.homeWorkLoading = false
  13450. }, 500);
  13451. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  13452. data: JSON.stringify(this.myAnList),
  13453. type: "course_tool_sub" }, "success")
  13454. this.myAnList = {};
  13455. this.englishList = {};
  13456. this.englishToolIndex = 0;
  13457. this.engDialogVisible = false;
  13458. this.selectSWorks();
  13459. this.selectStudent();
  13460. })
  13461. .catch((err) => {
  13462. this.$message.error(this.lang.ssSubmitFailed);
  13463. console.error(err);
  13464. setTimeout(() => {
  13465. this.homeWorkLoading = false
  13466. }, 500);
  13467. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  13468. data: JSON.stringify(this.myAnList),
  13469. type: "course_tool_sub" }, err)
  13470. });
  13471. },
  13472. addCourseWorksGong(i, data, tool) {
  13473. let params = [
  13474. {
  13475. uid: this.userid,
  13476. cid: this.id,
  13477. stage: this.courseType,
  13478. task: this.taskCount,
  13479. tool: i,
  13480. content: data,
  13481. type: 12,
  13482. atool: tool,
  13483. text: "",
  13484. },
  13485. ];
  13486. this.ajax
  13487. .post(this.$store.state.api + "addCourseWorks5", params)
  13488. .then((res) => {
  13489. this.$message({
  13490. message: this.lang.ssSubmitSuccess,
  13491. type: "success",
  13492. });
  13493. this.studyJuri[0].cover = [];
  13494. this.selectSWorks();
  13495. this.selectStudent();
  13496. })
  13497. .catch((err) => {
  13498. this.$message.error(this.lang.ssSubmitFailed);
  13499. console.error(err);
  13500. });
  13501. },
  13502. addCourseWorksGongTeacher(i, data, tool) {
  13503. let params = [
  13504. {
  13505. uid: this.sStudent.userid,
  13506. cid: this.id,
  13507. stage: this.courseType,
  13508. task: this.taskCount,
  13509. tool: i,
  13510. content: data,
  13511. type: 12,
  13512. atool: tool,
  13513. text: "",
  13514. },
  13515. ];
  13516. this.ajax
  13517. .post(this.$store.state.api + "addCourseWorks5", params)
  13518. .then((res) => {
  13519. this.$message({
  13520. message: this.lang.ssSubmitSuccess,
  13521. type: "success",
  13522. });
  13523. this.studyJuri[0].cover = [];
  13524. this.dialogVisibleWorks = false;
  13525. this.selectSWorks();
  13526. this.selectStudent();
  13527. })
  13528. .catch((err) => {
  13529. this.$message.error(this.lang.ssSubmitFailed);
  13530. console.error(err);
  13531. });
  13532. },
  13533. addCourseWorksGongPl(i, data, tool, type) {
  13534. let params = [
  13535. {
  13536. uid: this.sStudent.userid,
  13537. cid: this.id,
  13538. stage: this.courseType,
  13539. task: this.taskCount,
  13540. tool: i,
  13541. content: data,
  13542. type: type,
  13543. atool: tool,
  13544. text: "",
  13545. },
  13546. ];
  13547. this.ajax
  13548. .post(this.$store.state.api + "addCourseWorks5", params)
  13549. .then((res) => {
  13550. this.$message({
  13551. message: this.lang.ssSubmitSuccess,
  13552. type: "success",
  13553. });
  13554. this.studyJuri[0].cover = [];
  13555. this.dialogVisibleWorks = false;
  13556. this.selectSWorks();
  13557. this.selectStudent();
  13558. })
  13559. .catch((err) => {
  13560. this.$message.error(this.lang.ssSubmitFailed);
  13561. console.error(err);
  13562. });
  13563. },
  13564. addCourseWorksTeacher(i) {
  13565. var typesql;
  13566. if (this.sTool == 32) {
  13567. this.addCourseWorksGongTeacher(
  13568. this.toolindex,
  13569. this.studyJuri[0].cover[0].url,
  13570. this.sTool
  13571. );
  13572. return;
  13573. }
  13574. if (this.fileType === 0) {
  13575. typesql = 1;
  13576. } else if (this.fileType === 1) {
  13577. typesql = 4;
  13578. } else if (this.fileType === 2) {
  13579. typesql = 5;
  13580. } else if (this.fileType === 3) {
  13581. typesql = 12;
  13582. }
  13583. if (this.sTool == 50) {
  13584. this.addCourseWorksGongPl(
  13585. this.toolindex,
  13586. this.studyJuri[0].cover[0].url,
  13587. this.sTool,
  13588. typesql
  13589. );
  13590. return;
  13591. }
  13592. if (!this.studyJuri[0].cover[0].url) {
  13593. this.$message.error(this.lang.ssUploadFileRequired);
  13594. return;
  13595. }
  13596. let params = [
  13597. {
  13598. uid: this.sStudent.userid,
  13599. cid: this.id,
  13600. stage: this.courseType,
  13601. task: i,
  13602. tool: this.toolindex,
  13603. content: this.studyJuri[0].cover[0].url,
  13604. type: typesql,
  13605. ateacher: this.userid,
  13606. },
  13607. ];
  13608. this.ajax
  13609. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13610. .then((res) => {
  13611. this.$message({
  13612. message: this.lang.ssSubmitSuccess,
  13613. type: "success",
  13614. });
  13615. this.studyJuri[0].cover = [];
  13616. this.dialogVisibleWorks = false;
  13617. this.getCourseDetail(2);
  13618. })
  13619. .catch((err) => {
  13620. this.$message.error(this.lang.ssSubmitFailed);
  13621. console.error(err);
  13622. });
  13623. },
  13624. selectUploadStudent(type) {
  13625. const loading = this.$loading.service({
  13626. background: "rgba(255, 255, 255, 0.7)",
  13627. target: document.body,
  13628. });
  13629. let params = {
  13630. cid: this.uploadCid,
  13631. oid: this.oid,
  13632. cn: "",
  13633. };
  13634. this.ajax
  13635. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13636. .then((res) => {
  13637. loading.close();
  13638. var studentK = [];
  13639. if (this.isWorksS[this.toolindex].length > 0) {
  13640. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13641. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13642. }
  13643. studentK = studentK.join(",");
  13644. }
  13645. this.uploadStudentJuri = res.data[0].filter((el) => {
  13646. return studentK.indexOf(el.userid) == -1;
  13647. });
  13648. if (this.worksSName && this.worksSid) {
  13649. this.uploadStudentJuri.push({
  13650. userid: this.worksSid,
  13651. name: this.worksSName,
  13652. });
  13653. }
  13654. if (type == 1) {
  13655. this.plworkFile = [];
  13656. this.dialogVisibleSname = true;
  13657. } else if (type == 2) {
  13658. this.dialogVisiblePl = true;
  13659. }
  13660. })
  13661. .catch((err) => {
  13662. loading.close();
  13663. console.error(err);
  13664. });
  13665. },
  13666. selectPickStudent() {
  13667. const loading = this.$loading.service({
  13668. background: "rgba(255, 255, 255, 0.7)",
  13669. target: document.body,
  13670. });
  13671. let params = {
  13672. cid: this.uploadCid,
  13673. oid: this.oid,
  13674. cn: "",
  13675. };
  13676. this.ajax
  13677. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13678. .then((res) => {
  13679. loading.close();
  13680. this.uploadStudentJuri = res.data[0];
  13681. this.dialogVisiblePickPeople = true;
  13682. })
  13683. .catch((err) => {
  13684. loading.close();
  13685. console.error(err);
  13686. });
  13687. },
  13688. arrayToArray(arrayo, arrayt) {
  13689. let array1 = arrayo;
  13690. let array2 = arrayt;
  13691. let commonElements = [];
  13692. for (let i = 0; i < array1.length; i++) {
  13693. for (let j = 0; j < array2.length; j++) {
  13694. if (array1[i] === array2[j]) {
  13695. commonElements.push(array1[i]);
  13696. }
  13697. }
  13698. }
  13699. return commonElements;
  13700. },
  13701. selectWorksStudent() {
  13702. let params = {
  13703. oid: this.oid,
  13704. cid: this.courseDetail.juri,
  13705. };
  13706. this.ajax
  13707. .get(this.$store.state.api + "selectWorksStudent", params)
  13708. .then((res) => {
  13709. var a = res.data[0];
  13710. for (var i = 0; i < this.isWorksS.length; i++) {
  13711. this.noWorksS[i] = [];
  13712. var studentK = [];
  13713. if (this.isWorksS[i].length > 0) {
  13714. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13715. studentK.push(this.isWorksS[i][z].uid);
  13716. }
  13717. studentK = studentK.join(",");
  13718. for (var j = 0; j < a.length; j++) {
  13719. if (studentK.indexOf(a[j].userid) == -1) {
  13720. if (this.tcid) {
  13721. // a[j].classid.indexOf(this.tcid) != -1
  13722. if (
  13723. this.arrayToArray(
  13724. a[j].classid.split(","),
  13725. this.tcid.split(",")
  13726. ).length
  13727. ) {
  13728. this.noWorksS[i].push({
  13729. student: a[j].name,
  13730. userid: a[j].userid,
  13731. });
  13732. }
  13733. } else {
  13734. this.noWorksS[i].push({
  13735. student: a[j].name,
  13736. userid: a[j].userid,
  13737. });
  13738. }
  13739. }
  13740. }
  13741. } else {
  13742. for (var k = 0; k < a.length; k++) {
  13743. if (this.tcid) {
  13744. if (
  13745. this.arrayToArray(
  13746. a[k].classid.split(","),
  13747. this.tcid.split(",")
  13748. ).length
  13749. ) {
  13750. this.noWorksS[i].push({
  13751. student: a[k].name,
  13752. userid: a[k].userid,
  13753. });
  13754. }
  13755. } else {
  13756. this.noWorksS[i].push({
  13757. student: a[k].name,
  13758. userid: a[k].userid,
  13759. });
  13760. }
  13761. }
  13762. }
  13763. }
  13764. this.$forceUpdate();
  13765. if (
  13766. Object.keys(this.commentDetail).length &&
  13767. Object.keys(this.commentIndexJson).length &&
  13768. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13769. ) {
  13770. let a = 1;
  13771. let c = this.commentIndexJson;
  13772. if (
  13773. this.commentIndexJson.gindex ||
  13774. this.commentIndexJson.gindex === 0
  13775. ) {
  13776. for (
  13777. var i = 0;
  13778. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13779. i++
  13780. ) {
  13781. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13782. groupA: for (var k = 0; k < _el.length; k++) {
  13783. let el = _el[k];
  13784. if (el.wid == this.commentDetail.wid) {
  13785. a = 2;
  13786. this.commentOther(
  13787. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13788. this.commentIndexJson.toolIndex,
  13789. k,
  13790. this.commentIndexJson.gindex
  13791. );
  13792. break groupA;
  13793. }
  13794. }
  13795. }
  13796. if (a === 1) {
  13797. this.commentDetail = [];
  13798. this.commentIndexJson = {};
  13799. this.commentDialogVisible = false;
  13800. this.$message(this.lang.ssHomeworkDeleted);
  13801. }
  13802. } else {
  13803. if (this.isGroup && this.commentIndexJson.gid) {
  13804. groupA: for (
  13805. var i = 0;
  13806. i < this.courseGroup.group.length;
  13807. i++
  13808. ) {
  13809. let _group = this.courseGroup.group[i];
  13810. if (_group.id == this.commentIndexJson.gid) {
  13811. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13812. for (var k = 0; k < _el2.length; k++) {
  13813. let el2 = _el2[k];
  13814. if (el2.wid == this.commentDetail.wid) {
  13815. a = 2;
  13816. this.commentOther(
  13817. _el2[k],
  13818. this.commentIndexJson.toolIndex,
  13819. k,
  13820. null,
  13821. this.commentIndexJson.gid
  13822. );
  13823. break groupA;
  13824. }
  13825. }
  13826. }
  13827. }
  13828. }
  13829. if (a == 1) {
  13830. for (
  13831. var i = 0;
  13832. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13833. i++
  13834. ) {
  13835. let el =
  13836. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13837. if (el.wid == this.commentDetail.wid) {
  13838. a = 2;
  13839. this.commentOther(
  13840. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13841. this.commentIndexJson.toolIndex,
  13842. i
  13843. );
  13844. break;
  13845. }
  13846. }
  13847. }
  13848. if (a === 1) {
  13849. this.commentDetail = [];
  13850. this.commentIndexJson = {};
  13851. this.commentDialogVisible = false;
  13852. this.$message(this.lang.ssHomeworkDeleted);
  13853. }
  13854. }
  13855. }
  13856. })
  13857. .catch((err) => {
  13858. console.error(err);
  13859. });
  13860. },
  13861. selectStudent() {
  13862. if(this.selectStudentLoading) return
  13863. this.selectStudentLoading = true
  13864. //学生查看自己作业
  13865. let params = {
  13866. uid: this.userid,
  13867. cid: this.id,
  13868. s: this.courseType,
  13869. t: this.taskCount,
  13870. };
  13871. this.ajax
  13872. .get(this.$store.state.api + "selectStudentWorks", params)
  13873. .then((res) => {
  13874. var a =
  13875. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13876. this.taskCount
  13877. ].toolChoose;
  13878. var b = res.data[0];
  13879. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13880. var y = [
  13881. "AVI",
  13882. "NAVI",
  13883. "MPEG",
  13884. "ASF",
  13885. "MOV",
  13886. "WMV",
  13887. "3GP",
  13888. "RM",
  13889. "RMVB",
  13890. "FLV",
  13891. "F4V",
  13892. "H.264",
  13893. "H.265",
  13894. "REAL VIDEO",
  13895. "MKV",
  13896. "WebM",
  13897. "HDDVD",
  13898. "MP4",
  13899. "MPG",
  13900. "M4V",
  13901. "MGV",
  13902. "OGV",
  13903. "QTM",
  13904. "STR",
  13905. "AMC",
  13906. "DVX",
  13907. "EVO",
  13908. "DAT",
  13909. "OGG",
  13910. "OGM",
  13911. ];
  13912. for (var i = 0; i < a.length; i++) {
  13913. this.workStudent[i] = [];
  13914. for (var j = 0; j < b.length; j++) {
  13915. if (i == b[j].tool) {
  13916. if (
  13917. (b[j].type == 1 ||
  13918. b[j].type == 4 ||
  13919. b[j].type == 5 ||
  13920. b[j].type == 6 ||
  13921. b[j].type == 12 ||
  13922. b[j].type == 7) &&
  13923. a[i].tool[0] != 15 &&
  13924. a[i].tool[0] != 4 &&
  13925. a[i].tool[0] != 45 &&
  13926. a[i].tool[0] != 50 &&
  13927. a[i].tool[0] != 32 &&
  13928. a[i].tool[0] != 57 &&
  13929. a[i].tool[0] != 52 &&
  13930. a[i].tool[0] != 69
  13931. ) {
  13932. if (
  13933. c.indexOf(
  13934. b[j].content
  13935. .split(".")
  13936. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13937. ) != -1 &&
  13938. a[i].tool[0] == 16 &&
  13939. b[j].atool != 50
  13940. ) {
  13941. this.workStudent[i].push({
  13942. works: b[j].content,
  13943. sName: b[j].name,
  13944. score: b[j].score,
  13945. img: b[j].img,
  13946. type: 1,
  13947. time: b[j].time,
  13948. userid: b[j].userid,
  13949. wid: b[j].id,
  13950. });
  13951. } else if (
  13952. y.indexOf(
  13953. b[j].content
  13954. .split(".")
  13955. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13956. ) != -1 &&
  13957. a[i].tool[0] == 16 &&
  13958. b[j].atool != 50
  13959. ) {
  13960. this.workStudent[i].push({
  13961. userid: b[j].userid,
  13962. wid: b[j].id,
  13963. works: b[j].content,
  13964. sName: b[j].name,
  13965. score: b[j].score,
  13966. img: b[j].img,
  13967. type: 3,
  13968. time: b[j].time,
  13969. });
  13970. } else if (b[j].type == 6 && b[j].atool != 50) {
  13971. this.workStudent[i].push({
  13972. userid: b[j].userid,
  13973. wid: b[j].id,
  13974. works: b[j].content,
  13975. sName: b[j].name,
  13976. score: b[j].score,
  13977. img: b[j].img,
  13978. type: 4,
  13979. time: b[j].time,
  13980. });
  13981. } else if (b[j].type == 7 && b[j].atool != 50) {
  13982. this.workStudent[i].push({
  13983. userid: b[j].userid,
  13984. wid: b[j].id,
  13985. works: b[j].content,
  13986. sName: b[j].name,
  13987. score: b[j].score,
  13988. img: b[j].img,
  13989. type: 5,
  13990. time: b[j].time,
  13991. });
  13992. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13993. this.workStudent[i].push({
  13994. works: b[j].content,
  13995. sName: b[j].name,
  13996. score: b[j].score,
  13997. img: b[j].img,
  13998. type: 12,
  13999. time: b[j].time,
  14000. userid: b[j].userid,
  14001. wid: b[j].id,
  14002. });
  14003. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14004. this.workStudent[i].push({
  14005. works: b[j].content,
  14006. sName: b[j].name,
  14007. score: b[j].score,
  14008. img: b[j].img,
  14009. type: 0,
  14010. time: b[j].time,
  14011. userid: b[j].userid,
  14012. wid: b[j].id,
  14013. });
  14014. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14015. this.workStudent[i].push({
  14016. works: b[j].content,
  14017. sName: b[j].name,
  14018. score: b[j].score,
  14019. img: b[j].img,
  14020. type: 0,
  14021. time: b[j].time,
  14022. userid: b[j].userid,
  14023. wid: b[j].id,
  14024. });
  14025. }
  14026. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14027. this.workStudent[i].push({
  14028. works: b[j].content,
  14029. sName: b[j].name,
  14030. score: b[j].score,
  14031. img: b[j].img,
  14032. type: 2,
  14033. time: b[j].time,
  14034. userid: b[j].userid,
  14035. wid: b[j].id,
  14036. });
  14037. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14038. this.workStudent[i].push({
  14039. works: b[j].content,
  14040. sName: b[j].name,
  14041. score: b[j].score,
  14042. img: b[j].img,
  14043. type: 20,
  14044. time: b[j].time,
  14045. userid: b[j].userid,
  14046. wid: b[j].id,
  14047. });
  14048. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14049. //问卷
  14050. this.workStudent[i].push({
  14051. works: b[j].content,
  14052. sName: b[j].name,
  14053. score: b[j].score,
  14054. img: b[j].img,
  14055. type: 2,
  14056. time: b[j].time,
  14057. userid: b[j].userid,
  14058. wid: b[j].id,
  14059. });
  14060. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14061. //选择题
  14062. this.workStudent[i].push({
  14063. works: b[j].content,
  14064. sName: b[j].name,
  14065. score: b[j].score,
  14066. img: b[j].img,
  14067. type: 8,
  14068. time: b[j].time,
  14069. userid: b[j].userid,
  14070. wid: b[j].id,
  14071. });
  14072. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14073. //选择题
  14074. this.workStudent[i].push({
  14075. works: b[j].content,
  14076. sName: b[j].name,
  14077. score: b[j].score,
  14078. img: b[j].img,
  14079. type: 9,
  14080. time: b[j].time,
  14081. userid: b[j].userid,
  14082. wid: b[j].id,
  14083. });
  14084. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14085. //选择题
  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: 10,
  14092. time: b[j].time,
  14093. userid: b[j].userid,
  14094. wid: b[j].id,
  14095. });
  14096. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14097. //选择题
  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: 13,
  14104. time: b[j].time,
  14105. userid: b[j].userid,
  14106. wid: b[j].id,
  14107. });
  14108. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14109. //选择题
  14110. this.workStudent[i].push({
  14111. works: b[j].content,
  14112. sName: b[j].name,
  14113. score: b[j].score,
  14114. img: b[j].img,
  14115. type: 12,
  14116. time: b[j].time,
  14117. userid: b[j].userid,
  14118. wid: b[j].id,
  14119. });
  14120. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14121. //选择题
  14122. this.workStudent[i].push({
  14123. works: b[j].content,
  14124. sName: b[j].name,
  14125. score: b[j].score,
  14126. img: b[j].img,
  14127. type: 12,
  14128. time: b[j].time,
  14129. userid: b[j].userid,
  14130. wid: b[j].id,
  14131. });
  14132. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14133. //选择题
  14134. this.workStudent[i].push({
  14135. works: b[j].content,
  14136. sName: b[j].name,
  14137. score: b[j].score,
  14138. img: b[j].img,
  14139. type: 15,
  14140. time: b[j].time,
  14141. userid: b[j].userid,
  14142. wid: b[j].id,
  14143. });
  14144. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14145. //英语写作
  14146. this.workStudent[i].push({
  14147. works: b[j].content,
  14148. sName: b[j].name,
  14149. score: b[j].score,
  14150. img: b[j].img,
  14151. type: 16,
  14152. time: b[j].time,
  14153. userid: b[j].userid,
  14154. wid: b[j].id,
  14155. aiCode: b[j].aiCode,
  14156. teacherCode: b[j].teacherCode
  14157. });
  14158. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14159. //英语口语
  14160. this.workStudent[i].push({
  14161. works: b[j].content,
  14162. sName: b[j].name,
  14163. score: b[j].score,
  14164. img: b[j].img,
  14165. type: 17,
  14166. time: b[j].time,
  14167. userid: b[j].userid,
  14168. wid: b[j].id,
  14169. });
  14170. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14171. //英语口语
  14172. this.workStudent[i].push({
  14173. works: b[j].content,
  14174. sName: b[j].name,
  14175. score: b[j].score,
  14176. img: b[j].img,
  14177. type: 14,
  14178. time: b[j].time,
  14179. userid: b[j].userid,
  14180. wid: b[j].id,
  14181. });
  14182. }
  14183. }
  14184. }
  14185. }
  14186. this.selectStudentLoading = false
  14187. })
  14188. .catch((err) => {
  14189. this.selectStudentLoading = false
  14190. console.error(err);
  14191. });
  14192. },
  14193. openVideo(w) {
  14194. this.videoDetail = {};
  14195. this.playerOptions1.sources[0].src = w.works;
  14196. this.videoDetail = this.playerOptions1;
  14197. this.videoVisible = true;
  14198. },
  14199. isLikes(wid, uid, t, c, isLikes,sName) {
  14200. if (isLikes == false) {
  14201. let params = [
  14202. {
  14203. wid: wid,
  14204. lid: uid,
  14205. t: t,
  14206. c: c,
  14207. },
  14208. ];
  14209. this.ajax
  14210. .post(this.$store.state.api + "insertComment", params)
  14211. .then((res) => {
  14212. this.$message({
  14213. message: this.lang.ssLikeSuccess,
  14214. type: "success",
  14215. });
  14216. this.selectSWorks();
  14217. this.selectStudent();
  14218. if(this.tType==1){
  14219. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14220. }
  14221. })
  14222. .catch((err) => {
  14223. this.$message.error(this.lang.ssLikeFailed);
  14224. console.error(err);
  14225. });
  14226. } else {
  14227. let params = {
  14228. wid: wid,
  14229. lid: uid,
  14230. type: t,
  14231. };
  14232. this.ajax
  14233. .get(this.$store.state.api + "deleteComment", params)
  14234. .then((res) => {
  14235. this.$message({
  14236. message: this.lang.ssCancelLikeSuccess,
  14237. type: "success",
  14238. });
  14239. this.selectSWorks();
  14240. this.selectStudent();
  14241. })
  14242. .catch((err) => {
  14243. console.error(err);
  14244. });
  14245. }
  14246. },
  14247. deleteComment(wid) {
  14248. this.$confirm(this.lang.ssConfirmDeleteComment, this.lang.ssPrompt, {
  14249. confirmButtonText: this.lang.ssConfirm,
  14250. cancelButtonText: this.lang.ssCancel,
  14251. type: "warning",
  14252. })
  14253. .then(() => {
  14254. let params = {
  14255. id: wid,
  14256. };
  14257. this.ajax
  14258. .get(this.$store.state.api + "deleteComment2", params)
  14259. .then((res) => {
  14260. this.$message({
  14261. message: this.lang.ssDeleteCommentSuccess,
  14262. type: "success",
  14263. });
  14264. this.selectSWorks();
  14265. this.selectStudent();
  14266. })
  14267. .catch((err) => {
  14268. console.error(err);
  14269. });
  14270. })
  14271. .catch(() => {});
  14272. },
  14273. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14274. this.commentIndexJson = {
  14275. toolIndex: toolIndex,
  14276. wIndex: wIndex,
  14277. gindex: gindex,
  14278. gid: gid,
  14279. };
  14280. this.commentDetail = [];
  14281. this.commentDialogVisible = true;
  14282. this.commentDetail = w;
  14283. if (w.works && w.type == 1) {
  14284. // this.pptImgUrl = "";
  14285. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14286. if (
  14287. a.indexOf(
  14288. w.works
  14289. .split(".")
  14290. [w.works.split(".").length - 1].toLocaleUpperCase()
  14291. ) != -1
  14292. ) {
  14293. let _uuurl = await this.checkLink(w.works);
  14294. this.pptImgUrl =
  14295. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14296. this.showPDF = false;
  14297. } else if (
  14298. w.works
  14299. .split(".")
  14300. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14301. ) {
  14302. this.pptImgUrl = w.works;
  14303. this.showPDF = true;
  14304. }
  14305. } else if (w.works && w.type == 3) {
  14306. this.videoDetail = {};
  14307. this.playerOptions1.sources[0].src = w.works;
  14308. this.videoDetail = this.playerOptions1;
  14309. // this.videoVisible = true;
  14310. } else if (w.works && w.type == 4) {
  14311. this.eScore = JSON.parse(w.works);
  14312. this.rateJson =
  14313. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14314. this.taskCount
  14315. ].toolChoose[toolIndex].rateJson;
  14316. } else if (w.works && w.type == 10) {
  14317. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14318. } else if (w.works && w.type == 13) {
  14319. this.wordJson =
  14320. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14321. this.taskCount
  14322. ].toolChoose[toolIndex].wordJson;
  14323. }
  14324. },
  14325. async openScore(w, index) {
  14326. this.wScore = 0;
  14327. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14328. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14329. this.commentDetail = [];
  14330. if(w.type == 17){
  14331. this.dialogVisibleENScore = true;
  14332. }else{
  14333. this.dialogVisibleScore = true;
  14334. }
  14335. this.commentDetail = w;
  14336. if (w.works && w.type == 1) {
  14337. this.pptImgUrl = "";
  14338. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14339. if (
  14340. a.indexOf(
  14341. w.works
  14342. .split(".")
  14343. [w.works.split(".").length - 1].toLocaleUpperCase()
  14344. ) != -1
  14345. ) {
  14346. let _uuurl = await this.checkLink(w.works);
  14347. this.pptImgUrl =
  14348. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14349. this.showPDF = false;
  14350. } else if (
  14351. w.works
  14352. .split(".")
  14353. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14354. ) {
  14355. this.pptImgUrl = w.works;
  14356. this.showPDF = true;
  14357. }
  14358. } else if (w.works && w.type == 3) {
  14359. this.videoDetail = {};
  14360. this.playerOptions1.sources[0].src = w.works;
  14361. this.videoDetail = this.playerOptions1;
  14362. }else if(w.type == 17){
  14363. let englishVoiceJson = {}
  14364. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14365. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14366. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14367. .toolChoose[index].englishVoiceJson
  14368. : {};
  14369. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14370. }
  14371. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14372. },
  14373. addComment(wid, uid, t,detail) {
  14374. if (this.commentText == "") {
  14375. this.$message.error(this.lang.ssEnterComment);
  14376. return;
  14377. }
  14378. let params2 = [
  14379. {
  14380. wid: wid,
  14381. lid: uid,
  14382. t: t,
  14383. },
  14384. ];
  14385. this.ajax
  14386. .post(this.$store.state.api + "getComment", params2)
  14387. .then((res) => {
  14388. if (res.data[0].length > 0) {
  14389. this.$message.error(this.lang.ssOnlyOneCommentPerHomework);
  14390. } else {
  14391. let params = [
  14392. {
  14393. wid: wid,
  14394. lid: uid,
  14395. t: t,
  14396. c: this.commentText,
  14397. },
  14398. ];
  14399. this.ajax
  14400. .post(this.$store.state.api + "insertComment", params)
  14401. .then((res) => {
  14402. this.$message({
  14403. message: this.lang.ssCommentSuccess,
  14404. type: "success",
  14405. });
  14406. this.commentText = "";
  14407. this.selectSWorks();
  14408. this.selectStudent();
  14409. if(this.tType!=2){
  14410. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14411. }
  14412. })
  14413. .catch((err) => {
  14414. this.$message.error(this.lang.ssCommentFailed);
  14415. console.error(err);
  14416. });
  14417. }
  14418. })
  14419. .catch((err) => {
  14420. // this.$message.error("评论失败");
  14421. console.error(err);
  14422. });
  14423. },
  14424. scoreWork(wid,sName) {
  14425. if (this.wScore == 0) {
  14426. this.$message.error(this.lang.ssPleaseRate);
  14427. return;
  14428. }
  14429. let params = [
  14430. {
  14431. wid: wid,
  14432. score: JSON.stringify({
  14433. wScore: this.wScore,
  14434. detail: this.scoreDetail,
  14435. }),
  14436. },
  14437. ];
  14438. this.ajax
  14439. .post(this.$store.state.api + "scoreWork", params)
  14440. .then((res) => {
  14441. this.$message({
  14442. message: this.lang.ssRatingSuccess,
  14443. type: "success",
  14444. });
  14445. this.wScore = 0;
  14446. this.scoreDetail = "";
  14447. this.dialogVisibleScore = false;
  14448. this.selectSWorks();
  14449. this.selectStudent();
  14450. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14451. })
  14452. .catch((err) => {
  14453. this.$message.error(this.lang.ssRatingFailed);
  14454. console.error(err);
  14455. });
  14456. },
  14457. openXz(w, i) {
  14458. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14459. .taskJson[this.taskCount].toolChoose[i].selectJson
  14460. ? JSON.parse(
  14461. JSON.stringify(
  14462. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14463. this.taskCount
  14464. ].toolChoose[i].selectJson
  14465. )
  14466. )
  14467. : { url: "", select: [], answer: [] };
  14468. var a = w.works.split(",");
  14469. for (var k = 0; k < a.length; k++) {
  14470. a[k] = parseInt(a[k]);
  14471. }
  14472. this.selectAnswer = { answer: a, stu: w.sName };
  14473. this.isSelect = true;
  14474. this.dialogVisibleSelect = true;
  14475. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14476. },
  14477. openSen(w, i) {
  14478. console.log("openSen")
  14479. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14480. this.sentenceList1 = JSON.parse(w.works);
  14481. this.sentenceList1.stuName = w.sName;
  14482. this.dialogVisibleSentence1 = true;
  14483. },
  14484. openPj(w, toolindex) {
  14485. console.log("openPJ")
  14486. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14487. this.isStar = true;
  14488. this.eScore = JSON.parse(w);
  14489. this.rateJson =
  14490. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14491. this.taskCount
  14492. ].toolChoose[toolindex].rateJson;
  14493. this.studentEvalDialogVisible = true;
  14494. },
  14495. openEnglishEva(id,i){
  14496. let params = {
  14497. wid: id
  14498. };
  14499. this.ajax
  14500. .get(this.$store.state.api + "selectEngWork", params)
  14501. .then((res) => {
  14502. this.evaEngJson.message = res.data[0][0];
  14503. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14504. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14505. .toolChoose[i].englishList;
  14506. this.engEvaDialogVisible = true;
  14507. })
  14508. .catch((err) => {
  14509. console.error(err);
  14510. });
  14511. },
  14512. deleteWorks(id) {
  14513. this.$confirm(this.lang.ssConfirmDeleteWork, this.lang.ssPrompt, {
  14514. confirmButtonText: this.lang.ssConfirm,
  14515. cancelButtonText: this.lang.ssCancel,
  14516. type: "warning",
  14517. })
  14518. .then(() => {
  14519. let params = [
  14520. {
  14521. id: id,
  14522. },
  14523. ];
  14524. this.ajax
  14525. .post(this.$store.state.api + "deleteCourseWork", params)
  14526. .then((res) => {
  14527. this.$message({
  14528. message: this.lang.ssDeleteSuccess,
  14529. type: "success",
  14530. });
  14531. this.selectStudent();
  14532. this.selectSWorks();
  14533. this.selectSLook();
  14534. })
  14535. .catch((err) => {
  14536. this.$message.error(this.lang.ssNetworkError);
  14537. console.error(err);
  14538. });
  14539. })
  14540. .catch(() => {});
  14541. },
  14542. selectSWorks(gindex) {
  14543. if(this.selectSWorksLoading) return
  14544. this.selectSWorksLoading = true
  14545. //教师查看全部作业
  14546. let params = {
  14547. cid: this.id,
  14548. s: this.courseType,
  14549. t: this.taskCount,
  14550. };
  14551. this.ajax
  14552. .get(this.$store.state.api + "selectSWorks", params)
  14553. .then((res) => {
  14554. var a =
  14555. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14556. this.taskCount
  14557. ].toolChoose;
  14558. var b = res.data[0];
  14559. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14560. var y = [
  14561. "AVI",
  14562. "NAVI",
  14563. "MPEG",
  14564. "ASF",
  14565. "MOV",
  14566. "WMV",
  14567. "3GP",
  14568. "RM",
  14569. "RMVB",
  14570. "FLV",
  14571. "F4V",
  14572. "H.264",
  14573. "H.265",
  14574. "REAL VIDEO",
  14575. "MKV",
  14576. "WebM",
  14577. "HDDVD",
  14578. "MP4",
  14579. "MPG",
  14580. "M4V",
  14581. "MGV",
  14582. "OGV",
  14583. "QTM",
  14584. "STR",
  14585. "AMC",
  14586. "DVX",
  14587. "EVO",
  14588. "DAT",
  14589. "OGG",
  14590. "OGM",
  14591. ];
  14592. var d = res.data[1];
  14593. var e = res.data[2];
  14594. var f = res.data[3];
  14595. let _worksStudent = [];
  14596. var _worksStudent2 = [];
  14597. for (var i = 0; i < a.length; i++) {
  14598. _worksStudent[i] = [];
  14599. _worksStudent2[i] = [];
  14600. if (
  14601. !this.isCloseList[i] ||
  14602. this.isCloseList[i].isClose == undefined
  14603. ) {
  14604. this.isCloseList[i] = { isClose: 0 };
  14605. }
  14606. this.groupStudent[i] = [];
  14607. this.groupStudentUid[i] = [];
  14608. if (this.isGroup) {
  14609. for (
  14610. var groupI = 0;
  14611. groupI < this.courseGroup.group.length;
  14612. groupI++
  14613. ) {
  14614. this.courseGroup.group[groupI].works[i] = [];
  14615. }
  14616. }
  14617. this.isWorksS[i] = [];
  14618. this.checkJson[i] = [];
  14619. if (a[i].tool[0] == 49) {
  14620. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14621. this.groupStudent[i][gA] = [];
  14622. this.groupStudentUid[i][gA] = [];
  14623. _worksStudent[i][gA] = [];
  14624. _worksStudent2[i][gA] = [];
  14625. this.isCloseList[i][gA] = [];
  14626. // debugger
  14627. for (var g = 0; g < f.length; g++) {
  14628. if (
  14629. f[g].ttype == 2 &&
  14630. this.tcid &&
  14631. this.arrayToArray(
  14632. (f[g].classid ? f[g].classid.split(",") : []),
  14633. this.tcid.split(",")
  14634. ).length == 0
  14635. ) {
  14636. continue;
  14637. }
  14638. let _classId = this.arrayToArray(
  14639. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14640. this.classId ? this.classId.split(",") : []
  14641. )
  14642. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14643. (f[g].classid ? f[g].classid.split(",") : []),
  14644. this.tcid.split(",")
  14645. ).length !== 0 || this.arrayToArray(
  14646. (f[g].classid ? f[g].classid.split(",") : []),
  14647. _classId
  14648. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14649. this.groupStudent[i][gA].push(f[g]);
  14650. this.groupStudentUid[i][gA].push(f[g].userid);
  14651. }
  14652. }
  14653. }
  14654. this.$forceUpdate();
  14655. }
  14656. for (var j = 0; j < b.length; j++) {
  14657. if (
  14658. b[j].ttype == 2 &&
  14659. this.tcid &&
  14660. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14661. .length == 0
  14662. ) {
  14663. continue;
  14664. }
  14665. var likesCount = 0;
  14666. var commentCount = 0;
  14667. var isLikes = false;
  14668. var commentJson = [];
  14669. var likeJson = [];
  14670. var data = b[j];
  14671. if (i == b[j].tool) {
  14672. if (data.type == 2 && a[i].tool[0] == 4) {
  14673. // if(JSON.parse(data.content)[0].anwer){
  14674. var checkL =
  14675. JSON.parse(data.content)[0].anwer instanceof Array
  14676. ? JSON.parse(data.content)[0].anwer
  14677. : JSON.parse(data.content)[0].anwer.split(",");
  14678. for (var z = 0; z < checkL.length; z++) {
  14679. if (!this.checkJson[i][z]) {
  14680. this.checkJson[i].push({
  14681. checkCount: [],
  14682. checkPerson: [],
  14683. rightPerson: [],
  14684. });
  14685. }
  14686. if (!this.checkJson[i][z].checkCount.length) {
  14687. this.checkJson[i][z].checkCount = [];
  14688. let _askItemCount = JSON.parse(data.content)[0].askJson
  14689. .askJson[z].askItem;
  14690. for (var aic = 0; aic < _askItemCount; aic++) {
  14691. this.checkJson[i][z].checkCount.push(0);
  14692. }
  14693. }
  14694. if (checkL[z] instanceof Array) {
  14695. if (
  14696. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14697. checkL[z].sort().join(",")
  14698. ) {
  14699. this.checkJson[i][z].rightPerson.push(data.name);
  14700. }
  14701. for (var q = 0; q < checkL[z].length; q++) {
  14702. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14703. ? this.checkJson[i][z].checkPerson[
  14704. parseInt(checkL[z][q])
  14705. ].push(data.name)
  14706. : (this.checkJson[i][z].checkPerson[
  14707. parseInt(checkL[z][q])
  14708. ] = [data.name]);
  14709. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14710. ? this.checkJson[i][z].checkCount[
  14711. parseInt(checkL[z][q])
  14712. ]++
  14713. : (this.checkJson[i][z].checkCount[
  14714. parseInt(checkL[z][q])
  14715. ] = 1);
  14716. }
  14717. } else {
  14718. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14719. this.checkJson[i][z].rightPerson.push(data.name);
  14720. }
  14721. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14722. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14723. ? this.checkJson[i][z].checkPerson[
  14724. parseInt(checkL[z])
  14725. ].push(data.name)
  14726. : (this.checkJson[i][z].checkPerson[
  14727. parseInt(checkL[z])
  14728. ] = [data.name]);
  14729. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14730. ? this.checkJson[i][z].checkCount[
  14731. parseInt(checkL[z])
  14732. ]++
  14733. : (this.checkJson[i][z].checkCount[
  14734. parseInt(checkL[z])
  14735. ] = 1);
  14736. }
  14737. }
  14738. }
  14739. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14740. var checkL = JSON.parse(data.content)[0].anwer;
  14741. if(a[i].testJson.testCount != JSON.parse(data.content)[0].testJson.testCount){
  14742. continue
  14743. }
  14744. // console.log('选择题')
  14745. for (var z = 0; z < checkL.length; z++) {
  14746. if (!this.checkJson[i][z]) {
  14747. this.checkJson[i].push({
  14748. checkCount: [],
  14749. checkPerson: [],
  14750. rightPerson: [],
  14751. });
  14752. }
  14753. if (!this.checkJson[i][z].checkCount.length) {
  14754. this.checkJson[i][z].checkCount = [];
  14755. let _askItemCount = JSON.parse(data.content)[0].testJson
  14756. .testJson[z].testItem;
  14757. for (var aic = 0; aic < _askItemCount; aic++) {
  14758. this.checkJson[i][z].checkCount.push(0);
  14759. }
  14760. }
  14761. if (checkL[z] instanceof Array) {
  14762. if (
  14763. JSON.parse(data.content)[0]
  14764. .testJson.testJson[z].answer.sort()
  14765. .join(",") == checkL[z].sort().join(",")
  14766. ) {
  14767. this.checkJson[i][z].rightPerson.push(data.name);
  14768. }
  14769. for (var q = 0; q < checkL[z].length; q++) {
  14770. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14771. ? this.checkJson[i][z].checkPerson[
  14772. parseInt(checkL[z][q])
  14773. ].push(data.name)
  14774. : (this.checkJson[i][z].checkPerson[
  14775. parseInt(checkL[z][q])
  14776. ] = [data.name]);
  14777. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14778. ? this.checkJson[i][z].checkCount[
  14779. parseInt(checkL[z][q])
  14780. ]++
  14781. : (this.checkJson[i][z].checkCount[
  14782. parseInt(checkL[z][q])
  14783. ] = 1);
  14784. }
  14785. } else {
  14786. if (
  14787. JSON.parse(data.content)[0].testJson.testJson[z]
  14788. .answer == checkL[z]
  14789. ) {
  14790. this.checkJson[i][z].rightPerson.push(data.name);
  14791. }
  14792. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14793. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14794. ? this.checkJson[i][z].checkPerson[
  14795. parseInt(checkL[z])
  14796. ].push(data.name)
  14797. : (this.checkJson[i][z].checkPerson[
  14798. parseInt(checkL[z])
  14799. ] = [data.name]);
  14800. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14801. ? this.checkJson[i][z].checkCount[
  14802. parseInt(checkL[z])
  14803. ]++
  14804. : (this.checkJson[i][z].checkCount[
  14805. parseInt(checkL[z])
  14806. ] = 1);
  14807. }
  14808. }
  14809. }
  14810. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14811. var checkL = JSON.parse(data.content);
  14812. for (var z = 0; z < checkL.length; z++) {
  14813. if (!this.checkJson[i][z]) {
  14814. this.checkJson[i].push({
  14815. checkCount: [],
  14816. checkPerson: [],
  14817. rightPerson: [],
  14818. });
  14819. }
  14820. this.checkJson[i][z].checkPerson.push(data.name);
  14821. if (
  14822. checkL[z].chooseSenList.toString() ==
  14823. checkL[z].rightAnswer.toString()
  14824. ) {
  14825. this.checkJson[i][z].rightPerson.push(data.name);
  14826. }
  14827. }
  14828. }
  14829. for (var k = 0; k < d.length; k++) {
  14830. //点赞
  14831. if (d[k].workId == b[j].id) {
  14832. likesCount++;
  14833. likeJson.push(d[k])
  14834. if (d[k].likesId == this.userid) {
  14835. isLikes = true;
  14836. }
  14837. }
  14838. }
  14839. for (var l = 0; l < e.length; l++) {
  14840. //评论
  14841. if (e[l].workId == b[j].id) {
  14842. if (e[l].comment != "") {
  14843. commentCount++;
  14844. commentJson.push({
  14845. commentText: e[l].comment,
  14846. commentTime: e[l].commentTime,
  14847. commentPeople: e[l].commentPeople,
  14848. userid: e[l].userid,
  14849. wid: e[l].id,
  14850. });
  14851. }
  14852. }
  14853. }
  14854. if (
  14855. (b[j].type == 1 ||
  14856. b[j].type == 4 ||
  14857. b[j].type == 5 ||
  14858. b[j].type == 6 ||
  14859. b[j].type == 12 ||
  14860. b[j].type == 7) &&
  14861. a[i].tool[0] != 15 &&
  14862. a[i].tool[0] != 4 &&
  14863. a[i].tool[0] != 45 &&
  14864. a[i].tool[0] != 50 &&
  14865. a[i].tool[0] != 32 &&
  14866. a[i].tool[0] != 57 &&
  14867. a[i].tool[0] != 52
  14868. ) {
  14869. if (
  14870. c.indexOf(
  14871. b[j].content
  14872. .split(".")
  14873. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14874. ) != -1 &&
  14875. a[i].tool[0] == 16 &&
  14876. b[j].atool != 50
  14877. ) {
  14878. let _works = {
  14879. userid: b[j].userid,
  14880. ateacher: b[j].ateacher,
  14881. wid: b[j].id,
  14882. works: b[j].content,
  14883. sName: b[j].name,
  14884. type: 1,
  14885. ttype:b[j].ttype,
  14886. time: b[j].time,
  14887. score: b[j].score,
  14888. img: b[j].img,
  14889. likesCount: likesCount,
  14890. commentCount: commentCount,
  14891. isLikes: isLikes,
  14892. commentJson: commentJson,
  14893. likeJson:likeJson
  14894. };
  14895. if (this.isGroup) {
  14896. let isGw = 1;
  14897. for (
  14898. var groupI = 0;
  14899. groupI < this.courseGroup.group.length;
  14900. groupI++
  14901. ) {
  14902. let gid = this.courseGroup.group[groupI].id;
  14903. if (
  14904. this.courseGroupStudentUid[gid].indexOf(
  14905. b[j].userid
  14906. ) != -1
  14907. ) {
  14908. isGw = 2;
  14909. this.courseGroup.group[groupI].works[i].push(_works);
  14910. break;
  14911. }
  14912. }
  14913. if (isGw == 1) {
  14914. _worksStudent[i].push(_works);
  14915. }
  14916. } else {
  14917. _worksStudent[i].push(_works);
  14918. }
  14919. _worksStudent2[i].push(_works);
  14920. this.isWorksS[i].push({
  14921. uid: b[j].userid,
  14922. sName: b[j].name,
  14923. });
  14924. } else if (
  14925. y.indexOf(
  14926. b[j].content
  14927. .split(".")
  14928. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14929. ) != -1 &&
  14930. a[i].tool[0] == 16 &&
  14931. b[j].atool != 50
  14932. ) {
  14933. let _works = {
  14934. userid: b[j].userid,
  14935. ateacher: b[j].ateacher,
  14936. wid: b[j].id,
  14937. works: b[j].content,
  14938. sName: b[j].name,
  14939. type: 3,
  14940. ttype:b[j].ttype,
  14941. time: b[j].time,
  14942. score: b[j].score,
  14943. img: b[j].img,
  14944. likesCount: likesCount,
  14945. commentCount: commentCount,
  14946. isLikes: isLikes,
  14947. commentJson: commentJson,
  14948. likeJson:likeJson
  14949. };
  14950. if (this.isGroup) {
  14951. let isGw = 1;
  14952. for (
  14953. var groupI = 0;
  14954. groupI < this.courseGroup.group.length;
  14955. groupI++
  14956. ) {
  14957. let gid = this.courseGroup.group[groupI].id;
  14958. if (
  14959. this.courseGroupStudentUid[gid].indexOf(
  14960. b[j].userid
  14961. ) != -1
  14962. ) {
  14963. isGw = 2;
  14964. this.courseGroup.group[groupI].works[i].push(_works);
  14965. break;
  14966. }
  14967. }
  14968. if (isGw == 1) {
  14969. _worksStudent[i].push(_works);
  14970. }
  14971. } else {
  14972. _worksStudent[i].push(_works);
  14973. }
  14974. _worksStudent2[i].push(_works);
  14975. this.isWorksS[i].push({
  14976. uid: b[j].userid,
  14977. sName: b[j].name,
  14978. });
  14979. } else if (b[j].type == 6 && b[j].atool != 50) {
  14980. let _works = {
  14981. userid: b[j].userid,
  14982. ateacher: b[j].ateacher,
  14983. wid: b[j].id,
  14984. works: b[j].content,
  14985. sName: b[j].name,
  14986. type: 4,
  14987. ttype:b[j].ttype,
  14988. time: b[j].time,
  14989. score: b[j].score,
  14990. img: b[j].img,
  14991. likesCount: likesCount,
  14992. commentCount: commentCount,
  14993. isLikes: isLikes,
  14994. commentJson: commentJson,
  14995. likeJson:likeJson
  14996. };
  14997. _worksStudent[i].push(_works);
  14998. _worksStudent2[i].push(_works);
  14999. this.isWorksS[i].push({
  15000. uid: b[j].userid,
  15001. sName: b[j].name,
  15002. });
  15003. } else if (b[j].type == 7 && b[j].atool != 50) {
  15004. let _work = {
  15005. userid: b[j].userid,
  15006. ateacher: b[j].ateacher,
  15007. wid: b[j].id,
  15008. works: b[j].content,
  15009. sName: b[j].name,
  15010. type: 5,
  15011. ttype:b[j].ttype,
  15012. time: b[j].time,
  15013. score: b[j].score,
  15014. img: b[j].img,
  15015. likesCount: likesCount,
  15016. commentCount: commentCount,
  15017. isLikes: isLikes,
  15018. commentJson: commentJson,
  15019. likeJson:likeJson
  15020. };
  15021. _worksStudent[i].push(_work);
  15022. _worksStudent2[i].push(_work);
  15023. this.isWorksS[i].push({
  15024. uid: b[j].userid,
  15025. sName: b[j].name,
  15026. });
  15027. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15028. let _works = {
  15029. userid: b[j].userid,
  15030. ateacher: b[j].ateacher,
  15031. wid: b[j].id,
  15032. works: b[j].content,
  15033. sName: b[j].name,
  15034. type: 12,
  15035. ttype:b[j].ttype,
  15036. time: b[j].time,
  15037. score: b[j].score,
  15038. img: b[j].img,
  15039. likesCount: likesCount,
  15040. commentCount: commentCount,
  15041. isLikes: isLikes,
  15042. commentJson: commentJson,
  15043. likeJson:likeJson
  15044. };
  15045. if (this.isGroup) {
  15046. let isGw = 1;
  15047. for (
  15048. var groupI = 0;
  15049. groupI < this.courseGroup.group.length;
  15050. groupI++
  15051. ) {
  15052. let gid = this.courseGroup.group[groupI].id;
  15053. if (
  15054. this.courseGroupStudentUid[gid].indexOf(
  15055. b[j].userid
  15056. ) != -1
  15057. ) {
  15058. isGw = 2;
  15059. this.courseGroup.group[groupI].works[i].push(_works);
  15060. break;
  15061. }
  15062. }
  15063. if (isGw == 1) {
  15064. _worksStudent[i].push(_works);
  15065. }
  15066. } else {
  15067. _worksStudent[i].push(_works);
  15068. }
  15069. _worksStudent2[i].push(_works);
  15070. this.isWorksS[i].push({
  15071. uid: b[j].userid,
  15072. sName: b[j].name,
  15073. });
  15074. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15075. let _works = {
  15076. userid: b[j].userid,
  15077. ateacher: b[j].ateacher,
  15078. wid: b[j].id,
  15079. works: b[j].content,
  15080. sName: b[j].name,
  15081. type: 0,
  15082. ttype:b[j].ttype,
  15083. time: b[j].time,
  15084. score: b[j].score,
  15085. img: b[j].img,
  15086. likesCount: likesCount,
  15087. commentCount: commentCount,
  15088. isLikes: isLikes,
  15089. commentJson: commentJson,
  15090. likeJson:likeJson
  15091. };
  15092. if (this.isGroup) {
  15093. let isGw = 1;
  15094. for (
  15095. var groupI = 0;
  15096. groupI < this.courseGroup.group.length;
  15097. groupI++
  15098. ) {
  15099. let gid = this.courseGroup.group[groupI].id;
  15100. if (
  15101. this.courseGroupStudentUid[gid].indexOf(
  15102. b[j].userid
  15103. ) != -1
  15104. ) {
  15105. isGw = 2;
  15106. this.courseGroup.group[groupI].works[i].push(_works);
  15107. break;
  15108. }
  15109. }
  15110. if (isGw == 1) {
  15111. _worksStudent[i].push(_works);
  15112. }
  15113. } else {
  15114. _worksStudent[i].push(_works);
  15115. }
  15116. _worksStudent2[i].push(_works);
  15117. this.isWorksS[i].push({
  15118. uid: b[j].userid,
  15119. sName: b[j].name,
  15120. });
  15121. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15122. let _works = {
  15123. userid: b[j].userid,
  15124. ateacher: b[j].ateacher,
  15125. wid: b[j].id,
  15126. works: b[j].content,
  15127. sName: b[j].name,
  15128. type: 0,
  15129. ttype:b[j].ttype,
  15130. time: b[j].time,
  15131. score: b[j].score,
  15132. img: b[j].img,
  15133. likesCount: likesCount,
  15134. commentCount: commentCount,
  15135. isLikes: isLikes,
  15136. commentJson: commentJson,
  15137. likeJson:likeJson
  15138. };
  15139. if (this.isGroup) {
  15140. let isGw = 1;
  15141. for (
  15142. var groupI = 0;
  15143. groupI < this.courseGroup.group.length;
  15144. groupI++
  15145. ) {
  15146. let gid = this.courseGroup.group[groupI].id;
  15147. if (
  15148. this.courseGroupStudentUid[gid].indexOf(
  15149. b[j].userid
  15150. ) != -1
  15151. ) {
  15152. isGw = 2;
  15153. this.courseGroup.group[groupI].works[i].push(_works);
  15154. break;
  15155. }
  15156. }
  15157. if (isGw == 1) {
  15158. _worksStudent[i].push(_works);
  15159. }
  15160. } else {
  15161. _worksStudent[i].push(_works);
  15162. }
  15163. _worksStudent2[i].push(_works);
  15164. this.isWorksS[i].push({
  15165. uid: b[j].userid,
  15166. sName: b[j].name,
  15167. });
  15168. }
  15169. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15170. let _works = {
  15171. userid: b[j].userid,
  15172. ateacher: b[j].ateacher,
  15173. wid: b[j].id,
  15174. works: b[j].content,
  15175. sName: b[j].name,
  15176. type: 2,
  15177. ttype:b[j].ttype,
  15178. time: b[j].time,
  15179. score: b[j].score,
  15180. img: b[j].img,
  15181. likesCount: likesCount,
  15182. commentCount: commentCount,
  15183. isLikes: isLikes,
  15184. commentJson: commentJson,
  15185. likeJson:likeJson
  15186. };
  15187. if (this.isGroup) {
  15188. let isGw = 1;
  15189. for (
  15190. var groupI = 0;
  15191. groupI < this.courseGroup.group.length;
  15192. groupI++
  15193. ) {
  15194. let gid = this.courseGroup.group[groupI].id;
  15195. if (
  15196. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15197. -1
  15198. ) {
  15199. isGw = 2;
  15200. this.courseGroup.group[groupI].works[i].push(_works);
  15201. break;
  15202. }
  15203. }
  15204. if (isGw == 1) {
  15205. _worksStudent[i].push(_works);
  15206. }
  15207. } else {
  15208. _worksStudent[i].push(_works);
  15209. }
  15210. _worksStudent2[i].push(_works);
  15211. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15212. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15213. let _works = {
  15214. userid: b[j].userid,
  15215. ateacher: b[j].ateacher,
  15216. wid: b[j].id,
  15217. works: b[j].content,
  15218. sName: b[j].name,
  15219. type: 20,
  15220. ttype:b[j].ttype,
  15221. time: b[j].time,
  15222. score: b[j].score,
  15223. img: b[j].img,
  15224. likesCount: likesCount,
  15225. commentCount: commentCount,
  15226. isLikes: isLikes,
  15227. commentJson: commentJson,
  15228. likeJson:likeJson
  15229. };
  15230. if (this.isGroup) {
  15231. let isGw = 1;
  15232. for (
  15233. var groupI = 0;
  15234. groupI < this.courseGroup.group.length;
  15235. groupI++
  15236. ) {
  15237. let gid = this.courseGroup.group[groupI].id;
  15238. if (
  15239. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15240. -1
  15241. ) {
  15242. isGw = 2;
  15243. this.courseGroup.group[groupI].works[i].push(_works);
  15244. break;
  15245. }
  15246. }
  15247. if (isGw == 1) {
  15248. _worksStudent[i].push(_works);
  15249. }
  15250. } else {
  15251. _worksStudent[i].push(_works);
  15252. }
  15253. _worksStudent2[i].push(_works);
  15254. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15255. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15256. //问卷
  15257. let _work = {
  15258. userid: b[j].userid,
  15259. ateacher: b[j].ateacher,
  15260. wid: b[j].id,
  15261. works: b[j].content,
  15262. sName: b[j].name,
  15263. type: 2,
  15264. ttype:b[j].ttype,
  15265. time: b[j].time,
  15266. score: b[j].score,
  15267. img: b[j].img,
  15268. likesCount: likesCount,
  15269. commentCount: commentCount,
  15270. isLikes: isLikes,
  15271. commentJson: commentJson,
  15272. likeJson:likeJson
  15273. };
  15274. _worksStudent[i].push(_work);
  15275. _worksStudent2[i].push(_work);
  15276. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15277. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15278. //选择题
  15279. let _work = {
  15280. userid: b[j].userid,
  15281. ateacher: b[j].ateacher,
  15282. wid: b[j].id,
  15283. works: b[j].content,
  15284. sName: b[j].name,
  15285. type: 8,
  15286. ttype:b[j].ttype,
  15287. time: b[j].time,
  15288. score: b[j].score,
  15289. img: b[j].img,
  15290. likesCount: likesCount,
  15291. commentCount: commentCount,
  15292. isLikes: isLikes,
  15293. commentJson: commentJson,
  15294. likeJson:likeJson
  15295. };
  15296. _worksStudent[i].push(_work);
  15297. _worksStudent2[i].push(_work);
  15298. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15299. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15300. //选择题
  15301. let _work = {
  15302. userid: b[j].userid,
  15303. ateacher: b[j].ateacher,
  15304. wid: b[j].id,
  15305. works: b[j].content,
  15306. sName: b[j].name,
  15307. type: 9,
  15308. ttype:b[j].ttype,
  15309. time: b[j].time,
  15310. score: b[j].score,
  15311. img: b[j].img,
  15312. likesCount: likesCount,
  15313. commentCount: commentCount,
  15314. isLikes: isLikes,
  15315. commentJson: commentJson,
  15316. likeJson:likeJson
  15317. };
  15318. _worksStudent[i].push(_work);
  15319. _worksStudent2[i].push(_work);
  15320. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15321. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15322. //选择题
  15323. let _work = {
  15324. userid: b[j].userid,
  15325. ateacher: b[j].ateacher,
  15326. wid: b[j].id,
  15327. works: b[j].content,
  15328. sName: b[j].name,
  15329. type: 10,
  15330. ttype:b[j].ttype,
  15331. time: b[j].time,
  15332. score: b[j].score,
  15333. img: b[j].img,
  15334. likesCount: likesCount,
  15335. commentCount: commentCount,
  15336. isLikes: isLikes,
  15337. commentJson: commentJson,
  15338. likeJson:likeJson
  15339. };
  15340. _worksStudent[i].push(_work);
  15341. _worksStudent2[i].push(_work);
  15342. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15343. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15344. //选择题
  15345. let _work = {
  15346. userid: b[j].userid,
  15347. ateacher: b[j].ateacher,
  15348. wid: b[j].id,
  15349. works: b[j].content,
  15350. sName: b[j].name,
  15351. type: 13,
  15352. ttype:b[j].ttype,
  15353. time: b[j].time,
  15354. score: b[j].score,
  15355. img: b[j].img,
  15356. likesCount: likesCount,
  15357. commentCount: commentCount,
  15358. isLikes: isLikes,
  15359. commentJson: commentJson,
  15360. likeJson:likeJson
  15361. };
  15362. _worksStudent[i].push(_work);
  15363. _worksStudent2[i].push(_work);
  15364. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15365. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15366. //选择题
  15367. let _work = {
  15368. userid: b[j].userid,
  15369. ateacher: b[j].ateacher,
  15370. wid: b[j].id,
  15371. works: b[j].content,
  15372. sName: b[j].name,
  15373. type: 16,
  15374. ttype:b[j].ttype,
  15375. time: b[j].time,
  15376. score: b[j].score,
  15377. img: b[j].img,
  15378. likesCount: likesCount,
  15379. commentCount: commentCount,
  15380. isLikes: isLikes,
  15381. commentJson: commentJson,
  15382. aiCode: b[j].aiCode,
  15383. teacherCode: b[j].teacherCode,
  15384. likeJson:likeJson
  15385. };
  15386. _worksStudent[i].push(_work);
  15387. _worksStudent2[i].push(_work);
  15388. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15389. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15390. //英语口语
  15391. let _work = {
  15392. userid: b[j].userid,
  15393. ateacher: b[j].ateacher,
  15394. wid: b[j].id,
  15395. works: b[j].content,
  15396. sName: b[j].name,
  15397. type: 17,
  15398. ttype:b[j].ttype,
  15399. time: b[j].time,
  15400. score: b[j].score,
  15401. img: b[j].img,
  15402. likesCount: likesCount,
  15403. commentCount: commentCount,
  15404. isLikes: isLikes,
  15405. commentJson: commentJson,
  15406. likeJson:likeJson
  15407. };
  15408. _worksStudent[i].push(_work);
  15409. _worksStudent2[i].push(_work);
  15410. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15411. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15412. //交互视频
  15413. let _work = {
  15414. userid: b[j].userid,
  15415. ateacher: b[j].ateacher,
  15416. wid: b[j].id,
  15417. works: b[j].content,
  15418. sName: b[j].name,
  15419. type: 14,
  15420. ttype:b[j].ttype,
  15421. time: b[j].time,
  15422. score: b[j].score,
  15423. img: b[j].img,
  15424. likesCount: likesCount,
  15425. commentCount: commentCount,
  15426. isLikes: isLikes,
  15427. commentJson: commentJson,
  15428. likeJson:likeJson
  15429. };
  15430. _worksStudent[i].push(_work);
  15431. _worksStudent2[i].push(_work);
  15432. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15433. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15434. let _gindex = JSON.parse(b[j].content);
  15435. if (
  15436. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15437. b[j].userid
  15438. ) != -1
  15439. ) {
  15440. let _work = {
  15441. userid: b[j].userid,
  15442. ateacher: b[j].ateacher,
  15443. wid: b[j].id,
  15444. works: _gindex.url,
  15445. sName: b[j].name,
  15446. type: _gindex.type,
  15447. ttype:b[j].ttype,
  15448. time: b[j].time,
  15449. score: b[j].score,
  15450. img: b[j].img,
  15451. likesCount: likesCount,
  15452. commentCount: commentCount,
  15453. isLikes: isLikes,
  15454. commentJson: commentJson,
  15455. likeJson:likeJson
  15456. };
  15457. _worksStudent[i][_gindex.groupIndex].push(_work);
  15458. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15459. }
  15460. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15461. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15462. let _work = {
  15463. userid: b[j].userid,
  15464. ateacher: b[j].ateacher,
  15465. wid: b[j].id,
  15466. works: b[j].content,
  15467. sName: b[j].name ? b[j].name : b[j].userid,
  15468. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15469. ttype:b[j].ttype,
  15470. time: b[j].time,
  15471. score: b[j].score,
  15472. img: b[j].img,
  15473. likesCount: likesCount,
  15474. commentCount: commentCount,
  15475. isLikes: isLikes,
  15476. commentJson: commentJson,
  15477. likeJson:likeJson
  15478. };
  15479. _worksStudent[i].push(_work);
  15480. _worksStudent2[i].push(_work);
  15481. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15482. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  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 ? b[j].name : b[j].userid,
  15489. type: 12,
  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 (
  15504. a[i].tool[0] == 57 &&
  15505. b[j].atool == 57 &&
  15506. b[j].type == 12
  15507. ) {
  15508. let _work = {
  15509. userid: b[j].userid,
  15510. ateacher: b[j].ateacher,
  15511. wid: b[j].id,
  15512. works: b[j].content,
  15513. sName: b[j].name ? b[j].name : b[j].userid,
  15514. type: 12,
  15515. ttype:b[j].ttype,
  15516. time: b[j].time,
  15517. score: b[j].score,
  15518. img: b[j].img,
  15519. likesCount: likesCount,
  15520. commentCount: commentCount,
  15521. isLikes: isLikes,
  15522. commentJson: commentJson,
  15523. likeJson:likeJson
  15524. };
  15525. _worksStudent[i].push(_work);
  15526. _worksStudent2[i].push(_work);
  15527. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15528. } else if (
  15529. a[i].tool[0] == 57 &&
  15530. b[j].atool == 57 &&
  15531. b[j].type == 15
  15532. ) {
  15533. let _work = {
  15534. userid: b[j].userid,
  15535. ateacher: b[j].ateacher,
  15536. wid: b[j].id,
  15537. works: b[j].content,
  15538. sName: b[j].name ? b[j].name : b[j].userid,
  15539. type: 15,
  15540. ttype:b[j].ttype,
  15541. time: b[j].time,
  15542. score: b[j].score,
  15543. img: b[j].img,
  15544. likesCount: likesCount,
  15545. commentCount: commentCount,
  15546. isLikes: isLikes,
  15547. commentJson: commentJson,
  15548. likeJson:likeJson
  15549. };
  15550. _worksStudent[i].push(_work);
  15551. _worksStudent2[i].push(_work);
  15552. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15553. }
  15554. }
  15555. }
  15556. if (_worksStudent[i] && _worksStudent[i].length) {
  15557. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15558. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15559. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15560. var scoreA = parseFloat(jscoreA);
  15561. var scoreB = parseFloat(jscoreB);
  15562. if (scoreA == scoreB) {
  15563. return b.likesCount - a.likesCount;
  15564. }
  15565. return scoreB - scoreA;
  15566. });
  15567. if (this.isGroup) {
  15568. for (
  15569. var groupI = 0;
  15570. groupI < this.courseGroup.group.length;
  15571. groupI++
  15572. ) {
  15573. this.courseGroup.group[groupI].works[i] =
  15574. this.courseGroup.group[groupI].works[i].sort(function (
  15575. a,
  15576. b
  15577. ) {
  15578. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15579. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15580. var scoreA = parseFloat(jscoreA);
  15581. var scoreB = parseFloat(jscoreB);
  15582. if (scoreA == scoreB) {
  15583. return b.likesCount - a.likesCount;
  15584. }
  15585. return scoreB - scoreA;
  15586. });
  15587. }
  15588. }
  15589. }
  15590. }
  15591. this.timeWorkList = _worksStudent2;
  15592. for (var i = 0; i < a.length; i++) {
  15593. for (var j = 0; j < b.length; j++) {
  15594. var data = b[j];
  15595. if (i == b[j].tool) {
  15596. if (data.type == 2 || data.type == 8) {
  15597. for (var z = 0; z < this.checkJson[i].length; z++) {
  15598. this.checkJson[i][z].checkPerent = [];
  15599. this.checkJson[i][z].right = Math.round(
  15600. (this.checkJson[i][z].rightPerson.length /
  15601. parseInt(_worksStudent[i].length)) *
  15602. 100
  15603. );
  15604. let aaaa = this.checkJson[i][z];
  15605. for (
  15606. var k = 0;
  15607. k < this.checkJson[i][z].checkCount.length;
  15608. k++
  15609. ) {
  15610. this.checkJson[i][z].checkPerent.push(
  15611. Math.round(
  15612. (this.checkJson[i][z].checkCount[k] /
  15613. parseInt(_worksStudent[i].length)) *
  15614. 100
  15615. )
  15616. );
  15617. }
  15618. }
  15619. } else if (data.type == 9) {
  15620. for (var z = 0; z < this.checkJson[i].length; z++) {
  15621. this.checkJson[i][z].checkPerent = [];
  15622. this.checkJson[i][z].right = Math.round(
  15623. (this.checkJson[i][z].rightPerson.length /
  15624. this.checkJson[i][z].checkPerson.length) *
  15625. 100
  15626. );
  15627. }
  15628. }
  15629. }
  15630. }
  15631. }
  15632. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15633. this.joinGroup(gindex);
  15634. }
  15635. this.worksStudent = _worksStudent;
  15636. this.selectWorksStudent();
  15637. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15638. this.$nextTick(()=>{
  15639. setTimeout(()=>{
  15640. setTimeout(()=>{
  15641. this.panToolHeight('tool-'+ci);
  15642. }, 500)
  15643. }, 0)
  15644. })
  15645. }
  15646. this.selectSWorksLoading = false
  15647. })
  15648. .catch((err) => {
  15649. this.selectSWorksLoading = false
  15650. console.error(err);
  15651. });
  15652. },
  15653. pngToWhiteBg(file) {
  15654. const _file = file;
  15655. let read = new FileReader();
  15656. read.readAsDataURL(file); // 文件转base64
  15657. return new Promise((resolve, reject) => {
  15658. read.onload = (e) => {
  15659. let img = new Image();
  15660. img.src = e.target.result;
  15661. img.onload = async () => {
  15662. // 生成canvas
  15663. let canvas = document.createElement("canvas");
  15664. let context = canvas.getContext("2d");
  15665. // 绘制图片到canvas上
  15666. canvas.width = img.width;
  15667. canvas.height = img.height;
  15668. // 在canvas绘制前填充白色背景
  15669. context.fillStyle = "#fff";
  15670. context.fillRect(0, 0, canvas.width, canvas.height);
  15671. context.drawImage(img, 0, 0);
  15672. let base64 = canvas.toDataURL(file["type"], 1);
  15673. let newFile = this.dataUrlToFile(base64, _file);
  15674. resolve(newFile);
  15675. };
  15676. };
  15677. });
  15678. },
  15679. dataUrlToFile(dataurl, file) {
  15680. let arr = dataurl.split(","),
  15681. mime = arr[0].match(/:(.*?);/)[1],
  15682. bstr = atob(arr[1]),
  15683. n = bstr.length,
  15684. u8arr = new Uint8Array(n);
  15685. while (n--) {
  15686. u8arr[n] = bstr.charCodeAt(n);
  15687. }
  15688. // return new Blob([u8arr], { type: mime });
  15689. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15690. type: mime,
  15691. });
  15692. },
  15693. async beforeUpload1(event, type, i) {
  15694. // this.$message.success('进入上传')
  15695. var file = "";
  15696. if (type == 5) {
  15697. file = event;
  15698. } else {
  15699. file = event.target.files[0];
  15700. }
  15701. var credentials = {
  15702. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15703. secretAccessKey: "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",
  15704. }; //秘钥形式的登录上传
  15705. window.AWS.config.update(credentials);
  15706. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15707. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15708. var _this = this;
  15709. _this.progress = 0;
  15710. _this.proVisible = true;
  15711. _this.isFinishSize = 0;
  15712. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15713. var b = [
  15714. "DOC",
  15715. "DOCX",
  15716. "DOCM",
  15717. "DOTM",
  15718. "DOTX",
  15719. "PPTX",
  15720. "PPSX",
  15721. "PPT",
  15722. "PPS",
  15723. "PPTM",
  15724. "POTM",
  15725. "PPAM",
  15726. "POTX",
  15727. "PPSM",
  15728. ];
  15729. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15730. var photoA = [
  15731. "BMP",
  15732. "GIF",
  15733. "PNG",
  15734. "JPEG",
  15735. "JPEG",
  15736. "JPG",
  15737. "TIF",
  15738. "PCX",
  15739. "TGA",
  15740. "EXIF",
  15741. "FPX",
  15742. "SVG",
  15743. "APNG",
  15744. ];
  15745. // if (
  15746. // b.indexOf(
  15747. // file.name
  15748. // .split(".")
  15749. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15750. // ) != -1
  15751. // ) {
  15752. // if (file.size / 1024 / 1024 > 10) {
  15753. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15754. // return;
  15755. // }
  15756. // } else if (
  15757. // excelA.indexOf(
  15758. // file.name
  15759. // .split(".")
  15760. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15761. // ) != "-1"
  15762. // ) {
  15763. // if (file.size / 1024 / 1024 > 5) {
  15764. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15765. // return;
  15766. // }
  15767. // }
  15768. if (
  15769. photoA.indexOf(
  15770. file.name
  15771. .split(".")
  15772. [file.name.split(".").length - 1].toLocaleUpperCase()
  15773. ) != -1 &&
  15774. type != 4
  15775. ) {
  15776. // const blob = await imageConversion.compress(file, 0.8)
  15777. file = await this.pngToWhiteBg(file);
  15778. const blob = await imageConversion.compressAccurately(file, 256);
  15779. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15780. file = new File([blob], file.name, { type: file.type });
  15781. }
  15782. if (file) {
  15783. var params = {
  15784. Key:
  15785. file.name.split(".")[0] +
  15786. new Date().getTime() +
  15787. "." +
  15788. file.name.split(".")[file.name.split(".").length - 1],
  15789. ContentType: file.type,
  15790. Body: file,
  15791. "Access-Control-Allow-Credentials": "*",
  15792. ACL: "public-read",
  15793. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15794. var options = {
  15795. // partSize: 2048 * 1024 * 1024,
  15796. partSize: 1024 * 1024 * 1024,
  15797. queueSize: 2,
  15798. leavePartsOnError: true,
  15799. };
  15800. bucket
  15801. .upload(params, options)
  15802. .on("httpUploadProgress", function (evt) {
  15803. //这里可以写进度条
  15804. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15805. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15806. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15807. })
  15808. .send(function (err, data) {
  15809. _this.progress = 100;
  15810. _this.isFinishSize = _this.isAllSize;
  15811. setTimeout(() => {
  15812. _this.proVisible = false;
  15813. }, 1000);
  15814. if (err) {
  15815. var a = _this.$refs.upload1.uploadFiles;
  15816. a.splice(a.length - 1, a.length);
  15817. _this.$message.error(this.lang.ssUploadFailed);
  15818. } else {
  15819. // _this.$message.success('上传成功')
  15820. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15821. var c = [
  15822. "AVI",
  15823. "NAVI",
  15824. "MPEG",
  15825. "ASF",
  15826. "MOV",
  15827. "WMV",
  15828. "3GP",
  15829. "RM",
  15830. "RMVB",
  15831. "FLV",
  15832. "F4V",
  15833. "H.264",
  15834. "H.265",
  15835. "REAL VIDEO",
  15836. "MKV",
  15837. "WebM",
  15838. "HDDVD",
  15839. "MP4",
  15840. "MPG",
  15841. "M4V",
  15842. "MGV",
  15843. "OGV",
  15844. "QTM",
  15845. "STR",
  15846. "AMC",
  15847. "DVX",
  15848. "EVO",
  15849. "DAT",
  15850. "OGG",
  15851. "OGM",
  15852. ];
  15853. if (type == 1) {
  15854. _this.studyJuri[0].cover.push({
  15855. name: file.name,
  15856. url: data.Location,
  15857. uid: file.uid,
  15858. });
  15859. if (
  15860. c.indexOf(
  15861. _this.studyJuri[0].cover[0].url
  15862. .split(".")
  15863. [
  15864. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15865. ].toLocaleUpperCase()
  15866. ) != -1
  15867. ) {
  15868. _this.fileType = 2;
  15869. } else if (
  15870. b.indexOf(
  15871. _this.studyJuri[0].cover[0].url
  15872. .split(".")
  15873. [
  15874. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15875. ].toLocaleUpperCase()
  15876. ) != -1
  15877. ) {
  15878. _this.fileType = 1;
  15879. } else if (
  15880. photoA.indexOf(
  15881. _this.studyJuri[0].cover[0].url
  15882. .split(".")
  15883. [
  15884. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15885. ].toLocaleUpperCase()
  15886. ) != -1
  15887. ) {
  15888. _this.fileType = 0;
  15889. } else {
  15890. _this.fileType = 3;
  15891. }
  15892. _this.imgChange(null, null, type);
  15893. } else if (type == 2) {
  15894. _this.upToolImg = data.Location;
  15895. _this.imgChange(null, null, type);
  15896. _this.addCourseWorks(i);
  15897. } else if (type == 4) {
  15898. _this.addPz("3", data.Location);
  15899. } else if (type == 5) {
  15900. _this.addImgDrawImG(data.Location);
  15901. } else if (type == 6) {
  15902. var _ftype = 1;
  15903. if (
  15904. c.indexOf(
  15905. data.Location.split(".")[
  15906. data.Location.split(".").length - 1
  15907. ].toLocaleUpperCase()
  15908. ) != -1
  15909. ) {
  15910. _ftype = 5;
  15911. } else if (
  15912. b.indexOf(
  15913. data.Location.split(".")[
  15914. data.Location.split(".").length - 1
  15915. ].toLocaleUpperCase()
  15916. ) != -1
  15917. ) {
  15918. _ftype = 4;
  15919. } else {
  15920. _ftype = 1;
  15921. }
  15922. _this.plworkFile.push({
  15923. name: file.name,
  15924. url: data.Location,
  15925. uid: file.uid,
  15926. fileType: _ftype,
  15927. username:
  15928. _this.plworkFile.length > 10
  15929. ? _this.plworkFile.length + 1
  15930. : "0" + (_this.plworkFile.length + 1),
  15931. });
  15932. } else if (type == 7) {
  15933. _this.addCourseWorksGong(i, data.Location, 32);
  15934. } else if (type == 8) {
  15935. _this.addCourseWorksGong(i, data.Location, 57);
  15936. }
  15937. _this.imgChange(null, null, type);
  15938. console.log(data.Location);
  15939. // _this.$message.success('上传成功'+data.Location)
  15940. }
  15941. });
  15942. }
  15943. },
  15944. async beforeUpload3(event, type, i) {
  15945. // this.$message.success('进入上传')
  15946. let file = "";
  15947. let cfindex2 = 0;
  15948. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15949. file = event.target.files[cfindex];
  15950. var credentials = {
  15951. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15952. secretAccessKey: "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",
  15953. }; //秘钥形式的登录上传
  15954. window.AWS.config.update(credentials);
  15955. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15956. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15957. var _this = this;
  15958. // _this.progress = 0;
  15959. _this.proVisible2 = true;
  15960. var b = [
  15961. "DOC",
  15962. "DOCX",
  15963. "DOCM",
  15964. "DOTM",
  15965. "DOTX",
  15966. "PPTX",
  15967. "PPSX",
  15968. "PPT",
  15969. "PPS",
  15970. "PPTM",
  15971. "POTM",
  15972. "PPAM",
  15973. "POTX",
  15974. "PPSM",
  15975. ];
  15976. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15977. var photoA = [
  15978. "BMP",
  15979. "GIF",
  15980. "PNG",
  15981. "JPEG",
  15982. "JPG",
  15983. "TIF",
  15984. "PCX",
  15985. "TGA",
  15986. "EXIF",
  15987. "FPX",
  15988. "SVG",
  15989. "APNG",
  15990. ];
  15991. if (
  15992. photoA.indexOf(
  15993. file.name
  15994. .split(".")
  15995. [file.name.split(".").length - 1].toLocaleUpperCase()
  15996. ) != -1 &&
  15997. type != 4
  15998. ) {
  15999. // const blob = await imageConversion.compress(file, 0.8)
  16000. file = await this.pngToWhiteBg(file);
  16001. const blob = await imageConversion.compressAccurately(file, 256);
  16002. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16003. file = new File([blob], file.name, { type: file.type });
  16004. }
  16005. if (file) {
  16006. var params = {
  16007. Key:
  16008. file.name.split(".")[0] +
  16009. new Date().getTime() +
  16010. "." +
  16011. file.name.split(".")[file.name.split(".").length - 1],
  16012. ContentType: file.type,
  16013. Body: file,
  16014. "Access-Control-Allow-Credentials": "*",
  16015. ACL: "public-read",
  16016. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16017. var options = {
  16018. // partSize: 2048 * 1024 * 1024,
  16019. partSize: 1024 * 1024 * 1024,
  16020. queueSize: 2,
  16021. leavePartsOnError: true,
  16022. };
  16023. bucket
  16024. .upload(params, options)
  16025. .on("httpUploadProgress", function (evt) {
  16026. //这里可以写进度条
  16027. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16028. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16029. })
  16030. .send(function (err, data) {
  16031. // _this.progress = 100;
  16032. cfindex2++;
  16033. setTimeout(() => {
  16034. if (
  16035. cfindex2 == event.target.files.length - 1 ||
  16036. cfindex2 > event.target.files.length - 1
  16037. ) {
  16038. _this.proVisible2 = false;
  16039. }
  16040. }, 1000);
  16041. if (err) {
  16042. var a = _this.$refs.upload1.uploadFiles;
  16043. a.splice(a.length - 1, a.length);
  16044. _this.$message.error(this.lang.ssUploadFailed);
  16045. } else {
  16046. // _this.$message.success('上传成功')
  16047. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16048. var c = [
  16049. "AVI",
  16050. "NAVI",
  16051. "MPEG",
  16052. "ASF",
  16053. "MOV",
  16054. "WMV",
  16055. "3GP",
  16056. "RM",
  16057. "RMVB",
  16058. "FLV",
  16059. "F4V",
  16060. "H.264",
  16061. "H.265",
  16062. "REAL VIDEO",
  16063. "MKV",
  16064. "WebM",
  16065. "HDDVD",
  16066. "MP4",
  16067. "MPG",
  16068. "M4V",
  16069. "MGV",
  16070. "OGV",
  16071. "QTM",
  16072. "STR",
  16073. "AMC",
  16074. "DVX",
  16075. "EVO",
  16076. "DAT",
  16077. "OGG",
  16078. "OGM",
  16079. ];
  16080. if (type == 1) {
  16081. _this.studyJuri[0].cover.push({
  16082. name: file.name,
  16083. url: data.Location,
  16084. uid: file.uid,
  16085. });
  16086. if (
  16087. c.indexOf(
  16088. _this.studyJuri[0].cover[0].url
  16089. .split(".")
  16090. [
  16091. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16092. ].toLocaleUpperCase()
  16093. ) != -1
  16094. ) {
  16095. _this.fileType = 2;
  16096. } else if (
  16097. b.indexOf(
  16098. _this.studyJuri[0].cover[0].url
  16099. .split(".")
  16100. [
  16101. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16102. ].toLocaleUpperCase()
  16103. ) != -1
  16104. ) {
  16105. _this.fileType = 1;
  16106. } else {
  16107. _this.fileType = 0;
  16108. }
  16109. _this.imgChange(null, null, type);
  16110. } else if (type == 2) {
  16111. _this.upToolImg = data.Location;
  16112. _this.imgChange(null, null, type);
  16113. _this.addCourseWorks(i);
  16114. } else if (type == 4) {
  16115. _this.addPz("3", data.Location);
  16116. } else if (type == 5) {
  16117. _this.addImgDrawImG(data.Location);
  16118. } else if (type == 6) {
  16119. var _ftype = 1;
  16120. if (
  16121. c.indexOf(
  16122. data.Location.split(".")[
  16123. data.Location.split(".").length - 1
  16124. ].toLocaleUpperCase()
  16125. ) != -1
  16126. ) {
  16127. _ftype = 5;
  16128. } else if (
  16129. b.indexOf(
  16130. data.Location.split(".")[
  16131. data.Location.split(".").length - 1
  16132. ].toLocaleUpperCase()
  16133. ) != -1
  16134. ) {
  16135. _ftype = 4;
  16136. } else {
  16137. _ftype = 1;
  16138. }
  16139. _this.plworkFile.push({
  16140. name: file.name,
  16141. url: data.Location,
  16142. uid: file.uid,
  16143. fileType: _ftype,
  16144. username:
  16145. _this.plworkFile.length + 1 > 9
  16146. ? _this.plworkFile.length + 1
  16147. : "0" + (_this.plworkFile.length + 1),
  16148. });
  16149. }
  16150. _this.imgChange(null, null, type);
  16151. console.log(data.Location);
  16152. // _this.$message.success('上传成功'+data.Location)
  16153. }
  16154. });
  16155. }
  16156. }
  16157. },
  16158. beforeUpload2(event, type) {
  16159. var file = event.target.files[0];
  16160. var credentials = {
  16161. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16162. secretAccessKey: "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",
  16163. }; //秘钥形式的登录上传
  16164. window.AWS.config.update(credentials);
  16165. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16166. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16167. var _this = this;
  16168. _this.progress = 0;
  16169. _this.proVisible = true;
  16170. if (file) {
  16171. var params = {
  16172. Key:
  16173. file.name.split(".")[0] +
  16174. new Date().getTime() +
  16175. "." +
  16176. file.name.split(".")[file.name.split(".").length - 1],
  16177. ContentType: file.type,
  16178. Body: file,
  16179. "Access-Control-Allow-Credentials": "*",
  16180. ACL: "public-read",
  16181. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16182. var options = {
  16183. partSize: 2048 * 1024 * 1024,
  16184. queueSize: 2,
  16185. leavePartsOnError: true,
  16186. };
  16187. bucket
  16188. .upload(params, options)
  16189. .on("httpUploadProgress", function (evt) {
  16190. //这里可以写进度条
  16191. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16192. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16193. })
  16194. .send(function (err, data) {
  16195. _this.progress = 100;
  16196. setTimeout(() => {
  16197. _this.proVisible = false;
  16198. }, 1000);
  16199. if (err) {
  16200. var a = _this.$refs.upload1.uploadFiles;
  16201. a.splice(a.length - 1, a.length);
  16202. _this.$message.error(this.lang.ssUploadFailed);
  16203. } else {
  16204. if (type == 2) {
  16205. _this.studyJuri[0].upVedio.push({
  16206. name: file.name,
  16207. url: data.Location,
  16208. uid: file.uid,
  16209. });
  16210. _this.imgChange(null, null, type);
  16211. } else if (type == 3) {
  16212. _this.studyJuri[0].upFile.push({
  16213. name: file.name,
  16214. url: data.Location,
  16215. uid: file.uid,
  16216. });
  16217. _this.imgChange(null, null, type);
  16218. }
  16219. console.log(data.Location);
  16220. }
  16221. });
  16222. }
  16223. },
  16224. allScrell() {
  16225. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16226. },
  16227. nextOrpreSteps(t) {
  16228. if (this.IsFollow && this.tType == 2) {
  16229. this.$message.error(this.lang.ssFollowModeOn);
  16230. return;
  16231. }
  16232. var b = this.chapInfoList.length - 1;
  16233. if (t == 0) {
  16234. if (this.courseType == 0) {
  16235. if (this.taskCount == 0) {
  16236. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16237. if (this.IsLookOpen) {
  16238. if (
  16239. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16240. ) {
  16241. if (
  16242. this.courseDetail.userid != this.userid &&
  16243. (!this.courseDetail.course_teacher ||
  16244. (this.courseDetail.course_teacher &&
  16245. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16246. ) {
  16247. this.$message.error(this.lang.ssTaskLocked);
  16248. } else {
  16249. this.$message.error(this.lang.ssPrevTaskLocked);
  16250. }
  16251. return;
  16252. }
  16253. }
  16254. this.navList[this.courseType].isOpen = false;
  16255. this.courseType = b;
  16256. this.taskCount =
  16257. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16258. .length - 1;
  16259. this.navList[this.courseType].isOpen = true;
  16260. } else {
  16261. this.taskCount--;
  16262. }
  16263. } else {
  16264. if (this.taskCount == 0) {
  16265. this.navList[this.courseType].isOpen = false;
  16266. this.courseType--;
  16267. this.taskCount =
  16268. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16269. .length - 1;
  16270. this.navList[this.courseType].isOpen = true;
  16271. } else {
  16272. this.taskCount--;
  16273. }
  16274. }
  16275. } else {
  16276. if (this.courseType == b) {
  16277. if (
  16278. this.taskCount ==
  16279. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16280. 1
  16281. ) {
  16282. this.navList[this.courseType].isOpen = false;
  16283. this.courseType = 0;
  16284. this.taskCount = 0;
  16285. this.navList[this.courseType].isOpen = true;
  16286. } else {
  16287. var bbb = parseInt(this.taskCount) + 1;
  16288. if (
  16289. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16290. .isLook &&
  16291. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  16292. (this.courseDetail.course_teacher &&
  16293. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16294. this.IsLookOpen
  16295. ) {
  16296. this.$message.error(this.lang.ssTaskLocked);
  16297. return;
  16298. }
  16299. this.taskCount++;
  16300. if (this.IsLookOpen) {
  16301. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16302. this.taskCount
  16303. ].isLook = true;
  16304. this.addCourseState(3);
  16305. }
  16306. }
  16307. } else {
  16308. if (
  16309. this.taskCount ==
  16310. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16311. 1
  16312. ) {
  16313. var bbb = parseInt(this.courseType) + 1;
  16314. if (
  16315. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16316. this.courseDetail.userid != this.userid &&
  16317. (!this.courseDetail.course_teacher ||
  16318. (this.courseDetail.course_teacher &&
  16319. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16320. this.IsLookOpen
  16321. ) {
  16322. this.$message.error(this.lang.ssTaskLocked);
  16323. return;
  16324. }
  16325. this.navList[this.courseType].isOpen = false;
  16326. this.courseType++;
  16327. this.taskCount = 0;
  16328. this.navList[this.courseType].isOpen = true;
  16329. } else {
  16330. var bbb = parseInt(this.taskCount) + 1;
  16331. if (
  16332. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16333. .isLook &&
  16334. this.courseDetail.userid != this.userid &&
  16335. (!this.courseDetail.course_teacher ||
  16336. (this.courseDetail.course_teacher &&
  16337. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16338. this.IsLookOpen
  16339. ) {
  16340. this.$message.error(this.lang.ssTaskLocked);
  16341. return;
  16342. }
  16343. this.taskCount++;
  16344. }
  16345. if (this.IsLookOpen) {
  16346. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16347. this.taskCount
  16348. ].isLook = true;
  16349. this.addCourseState(3);
  16350. }
  16351. }
  16352. // if (
  16353. // this.taskCount ==
  16354. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16355. // ) {
  16356. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16357. // } else {
  16358. // this.taskCount++;
  16359. // }
  16360. }
  16361. document.scrollingElement.scrollTop = 0;
  16362. this.showType = 7;
  16363. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16364. // if (this.vedio[this.taskCount].length > 0) {
  16365. // var a =
  16366. // document.getElementsByClassName("box_course")[this.taskCount]
  16367. // .offsetHeight;
  16368. // document.getElementsByClassName("vedioList")[
  16369. // this.taskCount
  16370. // ].style.height = a + "px";
  16371. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16372. // a - 40 + "px";
  16373. // }
  16374. this.isNoHomeWork = false;
  16375. (this.studyJuri = [
  16376. {
  16377. content: "",
  16378. cover: [],
  16379. upVedio: [],
  16380. upFile: [],
  16381. },
  16382. ]),
  16383. (this.radio = []);
  16384. this.isClickNav = "";
  16385. this.selectPz();
  16386. this.getHomeWork();
  16387. this.getCourseDetail(2);
  16388. this.$forceUpdate();
  16389. if ((this.courseDetail.userid == this.userid ||
  16390. (this.courseDetail.course_teacher &&
  16391. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  16392. this.setCTask();
  16393. }
  16394. },
  16395. openTask(s, n, i,ctype) {
  16396. // 这段代码没用开启了跟随学生侧边栏会隐藏掉
  16397. if (this.IsFollow && this.tType == 2) {
  16398. this.$message.error(this.lang.ssFollowModeOn);
  16399. return;
  16400. }
  16401. if (this.IsLookOpen &&
  16402. this.courseDetail.userid != this.userid &&
  16403. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  16404. if (
  16405. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16406. this.courseDetail.userid != this.userid &&
  16407. (!this.courseDetail.course_teacher ||
  16408. (this.courseDetail.course_teacher &&
  16409. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16410. ) {
  16411. this.$message.error(this.lang.ssTaskLocked);
  16412. return;
  16413. }
  16414. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16415. if (
  16416. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16417. .isLook
  16418. ) {
  16419. this.$message.error(this.lang.ssPrevTaskLocked);
  16420. return;
  16421. }
  16422. } else if (s > this.courseType) {
  16423. if (n > 0) {
  16424. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16425. this.$message.error(this.lang.ssPrevTaskLocked);
  16426. return;
  16427. }
  16428. } else {
  16429. if (
  16430. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16431. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16432. ].isLook
  16433. ) {
  16434. this.$message.error(this.lang.ssPrevTaskLocked);
  16435. return;
  16436. }
  16437. }
  16438. }
  16439. }
  16440. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  16441. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16442. return;
  16443. }
  16444. let flag = this.courseType==s;
  16445. this.courseType = s;
  16446. this.navId = i;
  16447. this.taskCount = n;
  16448. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  16449. if(ctype == 2){
  16450. this.navList[s].task[n].isOpen = true
  16451. }else{
  16452. this.navList[this.courseType].task[this.taskCount].isOpen =
  16453. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16454. }
  16455. if (this.IsLookOpen) {
  16456. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16457. this.taskCount
  16458. ].isLook = true;
  16459. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  16460. this.addCourseState(3,yym);
  16461. }
  16462. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16463. this.isCloseList[ci].isClose = 0;
  16464. this.isCloseList[ci].isCloseBoolean = false;
  16465. this.$nextTick(()=>{
  16466. setTimeout(()=>{
  16467. setTimeout(()=>{
  16468. this.panToolHeight('tool-'+ci);
  16469. }, 0)
  16470. }, 0)
  16471. })
  16472. }
  16473. this.showType = 0;
  16474. this.isNoHomeWork = false;
  16475. (this.studyJuri = [
  16476. {
  16477. content: "",
  16478. cover: [],
  16479. upVedio: [],
  16480. upFile: [],
  16481. },
  16482. ]),
  16483. (this.radio = []);
  16484. document.scrollingElement.scrollTop = 0;
  16485. // setTimeout(() => {
  16486. // let a = document.getElementById(i);
  16487. // if (a.offsetTop - 110 == 0) {
  16488. // window.scrollTo(0, 0);
  16489. // } else {
  16490. // window.scrollTo(0, a.offsetTop);
  16491. // }
  16492. // }, 0);
  16493. for (var z = 0; z < this.navList.length; z++) {
  16494. for (var q = 0; q < this.navList[z].task.length; q++) {
  16495. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16496. this.navList[z].task[q].tool[w].isTool = false;
  16497. }
  16498. }
  16499. }
  16500. this.selectPz();
  16501. this.getHomeWork();
  16502. this.getCourseDetail(2);
  16503. if ((this.courseDetail.userid == this.userid ||
  16504. (this.courseDetail.course_teacher &&
  16505. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  16506. this.setCTask();
  16507. }
  16508. if(flag){
  16509. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16510. }else{
  16511. 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>`)
  16512. }
  16513. },
  16514. get(i) {
  16515. if (this.IsFollow && this.tType == 2) {
  16516. this.$message.error(this.lang.ssFollowModeOn);
  16517. return;
  16518. }
  16519. // for(var k=0;k<this.navList.length;k++){
  16520. // this.navList[k].isOpen = false;
  16521. // }
  16522. // this.navList[i].isOpen = true;
  16523. let a = this.navList[i].isOpen
  16524. this.navList[i].isOpen = !this.navList[i].isOpen;
  16525. this.$forceUpdate()
  16526. if (this.navList[i].isOpen) {
  16527. this.openTask(i, 0, (i + "-0"),2);
  16528. }
  16529. },
  16530. addQuestion() {
  16531. this.answerList.push({
  16532. answerTitle: this.answerQ,
  16533. answer: this.questionAnswer,
  16534. });
  16535. let params = [
  16536. {
  16537. uid: this.userid,
  16538. cid: this.id,
  16539. stage: this.courseType,
  16540. task: this.taskCount,
  16541. tool: this.toolindex,
  16542. content: JSON.stringify(this.answerList),
  16543. type: 3,
  16544. },
  16545. ];
  16546. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  16547. this.homeWorkLoading = true
  16548. this.ajax
  16549. .post(this.$store.state.api + "addCourseWorks", params)
  16550. .then((res) => {
  16551. this.$message({
  16552. message: this.lang.ssSubmitSuccess,
  16553. type: "success",
  16554. });
  16555. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  16556. setTimeout(() => {
  16557. this.homeWorkLoading = false
  16558. }, 500);
  16559. this.answerList = [];
  16560. this.answerDialogVisible = false;
  16561. this.selectStudent();
  16562. this.selectSWorks();
  16563. this.selectSLook();
  16564. })
  16565. .catch((err) => {
  16566. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  16567. setTimeout(() => {
  16568. this.homeWorkLoading = false
  16569. }, 500);
  16570. this.$message.error(this.lang.ssSubmitFailed);
  16571. console.error(err);
  16572. });
  16573. },
  16574. addQuestionTeacher() {
  16575. this.answerList.push({
  16576. answerTitle: this.answerQ,
  16577. answer: this.questionAnswer,
  16578. });
  16579. let params = [
  16580. {
  16581. uid: this.sStudent.userid,
  16582. cid: this.id,
  16583. stage: this.courseType,
  16584. task: this.taskCount,
  16585. tool: this.toolindex,
  16586. content: JSON.stringify(this.answerList),
  16587. type: 3,
  16588. ateacher: this.userid,
  16589. },
  16590. ];
  16591. this.ajax
  16592. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16593. .then((res) => {
  16594. this.$message({
  16595. message: this.lang.ssSubmitSuccess,
  16596. type: "success",
  16597. });
  16598. this.answerList = [];
  16599. this.questionAnswer = "";
  16600. this.answerDialogVisibleTeacher = false;
  16601. this.selectStudent();
  16602. this.selectSWorks();
  16603. this.selectSLook();
  16604. })
  16605. .catch((err) => {
  16606. this.$message.error(this.lang.ssSubmitFailed);
  16607. console.error(err);
  16608. });
  16609. },
  16610. refreshCourse() {
  16611. // window.location.reload();
  16612. this.navList = [];
  16613. this.getCourseDetail(1);
  16614. },
  16615. getCourseDetail(type, gindex) {
  16616. let loading;
  16617. if (type != 2) {
  16618. loading = this.$loading.service({
  16619. background: "rgba(255, 255, 255, 0.7)",
  16620. target: document.querySelector(".student_table"),
  16621. });
  16622. }
  16623. this.downLoading = false
  16624. // this.navList[0].isOpen = false;
  16625. // this.navList[this.courseType].isOpen = true;
  16626. // this.courseType = this.courseTypeLine;
  16627. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16628. let params = {
  16629. courseId: this.id,
  16630. };
  16631. this.ajax
  16632. .get(this.$store.state.api + "selectCourseDetail3", params)
  16633. .then((res) => {
  16634. if ((this.courseDetail.userid == this.userid ||
  16635. (this.courseDetail.course_teacher &&
  16636. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  16637. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  16638. }
  16639. if (type != 2) {
  16640. loading.close();
  16641. if (
  16642. this.courseType >
  16643. JSON.parse(res.data[0][0].chapters).length - 1
  16644. ) {
  16645. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16646. }
  16647. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16648. .chapterInfo[0].taskJson;
  16649. var b = [
  16650. "AVI",
  16651. "NAVI",
  16652. "MPEG",
  16653. "ASF",
  16654. "MOV",
  16655. "WMV",
  16656. "3GP",
  16657. "RM",
  16658. "RMVB",
  16659. "FLV",
  16660. "F4V",
  16661. "H.264",
  16662. "H.265",
  16663. "REAL VIDEO",
  16664. "MKV",
  16665. "WebM",
  16666. "HDDVD",
  16667. "MP4",
  16668. "MPG",
  16669. "M4V",
  16670. "MGV",
  16671. "OGV",
  16672. "QTM",
  16673. "STR",
  16674. "AMC",
  16675. "DVX",
  16676. "EVO",
  16677. "DAT",
  16678. "OGG",
  16679. "OGM",
  16680. "MP3",
  16681. ];
  16682. let _chapterData = [];
  16683. for (var i = 0; i < a.length; i++) {
  16684. var c = a[i].chapterData;
  16685. this.vedio[i] = [];
  16686. this.textList[i] = [];
  16687. this.lineList[i] = [];
  16688. this.chapToolList[i] = [];
  16689. this.file[i] = [];
  16690. this.fileC[i] = [];
  16691. _chapterData[i] = c.filter((el) => {
  16692. return el.type != 12;
  16693. });
  16694. this.fileC[i] = c.filter((el) => {
  16695. return el.type == 12;
  16696. });
  16697. if (this.tType == 2) {
  16698. if (this.fileC[i].length) {
  16699. let yym1 = this.fileC[i].filter(e=>{
  16700. if(!converter(e.name).includes(converter(this.lang.ssTeachingPlan))){
  16701. return e
  16702. }
  16703. })
  16704. this.fileC[i] = yym1
  16705. }
  16706. }
  16707. // else if (c[j].type == 12) {
  16708. // this.fileC[i].push(c[j]);
  16709. // }
  16710. for (var j = 0; j < c.length; j++) {
  16711. if (c[j].type == 7) {
  16712. this.chapToolList[i].push(c[j]);
  16713. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  16714. this.lineList[i].push(c[j]);
  16715. } else if (c[j].type == 6) {
  16716. this.textList[i].push(c[j]);
  16717. } else {
  16718. if (
  16719. b.indexOf(
  16720. c[j].url
  16721. .split(".")
  16722. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16723. ) != -1
  16724. ) {
  16725. this.vedio[i].push(c[j]);
  16726. } else {
  16727. this.file[i].push(c[j]);
  16728. }
  16729. }
  16730. }
  16731. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16732. d.sources[0].src =
  16733. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16734. this.playerO[i] = d;
  16735. }
  16736. this.courseDetail = res.data[0][0];
  16737. if(this.tType == 2){
  16738. this.tcid = this.arrayToArray(
  16739. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16740. this.classId ? this.classId.split(",") : []
  16741. ).join(",");
  16742. }else{
  16743. this.tcid = this.arrayToArray(
  16744. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16745. this.tcid2 ? this.tcid2.split(",") : []
  16746. ).join(",");
  16747. }
  16748. this.evalua = res.data[0][0].evaId;
  16749. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16750. this.courseType
  16751. ];
  16752. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16753. if (this.tcid && res.data[1].length) {
  16754. let _inviteA = [];
  16755. for (var ik = 0; ik < res.data[1].length; ik++) {
  16756. _inviteA.push({
  16757. cid: res.data[1][ik].classid,
  16758. ic: res.data[1][ik].code,
  16759. });
  16760. }
  16761. for (var ik = 0; ik < _inviteA.length; ik++) {
  16762. if (
  16763. this.arrayToArray(
  16764. _inviteA[ik].cid.split(","),
  16765. this.tcid.split(",")
  16766. ).length
  16767. ) {
  16768. this.inviteCode = _inviteA[ik].ic;
  16769. break;
  16770. }
  16771. }
  16772. }
  16773. for (var l = 0; l < this.chapInfoList.length; l++) {
  16774. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16775. for (var m = 0; m < w.length; m++) {
  16776. w[m].id = l + "-" + m;
  16777. }
  16778. }
  16779. if (
  16780. _chapterData[this.taskCount].length &&
  16781. _chapterData[this.taskCount][0].type == 2
  16782. ) {
  16783. this.showType = 0;
  16784. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16785. } else {
  16786. if (_chapterData[this.taskCount].length > 0) {
  16787. let _url = _chapterData[this.taskCount][0].url;
  16788. if (
  16789. _chapterData[this.taskCount][0].type == 8 ||
  16790. _chapterData[this.taskCount][0].type == 14 ||
  16791. _chapterData[this.taskCount][0].type == 15
  16792. ) {
  16793. this.showType = 2;
  16794. if (
  16795. _url.indexOf("https://") == -1 &&
  16796. _url.indexOf("http://") == -1
  16797. ) {
  16798. _url = "https://" + _url;
  16799. }
  16800. this.pptImgUrl1 = _url;
  16801. } else if (_chapterData[this.taskCount][0].type == 3) {
  16802. if (
  16803. _url
  16804. .split(".")
  16805. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16806. ) {
  16807. this.showType = 3;
  16808. this.pptImgUrl1 = _url;
  16809. } else if (
  16810. this.isAssetTypeAnImage(
  16811. _url
  16812. .split(".")
  16813. [_url.split(".").length - 1].toLocaleLowerCase()
  16814. )
  16815. ) {
  16816. this.showType = 4;
  16817. this.pptImgUrl1 = _url;
  16818. } else {
  16819. this.showType = 2;
  16820. this.pptImgUrl1 =
  16821. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16822. encodeURIComponent(_url);
  16823. }
  16824. } else if (_chapterData[this.taskCount][0].type == 13) {
  16825. this.showType = 4;
  16826. this.pptImgUrl1 = _url;
  16827. } else if (_chapterData[this.taskCount][0].type == 6) {
  16828. this.showType = 1;
  16829. this.text = this.textList[this.taskCount][0];
  16830. } else if (_chapterData[this.taskCount][0].type == 16) {
  16831. this.showType = 16;
  16832. this.pptImgUrl1 = _url;
  16833. } else if (_chapterData[this.taskCount][0].type == 17) {
  16834. this.showType = 16;
  16835. this.pptImgUrl1 = _url;
  16836. }
  16837. }
  16838. }
  16839. this.isClickNav = 0;
  16840. if (
  16841. !_chapterData[this.taskCount].length ||
  16842. _chapterData[this.taskCount][0].type == 12
  16843. ) {
  16844. this.isClickNav = "";
  16845. this.showType = "";
  16846. }
  16847. if (this.tType == 2) {
  16848. _chapterData.forEach((e,i)=>{
  16849. if (e.length) {
  16850. let yym = e.filter(k=>{
  16851. if(!converter(k.name).includes(converter(this.lang.ssTeachingPlan))){
  16852. return k
  16853. }
  16854. })
  16855. _chapterData[i] = yym
  16856. }
  16857. })
  16858. }
  16859. this.vChapterData = _chapterData;
  16860. } else {
  16861. this.showType = 0;
  16862. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16863. .chapterInfo[0].taskJson;
  16864. var b = [
  16865. "AVI",
  16866. "NAVI",
  16867. "MPEG",
  16868. "ASF",
  16869. "MOV",
  16870. "WMV",
  16871. "3GP",
  16872. "RM",
  16873. "RMVB",
  16874. "FLV",
  16875. "F4V",
  16876. "H.264",
  16877. "H.265",
  16878. "REAL VIDEO",
  16879. "MKV",
  16880. "WebM",
  16881. "HDDVD",
  16882. "MP4",
  16883. "MPG",
  16884. "M4V",
  16885. "MGV",
  16886. "OGV",
  16887. "QTM",
  16888. "STR",
  16889. "AMC",
  16890. "DVX",
  16891. "EVO",
  16892. "DAT",
  16893. "OGG",
  16894. "OGM",
  16895. "MP3",
  16896. ];
  16897. let _chapterData = [];
  16898. for (var i = 0; i < a.length; i++) {
  16899. var c = a[i].chapterData;
  16900. this.vedio[i] = [];
  16901. this.textList[i] = [];
  16902. this.lineList[i] = [];
  16903. this.chapToolList[i] = [];
  16904. this.file[i] = [];
  16905. this.fileC[i] = [];
  16906. _chapterData[i] = c.filter((el) => {
  16907. return el.type != 12;
  16908. });
  16909. this.fileC[i] = c.filter((el) => {
  16910. return el.type == 12;
  16911. });
  16912. if (this.tType == 2) {
  16913. if (this.fileC[i].length) {
  16914. let yym1 = this.fileC[i].filter(e=>{
  16915. if(!converter(e.name).includes(converter(this.lang.ssTeachingPlan))){
  16916. return e
  16917. }
  16918. })
  16919. this.fileC[i] = yym1
  16920. }
  16921. }
  16922. for (var j = 0; j < c.length; j++) {
  16923. if (c[j].type == 7) {
  16924. this.chapToolList[i].push(c[j]);
  16925. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  16926. this.lineList[i].push(c[j]);
  16927. } else if (c[j].type == 6) {
  16928. this.textList[i].push(c[j]);
  16929. } else {
  16930. if (
  16931. b.indexOf(
  16932. c[j].url
  16933. .split(".")
  16934. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16935. ) != -1
  16936. ) {
  16937. this.vedio[i].push(c[j]);
  16938. } else {
  16939. this.file[i].push(c[j]);
  16940. }
  16941. }
  16942. }
  16943. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16944. d.sources[0].src =
  16945. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16946. this.playerO[i] = d;
  16947. }
  16948. if (
  16949. _chapterData[this.taskCount].length &&
  16950. _chapterData[this.taskCount][0].type == 2
  16951. ) {
  16952. this.showType = 0;
  16953. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16954. } else {
  16955. if (_chapterData[this.taskCount].length > 0) {
  16956. let _url = _chapterData[this.taskCount][0].url;
  16957. if (
  16958. _chapterData[this.taskCount][0].type == 8 ||
  16959. _chapterData[this.taskCount][0].type == 14 ||
  16960. _chapterData[this.taskCount][0].type == 15
  16961. ) {
  16962. this.showType = 2;
  16963. if (
  16964. _url.indexOf("https://") == -1 &&
  16965. _url.indexOf("http://") == -1
  16966. ) {
  16967. _url = "https://" + _url;
  16968. }
  16969. this.pptImgUrl1 = _url;
  16970. } else if (_chapterData[this.taskCount][0].type == 3) {
  16971. if (
  16972. _url
  16973. .split(".")
  16974. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16975. ) {
  16976. this.showType = 3;
  16977. this.pptImgUrl1 = _url;
  16978. } else if (
  16979. this.isAssetTypeAnImage(
  16980. _url
  16981. .split(".")
  16982. [_url.split(".").length - 1].toLocaleLowerCase()
  16983. )
  16984. ) {
  16985. this.showType = 4;
  16986. this.pptImgUrl1 = _url;
  16987. } else {
  16988. this.showType = 2;
  16989. this.pptImgUrl1 =
  16990. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16991. encodeURIComponent(_url);
  16992. }
  16993. } else if (_chapterData[this.taskCount][0].type == 13) {
  16994. this.showType = 4;
  16995. this.pptImgUrl1 = _url;
  16996. } else if (_chapterData[this.taskCount][0].type == 6) {
  16997. this.showType = 1;
  16998. this.text = this.textList[this.taskCount][0];
  16999. } else if (_chapterData[this.taskCount][0].type == 16) {
  17000. this.showType = 16;
  17001. this.pptImgUrl1 = _url;
  17002. } else if (_chapterData[this.taskCount][0].type == 17) {
  17003. this.showType = 16;
  17004. this.pptImgUrl1 = _url;
  17005. }
  17006. }
  17007. }
  17008. this.isClickNav = 0;
  17009. if (
  17010. !_chapterData[this.taskCount].length ||
  17011. _chapterData[this.taskCount][0].type == 12
  17012. ) {
  17013. this.isClickNav = "";
  17014. this.showType = "";
  17015. }
  17016. console.log('_chapterData66666',_chapterData);
  17017. if (this.tType == 2) {
  17018. _chapterData.forEach((e,i)=>{
  17019. if (e.length) {
  17020. let yym = e.filter(k=>{
  17021. if(!converter(k.name).includes(converter(this.lang.ssTeachingPlan))){
  17022. return k
  17023. }
  17024. })
  17025. _chapterData[i] = yym
  17026. }
  17027. })
  17028. }
  17029. this.vChapterData = _chapterData;
  17030. this.$forceUpdate();
  17031. }
  17032. // else {
  17033. // this.courseDetail = res.data[0][0];
  17034. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17035. // }
  17036. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  17037. if (type == 10) {
  17038. console.log('this.courseDetail.userid',this.courseDetail.userid);
  17039. console.log('this.userid',this.userid);
  17040. if (this.courseDetail.userid == this.userid) {
  17041. // 开局关闭学生查看内容
  17042. this.StulookMode(true)
  17043. // 开局打开跟随模式
  17044. this.followingMode(true)
  17045. }
  17046. }
  17047. let _this = this;
  17048. if (_this.timer) {
  17049. clearInterval(_this.timer);
  17050. _this.timer = null;
  17051. }
  17052. if (_this.tcid) {
  17053. _this.getCourseGroup(gindex);
  17054. } else {
  17055. _this.selectSWorks(gindex);
  17056. }
  17057. _this.selectStudent();
  17058. _this.selectSLook();
  17059. _this.getPick();
  17060. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17061. // _this.setCTask();
  17062. // }
  17063. if (_this.dialogVisibleGroup) {
  17064. _this.groupJson =
  17065. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17066. _this.taskCount
  17067. ].toolChoose[_this.toolindex].groupJson;
  17068. }
  17069. _this.$nextTick(() => {
  17070. setTimeout(() => {
  17071. _this.checkEva();
  17072. }, 1000);
  17073. });
  17074. _this.timer = setInterval(function () {
  17075. // _this.getCourseDetail(2);
  17076. if (_this.tcid) {
  17077. _this.getCourseGroup();
  17078. } else {
  17079. _this.selectSWorks();
  17080. }
  17081. _this.selectStudent();
  17082. _this.selectSLook();
  17083. _this.getPick();
  17084. // _this.getSplitScreenData();
  17085. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17086. // _this.setCTask();
  17087. // }
  17088. if (_this.dialogVisibleGroup) {
  17089. _this.groupJson =
  17090. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17091. _this.taskCount
  17092. ].toolChoose[_this.toolindex].groupJson;
  17093. }
  17094. if (_this.tType == 4 || _this.ispzType == 4) {
  17095. _this.selectPz();
  17096. }
  17097. }, 5000);
  17098. if (_this.timer2 == null) {
  17099. _this.timer2 = setInterval(()=> {
  17100. if (_this.$region != 'hk') {
  17101. _this.getSplitScreenData();//获取分屏数据
  17102. }
  17103. }, 5000);
  17104. }
  17105. _this.$nextTick(function () {
  17106. setTimeout(() => {
  17107. const element = document.getElementsByClassName("pb_body")[0];
  17108. if (element) {
  17109. element.style.minHeight = 'unset'
  17110. // 或者:element.style.removeProperty("min-height");
  17111. }
  17112. // var a =
  17113. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17114. // document.getElementsByClassName("vedioList")[0].style.height =
  17115. // a + "px";
  17116. // document.getElementsByClassName("navBox")[0].style.height =
  17117. // a - 40 + "px";
  17118. // if (_this.vedio[_this.taskCount].length > 0) {
  17119. // _this.vedioTime = [];
  17120. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17121. // _this.vedioTime[i] = document.getElementsByClassName(
  17122. // "vjs-duration-display"
  17123. // )[i].textContent;
  17124. // }
  17125. // }
  17126. }, 1000);
  17127. });
  17128. })
  17129. .catch((err) => {
  17130. loading.close();
  17131. console.error(err);
  17132. });
  17133. },
  17134. getCourseGroup(gindex) {
  17135. if(this.getCourseGroupLoading) return
  17136. this.getCourseGroupLoading = true
  17137. let params = {
  17138. cid: this.id,
  17139. classid: this.tcid ? this.tcid : "1",
  17140. };
  17141. this.ajax
  17142. .get(this.$store.state.api + "getCourseGroup", params)
  17143. .then((res) => {
  17144. if (res.data && res.data[0].length) {
  17145. if (!this.isGroup) {
  17146. let courseGroup = JSON.parse(res.data[0][0].group);
  17147. courseGroup.group = courseGroup.group.filter((el) => {
  17148. el.works = [];
  17149. return el;
  17150. });
  17151. if (courseGroup.isopen == 2) {
  17152. this.isGroup = false;
  17153. this.selectSWorks(gindex);
  17154. return;
  17155. }
  17156. this.courseGroup = courseGroup;
  17157. let groupPerson = res.data[1];
  17158. let group = JSON.parse(res.data[0][0].group).group;
  17159. let courseGroupStudent = {};
  17160. let courseGroupStudentUid = {};
  17161. for (var i = 0; i < group.length; i++) {
  17162. courseGroupStudent[group[i].id] = [];
  17163. courseGroupStudentUid[group[i].id] = [];
  17164. for (var j = 0; j < groupPerson.length; j++) {
  17165. if (groupPerson[j].groupCid == group[i].id) {
  17166. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17167. courseGroupStudentUid[group[i].id].push(
  17168. groupPerson[j].userid
  17169. );
  17170. }
  17171. }
  17172. }
  17173. this.courseGroupStudent = courseGroupStudent;
  17174. this.courseGroupStudentUid = courseGroupStudentUid;
  17175. }
  17176. if (this.courseGroup.isopen == 2) {
  17177. this.isGroup = false;
  17178. } else {
  17179. this.isGroup = true;
  17180. }
  17181. this.selectSWorks(gindex);
  17182. } else {
  17183. this.selectSWorks(gindex);
  17184. this.isGroup = false;
  17185. }
  17186. this.getCourseGroupLoading = false
  17187. })
  17188. .catch((err) => {
  17189. this.getCourseGroupLoading = false
  17190. // this.$message.error(this.lang.ssNetworkPoor);
  17191. console.error(err);
  17192. });
  17193. },
  17194. setOperationTime() {
  17195. let _this = this;
  17196. if (_this.opertimer) {
  17197. clearInterval(_this.opertimer);
  17198. _this.opertimer = null;
  17199. }
  17200. _this.opertimer = setInterval(() => {
  17201. _this.setoTime("600");
  17202. }, 600000);
  17203. },
  17204. setoTime(time) {
  17205. this.doSyncClassData();
  17206. let params = [
  17207. {
  17208. uid: this.userid,
  17209. cid: this.id + (this.tcid2 || ''),
  17210. type: "2",
  17211. time: time,
  17212. },
  17213. ];
  17214. this.ajax
  17215. .post(this.$store.state.api + "addOperationTimeT2", params)
  17216. .then((res) => {})
  17217. .catch((err) => {
  17218. console.error(err);
  17219. });
  17220. },
  17221. addPz(type, content) {
  17222. if (type == "1" && this.pzConText == "") {
  17223. this.$message.error(this.lang.ssCommentEmpty);
  17224. return;
  17225. }
  17226. let params = [
  17227. {
  17228. cid: this.id,
  17229. uid: this.userid,
  17230. s: this.courseType,
  17231. t: this.taskCount,
  17232. c: type == "1" ? this.pzConText : content,
  17233. type: type,
  17234. },
  17235. ];
  17236. this.ajax
  17237. .post(this.$store.state.api + "addPz2", params)
  17238. .then((res) => {
  17239. this.$message({
  17240. message: this.lang.ssAddSuccess,
  17241. type: "success",
  17242. });
  17243. this.pzConText = "";
  17244. this.addPzDialog = false;
  17245. this.selectPz();
  17246. if(this.tType!=2){
  17247. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17248. }
  17249. })
  17250. .catch((err) => {
  17251. this.$message.error(this.lang.ssAddFailed);
  17252. console.error(err);
  17253. });
  17254. },
  17255. setReplyIndex(id, i) {
  17256. this.replyIndex = i;
  17257. this.replyPid = id;
  17258. this.replyDialogVisible = true;
  17259. },
  17260. addHf() {
  17261. if (this.reply == "") {
  17262. this.$message.error(this.lang.ssReplyEmpty);
  17263. return;
  17264. }
  17265. let params = [
  17266. {
  17267. cid: this.id,
  17268. uid: this.userid,
  17269. s: this.courseType,
  17270. t: this.taskCount,
  17271. type: "1",
  17272. ct: 2,
  17273. pid: this.replyPid,
  17274. c: this.reply,
  17275. },
  17276. ];
  17277. this.ajax
  17278. .post(this.$store.state.api + "addHf", params)
  17279. .then((res) => {
  17280. this.reply = "";
  17281. this.$message({
  17282. message: this.lang.ssReplySuccess,
  17283. type: "success",
  17284. });
  17285. this.replyDialogVisible = false;
  17286. this.selectPz();
  17287. })
  17288. .catch((err) => {
  17289. this.$message.error(this.lang.ssReplyFailed);
  17290. console.error(err);
  17291. });
  17292. },
  17293. deletePz(id) {
  17294. this.$confirm(this.lang.ssConfirmDeleteComment, this.lang.ssPrompt, {
  17295. confirmButtonText: this.lang.ssConfirm,
  17296. cancelButtonText: this.lang.ssCancel,
  17297. type: "warning",
  17298. })
  17299. .then(() => {
  17300. let params = [
  17301. {
  17302. id: id,
  17303. },
  17304. ];
  17305. this.ajax
  17306. .post(this.$store.state.api + "deletePz", params)
  17307. .then((res) => {
  17308. this.$message({
  17309. message: this.lang.ssDeleteSuccess,
  17310. type: "success",
  17311. });
  17312. this.selectPz();
  17313. })
  17314. .catch((err) => {
  17315. this.$message.error(this.lang.ssNetworkError);
  17316. console.error(err);
  17317. });
  17318. })
  17319. .catch(() => {});
  17320. },
  17321. deleteReply(id) {
  17322. this.$confirm(this.lang.ssConfirmDeleteReply, this.lang.ssPrompt, {
  17323. confirmButtonText: this.lang.ssConfirm,
  17324. cancelButtonText: this.lang.ssCancel,
  17325. type: "warning",
  17326. })
  17327. .then(() => {
  17328. let params = [
  17329. {
  17330. id: id,
  17331. },
  17332. ];
  17333. this.ajax
  17334. .post(this.$store.state.api + "deleteReply", params)
  17335. .then((res) => {
  17336. this.$message({
  17337. message: this.lang.ssDeleteSuccess,
  17338. type: "success",
  17339. });
  17340. this.selectPz();
  17341. })
  17342. .catch((err) => {
  17343. this.$message.error(this.lang.ssNetworkError);
  17344. console.error(err);
  17345. });
  17346. })
  17347. .catch(() => {});
  17348. },
  17349. setPz() {
  17350. if (this.ispzType == 4) {
  17351. this.ispzType = 0;
  17352. this.pzDialog = false;
  17353. return;
  17354. }
  17355. this.ispzType = 4;
  17356. this.pzDialog = true;
  17357. this.selectPz();
  17358. },
  17359. selectPz() {
  17360. if(this.selectPzLoading) return
  17361. this.selectPzLoading = true
  17362. let params = {
  17363. cid: this.id,
  17364. s: this.courseType,
  17365. t: this.taskCount,
  17366. type: this.pzStype,
  17367. uid: this.userid,
  17368. };
  17369. this.ajax
  17370. .get(this.$store.state.api + "selectPzListType", params)
  17371. .then((res) => {
  17372. this.pzList = res.data[0];
  17373. var a = res.data[1];
  17374. for (var i = 0; i < a.length; i++) {
  17375. for (var j = 0; j < this.pzList.length; j++) {
  17376. if (!this.pzList[j].hfList) {
  17377. this.pzList[j].hfList = [];
  17378. }
  17379. if (a[i].pid == this.pzList[j].id) {
  17380. this.pzList[j].hfList.push(a[i]);
  17381. }
  17382. }
  17383. }
  17384. this.selectPzLoading = false
  17385. })
  17386. .catch((err) => {
  17387. this.selectPzLoading = false
  17388. console.error(err);
  17389. });
  17390. },
  17391. // selectHf() {
  17392. // let params = {
  17393. // cid: this.id,
  17394. // s: this.courseType,
  17395. // t: this.taskCount,
  17396. // };
  17397. // this.ajax
  17398. // .get(this.$store.state.api + "selectHfList", params)
  17399. // .then((res) => {
  17400. // var a = res.data[0];
  17401. // for (var i = 0; i < a.length; i++) {
  17402. // for (var j = 0; j < this.pzList.length; j++) {
  17403. // if (!this.pzList[i].hfList) {
  17404. // this.pzList[i].hfList = [];
  17405. // }
  17406. // if (a[i].pid == this.pzList[j].id) {
  17407. // this.pzList[i].hfList.push(a[i]);
  17408. // }
  17409. // }
  17410. // }
  17411. // })
  17412. // .catch((err) => {
  17413. // console.error(err);
  17414. // });
  17415. // },
  17416. updateSLook() {
  17417. let params = {
  17418. sopen: this.sIsOpen == false ? 1 : 2,
  17419. cid: this.id,
  17420. };
  17421. this.ajax
  17422. .get(this.$store.state.api + "updateCourseSLook", params)
  17423. .then((res) => {
  17424. if (this.sIsOpen == true) {
  17425. this.$message({
  17426. message: this.lang.ssPermSetSuccess,
  17427. type: "success",
  17428. });
  17429. } else {
  17430. this.$message({
  17431. message: this.lang.ssPermClosedOk,
  17432. type: "success",
  17433. });
  17434. }
  17435. })
  17436. .catch((err) => {
  17437. console.error(err);
  17438. });
  17439. },
  17440. updateIsStulook(){
  17441. let params = [
  17442. {
  17443. sopen: this.IsStulook == false ? 2 : 1,
  17444. cid: this.id
  17445. }
  17446. ];
  17447. this.ajax
  17448. .post(this.$store.state.api + "updateCourseStulook", params)
  17449. .then(res => {
  17450. if (this.IsStulook == true) {
  17451. this.$message({
  17452. message: this.lang.ssStuViewPermOn,
  17453. type: "success"
  17454. });
  17455. } else {
  17456. this.$message({
  17457. message: this.lang.ssStuViewPermOff,
  17458. type: "success"
  17459. });
  17460. }
  17461. // this.setCTask();
  17462. })
  17463. .catch(err => {
  17464. console.error(err);
  17465. });
  17466. },
  17467. updateFollow() {
  17468. let params = [
  17469. {
  17470. sopen: this.IsFollow == false ? 1 : 2,
  17471. cid: this.id,
  17472. },
  17473. ];
  17474. this.ajax
  17475. .post(this.$store.state.api + "updateCourseFollow", params)
  17476. .then((res) => {
  17477. if (this.IsFollow == true) {
  17478. this.$message({
  17479. message: this.lang.ssFollowModeOn2,
  17480. type: "success",
  17481. });
  17482. } else {
  17483. this.$message({
  17484. message: this.lang.ssFollowModeOff,
  17485. type: "success",
  17486. });
  17487. }
  17488. this.setCTask();
  17489. })
  17490. .catch((err) => {
  17491. console.error(err);
  17492. });
  17493. },
  17494. setCTask() {
  17495. let params = [
  17496. {
  17497. sopen: this.courseType + "-" + this.taskCount,
  17498. cid: this.id,
  17499. },
  17500. ];
  17501. this.ajax
  17502. .post(this.$store.state.api + "updateCourseFollowC", params)
  17503. .then((res) => {})
  17504. .catch((err) => {
  17505. console.error(err);
  17506. });
  17507. },
  17508. updateLookOpen() {
  17509. let params = [
  17510. {
  17511. sopen: this.IsLookOpen == false ? 1 : 2,
  17512. cid: this.id,
  17513. },
  17514. ];
  17515. this.ajax
  17516. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17517. .then((res) => {
  17518. if (this.IsLookOpen == true) {
  17519. // if (this.courseType != 0 && this.taskCount != 0) {
  17520. // this.openTask(0, 0, "0-0");
  17521. // }
  17522. this.$message({
  17523. message: this.lang.ssPermSetSuccess,
  17524. type: "success",
  17525. });
  17526. } else {
  17527. this.$message({
  17528. message: this.lang.ssPermClosedOk,
  17529. type: "success",
  17530. });
  17531. }
  17532. this.getCourseState(2);
  17533. })
  17534. .catch((err) => {
  17535. console.error(err);
  17536. });
  17537. },
  17538. selectSLook() {
  17539. if(this.selectSLookLoading) return
  17540. this.selectSLookLoading = true
  17541. let params = {
  17542. cid: this.id,
  17543. };
  17544. this.ajax
  17545. .get(this.$store.state.api + "selectCourseSLook", params)
  17546. .then((res) => {
  17547. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17548. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17549. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17550. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  17551. if (!this.IsLookOpen) {
  17552. this.setNavList();
  17553. }else {
  17554. this.getCourseState(1);
  17555. }
  17556. if ((this.IsFollow && this.tType == 2)) {
  17557. this.setContent2(false);
  17558. let _followC = res.data[0][0].followC.split("-");
  17559. if (
  17560. this.courseType != _followC[0] ||
  17561. this.taskCount != _followC[1]
  17562. ) {
  17563. this.navList[this.courseType].isOpen = false;
  17564. this.courseType = _followC[0];
  17565. this.navList[this.courseType].isOpen = true;
  17566. this.taskCount = parseInt(_followC[1]);
  17567. this.navId = res.data[0][0].followC;
  17568. document.scrollingElement.scrollTop = 0;
  17569. this.getCourseDetail(2);
  17570. }
  17571. }
  17572. this.selectSLookLoading = false
  17573. })
  17574. .catch((err) => {
  17575. this.selectSLookLoading = false
  17576. console.error(err);
  17577. });
  17578. },
  17579. setNavList() {
  17580. if (this.navList.length == 0) {
  17581. this.navList = [];
  17582. var copyList = [];
  17583. for (var l = 0; l < this.chapInfoList.length; l++) {
  17584. var q = this.chapInfoList[l].dyName;
  17585. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17586. var e;
  17587. copyList.push({
  17588. dyName: q,
  17589. isOpen: l === 0 ? true : false,
  17590. task: [],
  17591. });
  17592. for (var r = 0; r < w.length; r++) {
  17593. e = w[r].task;
  17594. if (this.chapInfoList[l].easy == 1) {
  17595. copyList[l].task.push({
  17596. taskName: q,
  17597. id: l + "-" + r,
  17598. isLook: w[r].isLook,
  17599. isOpen: r === 0 ? true : false,
  17600. tool: [],
  17601. });
  17602. } else {
  17603. copyList[l].task.push({
  17604. taskName: e,
  17605. id: l + "-" + r,
  17606. isLook: w[r].isLook,
  17607. isOpen: r === 0 ? true : false,
  17608. tool: [],
  17609. });
  17610. }
  17611. var t = w[r].toolChoose;
  17612. for (var k = 0; k < t.length; k++) {
  17613. var tool = t[k].tool[0];
  17614. copyList[l].task[r].tool.push({
  17615. tool: tool,
  17616. isTool: false,
  17617. });
  17618. }
  17619. // this.navId = this.navId ? this.navId : l + "-" + r;
  17620. // this.navId = l + "-" + r;
  17621. }
  17622. }
  17623. this.navList = copyList;
  17624. this.navList[0].isOpen = false;
  17625. this.navList[this.courseType].isOpen = true;
  17626. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17627. } else {
  17628. this.setNavList2();
  17629. }
  17630. },
  17631. setNavList2() {
  17632. for (var l = 0; l < this.chapInfoList.length; l++) {
  17633. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17634. for (var r = 0; r < w.length; r++) {
  17635. this.navList[l].task[r].isLook = w[r].isLook;
  17636. }
  17637. }
  17638. if (
  17639. this.IsLookOpen &&
  17640. !this.navList[this.courseType].task[this.taskCount].isLook
  17641. ) {
  17642. this.openTask(0, 0, "0-0");
  17643. }
  17644. this.$forceUpdate();
  17645. },
  17646. getCourseState(type) {
  17647. let params = {
  17648. cid: this.id,
  17649. };
  17650. this.ajax
  17651. .get(this.$store.state.api + "getCourseState", params)
  17652. .then((res) => {
  17653. // if (res.data[0].length > 0) {
  17654. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  17655. // }
  17656. if (res.data[0].length > 0 && type == 1) {
  17657. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17658. this.setNavList();
  17659. this.$forceUpdate();
  17660. } else if (res.data[0].length > 0 && type == 2) {
  17661. this.addCourseState(2);
  17662. } else {
  17663. // this.addCourseState(1);
  17664. }
  17665. })
  17666. .catch((err) => {
  17667. console.error(err);
  17668. });
  17669. },
  17670. addCourseState(type,val = '') {
  17671. let _state = val ? val : this.chapInfoList;
  17672. // this.courseType this.taskCount
  17673. if (type == 1 || type == 2) {
  17674. for (var i = 0; i < _state.length; i++) {
  17675. let el = _state[i].chapterInfo[0].taskJson;
  17676. for (var j = 0; j < el.length; j++) {
  17677. // if (i == 0 && j == 0) {
  17678. // el[j].isLook = true;
  17679. // } else {
  17680. // el[j].isLook = false;
  17681. // }
  17682. if (
  17683. this.courseType > i ||
  17684. (this.courseType == i && this.taskCount + 1 > j)
  17685. ) {
  17686. el[j].isLook = true;
  17687. } else {
  17688. el[j].isLook = false;
  17689. }
  17690. }
  17691. }
  17692. }
  17693. let params = [
  17694. {
  17695. cid: this.id,
  17696. state: JSON.stringify(_state),
  17697. },
  17698. ];
  17699. // 这两个接口是一样的type无所谓了
  17700. this.ajax
  17701. .post(
  17702. this.$store.state.api +
  17703. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17704. params
  17705. )
  17706. .then((res) => {
  17707. if (this.IsLookOpen) {
  17708. this.setNavList();
  17709. }
  17710. if (type == 3 && type == 2) {
  17711. this.getCourseState(1);
  17712. }
  17713. })
  17714. .catch((err) => {
  17715. console.error(err);
  17716. });
  17717. },
  17718. getHomeWork() {
  17719. let params = {
  17720. cid: this.id,
  17721. stage: this.courseType,
  17722. task: this.taskCount,
  17723. uid: this.userid,
  17724. };
  17725. this.ajax
  17726. .get(this.$store.state.api + "selectWork", params)
  17727. .then((res) => {
  17728. if (res.data[0].length > 0) {
  17729. this.studyJuri = JSON.parse(res.data[0][0].content);
  17730. this.isNoHomeWork = true;
  17731. }
  17732. })
  17733. .catch((err) => {
  17734. console.error(err);
  17735. });
  17736. },
  17737. isAssetTypeAnImage(ext) {
  17738. return (
  17739. [
  17740. "png",
  17741. "jpg",
  17742. "jpeg",
  17743. "bmp",
  17744. "gif",
  17745. "webp",
  17746. "psd",
  17747. "svg",
  17748. "tiff",
  17749. ].indexOf(ext) !== -1
  17750. );
  17751. },
  17752. switchVideo(media) {
  17753. this.playerO = {};
  17754. this.playerOptions.poster = "";
  17755. this.playerOptions.sources[0].src = media;
  17756. this.playerO = this.playerOptions;
  17757. },
  17758. onPlayerPlay() {},
  17759. onPlayerTimeupdate(player) {
  17760. let gklog = player.cache_.currentTime; //当前播放的秒数
  17761. let a = player.cache_.duration; //视频的总时长
  17762. let gklog2 = parseInt(gklog);
  17763. // if(gklog2 == '3'){
  17764. // player.pause()
  17765. // setTimeout(()=>{
  17766. // player.currentTime(gklog2+1)
  17767. // player.play()
  17768. // },1000)
  17769. // }
  17770. console.log(" onPlayerTimeupdate!", gklog);
  17771. console.log(" onPlayerTimeupdate!", gklog2);
  17772. },
  17773. lookVedio(u, i) {
  17774. this.isClickNav = "";
  17775. // this.playerOptions.sources[0].src = u;
  17776. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17777. d.sources[0].src = u;
  17778. this.playerO[this.taskCount] = d;
  17779. this.showType = 0;
  17780. // this.isClickNav = "video" + i;
  17781. this.isClickNav = i;
  17782. this.$forceUpdate();
  17783. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17784. },
  17785. lookText(i, t) {
  17786. this.isClickNav = "";
  17787. // this.text = this.textList[i][t];
  17788. this.text = this.vChapterData[i][t];
  17789. // this.dialogVisible1 = true;
  17790. this.showType = 1;
  17791. // this.isClickNav = "text" + t;
  17792. this.isClickNav = t;
  17793. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17794. },
  17795. lookTools(i, t) {
  17796. this.chapTools = this.chapToolList[i][t];
  17797. this.dialogVisible2 = true;
  17798. },
  17799. async openFile(f,w) {
  17800. this.pptImgUrl = "";
  17801. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17802. if (
  17803. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17804. -1
  17805. ) {
  17806. let _uuurl = await this.checkLink(f);
  17807. this.pptImgUrl =
  17808. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17809. this.showPDF = false;
  17810. this.dialogVisible3 = true;
  17811. } else if (
  17812. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17813. ) {
  17814. this.pptImgUrl = f;
  17815. this.showPDF = true;
  17816. this.dialogVisible3 = true;
  17817. }
  17818. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17819. },
  17820. openTable(f) {
  17821. this.tableJson = JSON.parse(f.works);
  17822. this.dialogVisibleTable2 = true;
  17823. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17824. },
  17825. openWord(f) {
  17826. this.tableJson = JSON.parse(f.works);
  17827. this.dialogVisibleTable3 = true;
  17828. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17829. },
  17830. doUrl(url, i) {
  17831. this.isClickNav = "";
  17832. this.pptImgUrl1 = "";
  17833. this.showType = 2;
  17834. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17835. url = "https://" + url;
  17836. }
  17837. this.pptImgUrl1 = "";
  17838. this.diffKey = new Date().getTime();
  17839. setTimeout(() => {
  17840. this.pptImgUrl1 = url;
  17841. }, 500);
  17842. // this.isClickNav = "line" + i;
  17843. this.isClickNav = i;
  17844. this.$forceUpdate();
  17845. },
  17846. checkPhoto(f, i) {
  17847. this.showType = 4;
  17848. this.pptImgUrl1 = f.url;
  17849. this.isClickNav = i;
  17850. this.$forceUpdate();
  17851. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17852. },
  17853. checkHtml(f, i){
  17854. this.showType = 16;
  17855. this.pptImgUrl1 = f.url;
  17856. this.isClickNav = i;
  17857. this.$forceUpdate();
  17858. },
  17859. async downFile(f, i) {
  17860. this.isClickNav = "";
  17861. this.pptImgUrl1 = "";
  17862. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17863. if (
  17864. a.indexOf(
  17865. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17866. ) != -1
  17867. ) {
  17868. let _uuurl = await this.checkLink(f.url);
  17869. this.pptImgUrl1 =
  17870. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17871. // this.dialogVisible3 = true;
  17872. this.showType = 2;
  17873. } else if (
  17874. this.isAssetTypeAnImage(
  17875. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17876. )
  17877. ) {
  17878. this.showType = 4;
  17879. this.pptImgUrl1 = f.url;
  17880. } else if (
  17881. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17882. "PDF"
  17883. ) {
  17884. this.pptImgUrl1 = f.url;
  17885. // this.dialogVisible3 = true;
  17886. this.showType = 3;
  17887. } else {
  17888. window.open(this.file[i].url);
  17889. }
  17890. // this.isClickNav = "word" + i;
  17891. this.isClickNav = i;
  17892. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17893. },
  17894. downFileList(i) {
  17895. window.open(this.noImgList[i].url);
  17896. },
  17897. openAddWork() {
  17898. this.dialogVisible = true;
  17899. },
  17900. addBzWorks() {
  17901. let params = [
  17902. {
  17903. uid: this.userid,
  17904. cid: this.id,
  17905. stage: this.courseType,
  17906. task: this.taskCount,
  17907. tool: this.toolindex,
  17908. content: JSON.stringify(this.eScore),
  17909. type: 6,
  17910. },
  17911. ];
  17912. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17913. this.homeWorkLoading = true
  17914. this.ajax
  17915. .post(this.$store.state.api + "addCourseWorks", params)
  17916. .then((res) => {
  17917. this.$message({
  17918. message: this.lang.ssSubmitSuccess,
  17919. type: "success",
  17920. });
  17921. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  17922. setTimeout(() => {
  17923. this.homeWorkLoading = false
  17924. }, 500);
  17925. this.eScore = { eBzText: "", eStar: [] };
  17926. this.studentEvalDialogVisible = false;
  17927. this.selectSWorks();
  17928. })
  17929. .catch((err) => {
  17930. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  17931. setTimeout(() => {
  17932. this.homeWorkLoading = false
  17933. }, 500);
  17934. this.$message.error(this.lang.ssSubmitFailed);
  17935. console.error(err);
  17936. });
  17937. },
  17938. addBzWorksTeacher() {
  17939. let params = [
  17940. {
  17941. uid: this.sStudent.userid,
  17942. cid: this.id,
  17943. stage: this.courseType,
  17944. task: this.taskCount,
  17945. tool: this.toolindex,
  17946. content: JSON.stringify(this.eScore),
  17947. type: 6,
  17948. },
  17949. ];
  17950. this.ajax
  17951. .post(this.$store.state.api + "addCourseWorks", params)
  17952. .then((res) => {
  17953. this.$message({
  17954. message: this.lang.ssSubmitSuccess,
  17955. type: "success",
  17956. });
  17957. this.eScore = { eBzText: "", eStar: [] };
  17958. this.studentEvalDialogVisibleTeacher = false;
  17959. this.selectSWorks();
  17960. })
  17961. .catch((err) => {
  17962. this.$message.error(this.lang.ssSubmitFailed);
  17963. console.error(err);
  17964. });
  17965. },
  17966. addStudentAsk() {
  17967. if (!this.radio.length) {
  17968. this.$message.error(this.lang.ssPleaseSelectOption);
  17969. return;
  17970. }
  17971. for (var i = 0; i < this.askJson.askCount; i++) {
  17972. if (
  17973. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17974. (this.radio[i] !== 0 && !this.radio[i])
  17975. ) {
  17976. this.$message.error(this.lang.ssPleaseSelectOption);
  17977. return;
  17978. }
  17979. }
  17980. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17981. let params = [
  17982. {
  17983. uid: this.userid,
  17984. cid: this.id,
  17985. stage: this.courseType,
  17986. task: this.taskCount,
  17987. tool: this.toolindex,
  17988. content: JSON.stringify(this.askList),
  17989. type: 2,
  17990. },
  17991. ];
  17992. // console.log('params',params);
  17993. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17994. this.homeWorkLoading = true
  17995. this.ajax
  17996. .post(this.$store.state.api + "addCourseWorks", params)
  17997. .then((res) => {
  17998. this.$message({
  17999. message: this.lang.ssSubmitSuccess,
  18000. type: "success",
  18001. });
  18002. setTimeout(() => {
  18003. this.homeWorkLoading = false
  18004. }, 500);
  18005. this.askList = [];
  18006. this.dialogVisible5 = false;
  18007. this.selectStudent();
  18008. this.selectSWorks();
  18009. this.selectSLook();
  18010. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18011. })
  18012. .catch((err) => {
  18013. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18014. setTimeout(() => {
  18015. this.homeWorkLoading = false
  18016. }, 500);
  18017. this.$message.error(this.lang.ssSubmitFailed);
  18018. console.error(err);
  18019. });
  18020. },
  18021. addStudentAskTeacher() {
  18022. if (!this.radio.length) {
  18023. this.$message.error(this.lang.ssPleaseSelectOption);
  18024. return;
  18025. }
  18026. for (var i = 0; i < this.askJson.askCount; i++) {
  18027. if (
  18028. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18029. (this.radio[i] !== 0 && !this.radio[i])
  18030. ) {
  18031. this.$message.error(this.lang.ssPleaseSelectOption);
  18032. return;
  18033. }
  18034. }
  18035. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18036. let params = [
  18037. {
  18038. uid: this.sStudent.userid,
  18039. cid: this.id,
  18040. stage: this.courseType,
  18041. task: this.taskCount,
  18042. tool: this.toolindex,
  18043. content: JSON.stringify(this.askList),
  18044. type: 2,
  18045. },
  18046. ];
  18047. this.ajax
  18048. .post(this.$store.state.api + "addCourseWorks", params)
  18049. .then((res) => {
  18050. this.$message({
  18051. message: this.lang.ssSubmitSuccess,
  18052. type: "success",
  18053. });
  18054. this.askList = [];
  18055. this.dialogVisible5Teacher = false;
  18056. this.selectStudent();
  18057. this.selectSWorks();
  18058. this.selectSLook();
  18059. })
  18060. .catch((err) => {
  18061. this.$message.error(this.lang.ssSubmitFailed);
  18062. console.error(err);
  18063. });
  18064. },
  18065. addStudentTest() {
  18066. if (!this.radio.length) {
  18067. this.$message.error(this.lang.ssPleaseSelectOption);
  18068. return;
  18069. }
  18070. for (var i = 0; i < this.testJson.testCount; i++) {
  18071. if (
  18072. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18073. (this.radio[i] !== 0 && !this.radio[i])
  18074. ) {
  18075. this.$message.error(this.lang.ssPleaseSelectOption);
  18076. return;
  18077. }
  18078. }
  18079. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18080. let params = [
  18081. {
  18082. uid: this.userid,
  18083. cid: this.id,
  18084. stage: this.courseType,
  18085. task: this.taskCount,
  18086. tool: this.toolindex,
  18087. content: JSON.stringify(this.askList),
  18088. type: 8,
  18089. },
  18090. ];
  18091. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  18092. this.homeWorkLoading = true
  18093. this.ajax
  18094. .post(this.$store.state.api + "addCourseWorks", params)
  18095. .then((res) => {
  18096. this.$message({
  18097. message: this.lang.ssSubmitSuccess,
  18098. type: "success",
  18099. });
  18100. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18101. setTimeout(() => {
  18102. this.homeWorkLoading = false
  18103. }, 500);
  18104. this.askList = [];
  18105. this.dialogVisibleChoice = false;
  18106. this.selectStudent();
  18107. this.selectSWorks();
  18108. this.selectSLook();
  18109. })
  18110. .catch((err) => {
  18111. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18112. setTimeout(() => {
  18113. this.homeWorkLoading = false
  18114. }, 500);
  18115. this.$message.error(this.lang.ssSubmitFailed);
  18116. console.error(err);
  18117. });
  18118. },
  18119. addStudentTestTeacher() {
  18120. if (!this.radio.length) {
  18121. this.$message.error(this.lang.ssPleaseSelectOption);
  18122. return;
  18123. }
  18124. for (var i = 0; i < this.testJson.testCount; i++) {
  18125. if (
  18126. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18127. (this.radio[i] !== 0 && !this.radio[i])
  18128. ) {
  18129. this.$message.error(this.lang.ssPleaseSelectOption);
  18130. return;
  18131. }
  18132. }
  18133. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18134. let params = [
  18135. {
  18136. uid: this.sStudent.userid,
  18137. cid: this.id,
  18138. stage: this.courseType,
  18139. task: this.taskCount,
  18140. tool: this.toolindex,
  18141. content: JSON.stringify(this.askList),
  18142. type: 8,
  18143. },
  18144. ];
  18145. this.ajax
  18146. .post(this.$store.state.api + "addCourseWorks", params)
  18147. .then((res) => {
  18148. this.$message({
  18149. message: this.lang.ssSubmitSuccess,
  18150. type: "success",
  18151. });
  18152. this.askList = [];
  18153. this.dialogVisibleChoiceTeacher = false;
  18154. this.selectStudent();
  18155. this.selectSWorks();
  18156. this.selectSLook();
  18157. })
  18158. .catch((err) => {
  18159. this.$message.error(this.lang.ssSubmitFailed);
  18160. console.error(err);
  18161. });
  18162. },
  18163. addWork() {
  18164. if (this.studyJuri[0].content == "") {
  18165. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18166. return;
  18167. } else if (this.studyJuri[0].cover.length == 0) {
  18168. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18169. return;
  18170. } else if (this.studyJuri[0].upVedio.length == 0) {
  18171. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18172. return;
  18173. }
  18174. if (this.isNoHomeWork) {
  18175. this.$confirm(
  18176. this.lang.ssAlreadySubmittedHomework,
  18177. this.lang.ssPrompt,
  18178. {
  18179. confirmButtonText: this.lang.ssConfirm,
  18180. cancelButtonText: this.lang.ssCancel,
  18181. type: "warning",
  18182. }
  18183. )
  18184. .then(() => {
  18185. let params = [
  18186. {
  18187. uid: this.userid,
  18188. cid: this.id,
  18189. stage: this.courseType,
  18190. task: this.taskCount,
  18191. content: JSON.stringify(this.studyJuri),
  18192. },
  18193. ];
  18194. this.ajax
  18195. .post(this.$store.state.api + "addWorks", params)
  18196. .then((res) => {
  18197. this.$message({
  18198. message: this.lang.ssSubmitSuccess,
  18199. type: "success",
  18200. });
  18201. this.isNoHomeWork = true;
  18202. this.dialogVisible = false;
  18203. })
  18204. .catch((err) => {
  18205. this.$message.error(this.lang.ssSubmitFailed);
  18206. console.error(err);
  18207. });
  18208. })
  18209. .catch(() => {});
  18210. } else {
  18211. let params = [
  18212. {
  18213. uid: this.userid,
  18214. cid: this.id,
  18215. stage: this.courseType,
  18216. task: this.taskCount,
  18217. content: JSON.stringify(this.studyJuri),
  18218. },
  18219. ];
  18220. this.ajax
  18221. .post(this.$store.state.api + "addWorks", params)
  18222. .then((res) => {
  18223. this.$message({
  18224. message: this.lang.ssSubmitSuccess,
  18225. type: "success",
  18226. });
  18227. this.isNoHomeWork = true;
  18228. this.dialogVisible = false;
  18229. })
  18230. .catch((err) => {
  18231. this.$message.error(this.lang.ssSubmitFailed);
  18232. console.error(err);
  18233. });
  18234. }
  18235. },
  18236. selectCount() {
  18237. let params = {
  18238. cid: this.id,
  18239. chid: this.courseType,
  18240. uid: this.userid,
  18241. };
  18242. this.ajax
  18243. .get(this.$store.state.api + "selectToolsCount", params)
  18244. .then((res) => {
  18245. for (var i = 0; i < res.data[0].length; i++) {
  18246. if (res.data[0][i].tools == 1) {
  18247. this.wbCount = res.data[0][i].count;
  18248. } else if (res.data[0][i].tools == 2) {
  18249. this.wordCount = res.data[0][i].count;
  18250. } else if (res.data[0][i].tools == 3) {
  18251. this.mindCount = res.data[0][i].count;
  18252. } else if (res.data[0][i].tools == 4) {
  18253. this.askCount = res.data[0][i].count;
  18254. } else if (res.data[0][i].tools == 6) {
  18255. this.noteCount = res.data[0][i].count;
  18256. } else if (res.data[0][i].tools == 7) {
  18257. this.mindNetWorkCount = res.data[0][i].count;
  18258. } else if (res.data[0][i].tools == 8) {
  18259. this.libraryCount = res.data[0][i].count;
  18260. } else if (res.data[0][i].tools == 16) {
  18261. this.workCount = res.data[0][i].count;
  18262. } else if (res.data[0][i].tools == 10) {
  18263. this.timeCount = res.data[0][i].count;
  18264. } else if (res.data[0][i].tools == 15) {
  18265. this.answerCount = res.data[0][i].count;
  18266. } else if (res.data[0][i].tools == 18) {
  18267. this.trainCount = res.data[0][i].count;
  18268. }
  18269. }
  18270. })
  18271. .catch((err) => {
  18272. console.error(err);
  18273. });
  18274. },
  18275. openTools(t, i, index, c, sName,id) {
  18276. var z = JSON.parse(c);
  18277. this.noteName = sName;
  18278. if (t == 4) {
  18279. this.radio = [];
  18280. this.isAnswer = false;
  18281. let b = z[0].anwer;
  18282. this.radio = b;
  18283. this.askJson = z[0].askJson;
  18284. this.isAnswer = true;
  18285. this.dialogVisible5 = true;
  18286. } else if (t == 45) {
  18287. this.radio = [];
  18288. this.isAnswer = false;
  18289. let b = z[0].anwer;
  18290. this.radio = b;
  18291. this.testJson = z[0].testJson;
  18292. this.isAnswer = true;
  18293. this.dialogVisibleChoice = true;
  18294. }else if(t == 69){
  18295. this.oldEnglishJson1 = {}
  18296. this.oldEnglishJson = {}
  18297. this.englishList1 = {}
  18298. this.newEngIndex = -1;
  18299. this.isNoUserid = false;
  18300. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18301. .toolChoose[i].englishList;
  18302. this.oldEnglishJson = z;
  18303. this.engWid = id;
  18304. this.newEnglishList = { engTitle:"",engText:"" }
  18305. this.newEnglishList1 = []
  18306. this.selectEngC(id,z);
  18307. }else if(t == 62){
  18308. this.videoType = 1;
  18309. this.videoJson = {};
  18310. this.videoJson = JSON.parse(c);
  18311. // this.videoJson =
  18312. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18313. // index
  18314. // ].toolChoose[i].videoJson;
  18315. this.dialogVisibleVideo = true;
  18316. //this.dialog
  18317. }
  18318. // else if (t == 15) {
  18319. // this.answerQ = "";
  18320. // this.questionAnswer = "";
  18321. // this.answerQ = z[0].answerTitle;
  18322. // this.questionAnswer = z[0].answer;
  18323. // this.answerDialogVisible = true;
  18324. // }
  18325. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18326. },
  18327. fastText(p, t) {
  18328. if (t == 1) {
  18329. this.commentText += p;
  18330. } else {
  18331. this.eScore.eBzText += p;
  18332. }
  18333. },
  18334. addTools(t, i, index) {
  18335. var a = 0;
  18336. // this.taskCount = index;
  18337. this.toolindex = i;
  18338. if (t == 1) {
  18339. if (this.wbCount > 0) {
  18340. this.updateCount(this.wbCount, t);
  18341. } else {
  18342. this.wbCount++;
  18343. a = this.wbCount;
  18344. this.toolsCount(a, t);
  18345. }
  18346. window.topU.postMessage(
  18347. {
  18348. tools: "1",
  18349. cid: this.id,
  18350. stage: this.courseType,
  18351. task: this.taskCount,
  18352. tool: i,
  18353. },
  18354. "*"
  18355. );
  18356. } else if (t == 2) {
  18357. if (this.wordCount > 0) {
  18358. this.updateCount(this.wordCount, t);
  18359. } else {
  18360. this.wordCount++;
  18361. a = this.wordCount;
  18362. this.toolsCount(a, t);
  18363. }
  18364. window.topU.postMessage({ tools: "2" }, "*");
  18365. } else if (t == 3) {
  18366. if (this.mindCount > 0) {
  18367. this.updateCount(this.mindCount, t);
  18368. } else {
  18369. this.mindCount++;
  18370. a = this.mindCount;
  18371. this.toolsCount(a, t);
  18372. }
  18373. window.topU.postMessage(
  18374. {
  18375. tools: "3",
  18376. cid: this.id,
  18377. stage: this.courseType,
  18378. task: this.taskCount,
  18379. tool: i,
  18380. },
  18381. "*"
  18382. );
  18383. } else if (t == 4) {
  18384. this.radio = [];
  18385. this.noteName = "";
  18386. this.isAnswer = false;
  18387. if (this.askCount > 0) {
  18388. this.updateCount(this.askCount, t);
  18389. } else {
  18390. this.askCount++;
  18391. a = this.askCount;
  18392. this.toolsCount(a, t);
  18393. }
  18394. if (!this.dialogVisible2) {
  18395. this.askJson.askJson =
  18396. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18397. index
  18398. ].toolChoose[i].askJson;
  18399. this.askJson.askTitle =
  18400. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18401. index
  18402. ].toolChoose[i].askTitle;
  18403. this.askJson.askCount =
  18404. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18405. index
  18406. ].toolChoose[i].askCount;
  18407. } else {
  18408. this.askJson.askJson = this.chapTools.askJson.askJson;
  18409. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18410. this.askJson.askCount = this.chapTools.askJson.askCount;
  18411. }
  18412. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18413. if (this.askJson.askJson[k].type == "2") {
  18414. this.radio.push([]);
  18415. } else {
  18416. this.radio.push("");
  18417. }
  18418. }
  18419. this.dialogVisible5 = true;
  18420. // window.topU.postMessage({ tools: "4" }, "*");
  18421. } else if (t == 45) {
  18422. this.noteName = "";
  18423. this.radio = [];
  18424. this.isAnswer = false;
  18425. if (this.askCount > 0) {
  18426. this.updateCount(this.askCount, t);
  18427. } else {
  18428. this.askCount++;
  18429. a = this.askCount;
  18430. this.toolsCount(a, t);
  18431. }
  18432. this.testJson =
  18433. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18434. index
  18435. ].toolChoose[i].testJson;
  18436. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18437. if (this.testJson.testJson[k].type == "2") {
  18438. this.radio.push([]);
  18439. } else {
  18440. this.radio.push("");
  18441. }
  18442. }
  18443. this.dialogVisibleChoice = true;
  18444. // window.topU.postMessage({ tools: "4" }, "*");
  18445. } else if (t == 5) {
  18446. if (this.scoreCount > 0) {
  18447. this.updateCount(this.scoreCount, t);
  18448. } else {
  18449. this.scoreCount++;
  18450. a = this.scoreCount;
  18451. this.toolsCount(a, t);
  18452. }
  18453. this.dialogVisible4 = true;
  18454. // window.topU.postMessage({ tools: "5" }, "*");
  18455. } else if (t == 6) {
  18456. if (this.noteCount > 0) {
  18457. this.updateCount(this.noteCount, t);
  18458. } else {
  18459. this.noteCount++;
  18460. a = this.noteCount;
  18461. this.toolsCount(a, t);
  18462. }
  18463. window.topU.postMessage(
  18464. {
  18465. tools: "6",
  18466. cid: this.id,
  18467. stage: this.courseType,
  18468. task: this.taskCount,
  18469. tool: i,
  18470. },
  18471. "*"
  18472. );
  18473. } else if (t == 7) {
  18474. if (this.mindNetWorkCount > 0) {
  18475. this.updateCount(this.mindNetWorkCount, t);
  18476. } else {
  18477. this.mindNetWorkCount++;
  18478. a = this.mindNetWorkCount;
  18479. this.toolsCount(a, t);
  18480. }
  18481. window.topU.postMessage(
  18482. {
  18483. tools: "7",
  18484. cid: this.id,
  18485. stage: this.courseType,
  18486. task: this.taskCount,
  18487. tool: i,
  18488. },
  18489. "*"
  18490. );
  18491. } else if (t == 16) {
  18492. if (this.workCount > 0) {
  18493. this.updateCount(this.workCount, t);
  18494. } else {
  18495. this.workCount++;
  18496. a = this.workCount;
  18497. this.toolsCount(a, t);
  18498. }
  18499. this.dialogVisible = true;
  18500. } else if (t == 50) {
  18501. if (this.tType == 2) {
  18502. this.$message.error(this.lang.ssNotSupportedForStudents);
  18503. return;
  18504. }
  18505. this.plworkFile = [];
  18506. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18507. if (!this.uploadCid) {
  18508. this.$message.error(
  18509. this.lang.ssBatchUploadNoClassPermission
  18510. );
  18511. return;
  18512. }
  18513. // this.uploadCid =
  18514. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18515. // index
  18516. // ].toolChoose[i].uploadJson[0];
  18517. this.selectUploadStudent(2);
  18518. } else if (t == 8) {
  18519. if (this.libraryCount > 0) {
  18520. this.updateCount(this.libraryCount, t);
  18521. } else {
  18522. this.libraryCount++;
  18523. a = this.libraryCount;
  18524. this.toolsCount(a, t);
  18525. }
  18526. window.topU.postMessage({ tools: "8" }, "*");
  18527. } else if (t == 17) {
  18528. if (this.libraryCount > 0) {
  18529. this.updateCount(this.libraryCount, t);
  18530. } else {
  18531. this.libraryCount++;
  18532. a = this.libraryCount;
  18533. this.toolsCount(a, t);
  18534. }
  18535. window.topU.postMessage({ tools: "17" }, "*");
  18536. } else if (t == 18) {
  18537. if (this.trainCount > 0) {
  18538. this.updateCount(this.trainCount, t);
  18539. } else {
  18540. this.trainCount++;
  18541. a = this.trainCount;
  18542. this.toolsCount(a, t);
  18543. }
  18544. window.topU.postMessage({ tools: "18" }, "*");
  18545. } else if (t == 10) {
  18546. if (this.timeCount > 0) {
  18547. this.updateCount(this.timeCount, t);
  18548. } else {
  18549. this.timeCount++;
  18550. a = this.timeCount;
  18551. this.toolsCount(a, t);
  18552. }
  18553. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18554. .taskJson[index].toolChoose[i].preTime
  18555. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18556. .toolChoose[i].preTime
  18557. : "";
  18558. this.timeDialogVisible = true;
  18559. } else if (t == 15) {
  18560. this.answerQ = "";
  18561. this.questionAnswer = "";
  18562. if (this.answerCount > 0) {
  18563. this.updateCount(this.answerCount, t);
  18564. } else {
  18565. this.answerCount++;
  18566. a = this.answerCount;
  18567. this.toolsCount(a, t);
  18568. }
  18569. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18570. .taskJson[index].toolChoose[i].answerQ
  18571. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18572. .toolChoose[i].answerQ
  18573. : "";
  18574. this.answerDialogVisible = true;
  18575. } else if (t == 21) {
  18576. window.topU.postMessage({ tools: "21" }, "*");
  18577. } else if (t == 22) {
  18578. window.topU.postMessage({ tools: "22" }, "*");
  18579. } else if (t == 23) {
  18580. window.topU.postMessage({ tools: "23" }, "*");
  18581. } else if (t == 24) {
  18582. window.topU.postMessage({ tools: "24" }, "*");
  18583. } else if (t == 25) {
  18584. window.topU.postMessage({ tools: "25" }, "*");
  18585. } else if (t == 31) {
  18586. window.topU.postMessage({ tools: "31" }, "*");
  18587. } else if (t == 28) {
  18588. window.topU.postMessage({ tools: "28" }, "*");
  18589. } else if (t == 37) {
  18590. window.topU.postMessage({ tools: "37" }, "*");
  18591. } else if (t == 38) {
  18592. window.topU.postMessage({ tools: "38" }, "*");
  18593. } else if (t == 39) {
  18594. window.topU.postMessage({ tools: "39" }, "*");
  18595. } else if (t == 32) {
  18596. window.topU.postMessage({ tools: "32" }, "*");
  18597. } else if (t == 66) {
  18598. window.topU.postMessage({ tools: "66" }, "*");
  18599. } else if (t == 67) {
  18600. window.topU.postMessage({ tools: "67" }, "*");
  18601. } else if (t == 68) {
  18602. window.topU.postMessage({ tools: "68" }, "*");
  18603. } else if (t == 57) {
  18604. // window.topU.postMessage({ tools: "57" }, "*");
  18605. window.topU.postMessage(
  18606. {
  18607. tools: "57u",
  18608. cid: this.id,
  18609. stage: this.courseType,
  18610. task: this.taskCount,
  18611. tool: i,
  18612. },
  18613. "*"
  18614. );
  18615. } else if (t == 58) {
  18616. window.topU.postMessage({ tools: "58" }, "*");
  18617. } else if (t == 59) {
  18618. window.topU.postMessage({ tools: "59" }, "*");
  18619. } else if (t == 60) {
  18620. window.topU.postMessage({ tools: "60" }, "*");
  18621. } else if (t == 61) {
  18622. window.topU.postMessage({ tools: "61" }, "*");
  18623. } else if (t == 63) {
  18624. window.topU.postMessage({ tools: "63" }, "*");
  18625. } else if (t == 71) {
  18626. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  18627. // this.$message.error("该工具不可使用");
  18628. // return
  18629. // }
  18630. window.topU.postMessage({ tools: "71" }, "*");
  18631. } else if (t == 72) {
  18632. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  18633. .taskJson[index].toolChoose[i].appJson
  18634. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18635. .toolChoose[i].appJson
  18636. : "";
  18637. if(!item || !item.url){
  18638. this.$message.error(this.lang.ssAppConnectionEmpty);
  18639. return;
  18640. }
  18641. if (!document.fullscreenElement) {
  18642. this.enterFullScreen();
  18643. }
  18644. this.$refs.appStoreC.getData(item.url,this.userid)
  18645. // window.open(item.url, "_blank");
  18646. // window.topU.postMessage({ tools: "72", data: item }, "*");
  18647. } else if (t == 69) {
  18648. if (this.worksStudent[i].length) {
  18649. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18650. if (this.userid == this.worksStudent[i][k].userid) {
  18651. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18652. break;
  18653. } else {
  18654. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18655. }
  18656. }
  18657. } else {
  18658. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18659. }
  18660. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18661. .taskJson[index].toolChoose[i].englishList
  18662. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18663. .toolChoose[i].englishList
  18664. : {};
  18665. this.englishToolIndex = i;
  18666. this.myAnList = this.myAnswerList1;
  18667. this.engDialogVisible = true;
  18668. } else if (t == 70) {
  18669. if (this.worksStudent[i].length) {
  18670. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18671. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18672. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18673. break;
  18674. } else {
  18675. this.englishVoiceJsonWork = [];
  18676. }
  18677. }
  18678. } else {
  18679. this.englishVoiceJsonWork = [];
  18680. }
  18681. let englishVoiceJson = {}
  18682. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18683. .taskJson[index].toolChoose[i].englishVoiceJson
  18684. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18685. .toolChoose[i].englishVoiceJson
  18686. : {};
  18687. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18688. this.EnglishVoiceDialog = true;
  18689. } else if (t == 65) {
  18690. if (this.tType == 2) {
  18691. this.$message.error(this.lang.ssNotSupportedForStudents);
  18692. return;
  18693. }
  18694. this.uploadCid = this.tcid;
  18695. if (!this.uploadCid) {
  18696. this.$message.error(
  18697. this.lang.ssNoClassPermission
  18698. );
  18699. return;
  18700. }
  18701. this.selectPickStudent();
  18702. } else if (t == 26) {
  18703. window.topU.postMessage(
  18704. {
  18705. tools: "26",
  18706. cid: this.id,
  18707. stage: this.courseType,
  18708. task: this.taskCount,
  18709. tool: i,
  18710. },
  18711. "*"
  18712. );
  18713. } else if (t == 40) {
  18714. if (this.evalCount > 0) {
  18715. this.updateCount(this.evalCount, t);
  18716. } else {
  18717. this.evalCount++;
  18718. a = this.evalCount;
  18719. this.toolsCount(a, t);
  18720. }
  18721. this.eScore = { eBzText: "", eStar: [] };
  18722. if (this.worksStudent[i].length) {
  18723. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18724. if (this.userid == this.worksStudent[i][k].userid) {
  18725. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18726. this.rateJson =
  18727. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18728. index
  18729. ].toolChoose[i].rateJson;
  18730. break;
  18731. } else {
  18732. this.rateJson =
  18733. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18734. index
  18735. ].toolChoose[i].rateJson;
  18736. }
  18737. }
  18738. } else {
  18739. this.rateJson =
  18740. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18741. index
  18742. ].toolChoose[i].rateJson;
  18743. }
  18744. this.isStar = false;
  18745. this.studentEvalDialogVisible = true;
  18746. } else if (t == 41) {
  18747. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18748. .taskJson[index].toolChoose[i].selectJson
  18749. ? JSON.parse(
  18750. JSON.stringify(
  18751. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18752. index
  18753. ].toolChoose[i].selectJson
  18754. )
  18755. )
  18756. : { url: "", select: [], answer: [] };
  18757. if (this.worksStudent[i].length) {
  18758. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18759. if (this.userid == this.worksStudent[i][k].userid) {
  18760. var a = this.worksStudent[i][k].works.split(",");
  18761. for (var ki = 0; ki < a.length; ki++) {
  18762. a[ki] = parseInt(a[ki]);
  18763. }
  18764. this.selectAnswer = {
  18765. answer: a,
  18766. stu: this.worksStudent[i][k].sName,
  18767. };
  18768. break;
  18769. } else {
  18770. this.selectAnswer = { answer: [], stu: "" };
  18771. }
  18772. }
  18773. } else {
  18774. this.selectAnswer = { answer: [], stu: "" };
  18775. }
  18776. this.isSelect = false;
  18777. this.dialogVisibleSelect = true;
  18778. } else if (t == 44) {
  18779. window.topU.postMessage({ tools: "44" }, "*");
  18780. } else if (t == 47) {
  18781. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18782. .taskJson[index].toolChoose[i].sentenceList
  18783. ? JSON.parse(
  18784. JSON.stringify(
  18785. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18786. index
  18787. ].toolChoose[i].sentenceList
  18788. )
  18789. )
  18790. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18791. for (var q = 0; q < this.sentenceList.length; q++) {
  18792. this.sentenceList[q].chooseSenList = [];
  18793. this.sentenceList[q].addChangeSen = [];
  18794. this.sentenceList[q].addChangeSen = JSON.parse(
  18795. JSON.stringify(this.sentenceList[q].addSentence)
  18796. );
  18797. this.sentenceList[q].chooseSenList.length =
  18798. this.sentenceList[q].rightAnswer.length;
  18799. }
  18800. this.dialogVisibleSentence = true;
  18801. } else if (t == 48) {
  18802. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18803. .taskJson[index].toolChoose[i].tableJson
  18804. ? JSON.parse(
  18805. JSON.stringify(
  18806. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18807. index
  18808. ].toolChoose[i].tableJson
  18809. )
  18810. )
  18811. : { text: "" };
  18812. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18813. if (this.worksStudent[i].length) {
  18814. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18815. if (this.userid == this.worksStudent[i][k].userid) {
  18816. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18817. break;
  18818. }
  18819. }
  18820. }
  18821. this.dialogVisibleTable = true;
  18822. } else if (t == 52) {
  18823. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18824. .taskJson[index].toolChoose[i].wordJson
  18825. ? JSON.parse(
  18826. JSON.stringify(
  18827. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18828. index
  18829. ].toolChoose[i].wordJson
  18830. )
  18831. )
  18832. : { text: "" };
  18833. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18834. if (this.worksStudent[i].length) {
  18835. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18836. if (this.userid == this.worksStudent[i][k].userid) {
  18837. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18838. break;
  18839. }
  18840. }
  18841. }
  18842. this.dialogVisibleWord = true;
  18843. } else if (t == 49) {
  18844. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18845. return
  18846. }
  18847. this.groupJson =
  18848. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18849. index
  18850. ].toolChoose[i].groupJson;
  18851. this.islock = this.groupJson.islock == 1 ? true : false;
  18852. this.dialogVisibleGroup = true;
  18853. } else if (t == 62) {
  18854. this.videoType = 0;
  18855. this.videoJson = {};
  18856. this.videoJson =
  18857. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18858. index
  18859. ].toolChoose[i].videoJson;
  18860. this.dialogVisibleVideo = true;
  18861. }
  18862. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  18863. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18864. },
  18865. teacherWorkSubmit(t, i, index, s) {
  18866. console.log('t',t);
  18867. if(t == 72) return
  18868. this.sStudent = s;
  18869. this.toolindex = i;
  18870. this.sTool = t;
  18871. if (this.tType !== "1" && this.tType !== "4") {
  18872. return;
  18873. }
  18874. if (t == 16 || t == 32 || t == 50) {
  18875. this.dialogVisibleWorks = true;
  18876. } else if (t == 15) {
  18877. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18878. .taskJson[index].toolChoose[i].answerQ
  18879. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18880. .toolChoose[i].answerQ
  18881. : "";
  18882. this.questionAnswer = "";
  18883. this.answerDialogVisibleTeacher = true; //问答
  18884. } else if (t == 52) {
  18885. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18886. .taskJson[index].toolChoose[i].wordJson
  18887. ? JSON.parse(
  18888. JSON.stringify(
  18889. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18890. index
  18891. ].toolChoose[i].wordJson
  18892. )
  18893. )
  18894. : { text: "" };
  18895. if (this.worksStudent[i].length) {
  18896. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18897. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18898. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18899. break;
  18900. }
  18901. }
  18902. }
  18903. this.dialogVisibleWordTeacher = true; //文档
  18904. } else if (t == 4) {
  18905. this.radio = [];
  18906. this.noteName = "";
  18907. this.isAnswer = false;
  18908. if (this.askCount > 0) {
  18909. this.updateCount(this.askCount, t);
  18910. } else {
  18911. this.askCount++;
  18912. a = this.askCount;
  18913. this.toolsCount(a, t);
  18914. }
  18915. if (!this.dialogVisible2) {
  18916. this.askJson.askJson =
  18917. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18918. index
  18919. ].toolChoose[i].askJson;
  18920. this.askJson.askTitle =
  18921. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18922. index
  18923. ].toolChoose[i].askTitle;
  18924. this.askJson.askCount =
  18925. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18926. index
  18927. ].toolChoose[i].askCount;
  18928. } else {
  18929. this.askJson.askJson = this.chapTools.askJson.askJson;
  18930. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18931. this.askJson.askCount = this.chapTools.askJson.askCount;
  18932. }
  18933. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18934. if (this.askJson.askJson[k].type == "2") {
  18935. this.radio.push([]);
  18936. } else {
  18937. this.radio.push("");
  18938. }
  18939. }
  18940. this.dialogVisible5Teacher = true;
  18941. } else if (t == 45) {
  18942. this.noteName = "";
  18943. this.radio = [];
  18944. this.isAnswer = false;
  18945. if (this.askCount > 0) {
  18946. this.updateCount(this.askCount, t);
  18947. } else {
  18948. this.askCount++;
  18949. a = this.askCount;
  18950. this.toolsCount(a, t);
  18951. }
  18952. this.testJson =
  18953. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18954. index
  18955. ].toolChoose[i].testJson;
  18956. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18957. if (this.testJson.testJson[k].type == "2") {
  18958. this.radio.push([]);
  18959. } else {
  18960. this.radio.push("");
  18961. }
  18962. }
  18963. this.dialogVisibleChoiceTeacher = true;
  18964. } else if (t == 41) {
  18965. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18966. .taskJson[index].toolChoose[i].selectJson
  18967. ? JSON.parse(
  18968. JSON.stringify(
  18969. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18970. index
  18971. ].toolChoose[i].selectJson
  18972. )
  18973. )
  18974. : { url: "", select: [], answer: [] };
  18975. if (this.worksStudent[i].length) {
  18976. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18977. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18978. var a = this.worksStudent[i][k].works.split(",");
  18979. for (var ki = 0; ki < a.length; ki++) {
  18980. a[ki] = parseInt(a[ki]);
  18981. }
  18982. this.selectAnswer = {
  18983. answer: a,
  18984. stu: this.worksStudent[i][k].sName,
  18985. };
  18986. break;
  18987. } else {
  18988. this.selectAnswer = { answer: [], stu: "" };
  18989. }
  18990. }
  18991. } else {
  18992. this.selectAnswer = { answer: [], stu: "" };
  18993. }
  18994. this.isSelect = false;
  18995. this.dialogVisibleSelectTeacher = true;
  18996. } else if (t == 47) {
  18997. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18998. .taskJson[index].toolChoose[i].sentenceList
  18999. ? JSON.parse(
  19000. JSON.stringify(
  19001. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19002. index
  19003. ].toolChoose[i].sentenceList
  19004. )
  19005. )
  19006. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19007. for (var q = 0; q < this.sentenceList.length; q++) {
  19008. this.sentenceList[q].chooseSenList = [];
  19009. this.sentenceList[q].addChangeSen = [];
  19010. this.sentenceList[q].addChangeSen = JSON.parse(
  19011. JSON.stringify(this.sentenceList[q].addSentence)
  19012. );
  19013. this.sentenceList[q].chooseSenList.length =
  19014. this.sentenceList[q].rightAnswer.length;
  19015. }
  19016. this.dialogVisibleSentenceTeacher = true;
  19017. } else if (t == 48) {
  19018. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19019. .taskJson[index].toolChoose[i].tableJson
  19020. ? JSON.parse(
  19021. JSON.stringify(
  19022. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19023. index
  19024. ].toolChoose[i].tableJson
  19025. )
  19026. )
  19027. : { text: "" };
  19028. if (this.worksStudent[i].length) {
  19029. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19030. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19031. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19032. break;
  19033. }
  19034. }
  19035. }
  19036. this.dialogVisibleTableTeacher = true;
  19037. } else if (t == 40) {
  19038. if (this.evalCount > 0) {
  19039. this.updateCount(this.evalCount, t);
  19040. } else {
  19041. this.evalCount++;
  19042. a = this.evalCount;
  19043. this.toolsCount(a, t);
  19044. }
  19045. this.eScore = { eBzText: "", eStar: [] };
  19046. if (this.worksStudent[i].length) {
  19047. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19048. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19049. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19050. this.rateJson =
  19051. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19052. index
  19053. ].toolChoose[i].rateJson;
  19054. break;
  19055. } else {
  19056. this.rateJson =
  19057. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19058. index
  19059. ].toolChoose[i].rateJson;
  19060. }
  19061. }
  19062. } else {
  19063. this.rateJson =
  19064. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19065. index
  19066. ].toolChoose[i].rateJson;
  19067. }
  19068. this.isStar = false;
  19069. this.studentEvalDialogVisibleTeacher = true;
  19070. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19071. window.topU.postMessage(
  19072. {
  19073. tools: t + "teacher",
  19074. cid: this.id,
  19075. stage: this.courseType,
  19076. task: this.taskCount,
  19077. tool: i,
  19078. student: this.sStudent,
  19079. },
  19080. "*"
  19081. );
  19082. }else if (t == 72) {
  19083. if (!document.fullscreenElement) {
  19084. this.enterFullScreen();
  19085. }
  19086. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19087. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19088. }
  19089. },
  19090. openCocoPi(tool, i, uid, uname) {
  19091. let student = {
  19092. userid: uid,
  19093. student: uname,
  19094. };
  19095. if (tool == 57) {
  19096. window.topU.postMessage(
  19097. {
  19098. tools: tool + "teacher",
  19099. cid: this.id,
  19100. stage: this.courseType,
  19101. task: this.taskCount,
  19102. tool: i,
  19103. student: student,
  19104. },
  19105. "*"
  19106. );
  19107. }
  19108. },
  19109. setRightAnswer(s, i, j) {
  19110. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19111. if (
  19112. this.sentenceList[i].chooseSenList[q] == undefined ||
  19113. this.sentenceList[i].chooseSenList[q] == ""
  19114. ) {
  19115. this.sentenceList[i].chooseSenList[q] = s;
  19116. this.sentenceList[i].addChangeSen[j] = "";
  19117. break;
  19118. }
  19119. }
  19120. this.$forceUpdate();
  19121. },
  19122. returnCard(r, i, j) {
  19123. var a = this.sentenceList[i].addSentence.indexOf(r);
  19124. this.sentenceList[i].chooseSenList[j] = "";
  19125. this.sentenceList[i].addChangeSen[a] = r;
  19126. this.$forceUpdate();
  19127. },
  19128. // addSentenceTool() {
  19129. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19130. // this.taskCount
  19131. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19132. // this.sentenceList = [
  19133. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19134. // ];
  19135. // this.dialogVisibleSentence = false;
  19136. // },
  19137. toolsCount(a, t) {
  19138. let params = {
  19139. cid: this.id,
  19140. chid: this.courseType,
  19141. uid: this.userid,
  19142. tid: t,
  19143. count: a,
  19144. };
  19145. this.ajax
  19146. .get(this.$store.state.api + "insertToolsCount", params)
  19147. .then((res) => {
  19148. this.selectCount();
  19149. })
  19150. .catch((err) => {
  19151. console.error(err);
  19152. });
  19153. },
  19154. updateCount(c, t) {
  19155. c++;
  19156. let params = {
  19157. cid: this.id,
  19158. chid: this.courseType,
  19159. uid: this.userid,
  19160. tid: t,
  19161. count: c,
  19162. };
  19163. this.ajax
  19164. .get(this.$store.state.api + "updateToolsCount", params)
  19165. .then((res) => {
  19166. this.selectCount();
  19167. })
  19168. .catch((err) => {
  19169. console.error(err);
  19170. });
  19171. },
  19172. checkEva() {
  19173. if (this.evalua != "") {
  19174. for (var i = 0; i < this.evaJuri.length; i++) {
  19175. if (this.evalua == this.evaJuri[i].id) {
  19176. this.eTitle = this.evaJuri[i].title;
  19177. this.eJson = JSON.parse(this.evaJuri[i].content);
  19178. }
  19179. }
  19180. this.$forceUpdate();
  19181. setTimeout(() => {
  19182. this.setMindData();
  19183. }, 0);
  19184. }
  19185. },
  19186. selectEva() {
  19187. let params = {
  19188. oid: this.oid,
  19189. };
  19190. this.ajax
  19191. .get(this.$store.state.api + "selectAllEvaluation", params)
  19192. .then((res) => {
  19193. this.evaJuri = res.data[0];
  19194. })
  19195. .catch((err) => {
  19196. console.error(err);
  19197. });
  19198. },
  19199. setMindData() {
  19200. this.data.data = [];
  19201. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19202. let _eJson = Object.keys(this.eJson);
  19203. let _e = this.eJson;
  19204. for (let i = 0; i < _eJson.length; i++) {
  19205. let element = _e[_eJson[i]];
  19206. this.data.data.push({
  19207. id: element.id,
  19208. parentid: "root",
  19209. topic: element.name,
  19210. });
  19211. let _eJsonc = Object.keys(element.child);
  19212. let _e2 = element.child;
  19213. for (let j = 0; j < _eJsonc.length; j++) {
  19214. let _ec = _e2[_eJsonc[j]];
  19215. this.data.data.push({
  19216. id: _ec.id,
  19217. parentid: element.id,
  19218. topic: _ec.name,
  19219. });
  19220. let _eJsonz = Object.keys(_ec.child);
  19221. let _e3 = _ec.child;
  19222. for (let z = 0; z < _eJsonz.length; z++) {
  19223. let _ez = _e3[_eJsonz[z]];
  19224. this.data.data.push({
  19225. id: _ez.id,
  19226. parentid: _ec.id,
  19227. topic: _ez.name,
  19228. });
  19229. }
  19230. }
  19231. }
  19232. this.$forceUpdate();
  19233. },
  19234. checkFileFull(type, url) {
  19235. this.fullDialogVisible = true;
  19236. this.fulltype = type;
  19237. this.fullUrl = url;
  19238. },
  19239. async checkFileFull1(t, f) {
  19240. this.fullDialogVisible = true;
  19241. if (t == 6) {
  19242. this.fulltype = 1;
  19243. this.fullUrl = JSON.parse(JSON.stringify(f));
  19244. } else if (t == 8 ) {
  19245. this.fulltype = 2;
  19246. this.fullUrl = f.url;
  19247. }else if (t == 15) {
  19248. this.diffKey = new Date().getTime();
  19249. this.fulltype = 4;
  19250. this.fullUrl = f.url;
  19251. } else if (t == 16) {
  19252. this.fulltype = 16;
  19253. this.fullUrl = f.url;
  19254. } else if (
  19255. t == 3 &&
  19256. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19257. "PDF"
  19258. ) {
  19259. this.fulltype = 3;
  19260. this.fullUrl = f.url;
  19261. } else if (t == 3) {
  19262. this.fulltype = 2;
  19263. let _uuurl = await this.checkLink(f.url);
  19264. this.fullUrl =
  19265. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19266. }
  19267. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19268. },
  19269. openSname(n, id, i, uid) {
  19270. this.snameWid = id;
  19271. this.worksSName = n;
  19272. this.worksSid = uid == n ? "" : uid;
  19273. this.toolindex = i;
  19274. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19275. if (!this.uploadCid) {
  19276. this.$message.error(
  19277. this.lang.ssBatchUploadNoClassPermission
  19278. );
  19279. return;
  19280. }
  19281. this.selectUploadStudent(1);
  19282. },
  19283. updateName() {
  19284. let params = {
  19285. n: this.worksSName,
  19286. cid: this.snameWid,
  19287. };
  19288. this.ajax
  19289. .get(this.$store.state.api + "updateCourseWorksName", params)
  19290. .then((res) => {
  19291. this.$message({
  19292. message: "修改成功",
  19293. type: "success",
  19294. });
  19295. this.dialogVisibleSname = false;
  19296. this.getCourseDetail(2);
  19297. this.snameWid = "";
  19298. this.worksSName = "";
  19299. })
  19300. .catch((err) => {
  19301. console.error(err);
  19302. });
  19303. },
  19304. downloadimg(img,val){
  19305. console.log('img',img)
  19306. fetch(img)
  19307. .then((response) => {
  19308. if (!response.ok) throw new Error('download failed')
  19309. return response.blob()
  19310. })
  19311. .then((blob) => {
  19312. const blobUrl = URL.createObjectURL(blob)
  19313. const a = document.createElement('a')
  19314. a.href = blobUrl
  19315. a.download = val + '.jpg'
  19316. document.body.appendChild(a)
  19317. a.click()
  19318. document.body.removeChild(a)
  19319. URL.revokeObjectURL(blobUrl)
  19320. })
  19321. .catch(() => {
  19322. fallbackDownload()
  19323. })
  19324. },
  19325. downloadFile2(f) {
  19326. // const loading = this.$loading.service({
  19327. // background: "rgba(255, 255, 255, 0.7)",
  19328. // target: document.body,
  19329. // text: "文件加载中...",
  19330. // });
  19331. // let url2 = f.url;
  19332. // let _url2 = "";
  19333. // if (
  19334. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19335. // ) {
  19336. // _url2 = url2.split(
  19337. // "https://view.officeapps.live.com/op/view.aspx?src="
  19338. // )[1];
  19339. // } else {
  19340. // _url2 = url2;
  19341. // }
  19342. // let params = {
  19343. // url: _url2,
  19344. // name: f.name,
  19345. // };
  19346. // this.ajax
  19347. // .get(this.$store.state.api + "download", params)
  19348. // .then((res) => {
  19349. // loading.close();
  19350. // let content = res.data.data.data;
  19351. // let ab = new ArrayBuffer(content.length);
  19352. // let view = new Uint8Array(ab);
  19353. // for (var i = 0; i < content.length; ++i) {
  19354. // view[i] = content[i];
  19355. // }
  19356. // let elink = document.createElement("a");
  19357. // elink.download = f.name;
  19358. // elink.style.display = "none";
  19359. // let blob = new Blob([ab], {
  19360. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19361. // });
  19362. // elink.href = URL.createObjectURL(blob);
  19363. // document.body.appendChild(elink);
  19364. // elink.click();
  19365. // document.body.removeChild(elink);
  19366. // })
  19367. // .catch((err) => {
  19368. // loading.close();
  19369. // console.error(err);
  19370. // });
  19371. var credentials = {
  19372. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19373. secretAccessKey: "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",
  19374. }; //秘钥形式的登录上传
  19375. window.AWS.config.update(credentials);
  19376. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19377. let url2 = f.url;
  19378. let _url2 = "";
  19379. if (
  19380. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19381. ) {
  19382. _url2 = url2.split(
  19383. "https://view.officeapps.live.com/op/view.aspx?src="
  19384. )[1];
  19385. } else {
  19386. _url2 = url2;
  19387. }
  19388. let _this = this;
  19389. _this.downLoading = true
  19390. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19391. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19392. var params = {
  19393. Bucket: "ccrb",
  19394. Key: name
  19395. };
  19396. s3.getObject(params, function (err, data) {
  19397. _this.downLoading = false
  19398. if (err) console.log(err, err.stack); // an error occurred
  19399. else {
  19400. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19401. let a = document.createElement("a");
  19402. a.name = f.name;
  19403. a.href = url;
  19404. a.download = f.name;
  19405. a.click();
  19406. console.log(data);
  19407. } // sxuccessful response
  19408. });
  19409. return;
  19410. let url = f.url;
  19411. let _url = "";
  19412. if (
  19413. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19414. ) {
  19415. _url = url.split(
  19416. "https://view.officeapps.live.com/op/view.aspx?src="
  19417. )[1];
  19418. } else {
  19419. _url = url;
  19420. }
  19421. _this.downLoading = true
  19422. let x = new XMLHttpRequest();
  19423. x.open("GET", _url, true);
  19424. x.responseType = "blob";
  19425. x.onload = function () {
  19426. _this.downLoading = false
  19427. let url = window.URL.createObjectURL(new Blob([x.response]));
  19428. let a = document.createElement("a");
  19429. a.name = f.name;
  19430. a.href = url;
  19431. a.download = f.name;
  19432. a.click();
  19433. };
  19434. x.send();
  19435. },
  19436. downloadFile(url,uid) {
  19437. if (this.tType == 1 || this.userid == uid) {
  19438. // this.$message.info("查看作业-下载文件")
  19439. var credentials = {
  19440. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19441. secretAccessKey: "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",
  19442. }; //秘钥形式的登录上传
  19443. window.AWS.config.update(credentials);
  19444. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19445. let url2 = url;
  19446. let _url2 = "";
  19447. if (
  19448. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19449. ) {
  19450. _url2 = url2.split(
  19451. "https://view.officeapps.live.com/op/view.aspx?src="
  19452. )[1];
  19453. } else {
  19454. _url2 = url2;
  19455. }
  19456. const loading2 = this.$loading.service({
  19457. background: "rgba(255, 255, 255, 0.7)",
  19458. target: document.body,
  19459. text: this.lang.ssFileLoading,
  19460. });
  19461. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19462. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19463. var params = {
  19464. Bucket: "ccrb",
  19465. Key: name
  19466. };
  19467. s3.getObject(params, function (err, data) {
  19468. loading2.close();
  19469. if (err) console.log(err, err.stack); // an error occurred
  19470. else {
  19471. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19472. let a = document.createElement("a");
  19473. a.name = name;
  19474. a.href = url;
  19475. a.download = name;
  19476. a.click();
  19477. console.log(data);
  19478. } // sxuccessful response
  19479. });
  19480. }
  19481. return;
  19482. // let _this = this;
  19483. // let _url = "";
  19484. // if (
  19485. // url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19486. // ) {
  19487. // _url = url.split(
  19488. // "https://view.officeapps.live.com/op/view.aspx?src="
  19489. // )[1];
  19490. // } else {
  19491. // _url = url;
  19492. // }
  19493. // const x = new XMLHttpRequest();
  19494. // x.open("GET", _url, true);
  19495. // x.responseType = "blob";
  19496. // // this.downLoading = true
  19497. // const loading = _this.$loading.service({
  19498. // background: "rgba(255, 255, 255, 0.7)",
  19499. // target: document.body,
  19500. // text: "文件加载中...",
  19501. // });
  19502. // // _this.$message.success("文件下载中...");
  19503. // x.onload = function (e) {
  19504. // loading.close();
  19505. // let content = x.response;
  19506. // let elink = document.createElement("a");
  19507. // elink.download = decodeURI(
  19508. // _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19509. // );
  19510. // elink.style.display = "none";
  19511. // let blob = new Blob([content]);
  19512. // elink.href = URL.createObjectURL(blob);
  19513. // document.body.appendChild(elink);
  19514. // elink.click();
  19515. // document.body.removeChild(elink);
  19516. // };
  19517. // x.send();
  19518. },
  19519. openLine(url) {
  19520. window.open(url);
  19521. },
  19522. resize() {
  19523. if (document.getElementsByClassName("box_course").length) {
  19524. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19525. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19526. if (this.showType == 2 || this.showType == 3) {
  19527. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  19528. document.getElementsByClassName("navBox")[0].style.height =
  19529. a - 40 + 0+ "px";
  19530. }
  19531. } else {
  19532. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  19533. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  19534. }
  19535. }
  19536. }
  19537. this.Stbodywidth =
  19538. document.getElementsByClassName("student_body").length &&
  19539. document.getElementsByClassName("student_body")[0].offsetWidth;
  19540. },
  19541. closeDraw() {
  19542. this.bg = null;
  19543. this.drawShow = false;
  19544. },
  19545. showPicturePaint(url) {
  19546. let params = {
  19547. img: url,
  19548. };
  19549. this.ajax
  19550. .get(this.$store.state.api + "imgToBase64", params)
  19551. .then((res) => {
  19552. this.drawShow = true;
  19553. this.bg = res.data[0].img;
  19554. })
  19555. .catch((err) => {
  19556. console.error(err);
  19557. });
  19558. },
  19559. addImgDraw(base64) {
  19560. let file = { name: this.lang.ssAnnotationImage };
  19561. let img = this.dataUrlToFile(base64, file);
  19562. this.beforeUpload1(img, 5);
  19563. },
  19564. addImgDrawImG(url) {
  19565. // console.log(url);
  19566. let params = [
  19567. {
  19568. wid: this.commentDetail.wid,
  19569. img: url,
  19570. },
  19571. ];
  19572. this.ajax
  19573. .post(this.$store.state.api + "updateCourseWorks", params)
  19574. .then((res) => {
  19575. this.$message({
  19576. message: this.lang.ssSubmitSuccess,
  19577. type: "success",
  19578. });
  19579. this.drawShow = false;
  19580. this.bg = "";
  19581. this.selectSWorks();
  19582. this.selectStudent();
  19583. })
  19584. .catch((err) => {
  19585. this.$message.error(this.lang.ssSubmitFailed);
  19586. console.error(err);
  19587. });
  19588. },
  19589. deletePicturePaint() {
  19590. this.$confirm(this.lang.ssConfirmDeleteAnnotation, this.lang.ssPrompt, {
  19591. confirmButtonText: this.lang.ssConfirm,
  19592. cancelButtonText: this.lang.ssCancel,
  19593. type: "warning",
  19594. })
  19595. .then(() => {
  19596. let params = [
  19597. {
  19598. wid: this.commentDetail.wid,
  19599. img: "",
  19600. },
  19601. ];
  19602. this.ajax
  19603. .post(this.$store.state.api + "updateCourseWorks", params)
  19604. .then((res) => {
  19605. this.$message({
  19606. message: this.lang.ssDeleteSuccess,
  19607. type: "success",
  19608. });
  19609. this.selectSWorks();
  19610. this.selectStudent();
  19611. })
  19612. .catch((err) => {
  19613. this.$message.error(this.lang.ssDeleteFailed);
  19614. console.error(err);
  19615. });
  19616. })
  19617. .catch(() => {});
  19618. },
  19619. getAudioVideo(constraintsData) {
  19620. if (navigator.mediaDevices === undefined) {
  19621. navigator.mediaDevices = {};
  19622. }
  19623. if (navigator.mediaDevices.getUserMedia === undefined) {
  19624. navigator.mediaDevices.getUserMedia = function (constraints) {
  19625. // 首先,如果有getUserMedia的话,就获得它
  19626. var getUserMedia =
  19627. navigator.getUserMedia ||
  19628. navigator.webkitGetUserMedia ||
  19629. navigator.mozGetUserMedia ||
  19630. navigator.msGetUserMedia;
  19631. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19632. if (!getUserMedia) {
  19633. return Promise.reject({ code: 404 });
  19634. }
  19635. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19636. return new Promise(function (resolve, reject) {
  19637. getUserMedia.call(navigator, constraints, resolve, reject);
  19638. });
  19639. };
  19640. }
  19641. return navigator.mediaDevices.getUserMedia(constraintsData);
  19642. },
  19643. /**
  19644. * 开始录制
  19645. */
  19646. startRecording(callback) {
  19647. let _function = (screenStream) => {
  19648. this.addStreamStopListener(screenStream, () => {
  19649. console.log("流停止监听");
  19650. this.stopRecording();
  19651. this.$emit("streamStop", {});
  19652. // this.stopRecording();
  19653. });
  19654. var options = {
  19655. type: "video",
  19656. mimeType: "video/webm",
  19657. disableLogs: false,
  19658. getNativeBlob: false, // enable it for longer recordings
  19659. ignoreMutedMedia: false,
  19660. };
  19661. // this.video.srcObject = screenStream;
  19662. this.recorder = RecordRTC(screenStream, options);
  19663. this.recorder.startRecording();
  19664. this.recorder.screen = screenStream;
  19665. this.videoStart = true;
  19666. // callback(true);
  19667. };
  19668. this.getAudioVideo({ audio: true })
  19669. .then((res) => {
  19670. this.captureScreen(_function, true);
  19671. console.log("已点击允许,开启成功");
  19672. })
  19673. .catch((err) => {
  19674. // console.log('浏览器不支持,请更换浏览器')
  19675. // } else {
  19676. this.captureScreen(_function, false);
  19677. console.log("请检查是否存在麦克风");
  19678. });
  19679. },
  19680. /**
  19681. * 停止录制
  19682. */
  19683. stopRecording(callback) {
  19684. this.recorder.stopRecording(() => {
  19685. // this.video.src = this.video.srcObject = null;
  19686. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19687. const url = URL.createObjectURL(this.recorder.getBlob());
  19688. const a = document.createElement("a"); //this.fileName+
  19689. let videoFile = new File(
  19690. [this.recorder.getBlob()],
  19691. this.courseDetail.title + this.lang.ssScreenRecording + ".mp4",
  19692. {
  19693. type: "video/mp4",
  19694. }
  19695. );
  19696. let downloadUrl = URL.createObjectURL(videoFile);
  19697. if(this.$refs.classRoomHelperRef){
  19698. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19699. }
  19700. document.body.appendChild(a);
  19701. a.style.display = "none";
  19702. a.href = url;
  19703. a.download = this.courseDetail.title + this.lang.ssScreenRecording + ".mp4"; //this.fileName +
  19704. a.click();
  19705. this.recorder.screen.stop();
  19706. this.recorder.destroy();
  19707. this.recorder = null;
  19708. this.videoStart = false;
  19709. // callback(false);
  19710. });
  19711. },
  19712. //初始化
  19713. captureScreen(callback, type) {
  19714. if (navigator.getDisplayMedia) {
  19715. //录制结束,文件下载
  19716. navigator
  19717. .getDisplayMedia({
  19718. video: true,
  19719. })
  19720. .then((screenStream) => {
  19721. if (type) {
  19722. navigator.mediaDevices
  19723. .getUserMedia({ audio: true })
  19724. .then((mic) => {
  19725. screenStream.addTrack(mic.getTracks()[0]);
  19726. callback(screenStream);
  19727. });
  19728. } else {
  19729. callback(screenStream);
  19730. }
  19731. })
  19732. .catch(function (error) {
  19733. console.log("error", error);
  19734. });
  19735. } else if (navigator.mediaDevices.getDisplayMedia) {
  19736. navigator.mediaDevices
  19737. .getDisplayMedia({
  19738. video: true,
  19739. })
  19740. .then((screenStream) => {
  19741. if (type) {
  19742. navigator.mediaDevices
  19743. .getUserMedia({ audio: true })
  19744. .then((mic) => {
  19745. screenStream.addTrack(mic.getTracks()[0]);
  19746. callback(screenStream);
  19747. });
  19748. } else {
  19749. callback(screenStream);
  19750. }
  19751. })
  19752. .catch(function (error) {
  19753. console.log("error", error);
  19754. });
  19755. } else {
  19756. var error = "getDisplayMedia API are not supported in this browser.";
  19757. console.log("error", error);
  19758. alert(error);
  19759. }
  19760. },
  19761. //流监听
  19762. addStreamStopListener(stream, callback) {
  19763. stream.addEventListener(
  19764. "ended",
  19765. function () {
  19766. callback();
  19767. callback = function () {};
  19768. },
  19769. false
  19770. );
  19771. stream.addEventListener(
  19772. "inactive",
  19773. function () {
  19774. callback();
  19775. callback = function () {};
  19776. },
  19777. false
  19778. );
  19779. stream.getTracks().forEach(function (track) {
  19780. track.addEventListener(
  19781. "ended",
  19782. function () {
  19783. callback();
  19784. callback = function () {};
  19785. },
  19786. false
  19787. );
  19788. track.addEventListener(
  19789. "inactive",
  19790. function () {
  19791. callback();
  19792. callback = function () {};
  19793. },
  19794. false
  19795. );
  19796. });
  19797. },
  19798. updateGroup() {
  19799. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19800. this.dialogVisibleGroup2 = true;
  19801. },
  19802. numberPan() {
  19803. if (
  19804. /[^\d]/.test(this.groupJson.number) ||
  19805. this.groupJson.number < 2 ||
  19806. this.groupJson.number > 10
  19807. ) {
  19808. this.$message.error(this.lang.ssEnterNumber2To10);
  19809. this.groupJson.number = "";
  19810. }
  19811. },
  19812. updateGroupJson() {
  19813. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19814. if (
  19815. this.groupStudentUid[this.toolindex][i].length >
  19816. this.groupJson2.number
  19817. ) {
  19818. this.$message.error(this.lang.ssGroupLargerThanSet);
  19819. return;
  19820. }
  19821. }
  19822. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19823. this.islock = this.groupJson.islock == 1 ? true : false;
  19824. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19825. this.taskCount
  19826. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19827. let params = [
  19828. {
  19829. cid: this.id,
  19830. chapters: JSON.stringify(this.chapInfoList),
  19831. uid: this.userid,
  19832. unitIndex: this.courseType,
  19833. },
  19834. ];
  19835. this.ajax
  19836. .post(this.$store.state.api + "updateWorkNew4", params)
  19837. .then((res) => {
  19838. this.$message.success(this.lang.ssSettingSuccess);
  19839. this.getCourseDetail(2);
  19840. this.dialogVisibleGroup2 = false;
  19841. this.groupJson2 = {};
  19842. this.$forceUpdate();
  19843. })
  19844. .catch((err) => {
  19845. this.$message.error(this.lang.ssNetworkPoor);
  19846. console.error(err);
  19847. });
  19848. },
  19849. lockChair() {
  19850. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19851. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19852. this.updateGroupJson();
  19853. },
  19854. selectGroup(index) {
  19855. this.getCourseDetail(2, index);
  19856. },
  19857. joinGroup(index) {
  19858. if (this.groupJson.islock == 2) {
  19859. this.$message.error(this.lang.ssPositionLockedCannotJoin);
  19860. return;
  19861. }
  19862. if (
  19863. this.groupStudent[this.toolindex][index].length >
  19864. this.groupJson.number ||
  19865. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19866. ) {
  19867. this.$message.error(this.lang.ssPositionFullCannotJoin);
  19868. return;
  19869. }
  19870. let params = [
  19871. {
  19872. cid: this.id,
  19873. stage: this.courseType,
  19874. task: this.taskCount,
  19875. tool: this.toolindex,
  19876. g: index,
  19877. uid: this.userid,
  19878. },
  19879. ];
  19880. this.ajax
  19881. .post(this.$store.state.api + "joinGroup", params)
  19882. .then((res) => {
  19883. this.$message.success(this.lang.ssJoinSuccess);
  19884. this.getCourseDetail(2);
  19885. })
  19886. .catch((err) => {
  19887. this.$message.error(this.lang.ssNetworkPoor);
  19888. console.error(err);
  19889. });
  19890. },
  19891. exitGroup(id) {
  19892. if (this.groupJson.islock == 2) {
  19893. this.$message.error(this.lang.ssPositionLockedCannotExit);
  19894. return;
  19895. }
  19896. let params = [
  19897. {
  19898. gid: id,
  19899. },
  19900. ];
  19901. this.ajax
  19902. .post(this.$store.state.api + "exitGroup", params)
  19903. .then((res) => {
  19904. this.$message.success(this.lang.ssExitSuccess);
  19905. this.getCourseDetail(2);
  19906. })
  19907. .catch((err) => {
  19908. this.$message.error(this.lang.ssNetworkPoor);
  19909. console.error(err);
  19910. });
  19911. },
  19912. groupUpload(index, task, gindex) {
  19913. this.taskCount = task;
  19914. this.toolindex = index;
  19915. this.groupIndex = gindex;
  19916. this.dialogVisibleGroupWork = true;
  19917. },
  19918. updateGroupChair(user) {
  19919. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19920. el.label = index;
  19921. return index != user.group;
  19922. });
  19923. this.updateGroupUser = user;
  19924. this.dialogVisibleUpdateGroup = true;
  19925. },
  19926. updateChair() {
  19927. if (
  19928. this.groupStudent[this.toolindex][this.checkChair].length >
  19929. this.groupJson.number ||
  19930. this.groupStudent[this.toolindex][this.checkChair].length ==
  19931. this.groupJson.number
  19932. ) {
  19933. this.$message.error(this.lang.ssPositionFullCannotJoin);
  19934. return;
  19935. }
  19936. let params = [
  19937. {
  19938. cid: this.id,
  19939. stage: this.courseType,
  19940. task: this.taskCount,
  19941. tool: this.toolindex,
  19942. g: this.checkChair,
  19943. uid: this.updateGroupUser.userid,
  19944. },
  19945. ];
  19946. this.ajax
  19947. .post(this.$store.state.api + "joinGroup", params)
  19948. .then((res) => {
  19949. this.$message.success(this.lang.ssModifySuccess);
  19950. this.updateGroupUser = {};
  19951. this.checkChair = "";
  19952. this.updateGroupArray = {};
  19953. this.dialogVisibleUpdateGroup = false;
  19954. this.getCourseDetail(2);
  19955. })
  19956. .catch((err) => {
  19957. this.$message.error(this.lang.ssNetworkPoor);
  19958. console.error(err);
  19959. });
  19960. },
  19961. deleteGroupChair(gindex) {
  19962. this.checkDeleteGroup = [];
  19963. this.deleteGroupUser = JSON.parse(
  19964. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19965. );
  19966. this.deleteGroupArray = this.groupJson.group[gindex];
  19967. this.groupIndex = gindex;
  19968. this.dialogVisibleDeleteGroup = true;
  19969. },
  19970. async deleteChair() {
  19971. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19972. const gid =
  19973. this.groupStudent[this.toolindex][this.groupIndex][
  19974. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19975. this.checkDeleteGroup[i]
  19976. )
  19977. ];
  19978. let params = [
  19979. {
  19980. gid: gid.id,
  19981. },
  19982. ];
  19983. var a = await this.deleteChairA(params);
  19984. if (i == this.checkDeleteGroup.length - 1) {
  19985. this.$message.success(this.lang.ssExitSuccess);
  19986. this.dialogVisibleDeleteGroup = false;
  19987. this.deleteGroupUser = [];
  19988. this.deleteGroupArray = {};
  19989. this.groupIndex = "";
  19990. this.checkDeleteGroup = [];
  19991. this.getCourseDetail(2);
  19992. }
  19993. }
  19994. },
  19995. deleteChairA(params) {
  19996. return new Promise((resolve, reject) => {
  19997. this.ajax
  19998. .post(this.$store.state.api + "exitGroup", params)
  19999. .then((res) => {
  20000. resolve(1);
  20001. })
  20002. .catch((err) => {
  20003. this.$message.error(this.lang.ssNetworkPoor);
  20004. console.error(err);
  20005. });
  20006. });
  20007. },
  20008. contract(i) {
  20009. if (this.isCloseList[i].isClose == 0) {
  20010. this.isCloseList[i].isClose = 1;
  20011. } else {
  20012. this.isCloseList[i].isClose = 0;
  20013. }
  20014. this.$forceUpdate();
  20015. },
  20016. openWordCloud(toolindex) {
  20017. this.wordCloudData = '';
  20018. let array = [];
  20019. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20020. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20021. array.push({ name: works });
  20022. }
  20023. if (this.isGroup) {
  20024. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20025. let works = this.courseGroup.group[i].works[toolindex];
  20026. for (var j = 0; j < works.length; j++) {
  20027. let answer = JSON.parse(works[j].works)[0].answer;
  20028. array.push({ name: answer });
  20029. }
  20030. }
  20031. }
  20032. let _result = ''
  20033. array.forEach(e=>{
  20034. _result +=e.name+','
  20035. })
  20036. this.wordCloudData = _result;
  20037. this.dialogVisibleWordCloud = true;
  20038. this.wordCloudKey += 1;
  20039. },
  20040. uploadWorks(i) {
  20041. this.$confirm(this.lang.ssConfirmExportHomework, this.lang.ssPrompt, {
  20042. confirmButtonText: this.lang.ssConfirm,
  20043. cancelButtonText: this.lang.ssCancel,
  20044. type: "warning",
  20045. })
  20046. .then(() => {
  20047. const loading = this.$loading.service({
  20048. background: "rgba(255, 255, 255, 0.7)",
  20049. target: document.body,
  20050. text: this.lang.ssFileLoading,
  20051. });
  20052. const _worksStudent = this.worksStudent;
  20053. let url = [];
  20054. var counts = {};
  20055. for (var l = 0; l < _worksStudent[i].length; l++) {
  20056. var item = _worksStudent[i][l];
  20057. var name = item.sName;
  20058. if (!counts.hasOwnProperty(name)) {
  20059. counts[name] = 0;
  20060. } else {
  20061. counts[name]++;
  20062. }
  20063. if (counts[name] > 0) {
  20064. item.sName += " (" + counts[name] + ")";
  20065. }
  20066. }
  20067. for (var l = 0; l < _worksStudent[i].length; l++) {
  20068. var item = _worksStudent[i][l];
  20069. if (
  20070. item.works.indexOf(
  20071. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20072. ) !== -1 &&
  20073. item.works.indexOf("img") === -1
  20074. ) {
  20075. url.push({ name: item.sName, url: item.works });
  20076. }
  20077. }
  20078. // var toolList = [
  20079. // { name: "电子白板", tool: 1 },
  20080. // { name: "思维导图", tool: 3 },
  20081. // { name: "协同文档", tool: 6 },
  20082. // { name: "思维网格", tool: 7 },
  20083. // { name: "素材库", tool: 8 },
  20084. // { name: "学习资料", tool: 17 },
  20085. // { name: "便签", tool: 2 },
  20086. // { name: "问卷调查", tool: 4 },
  20087. // { name: "选择题", tool: 45 },
  20088. // { name: "倒计时", tool: 10 },
  20089. // { name: "问答", tool: 15 },
  20090. // { name: "课程设计", tool: 26 },
  20091. // { name: "训练服务器", tool: 18 },
  20092. // { name: "作业提交", tool: 16 },
  20093. // { name: "批量上传", tool: 50 },
  20094. // { name: "AIoT Blockly", tool: 21 },
  20095. // { name: "AI Python", tool: 23 },
  20096. // { name: "AI Blockly", tool: 24 },
  20097. // { name: "目标管理", tool: 25 },
  20098. // { name: this.lang.ssMathBoard, tool: 31 },
  20099. // { name: "翻译", tool: 28 },
  20100. // { name: this.lang.ssMohe, tool: 37 },
  20101. // { name: this.lang.ssMathBoard, tool: 31 },
  20102. // { name: "24点", tool: 38 },
  20103. // { name: "GeoGebra", tool: 39 },
  20104. // { name: "源码编辑", tool: 32 },
  20105. // { name: "个人评价", tool: 40 },
  20106. // { name: "选择匹配", tool: 41 },
  20107. // { name: this.lang.ssHanziPalace, tool: 44 },
  20108. // { name: "排序", tool: 47 },
  20109. // { name: "表格", tool: 48 },
  20110. // { name: "文档", tool: 52 },
  20111. // { name: "学生分组", tool: 49 },
  20112. // { name: "CocoPi", tool: 57 },
  20113. // { name: "模拟驾驶", tool: 58 },
  20114. // { name: "路径搜索", tool: 59 },
  20115. // { name: "深度学习", tool: 60 },
  20116. // { name: "全历史", tool: 61 },
  20117. // { name: "交互视频", tool: 62 },
  20118. // { name: "海龟编程", tool: 63 },
  20119. // { name: "挑人", tool: 65 },
  20120. // { name: "公式编辑", tool: 66 },
  20121. // { name: "分子结构", tool: 67 },
  20122. // { name: "时间轴", tool: 68 },
  20123. // ];
  20124. // var toolName = "";
  20125. // for(var w = 0;w<toolList.length;w++){
  20126. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20127. // toolName = toolList[w].name;
  20128. // }
  20129. // }
  20130. console.log(url);
  20131. this.downLoadAll(url, loading);
  20132. })
  20133. .catch(() => {});
  20134. },
  20135. downLoadAll(url, loading) {
  20136. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20137. const zip = new JSZip();
  20138. const cache = {};
  20139. const promises = [];
  20140. data.forEach((item) => {
  20141. const promise = getFile(item.url).then((data) => {
  20142. if (data.data != 1) {
  20143. // 下载文件, 并存成ArrayBuffer对象
  20144. const file_name =
  20145. item.name +
  20146. "." +
  20147. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20148. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20149. cache[file_name] = data.data;
  20150. }
  20151. });
  20152. promises.push(promise);
  20153. });
  20154. Promise.all(promises).then(() => {
  20155. zip.generateAsync({ type: "blob" }).then((content) => {
  20156. // 生成二进制流
  20157. FileSaver.saveAs(
  20158. content,
  20159. this.courseDetail.title + "-" + this.lang.ssHomeworkSubmissionTool + ".zip"
  20160. ); // 利用file-saver保存文件 自定义文件名
  20161. setTimeout(() => {
  20162. loading.close();
  20163. }, 2000);
  20164. });
  20165. });
  20166. },
  20167. pickStudent(stu) {
  20168. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20169. return;
  20170. }
  20171. this.$confirm(this.lang.ssAskStudentToAnswer.replace(/\*/g, stu.name), this.lang.ssPrompt, {
  20172. confirmButtonText: this.lang.ssConfirm,
  20173. cancelButtonText: this.lang.ssCancel,
  20174. type: "warning",
  20175. })
  20176. .then(() => {
  20177. let params = [
  20178. {
  20179. uid: stu.userid,
  20180. cid: this.id,
  20181. stage: this.courseType,
  20182. task: this.taskCount,
  20183. tool: this.toolindex,
  20184. },
  20185. ];
  20186. this.ajax
  20187. .post(this.$store.state.api + "updateCoursePick", params)
  20188. .then((res) => {
  20189. this.$message.success(this.lang.ssOperationSuccess);
  20190. this.getPick();
  20191. })
  20192. .catch((err) => {
  20193. this.$message.error(this.lang.ssNetworkPoor);
  20194. console.error(err);
  20195. });
  20196. })
  20197. .catch(() => {});
  20198. },
  20199. selectUser(){
  20200. let params = {
  20201. userid: this.userid,
  20202. };
  20203. this.ajax
  20204. .get(this.$store.state.api + "selectUser", params)
  20205. .then((res) => {
  20206. this.userMes = res.data[0];
  20207. })
  20208. .catch((err) => {
  20209. console.error(err);
  20210. });
  20211. },
  20212. setEngText(i){
  20213. this.newEngIndex = i;
  20214. this.$forceUpdate();
  20215. },
  20216. addCorrect(){
  20217. this.$confirm(this.lang.ssConfirmSubmitCorrection, this.lang.ssPrompt, {
  20218. confirmButtonText: this.lang.ssConfirm,
  20219. showCancelButton: false,
  20220. closeOnClickModal: false,
  20221. type: "warning",
  20222. })
  20223. .then(() => {
  20224. let params = {
  20225. cid: this.id,
  20226. s: parseInt(this.courseType),
  20227. t: this.taskCount,
  20228. tool: this.toolindex,
  20229. wid: this.engWid,
  20230. c: this.userid,
  20231. 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) : "",
  20232. };
  20233. this.ajax
  20234. .get(this.$store.state.api + "addEngC", params)
  20235. .then((res) => {
  20236. this.$message.success(this.lang.ssSubmitSuccess);
  20237. this.engUpdateDialogVisible = false;
  20238. })
  20239. .catch((err) => {
  20240. console.error(err);
  20241. });
  20242. })
  20243. .catch(() => {});
  20244. },
  20245. selectEngC(id,z){
  20246. let params = {
  20247. workid: id,
  20248. };
  20249. this.ajax
  20250. .get(this.$store.state.api + "selectEngC", params)
  20251. .then((res) => {
  20252. if(res.data[0].length == 0){
  20253. this.newEnglishList.engTitle = z.engTitle;
  20254. this.newEnglishList.engText = z.engText;
  20255. }else{
  20256. var a = res.data[0];
  20257. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20258. if(this.userMes[0].type == 2){
  20259. var snum = 0;
  20260. for(var i = 0;i<a.length;i++){
  20261. if(this.userMes[0].userid == a[i].correct){
  20262. this.newEnglishList = JSON.parse(a[i].cWork);
  20263. snum = 1;
  20264. }
  20265. }
  20266. if(snum == 0){
  20267. this.newEnglishList = { engTitle:"",engText:"" };
  20268. this.newEnglishList.engTitle = z.engTitle;
  20269. this.newEnglishList.engText = z.engText;
  20270. }
  20271. }else if(this.userMes[0].type == 1){
  20272. var num = 0;
  20273. for(var w= 0;w<a.length;w++){
  20274. if(this.userMes[0].userid == a[w].correct){
  20275. num = 1;
  20276. }
  20277. }
  20278. if(num == 0){
  20279. this.isNoUserid = true;
  20280. var c = JSON.parse(JSON.stringify(z));
  20281. this.oldEnglishJson1 = c;
  20282. }else{
  20283. this.isNoUserid = false;
  20284. }
  20285. var b = a.sort((item, index) => {
  20286. console.log(item)
  20287. if (item.correct === this.userMes[0].userid) {
  20288. return -1; // 将a移到前面
  20289. } else if (index.correct === this.userMes[0].userid) {
  20290. return 1; // 将b移到前面
  20291. } else {
  20292. return 0; // 保持默认顺序
  20293. }
  20294. });
  20295. for(var p = 0;p<b.length;p++){
  20296. for(var y = 0;y<ppp.length;y++){
  20297. if(b[p].id == ppp[y].id){
  20298. b[p].cWork = JSON.parse(ppp[y].cWork);
  20299. break
  20300. }
  20301. }
  20302. }
  20303. this.newEnglishList1 = b;
  20304. }
  20305. }
  20306. this.greyType = false;
  20307. setTimeout(() => {
  20308. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20309. if(this.newEnglishList1.length > 0){
  20310. if(this.isNoUserid == true){
  20311. this.engListLength = this.newEnglishList1.length + 1;
  20312. this.newEngIndex = -1;
  20313. }else{
  20314. this.engListLength = this.newEnglishList1.length;
  20315. this.newEngIndex = 0;
  20316. }
  20317. }
  20318. if(this.userMes[0].type == 2){
  20319. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20320. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20321. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20322. }else if(this.newEngIndex == -1){
  20323. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20324. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20325. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20326. }
  20327. }, 500);
  20328. this.engUpdateDialogVisible = true;
  20329. this.$forceUpdate();
  20330. })
  20331. .catch((err) => {
  20332. console.error(err);
  20333. });
  20334. },
  20335. getPick() {
  20336. if(this.getPickLoading) return
  20337. this.getPickLoading = true
  20338. let params = {
  20339. cid: this.id,
  20340. };
  20341. this.ajax
  20342. .get(this.$store.state.api + "getPick", params)
  20343. .then((res) => {
  20344. let array = [];
  20345. for (var i = 0; i < res.data[0].length; i++) {
  20346. array.push(res.data[0][i].userid);
  20347. }
  20348. this.isPickStudent = array;
  20349. if (array.indexOf(this.userid) !== -1) {
  20350. this.$confirm(this.lang.ssSelectedByTeacher, this.lang.ssPrompt, {
  20351. confirmButtonText: this.lang.ssConfirm,
  20352. showCancelButton: false,
  20353. closeOnClickModal: false,
  20354. type: "warning",
  20355. })
  20356. .then(() => {
  20357. let pa = [
  20358. {
  20359. uid: this.userid,
  20360. cid: this.id,
  20361. },
  20362. ];
  20363. this.ajax
  20364. .post(this.$store.state.api + "deletePick", pa)
  20365. .then((res) => {
  20366. this.getPick();
  20367. })
  20368. .catch((err) => {
  20369. this.$message.error(this.lang.ssNetworkPoor);
  20370. console.error(err);
  20371. });
  20372. })
  20373. .catch(() => {});
  20374. }
  20375. this.getPickLoading = false
  20376. })
  20377. .catch((err) => {
  20378. this.getPickLoading = false
  20379. this.$message.error(this.lang.ssNetworkPoor);
  20380. console.error(err);
  20381. });
  20382. },
  20383. foldEva() {
  20384. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20385. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20386. } else {
  20387. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20388. setTimeout(() => {
  20389. this.checkEva();
  20390. setTimeout(() => {
  20391. this.checkEva();
  20392. }, 500);
  20393. }, 0);
  20394. }
  20395. this.$forceUpdate();
  20396. },
  20397. panToolHeight(tool) {
  20398. var _tool = document.querySelectorAll('#'+tool)[0]
  20399. var _toolA = _tool ? _tool.offsetHeight : 0
  20400. var _toolC = 0
  20401. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20402. let boolean2 = (_toolA > _toolC) ? true : false
  20403. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20404. this.$forceUpdate();
  20405. },
  20406. async checkLink(url) {
  20407. console.log(url)
  20408. let _url = url
  20409. try {
  20410. const response = await fetch(url);
  20411. if(!response.ok){
  20412. _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]))
  20413. }
  20414. console.log(response.ok)
  20415. } catch (error) {
  20416. console.error('Error checking link:', error);
  20417. // console.log(false)
  20418. _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]))
  20419. }
  20420. // console.log(_url)
  20421. return _url
  20422. },
  20423. getScoreList(){
  20424. let params = {
  20425. cid: this.id,
  20426. };
  20427. this.ajax
  20428. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20429. .then((res) => {
  20430. let result = res.data;
  20431. this.scoreList.datalist = result[0];
  20432. this.scoreList.isScoreList = result[1];
  20433. })
  20434. .catch((err) => {
  20435. console.error(err);
  20436. });
  20437. },
  20438. setClassRoomHelperWidth(width){
  20439. this.classRoomHelperWidth = width
  20440. },
  20441. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20442. this.$refs.choseWorksDetailDialogRef.open({
  20443. toolType:tooc,
  20444. tType: this.tType,
  20445. toolIndex: toolIndex
  20446. });
  20447. this.changeSplitScreenBehavior({
  20448. code: 1,
  20449. form: {
  20450. toolType:tooc,
  20451. toolIndex: toolIndex,
  20452. courseType: this.courseType,
  20453. taskCount: this.taskCount,
  20454. type: 0
  20455. }
  20456. });
  20457. },
  20458. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20459. this.$refs.statisticalAnalysisRef.open({
  20460. worksStudent: this.worksStudent[toolIndex],
  20461. tType: this.tType,
  20462. toolIndex: toolIndex
  20463. });
  20464. this.changeSplitScreenBehavior({
  20465. code: 2,
  20466. form: {
  20467. toolType:4,
  20468. courseType: this.courseType,
  20469. taskCount: this.taskCount,
  20470. toolIndex: toolIndex,
  20471. type: 0
  20472. }
  20473. });
  20474. },
  20475. statisticalAnalysisRefresh(toolIndex) {
  20476. this.$refs.statisticalAnalysisRef.refreshData({
  20477. worksStudent: this.worksStudent[toolIndex],
  20478. tType: this.tType,
  20479. toolIndex: toolIndex
  20480. });
  20481. },
  20482. async splitScreenBehavior(type = 0) {
  20483. // return;
  20484. if (this.splitScreenData.loading)
  20485. return this.$message.info(this.lang.ssOperationTooFast);
  20486. if (type == 0) {
  20487. //关闭分屏
  20488. this.splitScreenData.isOpen = false;
  20489. // this.splitScreenData.userId = "";
  20490. // this.splitScreenData.uid = "";
  20491. this.splitScreenData.behavior = null;
  20492. await this.updateSplitScreenData(1);
  20493. this.$message.success(this.lang.ssSplitScreenClosed);
  20494. this.studentFreePreview(false);
  20495. this.OpenJobPreview(false);
  20496. // this.followingMode(false);
  20497. } else if (type == 1) {
  20498. //开启分屏
  20499. this.splitScreenData.isOpen = true;
  20500. this.splitScreenData.userId = this.userid;
  20501. this.splitScreenData.uid = this.splitScreenData.myUid;
  20502. this.splitScreenData.behavior = null;
  20503. let status = await this.updateSplitScreenData(0);
  20504. this.changeSplitScreenBehavior({form:{}})
  20505. if (status == 1) {
  20506. this.$message.success(this.lang.ssSplitScreenOpened);
  20507. this.studentFreePreview(false);
  20508. this.OpenJobPreview(true);
  20509. // this.followingMode(true);
  20510. } else {
  20511. this.splitScreenData.isOpen = false;
  20512. this.splitScreenData.userId = "";
  20513. this.splitScreenData.uid = "";
  20514. this.splitScreenData.behavior = null;
  20515. this.$message.success(this.lang.ssSplitScreenOpenFailed);
  20516. }
  20517. }
  20518. },
  20519. enterFullScreen() {
  20520. let element = document.documentElement;
  20521. if (element.requestFullscreen) {
  20522. element.requestFullscreen();
  20523. } else if (element.mozRequestFullScreen) { /* Firefox */
  20524. element.mozRequestFullScreen();
  20525. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  20526. element.webkitRequestFullscreen();
  20527. } else if (element.msRequestFullscreen) { /* IE/Edge */
  20528. element.msRequestFullscreen();
  20529. }
  20530. },
  20531. exitFullScreen() {
  20532. if (document.exitFullscreen) {
  20533. document.exitFullscreen();
  20534. } else if (document.mozCancelFullScreen) { /* Firefox */
  20535. document.mozCancelFullScreen();
  20536. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  20537. document.webkitExitFullscreen();
  20538. } else if (document.msExitFullscreen) { /* IE/Edge */
  20539. document.msExitFullscreen();
  20540. }
  20541. },
  20542. confirmOpen(){
  20543. this.splitScreenData.isOpen = true;
  20544. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  20545. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  20546. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  20547. this.confirmOpenDig = false
  20548. if (!document.fullscreenElement) {
  20549. this.enterFullScreen();
  20550. }
  20551. // if (this.timer2) {
  20552. // clearInterval(this.timer2);
  20553. // this.timer2 = null;
  20554. // }
  20555. // this.timer2 = setInterval(()=> {
  20556. // this.getSplitScreenData();//获取分屏数据
  20557. // }, 5000);
  20558. this.$message.success(this.lang.ssSplitScreenEnabled);
  20559. },
  20560. // 获取分屏数据
  20561. getSplitScreenData() {
  20562. // return;
  20563. // if (this.tType != 1) return;
  20564. if(this.getSplitScreenDataLoading) return
  20565. this.getSplitScreenDataLoading = true
  20566. let params = {
  20567. cid: this.id
  20568. };
  20569. this.ajax
  20570. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20571. .then(async res => {
  20572. let data = res.data[0][0]["splitScreenData"];
  20573. console.log("获取了分屏数:", data);
  20574. if (data) {
  20575. data = JSON.parse(data);
  20576. if (
  20577. !this.splitScreenData.isOpen &&
  20578. data.isOpen &&
  20579. this.splitScreenData.myUid == data.uid
  20580. ) {
  20581. this.splitScreenData.isOpen = false;
  20582. this.splitScreenData.userId = "";
  20583. this.splitScreenData.uid = "";
  20584. this.splitScreenData.behavior = null;
  20585. await this.updateSplitScreenData(1);
  20586. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20587. this.confirmOpenDig = true
  20588. this.confirmOpenDigData = data
  20589. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20590. this.splitScreenData.isOpen = false;
  20591. this.splitScreenData.userId = "";
  20592. this.splitScreenData.uid = "";
  20593. this.splitScreenData.behavior = null;
  20594. this.$message.error(this.lang.ssSplitScreenEnded);
  20595. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20596. this.splitScreenData.isOpen = true;
  20597. this.splitScreenData.uid = data.uid;
  20598. this.splitScreenData.userId = data.userId;
  20599. this.splitScreenData.behavior = data.behavior;
  20600. }
  20601. this.doSplitScreenBehavior();
  20602. } else {
  20603. if (this.splitScreenData.isOpen) {
  20604. this.splitScreenData.isOpen = false;
  20605. this.splitScreenData.userId = "";
  20606. this.splitScreenData.uid = "";
  20607. this.splitScreenData.behavior = null;
  20608. this.$message.error(this.lang.ssSplitScreenEnded);
  20609. // if (this.timer2) {
  20610. // clearInterval(this.timer2);
  20611. // this.timer2 = null;
  20612. // }
  20613. // this.timer2 = setInterval(()=> {
  20614. // this.getSplitScreenData();//获取分屏数据
  20615. // }, 5000);
  20616. this.$confirm(this.lang.ssTeacherEndedSplitScreen, this.lang.ssPrompt, {
  20617. confirmButtonText: '确定', //确认按钮的文字
  20618. showCancelButton: false, //是否显示取消按钮
  20619. showClose: false, //是否显示关闭按钮
  20620. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  20621. type: "warning",
  20622. })
  20623. .then(() => {
  20624. if (document.fullscreenElement) {
  20625. this.exitFullScreen();
  20626. }
  20627. })
  20628. .catch(() => {});
  20629. }
  20630. }
  20631. this.getSplitScreenDataLoading = false
  20632. })
  20633. .catch(e => {
  20634. this.getSplitScreenDataLoading = false
  20635. console.log("获取分屏数出错:", e);
  20636. });
  20637. },
  20638. // 操作
  20639. doSplitScreenBehavior() {
  20640. if (
  20641. this.splitScreenData.isOpen &&
  20642. this.splitScreenData.uid != this.splitScreenData.myUid
  20643. ) {
  20644. let behavior = this.splitScreenData.behavior;
  20645. if (behavior) {
  20646. // console.log('behavior',behavior);
  20647. // this.toolindex = behavior.form.toolType
  20648. // 初始状态
  20649. if (behavior.code === 99) {
  20650. //初始化
  20651. this.fullDialogVisible = false;
  20652. if(this.$refs.choseWorksDetailDialogRef.show){
  20653. this.$refs.choseWorksDetailDialogRef.close();
  20654. }
  20655. if(this.$refs.statisticalAnalysisRef.show){
  20656. this.$refs.statisticalAnalysisRef.close();
  20657. }
  20658. }
  20659. // 文件列表
  20660. if (behavior.code === 0) {
  20661. //开启内容列表弹窗
  20662. this.checkFileFull1(behavior.form.t, behavior.form.f);
  20663. }else{
  20664. this.fullDialogVisible = false;
  20665. }
  20666. // 打开工具
  20667. if (behavior.code === 1) {
  20668. //关于选择题的作业详细的操作
  20669. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20670. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20671. this.courseType = behavior.form.courseType;
  20672. this.taskCount = behavior.form.taskCount;
  20673. }
  20674. this.$nextTick(() => {
  20675. if (this.$refs.choseWorksDetailDialogRef.show) {
  20676. //已经打开了
  20677. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  20678. } else {
  20679. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  20680. }
  20681. });
  20682. }else{
  20683. this.$refs.choseWorksDetailDialogRef.close()
  20684. }
  20685. // 问卷调查
  20686. if(behavior.code === 2){
  20687. if(this.$refs.statisticalAnalysisRef.show){
  20688. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20689. }else{
  20690. this.$refs.statisticalAnalysisRef.open({
  20691. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20692. tType: this.tType,
  20693. toolIndex: behavior.form.toolIndex
  20694. });
  20695. }
  20696. }else{
  20697. this.$refs.statisticalAnalysisRef.close();
  20698. }
  20699. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  20700. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  20701. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  20702. // console.log('behavior.form',behavior.form.courseType,behavior.form.taskCount,behavior.form.toolType);
  20703. // console.log('666666',this.courseType,this.taskCount,this.toolindex);
  20704. if (behavior.form.courseType != this.courseType ||
  20705. behavior.form.taskCount != this.taskCount ||
  20706. behavior.form.toolType != this.toolindex
  20707. ) {
  20708. var a = document.scrollingElement;
  20709. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  20710. if (target) {
  20711. target.scrollIntoView(true);
  20712. setTimeout(()=>{
  20713. let scrollBody = document.querySelector('.body_student').parentElement
  20714. scrollBody.scrollTop = scrollBody.scrollTop - 100
  20715. }, 0);
  20716. // setTimeout(() => {
  20717. // a.scrollTop = 0
  20718. // }, 0);
  20719. }
  20720. }
  20721. if(this.courseType !=behavior.form.courseType){
  20722. this.courseType = behavior.form.courseType;
  20723. }
  20724. if(this.taskCount !=behavior.form.taskCount){
  20725. this.taskCount = behavior.form.taskCount;
  20726. }
  20727. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  20728. this.toolindex = behavior.form.toolType;
  20729. }
  20730. // if(behavior.form.navId){
  20731. // this.navId = behavior.form.navId
  20732. // }
  20733. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  20734. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  20735. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  20736. this.getCourseDetail()
  20737. }
  20738. this.setContent2(false)
  20739. }
  20740. } else {
  20741. }
  20742. }
  20743. },
  20744. // 修改分屏数据
  20745. updateSplitScreenData(empty = 0) {
  20746. return new Promise(resolve => {
  20747. if(this.userid!==this.courseDetail.userid){
  20748. if(!this.courseDetail.userid){
  20749. return setTimeout(()=>{
  20750. this.updateSplitScreenData(empty)
  20751. },2000)
  20752. }
  20753. return;
  20754. };
  20755. if (
  20756. this.splitScreenData.uid == this.splitScreenData.myUid &&
  20757. this.splitScreenData.userId == this.userid
  20758. ) {
  20759. this.splitScreenData.loading = true;
  20760. let params = [
  20761. {
  20762. cid: this.id,
  20763. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  20764. }
  20765. ];
  20766. this.ajax
  20767. .post(
  20768. this.$store.state.api + "update_courseSplitScreenData",
  20769. params
  20770. )
  20771. .then(res => {
  20772. this.splitScreenData.loading = false;
  20773. if (res.data == 1) {
  20774. resolve(1);
  20775. console.log("修改分屏数据成功");
  20776. }
  20777. })
  20778. .catch(e => {
  20779. this.splitScreenData.loading = false;
  20780. console.log("修改分屏数据失败", e);
  20781. resoleve(0);
  20782. });
  20783. } else if (empty == 2 && this.tType == 1) {
  20784. console.log("清空清空清空清空")
  20785. let params = [
  20786. {
  20787. cid: this.id,
  20788. nData: ""
  20789. }
  20790. ];
  20791. return this.ajax
  20792. .post(
  20793. this.$store.state.api + "update_courseSplitScreenData",
  20794. params
  20795. )
  20796. .then(_ => resolve(1))
  20797. .catch(_ => resolve(0));
  20798. } else {
  20799. return resolve(0);
  20800. }
  20801. });
  20802. },
  20803. // 修改分屏数据
  20804. changeSplitScreenBehavior(newValue) {
  20805. if (
  20806. this.splitScreenData.isOpen &&
  20807. this.splitScreenData.uid == this.splitScreenData.myUid
  20808. ) {
  20809. let _behavior = null;
  20810. if(!newValue){
  20811. _behavior = {}
  20812. }else{
  20813. _behavior = newValue
  20814. }
  20815. if(_behavior.form){
  20816. _behavior.form.taskCount = this.taskCount;
  20817. _behavior.form.courseType = this.courseType
  20818. }else{
  20819. _behavior.form = {
  20820. taskCount:this.taskCount,
  20821. courseType:this.courseType,
  20822. }
  20823. }
  20824. this.splitScreenData.behavior = _behavior;
  20825. this.updateSplitScreenData(0);
  20826. }
  20827. },
  20828. studentFreePreview(flag) {
  20829. this.IsLookOpen = flag;
  20830. this.updateLookOpen();
  20831. this.followingMode(flag)
  20832. },
  20833. OpenJobPreview(flag) {
  20834. this.sIsOpen = flag;
  20835. this.updateSLook();
  20836. },
  20837. followingMode(flag) {
  20838. this.IsFollow = flag;
  20839. this.updateFollow();
  20840. },
  20841. StulookMode(flag) {
  20842. this.IsStulook = flag;
  20843. this.updateIsStulook();
  20844. },
  20845. async doSyncClassData(){
  20846. let userArray = ['6fbc6471-1d48-11ed-8c78-005056b86db5','333d0dfc-1cd9-11ef-bee5-005056b86db5','6fbce5ef-1d48-11ed-8c78-005056b86db5','66feffcc-ad35-11ed-b13d-005056b86db5']
  20847. if (this.courseDetail.userid == this.userid && (this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840' || userArray.includes(this.userid))) {
  20848. let endTime = await this.getServerTime()
  20849. let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
  20850. this.syncClassData({
  20851. courseId: this.id,
  20852. title: this.courseDetail.title,
  20853. ctitle: this.courseDetail.copyTitle || this.courseDetail.title,
  20854. courseGrade: this.tcid2 ? this.tcid2 : '',
  20855. courseTime: courseTime,
  20856. startTime: this.startTime,
  20857. endTime: endTime,
  20858. })
  20859. console.log('同步数据')
  20860. }
  20861. },
  20862. resetIdleOp(){
  20863. this.$message({
  20864. message: this.lang.ssLongTimeNoOperation,
  20865. type: "warning",
  20866. });
  20867. this.goTo(
  20868. '/courseDetail?userid=' +
  20869. this.userid +
  20870. '&oid=' +
  20871. this.oid +
  20872. '&org=' +
  20873. this.org +
  20874. '&cid=' +
  20875. this.id +
  20876. '&courseId=' +
  20877. this.id +
  20878. '&tType=' +
  20879. this.tType +
  20880. '&screenType=' +
  20881. this.screenType
  20882. )
  20883. }
  20884. },
  20885. directives: {
  20886. // 使用局部注册指令的方式
  20887. resize: {
  20888. // 指令的名称
  20889. bind(el, binding) {
  20890. // el为绑定的元素,binding为绑定给指令的对象
  20891. let width = "",
  20892. height = "";
  20893. function isReize() {
  20894. const style = document.defaultView.getComputedStyle(el);
  20895. if (width !== style.width || height !== style.height) {
  20896. binding.value(); // 关键
  20897. }
  20898. width = style.width;
  20899. height = style.height;
  20900. }
  20901. el.__vueSetInterval__ = setInterval(isReize, 300);
  20902. },
  20903. unbind(el) {
  20904. clearInterval(el.__vueSetInterval__);
  20905. },
  20906. },
  20907. autoHeight: {
  20908. update(el, binding) {
  20909. const { value } = binding
  20910. if (value && typeof value === 'number') {
  20911. el.style.height = `${value}px`
  20912. } else {
  20913. el.style.height = 'auto'
  20914. }
  20915. },
  20916. componentUpdated(el) {
  20917. el.style.height = `${el.scrollHeight}px`
  20918. },
  20919. },
  20920. },
  20921. beforeDestroy() {
  20922. window.onresize = null;
  20923. clearInterval(this.timer);
  20924. this.timer = null;
  20925. clearInterval(this.timer2);
  20926. this.timer2 = null;
  20927. clearInterval(this.opertimer);
  20928. this.opertimer = null;
  20929. this.updateSplitScreenData(1);
  20930. this.doSyncClassData();
  20931. clearTimeout(this.timeoutPan);
  20932. this.timeoutPan = null;
  20933. this.stopIdleDetection(this.resetIdleOp);
  20934. },
  20935. computed: {
  20936. renderedFormula2() {
  20937. return function(val){
  20938. if (this.lang.lang == 'com') {
  20939. return val;
  20940. }
  20941. // 处理换行符和HTML实体
  20942. const normalized = val
  20943. .replace(/&amp;/g, '&')
  20944. .replace(/<br\/?>/g, '\n');
  20945. // 匹配行内公式($...$)和块级公式($$...$$)
  20946. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  20947. try {
  20948. return katex.renderToString(expr.trim(), {
  20949. displayMode: false,
  20950. throwOnError: false,
  20951. macros: {
  20952. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  20953. }
  20954. });
  20955. } catch (e) {
  20956. console.warn('KaTeX渲染失败:', e);
  20957. return `<span style="color:red">${expr}</span>`;
  20958. }
  20959. })
  20960. }
  20961. },
  20962. renderedFormula() {
  20963. return function(val){
  20964. if (this.lang.lang == 'com') {
  20965. return val;
  20966. }
  20967. try {
  20968. // 判断是否含有HTML标签,<tag ...>...</tag>
  20969. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  20970. if (!hasTag) {
  20971. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  20972. // 纯文本,整体渲染
  20973. try {
  20974. return katex.renderToString(val.trim(), {
  20975. throwOnError: false,
  20976. strict: false,
  20977. output: "htmlAndMathml"
  20978. });
  20979. } catch (e) {
  20980. return val; // 渲染失败原样输出
  20981. }
  20982. } else {
  20983. // 有标签,对每个标签内容渲染
  20984. return val.replace(
  20985. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  20986. (match, tag, attrs, inner) => {
  20987. let html;
  20988. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  20989. try {
  20990. html = katex.renderToString(inner.trim(), {
  20991. throwOnError: false,
  20992. strict: false,
  20993. output: "htmlAndMathml"
  20994. });
  20995. } catch (e) {
  20996. html = inner;
  20997. }
  20998. return `<${tag}${attrs}>${html}</${tag}>`;
  20999. }
  21000. );
  21001. }
  21002. } catch (e) {
  21003. console.error('KaTeX渲染错误:', e);
  21004. return val;
  21005. }
  21006. }
  21007. },
  21008. isAndroid() {
  21009. return /Android/i.test(navigator.userAgent);
  21010. },
  21011. contentConvent() {
  21012. return function (c) {
  21013. return c
  21014. ? c
  21015. .replaceAll(/\r\n/g, "<br/>")
  21016. .replaceAll(/\n/g, "<br/>")
  21017. .replaceAll(/\s/g, "&nbsp")
  21018. : "";
  21019. };
  21020. },
  21021. commentRight(){
  21022. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21023. return "35px";
  21024. }
  21025. return `calc(${this.classRoomHelperWidth} + 5px)`
  21026. // if(this.$refs["classRoomHelperRef"].type==0){
  21027. // return "100px";
  21028. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21029. // return "502px"
  21030. // }else{
  21031. // return "0px"
  21032. // }
  21033. },
  21034. checkUpload() {
  21035. return function () {
  21036. var studentK = [];
  21037. if (this.plworkFile.length > 0) {
  21038. for (var z = 0; z < this.plworkFile.length; z++) {
  21039. studentK.push(this.plworkFile[z].username);
  21040. }
  21041. studentK = studentK.join(",");
  21042. }
  21043. var a = this.uploadStudentJuri.filter((el) => {
  21044. return studentK.indexOf(el.userid) == -1;
  21045. });
  21046. return a;
  21047. };
  21048. },
  21049. getSName() {
  21050. return function (name) {
  21051. var check = name;
  21052. this.uploadStudentJuri.forEach((el) => {
  21053. if (el.userid == check) {
  21054. check = el.name ? el.name : el.username;
  21055. }
  21056. });
  21057. return check;
  21058. };
  21059. },
  21060. getImgList() {
  21061. return function (val) {
  21062. let srcList = []; // 定义一个数组用来接收后面的img地址
  21063. val.replace(
  21064. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21065. function (match, capture) {
  21066. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21067. srcList.push(capture);
  21068. }
  21069. );
  21070. return srcList;
  21071. };
  21072. },
  21073. retrnToolHeight(){
  21074. return function (tool) {
  21075. var _tool = document.querySelectorAll('#'+tool)[0]
  21076. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21077. };
  21078. },
  21079. Correct() {
  21080. return function (c) {
  21081. let w = "";
  21082. let a = this.correctWord;
  21083. for(var k = 0;k<a.length;k++){
  21084. //diffWordsWithSpace
  21085. if(a.length > 1){
  21086. if(a[k].added == true){
  21087. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21088. }else if(a[k].removed == true){
  21089. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21090. }else{
  21091. w += '<span>' + a[k].value + '</span>';
  21092. }
  21093. }else{
  21094. w = c
  21095. }
  21096. //diffChars方法
  21097. // if(a.length > 1){
  21098. // if(w == ""){
  21099. // if(a[k].added == true){
  21100. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21101. // }else if(a[k].removed == true){
  21102. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21103. // }
  21104. // }else{
  21105. // if(k == a.length - 1){
  21106. // if(a[k].added == true){
  21107. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21108. // }else if(a[k].removed == true){
  21109. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21110. // }
  21111. // }else{
  21112. // if(a[k].added == true){
  21113. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21114. // }else if(a[k].removed == true){
  21115. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21116. // }
  21117. // }
  21118. // }
  21119. // }else{
  21120. // w = c
  21121. // }
  21122. }
  21123. c = w;
  21124. return c;
  21125. };
  21126. },
  21127. },
  21128. async mounted() {
  21129. this.setoTime("1");
  21130. this.startTime = await this.getServerTime()
  21131. this.timeoutPan = setTimeout(() => {
  21132. this.startIdleDetection(this.resetIdleOp);
  21133. }, 40 * 60 * 1000)
  21134. // if (this.tType == 1) {
  21135. // // 开局关闭学生查看内容
  21136. // this.StulookMode(false)
  21137. // // 开局打开跟随模式
  21138. // this.followingMode(true)
  21139. // }
  21140. document.body.addEventListener("click", (e) => {
  21141. if (this.isUpdateToolDetail1) {
  21142. this.updateToolDetail(this.toolDetailIndex);
  21143. }
  21144. });
  21145. setTimeout(() => {
  21146. this.doSyncClassData();
  21147. }, 1000);
  21148. this.getCode2()
  21149. this.setOperationTime();
  21150. this.selectEva();
  21151. this.getCourseDetail(10);
  21152. this.selectCount();
  21153. this.getHomeWork();
  21154. this.selectUser();
  21155. this.getAIJ();
  21156. this.updateSplitScreenData(2);
  21157. this.splitScreenData.myUid = uuidv4();
  21158. this.contentDialog = false;
  21159. this.setContent2(true);
  21160. if (this.tType == 4) {
  21161. this.pzDialog = true;
  21162. this.selectPz();
  21163. }
  21164. // 获取评分列表
  21165. this.getScoreList()
  21166. document.scrollingElement.scrollTop = 0;
  21167. window.addEventListener("resize", () => {
  21168. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21169. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21170. if (this.showType == 2 || this.showType == 3) {
  21171. document.getElementsByClassName("navBox")[0].style.height =
  21172. a - 40 + 0+ "px";
  21173. } else {
  21174. document.getElementsByClassName("navBox")[0].style.height =
  21175. a - 40 + "px";
  21176. }
  21177. });
  21178. // let _this = this;
  21179. // setTimeout(() => {
  21180. // _this.vedioTime = [];
  21181. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21182. // _this.vedioTime[i] = document.getElementsByClassName(
  21183. // "vjs-duration-display"
  21184. // )[i].textContent;
  21185. // }
  21186. // }, 1000);
  21187. try{
  21188. if (this.screenType == 2) {
  21189. window.topU.postMessage({ allScreen: 4 }, "*");
  21190. } else if (this.screenType == 3) {
  21191. window.topU.postMessage({ allScreen: 5 }, "*");
  21192. } else if (this.screenType == 1) {
  21193. window.topU.postMessage({ allScreen: 6 }, "*");
  21194. }
  21195. }catch(e){
  21196. console.log(e)
  21197. }
  21198. },
  21199. };
  21200. </script>
  21201. <style scoped>
  21202. @media screen and (max-width: 1280px) {
  21203. /* .courseIndex > div:first-child(2) {
  21204. width: 15% !important;
  21205. } */
  21206. /* .navText {
  21207. width: 120px !important;
  21208. } */
  21209. .evaCss {
  21210. flex-direction: column !important;
  21211. align-items: center !important;
  21212. }
  21213. .elist_input {
  21214. width: 90% !important;
  21215. }
  21216. .dialog_diy1 >>> .el-dialog {
  21217. width: 100% !important;
  21218. }
  21219. .rightWidthCss {
  21220. width: 100% !important;
  21221. }
  21222. .dialog_diy3 >>> .el-dialog {
  21223. width: 100% !important;
  21224. }
  21225. .addToolCss {
  21226. right: 0 !important;
  21227. width: 100% !important;
  21228. min-width: unset !important;
  21229. }
  21230. }
  21231. .evaCssMax {
  21232. flex-direction: column !important;
  21233. align-items: center !important;
  21234. }
  21235. .dialog_diy >>> .el-dialog {
  21236. margin-top: 10vh !important;
  21237. }
  21238. .body_student {
  21239. width: 77%;
  21240. height: 100%;
  21241. position: absolute;
  21242. left: 22%;
  21243. top: 0;
  21244. }
  21245. .student_head {
  21246. width: 100%;
  21247. margin: 20px auto 0;
  21248. padding-bottom: 20px;
  21249. display: flex;
  21250. flex-direction: column;
  21251. flex-wrap: nowrap;
  21252. align-items: flex-start;
  21253. justify-content: flex-start;
  21254. }
  21255. .pb_left {
  21256. width: 15%;
  21257. margin-right: 10px;
  21258. background: rgb(255, 255, 255);
  21259. position: fixed;
  21260. height: calc(100% - 40px);
  21261. border-radius: 20px;
  21262. padding-bottom: 15px;
  21263. box-sizing: border-box;
  21264. }
  21265. .wheel > img,
  21266. .project > img,
  21267. .star > img,
  21268. .evaluate > img,
  21269. .up_photo > img,
  21270. .chapter_add > img,
  21271. .deleteWord > img,
  21272. .question > img,
  21273. .homework > img {
  21274. width: 100%;
  21275. height: 100%;
  21276. }
  21277. .upCover > img {
  21278. width: 131px;
  21279. height: 69px;
  21280. object-fit: cover;
  21281. }
  21282. .upCover {
  21283. width: calc(100% / 3.5);
  21284. position: relative;
  21285. margin: 0 15px 10px 0;
  21286. display: flex;
  21287. flex-direction: column;
  21288. flex-wrap: nowrap;
  21289. justify-content: center;
  21290. align-content: center;
  21291. align-items: center;
  21292. height: fit-content;
  21293. }
  21294. .upCover2 {
  21295. width: 100%;
  21296. position: relative;
  21297. margin: 0 15px 10px 0;
  21298. display: flex;
  21299. flex-direction: column;
  21300. flex-wrap: nowrap;
  21301. justify-content: center;
  21302. align-content: center;
  21303. align-items: center;
  21304. }
  21305. .upCover2 > img {
  21306. width: 100%;
  21307. height: 90px;
  21308. object-fit: contain;
  21309. }
  21310. .chapter_add {
  21311. width: 120px;
  21312. position: relative;
  21313. text-align: center;
  21314. }
  21315. .isAddThings {
  21316. margin-top: 20px;
  21317. position: relative;
  21318. text-align: center;
  21319. background: #f7f8fa;
  21320. height: 90px;
  21321. width: 90px;
  21322. display: flex;
  21323. flex-direction: column;
  21324. justify-content: center;
  21325. }
  21326. .deleteWord {
  21327. width: 22px;
  21328. height: 22px;
  21329. position: absolute;
  21330. right: -5px;
  21331. top: -5px;
  21332. cursor: pointer;
  21333. }
  21334. .box_course {
  21335. /* width: 60%; */
  21336. width: calc(100% - 300px);
  21337. }
  21338. .wheel {
  21339. width: 100%;
  21340. /* height: 100%; */
  21341. height: 650px;
  21342. }
  21343. .right_box {
  21344. display: flex;
  21345. flex-direction: column;
  21346. margin-left: 30px;
  21347. justify-content: space-around;
  21348. }
  21349. .right_box_title {
  21350. font-size: 23px;
  21351. }
  21352. .people {
  21353. display: flex;
  21354. }
  21355. .student_body {
  21356. width: 100%;
  21357. margin: 0 auto;
  21358. margin-top: 10px;
  21359. padding: 0 0 20px;
  21360. }
  21361. .study_top {
  21362. margin-top: 100px;
  21363. width: 100%;
  21364. height: auto;
  21365. padding-bottom: 20px;
  21366. margin-left: 2px;
  21367. min-height: 90%;
  21368. }
  21369. .study_top .checkbox {
  21370. display: flex;
  21371. align-items: center;
  21372. padding: 15px 0 15px 30px;
  21373. flex: 0 0 auto;
  21374. font-weight: bold;
  21375. border-bottom: 1px solid #eee;
  21376. }
  21377. .study_top .check {
  21378. padding-bottom: 5px;
  21379. text-align: center;
  21380. cursor: pointer;
  21381. height: 30px;
  21382. box-sizing: border-box;
  21383. display: flex;
  21384. }
  21385. .study_top .checked {
  21386. border-bottom: 4px solid #3fc6a0;
  21387. padding-bottom: 5px;
  21388. color: #3fc6a0;
  21389. display: flex;
  21390. height: 35px;
  21391. }
  21392. .study_top .checked > div,
  21393. .study_top .check > div {
  21394. margin-right: 5px;
  21395. }
  21396. .videoTop {
  21397. display: flex;
  21398. flex-direction: row;
  21399. justify-content: space-between;
  21400. background: #fff;
  21401. align-items: center;
  21402. width: 95%;
  21403. padding: 20px;
  21404. }
  21405. .filebox {
  21406. display: flex;
  21407. flex-wrap: wrap;
  21408. flex-direction: column;
  21409. padding: 0 0 5px;
  21410. position: relative;
  21411. }
  21412. .filebox:before {
  21413. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21414. position: absolute;
  21415. top: 20px;
  21416. left: 13px;
  21417. border-left: 2px dotted #cad1dc;
  21418. height: calc(100% - 15px);
  21419. }
  21420. .toolHeng2 > div:last-child::before {
  21421. height: calc(100% - 43px);
  21422. }
  21423. .filebox .tooldetail {
  21424. width: calc(100%);
  21425. margin: 0px 12px;
  21426. padding: 12px;
  21427. line-height: 30px;
  21428. word-break: break-word;
  21429. background: #ffffff;
  21430. border-radius: 8px 8px 8px 8px;
  21431. opacity: 1;
  21432. border: 1px solid #cad1dc;
  21433. overflow:hidden;
  21434. box-sizing:border-box;
  21435. }
  21436. .file {
  21437. display: flex;
  21438. flex-direction: column;
  21439. align-items: center;
  21440. justify-content: center;
  21441. cursor: pointer;
  21442. width: 200px;
  21443. }
  21444. .file div {
  21445. margin-top: 10px;
  21446. width: 150px;
  21447. text-align: center;
  21448. overflow: hidden;
  21449. white-space: nowrap;
  21450. text-overflow: ellipsis;
  21451. }
  21452. .media {
  21453. display: flex;
  21454. flex-direction: column;
  21455. align-items: center;
  21456. justify-content: center;
  21457. margin: 0 20px 20px 0;
  21458. cursor: pointer;
  21459. margin: 12px 0 5px 15px;
  21460. overflow: hidden;
  21461. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21462. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21463. box-sizing: border-box;
  21464. }
  21465. .media img {
  21466. height: 90px;
  21467. width: 160px;
  21468. object-fit: cover;
  21469. }
  21470. .media .title {
  21471. padding: 5px;
  21472. text-align: left;
  21473. width: 100%;
  21474. box-sizing: border-box;
  21475. }
  21476. .media .btn {
  21477. width: 100%;
  21478. height: 35px;
  21479. line-height: 35px;
  21480. color: #fff;
  21481. background: #606060;
  21482. text-align: center;
  21483. overflow: hidden;
  21484. white-space: nowrap;
  21485. text-overflow: ellipsis;
  21486. }
  21487. .detail_content_top {
  21488. width: 100%;
  21489. padding: 25px 0 25px 0;
  21490. }
  21491. .detail_title {
  21492. text-align: center;
  21493. font-size: 24px;
  21494. }
  21495. .detail_time {
  21496. font-size: 13px;
  21497. padding: 15px 0 0 40px;
  21498. }
  21499. .detail_content {
  21500. line-height: 2pc;
  21501. width: 90%;
  21502. margin: 0 auto;
  21503. padding-top: 30px;
  21504. text-indent: 30px;
  21505. overflow: auto;
  21506. height: 200px;
  21507. }
  21508. .score_box >>> .el-rate {
  21509. margin-left: 10px;
  21510. }
  21511. .dialog_change >>> .el-dialog {
  21512. border-radius: 5px;
  21513. }
  21514. .dialog_change >>> .el-dialog__header {
  21515. background: #f2f2f2;
  21516. text-align: center;
  21517. }
  21518. .dialog_change >>> .el-dialog__title {
  21519. line-height: 5px;
  21520. }
  21521. .dialog_change >>> .el-dialog__body {
  21522. background: #fff;
  21523. padding: 10px 20px;
  21524. }
  21525. .score_box {
  21526. display: flex;
  21527. align-items: center;
  21528. margin-bottom: 18px;
  21529. margin-top: 20px;
  21530. }
  21531. .up_photo {
  21532. width: 120px;
  21533. cursor: pointer;
  21534. margin-top: 10px;
  21535. }
  21536. .up_photo2 {
  21537. width: 180px;
  21538. box-sizing: border-box;
  21539. min-width: 180px;
  21540. height: 180px;
  21541. max-height: 180px;
  21542. min-height: 180px;
  21543. cursor: pointer;
  21544. display: flex;
  21545. flex-direction: column;
  21546. align-items: center;
  21547. justify-content: center;
  21548. background: rgb(242, 246, 255);
  21549. /* padding: 25px; */
  21550. margin-bottom: 10px;
  21551. }
  21552. .up_photo2 img {
  21553. width: 50%;
  21554. height: auto;
  21555. }
  21556. .up_photo2 span {
  21557. color: #898989;
  21558. }
  21559. .plworkBox {
  21560. display: flex;
  21561. align-items: center;
  21562. margin-top: 10px;
  21563. flex-wrap: wrap;
  21564. }
  21565. .upload_send {
  21566. margin: 30px auto 30px;
  21567. width: 60%;
  21568. background: #3681fc;
  21569. text-align: center;
  21570. height: 35px;
  21571. line-height: 35px;
  21572. color: #fff;
  21573. border-radius: 5px;
  21574. cursor: pointer;
  21575. }
  21576. .marginT {
  21577. margin-top: 20px;
  21578. }
  21579. .cd_content_steps {
  21580. display: flex;
  21581. width: 90%;
  21582. justify-content: space-around;
  21583. border-top: 1px solid #eeeeee;
  21584. }
  21585. .cd_steps_box {
  21586. display: flex;
  21587. justify-content: center;
  21588. align-items: center;
  21589. flex-direction: column;
  21590. cursor: pointer;
  21591. }
  21592. .first {
  21593. display: flex;
  21594. align-items: center;
  21595. margin: 15px 0 20px 0;
  21596. font-size: 20px;
  21597. }
  21598. .first > div:nth-child(2) {
  21599. font-size: 16px !important;
  21600. padding-left: 10px;
  21601. line-height: 26px;
  21602. box-sizing: border-box;
  21603. }
  21604. .blue_box_one {
  21605. text-align: center;
  21606. color: #fff;
  21607. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  21608. border-radius: 7px;
  21609. margin: 10px;
  21610. cursor: pointer;
  21611. width: 95%;
  21612. height: 45px;
  21613. display: flex;
  21614. flex-direction: row;
  21615. justify-content: flex-start;
  21616. align-items: center;
  21617. }
  21618. .blue_box_one > div:nth-child(1) {
  21619. line-height: 30px;
  21620. margin: 0 5px 0 10px;
  21621. width: 30%;
  21622. min-width: 70px;
  21623. border-radius: 4px;
  21624. }
  21625. .blue_box_one > div:nth-child(2) {
  21626. white-space: nowrap;
  21627. text-overflow: ellipsis;
  21628. overflow: hidden;
  21629. word-break: break-all;
  21630. width: 70%;
  21631. text-align: left;
  21632. margin-right: 10px;
  21633. max-width: calc(100% - 85px);
  21634. }
  21635. .blue_box_one > div:nth-child(2):hover {
  21636. overflow: hidden;
  21637. text-overflow: ellipsis;
  21638. white-space: nowrap;
  21639. cursor: pointer;
  21640. }
  21641. .upFile {
  21642. margin: 0 auto;
  21643. width: 120px;
  21644. background: #3681fc;
  21645. color: #fff;
  21646. height: 30px;
  21647. text-align: center;
  21648. line-height: 30px;
  21649. border-radius: 5px;
  21650. font-size: 14px;
  21651. cursor: pointer;
  21652. }
  21653. .courseTitle {
  21654. width: 85%;
  21655. margin: 10px auto 26px auto;
  21656. display: flex;
  21657. flex-direction: row;
  21658. align-items: center;
  21659. justify-content: space-between;
  21660. text-align: center;
  21661. }
  21662. .courseTitle .ctitle {
  21663. font-size: 20px;
  21664. font-weight: bold;
  21665. color: #0e1e33;
  21666. white-space: nowrap;
  21667. overflow: hidden;
  21668. text-overflow: ellipsis;
  21669. }
  21670. .inviteBox {
  21671. font-size: 14px;
  21672. /* margin-top: 5px; */
  21673. color: #00000099;
  21674. text-align: center;
  21675. }
  21676. .courseTitle >>> .el-tooltip {
  21677. width: 100%;
  21678. white-space: nowrap;
  21679. overflow: hidden;
  21680. text-overflow: ellipsis;
  21681. word-break: break-word;
  21682. }
  21683. .ml {
  21684. margin-left: 20px;
  21685. color: #5b7dba;
  21686. border-left: 3px solid #5b7dba;
  21687. padding-left: 5px;
  21688. font-weight: bold;
  21689. }
  21690. .return {
  21691. width: 2rem;
  21692. height: 2rem;
  21693. cursor: pointer;
  21694. }
  21695. .return > img {
  21696. width: 100%;
  21697. height: 100%;
  21698. }
  21699. .returnBtn {
  21700. /* width: 86px;
  21701. height: 36px; */
  21702. background: #3681fc;
  21703. border-radius: 4px;
  21704. color: #fff;
  21705. text-align: center;
  21706. padding: 8px 10px;
  21707. /* line-height: 36px; */
  21708. margin-right: 20px;
  21709. cursor: pointer;
  21710. font-size: 14px;
  21711. font-weight: 400;
  21712. display: flex;
  21713. flex-direction: row;
  21714. flex-wrap: nowrap;
  21715. align-items: center;
  21716. justify-content: center;
  21717. }
  21718. .reBtnIcon,
  21719. .commentIcon,
  21720. .vedioIcon,
  21721. .vedioIcon1 {
  21722. /* width: 36px; */
  21723. height: 36px;
  21724. border-radius: 4px;
  21725. position: relative;
  21726. /* background: #e0eafb; */
  21727. background: #0061ff;
  21728. cursor: pointer;
  21729. margin-right: 12px;
  21730. display: flex;
  21731. align-items: center;
  21732. padding: 0 10px;
  21733. box-sizing: border-box;
  21734. font-size: 14px;
  21735. color: #fff;
  21736. }
  21737. .reBtnIcon::before,
  21738. .commentIcon::before,
  21739. .vedioIcon::before,
  21740. .vedioIcon1::before {
  21741. content: "";
  21742. display: block;
  21743. background-size: 100% 100%;
  21744. background-repeat: no-repeat;
  21745. width: 20px;
  21746. height: 20px;
  21747. margin-right: 5px;
  21748. /* position: absolute; */
  21749. /* top: 8px;
  21750. left: 8px; */
  21751. }
  21752. .vedioIcon1 {
  21753. background: #f63564;
  21754. }
  21755. .reBtnIcon::before {
  21756. background-image: url("../assets/icon/newIcons/refresh.png");
  21757. }
  21758. .commentIcon::before {
  21759. background-image: url("../assets/icon/newIcons/comment.png");
  21760. }
  21761. .vedioIcon::before {
  21762. background-image: url("../assets/icon/newIcons/transcribe.png");
  21763. }
  21764. .vedioIcon1::before {
  21765. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  21766. background-image: url("../assets/icon/newIcons/transcribe.png");
  21767. }
  21768. .tool {
  21769. display: flex;
  21770. flex-direction: column;
  21771. flex-wrap: nowrap;
  21772. width: 13%;
  21773. margin: 0 30px;
  21774. align-items: center;
  21775. position: relative;
  21776. padding: 10px 25px;
  21777. cursor: pointer;
  21778. }
  21779. .whiteBIcon {
  21780. width: 150px;
  21781. }
  21782. .whiteBIcon > img {
  21783. width: 100%;
  21784. height: 100%;
  21785. }
  21786. .mask {
  21787. background-color: rgba(0, 0, 0, 0);
  21788. position: fixed;
  21789. top: 0;
  21790. left: 0;
  21791. width: 100%;
  21792. height: 100%;
  21793. z-index: 20000;
  21794. display: flex;
  21795. align-items: center;
  21796. justify-content: center;
  21797. }
  21798. .progressBox {
  21799. width: 500px;
  21800. height: 180px;
  21801. background: #fff;
  21802. border-radius: 10px;
  21803. box-shadow: 0 0 6px 1px #bfbfbf;
  21804. display: flex;
  21805. align-items: center;
  21806. justify-content: center;
  21807. flex-direction: column;
  21808. position: relative;
  21809. color: #6c6c6c;
  21810. }
  21811. .progressBox >>> .el-progress-bar__outer {
  21812. background-color: #d1dfff !important;
  21813. }
  21814. .progressBox .lbox {
  21815. height: 50px;
  21816. font-size: 19px;
  21817. display: flex;
  21818. align-items: center;
  21819. color: #747474;
  21820. }
  21821. .progressBox .lbox img {
  21822. width: 40px;
  21823. margin-right: 20px;
  21824. }
  21825. .closeCss {
  21826. position: absolute;
  21827. top: 8px;
  21828. right: 8px;
  21829. cursor: pointer;
  21830. width: 20px;
  21831. height: 20px;
  21832. }
  21833. .closeCss > img {
  21834. width: 100%;
  21835. height: 100%;
  21836. }
  21837. .uploadVedio {
  21838. display: flex;
  21839. flex-direction: column;
  21840. flex-wrap: nowrap;
  21841. justify-content: center;
  21842. align-items: center;
  21843. margin: 0 15px 10px 0;
  21844. }
  21845. .uploadVedio > img {
  21846. width: 30px;
  21847. height: 30px;
  21848. }
  21849. .uploadVedio > span {
  21850. white-space: nowrap;
  21851. overflow: hidden;
  21852. text-overflow: ellipsis;
  21853. width: 75px;
  21854. margin-top: 7px;
  21855. }
  21856. .picName {
  21857. white-space: nowrap;
  21858. overflow: hidden;
  21859. text-overflow: ellipsis;
  21860. width: 75px;
  21861. margin-top: 7px;
  21862. }
  21863. .new_top {
  21864. display: flex;
  21865. background: #fff;
  21866. flex-direction: row;
  21867. justify-content: flex-start;
  21868. align-items: center;
  21869. height: 60px;
  21870. position: fixed;
  21871. top: 20px;
  21872. left: 22%;
  21873. width: 77%;
  21874. z-index: 999;
  21875. border-radius: 12px 12px 0 0;
  21876. border-bottom: 1px solid #cad1dc;
  21877. padding: 10px 0;
  21878. }
  21879. .new_topFixed {
  21880. width: 100%;
  21881. height: 40px;
  21882. position: fixed;
  21883. top: 0px;
  21884. display: block;
  21885. background: #f2f2f2;
  21886. z-index: 998;
  21887. }
  21888. .before {
  21889. position: absolute;
  21890. background: #c3dad4;
  21891. width: 6px;
  21892. height: 100%;
  21893. }
  21894. .courseIndex {
  21895. display: flex;
  21896. flex-direction: row;
  21897. align-items: center;
  21898. width: calc(100% - 745px);
  21899. }
  21900. .courseIndex > div:nth-child(1) {
  21901. margin: 0 0 0 10px;
  21902. font-size: 20px;
  21903. min-width: 100px;
  21904. font-weight: bold;
  21905. border-left: 4px solid #3363b9;
  21906. height: 32px;
  21907. text-align: center;
  21908. line-height: 35px;
  21909. }
  21910. .courseIndex > div:nth-child(2) {
  21911. font-size: 20px;
  21912. /* width: 300px; */
  21913. max-width: calc(100% - 105px);
  21914. white-space: nowrap;
  21915. overflow: hidden;
  21916. text-overflow: ellipsis;
  21917. }
  21918. .courseIndex > div:nth-child(3) {
  21919. border-bottom: 1px solid #d7d7d7;
  21920. padding-bottom: 5px;
  21921. background: #3681fc;
  21922. width: 55px;
  21923. min-width: 55px;
  21924. border-radius: 5px;
  21925. color: #fff;
  21926. text-align: center;
  21927. height: 20px;
  21928. line-height: 26px;
  21929. font-size: 14px;
  21930. margin: 0 0 0 10px;
  21931. }
  21932. .course_text {
  21933. padding: 20px 0 0 15px;
  21934. text-indent: 30px;
  21935. width: 80%;
  21936. min-height: 20px;
  21937. }
  21938. .vedioList {
  21939. background: #f2f2f2;
  21940. border: 1px solid #ececec;
  21941. /* width: 38.8%; */
  21942. /* width: 300px; */
  21943. width: 100%;
  21944. height: 445px;
  21945. border-radius: 10px;
  21946. overflow: hidden;
  21947. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  21948. }
  21949. .vedioNav {
  21950. margin: 10px 0 0 15px;
  21951. border-bottom: 1px solid #d7d7d7;
  21952. padding-bottom: 5px;
  21953. background: #3681fc;
  21954. width: 55px;
  21955. min-width: 55px;
  21956. border-radius: 5px;
  21957. color: #fff;
  21958. text-align: center;
  21959. height: 20px;
  21960. line-height: 26px;
  21961. font-size: 14px;
  21962. }
  21963. .queTop {
  21964. display: flex;
  21965. padding: 20px 0 20px 30px;
  21966. width: 100%;
  21967. flex-direction: row;
  21968. justify-content: flex-start;
  21969. align-items: self-start;
  21970. box-sizing: border-box;
  21971. }
  21972. .queTopTitle {
  21973. display: flex;
  21974. flex-direction: row;
  21975. flex-wrap: nowrap;
  21976. align-items: center;
  21977. font-weight: bold;
  21978. font-size: 20px;
  21979. color: rgb(14, 30, 51);
  21980. }
  21981. .queTopTitle::before {
  21982. content: "";
  21983. width: 2px;
  21984. height: 22px;
  21985. background: #3681fc;
  21986. border-radius: 3px;
  21987. display: block;
  21988. margin: 2px 6px 0 0;
  21989. }
  21990. .queTopRight {
  21991. display: flex;
  21992. flex-direction: row;
  21993. flex-wrap: nowrap;
  21994. align-items: center;
  21995. }
  21996. .queTopClose {
  21997. margin-right: 20px;
  21998. cursor: pointer;
  21999. position: relative;
  22000. display: flex;
  22001. }
  22002. .closeImg,
  22003. .openImg {
  22004. width: 25px;
  22005. height: 25px;
  22006. position: absolute;
  22007. left: -20px;
  22008. top: -1px;
  22009. }
  22010. .closeImg > img,
  22011. .openImg > img {
  22012. width: 100%;
  22013. height: 100%;
  22014. }
  22015. .question {
  22016. width: 40px;
  22017. margin-right: 10px;
  22018. margin-top: 7px;
  22019. flex-shrink: 0;
  22020. }
  22021. .queTitle {
  22022. margin-left: 5px;
  22023. font-size: 25px;
  22024. display: flex;
  22025. /* align-items: center; */
  22026. }
  22027. .queTitle > div:nth-child(1){
  22028. width: 120px;
  22029. flex-shrink: 0;
  22030. }
  22031. .addEditor {
  22032. width: 100px;
  22033. height: 30px;
  22034. background: #42cda6;
  22035. color: #fff;
  22036. border-radius: 5px;
  22037. text-align: center;
  22038. line-height: 30px;
  22039. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22040. cursor: pointer;
  22041. }
  22042. /* .vedioName {
  22043. cursor: pointer;
  22044. margin: 0px 0px 10px 5px;
  22045. white-space: nowrap;
  22046. overflow: hidden;
  22047. text-overflow: ellipsis;
  22048. width: 100%;
  22049. } */
  22050. .vedioTime {
  22051. width: 35px;
  22052. position: absolute;
  22053. color: #fff;
  22054. bottom: 0px;
  22055. right: 0px;
  22056. text-align: center;
  22057. background: #46411f;
  22058. height: 20px;
  22059. font-size: 14px;
  22060. line-height: 20px;
  22061. }
  22062. .homework {
  22063. width: 200px;
  22064. display: flex;
  22065. flex-direction: column;
  22066. flex-wrap: nowrap;
  22067. align-items: center;
  22068. cursor: pointer;
  22069. }
  22070. .homebox {
  22071. display: flex;
  22072. flex-wrap: wrap;
  22073. flex-direction: row;
  22074. justify-content: flex-start;
  22075. align-items: center;
  22076. padding: 15px 0;
  22077. }
  22078. .isChooseActive {
  22079. color: #3681fc !important;
  22080. font-weight: bold !important;
  22081. }
  22082. .chooseWho {
  22083. display: flex;
  22084. width: 100%;
  22085. flex-direction: row;
  22086. flex-wrap: nowrap;
  22087. justify-content: flex-start;
  22088. padding-bottom: 10px;
  22089. }
  22090. .chooseWho > div {
  22091. cursor: pointer;
  22092. padding-bottom: 10px;
  22093. margin: 0 30px 0 0;
  22094. font-weight: 400;
  22095. color: #0e1e33;
  22096. }
  22097. .addPoint > div > img {
  22098. cursor: pointer;
  22099. width: 85px;
  22100. border-radius: 15px;
  22101. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22102. }
  22103. .addPoint > div {
  22104. display: flex;
  22105. flex-direction: column;
  22106. flex-wrap: nowrap;
  22107. align-items: center;
  22108. }
  22109. .isBorder > div {
  22110. margin: 0 0 10px 0;
  22111. align-items: flex-start !important;
  22112. }
  22113. .noiframeBox {
  22114. display: flex;
  22115. flex-wrap: wrap;
  22116. }
  22117. .iframeBox iframe {
  22118. width: 100%;
  22119. height: 800px;
  22120. border: none;
  22121. margin-bottom: 20px;
  22122. border: 1px solid #ccc;
  22123. }
  22124. .upload_toolBtn {
  22125. background: #3681fc;
  22126. color: #fff;
  22127. width: 110px;
  22128. text-align: center;
  22129. height: 35px;
  22130. line-height: 35px;
  22131. font-size: 14px;
  22132. border-radius: 5px;
  22133. cursor: pointer;
  22134. position: absolute;
  22135. right: 10px;
  22136. bottom: 0;
  22137. }
  22138. .binfo_input,
  22139. .pj {
  22140. font: inherit;
  22141. color: currentColor;
  22142. width: 100%;
  22143. margin: 0;
  22144. padding: 15px 14px;
  22145. display: block;
  22146. min-width: 0;
  22147. outline: none;
  22148. box-sizing: content-box;
  22149. background: none;
  22150. -webkit-tap-highlight-color: transparent;
  22151. border: 1px solid rgba(0, 0, 0, 0.23);
  22152. border-radius: 4px;
  22153. box-sizing: border-box;
  22154. resize: none;
  22155. }
  22156. .binfo_input:focus-visible {
  22157. border: 1px solid rgba(61, 103, 188);
  22158. }
  22159. .dialog_diy >>> .el-dialog__header,
  22160. .dialog_diy1 >>> .el-dialog__header {
  22161. background: #454545 !important;
  22162. padding: 15px 20px;
  22163. }
  22164. .dialog_diy >>> .el-dialog__title,
  22165. .dialog_diy1 >>> .el-dialog__title {
  22166. color: #fff;
  22167. }
  22168. .dialog_diy >>> .el-dialog__headerbtn,
  22169. .dialog_diy1 >>> .el-dialog__headerbtn {
  22170. top: 19px;
  22171. }
  22172. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22173. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22174. color: #fff;
  22175. }
  22176. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22177. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22178. color: #fff;
  22179. }
  22180. .dialog_diy1 >>> .el-dialog__body {
  22181. padding: 0;
  22182. }
  22183. .dialog_diy >>> .el-dialog__body,
  22184. .dialog_diy >>> .el-dialog__footer,
  22185. .dialog_diy1 >>> .el-dialog__footer {
  22186. background: #fafafa;
  22187. }
  22188. .a_addBox {
  22189. padding: 0 0 0 15px;
  22190. }
  22191. .a_add_box {
  22192. padding: 10px;
  22193. background: #fff;
  22194. margin-bottom: 10px;
  22195. border-radius: 5px;
  22196. box-shadow: 0 0 5px 0 #d5d5d5;
  22197. }
  22198. .a_add_head {
  22199. display: flex;
  22200. align-items: flex-start;
  22201. /* justify-content: space-between; */
  22202. flex-direction: column;
  22203. /* flex-direction: row; */
  22204. margin: 10px 0 20px 0;
  22205. font-size: 18px;
  22206. width: 100%;
  22207. }
  22208. .askIndex {
  22209. background: #3681fc;
  22210. border-radius: 50%;
  22211. color: #fff;
  22212. width: 25px;
  22213. height: 25px;
  22214. min-width: 25px;
  22215. min-height: 25px;
  22216. text-align: center;
  22217. line-height: 25px;
  22218. margin-right: 5px;
  22219. }
  22220. .a_add_head .a_add_head_input {
  22221. width: 300px;
  22222. }
  22223. .a_add_head .a_add_head_div {
  22224. display: flex;
  22225. align-items: center;
  22226. justify-content: space-between;
  22227. }
  22228. .a_add_body {
  22229. display: flex;
  22230. align-items: center;
  22231. }
  22232. .a_add_input {
  22233. display: flex;
  22234. align-items: center;
  22235. flex-wrap: wrap;
  22236. width: 100%;
  22237. }
  22238. .a_add_input >>> .el-radio-group,
  22239. .a_add_input >>> .el-checkbox-group {
  22240. width: 100%;
  22241. }
  22242. .a_add_input >>> .el-radio,
  22243. .a_add_input >>> .el-checkbox {
  22244. display: flex;
  22245. flex-direction: row;
  22246. flex-wrap: nowrap;
  22247. align-items: center;
  22248. padding: 15px 0;
  22249. }
  22250. .a_add_input >>> .el-radio:not(:last-child),
  22251. .a_add_input >>> .el-checkbox:not(:last-child) {
  22252. width: 100%;
  22253. border-bottom: 1px solid #efefef;
  22254. }
  22255. .redioStyle >>> .el-radio__label {
  22256. font-size: 18px;
  22257. }
  22258. .redioStyle >>> .el-radio__label > span,
  22259. .redioStyle >>> .el-checkbox__label > span {
  22260. word-break: break-all;
  22261. white-space: normal;
  22262. }
  22263. .redioStyle >>> .el-checkbox__label {
  22264. font-size: 18px;
  22265. }
  22266. .toolHeng2 {
  22267. width: 100%;
  22268. padding-left: 15px;
  22269. box-sizing: border-box;
  22270. }
  22271. .workNav {
  22272. font-size: 20px;
  22273. font-weight: bold;
  22274. color: #0e1e33;
  22275. display: flex;
  22276. flex-direction: row;
  22277. flex-wrap: nowrap;
  22278. align-items: center;
  22279. padding: 15px 0 15px 0;
  22280. }
  22281. .workNav::before {
  22282. content: "";
  22283. width: 2px;
  22284. height: 22px;
  22285. background: #3681fc;
  22286. border-radius: 3px;
  22287. display: block;
  22288. margin: 2px 6px 0 0;
  22289. }
  22290. .toolHeng {
  22291. display: flex;
  22292. flex-direction: row;
  22293. flex-wrap: wrap;
  22294. justify-content: flex-start;
  22295. align-items: center;
  22296. width: 100%;
  22297. }
  22298. .toolHeng > div {
  22299. padding-left: 20px;
  22300. }
  22301. .isWidth {
  22302. width: 20%;
  22303. }
  22304. .textTitle {
  22305. display: flex;
  22306. flex-direction: row;
  22307. flex-wrap: nowrap;
  22308. align-items: center;
  22309. width: 95%;
  22310. }
  22311. .textTitle >>> .el-form-item__label {
  22312. font-size: 22px;
  22313. color: #918f8f;
  22314. width: 100px;
  22315. }
  22316. .textTitle >>> .el-form-item__content {
  22317. width: calc(100% - 100px);
  22318. }
  22319. .textCss >>> .el-dialog {
  22320. width: 800px !important;
  22321. height: 400px;
  22322. background: #fafafa;
  22323. }
  22324. .textCss >>> .el-dialog__body {
  22325. margin: 55px 8% 0 8%;
  22326. padding: 0 !important;
  22327. }
  22328. .textCss >>> .el-dialog__footer {
  22329. padding-top: 38px;
  22330. }
  22331. .toolsCss >>> .el-dialog__body {
  22332. padding: 20px;
  22333. }
  22334. .lineCss >>> .el-dialog__body {
  22335. display: flex;
  22336. flex-direction: row;
  22337. align-items: center;
  22338. justify-content: center;
  22339. }
  22340. .newNav {
  22341. display: flex;
  22342. flex-direction: row;
  22343. align-items: baseline;
  22344. justify-content: flex-start;
  22345. }
  22346. .navListItem {
  22347. width: calc(100% - 20px);
  22348. height: 50px;
  22349. margin: 0px auto 10px;
  22350. display: flex;
  22351. flex-direction: row;
  22352. flex-wrap: nowrap;
  22353. align-items: center;
  22354. justify-content: space-between;
  22355. background: #f0f4fa;
  22356. border-radius: 6px 6px 6px 6px;
  22357. }
  22358. .navText {
  22359. cursor: pointer;
  22360. white-space: nowrap;
  22361. overflow: hidden;
  22362. text-overflow: ellipsis;
  22363. width: 220px;
  22364. padding: 0 10px;
  22365. font-weight: 400;
  22366. color: #0e1e33;
  22367. }
  22368. .downIcon {
  22369. width: 20px;
  22370. min-width: 20px;
  22371. height: 20px;
  22372. margin-right: 15px;
  22373. cursor: pointer;
  22374. }
  22375. .downIcon > img {
  22376. width: 100%;
  22377. height: 100%;
  22378. }
  22379. .noVedio {
  22380. display: flex;
  22381. flex-direction: row;
  22382. justify-content: center;
  22383. align-content: center;
  22384. }
  22385. .noNavText {
  22386. cursor: pointer;
  22387. margin: 0px 0px 10px 5px;
  22388. width: 112px;
  22389. }
  22390. .listNoVedio {
  22391. margin: 0 0 0 30px;
  22392. width: 97%;
  22393. }
  22394. .video-player >>> .video-js {
  22395. height: 100%;
  22396. }
  22397. .hangVedioList {
  22398. width: 90% !important;
  22399. height: 150px !important;
  22400. margin: 20px 0 0 30px;
  22401. }
  22402. .hangVedio {
  22403. width: 100%;
  22404. height: 170px !important;
  22405. align-items: flex-start !important;
  22406. }
  22407. .hangHand {
  22408. height: 150px !important;
  22409. }
  22410. .twoChild {
  22411. width: 95%;
  22412. margin: 10px;
  22413. border-radius: 5px;
  22414. background: #f2f2f2;
  22415. display: flex;
  22416. flex-direction: column;
  22417. flex-wrap: nowrap;
  22418. justify-content: flex-start;
  22419. align-items: flex-start;
  22420. transition: all 0.5s;
  22421. overflow: hidden;
  22422. height: 0;
  22423. background: #e7f3ff;
  22424. }
  22425. .twoChild > div:nth-child(1) {
  22426. margin-top: 5px;
  22427. }
  22428. .navChild {
  22429. width: 100%;
  22430. cursor: pointer;
  22431. margin-bottom: 10px;
  22432. position: relative;
  22433. }
  22434. .navChild img {
  22435. position: absolute;
  22436. right: 11px;
  22437. width: 15px;
  22438. top: 50%;
  22439. transform: translateY(-50%);
  22440. }
  22441. .navActive,
  22442. .toolActive {
  22443. height: auto !important;
  22444. overflow: auto !important;
  22445. /* padding-bottom: 16px; */
  22446. }
  22447. .toolActive {
  22448. padding: 0;
  22449. }
  22450. .navTask {
  22451. display: flex;
  22452. flex-direction: row;
  22453. flex-wrap: nowrap;
  22454. align-items: center;
  22455. align-content: flex-start;
  22456. height: 40px;
  22457. justify-content: flex-start;
  22458. padding: 0 10px;
  22459. width: 100%;
  22460. box-sizing: border-box;
  22461. }
  22462. .navTaskname {
  22463. white-space: nowrap;
  22464. text-overflow: ellipsis;
  22465. overflow: hidden;
  22466. word-break: break-all;
  22467. padding-left: 5px;
  22468. }
  22469. .openTaskActive {
  22470. /* background-color: #e0eafb !important;
  22471. color: #0061ff; */
  22472. color:#fff;
  22473. background: rgb(55, 129, 252) !important;
  22474. }
  22475. .iframeName {
  22476. margin: 5px 0;
  22477. border-left: 4px solid #41c4a4;
  22478. padding-left: 4px;
  22479. }
  22480. .toolTitle {
  22481. margin: 0px 0px 20px;
  22482. font-size: 20px;
  22483. font-weight: 500;
  22484. border-left: 4px solid #41c4a4;
  22485. padding-left: 4px;
  22486. }
  22487. .cru_selectBox {
  22488. overflow: auto;
  22489. width: 95%;
  22490. margin: 17px auto 0;
  22491. height: calc(100% - 40px - 21px - 20px - 17px);
  22492. background: #fff;
  22493. border-radius: 8px;
  22494. }
  22495. .cru_selectBox::-webkit-scrollbar,
  22496. .study_top::-webkit-scrollbar,
  22497. .textContent::-webkit-scrollbar {
  22498. /*滚动条整体样式*/
  22499. width: 6px;
  22500. /*高宽分别对应横竖滚动条的尺寸*/
  22501. height: 6px;
  22502. }
  22503. /*定义滚动条轨道 内阴影+圆角*/
  22504. .cru_selectBox::-webkit-scrollbar-track,
  22505. .study_top::-webkit-scrollbar-track,
  22506. .textContent::-webkit-scrollbar {
  22507. border-radius: 10px;
  22508. background-color: #b8bdc9;
  22509. }
  22510. /*定义滑块 内阴影+圆角*/
  22511. .cru_selectBox::-webkit-scrollbar-thumb,
  22512. .study_top::-webkit-scrollbar-thumb,
  22513. .textContent::-webkit-scrollbar-thumb {
  22514. border-radius: 10px;
  22515. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22516. background-color: #2c5ab3;
  22517. }
  22518. .vedioBox {
  22519. border-radius: 0 0 20px 20px;
  22520. background: #fff;
  22521. overflow: auto;
  22522. }
  22523. .taskBox {
  22524. width: 98%;
  22525. background: #f0f4fa;
  22526. margin: 10px auto;
  22527. padding: 0 10px;
  22528. border-radius: 4px;
  22529. box-sizing: border-box;
  22530. }
  22531. .vedioTaskBox {
  22532. width: 100%;
  22533. display: flex;
  22534. flex-direction: row;
  22535. flex-wrap: nowrap;
  22536. align-items: flex-start;
  22537. position: relative;
  22538. }
  22539. .toolBox {
  22540. margin: 15px 0 0 25px;
  22541. display: flex;
  22542. position: relative;
  22543. padding: 18px 20px;
  22544. border-top-left-radius: 5px;
  22545. border-top-right-radius: 5px;
  22546. width: 90%;
  22547. }
  22548. .btnAll {
  22549. position: absolute;
  22550. right: 0;
  22551. display: flex;
  22552. flex-direction: row;
  22553. flex-wrap: nowrap;
  22554. align-items: center;
  22555. }
  22556. .btnLeft,
  22557. .btnRight {
  22558. display: flex;
  22559. flex-direction: row;
  22560. flex-wrap: nowrap;
  22561. align-items: center;
  22562. padding: 5px 0;
  22563. }
  22564. .btnLeft {
  22565. border-right: 1px solid #cad1dc;
  22566. }
  22567. .btnLeft > .custom-tooltip {
  22568. background: #3681fc;
  22569. color: #fff;
  22570. }
  22571. .last:hover {
  22572. background: #3383fa !important;
  22573. color: #fff;
  22574. border: 1px solid #3383fa !important;
  22575. }
  22576. .last,
  22577. .returnBtn1 {
  22578. width: 90px;
  22579. height: 36px;
  22580. background: #ffffff;
  22581. border-radius: 4px;
  22582. border: 1px solid #0061ff;
  22583. color: #0061ff;
  22584. cursor: pointer;
  22585. display: flex;
  22586. flex-direction: row;
  22587. flex-wrap: nowrap;
  22588. align-items: center;
  22589. justify-content: center;
  22590. margin-left: 12px;
  22591. }
  22592. .returnBtn1 {
  22593. background: #f0f4fa;
  22594. border-radius: 4px;
  22595. border: 1px solid #cad1dc;
  22596. margin: 0 12px;
  22597. }
  22598. .lastImg {
  22599. min-width: 15px;
  22600. width: 15px;
  22601. height: 15px;
  22602. display: flex;
  22603. }
  22604. .lastText {
  22605. padding: 0 5px 0 5px;
  22606. box-sizing: border-box;
  22607. font-size: 14px;
  22608. }
  22609. .lastImg > img {
  22610. width: 100%;
  22611. height: 100%;
  22612. }
  22613. /* .vedioTimeBox {
  22614. display: flex;
  22615. flex-direction: row;
  22616. align-items: center;
  22617. flex-wrap: nowrap;
  22618. position: relative;
  22619. } */
  22620. .navBox {
  22621. background: #fff;
  22622. height: calc(100% - 40px);
  22623. overflow-y: auto;
  22624. overflow-x: hidden;
  22625. }
  22626. .worksBox {
  22627. margin: 0 0 10px 25px;
  22628. border-bottom: 1px solid #eeeeee;
  22629. padding: 18px 20px;
  22630. border-radius: 4px;
  22631. width: 90%;
  22632. }
  22633. .worksBTitle {
  22634. font-size: 20px;
  22635. padding-bottom: 15px;
  22636. border-bottom: 1px solid #eeeeee;
  22637. display: flex;
  22638. align-items: center;
  22639. }
  22640. .greenBox {
  22641. width: 5px;
  22642. height: 30px;
  22643. background: #63b6fa;
  22644. margin-right: 5px;
  22645. }
  22646. .worksDetailBox {
  22647. display: flex;
  22648. width: 100%;
  22649. flex-direction: row;
  22650. flex-wrap: wrap;
  22651. align-items: flex-end;
  22652. justify-content: flex-start;
  22653. padding: 15px 5px;
  22654. box-sizing: border-box;
  22655. }
  22656. .works {
  22657. display: flex;
  22658. flex-direction: column;
  22659. flex-wrap: nowrap;
  22660. align-items: flex-start;
  22661. justify-content: flex-start;
  22662. align-content: center;
  22663. max-width: 240px;
  22664. width: calc(100% / 3 - 10px);
  22665. height: auto;
  22666. margin-right: 10px;
  22667. margin-bottom: 10px;
  22668. overflow: hidden;
  22669. height: 140px;
  22670. box-shadow: 0 0 6px 1px #dfdada;
  22671. border-radius: 15px;
  22672. }
  22673. .workImg {
  22674. width: 100%;
  22675. /* height: calc(100% - 40px); */
  22676. height: 105px;
  22677. position: relative;
  22678. }
  22679. .workImg > img {
  22680. width: 100%;
  22681. height: 100%;
  22682. object-fit: contain;
  22683. cursor: pointer;
  22684. }
  22685. .worksName {
  22686. height: 40px;
  22687. line-height: 40px;
  22688. display: flex;
  22689. width: 100%;
  22690. flex-direction: row;
  22691. flex-wrap: nowrap;
  22692. justify-content: space-between;
  22693. align-items: center;
  22694. margin: 0 0 0 10px;
  22695. }
  22696. .worksName > div:nth-child(1) {
  22697. width: 110px;
  22698. white-space: nowrap;
  22699. overflow: hidden;
  22700. text-overflow: ellipsis;
  22701. }
  22702. .worksName > div:nth-child(2) {
  22703. color: #b7b4b5;
  22704. }
  22705. .noWorksS {
  22706. padding: 15px 0;
  22707. display: flex;
  22708. flex-direction: row;
  22709. flex-wrap: wrap;
  22710. align-items: center;
  22711. justify-content: flex-start;
  22712. }
  22713. .noWorksName,
  22714. .isWorksName,
  22715. .isWorksName2 {
  22716. background: #ddebf8;
  22717. color: #000;
  22718. width: 90px;
  22719. height: 25px;
  22720. text-align: center;
  22721. line-height: 25px;
  22722. border-radius: 4px;
  22723. margin: 10px 15px 10px 0;
  22724. white-space: nowrap;
  22725. overflow: hidden;
  22726. padding: 5px;
  22727. text-overflow: ellipsis;
  22728. cursor: pointer;
  22729. border: 1px solid #ddebf8;
  22730. }
  22731. .noWorksName {
  22732. background: #fff;
  22733. color: #0061ff;
  22734. border: 1px solid #0061ff;
  22735. }
  22736. .noWorksName > span{
  22737. max-width: 100%;
  22738. display: block;
  22739. overflow: hidden;
  22740. text-overflow: ellipsis;
  22741. white-space: nowrap;
  22742. }
  22743. .noWorksName2 {
  22744. background: #fff;
  22745. color: #0061ff;
  22746. width: 90px;
  22747. height: 25px;
  22748. text-align: center;
  22749. line-height: 25px;
  22750. border-radius: 4px;
  22751. margin: 10px 15px 10px 0;
  22752. white-space: nowrap;
  22753. overflow: hidden;
  22754. padding: 5px;
  22755. text-overflow: ellipsis;
  22756. cursor: pointer;
  22757. border: 1px solid #0061ff;
  22758. }
  22759. .noWorksName2 > span {
  22760. max-width: 100%;
  22761. display: block;
  22762. overflow: hidden;
  22763. text-overflow: ellipsis;
  22764. white-space: nowrap;
  22765. }
  22766. .isWorksName2 {
  22767. width: 100px;
  22768. height: 40px;
  22769. line-height: 40px;
  22770. position: relative;
  22771. background: #dae6f9;
  22772. }
  22773. .isWorksName {
  22774. background: #e7ebf1 !important;
  22775. width: 100px;
  22776. height: 40px;
  22777. line-height: 40px;
  22778. position: relative;
  22779. color: #acb4bf;
  22780. border: 1px solid #cad1dc !important;
  22781. }
  22782. .isSelectName,
  22783. .noWorksName:hover {
  22784. background: #3383fa !important;
  22785. color: #fff !important;
  22786. border: 1px solid #3383fa !important;
  22787. }
  22788. .title {
  22789. background: #1e5cc9;
  22790. /* width: 98%; */
  22791. height: 45px;
  22792. color: #fff;
  22793. line-height: 45px;
  22794. padding-left: 20px;
  22795. box-sizing: border-box;
  22796. }
  22797. .textBox {
  22798. font-size: 20px;
  22799. width: 90%;
  22800. display: flex;
  22801. flex-direction: column;
  22802. align-items: center;
  22803. margin: 20px auto 0;
  22804. max-height: calc(100% - 75px);
  22805. overflow: auto;
  22806. }
  22807. .textContent {
  22808. font-size: 18px;
  22809. width: 95%;
  22810. max-width: 95%;
  22811. }
  22812. .answerBg {
  22813. background: url("../assets/icon/answerBgNew.png") no-repeat;
  22814. background-size: 100% 100%;
  22815. width: 100%;
  22816. height: 100%;
  22817. color: #fff;
  22818. text-align: center;
  22819. display: flex;
  22820. flex-direction: column;
  22821. flex-wrap: nowrap;
  22822. align-items: center;
  22823. position: relative;
  22824. justify-content: center;
  22825. }
  22826. /* .answerBg > div:nth-child(1) { */
  22827. /* font-size: 22px;
  22828. padding: 25px 0 10px; */
  22829. /* } */
  22830. .answerContent {
  22831. width: 215px;
  22832. max-height: 60px;
  22833. word-break: break-all;
  22834. text-align: center;
  22835. /* white-space: nowrap; */
  22836. overflow: hidden;
  22837. text-overflow: ellipsis;
  22838. /* padding: 23px 0 0; */
  22839. -webkit-line-clamp: 3;
  22840. -webkit-box-orient: vertical;
  22841. display: -webkit-box;
  22842. font-size: 15px;
  22843. cursor: pointer;
  22844. }
  22845. .elist_input_box {
  22846. display: flex;
  22847. align-items: flex-start;
  22848. flex-wrap: nowrap;
  22849. padding: 10px 0 15px 30px;
  22850. flex-direction: column;
  22851. }
  22852. .elist_input {
  22853. /* width: 40%; */
  22854. width: 45%;
  22855. margin: 20px;
  22856. }
  22857. .elist_input .elist_input_box input {
  22858. font: inherit;
  22859. color: currentColor;
  22860. width: 200px;
  22861. padding: 8px 14px;
  22862. display: block;
  22863. min-width: 0;
  22864. outline: none;
  22865. border: 1px solid rgba(0, 0, 0, 0.23);
  22866. border-radius: 4px;
  22867. box-sizing: border-box;
  22868. background: #fff;
  22869. margin: 0 20px 0 0;
  22870. }
  22871. .elist_input .elist_input_box span {
  22872. height: 36px;
  22873. line-height: 36px;
  22874. color: rgb(82, 82, 82);
  22875. }
  22876. .elist_input .elist_input_box .remove {
  22877. height: 20px;
  22878. width: 20px;
  22879. background-size: 100% 100%;
  22880. background-position: unset;
  22881. margin-left: 5px;
  22882. }
  22883. .elist_input_box >>> .el-rate {
  22884. display: flex;
  22885. height: 36px;
  22886. align-items: center;
  22887. }
  22888. .elist_input_box .elist_inptu_text {
  22889. min-height: 50px;
  22890. /* width: 500px;
  22891. max-height: 150px; */
  22892. width: 100%;
  22893. line-height: 50px;
  22894. color: rgb(82, 82, 82);
  22895. overflow: auto;
  22896. text-indent: 5px;
  22897. background: #f7f6f9;
  22898. border-radius: 10px;
  22899. }
  22900. .elist_input_box .elist_inptu_text input {
  22901. width: 500px;
  22902. }
  22903. .elist_input_box >>> .el-rate__icon {
  22904. font-size: 24px;
  22905. }
  22906. .isClick {
  22907. background: #4d9def;
  22908. }
  22909. .bzBox {
  22910. display: flex;
  22911. flex-direction: row;
  22912. align-items: center;
  22913. }
  22914. .bzBox .yCss {
  22915. width: 7px;
  22916. height: 7px;
  22917. background: #fff;
  22918. margin: 0 16px 0 6px;
  22919. border-radius: 50%;
  22920. border: 5px solid #3681fc;
  22921. z-index: 99;
  22922. }
  22923. .bzBox > div:nth-child(2) {
  22924. font-size: 18px;
  22925. font-weight: bold;
  22926. color: #0e1e33;
  22927. }
  22928. .navTitile {
  22929. padding: 0 0px 0 15px;
  22930. font-size: 16px;
  22931. font-weight: bold;
  22932. color: #0e1e33;
  22933. height: 40px;
  22934. line-height: 40px;
  22935. }
  22936. .isTypeOne {
  22937. width: 240px;
  22938. height: 170px;
  22939. /* border: 1px solid #f8f8f8; */
  22940. border-radius: 10px;
  22941. box-shadow: 0 0 6px 1px #dfdada;
  22942. }
  22943. .e_add_top {
  22944. display: flex;
  22945. justify-content: space-between;
  22946. padding: 10px 20px;
  22947. border-radius: 3px;
  22948. background: #fff;
  22949. }
  22950. .e_add_title2 {
  22951. display: flex;
  22952. align-items: center;
  22953. }
  22954. .e_add_title2 span {
  22955. width: 40px;
  22956. }
  22957. .e_add_title {
  22958. display: flex;
  22959. align-items: center;
  22960. color: #b8b8b8;
  22961. font-size: 18px;
  22962. position: relative;
  22963. height: 40px;
  22964. width: 100%;
  22965. }
  22966. .e_add_title span {
  22967. margin-right: 10px;
  22968. }
  22969. .e_add_title .el_input {
  22970. width: 300px;
  22971. }
  22972. .e_add_title >>> .el-input__inner {
  22973. width: 400px;
  22974. }
  22975. /* .e_add_btn {
  22976. } */
  22977. .e_add_content {
  22978. display: flex;
  22979. width: 100%;
  22980. max-width: 650px;
  22981. height: 550px;
  22982. }
  22983. .e_add_list {
  22984. background: #fff;
  22985. height: 500px;
  22986. width: 210px;
  22987. position: relative;
  22988. margin: 15px 5px 0 0;
  22989. flex-shrink: 0;
  22990. display: flex;
  22991. flex-direction: column;
  22992. }
  22993. .e_add_list_title {
  22994. font-size: 20px;
  22995. width: 100%;
  22996. box-sizing: border-box;
  22997. padding: 15px 40px;
  22998. text-align: center;
  22999. border-bottom: 1px solid #eaeaea;
  23000. position: relative;
  23001. display: flex;
  23002. align-items: center;
  23003. justify-content: center;
  23004. height: 57px;
  23005. background: #f6f6f6;
  23006. }
  23007. .e_add_list_title span {
  23008. overflow: hidden;
  23009. white-space: nowrap;
  23010. text-overflow: ellipsis;
  23011. }
  23012. .e_add_list_title img {
  23013. position: absolute;
  23014. right: 15px;
  23015. width: 25px;
  23016. cursor: pointer;
  23017. top: 50%;
  23018. transform: translateY(-50%);
  23019. }
  23020. .e_add_list_body {
  23021. height: calc(100% - 187px);
  23022. overflow: auto;
  23023. }
  23024. .e_add_list_child {
  23025. width: 100%;
  23026. display: flex;
  23027. align-items: center;
  23028. justify-content: center;
  23029. position: relative;
  23030. box-sizing: border-box;
  23031. padding: 15px 40px;
  23032. text-align: center;
  23033. }
  23034. .e_add_list_child span {
  23035. overflow: hidden;
  23036. white-space: nowrap;
  23037. text-overflow: ellipsis;
  23038. cursor: pointer;
  23039. }
  23040. .e_add_list_child img {
  23041. position: absolute;
  23042. right: 10px;
  23043. width: 21px;
  23044. cursor: pointer;
  23045. top: 50%;
  23046. transform: translateY(-50%);
  23047. }
  23048. .e_add_list_child + .e_add_list_child {
  23049. border-top: 1px solid #eaeaea;
  23050. }
  23051. .e_add_list_child .active {
  23052. color: #409eff;
  23053. }
  23054. .e_add_list_btn {
  23055. position: absolute;
  23056. bottom: 0;
  23057. height: 50px;
  23058. background: rgb(120, 120, 254);
  23059. width: 100%;
  23060. color: #fff;
  23061. font-size: 16px;
  23062. text-align: center;
  23063. line-height: 50px;
  23064. cursor: pointer;
  23065. }
  23066. .e_add_list_detail {
  23067. position: absolute;
  23068. bottom: 0;
  23069. height: 130px;
  23070. background: rgb(120, 120, 254);
  23071. width: 100%;
  23072. color: #fff;
  23073. font-size: 16px;
  23074. display: flex;
  23075. align-items: center;
  23076. justify-content: center;
  23077. }
  23078. .e_add_list_detail textarea {
  23079. height: 90%;
  23080. width: 95%;
  23081. border: none;
  23082. resize: none;
  23083. outline: none;
  23084. padding: 5px;
  23085. box-sizing: border-box;
  23086. }
  23087. .e_add_list_pbox {
  23088. width: 100%;
  23089. max-width: 650px;
  23090. /* height: 600px; */
  23091. }
  23092. .e_add_list_pbox_title {
  23093. height: 50px;
  23094. background: #fff;
  23095. display: flex;
  23096. align-items: center;
  23097. width: 100%;
  23098. box-sizing: border-box;
  23099. padding: 0 20px;
  23100. }
  23101. .type_title {
  23102. font-size: 18px;
  23103. font-weight: 700;
  23104. }
  23105. .type_content {
  23106. font-size: 16px;
  23107. /* margin-left: 30px; */
  23108. }
  23109. .type_content span + span {
  23110. margin-left: 20px;
  23111. }
  23112. .type_content span {
  23113. cursor: pointer;
  23114. padding-bottom: 5px;
  23115. box-sizing: border-box;
  23116. }
  23117. .type_content .active {
  23118. color: #409eff;
  23119. border-bottom: 2px solid #409eff;
  23120. }
  23121. .e_add_list_pbox_content {
  23122. height: calc(100% - 50px);
  23123. display: flex;
  23124. align-items: center;
  23125. width: 100%;
  23126. background: #fff;
  23127. }
  23128. .evaCss {
  23129. display: flex;
  23130. flex-direction: row;
  23131. flex-wrap: nowrap;
  23132. align-items: flex-start;
  23133. padding: 0 0 20px;
  23134. }
  23135. .cru_line {
  23136. position: absolute;
  23137. bottom: 0px;
  23138. transition: all 0.5s;
  23139. left: 0px;
  23140. width: 125px;
  23141. margin-left: -25px;
  23142. }
  23143. .isNoMessage {
  23144. width: 20%;
  23145. margin: 25% auto 0;
  23146. }
  23147. .isNoMessage > img {
  23148. width: 100%;
  23149. height: 100%;
  23150. }
  23151. .fullStyle >>> .el-dialog__body {
  23152. height: 100% !important;
  23153. }
  23154. .fullStyle >>> .el-dialog,
  23155. .fullStyle {
  23156. width: 100% !important;
  23157. max-width: 100% !important;
  23158. height: 100% !important;
  23159. margin: 0 !important;
  23160. }
  23161. .full_diy >>> .el-dialog {
  23162. margin: 0 !important;
  23163. height: 100%;
  23164. padding: 4px;
  23165. }
  23166. .full_diy >>> .el-dialog__body {
  23167. height: calc(100% - 100px);
  23168. }
  23169. .full_diy2 >>> .el-dialog__body {
  23170. height: calc(100% - 50px);
  23171. padding: 0;
  23172. }
  23173. .switchCss {
  23174. /* width: 100%; */
  23175. display: flex;
  23176. flex-direction: row;
  23177. flex-wrap: nowrap;
  23178. align-items: center;
  23179. /* justify-content: center; */
  23180. }
  23181. .isClickNav {
  23182. /* color: #499eef; */
  23183. color: #000;
  23184. }
  23185. .commentImg {
  23186. width: 25px;
  23187. height: 25px;
  23188. cursor: pointer;
  23189. }
  23190. .commentImg > img {
  23191. width: 100%;
  23192. height: 100%;
  23193. }
  23194. .comment {
  23195. background: #f9f9f9;
  23196. border-radius: 0 0 4px 4px;
  23197. display: flex;
  23198. flex-direction: row;
  23199. flex-wrap: nowrap;
  23200. align-items: center;
  23201. justify-content: flex-end;
  23202. height: 35px;
  23203. }
  23204. .commentList {
  23205. display: flex;
  23206. flex-direction: row;
  23207. flex-wrap: nowrap;
  23208. align-items: center;
  23209. justify-content: center;
  23210. align-content: center;
  23211. /* margin-left: 15px; */
  23212. /* margin-left: 8px; */
  23213. }
  23214. .scoreImg {
  23215. width: 17px;
  23216. height: 17px;
  23217. }
  23218. .studentDetail {
  23219. display: flex;
  23220. flex-direction: row;
  23221. flex-wrap: nowrap;
  23222. /* align-items: center; */
  23223. align-items: flex-start;
  23224. }
  23225. .tx {
  23226. width: 50px;
  23227. }
  23228. .tx > img {
  23229. width: 100%;
  23230. height: 100%;
  23231. }
  23232. .nameAndTime {
  23233. display: flex;
  23234. flex-direction: column;
  23235. flex-wrap: nowrap;
  23236. align-items: flex-start;
  23237. margin-left: 10px;
  23238. }
  23239. .worksAnswer {
  23240. color: #4078dd;
  23241. margin: 10px 0;
  23242. font-size: 16px;
  23243. position: relative;
  23244. }
  23245. .worksAnswer > img {
  23246. width: 500px;
  23247. height: 300px;
  23248. object-fit: contain;
  23249. margin: 0 auto;
  23250. display: block;
  23251. }
  23252. .commentTop {
  23253. border-bottom: 1px solid #eaeaea;
  23254. padding-bottom: 10px;
  23255. }
  23256. .commentBox {
  23257. padding-top: 15px;
  23258. }
  23259. .pl {
  23260. font-size: 18px;
  23261. }
  23262. .plPerson {
  23263. width: 100%;
  23264. }
  23265. .plName {
  23266. display: flex;
  23267. flex-direction: row;
  23268. flex-wrap: nowrap;
  23269. align-items: baseline;
  23270. color: #78787a;
  23271. width: 100%;
  23272. }
  23273. .deleteComment {
  23274. cursor: pointer;
  23275. margin-left: auto;
  23276. color: #237ade;
  23277. }
  23278. .plContent {
  23279. margin-top: 5px;
  23280. }
  23281. .evalCss {
  23282. background: #fff;
  23283. font-size: 18px;
  23284. }
  23285. .nav {
  23286. color: #9d9d9d;
  23287. padding: 5px 0 15px 20px;
  23288. }
  23289. .middleBox {
  23290. padding: 5px 0 15px 20px;
  23291. }
  23292. .pfBox {
  23293. padding-bottom: 30px;
  23294. }
  23295. .nameAndrate {
  23296. display: flex;
  23297. flex-direction: row;
  23298. flex-wrap: nowrap;
  23299. align-items: center;
  23300. padding-bottom: 10px;
  23301. height: 30px;
  23302. line-height: 30px;
  23303. }
  23304. .nameAndrate > div {
  23305. margin-left: 10px;
  23306. color: #000;
  23307. height: 30px;
  23308. }
  23309. .nameAndrate >>> .el-rate__icon {
  23310. font-size: 28px !important;
  23311. }
  23312. .pfBox > div:nth-child(2) {
  23313. background: #f7f6f9;
  23314. width: 400px;
  23315. min-height: 45px;
  23316. border-radius: 10px;
  23317. font-size: 16px;
  23318. display: flex;
  23319. flex-wrap: wrap;
  23320. align-items: center;
  23321. padding: 10px 20px;
  23322. box-sizing: border-box;
  23323. color: #000;
  23324. }
  23325. .bz {
  23326. display: flex;
  23327. flex-direction: row;
  23328. flex-wrap: nowrap;
  23329. align-items: flex-start;
  23330. }
  23331. .bz > div {
  23332. padding: 0 10px;
  23333. }
  23334. .select_box2_title {
  23335. background: #fff;
  23336. border-radius: 5px;
  23337. padding: 15px 10px;
  23338. box-sizing: border-box;
  23339. margin-bottom: 10px;
  23340. display: flex;
  23341. flex-direction: row;
  23342. flex-wrap: nowrap;
  23343. align-items: center;
  23344. }
  23345. .select_box2_title > div:nth-child(2) {
  23346. margin-left: 10px;
  23347. color: #c4c4c4;
  23348. }
  23349. .select_box2_box {
  23350. display: flex;
  23351. height: 500px;
  23352. }
  23353. .select_box2_img {
  23354. width: calc(100% - 310px);
  23355. height: 100%;
  23356. overflow: auto;
  23357. background: #fff;
  23358. border-radius: 5px;
  23359. }
  23360. .select_box2_img img {
  23361. width: 100%;
  23362. }
  23363. .select_box2_answer {
  23364. background: #fff;
  23365. margin-left: 10px;
  23366. border-radius: 5px;
  23367. width: 300px;
  23368. overflow: auto;
  23369. height: 90%;
  23370. display: flex;
  23371. flex-direction: column;
  23372. align-items: flex-start;
  23373. padding-top: 10px;
  23374. box-sizing: border-box;
  23375. position: relative;
  23376. }
  23377. .select_answer_title {
  23378. padding: 0 0 15px 20px;
  23379. color: #c4c4c4;
  23380. }
  23381. .select_box2_answer_box {
  23382. margin: 0 0 10px 20px;
  23383. width: 85%;
  23384. display: flex;
  23385. flex-direction: row;
  23386. flex-wrap: nowrap;
  23387. align-items: center;
  23388. }
  23389. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23390. color: #000;
  23391. }
  23392. .upAnswerCss {
  23393. position: absolute;
  23394. bottom: 15px;
  23395. right: 15px;
  23396. }
  23397. .upAnswerCss >>> .el-button {
  23398. width: 95px;
  23399. height: 35px;
  23400. line-height: 35px;
  23401. padding: 0;
  23402. }
  23403. .rightWidthCss {
  23404. width: 60%;
  23405. display: flex;
  23406. flex-direction: row;
  23407. align-items: flex-start;
  23408. }
  23409. .rightAnswer {
  23410. display: flex;
  23411. flex-direction: row;
  23412. flex-wrap: nowrap;
  23413. align-items: center;
  23414. color: red;
  23415. margin-bottom: 31px;
  23416. }
  23417. .rightAnswerCss {
  23418. display: flex;
  23419. flex-direction: column;
  23420. flex-wrap: nowrap;
  23421. padding-top: 60px;
  23422. }
  23423. .blueCss {
  23424. color: #767de1;
  23425. margin-left: 10px;
  23426. }
  23427. .redCss {
  23428. color: red;
  23429. }
  23430. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23431. color: rgb(0 123 255) !important;
  23432. }
  23433. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23434. color: rgb(0 123 255) !important;
  23435. }
  23436. .zuoyeYulan {
  23437. padding-top: 0;
  23438. font-size: 18px;
  23439. display: flex;
  23440. align-items: flex-end;
  23441. }
  23442. .buttonA {
  23443. margin-left: 10px;
  23444. padding: 0;
  23445. }
  23446. .displayBox {
  23447. margin-bottom: 10px;
  23448. display: block;
  23449. border-bottom: 3px solid #eee;
  23450. display: flex;
  23451. align-items: center;
  23452. }
  23453. .easy_comment {
  23454. width: calc(100% - 90px);
  23455. margin-left: 10px;
  23456. display: flex;
  23457. flex-wrap: wrap;
  23458. }
  23459. .easy_comment > div {
  23460. border: 1px solid #4a4a4a;
  23461. color: #666;
  23462. border-radius: 15px;
  23463. padding: 5px 10px;
  23464. font-size: 16px;
  23465. margin-bottom: 10px;
  23466. margin-right: 5px;
  23467. cursor: pointer;
  23468. }
  23469. .easy_comment div:hover {
  23470. border: 1px solid #f7ba2a;
  23471. color: #c69217;
  23472. }
  23473. .xuan_right_box {
  23474. padding: 10px 0;
  23475. background: #f0f4fa;
  23476. margin: 0 15px 0 25px;
  23477. border-bottom-left-radius: 5px;
  23478. border-bottom-right-radius: 5px;
  23479. width: 91.5%;
  23480. }
  23481. .tool_right_box {
  23482. display: flex;
  23483. align-items: center;
  23484. }
  23485. .tool_right_box >>> .katex {
  23486. font-size: 16px;
  23487. }
  23488. .tool_right_box + .tool_right_box {
  23489. margin-top: 10px;
  23490. }
  23491. .right_box_xuan {
  23492. border-radius: 5px;
  23493. padding: 5px;
  23494. margin-left: 10px;
  23495. min-width: 95px;
  23496. background: #fff;
  23497. color: #0061ff;
  23498. border: 1px solid #0061ff;
  23499. font-size: 14px;
  23500. }
  23501. .pButton:hover {
  23502. opacity: 1 !important;
  23503. }
  23504. .pButton {
  23505. position: fixed;
  23506. text-align: center;
  23507. cursor: pointer;
  23508. z-index: 999;
  23509. right: 20px;
  23510. top: 110px;
  23511. width: 50px;
  23512. height: 50px;
  23513. display: flex;
  23514. align-items: center;
  23515. justify-content: center;
  23516. border-radius: 5px;
  23517. }
  23518. .pzClass {
  23519. width: calc(100% - 340px);
  23520. }
  23521. .newDialogCss {
  23522. /* position: fixed;
  23523. right: 5%;
  23524. top: 50%;
  23525. width: 340px;
  23526. transform: translateY(-50%);
  23527. height: 60%;
  23528. box-shadow: 0px 0 8px 0px #555555;
  23529. border-radius: 15px;
  23530. z-index: 999; */
  23531. position: fixed;
  23532. right: 20px;
  23533. top: 101px;
  23534. width: 330px;
  23535. height: calc(100% - 80px);
  23536. z-index: 999;
  23537. background: #fff;
  23538. border-top-right-radius: 0px;
  23539. border-bottom-right-radius: 0px;
  23540. overflow: hidden;
  23541. }
  23542. .newDialogCss>.scoreList{
  23543. width:100%;
  23544. height:100%;
  23545. box-sizing:border-box;
  23546. padding:10px 15px;
  23547. overflow:auto;
  23548. padding-bottom:80px;
  23549. }
  23550. .pzTop {
  23551. color: #fff;
  23552. background: #000;
  23553. display: flex;
  23554. flex-direction: row;
  23555. flex-wrap: nowrap;
  23556. align-items: center;
  23557. justify-content: space-between;
  23558. height: 40px;
  23559. border-radius: 15px 15px 0 0;
  23560. user-select: none;
  23561. }
  23562. .pzTop2 .checkbox {
  23563. display: flex;
  23564. align-items: center;
  23565. padding: 5px 10px;
  23566. flex: 0 0 auto;
  23567. font-weight: bold;
  23568. border-bottom: 1px solid #eee;
  23569. justify-content: space-between;
  23570. }
  23571. .checkbox>.cb-tabList{
  23572. display:flex;
  23573. align-items:center;
  23574. }
  23575. .cb-tabList>div{
  23576. margin-right:20px;
  23577. font-weight:400;
  23578. cursor:pointer;
  23579. }
  23580. .cb-tabList>.cb-tabItem{
  23581. color:#1684FC;
  23582. position:relative;
  23583. }
  23584. .cb-tabItem::after{
  23585. content:"";
  23586. width:100%;
  23587. height:2px;
  23588. background:#1684FC;
  23589. position:absolute;
  23590. bottom:-5px;
  23591. left:0
  23592. }
  23593. .pzTop2 .check {
  23594. text-align: center;
  23595. cursor: pointer;
  23596. box-sizing: border-box;
  23597. display: flex;
  23598. }
  23599. .pzTop2 img {
  23600. width: 25px;
  23601. cursor: pointer;
  23602. }
  23603. .pzTop > div:nth-child(1) {
  23604. padding-left: 10px;
  23605. }
  23606. .pzTop > div:nth-child(2) {
  23607. width: 15px;
  23608. height: 15px;
  23609. padding-right: 10px;
  23610. cursor: pointer;
  23611. }
  23612. .pzTop > div:nth-child(2) > img {
  23613. width: 100%;
  23614. height: 100%;
  23615. }
  23616. .pzBox,
  23617. .noPzBox {
  23618. height: calc(100% - 60px);
  23619. /* background: #ededed; */
  23620. background: #fff;
  23621. /* border-radius: 0 0 15px 15px; */
  23622. }
  23623. .noPzBox {
  23624. display: flex;
  23625. flex-direction: column;
  23626. flex-wrap: nowrap;
  23627. justify-content: center;
  23628. align-items: center;
  23629. }
  23630. .pzList {
  23631. background: #f7f7f7;
  23632. width: 90%;
  23633. margin: 0 auto 15px;
  23634. border-radius: 5px;
  23635. }
  23636. .pzNavTop {
  23637. display: flex;
  23638. flex-direction: row;
  23639. flex-wrap: nowrap;
  23640. padding: 10px 10px 0 10px;
  23641. align-items: center;
  23642. }
  23643. .pzDelete {
  23644. cursor: pointer;
  23645. margin-left: auto;
  23646. font-size: 14px;
  23647. color: #afafaf;
  23648. }
  23649. .pzNavTop > div:nth-child(1) {
  23650. background: #3760af;
  23651. width: 35px;
  23652. height: 35px;
  23653. color: #fff;
  23654. text-align: center;
  23655. line-height: 35px;
  23656. border-radius: 50%;
  23657. font-size: 14px;
  23658. }
  23659. .pzNavTop > div:nth-child(2) {
  23660. font-size: 18px;
  23661. color: #959595;
  23662. margin-left: 5px;
  23663. }
  23664. .pzContent {
  23665. padding: 10px;
  23666. word-break: break-word;
  23667. }
  23668. .pzContent audio {
  23669. width: 100%;
  23670. }
  23671. .pzContent audio::-webkit-media-controls-panel {
  23672. background: #fff;
  23673. }
  23674. .pzContent >>> img {
  23675. max-width: 100%;
  23676. }
  23677. .pzListBox {
  23678. padding-top: 15px;
  23679. height: calc(100% - 110px);
  23680. overflow: auto;
  23681. }
  23682. .addPzButton {
  23683. position: relative;
  23684. margin-top: 3px;
  23685. width: 100%;
  23686. }
  23687. .addPzButton .img1 {
  23688. position: absolute;
  23689. top: 50%;
  23690. right: 25px;
  23691. transform: translateY(-50%);
  23692. height: 100%;
  23693. display: flex;
  23694. align-items: center;
  23695. }
  23696. .addPzButton .img1 div {
  23697. display: flex;
  23698. }
  23699. .addPzButton .img1 div img {
  23700. width: 28px;
  23701. margin-left: 10px;
  23702. cursor: pointer;
  23703. }
  23704. .addPzButton .img1 div span {
  23705. font-size: 14px;
  23706. margin: 4px 0 0 3px;
  23707. color: #afafaf;
  23708. }
  23709. .addPz {
  23710. background: #4b79ce;
  23711. width: 100px;
  23712. color: #fff;
  23713. font-size: 12px;
  23714. height: 30px;
  23715. margin: 0 auto;
  23716. text-align: center;
  23717. line-height: 30px;
  23718. border-radius: 10px;
  23719. cursor: pointer;
  23720. }
  23721. .addDialogCss {
  23722. position: fixed;
  23723. width: 600px;
  23724. height: 70%;
  23725. min-height: 450px;
  23726. box-shadow: 0px 0 8px 0px #555555;
  23727. border-radius: 15px;
  23728. z-index: 999;
  23729. left: 50%;
  23730. top: 50%;
  23731. margin: -18% 0 0 -300px;
  23732. }
  23733. .teacherPz {
  23734. display: flex;
  23735. flex-direction: row;
  23736. align-items: center;
  23737. flex-wrap: nowrap;
  23738. }
  23739. .teacherPzImg {
  23740. width: 30px;
  23741. height: 30px;
  23742. }
  23743. .teacherPzImg > img {
  23744. width: 100%;
  23745. height: 100%;
  23746. }
  23747. .addPzBox {
  23748. height: calc(100% - 40px);
  23749. background: #ededed;
  23750. border-bottom-left-radius: 15px;
  23751. border-bottom-right-radius: 15px;
  23752. }
  23753. .pzAudioClass {
  23754. margin: 15px 14px;
  23755. background: #fff;
  23756. height: 100%;
  23757. display: flex;
  23758. justify-content: center;
  23759. align-items: center;
  23760. }
  23761. .pzConText {
  23762. width: 95%;
  23763. height: 100%;
  23764. margin: 10px auto 0;
  23765. border: none;
  23766. background: #fff;
  23767. border-radius: 0px;
  23768. }
  23769. .pzConText >>> .text {
  23770. height: calc(100% - 82px);
  23771. }
  23772. .addTextCss {
  23773. background: #4b79ce;
  23774. width: 80px;
  23775. height: 30px;
  23776. text-align: center;
  23777. color: #fff;
  23778. line-height: 30px;
  23779. border-radius: 10px;
  23780. margin: 10px auto 0;
  23781. cursor: pointer;
  23782. }
  23783. .pzConText:focus-visible {
  23784. border: none !important;
  23785. }
  23786. .maxWidth {
  23787. width: 1000px;
  23788. }
  23789. .noPz {
  23790. width: 150px;
  23791. margin: 0 auto 20%;
  23792. }
  23793. .noPz > img {
  23794. width: 100%;
  23795. height: 100%;
  23796. }
  23797. .timeAndReply {
  23798. display: flex;
  23799. flex-direction: row;
  23800. flex-wrap: nowrap;
  23801. justify-content: space-between;
  23802. align-items: center;
  23803. font-size: 14px;
  23804. box-sizing: border-box;
  23805. padding: 0 10px 10px 0px;
  23806. }
  23807. .timeAndReply .time {
  23808. color: #bfbfbf;
  23809. padding: 0 0 0 10px;
  23810. box-sizing: border-box;
  23811. }
  23812. .timeAndReply > div:last-child {
  23813. cursor: pointer;
  23814. color: #777;
  23815. }
  23816. /* table 样式 */
  23817. .cont >>> table {
  23818. border-top: 1px solid #ccc;
  23819. border-left: 1px solid #ccc;
  23820. }
  23821. .cont >>> table td,
  23822. .cont >>> table th {
  23823. border-bottom: 1px solid #ccc;
  23824. border-right: 1px solid #ccc;
  23825. /* padding: 20px 5px; */
  23826. padding: 5px 10px;
  23827. max-width: 0px;
  23828. height: 30px;
  23829. vertical-align: baseline;
  23830. box-sizing: border-box;
  23831. }
  23832. .cont >>> table th {
  23833. border-bottom: 2px solid #ccc;
  23834. text-align: center;
  23835. }
  23836. /* blockquote 样式 */
  23837. .cont >>> blockquote {
  23838. display: block;
  23839. border-left: 8px solid #d0e5f2;
  23840. padding: 5px 10px;
  23841. margin: 10px 0;
  23842. line-height: 1.4;
  23843. font-size: 100%;
  23844. background-color: #f1f1f1;
  23845. }
  23846. /* code 样式 */
  23847. .cont >>> code {
  23848. display: inline-block;
  23849. /* *display: inline; */
  23850. zoom: 1;
  23851. background-color: #f1f1f1;
  23852. border-radius: 3px;
  23853. padding: 3px 5px;
  23854. margin: 0 3px;
  23855. }
  23856. .cont >>> pre code {
  23857. display: block;
  23858. }
  23859. /* ul ol 样式 */
  23860. .cont >>> ul,
  23861. ol {
  23862. margin: 10px 0 10px 20px;
  23863. }
  23864. .addPzCheck {
  23865. display: flex;
  23866. flex-direction: row;
  23867. flex-wrap: nowrap;
  23868. padding: 10px 15px 0;
  23869. }
  23870. .addPzCheck span {
  23871. cursor: pointer;
  23872. padding-bottom: 5px;
  23873. font-weight: bold;
  23874. }
  23875. .addPzCheck span + span {
  23876. margin-left: 10px;
  23877. }
  23878. .addPzCheck .isChooseActive {
  23879. color: #3e88f4;
  23880. border-bottom: 2px solid #2f80f3;
  23881. }
  23882. /* code 样式 */
  23883. .cont {
  23884. /* -webkit-user-modify: read-write; */
  23885. overflow-wrap: break-word;
  23886. -webkit-line-break: after-white-space;
  23887. word-break: break-word;
  23888. white-space: pre-line;
  23889. }
  23890. .scoreBox,
  23891. .scoreDetailBox {
  23892. display: flex;
  23893. align-items: center;
  23894. justify-content: flex-start;
  23895. margin-top: 20px;
  23896. font-size: 18px;
  23897. width: 100%;
  23898. }
  23899. .scoreBox .t,
  23900. .scoreDetailBox .t {
  23901. margin-right: 10px;
  23902. min-width: 100px;
  23903. text-align: right;
  23904. }
  23905. .scoreDetailBox {
  23906. align-items: flex-start;
  23907. }
  23908. .scoreDetailBox >>> .el-textarea {
  23909. width: calc(100% - 200px);
  23910. }
  23911. .scoreBox >>> .el-input {
  23912. width: 130px;
  23913. font-size: 38px;
  23914. }
  23915. .scoreBox >>> .el-input__inner {
  23916. height: 60px;
  23917. }
  23918. .answerScore {
  23919. position: absolute;
  23920. top: 10px;
  23921. right: 10px;
  23922. background: #0000008f;
  23923. border-radius: 5px;
  23924. padding: 3px 5px;
  23925. font-size: 14px;
  23926. color: #fff;
  23927. cursor: pointer;
  23928. }
  23929. .open_box .switch_box {
  23930. width: 100%;
  23931. margin: 0 auto;
  23932. display: flex;
  23933. justify-content: space-between;
  23934. }
  23935. .open_box .switch_box + .switch_box {
  23936. margin-top: 10px;
  23937. }
  23938. .deleteImg,.deleteImg1 {
  23939. width: 25px !important;
  23940. height: 25px !important;
  23941. cursor: pointer;
  23942. position: absolute;
  23943. top: 10px;
  23944. right: 10px;
  23945. }
  23946. .deleteImg2 {
  23947. width: 23px !important;
  23948. height: 23px !important;
  23949. top: 5px;
  23950. right: 5px;
  23951. }
  23952. .deleteImg1{
  23953. width: 23px !important;
  23954. height: 23px !important;
  23955. top: 5px !important;
  23956. right: 30px !important;
  23957. }
  23958. .rightW {
  23959. right: 40px;
  23960. }
  23961. .drawPBox {
  23962. display: flex;
  23963. flex-direction: column;
  23964. position: relative;
  23965. }
  23966. .drawPBox span {
  23967. font-size: 18px;
  23968. color: #606266;
  23969. padding-bottom: 10px;
  23970. margin: 10px 0;
  23971. border-bottom: 1px solid #eaeaea;
  23972. }
  23973. .drawPBox img {
  23974. width: 500px;
  23975. height: 300px;
  23976. object-fit: contain;
  23977. cursor: pointer;
  23978. margin: 0 auto;
  23979. }
  23980. .sentenBox {
  23981. background: #fff;
  23982. height: 450px;
  23983. overflow: auto;
  23984. background-image: url("../assets/icon/conSentences/stuBg.png");
  23985. background-position: 102%;
  23986. background-repeat: no-repeat;
  23987. background-size: 60%;
  23988. }
  23989. .addSen {
  23990. background: #409efe;
  23991. width: 90px;
  23992. color: #fff;
  23993. height: 35px;
  23994. text-align: center;
  23995. line-height: 35px;
  23996. border-radius: 5px;
  23997. float: right;
  23998. margin: 10px 20px 0 0;
  23999. cursor: pointer;
  24000. }
  24001. .sentenTop {
  24002. display: flex;
  24003. flex-direction: row;
  24004. flex-wrap: nowrap;
  24005. align-items: center;
  24006. padding: 55px 0 0 20px;
  24007. box-sizing: border-box;
  24008. }
  24009. .sentenTop > div:nth-child(2) {
  24010. width: 300px;
  24011. margin: 0 15px;
  24012. }
  24013. .sentenTop > div:nth-child(3) {
  24014. background: #409efe;
  24015. color: #fff;
  24016. width: 65px;
  24017. height: 35px;
  24018. text-align: center;
  24019. line-height: 35px;
  24020. border-radius: 5px;
  24021. cursor: pointer;
  24022. }
  24023. .cardList,
  24024. .cardList1 {
  24025. padding: 10px 0 10px 0;
  24026. display: flex;
  24027. flex-direction: row;
  24028. flex-wrap: wrap;
  24029. align-items: center;
  24030. box-sizing: border-box;
  24031. border-bottom: 1px solid #f4f4f4;
  24032. width: 98%;
  24033. margin: 0 auto;
  24034. min-width: 60%;
  24035. max-width: 85%;
  24036. }
  24037. .cardList1 {
  24038. padding: 10px 0 10px 10px !important;
  24039. margin: 0 !important;
  24040. }
  24041. .cardBox {
  24042. display: flex;
  24043. flex-direction: row;
  24044. flex-wrap: wrap;
  24045. align-items: center;
  24046. align-content: center;
  24047. }
  24048. .cardBox > div {
  24049. margin-bottom: 10px;
  24050. }
  24051. .isCard,
  24052. .isChooseCard,
  24053. .noCard,
  24054. .isCard1 {
  24055. min-width: 130px;
  24056. width: auto;
  24057. height: 60px;
  24058. text-align: center;
  24059. line-height: 60px;
  24060. font-size: 20px;
  24061. cursor: pointer;
  24062. background-image: url("../assets/icon/conSentences/titleBorder.png");
  24063. background-size: cover;
  24064. transition: all 2s;
  24065. margin-right: 20px;
  24066. background-size: 100% 100%;
  24067. padding: 0 20px;
  24068. box-sizing: border-box;
  24069. }
  24070. .isCard > div,
  24071. .noCard > div,
  24072. .isCard1 > div {
  24073. white-space: nowrap;
  24074. overflow: hidden;
  24075. text-overflow: ellipsis;
  24076. width: 100%;
  24077. margin: 0 auto;
  24078. }
  24079. .noCard {
  24080. background-image: none;
  24081. }
  24082. .isCard1 {
  24083. background-image: url("../assets/icon/conSentences/answerBorder.png");
  24084. }
  24085. .isChooseCard {
  24086. background-image: none;
  24087. border: 1px dashed #b9b9b9;
  24088. border-radius: 10px;
  24089. }
  24090. .card {
  24091. width: 130px;
  24092. height: 60px;
  24093. }
  24094. .card > img {
  24095. width: 100%;
  24096. height: 100%;
  24097. }
  24098. .rightCardBox {
  24099. margin: 10px 0 0 10px;
  24100. }
  24101. .rightCardBox > div:nth-child(1) {
  24102. margin-bottom: 10px;
  24103. }
  24104. .cardCss {
  24105. display: flex;
  24106. flex-direction: column;
  24107. flex-wrap: nowrap;
  24108. align-items: center;
  24109. border-bottom: 3px solid #b4c3d3;
  24110. padding: 0 0 5px 0;
  24111. margin-right: 10px;
  24112. }
  24113. .cardCss > div:nth-child(2) {
  24114. background: #5b7b9d;
  24115. color: #fff;
  24116. width: 20px;
  24117. height: 20px;
  24118. border-radius: 50%;
  24119. text-align: center;
  24120. line-height: 20px;
  24121. }
  24122. .isWrong {
  24123. display: flex;
  24124. flex-direction: row;
  24125. flex-wrap: nowrap;
  24126. align-content: center;
  24127. align-items: center;
  24128. }
  24129. .answerRight {
  24130. width: 25%;
  24131. }
  24132. .isTj {
  24133. display: flex;
  24134. flex-direction: row;
  24135. flex-wrap: nowrap;
  24136. align-items: center;
  24137. }
  24138. .isTj > div:nth-child(2) {
  24139. color: #727070;
  24140. margin-left: 10px;
  24141. }
  24142. .isTjImg {
  24143. width: 30px;
  24144. height: 30px;
  24145. }
  24146. .isTjImg > img {
  24147. width: 100%;
  24148. height: 100%;
  24149. }
  24150. .cardAnswerBox {
  24151. font-size: 18px;
  24152. width: 97%;
  24153. border: 5px;
  24154. padding: 0;
  24155. border-radius: 5px;
  24156. margin: 10px auto;
  24157. word-break: break-word;
  24158. }
  24159. .w_name {
  24160. margin-bottom: 10px;
  24161. }
  24162. .w_name span {
  24163. font-size: 16px;
  24164. }
  24165. .w_teachert {
  24166. width: 50px !important;
  24167. position: absolute;
  24168. height: auto !important;
  24169. z-index: 10;
  24170. right: 25px;
  24171. top: -25px;
  24172. }
  24173. /* .group_workBox {
  24174. } */
  24175. .group_workBox + .group_workBox {
  24176. margin-top: 20px;
  24177. }
  24178. .group_box {
  24179. padding-bottom: 20px;
  24180. border-bottom: 2px solid #f0f0f0;
  24181. margin-top: 10px;
  24182. }
  24183. .group_title {
  24184. display: flex;
  24185. align-items: center;
  24186. justify-content: space-between;
  24187. width: 95%;
  24188. }
  24189. .group_name {
  24190. background-image: url(../assets/icon/groupN.png);
  24191. width: 220px;
  24192. background-size: 100% 100%;
  24193. height: 67px;
  24194. padding: 0 20px 0 43px;
  24195. box-sizing: border-box;
  24196. line-height: 63px;
  24197. color: #fff;
  24198. overflow: hidden;
  24199. white-space: nowrap;
  24200. text-overflow: ellipsis;
  24201. }
  24202. .group_work {
  24203. width: 100%;
  24204. padding: 0 10px;
  24205. box-sizing: border-box;
  24206. display: flex;
  24207. flex-wrap: wrap;
  24208. }
  24209. .g_d_box {
  24210. display: flex;
  24211. flex-flow: wrap;
  24212. justify-content: space-around;
  24213. }
  24214. .g_d_box .isChair {
  24215. background-image: url(../assets/avatar.png) !important;
  24216. }
  24217. .g_d_group {
  24218. width: 500px;
  24219. margin-bottom: 80px;
  24220. }
  24221. .g_d_group_chair {
  24222. display: flex;
  24223. align-items: center;
  24224. justify-content: center;
  24225. }
  24226. .g_d_group_chair > div + div {
  24227. margin-left: 30px;
  24228. }
  24229. .g_d_group_chair > div,
  24230. .g_d_group_chair2 > div {
  24231. display: flex;
  24232. flex-direction: column;
  24233. align-items: center;
  24234. }
  24235. .g_d_group_chair > div > span:nth-child(1),
  24236. .g_d_group_chair2 > div > span:nth-child(1) {
  24237. background-image: url(../assets/icon/chair.png);
  24238. width: 50px;
  24239. height: 50px;
  24240. display: block;
  24241. background-size: 100% 100%;
  24242. }
  24243. .g_d_group_tableBox {
  24244. display: flex;
  24245. align-items: center;
  24246. justify-content: center;
  24247. }
  24248. .g_d_group_chair2 {
  24249. display: flex;
  24250. flex-direction: column;
  24251. align-items: center;
  24252. justify-content: center;
  24253. }
  24254. .g_d_group_chair2 > div + div {
  24255. margin-top: 10px;
  24256. }
  24257. .g_d_group_table {
  24258. background-image: url(../assets/icon/groupBg.png);
  24259. width: 354px;
  24260. height: 196px;
  24261. background-size: 100% 100%;
  24262. display: flex;
  24263. align-items: center;
  24264. justify-content: center;
  24265. flex-direction: column;
  24266. color: #fff;
  24267. }
  24268. .g_d_group_table > div:nth-child(1) {
  24269. font-size: 24px;
  24270. margin-bottom: 5px;
  24271. }
  24272. .g_d_group_table > div:nth-child(2) div {
  24273. cursor: pointer;
  24274. background: #2e77bf;
  24275. padding: 4px 10px;
  24276. border-radius: 5px;
  24277. }
  24278. /* .groupBox {
  24279. } */
  24280. .groupContent + .groupContent {
  24281. margin-top: 30px;
  24282. }
  24283. .groupTitle {
  24284. font-size: 24px;
  24285. color: rgb(80, 80, 80);
  24286. margin-bottom: 20px;
  24287. }
  24288. .groupName {
  24289. display: flex;
  24290. align-items: center;
  24291. }
  24292. .groupn {
  24293. font-size: 15px;
  24294. margin-right: 10px;
  24295. }
  24296. .groupName + .groupName {
  24297. margin-top: 15px;
  24298. }
  24299. .groupBtn {
  24300. margin-left: 10px;
  24301. }
  24302. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24303. text-align: left;
  24304. }
  24305. .g_d_btnBox {
  24306. display: flex;
  24307. justify-content: flex-end;
  24308. align-items: center;
  24309. margin-bottom: 20px;
  24310. }
  24311. .updateChair {
  24312. position: relative;
  24313. }
  24314. .updateChairBtn {
  24315. position: absolute;
  24316. width: 50px;
  24317. height: 50px;
  24318. overflow: hidden;
  24319. /* display: flex; */
  24320. align-items: center;
  24321. justify-content: center;
  24322. background: #00000087;
  24323. color: #fff;
  24324. border-radius: 50px;
  24325. display: none;
  24326. cursor: pointer;
  24327. }
  24328. .updateChair:hover .updateChairBtn {
  24329. display: flex;
  24330. }
  24331. .group_staic_box {
  24332. display: flex;
  24333. padding: 30px 40px 10px;
  24334. flex-wrap: wrap;
  24335. }
  24336. .group_staic {
  24337. /* width: 50%; */
  24338. margin-bottom: 20px;
  24339. display: flex;
  24340. align-items: center;
  24341. }
  24342. .group_staic span:nth-child(1) {
  24343. width: 150px;
  24344. text-align: right;
  24345. margin-right: 15px;
  24346. }
  24347. .group_staic span:nth-child(2) {
  24348. background: rgb(0 123 255);
  24349. color: #fff;
  24350. border-radius: 5px;
  24351. padding: 5px;
  24352. }
  24353. .codeFileBox {
  24354. height: 300px;
  24355. background: #fff;
  24356. display: flex;
  24357. align-items: center;
  24358. justify-content: center;
  24359. }
  24360. .codeFileBox img {
  24361. width: 200px;
  24362. margin: 0;
  24363. height: auto;
  24364. }
  24365. .codeFileBox div {
  24366. background: rgb(80, 142, 226);
  24367. color: #fff;
  24368. padding: 10px 20px;
  24369. border-radius: 25px;
  24370. cursor: pointer;
  24371. margin-left: 15px;
  24372. }
  24373. .radioBox {
  24374. display: flex;
  24375. flex-direction: column;
  24376. flex-wrap: nowrap;
  24377. align-items: flex-start;
  24378. }
  24379. .radioBox > div {
  24380. margin: 10px 0 0 10px;
  24381. }
  24382. /* .radioBox >>> .el-radio__input,
  24383. .radioBox >>> .el-checkbox__inner {
  24384. margin-left: 10px;
  24385. } */
  24386. .radioBox >>> .el-radio__label,
  24387. .radioBox >>> .el-checkbox__label {
  24388. display: flex;
  24389. align-items: center;
  24390. width: 100%;
  24391. }
  24392. .radioBox >>> .el-radio__label > span {
  24393. width: 100%;
  24394. display: -webkit-box;
  24395. overflow: hidden;
  24396. white-space: normal !important;
  24397. text-overflow: ellipsis;
  24398. word-wrap: break-word;
  24399. }
  24400. .inImg {
  24401. width: 100px;
  24402. cursor: pointer;
  24403. }
  24404. .inImg > img {
  24405. width: 100%;
  24406. height: 100%;
  24407. object-fit: cover;
  24408. }
  24409. .timuImgBox {
  24410. margin: 10px 0;
  24411. display: flex;
  24412. flex-direction: column;
  24413. flex-wrap: wrap;
  24414. align-items: flex-start;
  24415. }
  24416. .timuImg {
  24417. width: 150px;
  24418. margin: 5px 0;
  24419. cursor: pointer;
  24420. }
  24421. .timuImg > img {
  24422. width: 100%;
  24423. height: 100%;
  24424. object-fit: cover;
  24425. }
  24426. .worksTop {
  24427. display: flex;
  24428. flex-direction: row;
  24429. align-items: flex-end;
  24430. }
  24431. .worksTitle{
  24432. display: flex;
  24433. flex-direction: row;
  24434. flex-wrap: nowrap;
  24435. align-items: center;
  24436. }
  24437. .worksTitle::before,.worksTop::before{
  24438. content: '';
  24439. display: block;
  24440. width: 3px;
  24441. height: 20px;
  24442. background: #0061FF;
  24443. border-radius: 3px;
  24444. margin: 0 5px 0 0;
  24445. }
  24446. .corOpen {
  24447. margin: 0 0 0 10px;
  24448. font-size: 14px;
  24449. cursor: pointer;
  24450. color: #505050;
  24451. }
  24452. .corOpen:hover {
  24453. color: #499eef;
  24454. }
  24455. .navCorOpenBox {
  24456. display: flex;
  24457. flex-direction: row;
  24458. align-items: center;
  24459. justify-content: space-between;
  24460. height: 55px;
  24461. background: #ffffff;
  24462. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24463. border-radius: 8px 8px 0px 0px;
  24464. z-index: 9;
  24465. position: relative;
  24466. }
  24467. .navCorOpen {
  24468. padding-right: 15px;
  24469. cursor: pointer;
  24470. width: 45px;
  24471. display: flex;
  24472. }
  24473. .navCorOpen > img {
  24474. width: 100%;
  24475. height: 100%;
  24476. }
  24477. .mlImg {
  24478. width: 40px !important;
  24479. min-width: 40px;
  24480. cursor: pointer;
  24481. transform: rotate(180deg);
  24482. }
  24483. .mlImg > img {
  24484. width: 100%;
  24485. height: 100%;
  24486. }
  24487. .navLeftCss {
  24488. width: 100% !important;
  24489. left: 0 !important;
  24490. }
  24491. .isContentCss {
  24492. width: 100% !important;
  24493. }
  24494. .isAllWidth {
  24495. width: 100% !important;
  24496. }
  24497. .group_switch {
  24498. margin-right: 10px;
  24499. height: 30px;
  24500. display: flex;
  24501. align-items: center;
  24502. }
  24503. .group_switch > span {
  24504. margin-right: 5px;
  24505. }
  24506. .fileC_box {
  24507. padding-top: 15px;
  24508. }
  24509. .fileC_box > .fileC_title {
  24510. padding: 10px 5px 14px 10px;
  24511. border-top: 1px solid #cad1dc;
  24512. font-size: 14px;
  24513. font-weight: 400;
  24514. color: #cad1dc;
  24515. width: calc(100% - 20px);
  24516. margin: 0 auto;
  24517. box-sizing: border-box;
  24518. }
  24519. .pl_select_box {
  24520. height: 40px;
  24521. line-height: 40px;
  24522. width: 100%;
  24523. cursor: pointer;
  24524. padding: 0 20px;
  24525. box-sizing: border-box;
  24526. border-radius: 5px;
  24527. border: 1px solid #d6d6d6;
  24528. white-space: nowrap;
  24529. overflow: hidden;
  24530. text-overflow: ellipsis;
  24531. background: #fff;
  24532. text-align: left;
  24533. }
  24534. .newButton {
  24535. width: 102px;
  24536. height: 36px;
  24537. background: #e7ebf1;
  24538. border-radius: 4px;
  24539. color: #0e1e33;
  24540. font-weight: 400;
  24541. font-size: 14px;
  24542. border: none;
  24543. float: right;
  24544. margin-left: 10px;
  24545. }
  24546. .el-table >>> .even_row {
  24547. background-color: #f0f4fa;
  24548. }
  24549. .stageBoxCss,
  24550. .stageBoxIsCss {
  24551. display: flex;
  24552. flex-direction: row;
  24553. flex-wrap: nowrap;
  24554. align-items: center;
  24555. height: 50px;
  24556. border-bottom: 1px solid #e2f5fc;
  24557. cursor: pointer;
  24558. width: 100%;
  24559. }
  24560. .stageBoxIsCss {
  24561. background: #0061ff;
  24562. color: #fff;
  24563. border-radius: 8px;
  24564. }
  24565. .stageItemTitle {
  24566. display: flex;
  24567. flex-direction: row;
  24568. flex-wrap: nowrap;
  24569. align-items: center;
  24570. margin-left: 15px;
  24571. width: calc(100% - 50px);
  24572. }
  24573. /* .stageNav{ */
  24574. /* font-weight: bold; */
  24575. /* } */
  24576. .stageItemTitle > div:first-child {
  24577. min-width: 55px;
  24578. }
  24579. .stageItemTitle > div:last-child {
  24580. max-width: 242px;
  24581. white-space: nowrap;
  24582. overflow: hidden;
  24583. text-overflow: ellipsis;
  24584. word-break: break-word;
  24585. width: calc(100% - 55px);
  24586. }
  24587. .closeTri,
  24588. .closeTri1 {
  24589. min-width: 15px;
  24590. width: 15px;
  24591. height: 15px;
  24592. transition: all .5s;
  24593. }
  24594. .closeTri1 {
  24595. padding-left: 10px;
  24596. cursor: pointer;
  24597. }
  24598. .closeTri > img,
  24599. .closeTri1 > img {
  24600. width: 100%;
  24601. height: 100%;
  24602. /* transition: all .5s; */
  24603. }
  24604. .noToolBlue {
  24605. min-width: 10px;
  24606. width: 10px;
  24607. height: 10px;
  24608. background: #0061ff;
  24609. border-radius: 50%;
  24610. margin-left: 13px;
  24611. }
  24612. .stageChild,
  24613. .toolChild {
  24614. height: 0;
  24615. overflow: hidden;
  24616. transition: all 0.5s;
  24617. }
  24618. /* .toolChild { */
  24619. /* margin: 0 0 0 17px;
  24620. padding: 0 0 0 20px;
  24621. border-left: 1px solid #d7d7d7; */
  24622. /* } */
  24623. .toolChild > div + div{
  24624. margin-top:5px;
  24625. }
  24626. .gjCss {
  24627. display: flex;
  24628. flex-direction: row;
  24629. flex-wrap: nowrap;
  24630. align-items: center;
  24631. padding: 10px 0 10px 25px;
  24632. box-sizing: border-box;
  24633. font-size: 14px;
  24634. cursor: pointer;
  24635. border-radius:5px;
  24636. }
  24637. .gjCss > div:nth-child(1){
  24638. flex-shrink: 0;
  24639. }
  24640. .toolChild > div {
  24641. position: relative;
  24642. width:100%;
  24643. }
  24644. /* .toolChild > div::before { */
  24645. /* content: "";
  24646. width: 15px;
  24647. height: 1px;
  24648. background: #cad1dc;
  24649. position: absolute;
  24650. top: 24px;
  24651. left: -20px;
  24652. display: block; */
  24653. /* } */
  24654. .isGjCss {
  24655. /* color: #0061ff; */
  24656. color:#fff;
  24657. background: rgb(55, 129, 252);
  24658. /* background-color: #e0eafb !important;
  24659. color: #0061ff !important; */
  24660. }
  24661. .navItem {
  24662. background: #ffffff;
  24663. border-radius: 4px;
  24664. width: 100%;
  24665. margin: 10px auto;
  24666. position: relative;
  24667. height: 40px;
  24668. display: flex;
  24669. flex-direction: row;
  24670. flex-wrap: nowrap;
  24671. align-items: center;
  24672. }
  24673. .navItemList {
  24674. display: flex;
  24675. flex-direction: row;
  24676. flex-wrap: nowrap;
  24677. align-items: center;
  24678. padding: 0 13px;
  24679. cursor: pointer;
  24680. width: calc(100% - 60px);
  24681. height: 100%;
  24682. }
  24683. .navItemList > div:first-child {
  24684. /* min-width: 60px; */
  24685. min-width:fit-content;
  24686. }
  24687. .navItemList > div:last-child {
  24688. width: calc(100% - 80px);
  24689. white-space: nowrap;
  24690. overflow: hidden;
  24691. text-overflow: ellipsis;
  24692. word-break: break-word;
  24693. }
  24694. /* .isItemList > div {
  24695. color: #fff !important;
  24696. } */
  24697. .tool_work_box {
  24698. width: 100%;
  24699. padding: 0 37px 0;
  24700. box-sizing: border-box;
  24701. }
  24702. .tool_box {
  24703. width: 100%;
  24704. padding: 0 0 0 20px;
  24705. }
  24706. .tool_type_box {
  24707. display: flex;
  24708. flex-direction: row;
  24709. align-items: baseline;
  24710. flex-wrap: nowrap;
  24711. justify-content: flex-start;
  24712. position: relative;
  24713. }
  24714. .toolSort {
  24715. display: flex;
  24716. flex-direction: row;
  24717. flex-wrap: wrap;
  24718. justify-content: flex-start;
  24719. align-items: flex-start;
  24720. padding: 0 0 15px 0;
  24721. }
  24722. .toolSort > div {
  24723. margin: 0 10px 0 0;
  24724. width: 135px;
  24725. box-sizing: border-box;
  24726. border: 2px solid transparent;
  24727. }
  24728. .tools {
  24729. width: 100%;
  24730. display: flex;
  24731. flex-direction: column;
  24732. flex-wrap: nowrap;
  24733. align-items: flex-start;
  24734. }
  24735. .whiteBIcon {
  24736. width: fit-content;
  24737. cursor: pointer;
  24738. display: flex;
  24739. flex-direction: column;
  24740. flex-wrap: nowrap;
  24741. align-items: center;
  24742. font-size: 14px;
  24743. }
  24744. .tool:hover {
  24745. border: 2px solid #a5c7ff;
  24746. border-radius: 5px;
  24747. }
  24748. .whiteBIcon > img {
  24749. width: 65px;
  24750. height: 100%;
  24751. }
  24752. .whiteBIcon > img {
  24753. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  24754. border-radius: 15px;
  24755. }
  24756. .check {
  24757. /* width: 20px;
  24758. height: 20px; */
  24759. cursor: pointer;
  24760. margin: 10px 0;
  24761. position: absolute;
  24762. right: 2px;
  24763. top: -5px;
  24764. }
  24765. .noChoose,
  24766. .isChoose {
  24767. width: 15px;
  24768. height: 15px;
  24769. border-radius: 50%;
  24770. border: 1px solid #adadad;
  24771. }
  24772. .isChoose {
  24773. border: 4px solid #0363ff !important;
  24774. width: 10px;
  24775. height: 10px;
  24776. }
  24777. .isToolChoose {
  24778. border: 2px solid #5394ff !important;
  24779. border-radius: 5px;
  24780. box-shadow: 0 0 6px 0px #5394ff;
  24781. }
  24782. .checkDiv {
  24783. display: flex;
  24784. align-items: center;
  24785. }
  24786. .checkDiv span {
  24787. margin-left: 5px;
  24788. color: #858585;
  24789. }
  24790. .check img {
  24791. width: 20px;
  24792. height: 20px;
  24793. }
  24794. .lockTaskIcon {
  24795. width: 20px;
  24796. height: 20px;
  24797. position: absolute;
  24798. right: 10px;
  24799. top: 5px;
  24800. }
  24801. .lockTaskIcon > img {
  24802. width: 100%;
  24803. height: 100%;
  24804. }
  24805. .pick_box {
  24806. display: flex;
  24807. align-items: flex-start;
  24808. flex-wrap: wrap;
  24809. }
  24810. .selectBox {
  24811. width: 110px;
  24812. margin-left: 10px;
  24813. margin: 0 10px 0 auto;
  24814. }
  24815. .selectBox >>> .el-input__inner {
  24816. height: 30px;
  24817. line-height: 30px;
  24818. }
  24819. .selectBox >>> .el-input__icon {
  24820. line-height: 30px;
  24821. }
  24822. .sentenceTitle {
  24823. display: flex;
  24824. flex-direction: row;
  24825. flex-wrap: nowrap;
  24826. align-items: center;
  24827. }
  24828. .sentenceTitle::before {
  24829. content: attr(index);
  24830. background: #3681fc;
  24831. border-radius: 50%;
  24832. color: #fff;
  24833. width: 25px;
  24834. height: 25px;
  24835. min-width: 25px;
  24836. min-height: 25px;
  24837. text-align: center;
  24838. line-height: 25px;
  24839. margin-right: 5px;
  24840. }
  24841. .hfBox {
  24842. padding: 10px;
  24843. box-sizing: border-box;
  24844. }
  24845. .whoReplyWho {
  24846. display: flex;
  24847. flex-direction: row;
  24848. flex-wrap: nowrap;
  24849. align-items: baseline;
  24850. justify-content: flex-start;
  24851. }
  24852. .hfBottom {
  24853. display: flex;
  24854. flex-direction: row;
  24855. flex-wrap: nowrap;
  24856. align-items: center;
  24857. justify-content: space-between;
  24858. font-size: 14px;
  24859. }
  24860. .deleteHfItem {
  24861. cursor: pointer;
  24862. width: 20px;
  24863. height: 20px;
  24864. }
  24865. .deleteHfItem > img {
  24866. width: 100%;
  24867. height: 100%;
  24868. }
  24869. .whoReplyWho > .hfImg {
  24870. width: 12px;
  24871. height: 12px;
  24872. margin: 0 5px;
  24873. }
  24874. .whoReplyWho > .hfImg > img {
  24875. width: 100%;
  24876. height: 100%;
  24877. }
  24878. .hfContent {
  24879. padding-top: 10px;
  24880. box-sizing: border-box;
  24881. display: -webkit-box;
  24882. overflow: hidden;
  24883. white-space: normal !important;
  24884. text-overflow: ellipsis;
  24885. word-wrap: break-word;
  24886. -webkit-box-orient: vertical;
  24887. }
  24888. .hfTime {
  24889. text-align: left;
  24890. box-sizing: border-box;
  24891. padding: 10px 0 10px 0px;
  24892. color: #bfbfbf;
  24893. font-size: 14px;
  24894. }
  24895. .btnAllNT {
  24896. position: fixed;
  24897. bottom: 100px;
  24898. right: 40px;
  24899. z-index: 999;
  24900. display: flex;
  24901. flex-direction: row;
  24902. }
  24903. .btnAllNT > img {
  24904. cursor: pointer;
  24905. width: 80px;
  24906. }
  24907. .toolMask {
  24908. position: fixed;
  24909. width: 100%;
  24910. height: 100%;
  24911. background: #3f3c3c;
  24912. opacity: 0.5;
  24913. top: 0;
  24914. left: 0;
  24915. z-index: 999;
  24916. }
  24917. .addToolCss {
  24918. position: fixed;
  24919. z-index: 999;
  24920. background: #fff;
  24921. right: 5%;
  24922. bottom: 18%;
  24923. min-width: 1035px;
  24924. min-height: 300px;
  24925. border-radius: 10px;
  24926. box-shadow: 0 0 8px 1px #b2b2b2;
  24927. }
  24928. .toolTop {
  24929. display: flex;
  24930. flex-direction: row;
  24931. flex-wrap: nowrap;
  24932. justify-content: space-between;
  24933. align-items: center;
  24934. padding: 20px;
  24935. }
  24936. .toolTop > div:nth-child(2) {
  24937. width: 15px;
  24938. height: 15px;
  24939. padding-right: 10px;
  24940. cursor: pointer;
  24941. }
  24942. .toolTop > div:nth-child(2) > img {
  24943. width: 100%;
  24944. height: 100%;
  24945. }
  24946. .fullStyle>>>.el-dialog__body {
  24947. height: calc(100% - 125px) !important;
  24948. box-sizing: border-box;
  24949. padding: 30px 0 !important;
  24950. background: #fff !important;
  24951. }
  24952. .fullStyle>>>.el-dialog {
  24953. width: 100% !important;
  24954. max-width: 100% !important;
  24955. height: 100% !important;
  24956. margin: 0 !important;
  24957. }
  24958. .fullStyle {
  24959. width: 100% !important;
  24960. max-width: 100% !important;
  24961. height: 100% !important;
  24962. margin: 0 auto !important;
  24963. }
  24964. .fullStyle>>>.el-dialog__footer{
  24965. background: #fff !important;
  24966. }
  24967. .engUpBox {
  24968. width: 100%;
  24969. height: 100%;
  24970. }
  24971. .engTitle,
  24972. .engText {
  24973. display: flex;
  24974. flex-direction: row;
  24975. flex-wrap: nowrap;
  24976. align-items: flex-start;
  24977. padding: 0 20px 20px 20px;
  24978. box-sizing: border-box;
  24979. }
  24980. .engTitle > .div:first-child,
  24981. .engText > div:first-child {
  24982. min-width: 75px;
  24983. }
  24984. .correctBox{
  24985. width: 100%;
  24986. display: flex;
  24987. flex-direction: row;
  24988. flex-wrap: nowrap;
  24989. align-items: flex-start;
  24990. }
  24991. .oldBox{
  24992. width: 50%;
  24993. height: 100%;
  24994. display: flex;
  24995. flex-direction: column;
  24996. flex-wrap: nowrap;
  24997. align-items: center;
  24998. border-top: 1px solid #d9d9d9;
  24999. border-left: 1px solid #d9d9d9;
  25000. border-right: 1px solid #d9d9d9;
  25001. }
  25002. .oldBox>div:first-child{
  25003. width: 100%;
  25004. text-align: center;
  25005. background: #d9d9d9;
  25006. height: 35px;
  25007. line-height: 35px;
  25008. font-weight: bold;
  25009. }
  25010. .oldText{
  25011. width: 100%;
  25012. height: calc(100% - 35px);
  25013. overflow: auto;
  25014. margin: 10px 0;
  25015. display: flex;
  25016. flex-direction: column;
  25017. flex-wrap: nowrap;
  25018. align-content: center;
  25019. align-items: center;
  25020. }
  25021. .detailBox{
  25022. width: 50%;
  25023. padding: 10px;
  25024. background: #f6f6f6;
  25025. border-radius: 5px;
  25026. }
  25027. .oldDetail,.oldDetail1{
  25028. padding-bottom: 30px;
  25029. }
  25030. .oldImg{
  25031. width:30px;
  25032. height: 30px;
  25033. }
  25034. .oldImg>img{
  25035. width: 100%;
  25036. height: 100%;
  25037. }
  25038. .allName{
  25039. min-width: 200px;
  25040. white-space: nowrap;
  25041. overflow: hidden;
  25042. text-overflow: ellipsis;
  25043. word-break: break-word;
  25044. cursor: pointer;
  25045. text-align: center;
  25046. border: 1px solid #bcc2cc;
  25047. box-sizing: border-box;
  25048. }
  25049. .engUpTop{
  25050. max-height: 300px;
  25051. overflow: auto;
  25052. }
  25053. .isUpdateToolDetailClass{
  25054. padding: 0 !important;
  25055. }
  25056. .isUpdateToolDetailClass textarea{
  25057. padding:12px;
  25058. font-size: 16px;
  25059. min-height:100%;
  25060. width: 100%;
  25061. box-sizing:border-box;
  25062. outline: none;
  25063. border:none;
  25064. line-height: 30px;
  25065. resize: none;
  25066. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25067. color: #838383;
  25068. }
  25069. .show_taskD {
  25070. min-width: fit-content;
  25071. margin-left: 10px;
  25072. display: flex;
  25073. align-items: center;
  25074. font-size: 14px;
  25075. cursor: pointer;
  25076. color: #717c8d;
  25077. }
  25078. .show_taskD > img {
  25079. width: 15px;
  25080. margin-right: 5px;
  25081. transition: 0.2s all;
  25082. transform: rotate(-90deg);
  25083. }
  25084. .show_taskD.show > img {
  25085. transform: rotate(0deg);
  25086. }
  25087. .correctCss{
  25088. position: absolute;
  25089. bottom: -70px;
  25090. background: #409eff;
  25091. color: #fff;
  25092. }
  25093. .dialog_diyCopy >>> .el-dialog__header {
  25094. display: none !important;
  25095. }
  25096. .dialog_diyCopy >>> .el-dialog__body {
  25097. padding: 0 !important;
  25098. height: 100% !important;
  25099. }
  25100. .confirmOpenDigCss > div{
  25101. font-size: 14px;
  25102. color: rgba(0, 0, 0, 0.6);
  25103. }
  25104. .confirmOpenDigCss >>> .el-dialog{
  25105. border-radius: 6px;
  25106. }
  25107. .confirmOpenDigCss >>> .el-dialog__body{
  25108. padding: 25px !important;
  25109. }
  25110. .confirmOpenDigCss > span{
  25111. font-size: 16px;
  25112. font-weight: 600;
  25113. color: rgba(0, 0, 0, 0.8);
  25114. }
  25115. div::-webkit-scrollbar {
  25116. width: 10px;
  25117. height: 6px;
  25118. }
  25119. .Ovh{
  25120. margin: 5px 0;
  25121. width: 4em;
  25122. -webkit-line-clamp: 2;
  25123. display: -webkit-box;
  25124. -webkit-box-orient: vertical;
  25125. overflow: hidden;
  25126. text-overflow: ellipsis;
  25127. }
  25128. .renderedFor >>> .katex {
  25129. font-size: 18px;
  25130. width: 100%;
  25131. white-space: normal;
  25132. font-family: '黑体' !important;
  25133. }
  25134. .renderedFor >>> .katex .base{
  25135. display: inline !important;
  25136. display: contents !important;
  25137. }
  25138. .renderedFor>>> .katex .base .cjk_fallback{
  25139. white-space: normal !important;
  25140. display: inline !important;
  25141. }
  25142. .notop >>> .vjs-fluid{
  25143. padding-top: 0 !important;
  25144. }
  25145. .xiaz{
  25146. position: absolute;
  25147. right: 40px;
  25148. top: 10px;
  25149. width: 24px !important;
  25150. padding: 4px;
  25151. box-sizing: border-box;
  25152. background: #243052;
  25153. border-radius: 8px;
  25154. height: 24px !important;
  25155. }
  25156. </style>