studyStudent.vue 875 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- 极简模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <!-- <div class="btnAllNT">
  16. <img
  17. v-if="
  18. courseDetail.userid == userid ||
  19. (courseDetail.course_teacher &&
  20. courseDetail.course_teacher.indexOf(userid) != -1)
  21. "
  22. src="../../assets/icon/learn/addTool.png"
  23. @click="openToolAll"
  24. style="position: relative"
  25. />
  26. <img
  27. src="../../assets/icon/learn/last.png"
  28. @click="nextOrpreSteps(0)"
  29. />
  30. <img
  31. src="../../assets/icon/learn/next.png"
  32. @click="nextOrpreSteps(1)"
  33. />
  34. <img
  35. src="../../assets/icon/learn/return.png"
  36. @click.stop="
  37. goTo(
  38. '/courseDetail?userid=' +
  39. userid +
  40. '&oid=' +
  41. oid +
  42. '&org=' +
  43. org +
  44. '&cid=' +
  45. classId +
  46. '&courseId=' +
  47. id +
  48. '&tType=' +
  49. tType +
  50. '&screenType=' +
  51. screenType
  52. )
  53. "
  54. />
  55. </div> -->
  56. <div
  57. class="pButton"
  58. style="left: 0; top: 140px"
  59. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  60. @click="setContent2(true)"
  61. >
  62. <!-- 批 , getCourseDetail()-->
  63. <img
  64. src="../../assets/icon/newIcons/isRight.png"
  65. style="width: 45px"
  66. alt=""
  67. />
  68. </div>
  69. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  70. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  71. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  72. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  73. <div
  74. style="
  75. max-width: calc(100% - 40px);
  76. width: auto;
  77. white-space: nowrap;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. word-break: break-word;
  81. display: block;
  82. "
  83. >
  84. <el-tooltip
  85. effect="light"
  86. :content="courseDetail.title"
  87. placement="top"
  88. >
  89. <div class="ctitle">
  90. {{ courseDetail.title }}
  91. </div>
  92. </el-tooltip>
  93. </div>
  94. <el-tooltip effect="light" :content="lang.ssCollapse" placement="top">
  95. <div class="mlImg" @click="setContent2(false)">
  96. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  97. </div>
  98. </el-tooltip>
  99. </div>
  100. <div
  101. class="inviteBox"
  102. v-if="tcid && inviteCode"
  103. style="padding: 0 0 8px 0"
  104. >
  105. <div>
  106. <span>{{ lang.ssInviteCodeLabel }}{{ Code2 ? Code2 + inviteCode : inviteCode }}</span>
  107. <!-- <span>识别码:{{ inviteCode }}</span> -->
  108. </div>
  109. </div>
  110. </div>
  111. <div class="cru_selectBox">
  112. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  113. <div class="stageChild" :class="{ navActive: item.isOpen }">
  114. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  115. <div
  116. class="navItem"
  117. :class="{
  118. openTaskActive:
  119. navIndex == taskCount &&
  120. nav.id == navId &&
  121. stageIndex == courseType,
  122. }"
  123. >
  124. <div v-if="nav.tool[0].tool != undefined">
  125. <div
  126. class="closeTri1"
  127. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  128. @click="openTask(stageIndex, navIndex, nav.id)"
  129. >
  130. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  131. </div>
  132. <div
  133. class="closeTri1"
  134. v-else
  135. @click="openTask(stageIndex, navIndex, nav.id)"
  136. >
  137. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  138. </div>
  139. </div>
  140. <div v-else class="noToolBlue"></div>
  141. <div
  142. @click="openTask(stageIndex, navIndex, nav.id)"
  143. class="navItemList"
  144. :class="{
  145. isItemList:
  146. navIndex == taskCount &&
  147. nav.id == navId &&
  148. stageIndex == courseType,
  149. }"
  150. >
  151. <div>{{lang.ssTaskNumFormat.replace(/\*/g, navIndex + 1)}}</div>
  152. <el-tooltip
  153. effect="light"
  154. :content="nav.taskName"
  155. placement="top"
  156. >
  157. <div
  158. :style="{
  159. width:
  160. IsLookOpen && !nav.isLook
  161. ? 'calc(100% - 75px)'
  162. : 'auto',
  163. }"
  164. >
  165. {{ nav.taskName }}
  166. </div>
  167. </el-tooltip>
  168. </div>
  169. <div class="lockTaskIcon">
  170. <img
  171. src="../../assets/lock.png"
  172. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  173. courseDetail.course_teacher.indexOf(userid) ==-1"
  174. alt=""
  175. />
  176. </div>
  177. </div>
  178. <div
  179. v-if="nav.tool[0].tool != undefined"
  180. class="toolChild"
  181. :class="{ toolActive: nav.isOpen }"
  182. >
  183. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  184. <div
  185. class="gjCss"
  186. :class="{
  187. isGjCss: t.isTool,
  188. }"
  189. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  190. >
  191. <div>{{lang.ssToolNum.replace(/\*/g, toolIndex2 + 1)}}</div>
  192. <div v-if="t.tool == 58">{{lang.ssSimulateDrive}}</div>
  193. <div v-if="t.tool == 59">{{lang.ssPathSearch}}</div>
  194. <div v-if="t.tool == 60">{{lang.ssDeepLearning}}</div>
  195. <div v-if="t.tool == 10">{{lang.ssCountdown}}</div>
  196. <div v-if="t.tool == 65">{{lang.ssPickPerson}}</div>
  197. <div v-if="t.tool == 7">{{lang.ssMindGrid}}</div>
  198. <div v-if="t.tool == 1">{{lang.ssWhiteboard}}</div>
  199. <div v-if="t.tool == 52">{{lang.ssDocument}}</div>
  200. <div v-if="t.tool == 3">{{lang.ssMindMap}}</div>
  201. <div v-if="t.tool == 48">{{lang.ssTable}}</div>
  202. <div v-if="t.tool == 49">{{lang.ssStudentGroup}}</div>
  203. <div v-if="t.tool == 4">{{lang.ssSurvey}}</div>
  204. <div v-if="t.tool == 45">{{lang.ssChoice}}</div>
  205. <div v-if="t.tool == 15">{{lang.ssQa}}</div>
  206. <div v-if="t.tool == 16">{{lang.ssHomework}}</div>
  207. <div v-if="t.tool == 50">{{lang.ssBatchUpload}}</div>
  208. <div v-if="t.tool == 41">{{lang.ssMatch}}</div>
  209. <div v-if="t.tool == 47">{{lang.ssSort}}</div>
  210. <div v-if="t.tool == 40">{{lang.ssPersonalEval}}</div>
  211. <div v-if="t.tool == 18">{{lang.ssTraining}}</div>
  212. <div v-if="t.tool == 21">AIoT Blockly</div>
  213. <div v-if="t.tool == 23">AI Python</div>
  214. <div v-if="t.tool == 24">AI Blockly</div>
  215. <div v-if="t.tool == 32">{{lang.ssCodeEdit}}</div>
  216. <div v-if="t.tool == 57">CocoPi</div>
  217. <div v-if="t.tool == 63">{{lang.ssTurtle}}</div>
  218. <div v-if="t.tool == 28">{{lang.ssTranslate}}</div>
  219. <div v-if="t.tool == 31">{{lang.ssDigitalBoard}}</div>
  220. <div v-if="t.tool == 39">GeoGebra</div>
  221. <div v-if="t.tool == 66">{{lang.ssFormula}}</div>
  222. <div v-if="t.tool == 67">{{lang.ssMolecule}}</div>
  223. <div v-if="t.tool == 68">{{lang.ssTimeline}}</div>
  224. <div v-if="t.tool == 69">{{lang.ssEnglishWrite}}</div>
  225. <div v-if="t.tool == 70">{{lang.ssEnglishSpeak}}</div>
  226. <div v-if="t.tool == 25">{{lang.ssGoalManage}}</div>
  227. <div v-if="t.tool == 26">{{lang.ssCourseDesign}}</div>
  228. <div v-if="t.tool == 62">{{lang.ssInteractiveVideo}}</div>
  229. <div v-if="t.tool == 71">{{lang.ssAiAgent}}</div>
  230. <div v-if="t.tool == 72">{{lang.ssAppCenter}}</div>
  231. <div v-if="t.tool == 73">PPT</div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  241. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  242. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  243. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  244. <div>{{lang.ssTaskNum.replace(/\*/g, taskCount + 1)}}</div>
  245. <el-tooltip
  246. effect="light"
  247. :content="
  248. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  249. "
  250. placement="top"
  251. >
  252. <div>
  253. {{
  254. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  255. .task
  256. }}
  257. </div>
  258. </el-tooltip>
  259. </div>
  260. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  261. <div class="btnAll" v-show="(!orgArray.includes(org) && !oidArray.includes(oid)) || $region == 'hk'">
  262. <div class="btnLeft">
  263. <el-tooltip effect="light" :content="lang.ssRefresh" placement="top">
  264. <div class="reBtnIcon" @click="refreshCourse">
  265. <span>{{lang.ssRefresh}}</span>
  266. </div>
  267. </el-tooltip>
  268. <el-tooltip effect="light" :content="lang.ssComment" placement="top">
  269. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  270. <span>{{lang.ssComment}}</span>
  271. </div>
  272. </el-tooltip>
  273. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  274. <el-tooltip effect="light" :content="lang.ssRecord" placement="top">
  275. <div class="vedioIcon" @click="startRecording">
  276. <span>{{lang.ssRecord}}</span>
  277. </div>
  278. </el-tooltip>
  279. </div>
  280. <div v-else-if="tType == 1 || tType == 4">
  281. <el-tooltip effect="light" :content="lang.ssDownload" placement="top">
  282. <div class="vedioIcon1" @click="stopRecording">
  283. <span>{{lang.ssDownload}}</span>
  284. </div>
  285. </el-tooltip>
  286. </div>
  287. </div>
  288. <div class="btnRight">
  289. <div
  290. class="last"
  291. @click="nextOrpreSteps(0)"
  292. v-if="!(IsFollow && tType == 2)"
  293. @mouseover="isHovered = true"
  294. @mouseout="isHovered = false"
  295. >
  296. <div class="lastImg">
  297. <img
  298. :src="
  299. isHovered
  300. ? require('../../assets/icon/newIcons/whiteLast.png')
  301. : require('../../assets/icon/newIcons/last.png')
  302. "
  303. alt=""
  304. />
  305. </div>
  306. <div class="lastText">{{lang.ssPrevious}}</div>
  307. </div>
  308. <div
  309. class="last"
  310. @click="nextOrpreSteps(1)"
  311. v-if="!(IsFollow && tType == 2)"
  312. @mouseover="isHovered1 = true"
  313. @mouseout="isHovered1 = false"
  314. >
  315. <div class="lastText">{{lang.ssNext}}</div>
  316. <div class="lastImg">
  317. <img
  318. :src="
  319. isHovered1
  320. ? require('../../assets/icon/newIcons/whiteNext.png')
  321. : require('../../assets/icon/newIcons/next.png')
  322. "
  323. alt=""
  324. />
  325. </div>
  326. </div>
  327. <div
  328. class="last"
  329. @click="juriVisible = true"
  330. v-if="tType == 1"
  331. @mouseover="isHovered2 = true"
  332. @mouseout="isHovered2 = false"
  333. >
  334. <div class="lastImg">
  335. <img
  336. :src="
  337. isHovered2
  338. ? require('../../assets/icon/newIcons/whiteLock.png')
  339. : require('../../assets/icon/newIcons/lock.png')
  340. "
  341. alt=""
  342. />
  343. </div>
  344. <div class="lastText">{{lang.ssPermission}}</div>
  345. </div>
  346. <div
  347. class="returnBtn1 returnIcon"
  348. @click.stop="
  349. goTo(
  350. '/courseDetail?userid=' +
  351. userid +
  352. '&oid=' +
  353. oid +
  354. '&org=' +
  355. org +
  356. '&cid=' +
  357. classId +
  358. '&courseId=' +
  359. id +
  360. '&tType=' +
  361. tType +
  362. '&screenType=' +
  363. screenType
  364. )
  365. "
  366. >
  367. <div class="lastImg">
  368. <img src="../../assets/icon/newIcon/return.png" alt="" />
  369. </div>
  370. <div class="lastText" style="color: #000">{{lang.ssReturn}}</div>
  371. </div>
  372. </div>
  373. <!-- <div
  374. class="returnBtn lockIcon"
  375. @click="juriVisible = true"
  376. v-if="tType == 1"
  377. >
  378. 权限
  379. </div>
  380. <div
  381. class="returnBtn vedioIcon"
  382. @click="startRecording"
  383. v-if="!videoStart && (tType == 1 || tType == 4)"
  384. >
  385. 录制
  386. </div>
  387. <div
  388. class="returnBtn"
  389. @click="stopRecording"
  390. v-else-if="tType == 1 || tType == 4"
  391. style="background: #ee5255"
  392. >
  393. 下载
  394. </div>
  395. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  396. 评论
  397. </div>
  398. <div
  399. class="returnBtn"
  400. @click="nextOrpreSteps(0)"
  401. v-if="!(IsFollow && tType == 2)"
  402. >
  403. 上一步
  404. </div>
  405. <div
  406. class="returnBtn"
  407. @click="nextOrpreSteps(1)"
  408. v-if="!(IsFollow && tType == 2)"
  409. >
  410. 下一步
  411. </div>
  412. <div class="returnBtn" @click="refreshCourse">刷新</div>
  413. <div
  414. class="returnBtn returnIcon"
  415. @click.stop="
  416. goTo(
  417. '/courseDetail?userid=' +
  418. userid +
  419. '&oid=' +
  420. oid +
  421. '&org=' +
  422. org +
  423. '&cid=' +
  424. classId +
  425. '&courseId=' +
  426. id +
  427. '&tType=' +
  428. tType +
  429. '&screenType=' +
  430. screenType
  431. )
  432. "
  433. >
  434. 返回
  435. </div> -->
  436. </div>
  437. </div>
  438. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  439. .taskDetail3 && -->
  440. <div
  441. class="isNoMessage"
  442. v-if="
  443. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  444. .chapterData.length == 0 &&
  445. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  446. .toolChoose[0].tool.length == 0 &&
  447. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .taskDetail == '' &&
  449. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  450. .eList &&
  451. !(
  452. courseDetail.userid == userid ||
  453. (courseDetail.course_teacher &&
  454. courseDetail.course_teacher.indexOf(userid) != -1)
  455. )
  456. "
  457. >
  458. <img src="../../assets/icon/isNoMessage.png" alt />
  459. </div>
  460. <div class="study_top" :class="{ pzClass: pzDialog }">
  461. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  462. .taskDetail3 || -->
  463. <div
  464. class="vedioBox"
  465. v-if="
  466. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  467. .taskDetail != '' ||
  468. vChapterData[0].length > 0 ||
  469. fileC[0].length > 0) && (tType == 1 || (tType == 2 && IsStulook))
  470. "
  471. style="border-radius: 0 0 20px 20px"
  472. >
  473. <!-- <div
  474. class="taskBox"
  475. v-if="
  476. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  477. .taskDetail3
  478. "
  479. >
  480. <div
  481. style="
  482. display: flex;
  483. flex-wrap: nowrap;
  484. flex-direction: column;
  485. position: relative;
  486. "
  487. >
  488. <div
  489. style="
  490. padding: 15px 0;
  491. line-height: 29px;
  492. font-size: 18px;
  493. color: #0e1e33;
  494. "
  495. class="cont"
  496. v-if="
  497. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  498. .taskDetail3 != ''
  499. "
  500. v-html="
  501. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  502. .taskDetail3
  503. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  504. taskCount
  505. ].taskDetail3)
  506. : '暂无描述'
  507. "
  508. ></div>
  509. </div>
  510. </div> -->
  511. <div
  512. class="taskBox"
  513. v-if="
  514. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  515. .taskDetail != ''
  516. "
  517. >
  518. <div
  519. style="
  520. display: flex;
  521. flex-wrap: nowrap;
  522. flex-direction: column;
  523. position: relative;
  524. "
  525. class="renderedFor"
  526. >
  527. <div
  528. style="
  529. padding: 15px 0;
  530. line-height: 29px;
  531. font-size: 18px;
  532. color: #0e1e33;
  533. "
  534. class="cont"
  535. v-if="
  536. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  537. .taskDetail != ''
  538. "
  539. v-html="
  540. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  541. .taskDetail
  542. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  543. taskCount
  544. ].taskDetail
  545. : lang.ssNoDesc
  546. "
  547. ></div>
  548. </div>
  549. </div>
  550. <div
  551. class="student_head"
  552. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  553. >
  554. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  555. <div
  556. :class="
  557. contentDialog == false
  558. ? 'box_course isContentCss'
  559. : 'box_course'
  560. "
  561. v-if="
  562. vChapterData.length > 0 &&
  563. vChapterData[0] &&
  564. showType !== ''
  565. "
  566. >
  567. <div class="wheel" style="height: auto" v-if="showType === 0">
  568. <div
  569. class="workd_media"
  570. style="height: 650px; width: calc(100% - 50px)"
  571. >
  572. <video-player
  573. class="video-player vjs-custom-skin notop"
  574. :class="contentDialog == false ? 'isAllWidth' : ''"
  575. :playsinline="true"
  576. :options="playerO[0]"
  577. @play="onPlayerPlay($event)"
  578. style="width: 100%; height: 650px; margin: 0 0 0 30px"
  579. ></video-player>
  580. </div>
  581. </div>
  582. <div
  583. class="wheel"
  584. v-if="showType == 1"
  585. style="
  586. box-shadow: 0 0 6px 1px #f2f2f2;
  587. width: 95%;
  588. margin: 0 auto;
  589. background: #f1f1f1;
  590. "
  591. >
  592. <div class="title">{{lang.ssViewDoc}}</div>
  593. <el-form class="textBox">
  594. <el-form-item class="textTitle">
  595. <div style="font-size: 22px">
  596. {{ text.name }}
  597. </div>
  598. </el-form-item>
  599. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  600. <div v-html="text.url" class="textContent cont"></div>
  601. </el-form>
  602. </div>
  603. <div
  604. class="wheel"
  605. v-if="
  606. pptImgUrl1.indexOf(
  607. 'https://view.officeapps.live.com/op/view.aspx?src='
  608. ) != -1 && showType == 2
  609. "
  610. style="width: 95%; margin: 0 auto"
  611. >
  612. <iframe
  613. style="width: 100%; height: 100%; border: none"
  614. :src="pptImgUrl1"
  615. ></iframe>
  616. </div>
  617. <div
  618. class="wheel"
  619. v-else-if="showType == 2"
  620. style="width: 95%; margin: 0 auto"
  621. >
  622. <iframe
  623. style="width: 100%; height: 100%; border: none"
  624. :key="diffKey"
  625. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  626. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  627. :src="pptImgUrl1"
  628. ></iframe>
  629. <iframe
  630. style="width: 100%; height: 100%; border: none"
  631. security="restricted"
  632. v-else
  633. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  634. :src="pptImgUrl1"
  635. ></iframe>
  636. </div>
  637. <div
  638. class="wheel"
  639. v-if="showType === 16"
  640. style="width: 95%; margin: 0 auto"
  641. >
  642. <iframe
  643. style="width: 100%; height: 100%; border: none"
  644. :src="pptImgUrl1"
  645. ></iframe>
  646. </div>
  647. <div
  648. class="wheel"
  649. v-if="showType == 3"
  650. style="width: 95%; margin: 0 auto"
  651. >
  652. <pdf
  653. :pdfUrl="pptImgUrl1"
  654. style="width: 100%; height: 100%; overflow: auto"
  655. ></pdf>
  656. </div>
  657. <div
  658. class="wheel"
  659. v-if="showType == 4"
  660. style="width: 95%; margin: 0 auto"
  661. >
  662. <el-image
  663. :src="pptImgUrl1"
  664. fit="contain"
  665. style="width: 100%; height: 100%; cursor: pointer"
  666. @click="previewImg(pptImgUrl1)"
  667. ></el-image>
  668. </div>
  669. </div>
  670. <div
  671. class="pButton"
  672. style="position: absolute; right: 20px; top: 0; z-index: 998"
  673. v-if="!contentDialog"
  674. @click="setContent(true)"
  675. >
  676. <!-- 批 -->
  677. <img
  678. src="../../assets/icon/newIcons/isLeft.png"
  679. style="width: 45px"
  680. alt=""
  681. />
  682. </div>
  683. <div
  684. v-if="contentDialog == true"
  685. :style="{
  686. width:
  687. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  688. showType === ''
  689. ? 'calc(100%)'
  690. : '300px',
  691. margin:
  692. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  693. showType === ''
  694. ? '0 15px'
  695. : '0 15px 0 0',
  696. }"
  697. >
  698. <div
  699. class="vedioList"
  700. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  701. style="height: 650px"
  702. >
  703. <div class="navCorOpenBox">
  704. <div class="navTitile">{{lang.ssContentListLabel}}</div>
  705. <div class="navCorOpen" @click="setContent(false)">
  706. <img
  707. src="../../assets/icon/newIcons/isRight.png"
  708. alt=""
  709. />
  710. </div>
  711. </div>
  712. <div class="navBox">
  713. <div
  714. v-show="
  715. vChapterData[0].length > 0 || fileC[0].length > 0
  716. "
  717. style="padding: 10px 0 25px 0"
  718. >
  719. <div
  720. class="vedioTimeBox"
  721. v-for="(vitem, vindex) in vChapterData[0]"
  722. :key="vindex + '1'"
  723. >
  724. <div class="navListItem" v-if="vitem.type == 2">
  725. <div
  726. @click="lookVedio(vitem.url, vindex)"
  727. class="navText"
  728. :class="isClickNav == vindex ? 'isClickNav' : ''"
  729. >
  730. <span v-if="vitem.text">{{ vitem.text }}-</span
  731. >{{ vitem.name }}
  732. </div>
  733. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  734. <img
  735. src="../../assets/icon/newIcon/down.png"
  736. alt
  737. />
  738. </div> -->
  739. </div>
  740. <div class="navListItem" v-if="vitem.type == 6">
  741. <div
  742. @click="lookText(0, vindex)"
  743. class="navText"
  744. :class="isClickNav == vindex ? 'isClickNav' : ''"
  745. >
  746. {{ vitem.name }}.doc
  747. </div>
  748. <div
  749. class="downIcon"
  750. @click="checkFileFull1(vitem.type, vitem)"
  751. >
  752. <img
  753. src="../../assets/icon/newIcon/allScreen.png"
  754. alt
  755. />
  756. </div>
  757. </div>
  758. <div
  759. class="navListItem"
  760. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  761. >
  762. <div
  763. @click="doUrl(vitem.url, vindex)"
  764. class="navText"
  765. :class="isClickNav == vindex ? 'isClickNav' : ''"
  766. >
  767. {{ vitem.title ? vitem.title : vitem.url }}
  768. </div>
  769. <div
  770. class="downIcon"
  771. @click="checkFileFull1(vitem.type, vitem)"
  772. >
  773. <img
  774. src="../../assets/icon/newIcon/allScreen.png"
  775. alt
  776. />
  777. </div>
  778. </div>
  779. <div class="navListItem" v-if="vitem.type == 3">
  780. <div
  781. @click="downFile(vitem, vindex)"
  782. class="navText"
  783. :class="isClickNav == vindex ? 'isClickNav' : ''"
  784. >
  785. <span v-if="vitem.text">{{ vitem.text }}-</span
  786. >{{ vitem.name }}
  787. </div>
  788. <div
  789. class="downIcon"
  790. @click="checkFileFull1(vitem.type, vitem)"
  791. >
  792. <img
  793. src="../../assets/icon/newIcon/allScreen.png"
  794. alt
  795. />
  796. </div>
  797. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  798. <img
  799. src="../../assets/icon/newIcon/down.png"
  800. alt
  801. />
  802. </div> -->
  803. </div>
  804. <div class="navListItem" v-if="vitem.type == 12">
  805. <div class="navText" @click="downloadFile2(vitem)">
  806. <span v-if="vitem.text">{{ vitem.text }}-</span
  807. >{{ vitem.name }}
  808. </div>
  809. <div
  810. class="downIcon"
  811. @click="checkFileFull1(vitem.type, vitem)"
  812. >
  813. <img
  814. src="../../assets/icon/newIcon/allScreen.png"
  815. alt
  816. />
  817. </div>
  818. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  819. <img
  820. src="../../assets/icon/newIcon/down.png"
  821. alt
  822. />
  823. </div> -->
  824. </div>
  825. <div class="navListItem" v-if="vitem.type == 13">
  826. <div
  827. class="navText"
  828. @click="checkPhoto(vitem, vindex)"
  829. :class="isClickNav == vindex ? 'isClickNav' : ''"
  830. >
  831. {{ vitem.name }}
  832. </div>
  833. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  834. <img
  835. src="../../assets/icon/newIcon/down.png"
  836. alt
  837. />
  838. </div> -->
  839. </div>
  840. <div class="navListItem" v-if="vitem.type == 16">
  841. <div
  842. class="navText"
  843. @click="checkHtml(vitem, vindex)"
  844. :class="isClickNav == vindex ? 'isClickNav' : ''"
  845. >
  846. {{ vitem.name }}
  847. </div>
  848. <div
  849. class="downIcon"
  850. @click="checkFileFull1(vitem.type, vitem)"
  851. >
  852. <img
  853. src="../../assets/icon/newIcon/allScreen.png"
  854. alt
  855. />
  856. </div>
  857. </div>
  858. <div class="navListItem" v-if="vitem.type == 17">
  859. <div
  860. class="navText"
  861. @click="checkHtml(vitem, vindex)"
  862. :class="isClickNav == vindex ? 'isClickNav' : ''"
  863. >
  864. {{ vitem.name }}
  865. </div>
  866. <div
  867. class="downIcon"
  868. @click="checkFileFull1(vitem.type, vitem)"
  869. >
  870. <img
  871. src="../../assets/icon/newIcon/allScreen.png"
  872. alt
  873. />
  874. </div>
  875. </div>
  876. </div>
  877. <div class="fileC_box" v-if="fileC[0].length > 0">
  878. <div class="fileC_title">{{lang.ssNoPreview}}</div>
  879. <div
  880. class="vedioTimeBox"
  881. v-for="(vitem, vindex) in fileC[0]"
  882. :key="vindex + '1'"
  883. >
  884. <div class="navListItem" v-if="vitem.type == 12">
  885. <div class="navText" style="color: #acb4bf">
  886. <span v-if="vitem.text">{{ vitem.text }}-</span
  887. >{{ vitem.name }}
  888. </div>
  889. <div
  890. class="downIcon"
  891. @click="downloadFile2(vitem)"
  892. >
  893. <img
  894. src="../../assets/icon/newIcon/down.png"
  895. alt
  896. />
  897. </div>
  898. </div>
  899. </div>
  900. </div>
  901. </div>
  902. </div>
  903. </div>
  904. </div>
  905. </div>
  906. <div style="width: calc(100% - 315px)">
  907. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  908. <!-- <el-button
  909. type="primary"
  910. class="newButton"
  911. @click="checkFileFull(showType, pptImgUrl1)"
  912. >全屏查看</el-button
  913. >
  914. <el-button
  915. type="primary"
  916. class="newButton"
  917. @click="downloadFile(pptImgUrl1)"
  918. v-if="showType != 2"
  919. >文件下载</el-button
  920. > -->
  921. <el-button
  922. v-if="
  923. showType == 2 &&
  924. pptImgUrl1.indexOf(
  925. 'https://view.officeapps.live.com/op/view.aspx?src='
  926. ) == -1
  927. "
  928. type="primary"
  929. class="newButton"
  930. @click="openLine(pptImgUrl1)"
  931. >{{lang.ssOpenLink}}
  932. </el-button>
  933. </div>
  934. <!-- <div
  935. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  936. v-if="showType == 1"
  937. >
  938. <el-button
  939. type="primary"
  940. class="newButton"
  941. @click="checkFileFull(showType, text)"
  942. >全屏查看</el-button
  943. >
  944. </div> -->
  945. </div>
  946. </div>
  947. </div>
  948. <div class="student_body" v-resize="resize">
  949. <div
  950. class="vedioBox"
  951. :style="{
  952. borderRadius:
  953. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  954. .taskDetail == '' &&
  955. vChapterData[taskCount].length == 0 &&
  956. fileC[taskCount].length == 0
  957. ? '0 0 20px 20px'
  958. : '20px',
  959. }"
  960. v-if="
  961. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  962. .toolChoose[0].tool &&
  963. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  964. .toolChoose[0].tool.length > 0
  965. "
  966. >
  967. <div
  968. class="toolHeng2"
  969. style="position: relative"
  970. v-if="
  971. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  972. .toolChoose[0].tool &&
  973. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  974. .toolChoose[0].tool.length &&
  975. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  976. .toolChoose[0].tool.length > 0
  977. "
  978. >
  979. <div class="workNav">{{ lang.ssWorkArea }}</div>
  980. <div
  981. class="filebox"
  982. style="flex-wrap: nowrap"
  983. v-for="(tool, toolIndex) in chapInfoList[courseType]
  984. .chapterInfo[0].taskJson[taskCount].toolChoose"
  985. :key="toolIndex"
  986. >
  987. <div class="bzBox">
  988. <div class="yCss"></div>
  989. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  990. {{ lang.ssToolNum.replace(/\*/g, toolIndex + 1) }}
  991. </div>
  992. <div
  993. v-if="timeWorkList[toolIndex].length > 0"
  994. style="margin: 0 0 0 10px"
  995. >
  996. {{
  997. timeWorkList[toolIndex][0].time
  998. ? lang.ssTimeLabel + timeWorkList[toolIndex][0].time
  999. : ""
  1000. }}
  1001. </div>
  1002. </div>
  1003. <div class="toolBox">
  1004. <div>
  1005. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  1006. :key="indexTool"-->
  1007. <!-- <div class="iframeBox">
  1008. <div
  1009. class="addPoint isBorder"
  1010. v-for="(tooC, toolCIndex) in tool.tool"
  1011. :key="toolCIndex"
  1012. >
  1013. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  1014. <div
  1015. class="iframeName"
  1016. >
  1017. 电子白板
  1018. </div>
  1019. <iframe
  1020. src="https://iwb.cocorobo.cn/"
  1021. ref="whiteBoard"
  1022. ></iframe>
  1023. </div>
  1024. </div>
  1025. </div>-->
  1026. <div class="noiframeBox">
  1027. <div
  1028. class="addPoint"
  1029. v-for="(tooC, toolCIndex) in tool.tool"
  1030. :key="toolCIndex"
  1031. >
  1032. <div v-if="tooC == 1">
  1033. <img
  1034. src="../../assets/icon/secondToolList/whiteBoard.png"
  1035. alt
  1036. @click="addTools(tooC, toolIndex, taskCount)"
  1037. />
  1038. <div style="margin: 5px 0">{{ lang.ssWhiteboard }}</div>
  1039. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1040. style="position: absolute;right: 33px;top: -30px;">
  1041. {{ lang.ssAnalyze }}
  1042. </div>
  1043. </div>
  1044. <div v-if="tooC == 3">
  1045. <img
  1046. src="../../assets/icon/secondToolList/mindMapping.png"
  1047. alt
  1048. @click="addTools(tooC, toolIndex, taskCount)"
  1049. />
  1050. <div style="margin: 5px 0">{{ lang.ssMindMap }}</div>
  1051. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1052. style="position: absolute;right: 33px;top: -30px;">
  1053. {{ lang.ssAnalyze }}
  1054. </div>
  1055. </div>
  1056. <div v-if="tooC == 6">
  1057. <img
  1058. src="../../assets/icon/secondToolList/doc.png"
  1059. alt
  1060. @click="addTools(tooC, toolIndex, taskCount)"
  1061. />
  1062. <div style="margin: 5px 0">{{ lang.ssCoDoc }}</div>
  1063. </div>
  1064. <div v-if="tooC == 7">
  1065. <img
  1066. src="../../assets/icon/secondToolList/mindNetwork.png"
  1067. alt
  1068. @click="addTools(tooC, toolIndex, taskCount)"
  1069. />
  1070. <div style="margin: 5px 0">{{ lang.ssMindGrid }}</div>
  1071. <!-- && worksStudent[toolIndex].length>0 -->
  1072. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1073. style="position: absolute;right: 33px;top: -30px;">
  1074. {{ lang.ssAnalyze }}
  1075. </div>
  1076. </div>
  1077. <div v-if="tooC == 8">
  1078. <img
  1079. src="../../assets/icon/secondToolList/library.png"
  1080. alt
  1081. @click="addTools(tooC, toolIndex, taskCount)"
  1082. />
  1083. <div style="margin: 5px 0">{{ lang.ssMaterialLib }}</div>
  1084. </div>
  1085. <div v-if="tooC == 17">
  1086. <img
  1087. src="../../assets/icon/secondToolList/library.png"
  1088. alt
  1089. @click="addTools(tooC, toolIndex, taskCount)"
  1090. />
  1091. <div style="margin: 5px 0">{{ lang.ssLearningMaterial }}</div>
  1092. </div>
  1093. <div v-if="tooC == 2">
  1094. <img
  1095. @click="addTools(tooC, toolIndex, taskCount)"
  1096. src="../../assets/icon/secondToolList/note.png"
  1097. alt
  1098. />
  1099. <div style="margin: 5px 0">{{ lang.ssNote }}</div>
  1100. </div>
  1101. <div v-if="tooC == 4">
  1102. <img
  1103. @click="addTools(tooC, toolIndex, taskCount)"
  1104. src="../../assets/icon/thirdToolList/ask.png"
  1105. alt
  1106. />
  1107. <div style="margin: 5px 0">{{ lang.ssSurvey }}</div>
  1108. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1109. style="position: absolute;right: 153px;top: -30px;">
  1110. {{ lang.ssAnalyze }}
  1111. </div>
  1112. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1113. style="position: absolute;right: 33px;top: -30px;">
  1114. {{ lang.ssStatisticalAnalysis }}
  1115. </div>
  1116. </div>
  1117. <div v-if="tooC == 45">
  1118. <img
  1119. @click="addTools(tooC, toolIndex, taskCount)"
  1120. src="../../assets/icon/thirdToolList/choose.png"
  1121. alt
  1122. />
  1123. <div style="margin: 5px 0">{{ lang.ssChoice }}</div>
  1124. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1125. style="position: absolute;right: 33px;top: -30px;">
  1126. {{ lang.ssAnalyze }}
  1127. </div>
  1128. </div>
  1129. <!-- <div v-if="tooC == 5">
  1130. <img
  1131. @click="addTools(tooC, toolIndex, taskCount)"
  1132. src="../../assets/icon/thirdToolList/score.png"
  1133. alt
  1134. />
  1135. <div style="margin: 5px 0">量规评分</div>
  1136. </div> -->
  1137. <div v-if="tooC == 10">
  1138. <img
  1139. @click="addTools(tooC, toolIndex, taskCount)"
  1140. src="../../assets/icon/thirdToolList/time.png"
  1141. alt
  1142. />
  1143. <div style="margin: 5px 0">{{ lang.ssCountdown }}</div>
  1144. </div>
  1145. <div v-if="tooC == 15">
  1146. <img
  1147. @click="addTools(tooC, toolIndex, taskCount)"
  1148. src="../../assets/icon/thirdToolList/answer.png"
  1149. alt
  1150. />
  1151. <div style="margin: 5px 0">{{ lang.ssQa }}</div>
  1152. <div class="upload_toolBtn" v-if="tType == 1"
  1153. :style="{ right: lang.lang == 'com' ? '220px' : '135px' }"
  1154. @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1155. style="position: absolute;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1156. {{ lang.ssAnalyze }}
  1157. </div>
  1158. </div>
  1159. <div v-if="tooC == 26">
  1160. <img
  1161. @click="addTools(tooC, toolIndex, taskCount)"
  1162. src="../../assets/icon/thirdToolList/courseDesign.png"
  1163. alt
  1164. />
  1165. <div style="margin: 5px 0">{{ lang.ssCourseDesign }}</div>
  1166. </div>
  1167. <div v-if="tooC == 18">
  1168. <img
  1169. @click="addTools(tooC, toolIndex, taskCount)"
  1170. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1171. alt
  1172. />
  1173. <div style="margin: 5px 0">{{ lang.ssTrainingServer }}</div>
  1174. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1175. style="position: absolute;right: 33px;top: -30px;">
  1176. {{ lang.ssAnalyze }}
  1177. </div>
  1178. </div>
  1179. <div v-if="tooC == 16">
  1180. <img
  1181. @click="addTools(tooC, toolIndex, taskCount)"
  1182. src="../../assets/icon/thirdToolList/work.png"
  1183. alt
  1184. />
  1185. <div style="margin: 5px 0">{{ lang.ssHomework }}</div>
  1186. </div>
  1187. <div v-if="tooC == 50">
  1188. <img
  1189. @click="addTools(tooC, toolIndex, taskCount)"
  1190. src="../../assets/icon/thirdToolList/plwork.png"
  1191. alt
  1192. />
  1193. <div style="margin: 5px 0">{{ lang.ssBatchUpload }}</div>
  1194. </div>
  1195. <div v-if="tooC == 21">
  1196. <img
  1197. @click="addTools(tooC, toolIndex, taskCount)"
  1198. src="../../assets/icon/fourthToolList/program.png"
  1199. alt
  1200. />
  1201. <div style="margin: 5px 0">AIoT Blockly</div>
  1202. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1203. style="position: absolute;right: 33px;top: -30px;">
  1204. {{ lang.ssAnalyze }}
  1205. </div>
  1206. </div>
  1207. <!-- <div v-if="tooC == 22">
  1208. <img
  1209. @click="addTools(tooC, toolIndex, taskCount)"
  1210. src="../../assets/icon/fourthToolList/program.png"
  1211. alt
  1212. />
  1213. <div style="margin: 5px 0">AI体验</div>
  1214. </div> -->
  1215. <div v-if="tooC == 23">
  1216. <img
  1217. @click="addTools(tooC, toolIndex, taskCount)"
  1218. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1219. alt
  1220. />
  1221. <div style="margin: 5px 0">AI Python</div>
  1222. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1223. style="position: absolute;right: 33px;top: -30px;">
  1224. {{ lang.ssAnalyze }}
  1225. </div>
  1226. </div>
  1227. <div v-if="tooC == 24">
  1228. <img
  1229. @click="addTools(tooC, toolIndex, taskCount)"
  1230. src="../../assets/icon/fourthToolList/AIprogram.png"
  1231. alt
  1232. />
  1233. <div style="margin: 5px 0">AI Blockly</div>
  1234. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1235. style="position: absolute;right: 33px;top: -30px;">
  1236. {{ lang.ssAnalyze }}
  1237. </div>
  1238. </div>
  1239. <div v-if="tooC == 25">
  1240. <img
  1241. @click="addTools(tooC, toolIndex, taskCount)"
  1242. src="../../assets/icon/thirdToolList/evalua.png"
  1243. alt
  1244. />
  1245. <div style="margin: 5px 0">{{ lang.ssGoalManage }}</div>
  1246. </div>
  1247. <div v-if="tooC == 31">
  1248. <img
  1249. @click="addTools(tooC, toolIndex, taskCount)"
  1250. src="../../assets/icon/secondToolList/networkPanel.png"
  1251. alt
  1252. />
  1253. <div style="margin: 5px 0">{{ lang.ssMathBoard }}</div>
  1254. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1255. style="position: absolute;right: 33px;top: -30px;">
  1256. {{ lang.ssAnalyze }}
  1257. </div>
  1258. </div>
  1259. <div v-if="tooC == 28">
  1260. <img
  1261. @click="addTools(tooC, toolIndex, taskCount)"
  1262. src="../../assets/icon/secondToolList/translation.png"
  1263. alt
  1264. />
  1265. <div style="margin: 5px 0">{{ lang.ssTranslate }}</div>
  1266. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1267. style="position: absolute;right: 33px;top: -30px;">
  1268. {{ lang.ssAnalyze }}
  1269. </div>
  1270. </div>
  1271. <div v-if="tooC == 37">
  1272. <img
  1273. @click="addTools(tooC, toolIndex, taskCount)"
  1274. src="../../assets/icon/secondToolList/mohe.png"
  1275. alt
  1276. />
  1277. <div style="margin: 5px 0">{{ lang.ssMohe }}</div>
  1278. </div>
  1279. <div v-if="tooC == 38">
  1280. <img
  1281. @click="addTools(tooC, toolIndex, taskCount)"
  1282. src="../../assets/icon/secondToolList/24game.png"
  1283. alt
  1284. />
  1285. <div style="margin: 5px 0">{{ lang.ss24Game }}</div>
  1286. </div>
  1287. <div v-if="tooC == 39">
  1288. <img
  1289. @click="addTools(tooC, toolIndex, taskCount)"
  1290. src="../../assets/icon/secondToolList/GeoGebra.png"
  1291. alt
  1292. />
  1293. <div style="margin: 5px 0">GeoGebra</div>
  1294. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1295. style="position: absolute;right: 33px;top: -30px;">
  1296. {{ lang.ssAnalyze }}
  1297. </div>
  1298. </div>
  1299. <div v-if="tooC == 32">
  1300. <img
  1301. @click="addTools(tooC, toolIndex, taskCount)"
  1302. src="../../assets/icon/thirdToolList/code.png"
  1303. alt
  1304. />
  1305. <div style="margin: 5px 0">{{ lang.ssCodeEdit }}</div>
  1306. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1307. style="position: absolute;right: 153px;top: -42px;">
  1308. {{ lang.ssAnalyze }}
  1309. </div>
  1310. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1311. style="position: absolute;left: 110px;bottom: 30px;">
  1312. 上传文件
  1313. <input type="file" accept="*" style="display: none"
  1314. @change="beforeUpload1($event, 7, toolIndex)" />
  1315. </div> -->
  1316. </div>
  1317. <div v-if="tooC == 40">
  1318. <img
  1319. @click="addTools(tooC, toolIndex, taskCount)"
  1320. src="../../assets/icon/secondToolList/eval.png"
  1321. alt
  1322. />
  1323. <div style="margin: 5px 0">{{ lang.ssPersonalEval }}</div>
  1324. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1325. style="position: absolute;right: 33px;top: -30px;">
  1326. {{ lang.ssAnalyze }}
  1327. </div>
  1328. </div>
  1329. <div v-if="tooC == 41">
  1330. <img
  1331. @click="addTools(tooC, toolIndex, taskCount)"
  1332. src="../../assets/icon/thirdToolList/select.png"
  1333. alt
  1334. />
  1335. <div style="margin: 5px 0">{{ lang.ssMatch }}</div>
  1336. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1337. style="position: absolute;right: 33px;top: -30px;">
  1338. {{ lang.ssAnalyze }}
  1339. </div>
  1340. </div>
  1341. <div v-if="tooC == 44">
  1342. <img
  1343. @click="addTools(tooC, toolIndex, taskCount)"
  1344. src="../../assets/icon/thirdToolList/hanClass.png"
  1345. alt
  1346. />
  1347. <div style="margin: 5px 0">{{ lang.ssHanziPalace }}</div>
  1348. </div>
  1349. <div v-if="tooC == 47">
  1350. <img
  1351. @click="addTools(tooC, toolIndex, taskCount)"
  1352. src="../../assets/icon/fourthToolList/conSentences.png"
  1353. alt
  1354. />
  1355. <div style="margin: 5px 0">{{ lang.ssSort }}</div>
  1356. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1357. style="position: absolute;right: 33px;top: -30px;">
  1358. {{ lang.ssAnalyze }}
  1359. </div>
  1360. </div>
  1361. <div v-if="tooC == 48">
  1362. <img
  1363. @click="addTools(tooC, toolIndex, taskCount)"
  1364. src="../../assets/icon/fourthToolList/table.png"
  1365. alt
  1366. />
  1367. <div style="margin: 5px 0">{{ lang.ssTable }}</div>
  1368. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1369. style="position: absolute;right: 33px;top: -30px;">
  1370. {{ lang.ssAnalyze }}
  1371. </div>
  1372. </div>
  1373. <div v-if="tooC == 52">
  1374. <img
  1375. @click="addTools(tooC, toolIndex, taskCount)"
  1376. src="../../assets/icon/fourthToolList/text.png"
  1377. alt
  1378. />
  1379. <div style="margin: 5px 0">{{ lang.ssDocument }}</div>
  1380. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1381. style="position: absolute;right: 33px;top: -30px;">
  1382. {{ lang.ssAnalyze }}
  1383. </div>
  1384. </div>
  1385. <div v-if="tooC == 49">
  1386. <img
  1387. @click="addTools(tooC, toolIndex, taskCount)"
  1388. src="../../assets/icon/fourthToolList/group.png"
  1389. alt
  1390. />
  1391. <div style="margin: 5px 0">{{ lang.ssStudentGroup }}</div>
  1392. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1393. style="position: absolute;right: 33px;top: -30px;">
  1394. {{ lang.ssAnalyze }}
  1395. </div>
  1396. </div>
  1397. <div v-if="tooC == 57">
  1398. <img
  1399. @click="addTools(tooC, toolIndex, taskCount)"
  1400. src="../../assets/icon/fourthToolList/cocopi.png"
  1401. alt
  1402. />
  1403. <div style="margin: 5px 0">CocoPi</div>
  1404. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1405. style="position: absolute;right: 33px;top: -30px;">
  1406. {{ lang.ssAnalyze }}
  1407. </div>
  1408. </div>
  1409. <div v-if="tooC == 58">
  1410. <img
  1411. @click="addTools(tooC, toolIndex, taskCount)"
  1412. src="../../assets/icon/fourthToolList/car.png"
  1413. alt
  1414. />
  1415. <div style="margin: 5px 0">{{ lang.ssSimulateDrive }}</div>
  1416. </div>
  1417. <div v-if="tooC == 59">
  1418. <img
  1419. @click="addTools(tooC, toolIndex, taskCount)"
  1420. src="../../assets/icon/fourthToolList/lineSearch.png"
  1421. alt
  1422. />
  1423. <div style="margin: 5px 0">{{ lang.ssPathSearch }}</div>
  1424. </div>
  1425. <div v-if="tooC == 60">
  1426. <img
  1427. @click="addTools(tooC, toolIndex, taskCount)"
  1428. src="../../assets/icon/fourthToolList/deepLearning.png"
  1429. alt
  1430. />
  1431. <div style="margin: 5px 0">{{ lang.ssDeepLearning }}</div>
  1432. </div>
  1433. <div v-if="tooC == 61">
  1434. <img
  1435. @click="addTools(tooC, toolIndex, taskCount)"
  1436. src="../../assets/icon/fourthToolList/allHistory.png"
  1437. alt
  1438. />
  1439. <div style="margin: 5px 0">{{ lang.ssAllHistory }}</div>
  1440. </div>
  1441. <div v-if="tooC == 62">
  1442. <img
  1443. @click="addTools(tooC, toolIndex, taskCount)"
  1444. src="../../assets/icon/fourthToolList/interVideo.png"
  1445. alt
  1446. />
  1447. <div style="margin: 5px 0">{{ lang.ssInteractiveVideo }}</div>
  1448. </div>
  1449. <div v-if="tooC == 63">
  1450. <img
  1451. @click="addTools(tooC, toolIndex, taskCount)"
  1452. src="../../assets/icon/fourthToolList/Wood.png"
  1453. alt
  1454. />
  1455. <div style="margin: 5px 0">{{ lang.ssTurtle }}</div>
  1456. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1457. style="position: absolute;right: 33px;top: -30px;">
  1458. {{ lang.ssAnalyze }}
  1459. </div>
  1460. </div>
  1461. <div v-if="tooC == 71">
  1462. <img
  1463. @click="addTools(tooC, toolIndex, taskCount)"
  1464. src="../../assets/icon/fourthToolList/chatgpt.png"
  1465. alt
  1466. />
  1467. <div style="margin: 5px 0">{{ lang.ssAiAgent }}</div>
  1468. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1469. style="position: absolute;right: 33px;top: -30px;">
  1470. {{ lang.ssAnalyze }}
  1471. </div>
  1472. </div>
  1473. <div v-if="tooC == 72">
  1474. <img
  1475. style="height: 85px;object-fit: cover;"
  1476. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1477. @click="addTools(tooC, toolIndex, taskCount)"
  1478. :src="tool.appJson.json.icon"
  1479. alt
  1480. />
  1481. <img
  1482. v-else
  1483. @click="addTools(tooC, toolIndex, taskCount)"
  1484. src="../../assets/icon/firstToolList/appStore.png"
  1485. alt
  1486. />
  1487. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : lang.ssAppCenter" placement="top" effect="dark">
  1488. <!-- content to trigger tooltip here -->
  1489. <div class="Ovh">
  1490. {{tool.appJson && tool.appJson.name ? tool.appJson.name : lang.ssAppCenter}}
  1491. </div>
  1492. </el-tooltip>
  1493. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1494. style="position: absolute;right: 33px;top: -30px;">
  1495. {{ lang.ssAnalyze }}
  1496. </div>
  1497. </div>
  1498. <div v-if="tooC == 73">
  1499. <img
  1500. src="../../assets/icon/secondToolList/ppt.png"
  1501. alt
  1502. @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,73)"
  1503. />
  1504. <div style="margin: 5px 0">PPT</div>
  1505. </div>
  1506. <div v-if="tooC == 65">
  1507. <img
  1508. @click="addTools(tooC, toolIndex, taskCount)"
  1509. src="../../assets/icon/firstToolList/pickPeople.png"
  1510. alt
  1511. />
  1512. <div style="margin: 5px 0">{{ lang.ssPickPerson }}</div>
  1513. </div>
  1514. <div v-if="tooC == 66">
  1515. <img
  1516. @click="addTools(tooC, toolIndex, taskCount)"
  1517. src="../../assets/icon/secondToolList/formulaEdi.png"
  1518. alt
  1519. />
  1520. <div style="margin: 5px 0">{{ lang.ssFormula }}</div>
  1521. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1522. style="position: absolute;right: 33px;top: -30px;">
  1523. {{ lang.ssAnalyze }}
  1524. </div>
  1525. </div>
  1526. <div v-if="tooC == 67">
  1527. <img
  1528. @click="addTools(tooC, toolIndex, taskCount)"
  1529. src="../../assets/icon/secondToolList/molStr.png"
  1530. alt
  1531. />
  1532. <div style="margin: 5px 0">{{ lang.ssMolecule }}</div>
  1533. </div>
  1534. <div v-if="tooC == 68">
  1535. <img
  1536. @click="addTools(tooC, toolIndex, taskCount)"
  1537. src="../../assets/icon/secondToolList/timeAxis.png"
  1538. alt
  1539. />
  1540. <div style="margin: 5px 0">{{ lang.ssTimeline }}</div>
  1541. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1542. style="position: absolute;right: 33px;top: -30px;">
  1543. 分析
  1544. </div> -->
  1545. </div>
  1546. <div v-if="tooC == 69">
  1547. <img
  1548. @click="addTools(tooC, toolIndex, taskCount)"
  1549. src="../../assets/icon/secondToolList/english.png"
  1550. alt
  1551. />
  1552. <div style="margin: 5px 0">{{ lang.ssEnglishWrite }}</div>
  1553. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1554. style="position: absolute;right: 33px;top: -30px;">
  1555. {{ lang.ssAnalyze }}
  1556. </div>
  1557. </div>
  1558. <div v-if="tooC == 70">
  1559. <img
  1560. @click="addTools(tooC, toolIndex, taskCount)"
  1561. src="../../assets/icon/thirdToolList/englishVoice.png"
  1562. alt
  1563. />
  1564. <div style="margin: 5px 0">{{ lang.ssEnglishSpeak }}</div>
  1565. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1566. style="position: absolute;right: 33px;top: -30px;">
  1567. {{ lang.ssAnalyze }}
  1568. </div>
  1569. </div>
  1570. </div>
  1571. </div>
  1572. </div>
  1573. <div class="tooldetail renderedFor" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1574. <!-- <div class="toolTitle">工具描述</div> -->
  1575. <!-- @click.stop="updateToolDetail(toolIndex, 2)" 点击开启修改-->
  1576. <div style="height:100%;"
  1577. v-html="tool.toolDetail"
  1578. v-if="toolDetailIndex != toolIndex"
  1579. ></div>
  1580. <div v-else @click.stop="" style="height:100%;">
  1581. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" :placeholder="lang.ssEnterTaskDesc" v-model="updateToolDetailInner"></textarea>
  1582. </div>
  1583. </div>
  1584. <el-button
  1585. type="primary"
  1586. v-if="tool.tool[0] == 32"
  1587. style="position: absolute; right: 30px; top: -45px"
  1588. @click="addImg($event)"
  1589. >{{ lang.ssUploadHomework }}<input
  1590. type="file"
  1591. accept="*"
  1592. style="display: none"
  1593. @change="beforeUpload1($event, 7, toolIndex)"
  1594. /></el-button>
  1595. <el-button
  1596. type="primary"
  1597. v-if="tool.tool[0] == 15"
  1598. style="position: absolute; right: 30px; top: -45px"
  1599. @click="openWordCloud(toolIndex)"
  1600. >{{ lang.ssGenerateWordCloud }}
  1601. </el-button>
  1602. <el-button
  1603. type="primary"
  1604. v-if="
  1605. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1 && tType==1
  1606. "
  1607. style="position: absolute; right: 30px; top: -45px"
  1608. @click="uploadWorks(toolIndex)"
  1609. >{{ lang.ssExportHomework }}
  1610. </el-button>
  1611. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1612. position: absolute;
  1613. right: 30px;
  1614. transform: translateY(-130%);
  1615. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1616. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1617. </div>
  1618. <div
  1619. v-if="
  1620. tType &&
  1621. tType == 2 &&
  1622. !sIsOpen &&
  1623. tool.tool.indexOf(16) != -1
  1624. "
  1625. class="worksBox"
  1626. >
  1627. <div
  1628. class="zuoyeYulan"
  1629. v-if="workStudent[toolIndex].length > 0"
  1630. >
  1631. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1632. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1633. </div>
  1634. <div
  1635. class="worksDetailBox"
  1636. v-if="workStudent[toolIndex].length > 0"
  1637. >
  1638. <div
  1639. class="works"
  1640. style="
  1641. width: 200px;
  1642. height: 140px;
  1643. margin: 10px 10px 10px 0;
  1644. box-shadow: 0 0 6px 1px #dfdada;
  1645. "
  1646. v-for="(w, wIndex) in workStudent[toolIndex]"
  1647. :key="wIndex"
  1648. >
  1649. <div class="workImg" v-if="w.type == 0">
  1650. <img
  1651. :src="w.works"
  1652. @click="previewImg(w.works,w)"
  1653. alt
  1654. />
  1655. <div
  1656. class="answerScore"
  1657. v-if="w.score"
  1658. @click.stop="openScore(w)"
  1659. :class="{
  1660. rightW:
  1661. w.userid == userid || tType == 1 || tType == 4,
  1662. }"
  1663. >
  1664. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1665. </div>
  1666. <div
  1667. class="answerScore"
  1668. @click.stop="openScore(w)"
  1669. v-else-if="courseDetail.userid == userid"
  1670. :class="{
  1671. rightW:
  1672. w.userid == userid || tType == 1 || tType == 4,
  1673. }"
  1674. >
  1675. {{ lang.ssMarkScore }}
  1676. </div>
  1677. <img
  1678. class="deleteImg"
  1679. src="../../assets/deleteworks.png"
  1680. v-if="
  1681. w.userid == userid || tType == 1 || tType == 4
  1682. "
  1683. @click.stop="deleteWorks(w.wid)"
  1684. alt
  1685. />
  1686. </div>
  1687. <div class="workImg" v-if="w.type == 1">
  1688. <img :src="word" @click="openFile(w.works)" alt />
  1689. <div
  1690. class="answerScore"
  1691. v-if="w.score"
  1692. @click.stop="openScore(w)"
  1693. :class="{
  1694. rightW:
  1695. w.userid == userid || tType == 1 || tType == 4,
  1696. }"
  1697. >
  1698. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1699. </div>
  1700. <div
  1701. class="answerScore"
  1702. @click.stop="openScore(w)"
  1703. v-else-if="courseDetail.userid == userid"
  1704. :class="{
  1705. rightW:
  1706. w.userid == userid || tType == 1 || tType == 4,
  1707. }"
  1708. >
  1709. {{ lang.ssMarkScore }}
  1710. </div>
  1711. <img
  1712. class="deleteImg"
  1713. src="../../assets/deleteworks.png"
  1714. v-if="
  1715. w.userid == userid || tType == 1 || tType == 4
  1716. "
  1717. @click.stop="deleteWorks(w.wid)"
  1718. alt
  1719. />
  1720. </div>
  1721. <div class="workImg" v-if="w.type == 3">
  1722. <img
  1723. style="cursor: pointer"
  1724. :src="video"
  1725. @click="openVideo(w)"
  1726. alt
  1727. />
  1728. <div
  1729. class="answerScore"
  1730. v-if="w.score"
  1731. @click.stop="openScore(w)"
  1732. :class="{
  1733. rightW:
  1734. w.userid == userid || tType == 1 || tType == 4,
  1735. }"
  1736. >
  1737. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1738. </div>
  1739. <div
  1740. class="answerScore"
  1741. @click.stop="openScore(w)"
  1742. v-else-if="courseDetail.userid == userid"
  1743. :class="{
  1744. rightW:
  1745. w.userid == userid || tType == 1 || tType == 4,
  1746. }"
  1747. >
  1748. {{ lang.ssMarkScore }}
  1749. </div>
  1750. <img
  1751. class="deleteImg"
  1752. src="../../assets/deleteworks.png"
  1753. v-if="
  1754. w.userid == userid || tType == 1 || tType == 4
  1755. "
  1756. @click.stop="deleteWorks(w.wid)"
  1757. alt
  1758. />
  1759. </div>
  1760. <div class="workImg" v-if="w.type == 12">
  1761. <img
  1762. style="cursor: pointer"
  1763. :src="word2"
  1764. @click="downloadFile(w.works,w.userid)"
  1765. alt
  1766. />
  1767. <div
  1768. class="answerScore"
  1769. v-if="w.score"
  1770. @click.stop="openScore(w)"
  1771. :class="{
  1772. rightW:
  1773. w.userid == userid || tType == 1 || tType == 4,
  1774. }"
  1775. >
  1776. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1777. </div>
  1778. <div
  1779. class="answerScore"
  1780. @click.stop="openScore(w)"
  1781. v-else-if="courseDetail.userid == userid"
  1782. :class="{
  1783. rightW:
  1784. w.userid == userid || tType == 1 || tType == 4,
  1785. }"
  1786. >
  1787. {{ lang.ssMarkScore }}
  1788. </div>
  1789. <img
  1790. class="deleteImg"
  1791. src="../../assets/deleteworks.png"
  1792. v-if="
  1793. w.userid == userid || tType == 1 || tType == 4
  1794. "
  1795. @click.stop="deleteWorks(w.wid)"
  1796. alt
  1797. />
  1798. </div>
  1799. <div class="worksName">
  1800. <div>{{ w.sName }}</div>
  1801. </div>
  1802. </div>
  1803. </div>
  1804. </div>
  1805. <div
  1806. v-if="
  1807. tType &&
  1808. tType == 2 &&
  1809. !sIsOpen &&
  1810. tool.tool.indexOf(32) != -1
  1811. "
  1812. class="worksBox"
  1813. >
  1814. <div
  1815. class="zuoyeYulan"
  1816. v-if="workStudent[toolIndex].length > 0"
  1817. >
  1818. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1819. </div>
  1820. <div
  1821. class="worksDetailBox"
  1822. v-if="workStudent[toolIndex].length > 0"
  1823. >
  1824. <div
  1825. class="works"
  1826. style="
  1827. width: 200px;
  1828. height: 140px;
  1829. margin: 10px 10px 10px 0;
  1830. box-shadow: 0 0 6px 1px #dfdada;
  1831. "
  1832. v-for="(w, wIndex) in workStudent[toolIndex]"
  1833. :key="wIndex"
  1834. >
  1835. <div class="workImg">
  1836. <img
  1837. :src="word2"
  1838. @click="downloadFile(w.works,w.userid)"
  1839. alt
  1840. />
  1841. <div
  1842. class="answerScore"
  1843. v-if="w.score"
  1844. @click.stop="openScore(w)"
  1845. :class="{
  1846. rightW:
  1847. w.userid == userid || tType == 1 || tType == 4,
  1848. }"
  1849. >
  1850. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1851. </div>
  1852. <div
  1853. class="answerScore"
  1854. @click.stop="openScore(w)"
  1855. v-else-if="courseDetail.userid == userid"
  1856. :class="{
  1857. rightW:
  1858. w.userid == userid || tType == 1 || tType == 4,
  1859. }"
  1860. >
  1861. {{ lang.ssMarkScore }}
  1862. </div>
  1863. <img
  1864. class="deleteImg"
  1865. src="../../assets/deleteworks.png"
  1866. v-if="
  1867. w.userid == userid || tType == 1 || tType == 4
  1868. "
  1869. @click.stop="deleteWorks(w.wid)"
  1870. alt
  1871. />
  1872. </div>
  1873. <div class="worksName">
  1874. <div>{{ w.sName }}</div>
  1875. </div>
  1876. </div>
  1877. </div>
  1878. </div>
  1879. <div
  1880. v-if="
  1881. tType &&
  1882. tType == 2 &&
  1883. !sIsOpen &&
  1884. tool.tool.indexOf(57) != -1
  1885. "
  1886. class="worksBox"
  1887. >
  1888. <div
  1889. class="zuoyeYulan"
  1890. v-if="workStudent[toolIndex].length > 0"
  1891. >
  1892. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1893. </div>
  1894. <div
  1895. class="worksDetailBox"
  1896. v-if="workStudent[toolIndex].length > 0"
  1897. >
  1898. <div
  1899. class="works"
  1900. style="
  1901. width: 200px;
  1902. height: 140px;
  1903. margin: 10px 10px 10px 0;
  1904. box-shadow: 0 0 6px 1px #dfdada;
  1905. "
  1906. v-for="(w, wIndex) in workStudent[toolIndex]"
  1907. :key="wIndex"
  1908. >
  1909. <div class="workImg">
  1910. <img
  1911. :src="word2"
  1912. @click="downloadFile(w.works,w.userid)"
  1913. v-if="w.type == 12"
  1914. alt
  1915. />
  1916. <img
  1917. :src="word2"
  1918. @click="
  1919. openCocoPi(57, toolIndex, w.userid, w.sName)
  1920. "
  1921. v-else-if="w.type == 15"
  1922. alt
  1923. />
  1924. <div
  1925. class="answerScore"
  1926. v-if="w.score"
  1927. @click.stop="openScore(w)"
  1928. :class="{
  1929. rightW:
  1930. w.userid == userid || tType == 1 || tType == 4,
  1931. }"
  1932. >
  1933. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1934. </div>
  1935. <div
  1936. class="answerScore"
  1937. @click.stop="openScore(w)"
  1938. v-else-if="courseDetail.userid == userid"
  1939. :class="{
  1940. rightW:
  1941. w.userid == userid || tType == 1 || tType == 4,
  1942. }"
  1943. >
  1944. {{ lang.ssMarkScore }}
  1945. </div>
  1946. <img
  1947. class="deleteImg"
  1948. src="../../assets/deleteworks.png"
  1949. v-if="
  1950. w.userid == userid || tType == 1 || tType == 4
  1951. "
  1952. @click.stop="deleteWorks(w.wid)"
  1953. alt
  1954. />
  1955. </div>
  1956. <div class="worksName">
  1957. <div>{{ w.sName }}</div>
  1958. </div>
  1959. </div>
  1960. </div>
  1961. </div>
  1962. <div
  1963. v-if="
  1964. tType &&
  1965. tType == 2 &&
  1966. !sIsOpen &&
  1967. tool.tool.indexOf(4) != -1
  1968. "
  1969. class="worksBox"
  1970. >
  1971. <div
  1972. class="zuoyeYulan"
  1973. v-if="workStudent[toolIndex].length > 0"
  1974. >
  1975. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1976. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1977. </div>
  1978. <div
  1979. class="worksDetailBox"
  1980. v-if="workStudent[toolIndex].length > 0"
  1981. >
  1982. <div
  1983. class="isWorksName2"
  1984. v-for="(w, wIndex) in workStudent[toolIndex]"
  1985. :key="wIndex"
  1986. @click="
  1987. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1988. "
  1989. >
  1990. {{ w.sName }}
  1991. <img
  1992. class="deleteImg deleteImg2"
  1993. src="../../assets/deleteworks.png"
  1994. v-if="w.userid == userid || tType == 1 || tType == 4"
  1995. @click.stop="deleteWorks(w.wid)"
  1996. alt
  1997. />
  1998. </div>
  1999. <!-- <div
  2000. class="works"
  2001. style="
  2002. width: 200px;
  2003. height: 140px;
  2004. border-radius: 10px;
  2005. box-shadow: 0 0 6px 1px #dfdada;
  2006. overflow: hidden;
  2007. "
  2008. v-for="(w, wIndex) in workStudent[toolIndex]"
  2009. :key="wIndex"
  2010. >
  2011. <div class="workImg">
  2012. <img
  2013. src="../../assets/icon/works/noImg.png"
  2014. @click="
  2015. openTools(
  2016. 4,
  2017. toolIndex,
  2018. taskCount,
  2019. w.works,
  2020. w.sName
  2021. )
  2022. "
  2023. alt
  2024. />
  2025. </div>
  2026. <div class="worksName">
  2027. <div>{{ w.sName }}</div>
  2028. <div>{{ w.time }}</div>
  2029. </div>
  2030. </div> -->
  2031. </div>
  2032. </div>
  2033. <div
  2034. v-if="
  2035. tType &&
  2036. ((tType == 2 && sIsOpen == true) ||
  2037. tType == 1 ||
  2038. tType == 4) &&
  2039. tool.tool.indexOf(62) != -1
  2040. "
  2041. class="worksBox"
  2042. >
  2043. <div
  2044. class="zuoyeYulan"
  2045. v-if="
  2046. worksStudent.length &&
  2047. worksStudent[toolIndex].length > 0
  2048. "
  2049. >
  2050. <div class="worksTop">
  2051. <div>{{ lang.ssHomeworkPreview }}</div>
  2052. <div
  2053. class="corOpen"
  2054. @click="contract(toolIndex)"
  2055. v-if="
  2056. (isCloseList[toolIndex].isCloseBoolean) &&
  2057. isCloseList[toolIndex].isClose == 0
  2058. "
  2059. >
  2060. {{ lang.ssFold }}
  2061. </div>
  2062. <div
  2063. class="corOpen"
  2064. @click="contract(toolIndex)"
  2065. v-if="isCloseList[toolIndex].isClose == 1"
  2066. >
  2067. {{ lang.ssExpand }}
  2068. </div>
  2069. </div>
  2070. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2071. </div>
  2072. <div>
  2073. <div
  2074. :id="'tool-' + toolIndex"
  2075. :style="{
  2076. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2077. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2078. }"
  2079. class="worksDetailBox"
  2080. v-if="
  2081. worksStudent.length &&
  2082. worksStudent[toolIndex].length > 0
  2083. "
  2084. >
  2085. <div
  2086. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2087. :key="wIndex"
  2088. class="isWorksName2"
  2089. @click="
  2090. openTools(
  2091. 62,
  2092. toolIndex,
  2093. taskCount,
  2094. w.works,
  2095. w.sName
  2096. )
  2097. "
  2098. >
  2099. {{ w.sName }}
  2100. <img
  2101. class="deleteImg deleteImg2"
  2102. src="../../assets/deleteworks.png"
  2103. v-if="
  2104. w.userid == userid || tType == 1 || tType == 4
  2105. "
  2106. @click.stop="deleteWorks(w.wid)"
  2107. alt
  2108. />
  2109. </div>
  2110. </div>
  2111. </div>
  2112. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2113. {{ lang.ssNotSubmitted }}
  2114. </div>
  2115. <div
  2116. class="noWorksS"
  2117. v-if="noWorksS && noWorksS[toolIndex].length"
  2118. >
  2119. <div
  2120. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2121. :key="sIndex"
  2122. class="noWorksName"
  2123. >
  2124. <el-tooltip effect="dark" :content="s.student" placement="top">
  2125. <span>{{ s.student }}</span>
  2126. </el-tooltip>
  2127. </div>
  2128. </div>
  2129. </div>
  2130. <div
  2131. v-if="
  2132. tType &&
  2133. tType == 2 &&
  2134. !sIsOpen &&
  2135. tool.tool.indexOf(62) != -1
  2136. "
  2137. class="worksBox"
  2138. >
  2139. <div
  2140. class="zuoyeYulan"
  2141. v-if="workStudent[toolIndex].length > 0"
  2142. >
  2143. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2144. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2145. </div>
  2146. <div
  2147. class="worksDetailBox"
  2148. v-if="workStudent[toolIndex].length > 0"
  2149. >
  2150. <div
  2151. class="isWorksName2"
  2152. v-for="(w, wIndex) in workStudent[toolIndex]"
  2153. :key="wIndex"
  2154. @click="
  2155. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2156. "
  2157. >
  2158. {{ w.sName }}
  2159. <img
  2160. class="deleteImg deleteImg2"
  2161. src="../../assets/deleteworks.png"
  2162. v-if="w.userid == userid || tType == 1 || tType == 4"
  2163. @click.stop="deleteWorks(w.wid)"
  2164. alt
  2165. />
  2166. </div>
  2167. </div>
  2168. </div>
  2169. <div
  2170. v-if="
  2171. tType &&
  2172. tType == 2 &&
  2173. !sIsOpen &&
  2174. tool.tool.indexOf(45) != -1
  2175. "
  2176. class="worksBox"
  2177. >
  2178. <div
  2179. class="zuoyeYulan"
  2180. v-if="workStudent[toolIndex].length > 0"
  2181. >
  2182. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2183. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2184. </div>
  2185. <div
  2186. class="worksDetailBox"
  2187. v-if="workStudent[toolIndex].length > 0"
  2188. >
  2189. <div
  2190. class="isWorksName2"
  2191. v-for="(w, wIndex) in workStudent[toolIndex]"
  2192. :key="wIndex"
  2193. @click="
  2194. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2195. "
  2196. >
  2197. {{ w.sName }}
  2198. <img
  2199. class="deleteImg deleteImg2"
  2200. src="../../assets/deleteworks.png"
  2201. v-if="w.userid == userid || tType == 1 || tType == 4"
  2202. @click.stop="deleteWorks(w.wid)"
  2203. alt
  2204. />
  2205. </div>
  2206. </div>
  2207. </div>
  2208. <div
  2209. v-if="
  2210. tType &&
  2211. tType == 2 &&
  2212. !sIsOpen &&
  2213. tool.tool.indexOf(69) != -1
  2214. "
  2215. class="worksBox"
  2216. >
  2217. <div
  2218. class="zuoyeYulan"
  2219. v-if="workStudent[toolIndex].length > 0"
  2220. >
  2221. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2222. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2223. </div>
  2224. <div
  2225. class="worksDetailBox"
  2226. v-if="workStudent[toolIndex].length > 0"
  2227. >
  2228. <div
  2229. class="isWorksName2"
  2230. v-for="(w, wIndex) in workStudent[toolIndex]"
  2231. :key="wIndex"
  2232. @click="
  2233. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2234. "
  2235. >
  2236. {{ w.sName }}
  2237. <img
  2238. class="deleteImg deleteImg2"
  2239. src="../../assets/deleteworks.png"
  2240. v-if="w.userid == userid || tType == 1 || tType == 4"
  2241. @click.stop="deleteWorks(w.wid)"
  2242. alt
  2243. />
  2244. </div>
  2245. </div>
  2246. </div>
  2247. <div
  2248. v-if="
  2249. tType &&
  2250. tType == 2 &&
  2251. !sIsOpen &&
  2252. tool.tool.indexOf(15) != -1
  2253. "
  2254. class="worksBox"
  2255. >
  2256. <div
  2257. class="zuoyeYulan"
  2258. v-if="workStudent[toolIndex].length > 0"
  2259. >
  2260. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2261. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2262. </div>
  2263. <div
  2264. class="worksDetailBox"
  2265. v-if="workStudent[toolIndex].length > 0"
  2266. >
  2267. <div
  2268. class="works"
  2269. v-for="(w, wIndex) in workStudent[toolIndex]"
  2270. :key="wIndex"
  2271. >
  2272. <div class="workImg">
  2273. <!-- <img
  2274. src="../../assets/icon/works/noImg.png"
  2275. @click="openTools(15, toolIndex, taskCount, w.works)"
  2276. alt=""
  2277. />-->
  2278. <div class="answerBg">
  2279. <!-- <div>{{ w.sName }}</div> -->
  2280. <el-tooltip
  2281. class="item"
  2282. effect="light"
  2283. :content="JSON.parse(w.works)[0].answer"
  2284. placement="top"
  2285. >
  2286. <div class="answerContent">
  2287. {{ JSON.parse(w.works)[0].answer }}
  2288. </div>
  2289. </el-tooltip>
  2290. <div
  2291. class="answerScore"
  2292. v-if="w.score"
  2293. @click.stop="openScore(w)"
  2294. :class="{
  2295. rightW:
  2296. w.userid == userid ||
  2297. tType == 1 ||
  2298. tType == 4,
  2299. }"
  2300. >
  2301. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2302. </div>
  2303. <div
  2304. class="answerScore"
  2305. @click.stop="openScore(w)"
  2306. v-else-if="courseDetail.userid == userid"
  2307. :class="{
  2308. rightW:
  2309. w.userid == userid ||
  2310. tType == 1 ||
  2311. tType == 4,
  2312. }"
  2313. >
  2314. {{ lang.ssMarkScore }}
  2315. </div>
  2316. <img
  2317. class="deleteImg"
  2318. src="../../assets/deleteworks.png"
  2319. v-if="
  2320. w.userid == userid || tType == 1 || tType == 4
  2321. "
  2322. @click.stop="deleteWorks(w.wid)"
  2323. alt
  2324. />
  2325. </div>
  2326. <div class="comment">
  2327. <div class="worksName">
  2328. <div>{{ w.sName }}</div>
  2329. </div>
  2330. </div>
  2331. </div>
  2332. </div>
  2333. </div>
  2334. </div>
  2335. <div
  2336. v-if="
  2337. tType &&
  2338. tType == 2 &&
  2339. !sIsOpen &&
  2340. tool.tool.indexOf(1) != -1
  2341. "
  2342. class="worksBox"
  2343. >
  2344. <div
  2345. class="zuoyeYulan"
  2346. v-if="workStudent[toolIndex].length > 0"
  2347. >
  2348. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2349. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2350. </div>
  2351. <div
  2352. class="worksDetailBox"
  2353. v-if="workStudent[toolIndex].length > 0"
  2354. >
  2355. <div
  2356. class="works"
  2357. style="
  2358. width: 200px;
  2359. height: 140px;
  2360. margin: 10px 10px 10px 0;
  2361. box-shadow: 0 0 6px 1px #dfdada;
  2362. "
  2363. v-for="(w, wIndex) in workStudent[toolIndex]"
  2364. :key="wIndex"
  2365. >
  2366. <div class="workImg">
  2367. <img
  2368. :src="w.works"
  2369. @click="previewImg(w.works,w)"
  2370. alt
  2371. />
  2372. <div
  2373. class="answerScore"
  2374. v-if="w.score"
  2375. @click.stop="openScore(w)"
  2376. :class="{
  2377. rightW:
  2378. w.userid == userid || tType == 1 || tType == 4,
  2379. }"
  2380. >
  2381. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2382. </div>
  2383. <div
  2384. class="answerScore"
  2385. @click.stop="openScore(w)"
  2386. v-else-if="courseDetail.userid == userid"
  2387. :class="{
  2388. rightW:
  2389. w.userid == userid || tType == 1 || tType == 4,
  2390. }"
  2391. >
  2392. {{ lang.ssMarkScore }}
  2393. </div>
  2394. <img
  2395. class="deleteImg"
  2396. src="../../assets/deleteworks.png"
  2397. v-if="
  2398. w.userid == userid || tType == 1 || tType == 4
  2399. "
  2400. @click.stop="deleteWorks(w.wid)"
  2401. alt
  2402. />
  2403. </div>
  2404. <div class="worksName">
  2405. <div>{{ w.sName }}</div>
  2406. </div>
  2407. </div>
  2408. </div>
  2409. </div>
  2410. <div
  2411. v-if="
  2412. tType &&
  2413. tType == 2 &&
  2414. !sIsOpen &&
  2415. tool.tool.indexOf(3) != -1
  2416. "
  2417. class="worksBox"
  2418. >
  2419. <div
  2420. class="zuoyeYulan"
  2421. v-if="workStudent[toolIndex].length > 0"
  2422. >
  2423. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2424. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2425. </div>
  2426. <div
  2427. class="worksDetailBox"
  2428. v-if="workStudent[toolIndex].length > 0"
  2429. >
  2430. <div
  2431. class="works"
  2432. style="
  2433. width: 200px;
  2434. height: 140px;
  2435. margin: 10px 10px 10px 0;
  2436. box-shadow: 0 0 6px 1px #dfdada;
  2437. "
  2438. v-for="(w, wIndex) in workStudent[toolIndex]"
  2439. :key="wIndex"
  2440. >
  2441. <div class="workImg">
  2442. <img
  2443. :src="w.works"
  2444. @click="previewImg(w.works,w)"
  2445. alt
  2446. />
  2447. <div
  2448. class="answerScore"
  2449. v-if="w.score"
  2450. @click.stop="openScore(w)"
  2451. :class="{
  2452. rightW:
  2453. w.userid == userid || tType == 1 || tType == 4,
  2454. }"
  2455. >
  2456. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2457. </div>
  2458. <div
  2459. class="answerScore"
  2460. @click.stop="openScore(w)"
  2461. v-else-if="courseDetail.userid == userid"
  2462. :class="{
  2463. rightW:
  2464. w.userid == userid || tType == 1 || tType == 4,
  2465. }"
  2466. >
  2467. {{ lang.ssMarkScore }}
  2468. </div>
  2469. <img
  2470. class="deleteImg"
  2471. src="../../assets/deleteworks.png"
  2472. v-if="
  2473. w.userid == userid || tType == 1 || tType == 4
  2474. "
  2475. @click.stop="deleteWorks(w.wid)"
  2476. alt
  2477. />
  2478. </div>
  2479. <div class="worksName">
  2480. <div>{{ w.sName }}</div>
  2481. </div>
  2482. </div>
  2483. </div>
  2484. </div>
  2485. <div
  2486. v-if="
  2487. tType &&
  2488. tType == 2 &&
  2489. !sIsOpen &&
  2490. tool.tool.indexOf(6) != -1
  2491. "
  2492. class="worksBox"
  2493. >
  2494. <div
  2495. class="zuoyeYulan"
  2496. v-if="workStudent[toolIndex].length > 0"
  2497. >
  2498. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2499. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2500. </div>
  2501. <div
  2502. class="worksDetailBox"
  2503. v-if="workStudent[toolIndex].length > 0"
  2504. >
  2505. <div
  2506. class="works"
  2507. style="
  2508. width: 200px;
  2509. height: 140px;
  2510. margin: 10px 10px 10px 0;
  2511. box-shadow: 0 0 6px 1px #dfdada;
  2512. "
  2513. v-for="(w, wIndex) in workStudent[toolIndex]"
  2514. :key="wIndex"
  2515. >
  2516. <div class="workImg">
  2517. <img
  2518. :src="w.works"
  2519. @click="previewImg(w.works,w)"
  2520. alt
  2521. />
  2522. <div
  2523. class="answerScore"
  2524. v-if="w.score"
  2525. @click.stop="openScore(w)"
  2526. :class="{
  2527. rightW:
  2528. w.userid == userid || tType == 1 || tType == 4,
  2529. }"
  2530. >
  2531. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2532. </div>
  2533. <div
  2534. class="answerScore"
  2535. @click.stop="openScore(w)"
  2536. v-else-if="courseDetail.userid == userid"
  2537. :class="{
  2538. rightW:
  2539. w.userid == userid || tType == 1 || tType == 4,
  2540. }"
  2541. >
  2542. {{ lang.ssMarkScore }}
  2543. </div>
  2544. <img
  2545. class="deleteImg"
  2546. src="../../assets/deleteworks.png"
  2547. v-if="
  2548. w.userid == userid || tType == 1 || tType == 4
  2549. "
  2550. @click.stop="deleteWorks(w.wid)"
  2551. alt
  2552. />
  2553. </div>
  2554. <div class="worksName">
  2555. <div>{{ w.sName }}</div>
  2556. </div>
  2557. </div>
  2558. </div>
  2559. </div>
  2560. <div
  2561. v-if="
  2562. tType &&
  2563. tType == 2 &&
  2564. !sIsOpen &&
  2565. tool.tool.indexOf(7) != -1
  2566. "
  2567. class="worksBox"
  2568. >
  2569. <div
  2570. class="zuoyeYulan"
  2571. v-if="workStudent[toolIndex].length > 0"
  2572. >
  2573. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2574. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2575. </div>
  2576. <div
  2577. class="worksDetailBox"
  2578. v-if="workStudent[toolIndex].length > 0"
  2579. >
  2580. <div
  2581. class="works"
  2582. style="
  2583. width: 200px;
  2584. height: 140px;
  2585. margin: 10px 10px 10px 0;
  2586. box-shadow: 0 0 6px 1px #dfdada;
  2587. "
  2588. v-for="(w, wIndex) in workStudent[toolIndex]"
  2589. :key="wIndex"
  2590. >
  2591. <div class="workImg">
  2592. <img
  2593. :src="w.works"
  2594. @click="previewImg(w.works,w)"
  2595. alt
  2596. />
  2597. <div
  2598. class="answerScore"
  2599. v-if="w.score"
  2600. @click.stop="openScore(w)"
  2601. :class="{
  2602. rightW:
  2603. w.userid == userid || tType == 1 || tType == 4,
  2604. }"
  2605. >
  2606. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2607. </div>
  2608. <div
  2609. class="answerScore"
  2610. @click.stop="openScore(w)"
  2611. v-else-if="courseDetail.userid == userid"
  2612. :class="{
  2613. rightW:
  2614. w.userid == userid || tType == 1 || tType == 4,
  2615. }"
  2616. >
  2617. {{ lang.ssMarkScore }}
  2618. </div>
  2619. <img
  2620. class="deleteImg"
  2621. src="../../assets/deleteworks.png"
  2622. v-if="
  2623. w.userid == userid || tType == 1 || tType == 4
  2624. "
  2625. @click.stop="deleteWorks(w.wid)"
  2626. alt
  2627. />
  2628. </div>
  2629. <div class="worksName">
  2630. <div>{{ w.sName }}</div>
  2631. </div>
  2632. </div>
  2633. </div>
  2634. </div>
  2635. <div
  2636. v-if="
  2637. tType &&
  2638. tType == 2 &&
  2639. !sIsOpen &&
  2640. tool.tool.indexOf(26) != -1
  2641. "
  2642. class="worksBox"
  2643. >
  2644. <div
  2645. class="zuoyeYulan"
  2646. v-if="workStudent[toolIndex].length > 0"
  2647. >
  2648. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2649. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2650. </div>
  2651. <div
  2652. class="worksDetailBox"
  2653. v-if="workStudent[toolIndex].length > 0"
  2654. >
  2655. <div
  2656. class="works"
  2657. style="
  2658. width: 200px;
  2659. height: 140px;
  2660. margin: 10px 10px 10px 0;
  2661. box-shadow: 0 0 6px 1px #dfdada;
  2662. "
  2663. v-for="(w, wIndex) in workStudent[toolIndex]"
  2664. :key="wIndex"
  2665. >
  2666. <div class="workImg">
  2667. <img
  2668. :src="w.works"
  2669. @click="previewImg(w.works,w)"
  2670. alt
  2671. />
  2672. <img
  2673. class="deleteImg"
  2674. src="../../assets/deleteworks.png"
  2675. v-if="
  2676. w.userid == userid || tType == 1 || tType == 4
  2677. "
  2678. @click.stop="deleteWorks(w.wid)"
  2679. alt
  2680. />
  2681. </div>
  2682. <div class="worksName">
  2683. <div>{{ w.sName }}</div>
  2684. </div>
  2685. </div>
  2686. </div>
  2687. </div>
  2688. <div
  2689. v-if="
  2690. tType &&
  2691. ((tType == 2 && sIsOpen == true) ||
  2692. tType == 1 ||
  2693. tType == 4) &&
  2694. tool.tool.indexOf(16) != -1
  2695. "
  2696. class="worksBox"
  2697. >
  2698. <div
  2699. class="zuoyeYulan"
  2700. v-if="
  2701. (worksStudent.length &&
  2702. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2703. "
  2704. >
  2705. <div class="worksTop">
  2706. <div>{{ lang.ssHomeworkPreview }}</div>
  2707. <div
  2708. class="corOpen"
  2709. @click="contract(toolIndex)"
  2710. v-if="
  2711. (isCloseList[toolIndex].isCloseBoolean) &&
  2712. isCloseList[toolIndex].isClose == 0
  2713. "
  2714. >
  2715. {{ lang.ssFold }}
  2716. </div>
  2717. <div
  2718. class="corOpen"
  2719. @click="contract(toolIndex)"
  2720. v-if="isCloseList[toolIndex].isClose == 1"
  2721. >
  2722. {{ lang.ssExpand }}
  2723. </div>
  2724. </div>
  2725. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2726. </div>
  2727. <div
  2728. class="group_workBox"
  2729. v-for="(g, gindex) in courseGroup.group"
  2730. :key="gindex"
  2731. >
  2732. <div class="group_box">
  2733. <div class="group_title">
  2734. <el-tooltip
  2735. class="item"
  2736. effect="light"
  2737. :content="g.name"
  2738. placement="top"
  2739. >
  2740. <div class="group_name">{{ g.name }}</div>
  2741. </el-tooltip>
  2742. </div>
  2743. <div
  2744. class="group_work"
  2745. v-if="
  2746. g.works &&
  2747. g.works.length &&
  2748. g.works[toolIndex].length
  2749. "
  2750. >
  2751. <div
  2752. class="works"
  2753. style="
  2754. width: 200px;
  2755. height: 140px;
  2756. margin: 10px 10px 10px 0;
  2757. border-radius: 15px;
  2758. box-shadow: 0 0 6px 1px #dfdada;
  2759. "
  2760. v-for="(w, wIndex) in g.works[toolIndex]"
  2761. :key="wIndex"
  2762. :class="w.type == 1 ? 'isTypeOne' : ''"
  2763. >
  2764. <div class="workImg" v-if="w.type == 0">
  2765. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2766. <img
  2767. :src="w.works"
  2768. @click="previewImg(w.works,w)"
  2769. alt
  2770. />
  2771. <div
  2772. class="answerScore"
  2773. v-if="w.score"
  2774. @click.stop="openScore(w)"
  2775. :class="{
  2776. rightW:
  2777. w.userid == userid ||
  2778. tType == 1 ||
  2779. tType == 4 ||
  2780. w.ateacher == userid,
  2781. }"
  2782. >
  2783. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2784. </div>
  2785. <div
  2786. class="answerScore"
  2787. @click.stop="openScore(w)"
  2788. v-else-if="courseDetail.userid == userid"
  2789. :class="{
  2790. rightW:
  2791. w.userid == userid ||
  2792. tType == 1 ||
  2793. tType == 4 ||
  2794. w.ateacher == userid,
  2795. }"
  2796. >
  2797. {{ lang.ssMarkScore }}
  2798. </div>
  2799. <img
  2800. class="deleteImg"
  2801. src="../../assets/deleteworks.png"
  2802. v-if="
  2803. w.userid == userid || tType == 1 || tType == 4
  2804. "
  2805. @click.stop="deleteWorks(w.wid)"
  2806. alt
  2807. />
  2808. </div>
  2809. <div class="workImg" v-if="w.type == 1">
  2810. <img :src="word" @click="openFile(w.works)" alt />
  2811. <!-- @click="openFile(w.works)" -->
  2812. <div
  2813. class="answerScore"
  2814. v-if="w.score"
  2815. @click.stop="openScore(w)"
  2816. :class="{
  2817. rightW:
  2818. w.userid == userid ||
  2819. tType == 1 ||
  2820. tType == 4 ||
  2821. w.ateacher == userid,
  2822. }"
  2823. >
  2824. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2825. </div>
  2826. <div
  2827. class="answerScore"
  2828. @click.stop="openScore(w)"
  2829. v-else-if="courseDetail.userid == userid"
  2830. :class="{
  2831. rightW:
  2832. w.userid == userid ||
  2833. tType == 1 ||
  2834. tType == 4 ||
  2835. w.ateacher == userid,
  2836. }"
  2837. >
  2838. {{ lang.ssMarkScore }}
  2839. </div>
  2840. <img
  2841. class="deleteImg"
  2842. src="../../assets/deleteworks.png"
  2843. v-if="
  2844. w.userid == userid || tType == 1 || tType == 4
  2845. "
  2846. @click.stop="deleteWorks(w.wid)"
  2847. alt
  2848. />
  2849. </div>
  2850. <div class="workImg" v-if="w.type == 3">
  2851. <img
  2852. style="cursor: pointer"
  2853. :src="video"
  2854. @click="openVideo(w)"
  2855. alt
  2856. />
  2857. <!-- @click="openVideo(w.works)" -->
  2858. <div
  2859. class="answerScore"
  2860. v-if="w.score"
  2861. @click.stop="openScore(w)"
  2862. :class="{
  2863. rightW:
  2864. w.userid == userid ||
  2865. tType == 1 ||
  2866. tType == 4 ||
  2867. w.ateacher == userid,
  2868. }"
  2869. >
  2870. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2871. </div>
  2872. <div
  2873. class="answerScore"
  2874. @click.stop="openScore(w)"
  2875. v-else-if="courseDetail.userid == userid"
  2876. :class="{
  2877. rightW:
  2878. w.userid == userid ||
  2879. tType == 1 ||
  2880. tType == 4 ||
  2881. w.ateacher == userid,
  2882. }"
  2883. >
  2884. {{ lang.ssMarkScore }}
  2885. </div>
  2886. <img
  2887. class="deleteImg"
  2888. src="../../assets/deleteworks.png"
  2889. v-if="
  2890. w.userid == userid || tType == 1 || tType == 4
  2891. "
  2892. @click.stop="deleteWorks(w.wid)"
  2893. alt
  2894. />
  2895. </div>
  2896. <div class="workImg" v-if="w.type == 12">
  2897. <img
  2898. style="cursor: pointer"
  2899. :src="word2"
  2900. @click="downloadFile(w.works,w.userid)"
  2901. alt
  2902. />
  2903. <!-- @click="openVideo(w.works)" -->
  2904. <div
  2905. class="answerScore"
  2906. v-if="w.score"
  2907. @click.stop="openScore(w)"
  2908. :class="{
  2909. rightW:
  2910. w.userid == userid ||
  2911. tType == 1 ||
  2912. tType == 4 ||
  2913. w.ateacher == userid,
  2914. }"
  2915. >
  2916. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2917. </div>
  2918. <div
  2919. class="answerScore"
  2920. @click.stop="openScore(w)"
  2921. v-else-if="courseDetail.userid == userid"
  2922. :class="{
  2923. rightW:
  2924. w.userid == userid ||
  2925. tType == 1 ||
  2926. tType == 4 ||
  2927. w.ateacher == userid,
  2928. }"
  2929. >
  2930. {{ lang.ssMarkScore }}
  2931. </div>
  2932. <img
  2933. class="deleteImg"
  2934. src="../../assets/deleteworks.png"
  2935. v-if="
  2936. w.userid == userid || tType == 1 || tType == 4
  2937. "
  2938. @click.stop="deleteWorks(w.wid)"
  2939. alt
  2940. />
  2941. </div>
  2942. <div class="comment" style="min-width: 200px">
  2943. <div class="worksName">
  2944. <div>{{ w.sName }}</div>
  2945. </div>
  2946. <div class="commentList">
  2947. <div class="commentList">
  2948. <div
  2949. class="commentImg"
  2950. @click="
  2951. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2952. "
  2953. >
  2954. <img
  2955. :src="w.isLikes == true ? likes : noLikes"
  2956. alt=""
  2957. />
  2958. </div>
  2959. <div>{{ w.likesCount }}</div>
  2960. </div>
  2961. <div
  2962. class="commentList"
  2963. style="margin-right: 15px"
  2964. >
  2965. <div
  2966. class="commentImg"
  2967. @click="
  2968. commentOther(
  2969. w,
  2970. toolIndex,
  2971. wIndex,
  2972. null,
  2973. g.id
  2974. )
  2975. "
  2976. >
  2977. <img
  2978. src="../../assets/icon/comment/comment.png"
  2979. alt=""
  2980. />
  2981. </div>
  2982. <div>{{ w.commentCount }}</div>
  2983. </div>
  2984. </div>
  2985. </div>
  2986. </div>
  2987. </div>
  2988. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  2989. </div>
  2990. </div>
  2991. <div
  2992. :id="'tool-' + toolIndex"
  2993. :style="{
  2994. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2995. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2996. }"
  2997. class="worksDetailBox"
  2998. v-if="
  2999. worksStudent.length &&
  3000. worksStudent[toolIndex].length > 0
  3001. "
  3002. >
  3003. <div
  3004. class="works"
  3005. style="
  3006. width: 200px;
  3007. height: 140px;
  3008. margin: 10px 10px 10px 0;
  3009. border-radius: 15px;
  3010. box-shadow: 0 0 6px 1px #dfdada;
  3011. "
  3012. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3013. :key="wIndex"
  3014. :class="w.type == 1 ? 'isTypeOne' : ''"
  3015. >
  3016. <div class="workImg" v-if="w.type == 0">
  3017. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3018. <img
  3019. :src="w.works"
  3020. @click="previewImg(w.works,w)"
  3021. alt
  3022. />
  3023. <div
  3024. class="answerScore"
  3025. v-if="w.score"
  3026. @click.stop="openScore(w)"
  3027. :class="{
  3028. rightW:
  3029. w.userid == userid ||
  3030. tType == 1 ||
  3031. tType == 4 ||
  3032. w.ateacher == userid,
  3033. }"
  3034. >
  3035. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3036. </div>
  3037. <div
  3038. class="answerScore"
  3039. @click.stop="openScore(w)"
  3040. v-else-if="courseDetail.userid == userid"
  3041. :class="{
  3042. rightW:
  3043. w.userid == userid ||
  3044. tType == 1 ||
  3045. tType == 4 ||
  3046. w.ateacher == userid,
  3047. }"
  3048. >
  3049. {{ lang.ssMarkScore }}
  3050. </div>
  3051. <img
  3052. class="deleteImg"
  3053. src="../../assets/deleteworks.png"
  3054. v-if="
  3055. w.userid == userid || tType == 1 || tType == 4
  3056. "
  3057. @click.stop="deleteWorks(w.wid)"
  3058. alt
  3059. />
  3060. </div>
  3061. <div class="workImg" v-if="w.type == 1">
  3062. <img :src="word" @click="openFile(w.works)" alt />
  3063. <!-- @click="openFile(w.works)" -->
  3064. <div
  3065. class="answerScore"
  3066. v-if="w.score"
  3067. @click.stop="openScore(w)"
  3068. :class="{
  3069. rightW:
  3070. w.userid == userid ||
  3071. tType == 1 ||
  3072. tType == 4 ||
  3073. w.ateacher == userid,
  3074. }"
  3075. >
  3076. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3077. </div>
  3078. <div
  3079. class="answerScore"
  3080. @click.stop="openScore(w)"
  3081. v-else-if="courseDetail.userid == userid"
  3082. :class="{
  3083. rightW:
  3084. w.userid == userid ||
  3085. tType == 1 ||
  3086. tType == 4 ||
  3087. w.ateacher == userid,
  3088. }"
  3089. >
  3090. {{ lang.ssMarkScore }}
  3091. </div>
  3092. <img
  3093. class="deleteImg"
  3094. src="../../assets/deleteworks.png"
  3095. v-if="
  3096. w.userid == userid || tType == 1 || tType == 4
  3097. "
  3098. @click.stop="deleteWorks(w.wid)"
  3099. alt
  3100. />
  3101. </div>
  3102. <div class="workImg" v-if="w.type == 3">
  3103. <img
  3104. style="cursor: pointer"
  3105. :src="video"
  3106. @click="openVideo(w)"
  3107. alt
  3108. />
  3109. <!-- @click="openVideo(w.works)" -->
  3110. <div
  3111. class="answerScore"
  3112. v-if="w.score"
  3113. @click.stop="openScore(w)"
  3114. :class="{
  3115. rightW:
  3116. w.userid == userid ||
  3117. tType == 1 ||
  3118. tType == 4 ||
  3119. w.ateacher == userid,
  3120. }"
  3121. >
  3122. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3123. </div>
  3124. <div
  3125. class="answerScore"
  3126. @click.stop="openScore(w)"
  3127. v-else-if="courseDetail.userid == userid"
  3128. :class="{
  3129. rightW:
  3130. w.userid == userid ||
  3131. tType == 1 ||
  3132. tType == 4 ||
  3133. w.ateacher == userid,
  3134. }"
  3135. >
  3136. {{ lang.ssMarkScore }}
  3137. </div>
  3138. <img
  3139. class="deleteImg"
  3140. src="../../assets/deleteworks.png"
  3141. v-if="
  3142. w.userid == userid || tType == 1 || tType == 4
  3143. "
  3144. @click.stop="deleteWorks(w.wid)"
  3145. alt
  3146. />
  3147. </div>
  3148. <div class="workImg" v-if="w.type == 12">
  3149. <img
  3150. style="cursor: pointer"
  3151. :src="word2"
  3152. @click="downloadFile(w.works,w.userid)"
  3153. alt
  3154. />
  3155. <!-- @click="openVideo(w.works)" -->
  3156. <div
  3157. class="answerScore"
  3158. v-if="w.score"
  3159. @click.stop="openScore(w)"
  3160. :class="{
  3161. rightW:
  3162. w.userid == userid ||
  3163. tType == 1 ||
  3164. tType == 4 ||
  3165. w.ateacher == userid,
  3166. }"
  3167. >
  3168. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3169. </div>
  3170. <div
  3171. class="answerScore"
  3172. @click.stop="openScore(w)"
  3173. v-else-if="courseDetail.userid == userid"
  3174. :class="{
  3175. rightW:
  3176. w.userid == userid ||
  3177. tType == 1 ||
  3178. tType == 4 ||
  3179. w.ateacher == userid,
  3180. }"
  3181. >
  3182. {{ lang.ssMarkScore }}
  3183. </div>
  3184. <img
  3185. class="deleteImg"
  3186. src="../../assets/deleteworks.png"
  3187. v-if="
  3188. w.userid == userid || tType == 1 || tType == 4
  3189. "
  3190. @click.stop="deleteWorks(w.wid)"
  3191. alt
  3192. />
  3193. </div>
  3194. <div class="comment" style="min-width: 200px">
  3195. <div class="worksName">
  3196. <div>{{ w.sName }}</div>
  3197. </div>
  3198. <div class="commentList">
  3199. <div class="commentList">
  3200. <div
  3201. class="commentImg"
  3202. @click="
  3203. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3204. "
  3205. >
  3206. <img
  3207. :src="w.isLikes == true ? likes : noLikes"
  3208. alt=""
  3209. />
  3210. </div>
  3211. <div>{{ w.likesCount }}</div>
  3212. </div>
  3213. <div class="commentList" style="margin-right: 15px">
  3214. <div
  3215. class="commentImg"
  3216. @click="commentOther(w, toolIndex, wIndex)"
  3217. >
  3218. <img
  3219. src="../../assets/icon/comment/comment.png"
  3220. alt=""
  3221. />
  3222. </div>
  3223. <div>{{ w.commentCount }}</div>
  3224. </div>
  3225. </div>
  3226. </div>
  3227. </div>
  3228. </div>
  3229. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3230. {{ lang.ssNotSubmitted }}
  3231. </div>
  3232. <div
  3233. class="noWorksS"
  3234. v-if="noWorksS && noWorksS[toolIndex].length"
  3235. >
  3236. <div
  3237. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3238. :key="sIndex"
  3239. class="noWorksName"
  3240. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3241. >
  3242. <el-tooltip effect="dark" :content="s.student" placement="top">
  3243. <span>{{ s.student }}</span>
  3244. </el-tooltip>
  3245. </div>
  3246. </div>
  3247. </div>
  3248. <div
  3249. v-if="
  3250. tType &&
  3251. ((tType == 2 && sIsOpen == true) ||
  3252. tType == 1 ||
  3253. tType == 4) &&
  3254. tool.tool.indexOf(70) != -1
  3255. "
  3256. class="worksBox"
  3257. >
  3258. <div
  3259. class="zuoyeYulan"
  3260. v-if="
  3261. (worksStudent.length &&
  3262. worksStudent[toolIndex].length > 0)
  3263. "
  3264. >
  3265. <div class="worksTop">
  3266. <div>{{ lang.ssHomeworkPreview }}</div>
  3267. <div
  3268. class="corOpen"
  3269. @click="contract(toolIndex)"
  3270. v-if="
  3271. (isCloseList[toolIndex].isCloseBoolean) &&
  3272. isCloseList[toolIndex].isClose == 0
  3273. "
  3274. >
  3275. {{ lang.ssFold }}
  3276. </div>
  3277. <div
  3278. class="corOpen"
  3279. @click="contract(toolIndex)"
  3280. v-if="isCloseList[toolIndex].isClose == 1"
  3281. >
  3282. {{ lang.ssExpand }}
  3283. </div>
  3284. </div>
  3285. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3286. </div>
  3287. <div
  3288. :id="'tool-' + toolIndex"
  3289. :style="{
  3290. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3291. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3292. }"
  3293. class="worksDetailBox"
  3294. v-if="
  3295. worksStudent.length &&
  3296. worksStudent[toolIndex].length > 0
  3297. "
  3298. >
  3299. <div
  3300. class="works"
  3301. style="
  3302. width: 200px;
  3303. height: 140px;
  3304. margin: 10px 10px 10px 0;
  3305. border-radius: 15px;
  3306. box-shadow: 0 0 6px 1px #dfdada;
  3307. "
  3308. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3309. :key="wIndex"
  3310. :class="w.type == 1 ? 'isTypeOne' : ''"
  3311. >
  3312. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3313. <img :src="word" alt />
  3314. <img
  3315. class="deleteImg"
  3316. src="../../assets/deleteworks.png"
  3317. v-if="
  3318. w.userid == userid || tType == 1 || tType == 4
  3319. "
  3320. @click.stop="deleteWorks(w.wid)"
  3321. alt
  3322. />
  3323. </div>
  3324. <div class="comment" style="min-width: 200px">
  3325. <div class="worksName">
  3326. <div>{{ w.sName }}</div>
  3327. </div>
  3328. </div>
  3329. </div>
  3330. </div>
  3331. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3332. {{ lang.ssNotSubmitted }}
  3333. </div>
  3334. <div
  3335. class="noWorksS"
  3336. v-if="noWorksS && noWorksS[toolIndex].length"
  3337. >
  3338. <div
  3339. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3340. :key="sIndex"
  3341. class="noWorksName"
  3342. >
  3343. <el-tooltip effect="dark" :content="s.student" placement="top">
  3344. <span>{{ s.student }}</span>
  3345. </el-tooltip>
  3346. </div>
  3347. </div>
  3348. </div>
  3349. <div
  3350. v-if="
  3351. tType &&
  3352. tType == 2 &&
  3353. !sIsOpen &&
  3354. tool.tool.indexOf(70) != -1
  3355. "
  3356. class="worksBox"
  3357. >
  3358. <div
  3359. class="zuoyeYulan"
  3360. v-if="workStudent[toolIndex].length > 0"
  3361. >
  3362. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  3363. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3364. </div>
  3365. <div
  3366. class="worksDetailBox"
  3367. v-if="workStudent[toolIndex].length > 0"
  3368. >
  3369. <div
  3370. class="works"
  3371. style="
  3372. width: 200px;
  3373. height: 140px;
  3374. margin: 10px 10px 10px 0;
  3375. box-shadow: 0 0 6px 1px #dfdada;
  3376. "
  3377. v-for="(w, wIndex) in workStudent[toolIndex]"
  3378. :key="wIndex"
  3379. >
  3380. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3381. <img :src="word" alt />
  3382. <img
  3383. class="deleteImg"
  3384. src="../../assets/deleteworks.png"
  3385. v-if="
  3386. w.userid == userid || tType == 1 || tType == 4
  3387. "
  3388. @click.stop="deleteWorks(w.wid)"
  3389. alt
  3390. />
  3391. </div>
  3392. <div class="worksName">
  3393. <div>{{ w.sName }}</div>
  3394. </div>
  3395. </div>
  3396. </div>
  3397. </div>
  3398. <div
  3399. v-if="
  3400. tType &&
  3401. ((tType == 2 && sIsOpen == true) ||
  3402. tType == 1 ||
  3403. tType == 4) &&
  3404. tool.tool.indexOf(32) != -1
  3405. "
  3406. class="worksBox"
  3407. >
  3408. <div
  3409. class="zuoyeYulan"
  3410. v-if="
  3411. worksStudent.length &&
  3412. worksStudent[toolIndex].length > 0
  3413. "
  3414. >
  3415. <div class="worksTop">
  3416. <div>{{ lang.ssHomeworkPreview }}</div>
  3417. <div
  3418. class="corOpen"
  3419. @click="contract(toolIndex)"
  3420. v-if="
  3421. (isCloseList[toolIndex].isCloseBoolean) &&
  3422. isCloseList[toolIndex].isClose == 0
  3423. "
  3424. >
  3425. {{ lang.ssFold }}
  3426. </div>
  3427. <div
  3428. class="corOpen"
  3429. @click="contract(toolIndex)"
  3430. v-if="isCloseList[toolIndex].isClose == 1"
  3431. >
  3432. {{ lang.ssExpand }}
  3433. </div>
  3434. </div>
  3435. </div>
  3436. <div
  3437. :id="'tool-' + toolIndex"
  3438. :style="{
  3439. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3440. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3441. }"
  3442. class="worksDetailBox"
  3443. v-if="
  3444. worksStudent.length &&
  3445. worksStudent[toolIndex].length > 0
  3446. "
  3447. >
  3448. <div
  3449. class="works"
  3450. style="
  3451. width: 200px;
  3452. height: 140px;
  3453. margin: 10px 10px 10px 0;
  3454. border-radius: 15px;
  3455. box-shadow: 0 0 6px 1px #dfdada;
  3456. "
  3457. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3458. :key="wIndex"
  3459. :class="w.type == 1 ? 'isTypeOne' : ''"
  3460. >
  3461. <div class="workImg">
  3462. <img
  3463. :src="word2"
  3464. @click="downloadFile(w.works,w.userid)"
  3465. alt
  3466. />
  3467. <div
  3468. class="answerScore"
  3469. v-if="w.score"
  3470. @click.stop="openScore(w)"
  3471. :class="{
  3472. rightW:
  3473. w.userid == userid ||
  3474. tType == 1 ||
  3475. tType == 4 ||
  3476. w.ateacher == userid,
  3477. }"
  3478. >
  3479. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3480. </div>
  3481. <div
  3482. class="answerScore"
  3483. @click.stop="openScore(w)"
  3484. v-else-if="courseDetail.userid == userid"
  3485. :class="{
  3486. rightW:
  3487. w.userid == userid ||
  3488. tType == 1 ||
  3489. tType == 4 ||
  3490. w.ateacher == userid,
  3491. }"
  3492. >
  3493. {{ lang.ssMarkScore }}
  3494. </div>
  3495. <img
  3496. class="deleteImg"
  3497. src="../../assets/deleteworks.png"
  3498. v-if="
  3499. w.userid == userid || tType == 1 || tType == 4
  3500. "
  3501. @click.stop="deleteWorks(w.wid)"
  3502. alt
  3503. />
  3504. </div>
  3505. <div class="comment" style="min-width: 200px">
  3506. <div class="worksName">
  3507. <div>{{ w.sName }}</div>
  3508. </div>
  3509. <div class="commentList">
  3510. <div class="commentList">
  3511. <div
  3512. class="commentImg"
  3513. @click="
  3514. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3515. "
  3516. >
  3517. <img
  3518. :src="w.isLikes == true ? likes : noLikes"
  3519. alt=""
  3520. />
  3521. </div>
  3522. <div>{{ w.likesCount }}</div>
  3523. </div>
  3524. <div class="commentList" style="margin-right: 15px">
  3525. <div
  3526. class="commentImg"
  3527. @click="commentOther(w, toolIndex, wIndex)"
  3528. >
  3529. <img
  3530. src="../../assets/icon/comment/comment.png"
  3531. alt=""
  3532. />
  3533. </div>
  3534. <div>{{ w.commentCount }}</div>
  3535. </div>
  3536. </div>
  3537. </div>
  3538. </div>
  3539. </div>
  3540. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3541. {{ lang.ssNotSubmitted }}
  3542. </div>
  3543. <div
  3544. class="noWorksS"
  3545. v-if="noWorksS && noWorksS[toolIndex].length"
  3546. >
  3547. <div
  3548. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3549. :key="sIndex"
  3550. class="noWorksName"
  3551. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3552. >
  3553. <el-tooltip effect="dark" :content="s.student" placement="top">
  3554. <span>{{ s.student }}</span>
  3555. </el-tooltip>
  3556. </div>
  3557. </div>
  3558. </div>
  3559. <div
  3560. v-if="
  3561. tType &&
  3562. ((tType == 2 && sIsOpen == true) ||
  3563. tType == 1 ||
  3564. tType == 4) &&
  3565. tool.tool.indexOf(57) != -1
  3566. "
  3567. class="worksBox"
  3568. >
  3569. <div
  3570. class="zuoyeYulan"
  3571. v-if="
  3572. worksStudent.length &&
  3573. worksStudent[toolIndex].length > 0
  3574. "
  3575. >
  3576. <div class="worksTop">
  3577. <div>{{ lang.ssHomeworkPreview }}</div>
  3578. <div
  3579. class="corOpen"
  3580. @click="contract(toolIndex)"
  3581. v-if="
  3582. (isCloseList[toolIndex].isCloseBoolean) &&
  3583. isCloseList[toolIndex].isClose == 0
  3584. "
  3585. >
  3586. {{ lang.ssFold }}
  3587. </div>
  3588. <div
  3589. class="corOpen"
  3590. @click="contract(toolIndex)"
  3591. v-if="isCloseList[toolIndex].isClose == 1"
  3592. >
  3593. {{ lang.ssExpand }}
  3594. </div>
  3595. </div>
  3596. </div>
  3597. <div
  3598. :id="'tool-' + toolIndex"
  3599. :style="{
  3600. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3601. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3602. }"
  3603. class="worksDetailBox"
  3604. v-if="
  3605. worksStudent.length &&
  3606. worksStudent[toolIndex].length > 0
  3607. "
  3608. >
  3609. <div
  3610. class="works"
  3611. style="
  3612. width: 200px;
  3613. height: 140px;
  3614. margin: 10px 10px 10px 0;
  3615. border-radius: 15px;
  3616. box-shadow: 0 0 6px 1px #dfdada;
  3617. "
  3618. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3619. :key="wIndex"
  3620. :class="w.type == 1 ? 'isTypeOne' : ''"
  3621. >
  3622. <div class="workImg">
  3623. <img
  3624. :src="word2"
  3625. @click="downloadFile(w.works,w.userid)"
  3626. v-if="w.type == 12"
  3627. alt
  3628. />
  3629. <img
  3630. :src="word2"
  3631. @click="
  3632. openCocoPi(57, toolIndex, w.userid, w.sName)
  3633. "
  3634. v-else-if="w.type == 15"
  3635. alt
  3636. />
  3637. <div
  3638. class="answerScore"
  3639. v-if="w.score"
  3640. @click.stop="openScore(w)"
  3641. :class="{
  3642. rightW:
  3643. w.userid == userid ||
  3644. tType == 1 ||
  3645. tType == 4 ||
  3646. w.ateacher == userid,
  3647. }"
  3648. >
  3649. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3650. </div>
  3651. <div
  3652. class="answerScore"
  3653. @click.stop="openScore(w)"
  3654. v-else-if="courseDetail.userid == userid"
  3655. :class="{
  3656. rightW:
  3657. w.userid == userid ||
  3658. tType == 1 ||
  3659. tType == 4 ||
  3660. w.ateacher == userid,
  3661. }"
  3662. >
  3663. {{ lang.ssMarkScore }}
  3664. </div>
  3665. <img
  3666. class="deleteImg"
  3667. src="../../assets/deleteworks.png"
  3668. v-if="
  3669. w.userid == userid || tType == 1 || tType == 4
  3670. "
  3671. @click.stop="deleteWorks(w.wid)"
  3672. alt
  3673. />
  3674. </div>
  3675. <div class="comment" style="min-width: 200px">
  3676. <div class="worksName">
  3677. <div>{{ w.sName }}</div>
  3678. </div>
  3679. <div class="commentList">
  3680. <div class="commentList">
  3681. <div
  3682. class="commentImg"
  3683. @click="
  3684. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3685. "
  3686. >
  3687. <img
  3688. :src="w.isLikes == true ? likes : noLikes"
  3689. alt=""
  3690. />
  3691. </div>
  3692. <div>{{ w.likesCount }}</div>
  3693. </div>
  3694. <div class="commentList" style="margin-right: 15px">
  3695. <div
  3696. class="commentImg"
  3697. @click="commentOther(w, toolIndex, wIndex)"
  3698. >
  3699. <img
  3700. src="../../assets/icon/comment/comment.png"
  3701. alt=""
  3702. />
  3703. </div>
  3704. <div>{{ w.commentCount }}</div>
  3705. </div>
  3706. </div>
  3707. </div>
  3708. </div>
  3709. </div>
  3710. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3711. {{ lang.ssNotSubmitted }}
  3712. </div>
  3713. <div
  3714. class="noWorksS"
  3715. v-if="noWorksS && noWorksS[toolIndex].length"
  3716. >
  3717. <div
  3718. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3719. :key="sIndex"
  3720. class="noWorksName"
  3721. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3722. >
  3723. <el-tooltip effect="dark" :content="s.student" placement="top">
  3724. <span>{{ s.student }}</span>
  3725. </el-tooltip>
  3726. </div>
  3727. </div>
  3728. </div>
  3729. <div
  3730. v-if="
  3731. tType &&
  3732. ((tType == 2 && sIsOpen == true) ||
  3733. tType == 1 ||
  3734. tType == 4) &&
  3735. tool.tool.indexOf(72) != -1
  3736. "
  3737. class="worksBox"
  3738. >
  3739. <div
  3740. class="zuoyeYulan"
  3741. v-if="
  3742. worksStudent.length &&
  3743. worksStudent[toolIndex].length > 0
  3744. "
  3745. >
  3746. <div class="worksTop">
  3747. <div>{{ lang.ssHomeworkPreview }}</div>
  3748. <div
  3749. class="corOpen"
  3750. @click="contract(toolIndex)"
  3751. v-if="
  3752. isCloseList[toolIndex].isCloseBoolean &&
  3753. isCloseList[toolIndex].isClose == 0
  3754. "
  3755. >
  3756. {{ lang.ssFold }}
  3757. </div>
  3758. <div
  3759. class="corOpen"
  3760. @click="contract(toolIndex)"
  3761. v-if="isCloseList[toolIndex].isClose == 1"
  3762. >
  3763. {{ lang.ssExpand }}
  3764. </div>
  3765. </div>
  3766. </div>
  3767. <div
  3768. :id="'tool-' + toolIndex"
  3769. :style="{
  3770. height:
  3771. isCloseList[toolIndex].isClose == 1
  3772. ? retrnToolHeight('tool-' + toolIndex)
  3773. : 'auto',
  3774. overflow:
  3775. isCloseList[toolIndex].isClose == 1
  3776. ? 'hidden'
  3777. : 'unset'
  3778. }"
  3779. class="worksDetailBox"
  3780. v-if="
  3781. worksStudent.length &&
  3782. worksStudent[toolIndex].length > 0
  3783. "
  3784. >
  3785. <div
  3786. class="works"
  3787. style="
  3788. width: 200px;
  3789. height: 140px;
  3790. margin: 10px 10px 10px 0;
  3791. border-radius: 15px;
  3792. box-shadow: 0 0 6px 1px #dfdada;
  3793. "
  3794. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3795. :key="wIndex"
  3796. :class="w.type == 1 ? 'isTypeOne' : ''"
  3797. >
  3798. <div class="workImg">
  3799. <!-- <img
  3800. :src="word2"
  3801. @click="downloadFile(w.works)"
  3802. v-if="w.type == 12"
  3803. alt
  3804. /> -->
  3805. <img
  3806. :src="word2"
  3807. @click="
  3808. openCocoFlow(w)
  3809. "
  3810. alt
  3811. />
  3812. <div
  3813. class="answerScore"
  3814. v-if="w.score"
  3815. @click.stop="openScore(w)"
  3816. :class="{
  3817. rightW:
  3818. w.userid == userid ||
  3819. tType == 1 ||
  3820. tType == 4 ||
  3821. w.ateacher == userid
  3822. }"
  3823. >
  3824. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3825. </div>
  3826. <div
  3827. class="answerScore"
  3828. @click.stop="openScore(w)"
  3829. v-else-if="
  3830. courseDetail.userid == userid &&
  3831. courseDetail.state != 5 &&
  3832. chapInfoList[courseType].chapterInfo[0]
  3833. .taskJson[taskCount].eList &&
  3834. chapInfoList[courseType].chapterInfo[0]
  3835. .taskJson[taskCount].eList.length
  3836. "
  3837. :class="{
  3838. rightW:
  3839. w.userid == userid ||
  3840. tType == 1 ||
  3841. tType == 4 ||
  3842. w.ateacher == userid
  3843. }"
  3844. >
  3845. {{ lang.ssMarkScore }}
  3846. </div>
  3847. <img
  3848. class="deleteImg"
  3849. src="../../assets/deleteworks.png"
  3850. v-if="
  3851. w.userid == userid || tType == 1 || tType == 4
  3852. "
  3853. @click.stop="deleteWorks(w.wid)"
  3854. alt
  3855. />
  3856. </div>
  3857. <div class="comment" style="min-width: 200px">
  3858. <div class="worksName">
  3859. <div>{{ w.sName }}</div>
  3860. </div>
  3861. <div class="commentList">
  3862. <div class="commentList">
  3863. <div
  3864. class="commentImg"
  3865. @click="
  3866. isLikes(
  3867. w.wid,
  3868. userid,
  3869. 1,
  3870. null,
  3871. w.isLikes,
  3872. w.sName
  3873. )
  3874. "
  3875. >
  3876. <img
  3877. :src="w.isLikes == true ? likes : noLikes"
  3878. alt=""
  3879. />
  3880. </div>
  3881. <div>{{ w.likesCount }}</div>
  3882. </div>
  3883. <div class="commentList" style="margin-right: 15px">
  3884. <div
  3885. class="commentImg"
  3886. @click="commentOther(w, toolIndex, wIndex)"
  3887. >
  3888. <img
  3889. src="../../assets/icon/comment/comment.png"
  3890. alt=""
  3891. />
  3892. </div>
  3893. <div>{{ w.commentCount }}</div>
  3894. </div>
  3895. </div>
  3896. </div>
  3897. </div>
  3898. </div>
  3899. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3900. {{ lang.ssNotSubmitted }}
  3901. </div>
  3902. <div
  3903. class="noWorksS"
  3904. v-if="noWorksS && noWorksS[toolIndex].length"
  3905. >
  3906. <div
  3907. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3908. :key="sIndex"
  3909. class="noWorksName2"
  3910. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3911. >
  3912. <el-tooltip
  3913. effect="dark"
  3914. :content="s.student"
  3915. placement="top"
  3916. >
  3917. <span>{{ s.student }}</span>
  3918. </el-tooltip>
  3919. </div>
  3920. </div>
  3921. </div>
  3922. <div
  3923. v-if="
  3924. tType &&
  3925. tType == 2 &&
  3926. !sIsOpen &&
  3927. tool.tool.indexOf(72) != -1
  3928. "
  3929. class="worksBox"
  3930. >
  3931. <div
  3932. class="zuoyeYulan"
  3933. v-if="workStudent[toolIndex].length > 0"
  3934. >
  3935. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  3936. </div>
  3937. <div
  3938. class="worksDetailBox"
  3939. v-if="workStudent[toolIndex].length > 0"
  3940. >
  3941. <div
  3942. class="works"
  3943. style="
  3944. width: 200px;
  3945. height: 140px;
  3946. margin: 10px 10px 10px 0;
  3947. box-shadow: 0 0 6px 1px #dfdada;
  3948. "
  3949. v-for="(w, wIndex) in workStudent[toolIndex]"
  3950. :key="wIndex"
  3951. >
  3952. <div class="workImg">
  3953. <!-- <img
  3954. :src="word2"
  3955. @click="downloadFile(w.works)"
  3956. v-if="w.type == 12"
  3957. alt
  3958. /> -->
  3959. <img
  3960. :src="word2"
  3961. @click="
  3962. openCocoFlow(w)
  3963. "
  3964. alt
  3965. />
  3966. <div
  3967. class="answerScore"
  3968. v-if="w.score"
  3969. @click.stop="openScore(w)"
  3970. :class="{
  3971. rightW:
  3972. w.userid == userid || tType == 1 || tType == 4
  3973. }"
  3974. >
  3975. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3976. </div>
  3977. <div
  3978. class="answerScore"
  3979. @click.stop="openScore(w)"
  3980. v-else-if="courseDetail.userid == userid"
  3981. :class="{
  3982. rightW:
  3983. w.userid == userid || tType == 1 || tType == 4
  3984. }"
  3985. >
  3986. {{ lang.ssMarkScore }}
  3987. </div>
  3988. <img
  3989. class="deleteImg"
  3990. src="../../assets/deleteworks.png"
  3991. v-if="
  3992. w.userid == userid || tType == 1 || tType == 4
  3993. "
  3994. @click.stop="deleteWorks(w.wid)"
  3995. alt
  3996. />
  3997. </div>
  3998. <div class="worksName">
  3999. <div>{{ w.sName }}</div>
  4000. </div>
  4001. </div>
  4002. </div>
  4003. </div>
  4004. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4005. <div
  4006. class="zuoyeYulan"
  4007. v-if="
  4008. worksStudent.length &&
  4009. worksStudent[toolIndex].length > 0
  4010. "
  4011. >
  4012. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  4013. <div
  4014. class="corOpen"
  4015. @click="contract(toolIndex)"
  4016. v-if="
  4017. (isCloseList[toolIndex].isCloseBoolean) &&
  4018. isCloseList[toolIndex].isClose == 0
  4019. "
  4020. >
  4021. {{ lang.ssFold }}
  4022. </div>
  4023. <div
  4024. class="corOpen"
  4025. @click="contract(toolIndex)"
  4026. v-if="isCloseList[toolIndex].isClose == 1"
  4027. >
  4028. {{ lang.ssExpand }}
  4029. </div>
  4030. </div>
  4031. <div
  4032. :id="'tool-' + toolIndex"
  4033. :style="{
  4034. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4035. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4036. }"
  4037. class="worksDetailBox"
  4038. v-if="
  4039. worksStudent.length &&
  4040. worksStudent[toolIndex].length > 0
  4041. "
  4042. >
  4043. <div
  4044. class="works"
  4045. style="
  4046. width: 200px;
  4047. height: 140px;
  4048. margin: 10px 10px 10px 0;
  4049. border-radius: 15px;
  4050. box-shadow: 0 0 6px 1px #dfdada;
  4051. "
  4052. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4053. :key="wIndex"
  4054. :class="w.type == 1 ? 'isTypeOne' : ''"
  4055. >
  4056. <div class="workImg" v-if="w.type == 0">
  4057. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4058. <img
  4059. :src="w.works"
  4060. @click="previewImg(w.works,w)"
  4061. alt
  4062. />
  4063. <div
  4064. class="answerScore"
  4065. v-if="w.score"
  4066. @click.stop="openScore(w)"
  4067. :class="{
  4068. rightW:
  4069. w.userid == userid ||
  4070. tType == 1 ||
  4071. tType == 4 ||
  4072. w.ateacher == userid,
  4073. }"
  4074. >
  4075. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4076. </div>
  4077. <div
  4078. class="answerScore"
  4079. @click.stop="openScore(w)"
  4080. v-else-if="courseDetail.userid == userid"
  4081. :class="{
  4082. rightW:
  4083. w.userid == userid ||
  4084. tType == 1 ||
  4085. tType == 4 ||
  4086. w.ateacher == userid,
  4087. }"
  4088. >
  4089. {{ lang.ssMarkScore }}
  4090. </div>
  4091. <img
  4092. class="deleteImg"
  4093. src="../../assets/deleteworks.png"
  4094. v-if="
  4095. w.userid == userid || tType == 1 || tType == 4
  4096. "
  4097. @click.stop="deleteWorks(w.wid)"
  4098. alt
  4099. />
  4100. </div>
  4101. <div
  4102. class="workImg"
  4103. style="cursor: pointer"
  4104. v-if="w.type == 1"
  4105. >
  4106. <img :src="word" @click="openFile(w.works)" alt />
  4107. <!-- @click="openFile(w.works)" -->
  4108. <div
  4109. class="answerScore"
  4110. v-if="w.score"
  4111. @click.stop="openScore(w)"
  4112. :class="{
  4113. rightW:
  4114. w.userid == userid ||
  4115. tType == 1 ||
  4116. tType == 4 ||
  4117. w.ateacher == userid,
  4118. }"
  4119. >
  4120. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4121. </div>
  4122. <div
  4123. class="answerScore"
  4124. @click.stop="openScore(w)"
  4125. v-else-if="courseDetail.userid == userid"
  4126. :class="{
  4127. rightW:
  4128. w.userid == userid ||
  4129. tType == 1 ||
  4130. tType == 4 ||
  4131. w.ateacher == userid,
  4132. }"
  4133. >
  4134. {{ lang.ssMarkScore }}
  4135. </div>
  4136. <img
  4137. class="deleteImg"
  4138. src="../../assets/deleteworks.png"
  4139. v-if="
  4140. w.userid == userid || tType == 1 || tType == 4
  4141. "
  4142. @click.stop="deleteWorks(w.wid)"
  4143. alt
  4144. />
  4145. </div>
  4146. <div class="workImg" v-if="w.type == 3">
  4147. <img
  4148. style="cursor: pointer"
  4149. :src="video"
  4150. @click="openVideo(w)"
  4151. alt
  4152. />
  4153. <!-- @click="openVideo(w.works)" -->
  4154. <div
  4155. class="answerScore"
  4156. v-if="w.score"
  4157. @click.stop="openScore(w)"
  4158. :class="{
  4159. rightW:
  4160. w.userid == userid ||
  4161. tType == 1 ||
  4162. tType == 4 ||
  4163. w.ateacher == userid,
  4164. }"
  4165. >
  4166. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4167. </div>
  4168. <div
  4169. class="answerScore"
  4170. @click.stop="openScore(w)"
  4171. v-else-if="courseDetail.userid == userid"
  4172. :class="{
  4173. rightW:
  4174. w.userid == userid ||
  4175. tType == 1 ||
  4176. tType == 4 ||
  4177. w.ateacher == userid,
  4178. }"
  4179. >
  4180. {{ lang.ssMarkScore }}
  4181. </div>
  4182. <img
  4183. class="deleteImg"
  4184. src="../../assets/deleteworks.png"
  4185. v-if="
  4186. w.userid == userid || tType == 1 || tType == 4
  4187. "
  4188. @click.stop="deleteWorks(w.wid)"
  4189. alt
  4190. />
  4191. </div>
  4192. <div class="comment" style="min-width: 200px">
  4193. <div class="worksName">
  4194. <div
  4195. style="cursor: pointer"
  4196. @click="
  4197. openSname(w.sName, w.wid, toolIndex, w.userid)
  4198. "
  4199. >
  4200. {{ w.sName }}
  4201. </div>
  4202. </div>
  4203. <div class="commentList">
  4204. <div class="commentList">
  4205. <div
  4206. class="commentImg"
  4207. @click="
  4208. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4209. "
  4210. >
  4211. <img
  4212. :src="w.isLikes == true ? likes : noLikes"
  4213. alt=""
  4214. />
  4215. </div>
  4216. <div>{{ w.likesCount }}</div>
  4217. </div>
  4218. <div class="commentList" style="margin-right: 15px">
  4219. <div
  4220. class="commentImg"
  4221. @click="commentOther(w, toolIndex, wIndex)"
  4222. >
  4223. <img
  4224. src="../../assets/icon/comment/comment.png"
  4225. alt=""
  4226. />
  4227. </div>
  4228. <div>{{ w.commentCount }}</div>
  4229. </div>
  4230. </div>
  4231. </div>
  4232. </div>
  4233. </div>
  4234. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4235. {{ lang.ssNotSubmitted }}
  4236. </div>
  4237. <div
  4238. class="noWorksS"
  4239. v-if="noWorksS && noWorksS[toolIndex].length"
  4240. >
  4241. <div
  4242. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4243. :key="sIndex"
  4244. class="noWorksName"
  4245. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4246. >
  4247. <el-tooltip effect="dark" :content="s.student" placement="top">
  4248. <span>{{ s.student }}</span>
  4249. </el-tooltip>
  4250. </div>
  4251. </div>
  4252. </div>
  4253. <div
  4254. v-if="
  4255. tType &&
  4256. ((tType == 2 && sIsOpen == true) ||
  4257. tType == 1 ||
  4258. tType == 4) &&
  4259. tool.tool.indexOf(4) != -1 &&
  4260. (tool.askJson[0].answer ||
  4261. tool.askJson[0].answer === 0) &&
  4262. checkJson[toolIndex].length
  4263. "
  4264. class="xuan_right_box"
  4265. >
  4266. <div
  4267. class="tool_right_box"
  4268. v-for="(item, index) in tool.askJson"
  4269. :key="index"
  4270. >
  4271. <div style="width: calc(100% - 30px);">
  4272. <el-tooltip
  4273. effect="light"
  4274. :content="index + 1 + '、' + item.askstitle"
  4275. placement="top"
  4276. popper-class="text_tooltip"
  4277. >
  4278. <div
  4279. style="
  4280. width: calc(100% - 130px);
  4281. display: block;
  4282. white-space: nowrap;
  4283. overflow: hidden;
  4284. text-overflow: ellipsis;
  4285. word-break: break-word;
  4286. cursor: pointer;
  4287. "
  4288. >
  4289. {{ index + 1 + "、" + item.askstitle }}
  4290. </div>
  4291. </el-tooltip>
  4292. </div>
  4293. <div class="right_box_xuan">
  4294. <span>{{ lang.ssCorrectRate }}</span>
  4295. <span>{{
  4296. (checkJson[toolIndex][index].right
  4297. ? checkJson[toolIndex][index].right
  4298. : 0) + "%"
  4299. }}</span>
  4300. </div>
  4301. </div>
  4302. </div>
  4303. <div
  4304. class="xuan_right_box"
  4305. style="background: unset; padding: 0 10px"
  4306. v-if="
  4307. tType &&
  4308. ((tType == 2 && sIsOpen == true) ||
  4309. tType == 1 ||
  4310. tType == 4) &&
  4311. tool.tool.indexOf(4) != -1
  4312. "
  4313. >
  4314. <AskStatic
  4315. v-if="
  4316. worksStudent.length &&
  4317. worksStudent[toolIndex].length > 0
  4318. "
  4319. :askJSON="tool"
  4320. :checkJson="checkJson[toolIndex]"
  4321. ></AskStatic>
  4322. </div>
  4323. <div
  4324. v-if="
  4325. tType &&
  4326. ((tType == 2 && sIsOpen == true) ||
  4327. tType == 1 ||
  4328. tType == 4) &&
  4329. tool.tool.indexOf(4) != -1
  4330. "
  4331. class="worksBox"
  4332. >
  4333. <div
  4334. class="zuoyeYulan"
  4335. v-if="
  4336. worksStudent.length &&
  4337. worksStudent[toolIndex].length > 0
  4338. "
  4339. >
  4340. <div class="worksTop">
  4341. <div>{{ lang.ssHomeworkPreview }}</div>
  4342. <div
  4343. class="corOpen"
  4344. @click="contract(toolIndex)"
  4345. v-if="
  4346. (isCloseList[toolIndex].isCloseBoolean) &&
  4347. isCloseList[toolIndex].isClose == 0
  4348. "
  4349. >
  4350. {{ lang.ssFold }}
  4351. </div>
  4352. <div
  4353. class="corOpen"
  4354. @click="contract(toolIndex)"
  4355. v-if="isCloseList[toolIndex].isClose == 1"
  4356. >
  4357. {{ lang.ssExpand }}
  4358. </div>
  4359. </div>
  4360. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4361. </div>
  4362. <div>
  4363. <div
  4364. :id="'tool-' + toolIndex"
  4365. :style="{
  4366. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4367. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4368. }"
  4369. class="worksDetailBox"
  4370. v-if="
  4371. worksStudent.length &&
  4372. worksStudent[toolIndex].length > 0
  4373. "
  4374. >
  4375. <div
  4376. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4377. :key="wIndex"
  4378. class="isWorksName2"
  4379. @click="
  4380. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4381. "
  4382. >
  4383. {{ w.sName }}
  4384. <img
  4385. class="deleteImg deleteImg2"
  4386. src="../../assets/deleteworks.png"
  4387. v-if="
  4388. w.userid == userid || tType == 1 || tType == 4
  4389. "
  4390. @click.stop="deleteWorks(w.wid)"
  4391. alt
  4392. />
  4393. </div>
  4394. <!-- <div class="works" style="
  4395. width: 200px;
  4396. height: 140px;
  4397. border-radius: 10px;
  4398. box-shadow: 0 0 6px 1px #dfdada;
  4399. overflow: hidden;
  4400. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4401. <div class="workImg">
  4402. <img src="../../assets/icon/works/noImg.png" @click="
  4403. openTools(
  4404. 4,
  4405. toolIndex,
  4406. taskCount,
  4407. w.works,
  4408. w.sName
  4409. )
  4410. " alt />
  4411. </div>
  4412. <div class="worksName">
  4413. <div>{{ w.sName }}</div>
  4414. <div>{{ w.time }}</div>
  4415. </div>
  4416. </div> -->
  4417. </div>
  4418. </div>
  4419. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4420. {{ lang.ssNotSubmitted }}
  4421. </div>
  4422. <div
  4423. class="noWorksS"
  4424. v-if="noWorksS && noWorksS[toolIndex].length"
  4425. >
  4426. <div
  4427. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4428. :key="sIndex"
  4429. class="noWorksName"
  4430. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4431. >
  4432. <el-tooltip effect="dark" :content="s.student" placement="top">
  4433. <span>{{ s.student }}</span>
  4434. </el-tooltip>
  4435. </div>
  4436. </div>
  4437. </div>
  4438. <div
  4439. v-if="
  4440. tType &&
  4441. ((tType == 2 && sIsOpen == true) ||
  4442. tType == 1 ||
  4443. tType == 4) &&
  4444. tool.tool.indexOf(45) != -1 &&
  4445. (tool.testJson.testJson[0].answer ||
  4446. tool.testJson.testJson[0].answer === 0) &&
  4447. checkJson[toolIndex].length
  4448. "
  4449. class="xuan_right_box"
  4450. >
  4451. <div
  4452. class="tool_right_box"
  4453. v-for="(item, index) in tool.testJson.testJson"
  4454. :key="index"
  4455. >
  4456. <div class="right_box_xuan" style="margin-right: 10px">
  4457. <span>{{ lang.ssCorrectRate }}</span>
  4458. <span>{{
  4459. (checkJson[toolIndex][index].right
  4460. ? checkJson[toolIndex][index].right
  4461. : 0) + "%"
  4462. }}</span>
  4463. </div>
  4464. <div style="width: calc(100% - 30px);">
  4465. <el-tooltip
  4466. effect="light"
  4467. :content="index + 1 + '、' + item.teststitle"
  4468. placement="top"
  4469. popper-class="text_tooltip"
  4470. >
  4471. <div
  4472. style="
  4473. width: calc(100% - 130px);
  4474. display: flex;
  4475. white-space: nowrap;
  4476. overflow: hidden;
  4477. text-overflow: ellipsis;
  4478. word-break: break-word;
  4479. cursor: pointer;
  4480. "
  4481. class="renderedFor"
  4482. >
  4483. {{ index + 1 + "、" }} <span v-html="item.teststitle"></span>
  4484. </div>
  4485. </el-tooltip>
  4486. </div>
  4487. </div>
  4488. </div>
  4489. <div
  4490. class="xuan_right_box"
  4491. style="background: unset; padding: 0 10px; width: 91.5%"
  4492. v-if="
  4493. tType &&
  4494. ((tType == 2 && sIsOpen == true) ||
  4495. tType == 1 ||
  4496. tType == 4) &&
  4497. tool.tool.indexOf(45) != -1
  4498. "
  4499. >
  4500. <AskStatic2
  4501. v-if="
  4502. worksStudent.length &&
  4503. worksStudent[toolIndex].length > 0
  4504. "
  4505. :askJSON="tool"
  4506. :checkJson="checkJson[toolIndex]"
  4507. ></AskStatic2>
  4508. </div>
  4509. <div
  4510. v-if="
  4511. tType &&
  4512. ((tType == 2 && sIsOpen == true) ||
  4513. tType == 1 ||
  4514. tType == 4) &&
  4515. tool.tool.indexOf(45) != -1
  4516. "
  4517. class="worksBox"
  4518. >
  4519. <div
  4520. class="zuoyeYulan"
  4521. v-if="
  4522. worksStudent.length &&
  4523. worksStudent[toolIndex].length > 0
  4524. "
  4525. >
  4526. <div class="worksTop">
  4527. <div>{{ lang.ssHomeworkPreview }}</div>
  4528. <div
  4529. class="corOpen"
  4530. @click="contract(toolIndex)"
  4531. v-if="
  4532. (isCloseList[toolIndex].isCloseBoolean) &&
  4533. isCloseList[toolIndex].isClose == 0
  4534. "
  4535. >
  4536. {{ lang.ssFold }}
  4537. </div>
  4538. <div
  4539. class="corOpen"
  4540. @click="contract(toolIndex)"
  4541. v-if="isCloseList[toolIndex].isClose == 1"
  4542. >
  4543. {{ lang.ssExpand }}
  4544. </div>
  4545. </div>
  4546. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4547. </div>
  4548. <div>
  4549. <div
  4550. :id="'tool-' + toolIndex"
  4551. :style="{
  4552. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4553. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4554. }"
  4555. class="worksDetailBox"
  4556. v-if="
  4557. worksStudent.length &&
  4558. worksStudent[toolIndex].length > 0
  4559. "
  4560. >
  4561. <div
  4562. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4563. :key="wIndex"
  4564. class="isWorksName2"
  4565. @click="
  4566. openTools(
  4567. 45,
  4568. toolIndex,
  4569. taskCount,
  4570. w.works,
  4571. w.sName
  4572. )
  4573. "
  4574. >
  4575. {{ w.sName }}
  4576. <img
  4577. class="deleteImg deleteImg2"
  4578. src="../../assets/deleteworks.png"
  4579. v-if="
  4580. w.userid == userid || tType == 1 || tType == 4
  4581. "
  4582. @click.stop="deleteWorks(w.wid)"
  4583. alt
  4584. />
  4585. </div>
  4586. </div>
  4587. </div>
  4588. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4589. {{ lang.ssNotSubmitted }}
  4590. </div>
  4591. <div
  4592. class="noWorksS"
  4593. v-if="noWorksS && noWorksS[toolIndex].length"
  4594. >
  4595. <div
  4596. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4597. :key="sIndex"
  4598. class="noWorksName"
  4599. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4600. >
  4601. <el-tooltip effect="dark" :content="s.student" placement="top">
  4602. <span>{{ s.student }}</span>
  4603. </el-tooltip>
  4604. </div>
  4605. </div>
  4606. </div>
  4607. <div
  4608. v-if="
  4609. tType &&
  4610. ((tType == 2 && sIsOpen == true) ||
  4611. tType == 1 ||
  4612. tType == 4) &&
  4613. tool.tool.indexOf(69) != -1
  4614. "
  4615. class="worksBox"
  4616. >
  4617. <div
  4618. class="zuoyeYulan"
  4619. v-if="
  4620. worksStudent.length &&
  4621. worksStudent[toolIndex].length > 0
  4622. "
  4623. >
  4624. <div class="worksTop">
  4625. <div>{{ lang.ssHomeworkPreview }}</div>
  4626. <div
  4627. class="corOpen"
  4628. @click="contract(toolIndex)"
  4629. v-if="
  4630. (isCloseList[toolIndex].isCloseBoolean) &&
  4631. isCloseList[toolIndex].isClose == 0
  4632. "
  4633. >
  4634. {{ lang.ssFold }}
  4635. </div>
  4636. <div
  4637. class="corOpen"
  4638. @click="contract(toolIndex)"
  4639. v-if="isCloseList[toolIndex].isClose == 1"
  4640. >
  4641. {{ lang.ssExpand }}
  4642. </div>
  4643. </div>
  4644. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4645. </div>
  4646. <div>
  4647. <div
  4648. :id="'tool-' + toolIndex"
  4649. :style="{
  4650. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4651. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4652. }"
  4653. class="worksDetailBox"
  4654. v-if="
  4655. worksStudent.length &&
  4656. worksStudent[toolIndex].length > 0
  4657. "
  4658. >
  4659. <div
  4660. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4661. :key="wIndex"
  4662. class="isWorksName2"
  4663. style="width: 160px;height: 65px;line-height: 65px;"
  4664. @click="
  4665. openTools(
  4666. 69,
  4667. toolIndex,
  4668. taskCount,
  4669. w.works,
  4670. w.sName,
  4671. w.wid
  4672. )
  4673. "
  4674. >
  4675. {{ w.sName }}
  4676. <img
  4677. class="deleteImg1"
  4678. src="../../assets/evaEnglish.png"
  4679. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4680. alt
  4681. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4682. />
  4683. <img
  4684. class="deleteImg deleteImg2"
  4685. src="../../assets/deleteworks.png"
  4686. v-if="
  4687. w.userid == userid || tType == 1 || tType == 4
  4688. "
  4689. @click.stop="deleteWorks(w.wid)"
  4690. alt
  4691. />
  4692. </div>
  4693. </div>
  4694. </div>
  4695. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4696. {{ lang.ssNotSubmitted }}
  4697. </div>
  4698. <div
  4699. class="noWorksS"
  4700. v-if="noWorksS && noWorksS[toolIndex].length"
  4701. >
  4702. <div
  4703. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4704. :key="sIndex"
  4705. class="noWorksName"
  4706. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4707. >
  4708. <el-tooltip effect="dark" :content="s.student" placement="top">
  4709. <span>{{ s.student }}</span>
  4710. </el-tooltip>
  4711. </div>
  4712. </div>
  4713. </div>
  4714. <div
  4715. v-if="
  4716. tType &&
  4717. ((tType == 2 && sIsOpen == true) ||
  4718. tType == 1 ||
  4719. tType == 4) &&
  4720. tool.tool.indexOf(15) != -1
  4721. "
  4722. class="worksBox"
  4723. >
  4724. <div
  4725. class="zuoyeYulan"
  4726. v-if="
  4727. (worksStudent.length &&
  4728. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4729. "
  4730. >
  4731. <div class="worksTop">
  4732. <div>{{ lang.ssHomeworkPreview }}</div>
  4733. <div
  4734. class="corOpen"
  4735. @click="contract(toolIndex)"
  4736. v-if="
  4737. (isCloseList[toolIndex].isCloseBoolean) &&
  4738. isCloseList[toolIndex].isClose == 0
  4739. "
  4740. >
  4741. {{ lang.ssFold }}
  4742. </div>
  4743. <div
  4744. class="corOpen"
  4745. @click="contract(toolIndex)"
  4746. v-if="isCloseList[toolIndex].isClose == 1"
  4747. >
  4748. {{ lang.ssExpand }}
  4749. </div>
  4750. </div>
  4751. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4752. </div>
  4753. <div
  4754. class="group_workBox"
  4755. v-for="(g, gindex) in courseGroup.group"
  4756. :key="gindex"
  4757. >
  4758. <div class="group_box">
  4759. <div class="group_title">
  4760. <el-tooltip
  4761. class="item"
  4762. effect="light"
  4763. :content="g.name"
  4764. placement="top"
  4765. >
  4766. <div class="group_name">{{ g.name }}</div>
  4767. </el-tooltip>
  4768. </div>
  4769. <div
  4770. class="group_work"
  4771. v-if="
  4772. g.works &&
  4773. g.works.length &&
  4774. g.works[toolIndex].length
  4775. "
  4776. >
  4777. <div
  4778. class="works"
  4779. v-for="(w, wIndex) in g.works[toolIndex]"
  4780. :key="wIndex"
  4781. >
  4782. <div
  4783. class="workImg"
  4784. style="
  4785. border-radius: 15px;
  4786. box-shadow: 0px 0px 5px 5px #eee;
  4787. "
  4788. >
  4789. <div
  4790. class="answerBg"
  4791. style="border-radius: 15px 15px 0 0"
  4792. @click="
  4793. commentOther(w, toolIndex, wIndex, null, g.id)
  4794. "
  4795. >
  4796. <div class="answerContent">
  4797. {{ JSON.parse(w.works)[0].answer }}
  4798. </div>
  4799. <div
  4800. class="answerScore"
  4801. v-if="w.score"
  4802. @click.stop="openScore(w)"
  4803. :class="{
  4804. rightW:
  4805. w.userid == userid ||
  4806. tType == 1 ||
  4807. tType == 4,
  4808. }"
  4809. >
  4810. {{ JSON.parse(w.score).wScore }}{{ lang.ssScoreUnit }}
  4811. </div>
  4812. <div
  4813. class="answerScore"
  4814. @click.stop="openScore(w)"
  4815. v-else-if="courseDetail.userid == userid"
  4816. :class="{
  4817. rightW:
  4818. w.userid == userid ||
  4819. tType == 1 ||
  4820. tType == 4,
  4821. }"
  4822. >
  4823. {{ lang.ssMarkScore }}
  4824. </div>
  4825. <img
  4826. class="deleteImg"
  4827. src="../../assets/deleteworks.png"
  4828. v-if="
  4829. w.userid == userid ||
  4830. tType == 1 ||
  4831. tType == 4
  4832. "
  4833. @click.stop="deleteWorks(w.wid)"
  4834. alt
  4835. />
  4836. </div>
  4837. <div class="comment">
  4838. <div class="worksName">
  4839. <div>{{ w.sName }}</div>
  4840. </div>
  4841. <div class="commentList">
  4842. <div
  4843. class="commentImg"
  4844. @click="
  4845. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4846. "
  4847. >
  4848. <img
  4849. :src="w.isLikes == true ? likes : noLikes"
  4850. alt=""
  4851. />
  4852. </div>
  4853. <div>{{ w.likesCount }}</div>
  4854. </div>
  4855. <div
  4856. class="commentList"
  4857. style="margin-right: 15px"
  4858. >
  4859. <div
  4860. class="commentImg"
  4861. @click="
  4862. commentOther(
  4863. w,
  4864. toolIndex,
  4865. wIndex,
  4866. null,
  4867. g.id
  4868. )
  4869. "
  4870. >
  4871. <img
  4872. src="../../assets/icon/comment/comment.png"
  4873. alt=""
  4874. />
  4875. </div>
  4876. <div>{{ w.commentCount }}</div>
  4877. </div>
  4878. </div>
  4879. </div>
  4880. </div>
  4881. </div>
  4882. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  4883. </div>
  4884. </div>
  4885. <div
  4886. :id="'tool-' + toolIndex"
  4887. :style="{
  4888. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4889. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4890. }"
  4891. class="worksDetailBox"
  4892. v-if="
  4893. worksStudent.length &&
  4894. worksStudent[toolIndex].length > 0
  4895. "
  4896. >
  4897. <div
  4898. class="works"
  4899. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4900. :key="wIndex"
  4901. >
  4902. <div
  4903. class="workImg"
  4904. style="
  4905. border-radius: 15px;
  4906. box-shadow: 0px 0px 5px 5px #eee;
  4907. "
  4908. >
  4909. <!-- <img
  4910. src="../../assets/icon/works/noImg.png"
  4911. @click="openTools(15, toolIndex, taskCount, w.works)"
  4912. alt=""
  4913. />-->
  4914. <div
  4915. class="answerBg"
  4916. style="border-radius: 15px 15px 0 0"
  4917. @click="commentOther(w, toolIndex, wIndex)"
  4918. >
  4919. <!-- <div>{{ w.sName }}</div> -->
  4920. <div class="answerContent">
  4921. {{ JSON.parse(w.works)[0].answer }}
  4922. </div>
  4923. <div
  4924. class="answerScore"
  4925. v-if="w.score"
  4926. @click.stop="openScore(w)"
  4927. :class="{
  4928. rightW:
  4929. w.userid == userid ||
  4930. tType == 1 ||
  4931. tType == 4,
  4932. }"
  4933. >
  4934. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4935. </div>
  4936. <div
  4937. class="answerScore"
  4938. @click.stop="openScore(w)"
  4939. v-else-if="courseDetail.userid == userid"
  4940. :class="{
  4941. rightW:
  4942. w.userid == userid ||
  4943. tType == 1 ||
  4944. tType == 4,
  4945. }"
  4946. >
  4947. {{ lang.ssMarkScore }}
  4948. </div>
  4949. <img
  4950. class="deleteImg"
  4951. src="../../assets/deleteworks.png"
  4952. v-if="
  4953. w.userid == userid || tType == 1 || tType == 4
  4954. "
  4955. @click.stop="deleteWorks(w.wid)"
  4956. alt
  4957. />
  4958. </div>
  4959. <div class="comment">
  4960. <div class="worksName">
  4961. <div>{{ w.sName }}</div>
  4962. </div>
  4963. <div class="commentList">
  4964. <div
  4965. class="commentImg"
  4966. @click="
  4967. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4968. "
  4969. >
  4970. <img
  4971. :src="w.isLikes == true ? likes : noLikes"
  4972. alt=""
  4973. />
  4974. </div>
  4975. <div>{{ w.likesCount }}</div>
  4976. </div>
  4977. <div class="commentList" style="margin-right: 15px">
  4978. <div
  4979. class="commentImg"
  4980. @click="commentOther(w, toolIndex, wIndex)"
  4981. >
  4982. <img
  4983. src="../../assets/icon/comment/comment.png"
  4984. alt=""
  4985. />
  4986. </div>
  4987. <div>{{ w.commentCount }}</div>
  4988. </div>
  4989. </div>
  4990. </div>
  4991. </div>
  4992. </div>
  4993. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4994. {{ lang.ssNotSubmitted }}
  4995. </div>
  4996. <div
  4997. class="noWorksS"
  4998. v-if="noWorksS && noWorksS[toolIndex].length"
  4999. >
  5000. <div
  5001. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5002. :key="sIndex"
  5003. class="noWorksName"
  5004. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  5005. >
  5006. <el-tooltip effect="dark" :content="s.student" placement="top">
  5007. <span>{{ s.student }}</span>
  5008. </el-tooltip>
  5009. </div>
  5010. </div>
  5011. </div>
  5012. <div
  5013. v-if="
  5014. tType &&
  5015. ((tType == 2 && sIsOpen == true) ||
  5016. tType == 1 ||
  5017. tType == 4) &&
  5018. tool.tool.indexOf(1) != -1
  5019. "
  5020. class="worksBox"
  5021. >
  5022. <div
  5023. class="zuoyeYulan"
  5024. v-if="
  5025. (worksStudent.length &&
  5026. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5027. "
  5028. >
  5029. <div class="worksTop">
  5030. <div>{{ lang.ssHomeworkPreview }}</div>
  5031. <div
  5032. class="corOpen"
  5033. @click="contract(toolIndex)"
  5034. v-if="
  5035. (isCloseList[toolIndex].isCloseBoolean) &&
  5036. isCloseList[toolIndex].isClose == 0
  5037. "
  5038. >
  5039. {{ lang.ssFold }}
  5040. </div>
  5041. <div
  5042. class="corOpen"
  5043. @click="contract(toolIndex)"
  5044. v-if="isCloseList[toolIndex].isClose == 1"
  5045. >
  5046. {{ lang.ssExpand }}
  5047. </div>
  5048. </div>
  5049. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5050. </div>
  5051. <div
  5052. class="group_workBox"
  5053. v-for="(g, gindex) in courseGroup.group"
  5054. :key="gindex"
  5055. >
  5056. <div class="group_box">
  5057. <div class="group_title">
  5058. <el-tooltip
  5059. class="item"
  5060. effect="light"
  5061. :content="g.name"
  5062. placement="top"
  5063. >
  5064. <div class="group_name">{{ g.name }}</div>
  5065. </el-tooltip>
  5066. </div>
  5067. <div
  5068. class="group_work"
  5069. v-if="
  5070. g.works &&
  5071. g.works.length &&
  5072. g.works[toolIndex].length
  5073. "
  5074. >
  5075. <div
  5076. class="works"
  5077. style="
  5078. width: 200px;
  5079. height: 140px;
  5080. margin: 10px 10px 10px 0;
  5081. border-radius: 15px;
  5082. box-shadow: 0 0 6px 1px #dfdada;
  5083. "
  5084. v-for="(w, wIndex) in g.works[toolIndex]"
  5085. :key="wIndex"
  5086. :class="w.type == 1 ? 'isTypeOne' : ''"
  5087. >
  5088. <div class="workImg">
  5089. <img
  5090. :src="w.works"
  5091. @click="previewImg(w.works,w)"
  5092. alt
  5093. />
  5094. <div
  5095. class="answerScore"
  5096. v-if="w.score"
  5097. @click.stop="openScore(w)"
  5098. :class="{
  5099. rightW:
  5100. w.userid == userid ||
  5101. tType == 1 ||
  5102. tType == 4,
  5103. }"
  5104. >
  5105. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5106. </div>
  5107. <div
  5108. class="answerScore"
  5109. @click.stop="openScore(w)"
  5110. v-else-if="courseDetail.userid == userid"
  5111. :class="{
  5112. rightW:
  5113. w.userid == userid ||
  5114. tType == 1 ||
  5115. tType == 4,
  5116. }"
  5117. >
  5118. {{ lang.ssMarkScore }}
  5119. </div>
  5120. <img
  5121. class="deleteImg"
  5122. src="../../assets/deleteworks.png"
  5123. v-if="
  5124. w.userid == userid || tType == 1 || tType == 4
  5125. "
  5126. @click.stop="deleteWorks(w.wid)"
  5127. alt
  5128. />
  5129. </div>
  5130. <div class="comment" style="min-width: 200px">
  5131. <div class="worksName">
  5132. <div>{{ w.sName }}</div>
  5133. </div>
  5134. <div class="commentList">
  5135. <div class="commentList">
  5136. <div
  5137. class="commentImg"
  5138. @click="
  5139. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5140. "
  5141. >
  5142. <img
  5143. :src="w.isLikes == true ? likes : noLikes"
  5144. alt=""
  5145. />
  5146. </div>
  5147. <div>{{ w.likesCount }}</div>
  5148. </div>
  5149. <div
  5150. class="commentList"
  5151. style="margin-right: 15px"
  5152. >
  5153. <div
  5154. class="commentImg"
  5155. @click="
  5156. commentOther(
  5157. w,
  5158. toolIndex,
  5159. wIndex,
  5160. null,
  5161. g.id
  5162. )
  5163. "
  5164. >
  5165. <img
  5166. src="../../assets/icon/comment/comment.png"
  5167. alt=""
  5168. />
  5169. </div>
  5170. <div>{{ w.commentCount }}</div>
  5171. </div>
  5172. </div>
  5173. </div>
  5174. </div>
  5175. </div>
  5176. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  5177. </div>
  5178. </div>
  5179. <div
  5180. :id="'tool-' + toolIndex"
  5181. :style="{
  5182. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5183. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5184. }"
  5185. class="worksDetailBox"
  5186. v-if="
  5187. worksStudent.length &&
  5188. worksStudent[toolIndex].length > 0
  5189. "
  5190. >
  5191. <div
  5192. class="works"
  5193. style="
  5194. width: 200px;
  5195. height: 140px;
  5196. margin: 10px 10px 10px 0;
  5197. border-radius: 15px;
  5198. box-shadow: 0 0 6px 1px #dfdada;
  5199. "
  5200. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5201. :key="wIndex"
  5202. >
  5203. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5204. <div class="workImg">
  5205. <img
  5206. :src="w.works"
  5207. @click="previewImg(w.works,w)"
  5208. alt
  5209. />
  5210. <div
  5211. class="answerScore"
  5212. v-if="w.score"
  5213. @click.stop="openScore(w)"
  5214. :class="{
  5215. rightW:
  5216. w.userid == userid || tType == 1 || tType == 4,
  5217. }"
  5218. >
  5219. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5220. </div>
  5221. <div
  5222. class="answerScore"
  5223. @click.stop="openScore(w)"
  5224. v-else-if="courseDetail.userid == userid"
  5225. :class="{
  5226. rightW:
  5227. w.userid == userid || tType == 1 || tType == 4,
  5228. }"
  5229. >
  5230. {{ lang.ssMarkScore }}
  5231. </div>
  5232. <img
  5233. class="deleteImg"
  5234. src="../../assets/deleteworks.png"
  5235. v-if="
  5236. w.userid == userid || tType == 1 || tType == 4
  5237. "
  5238. @click.stop="deleteWorks(w.wid)"
  5239. alt
  5240. />
  5241. </div>
  5242. <div class="comment" style="min-width: 200px">
  5243. <div class="worksName">
  5244. <div>{{ w.sName }}</div>
  5245. </div>
  5246. <div class="commentList">
  5247. <div class="commentList">
  5248. <div
  5249. class="commentImg"
  5250. @click="
  5251. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5252. "
  5253. >
  5254. <img
  5255. :src="w.isLikes == true ? likes : noLikes"
  5256. alt=""
  5257. />
  5258. </div>
  5259. <div>{{ w.likesCount }}</div>
  5260. </div>
  5261. <div class="commentList" style="margin-right: 15px">
  5262. <div
  5263. class="commentImg"
  5264. @click="commentOther(w, toolIndex, wIndex)"
  5265. >
  5266. <img
  5267. src="../../assets/icon/comment/comment.png"
  5268. alt=""
  5269. />
  5270. </div>
  5271. <div>{{ w.commentCount }}</div>
  5272. </div>
  5273. </div>
  5274. </div>
  5275. </div>
  5276. </div>
  5277. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5278. {{ lang.ssNotSubmitted }}
  5279. </div>
  5280. <div
  5281. class="noWorksS"
  5282. v-if="noWorksS && noWorksS[toolIndex].length"
  5283. >
  5284. <div
  5285. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5286. :key="sIndex"
  5287. class="noWorksName"
  5288. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5289. >
  5290. <el-tooltip effect="dark" :content="s.student" placement="top">
  5291. <span>{{ s.student }}</span>
  5292. </el-tooltip>
  5293. </div>
  5294. </div>
  5295. </div>
  5296. <div
  5297. v-if="
  5298. tType &&
  5299. ((tType == 2 && sIsOpen == true) ||
  5300. tType == 1 ||
  5301. tType == 4) &&
  5302. tool.tool.indexOf(3) != -1
  5303. "
  5304. class="worksBox"
  5305. >
  5306. <div
  5307. class="zuoyeYulan"
  5308. v-if="
  5309. (worksStudent.length &&
  5310. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5311. "
  5312. >
  5313. <div class="worksTop">
  5314. <div>{{ lang.ssHomeworkPreview }}</div>
  5315. <div
  5316. class="corOpen"
  5317. @click="contract(toolIndex)"
  5318. v-if="
  5319. (isCloseList[toolIndex].isCloseBoolean) &&
  5320. isCloseList[toolIndex].isClose == 0
  5321. "
  5322. >
  5323. {{ lang.ssFold }}
  5324. </div>
  5325. <div
  5326. class="corOpen"
  5327. @click="contract(toolIndex)"
  5328. v-if="isCloseList[toolIndex].isClose == 1"
  5329. >
  5330. {{ lang.ssExpand }}
  5331. </div>
  5332. </div>
  5333. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5334. </div>
  5335. <div
  5336. class="group_workBox"
  5337. v-for="(g, gindex) in courseGroup.group"
  5338. :key="gindex"
  5339. >
  5340. <div class="group_box">
  5341. <div class="group_title">
  5342. <el-tooltip
  5343. class="item"
  5344. effect="light"
  5345. :content="g.name"
  5346. placement="top"
  5347. >
  5348. <div class="group_name">{{ g.name }}</div>
  5349. </el-tooltip>
  5350. </div>
  5351. <div
  5352. class="group_work"
  5353. v-if="
  5354. g.works &&
  5355. g.works.length &&
  5356. g.works[toolIndex].length
  5357. "
  5358. >
  5359. <div
  5360. class="works"
  5361. style="
  5362. width: 200px;
  5363. height: 140px;
  5364. margin: 10px 10px 10px 0;
  5365. border-radius: 15px;
  5366. box-shadow: 0 0 6px 1px #dfdada;
  5367. "
  5368. v-for="(w, wIndex) in g.works[toolIndex]"
  5369. :key="wIndex"
  5370. :class="w.type == 1 ? 'isTypeOne' : ''"
  5371. >
  5372. <div class="workImg">
  5373. <img
  5374. :src="w.works"
  5375. @click="previewImg(w.works,w)"
  5376. alt
  5377. />
  5378. <div
  5379. class="answerScore"
  5380. v-if="w.score"
  5381. @click.stop="openScore(w)"
  5382. :class="{
  5383. rightW:
  5384. w.userid == userid ||
  5385. tType == 1 ||
  5386. tType == 4,
  5387. }"
  5388. >
  5389. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5390. </div>
  5391. <div
  5392. class="answerScore"
  5393. @click.stop="openScore(w)"
  5394. v-else-if="courseDetail.userid == userid"
  5395. :class="{
  5396. rightW:
  5397. w.userid == userid ||
  5398. tType == 1 ||
  5399. tType == 4,
  5400. }"
  5401. >
  5402. {{ lang.ssMarkScore }}
  5403. </div>
  5404. <img
  5405. class="deleteImg"
  5406. src="../../assets/deleteworks.png"
  5407. v-if="
  5408. w.userid == userid || tType == 1 || tType == 4
  5409. "
  5410. @click.stop="deleteWorks(w.wid)"
  5411. alt
  5412. />
  5413. </div>
  5414. <div class="comment" style="min-width: 200px">
  5415. <div class="worksName">
  5416. <div>{{ w.sName }}</div>
  5417. </div>
  5418. <div class="commentList">
  5419. <div class="commentList">
  5420. <div
  5421. class="commentImg"
  5422. @click="
  5423. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5424. "
  5425. >
  5426. <img
  5427. :src="w.isLikes == true ? likes : noLikes"
  5428. alt=""
  5429. />
  5430. </div>
  5431. <div>{{ w.likesCount }}</div>
  5432. </div>
  5433. <div
  5434. class="commentList"
  5435. style="margin-right: 15px"
  5436. >
  5437. <div
  5438. class="commentImg"
  5439. @click="
  5440. commentOther(
  5441. w,
  5442. toolIndex,
  5443. wIndex,
  5444. null,
  5445. g.id
  5446. )
  5447. "
  5448. >
  5449. <img
  5450. src="../../assets/icon/comment/comment.png"
  5451. alt=""
  5452. />
  5453. </div>
  5454. <div>{{ w.commentCount }}</div>
  5455. </div>
  5456. </div>
  5457. </div>
  5458. </div>
  5459. </div>
  5460. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  5461. </div>
  5462. </div>
  5463. <div
  5464. :id="'tool-' + toolIndex"
  5465. :style="{
  5466. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5467. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5468. }"
  5469. class="worksDetailBox"
  5470. v-if="
  5471. worksStudent.length &&
  5472. worksStudent[toolIndex].length > 0
  5473. "
  5474. >
  5475. <div
  5476. class="works"
  5477. style="
  5478. width: 200px;
  5479. height: 140px;
  5480. margin: 10px 10px 10px 0;
  5481. border-radius: 15px;
  5482. box-shadow: 0 0 6px 1px #dfdada;
  5483. "
  5484. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5485. :key="wIndex"
  5486. >
  5487. <!-- @click="previewImg(w.works)" -->
  5488. <div class="workImg">
  5489. <img
  5490. :src="w.works"
  5491. @click="previewImg(w.works,w)"
  5492. alt
  5493. />
  5494. <div
  5495. class="answerScore"
  5496. v-if="w.score"
  5497. @click.stop="openScore(w)"
  5498. :class="{
  5499. rightW:
  5500. w.userid == userid || tType == 1 || tType == 4,
  5501. }"
  5502. >
  5503. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5504. </div>
  5505. <div
  5506. class="answerScore"
  5507. @click.stop="openScore(w)"
  5508. v-else-if="courseDetail.userid == userid"
  5509. :class="{
  5510. rightW:
  5511. w.userid == userid || tType == 1 || tType == 4,
  5512. }"
  5513. >
  5514. {{ lang.ssMarkScore }}
  5515. </div>
  5516. <img
  5517. class="deleteImg"
  5518. src="../../assets/deleteworks.png"
  5519. v-if="
  5520. w.userid == userid || tType == 1 || tType == 4
  5521. "
  5522. @click.stop="deleteWorks(w.wid)"
  5523. alt
  5524. />
  5525. </div>
  5526. <div class="comment" style="min-width: 200px">
  5527. <div class="worksName">
  5528. <div>{{ w.sName }}</div>
  5529. </div>
  5530. <div class="commentList">
  5531. <div class="commentList">
  5532. <div
  5533. class="commentImg"
  5534. @click="
  5535. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5536. "
  5537. >
  5538. <img
  5539. :src="w.isLikes == true ? likes : noLikes"
  5540. alt=""
  5541. />
  5542. </div>
  5543. <div>{{ w.likesCount }}</div>
  5544. </div>
  5545. <div class="commentList" style="margin-right: 15px">
  5546. <div
  5547. class="commentImg"
  5548. @click="commentOther(w, toolIndex, wIndex)"
  5549. >
  5550. <img
  5551. src="../../assets/icon/comment/comment.png"
  5552. alt=""
  5553. />
  5554. </div>
  5555. <div>{{ w.commentCount }}</div>
  5556. </div>
  5557. </div>
  5558. </div>
  5559. </div>
  5560. </div>
  5561. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5562. {{ lang.ssNotSubmitted }}
  5563. </div>
  5564. <div
  5565. class="noWorksS"
  5566. v-if="noWorksS && noWorksS[toolIndex].length"
  5567. >
  5568. <div
  5569. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5570. :key="sIndex"
  5571. class="noWorksName"
  5572. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5573. >
  5574. <el-tooltip effect="dark" :content="s.student" placement="top">
  5575. <span>{{ s.student }}</span>
  5576. </el-tooltip>
  5577. </div>
  5578. </div>
  5579. </div>
  5580. <div
  5581. v-if="
  5582. tType &&
  5583. ((tType == 2 && sIsOpen == true) ||
  5584. tType == 1 ||
  5585. tType == 4) &&
  5586. tool.tool.indexOf(6) != -1
  5587. "
  5588. class="worksBox"
  5589. >
  5590. <div
  5591. class="zuoyeYulan"
  5592. v-if="
  5593. (worksStudent.length &&
  5594. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5595. "
  5596. >
  5597. <div class="worksTop">
  5598. <div>{{ lang.ssHomeworkPreview }}</div>
  5599. <div
  5600. class="corOpen"
  5601. @click="contract(toolIndex)"
  5602. v-if="
  5603. (isCloseList[toolIndex].isCloseBoolean) &&
  5604. isCloseList[toolIndex].isClose == 0
  5605. "
  5606. >
  5607. {{ lang.ssFold }}
  5608. </div>
  5609. <div
  5610. class="corOpen"
  5611. @click="contract(toolIndex)"
  5612. v-if="isCloseList[toolIndex].isClose == 1"
  5613. >
  5614. {{ lang.ssExpand }}
  5615. </div>
  5616. </div>
  5617. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5618. </div>
  5619. <div
  5620. class="group_workBox"
  5621. v-for="(g, gindex) in courseGroup.group"
  5622. :key="gindex"
  5623. >
  5624. <div class="group_box">
  5625. <div class="group_title">
  5626. <el-tooltip
  5627. class="item"
  5628. effect="light"
  5629. :content="g.name"
  5630. placement="top"
  5631. >
  5632. <div class="group_name">{{ g.name }}</div>
  5633. </el-tooltip>
  5634. </div>
  5635. <div
  5636. class="group_work"
  5637. v-if="
  5638. g.works &&
  5639. g.works.length &&
  5640. g.works[toolIndex].length
  5641. "
  5642. >
  5643. <div
  5644. class="works"
  5645. style="
  5646. width: 200px;
  5647. height: 140px;
  5648. margin: 10px 10px 10px 0;
  5649. border-radius: 15px;
  5650. box-shadow: 0 0 6px 1px #dfdada;
  5651. "
  5652. v-for="(w, wIndex) in g.works[toolIndex]"
  5653. :key="wIndex"
  5654. :class="w.type == 1 ? 'isTypeOne' : ''"
  5655. >
  5656. <div class="workImg">
  5657. <img
  5658. :src="w.works"
  5659. @click="previewImg(w.works,w)"
  5660. alt
  5661. />
  5662. <div
  5663. class="answerScore"
  5664. v-if="w.score"
  5665. @click.stop="openScore(w)"
  5666. :class="{
  5667. rightW:
  5668. w.userid == userid ||
  5669. tType == 1 ||
  5670. tType == 4,
  5671. }"
  5672. >
  5673. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5674. </div>
  5675. <div
  5676. class="answerScore"
  5677. @click.stop="openScore(w)"
  5678. v-else-if="courseDetail.userid == userid"
  5679. :class="{
  5680. rightW:
  5681. w.userid == userid ||
  5682. tType == 1 ||
  5683. tType == 4,
  5684. }"
  5685. >
  5686. {{ lang.ssMarkScore }}
  5687. </div>
  5688. <img
  5689. class="deleteImg"
  5690. src="../../assets/deleteworks.png"
  5691. v-if="
  5692. w.userid == userid || tType == 1 || tType == 4
  5693. "
  5694. @click.stop="deleteWorks(w.wid)"
  5695. alt
  5696. />
  5697. </div>
  5698. <div class="comment" style="min-width: 200px">
  5699. <div class="worksName">
  5700. <div>{{ w.sName }}</div>
  5701. </div>
  5702. <div class="commentList">
  5703. <div class="commentList">
  5704. <div
  5705. class="commentImg"
  5706. @click="
  5707. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5708. "
  5709. >
  5710. <img
  5711. :src="w.isLikes == true ? likes : noLikes"
  5712. alt=""
  5713. />
  5714. </div>
  5715. <div>{{ w.likesCount }}</div>
  5716. </div>
  5717. <div
  5718. class="commentList"
  5719. style="margin-right: 15px"
  5720. >
  5721. <div
  5722. class="commentImg"
  5723. @click="
  5724. commentOther(
  5725. w,
  5726. toolIndex,
  5727. wIndex,
  5728. null,
  5729. g.id
  5730. )
  5731. "
  5732. >
  5733. <img
  5734. src="../../assets/icon/comment/comment.png"
  5735. alt=""
  5736. />
  5737. </div>
  5738. <div>{{ w.commentCount }}</div>
  5739. </div>
  5740. </div>
  5741. </div>
  5742. </div>
  5743. </div>
  5744. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  5745. </div>
  5746. </div>
  5747. <div
  5748. :id="'tool-' + toolIndex"
  5749. :style="{
  5750. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5751. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5752. }"
  5753. class="worksDetailBox"
  5754. v-if="
  5755. worksStudent.length &&
  5756. worksStudent[toolIndex].length > 0
  5757. "
  5758. >
  5759. <div
  5760. class="works"
  5761. style="
  5762. width: 200px;
  5763. height: 140px;
  5764. margin: 10px 10px 10px 0;
  5765. border-radius: 15px;
  5766. box-shadow: 0 0 6px 1px #dfdada;
  5767. "
  5768. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5769. :key="wIndex"
  5770. >
  5771. <!-- @click="previewImg(w.works)" -->
  5772. <div class="workImg">
  5773. <img
  5774. :src="w.works"
  5775. @click="previewImg(w.works,w)"
  5776. alt
  5777. />
  5778. <div
  5779. class="answerScore"
  5780. v-if="w.score"
  5781. @click.stop="openScore(w)"
  5782. :class="{
  5783. rightW:
  5784. w.userid == userid || tType == 1 || tType == 4,
  5785. }"
  5786. >
  5787. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5788. </div>
  5789. <div
  5790. class="answerScore"
  5791. @click.stop="openScore(w)"
  5792. v-else-if="courseDetail.userid == userid"
  5793. :class="{
  5794. rightW:
  5795. w.userid == userid || tType == 1 || tType == 4,
  5796. }"
  5797. >
  5798. {{ lang.ssMarkScore }}
  5799. </div>
  5800. <img
  5801. class="deleteImg"
  5802. src="../../assets/deleteworks.png"
  5803. v-if="
  5804. w.userid == userid || tType == 1 || tType == 4
  5805. "
  5806. @click.stop="deleteWorks(w.wid)"
  5807. alt
  5808. />
  5809. </div>
  5810. <div class="comment" style="min-width: 200px">
  5811. <div class="worksName">
  5812. <div>{{ w.sName }}</div>
  5813. </div>
  5814. <div class="commentList">
  5815. <div class="commentList">
  5816. <div
  5817. class="commentImg"
  5818. @click="
  5819. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5820. "
  5821. >
  5822. <img
  5823. :src="w.isLikes == true ? likes : noLikes"
  5824. alt=""
  5825. />
  5826. </div>
  5827. <div>{{ w.likesCount }}</div>
  5828. </div>
  5829. <div class="commentList" style="margin-right: 15px">
  5830. <div
  5831. class="commentImg"
  5832. @click="commentOther(w, toolIndex, wIndex)"
  5833. >
  5834. <img
  5835. src="../../assets/icon/comment/comment.png"
  5836. alt=""
  5837. />
  5838. </div>
  5839. <div>{{ w.commentCount }}</div>
  5840. </div>
  5841. </div>
  5842. </div>
  5843. </div>
  5844. </div>
  5845. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5846. {{ lang.ssNotSubmitted }}
  5847. </div>
  5848. <div
  5849. class="noWorksS"
  5850. v-if="noWorksS && noWorksS[toolIndex].length"
  5851. >
  5852. <div
  5853. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5854. :key="sIndex"
  5855. class="noWorksName"
  5856. >
  5857. <el-tooltip effect="dark" :content="s.student" placement="top">
  5858. <span>{{ s.student }}</span>
  5859. </el-tooltip>
  5860. </div>
  5861. </div>
  5862. </div>
  5863. <div
  5864. v-if="
  5865. tType &&
  5866. ((tType == 2 && sIsOpen == true) ||
  5867. tType == 1 ||
  5868. tType == 4) &&
  5869. tool.tool.indexOf(7) != -1
  5870. "
  5871. class="worksBox"
  5872. >
  5873. <div
  5874. class="zuoyeYulan"
  5875. v-if="
  5876. (worksStudent.length &&
  5877. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5878. "
  5879. >
  5880. <div class="worksTop">
  5881. <div>{{ lang.ssHomeworkPreview }}</div>
  5882. <div
  5883. class="corOpen"
  5884. @click="contract(toolIndex)"
  5885. v-if="
  5886. (isCloseList[toolIndex].isCloseBoolean) &&
  5887. isCloseList[toolIndex].isClose == 0
  5888. "
  5889. >
  5890. {{ lang.ssFold }}
  5891. </div>
  5892. <div
  5893. class="corOpen"
  5894. @click="contract(toolIndex)"
  5895. v-if="isCloseList[toolIndex].isClose == 1"
  5896. >
  5897. {{ lang.ssExpand }}
  5898. </div>
  5899. </div>
  5900. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5901. </div>
  5902. <div
  5903. class="group_workBox"
  5904. v-for="(g, gindex) in courseGroup.group"
  5905. :key="gindex"
  5906. >
  5907. <div class="group_box">
  5908. <div class="group_title">
  5909. <el-tooltip
  5910. class="item"
  5911. effect="light"
  5912. :content="g.name"
  5913. placement="top"
  5914. >
  5915. <div class="group_name">{{ g.name }}</div>
  5916. </el-tooltip>
  5917. </div>
  5918. <div
  5919. class="group_work"
  5920. v-if="
  5921. g.works &&
  5922. g.works.length &&
  5923. g.works[toolIndex].length
  5924. "
  5925. >
  5926. <div
  5927. class="works"
  5928. style="
  5929. width: 200px;
  5930. height: 140px;
  5931. margin: 10px 10px 10px 0;
  5932. border-radius: 15px;
  5933. box-shadow: 0 0 6px 1px #dfdada;
  5934. "
  5935. v-for="(w, wIndex) in g.works[toolIndex]"
  5936. :key="wIndex"
  5937. :class="w.type == 1 ? 'isTypeOne' : ''"
  5938. >
  5939. <div class="workImg">
  5940. <img
  5941. :src="w.works"
  5942. @click="previewImg(w.works,w)"
  5943. alt
  5944. />
  5945. <div
  5946. class="answerScore"
  5947. v-if="w.score"
  5948. @click.stop="openScore(w)"
  5949. :class="{
  5950. rightW:
  5951. w.userid == userid ||
  5952. tType == 1 ||
  5953. tType == 4,
  5954. }"
  5955. >
  5956. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5957. </div>
  5958. <div
  5959. class="answerScore"
  5960. @click.stop="openScore(w)"
  5961. v-else-if="courseDetail.userid == userid"
  5962. :class="{
  5963. rightW:
  5964. w.userid == userid ||
  5965. tType == 1 ||
  5966. tType == 4,
  5967. }"
  5968. >
  5969. {{ lang.ssMarkScore }}
  5970. </div>
  5971. <img
  5972. class="deleteImg"
  5973. src="../../assets/deleteworks.png"
  5974. v-if="
  5975. w.userid == userid || tType == 1 || tType == 4
  5976. "
  5977. @click.stop="deleteWorks(w.wid)"
  5978. alt
  5979. />
  5980. </div>
  5981. <div class="comment" style="min-width: 200px">
  5982. <div class="worksName">
  5983. <div>{{ w.sName }}</div>
  5984. </div>
  5985. <div class="commentList">
  5986. <div class="commentList">
  5987. <div
  5988. class="commentImg"
  5989. @click="
  5990. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5991. "
  5992. >
  5993. <img
  5994. :src="w.isLikes == true ? likes : noLikes"
  5995. alt=""
  5996. />
  5997. </div>
  5998. <div>{{ w.likesCount }}</div>
  5999. </div>
  6000. <div
  6001. class="commentList"
  6002. style="margin-right: 15px"
  6003. >
  6004. <div
  6005. class="commentImg"
  6006. @click="
  6007. commentOther(
  6008. w,
  6009. toolIndex,
  6010. wIndex,
  6011. null,
  6012. g.id
  6013. )
  6014. "
  6015. >
  6016. <img
  6017. src="../../assets/icon/comment/comment.png"
  6018. alt=""
  6019. />
  6020. </div>
  6021. <div>{{ w.commentCount }}</div>
  6022. </div>
  6023. </div>
  6024. </div>
  6025. </div>
  6026. </div>
  6027. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  6028. </div>
  6029. </div>
  6030. <div
  6031. :id="'tool-' + toolIndex"
  6032. :style="{
  6033. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6034. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6035. }"
  6036. class="worksDetailBox"
  6037. v-if="
  6038. worksStudent.length &&
  6039. worksStudent[toolIndex].length > 0
  6040. "
  6041. >
  6042. <div
  6043. class="works"
  6044. style="
  6045. width: 200px;
  6046. height: 140px;
  6047. margin: 10px 10px 10px 0;
  6048. border-radius: 15px;
  6049. box-shadow: 0 0 6px 1px #dfdada;
  6050. "
  6051. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6052. :key="wIndex"
  6053. >
  6054. <!-- @click="previewImg(w.works)" -->
  6055. <div class="workImg">
  6056. <img
  6057. :src="w.works"
  6058. @click="previewImg(w.works,w)"
  6059. alt
  6060. />
  6061. <div
  6062. class="answerScore"
  6063. v-if="w.score"
  6064. @click.stop="openScore(w)"
  6065. :class="{
  6066. rightW:
  6067. w.userid == userid || tType == 1 || tType == 4,
  6068. }"
  6069. >
  6070. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  6071. </div>
  6072. <div
  6073. class="answerScore"
  6074. @click.stop="openScore(w)"
  6075. v-else-if="courseDetail.userid == userid"
  6076. :class="{
  6077. rightW:
  6078. w.userid == userid || tType == 1 || tType == 4,
  6079. }"
  6080. >
  6081. {{ lang.ssMarkScore }}
  6082. </div>
  6083. <img
  6084. class="deleteImg"
  6085. src="../../assets/deleteworks.png"
  6086. v-if="
  6087. w.userid == userid || tType == 1 || tType == 4
  6088. "
  6089. @click.stop="deleteWorks(w.wid)"
  6090. alt
  6091. />
  6092. </div>
  6093. <div class="comment" style="min-width: 200px">
  6094. <div class="worksName">
  6095. <div>{{ w.sName }}</div>
  6096. </div>
  6097. <div class="commentList">
  6098. <div class="commentList">
  6099. <div
  6100. class="commentImg"
  6101. @click="
  6102. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6103. "
  6104. >
  6105. <img
  6106. :src="w.isLikes == true ? likes : noLikes"
  6107. alt=""
  6108. />
  6109. </div>
  6110. <div>{{ w.likesCount }}</div>
  6111. </div>
  6112. <div class="commentList" style="margin-right: 15px">
  6113. <div
  6114. class="commentImg"
  6115. @click="commentOther(w, toolIndex, wIndex)"
  6116. >
  6117. <img
  6118. src="../../assets/icon/comment/comment.png"
  6119. alt=""
  6120. />
  6121. </div>
  6122. <div>{{ w.commentCount }}</div>
  6123. </div>
  6124. </div>
  6125. </div>
  6126. </div>
  6127. </div>
  6128. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6129. {{ lang.ssNotSubmitted }}
  6130. </div>
  6131. <div
  6132. class="noWorksS"
  6133. v-if="noWorksS && noWorksS[toolIndex].length"
  6134. >
  6135. <div
  6136. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6137. :key="sIndex"
  6138. class="noWorksName"
  6139. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6140. >
  6141. <el-tooltip effect="dark" :content="s.student" placement="top">
  6142. <span>{{ s.student }}</span>
  6143. </el-tooltip>
  6144. </div>
  6145. </div>
  6146. </div>
  6147. <div
  6148. v-if="
  6149. tType &&
  6150. ((tType == 2 && sIsOpen == true) ||
  6151. tType == 1 ||
  6152. tType == 4) &&
  6153. tool.tool.indexOf(26) != -1
  6154. "
  6155. class="worksBox"
  6156. >
  6157. <div
  6158. class="zuoyeYulan"
  6159. v-if="
  6160. worksStudent.length &&
  6161. worksStudent[toolIndex].length > 0
  6162. "
  6163. >
  6164. <div class="worksTop">
  6165. <div>{{ lang.ssHomeworkPreview }}</div>
  6166. <div
  6167. class="corOpen"
  6168. @click="contract(toolIndex)"
  6169. v-if="
  6170. (isCloseList[toolIndex].isCloseBoolean) &&
  6171. isCloseList[toolIndex].isClose == 0
  6172. "
  6173. >
  6174. {{ lang.ssFold }}
  6175. </div>
  6176. <div
  6177. class="corOpen"
  6178. @click="contract(toolIndex)"
  6179. v-if="isCloseList[toolIndex].isClose == 1"
  6180. >
  6181. {{ lang.ssExpand }}
  6182. </div>
  6183. </div>
  6184. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6185. </div>
  6186. <div
  6187. :id="'tool-' + toolIndex"
  6188. :style="{
  6189. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6190. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6191. }"
  6192. class="worksDetailBox"
  6193. v-if="
  6194. worksStudent.length &&
  6195. worksStudent[toolIndex].length > 0
  6196. "
  6197. >
  6198. <div
  6199. class="works"
  6200. style="width: 240px; height: 140px; overflow: hidden"
  6201. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6202. :key="wIndex"
  6203. :class="w.type == 1 ? 'isTypeOne' : ''"
  6204. >
  6205. <div class="workImg" v-if="w.type == 0">
  6206. <img
  6207. :src="w.works"
  6208. @click="previewImg(w.works,w)"
  6209. alt
  6210. />
  6211. <img
  6212. class="deleteImg"
  6213. src="../../assets/deleteworks.png"
  6214. v-if="
  6215. w.userid == userid || tType == 1 || tType == 4
  6216. "
  6217. @click.stop="deleteWorks(w.wid)"
  6218. alt
  6219. />
  6220. </div>
  6221. <div class="workImg" v-if="w.type == 1">
  6222. <img :src="word" @click="openFile(w.works)" alt />
  6223. <img
  6224. class="deleteImg"
  6225. src="../../assets/deleteworks.png"
  6226. v-if="
  6227. w.userid == userid || tType == 1 || tType == 4
  6228. "
  6229. @click.stop="deleteWorks(w.wid)"
  6230. alt
  6231. />
  6232. </div>
  6233. <div class="worksName">
  6234. <div>{{ w.sName }}</div>
  6235. </div>
  6236. </div>
  6237. </div>
  6238. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6239. {{ lang.ssNotSubmitted }}
  6240. </div>
  6241. <div
  6242. class="noWorksS"
  6243. v-if="noWorksS && noWorksS[toolIndex].length"
  6244. >
  6245. <div
  6246. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6247. :key="sIndex"
  6248. class="noWorksName"
  6249. >
  6250. <el-tooltip effect="dark" :content="s.student" placement="top">
  6251. <span>{{ s.student }}</span>
  6252. </el-tooltip>
  6253. </div>
  6254. </div>
  6255. </div>
  6256. <div
  6257. v-if="
  6258. tType &&
  6259. ((tType == 2 && sIsOpen == true) ||
  6260. tType == 1 ||
  6261. tType == 4) &&
  6262. tool.tool.indexOf(40) != -1
  6263. "
  6264. class="worksBox"
  6265. >
  6266. <div
  6267. class="zuoyeYulan"
  6268. v-if="
  6269. worksStudent.length &&
  6270. worksStudent[toolIndex].length > 0
  6271. "
  6272. >
  6273. <div class="worksTop">
  6274. <div>{{ lang.ssHomeworkPreview }}</div>
  6275. <div
  6276. class="corOpen"
  6277. @click="contract(toolIndex)"
  6278. v-if="
  6279. (isCloseList[toolIndex].isCloseBoolean) &&
  6280. isCloseList[toolIndex].isClose == 0
  6281. "
  6282. >
  6283. {{ lang.ssFold }}
  6284. </div>
  6285. <div
  6286. class="corOpen"
  6287. @click="contract(toolIndex)"
  6288. v-if="isCloseList[toolIndex].isClose == 1"
  6289. >
  6290. {{ lang.ssExpand }}
  6291. </div>
  6292. </div>
  6293. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6294. </div>
  6295. <div
  6296. :id="'tool-' + toolIndex"
  6297. :style="{
  6298. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6299. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6300. }"
  6301. class="worksDetailBox"
  6302. v-if="
  6303. worksStudent.length &&
  6304. worksStudent[toolIndex].length > 0
  6305. "
  6306. >
  6307. <div
  6308. class="works"
  6309. style="
  6310. width: 200px;
  6311. height: 140px;
  6312. margin: 10px 10px 10px 0;
  6313. border-radius: 15px;
  6314. box-shadow: 0 0 6px 1px #dfdada;
  6315. "
  6316. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6317. :key="wIndex"
  6318. :class="w.type == 1 ? 'isTypeOne' : ''"
  6319. >
  6320. <div class="workImg">
  6321. <img
  6322. src="../../assets/icon/works/noImg.png"
  6323. @click="openPj(w.works, toolIndex)"
  6324. alt
  6325. />
  6326. <img
  6327. class="deleteImg"
  6328. src="../../assets/deleteworks.png"
  6329. v-if="
  6330. w.userid == userid || tType == 1 || tType == 4
  6331. "
  6332. @click.stop="deleteWorks(w.wid)"
  6333. alt
  6334. />
  6335. </div>
  6336. <div class="comment" style="min-width: 200px">
  6337. <div class="worksName">
  6338. <div>{{ w.sName }}</div>
  6339. </div>
  6340. <div class="commentList">
  6341. <div class="commentList">
  6342. <div
  6343. class="commentImg"
  6344. @click="
  6345. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6346. "
  6347. >
  6348. <img
  6349. :src="w.isLikes == true ? likes : noLikes"
  6350. alt=""
  6351. />
  6352. </div>
  6353. <div>{{ w.likesCount }}</div>
  6354. </div>
  6355. <div class="commentList" style="margin-right: 15px">
  6356. <div
  6357. class="commentImg"
  6358. @click="commentOther(w, toolIndex, wIndex)"
  6359. >
  6360. <img
  6361. src="../../assets/icon/comment/comment.png"
  6362. alt=""
  6363. />
  6364. </div>
  6365. <div>{{ w.commentCount }}</div>
  6366. </div>
  6367. </div>
  6368. </div>
  6369. </div>
  6370. </div>
  6371. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6372. {{ lang.ssNotSubmitted }}
  6373. </div>
  6374. <div
  6375. class="noWorksS"
  6376. v-if="noWorksS && noWorksS[toolIndex].length"
  6377. >
  6378. <div
  6379. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6380. :key="sIndex"
  6381. class="noWorksName"
  6382. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6383. >
  6384. <el-tooltip effect="dark" :content="s.student" placement="top">
  6385. <span>{{ s.student }}</span>
  6386. </el-tooltip>
  6387. </div>
  6388. </div>
  6389. </div>
  6390. <div
  6391. v-if="
  6392. tType &&
  6393. tType == 2 &&
  6394. !sIsOpen &&
  6395. tool.tool.indexOf(40) != -1
  6396. "
  6397. class="worksBox"
  6398. >
  6399. <div
  6400. class="zuoyeYulan"
  6401. v-if="workStudent[toolIndex].length > 0"
  6402. >
  6403. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6404. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6405. </div>
  6406. <div
  6407. class="worksDetailBox"
  6408. v-if="workStudent[toolIndex].length > 0"
  6409. >
  6410. <div
  6411. class="works"
  6412. style="
  6413. width: 200px;
  6414. height: 140px;
  6415. margin: 10px 10px 10px 0;
  6416. "
  6417. v-for="(w, wIndex) in workStudent[toolIndex]"
  6418. :key="wIndex"
  6419. >
  6420. <div class="workImg">
  6421. <img
  6422. src="../../assets/icon/works/noImg.png"
  6423. @click="openPj(w.works, toolIndex)"
  6424. alt
  6425. />
  6426. <img
  6427. class="deleteImg"
  6428. src="../../assets/deleteworks.png"
  6429. v-if="
  6430. w.userid == userid || tType == 1 || tType == 4
  6431. "
  6432. @click.stop="deleteWorks(w.wid)"
  6433. alt
  6434. />
  6435. </div>
  6436. <div class="worksName">
  6437. <div>{{ w.sName }}</div>
  6438. </div>
  6439. </div>
  6440. </div>
  6441. </div>
  6442. <div
  6443. v-if="
  6444. tType &&
  6445. ((tType == 2 && sIsOpen == true) ||
  6446. tType == 1 ||
  6447. tType == 4) &&
  6448. tool.tool.indexOf(41) != -1
  6449. "
  6450. >
  6451. <AnswerData2
  6452. v-if="
  6453. worksStudent.length &&
  6454. worksStudent[toolIndex].length > 0
  6455. "
  6456. :problemJson="tool.selectJson.answer"
  6457. :people="worksStudent[toolIndex]"
  6458. ></AnswerData2>
  6459. </div>
  6460. <div
  6461. v-if="
  6462. tType &&
  6463. ((tType == 2 && sIsOpen == true) ||
  6464. tType == 1 ||
  6465. tType == 4) &&
  6466. tool.tool.indexOf(41) != -1
  6467. "
  6468. class="worksBox"
  6469. >
  6470. <div
  6471. class="zuoyeYulan"
  6472. v-if="
  6473. worksStudent.length &&
  6474. worksStudent[toolIndex].length > 0
  6475. "
  6476. >
  6477. <div class="worksTop">
  6478. <div>{{ lang.ssHomeworkPreview }}</div>
  6479. <div
  6480. class="corOpen"
  6481. @click="contract(toolIndex)"
  6482. v-if="
  6483. (isCloseList[toolIndex].isCloseBoolean) &&
  6484. isCloseList[toolIndex].isClose == 0
  6485. "
  6486. >
  6487. {{ lang.ssFold }}
  6488. </div>
  6489. <div
  6490. class="corOpen"
  6491. @click="contract(toolIndex)"
  6492. v-if="isCloseList[toolIndex].isClose == 1"
  6493. >
  6494. {{ lang.ssExpand }}
  6495. </div>
  6496. </div>
  6497. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6498. </div>
  6499. <div
  6500. :id="'tool-' + toolIndex"
  6501. :style="{
  6502. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6503. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6504. }"
  6505. class="worksDetailBox"
  6506. v-if="
  6507. worksStudent.length &&
  6508. worksStudent[toolIndex].length > 0
  6509. "
  6510. >
  6511. <div
  6512. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6513. :key="wIndex"
  6514. class="isWorksName2"
  6515. @click="openXz(w, toolIndex)"
  6516. >
  6517. {{ w.sName }}
  6518. <img
  6519. class="deleteImg deleteImg2"
  6520. src="../../assets/deleteworks.png"
  6521. v-if="w.userid == userid || tType == 1 || tType == 4"
  6522. @click.stop="deleteWorks(w.wid)"
  6523. alt
  6524. />
  6525. </div>
  6526. <!-- <div
  6527. class="works"
  6528. style="
  6529. width: 200px;
  6530. height: 140px;
  6531. margin: 10px 10px 10px 0;
  6532. border-radius: 15px;
  6533. box-shadow: 0 0 6px 1px #dfdada;
  6534. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6535. :class="w.type == 5 ? 'isTypeOne' : ''">
  6536. <div class="workImg">
  6537. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6538. </div>
  6539. <div class="worksName">
  6540. <div>{{ w.sName }}</div>
  6541. </div>
  6542. </div> -->
  6543. </div>
  6544. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6545. {{ lang.ssNotSubmitted }}
  6546. </div>
  6547. <div
  6548. class="noWorksS"
  6549. v-if="noWorksS && noWorksS[toolIndex].length"
  6550. >
  6551. <div
  6552. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6553. :key="sIndex"
  6554. class="noWorksName"
  6555. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6556. >
  6557. <el-tooltip effect="dark" :content="s.student" placement="top">
  6558. <span>{{ s.student }}</span>
  6559. </el-tooltip>
  6560. </div>
  6561. </div>
  6562. </div>
  6563. <div
  6564. v-if="
  6565. tType &&
  6566. tType == 2 &&
  6567. !sIsOpen &&
  6568. tool.tool.indexOf(41) != -1
  6569. "
  6570. class="worksBox"
  6571. >
  6572. <div
  6573. class="zuoyeYulan"
  6574. v-if="workStudent[toolIndex].length > 0"
  6575. >
  6576. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6577. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6578. </div>
  6579. <div
  6580. class="worksDetailBox"
  6581. v-if="workStudent[toolIndex].length > 0"
  6582. >
  6583. <div
  6584. class="works"
  6585. style="
  6586. width: 200px;
  6587. height: 140px;
  6588. margin: 10px 10px 10px 0;
  6589. "
  6590. v-for="(w, wIndex) in workStudent[toolIndex]"
  6591. :key="wIndex"
  6592. >
  6593. <div class="workImg">
  6594. <img
  6595. src="../../assets/icon/works/noImg.png"
  6596. @click="openXz(w, toolIndex)"
  6597. alt
  6598. />
  6599. <img
  6600. class="deleteImg"
  6601. src="../../assets/deleteworks.png"
  6602. v-if="
  6603. w.userid == userid || tType == 1 || tType == 4
  6604. "
  6605. @click.stop="deleteWorks(w.wid)"
  6606. alt
  6607. />
  6608. </div>
  6609. <div class="worksName">
  6610. <div>{{ w.sName }}</div>
  6611. </div>
  6612. </div>
  6613. </div>
  6614. </div>
  6615. <div v-if="false" class="xuan_right_box">
  6616. <div
  6617. class="tool_right_box"
  6618. v-for="(item, index) in tool.sentenceList"
  6619. :key="index"
  6620. >
  6621. <div>
  6622. <span
  6623. style="word-break: break-all; white-space: normal"
  6624. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6625. >
  6626. </div>
  6627. <div class="right_box_xuan">
  6628. <span>{{ lang.ssCorrectRate }}</span>
  6629. <span>{{
  6630. (checkJson[toolIndex][index].right
  6631. ? checkJson[toolIndex][index].right
  6632. : 0) + "%"
  6633. }}</span>
  6634. </div>
  6635. <div class="right_box_xuan">
  6636. <span>{{ lang.ssRightPerson }}</span>
  6637. <span>{{
  6638. checkJson[toolIndex][index].rightPerson.length
  6639. }}</span>
  6640. </div>
  6641. </div>
  6642. </div>
  6643. <div
  6644. v-if="
  6645. tType &&
  6646. ((tType == 2 && sIsOpen == true) ||
  6647. tType == 1 ||
  6648. tType == 4) &&
  6649. tool.tool.indexOf(47) != -1
  6650. "
  6651. >
  6652. <!-- <AnswerData
  6653. v-if="
  6654. checkJson[toolIndex].length &&
  6655. (tool.sentenceList || tool.sentenceList.length > 0)
  6656. "
  6657. :people="checkJson[toolIndex]"
  6658. ></AnswerData> -->
  6659. <sortToolWorkShow v-if="
  6660. worksStudent[toolIndex].length
  6661. "
  6662. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  6663. </div>
  6664. <div
  6665. v-if="
  6666. tType &&
  6667. tType == 2 &&
  6668. !sIsOpen &&
  6669. tool.tool.indexOf(47) != -1
  6670. "
  6671. class="worksBox"
  6672. >
  6673. <div
  6674. class="zuoyeYulan"
  6675. v-if="workStudent[toolIndex].length > 0"
  6676. >
  6677. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6678. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6679. </div>
  6680. <div
  6681. class="worksDetailBox"
  6682. v-if="workStudent[toolIndex].length > 0"
  6683. >
  6684. <div
  6685. class="works"
  6686. style="
  6687. width: 200px;
  6688. height: 140px;
  6689. margin: 10px 10px 10px 0;
  6690. "
  6691. v-for="(w, wIndex) in workStudent[toolIndex]"
  6692. :key="wIndex"
  6693. >
  6694. <!-- @click="openXz(w, toolIndex)" -->
  6695. <div class="workImg" @click="openSen(w, toolIndex)">
  6696. <img src="../../assets/icon/works/noImg.png" alt />
  6697. <img
  6698. class="deleteImg"
  6699. src="../../assets/deleteworks.png"
  6700. v-if="
  6701. w.userid == userid || tType == 1 || tType == 4
  6702. "
  6703. @click.stop="deleteWorks(w.wid)"
  6704. alt
  6705. />
  6706. </div>
  6707. <div class="worksName">
  6708. <div>
  6709. {{ w.sName }}
  6710. </div>
  6711. </div>
  6712. </div>
  6713. </div>
  6714. </div>
  6715. <div
  6716. v-if="
  6717. tType &&
  6718. ((tType == 2 && sIsOpen == true) ||
  6719. tType == 1 ||
  6720. tType == 4) &&
  6721. tool.tool.indexOf(47) != -1
  6722. "
  6723. class="worksBox"
  6724. >
  6725. <div
  6726. class="zuoyeYulan"
  6727. v-if="
  6728. worksStudent.length &&
  6729. worksStudent[toolIndex].length > 0
  6730. "
  6731. >
  6732. <div class="worksTop">
  6733. <div>{{ lang.ssHomeworkPreview }}</div>
  6734. <div
  6735. class="corOpen"
  6736. @click="contract(toolIndex)"
  6737. v-if="
  6738. (isCloseList[toolIndex].isCloseBoolean) &&
  6739. isCloseList[toolIndex].isClose == 0
  6740. "
  6741. >
  6742. {{ lang.ssFold }}
  6743. </div>
  6744. <div
  6745. class="corOpen"
  6746. @click="contract(toolIndex)"
  6747. v-if="isCloseList[toolIndex].isClose == 1"
  6748. >
  6749. {{ lang.ssExpand }}
  6750. </div>
  6751. </div>
  6752. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6753. </div>
  6754. <div
  6755. :id="'tool-' + toolIndex"
  6756. :style="{
  6757. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6758. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6759. }"
  6760. class="worksDetailBox"
  6761. v-if="
  6762. worksStudent.length &&
  6763. worksStudent[toolIndex].length > 0
  6764. "
  6765. >
  6766. <!-- @click="openXz(w, toolIndex)" -->
  6767. <div
  6768. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6769. :key="wIndex"
  6770. class="isWorksName2"
  6771. @click="openSen(w, toolIndex)"
  6772. >
  6773. {{ w.sName }}
  6774. <img
  6775. class="deleteImg deleteImg2"
  6776. src="../../assets/deleteworks.png"
  6777. v-if="w.userid == userid || tType == 1 || tType == 4"
  6778. @click.stop="deleteWorks(w.wid)"
  6779. alt
  6780. />
  6781. </div>
  6782. </div>
  6783. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6784. {{ lang.ssNotSubmitted }}
  6785. </div>
  6786. <div
  6787. class="noWorksS"
  6788. v-if="noWorksS && noWorksS[toolIndex].length"
  6789. >
  6790. <div
  6791. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6792. :key="sIndex"
  6793. class="noWorksName"
  6794. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6795. >
  6796. <el-tooltip effect="dark" :content="s.student" placement="top">
  6797. <span>{{ s.student }}</span>
  6798. </el-tooltip>
  6799. </div>
  6800. </div>
  6801. </div>
  6802. <div
  6803. v-if="
  6804. tType &&
  6805. ((tType == 2 && sIsOpen == true) ||
  6806. tType == 1 ||
  6807. tType == 4) &&
  6808. tool.tool.indexOf(48) != -1
  6809. "
  6810. class="worksBox"
  6811. >
  6812. <div
  6813. class="zuoyeYulan"
  6814. v-if="
  6815. worksStudent.length &&
  6816. worksStudent[toolIndex].length > 0
  6817. "
  6818. >
  6819. <div class="worksTop">
  6820. <div>{{ lang.ssHomeworkPreview }}</div>
  6821. <div
  6822. class="corOpen"
  6823. @click="contract(toolIndex)"
  6824. v-if="
  6825. (isCloseList[toolIndex].isCloseBoolean) &&
  6826. isCloseList[toolIndex].isClose == 0
  6827. "
  6828. >
  6829. {{ lang.ssFold }}
  6830. </div>
  6831. <div
  6832. class="corOpen"
  6833. @click="contract(toolIndex)"
  6834. v-if="isCloseList[toolIndex].isClose == 1"
  6835. >
  6836. {{ lang.ssExpand }}
  6837. </div>
  6838. </div>
  6839. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6840. </div>
  6841. <div
  6842. :id="'tool-' + toolIndex"
  6843. :style="{
  6844. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6845. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6846. }"
  6847. class="worksDetailBox"
  6848. v-if="
  6849. worksStudent.length &&
  6850. worksStudent[toolIndex].length > 0
  6851. "
  6852. >
  6853. <div
  6854. class="works"
  6855. style="
  6856. width: 200px;
  6857. height: 140px;
  6858. margin: 10px 10px 10px 0;
  6859. border-radius: 15px;
  6860. box-shadow: 0 0 6px 1px #dfdada;
  6861. "
  6862. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6863. :key="wIndex"
  6864. :class="w.type == 1 ? 'isTypeOne' : ''"
  6865. >
  6866. <div class="workImg">
  6867. <img :src="word" @click="openTable(w)" alt />
  6868. <!-- @click="openFile(w.works)" -->
  6869. <div
  6870. class="answerScore"
  6871. v-if="w.score"
  6872. @click.stop="openScore(w)"
  6873. :class="{
  6874. rightW:
  6875. w.userid == userid ||
  6876. tType == 1 ||
  6877. tType == 4 ||
  6878. w.ateacher == userid,
  6879. }"
  6880. >
  6881. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  6882. </div>
  6883. <div
  6884. class="answerScore"
  6885. @click.stop="openScore(w)"
  6886. v-else-if="courseDetail.userid == userid"
  6887. :class="{
  6888. rightW:
  6889. w.userid == userid ||
  6890. tType == 1 ||
  6891. tType == 4 ||
  6892. w.ateacher == userid,
  6893. }"
  6894. >
  6895. {{ lang.ssMarkScore }}
  6896. </div>
  6897. <img
  6898. class="deleteImg"
  6899. src="../../assets/deleteworks.png"
  6900. v-if="
  6901. w.userid == userid || tType == 1 || tType == 4
  6902. "
  6903. @click.stop="deleteWorks(w.wid)"
  6904. alt
  6905. />
  6906. </div>
  6907. <div class="comment" style="min-width: 200px">
  6908. <div class="worksName">
  6909. <div>{{ w.sName }}</div>
  6910. </div>
  6911. <div class="commentList">
  6912. <div class="commentList">
  6913. <div
  6914. class="commentImg"
  6915. @click="
  6916. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6917. "
  6918. >
  6919. <img
  6920. :src="w.isLikes == true ? likes : noLikes"
  6921. alt=""
  6922. />
  6923. </div>
  6924. <div>{{ w.likesCount }}</div>
  6925. </div>
  6926. <div class="commentList" style="margin-right: 15px">
  6927. <div
  6928. class="commentImg"
  6929. @click="commentOther(w, toolIndex, wIndex)"
  6930. >
  6931. <img
  6932. src="../../assets/icon/comment/comment.png"
  6933. alt=""
  6934. />
  6935. </div>
  6936. <div>{{ w.commentCount }}</div>
  6937. </div>
  6938. </div>
  6939. </div>
  6940. </div>
  6941. </div>
  6942. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6943. {{ lang.ssNotSubmitted }}
  6944. </div>
  6945. <div
  6946. class="noWorksS"
  6947. v-if="noWorksS && noWorksS[toolIndex].length"
  6948. >
  6949. <div
  6950. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6951. :key="sIndex"
  6952. class="noWorksName"
  6953. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6954. >
  6955. <el-tooltip effect="dark" :content="s.student" placement="top">
  6956. <span>{{ s.student }}</span>
  6957. </el-tooltip>
  6958. </div>
  6959. </div>
  6960. </div>
  6961. <div
  6962. v-if="
  6963. tType &&
  6964. tType == 2 &&
  6965. !sIsOpen &&
  6966. tool.tool.indexOf(48) != -1
  6967. "
  6968. class="worksBox"
  6969. >
  6970. <div
  6971. class="zuoyeYulan"
  6972. v-if="workStudent[toolIndex].length > 0"
  6973. >
  6974. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6975. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6976. </div>
  6977. <div
  6978. class="worksDetailBox"
  6979. v-if="workStudent[toolIndex].length > 0"
  6980. >
  6981. <div
  6982. class="works"
  6983. style="
  6984. width: 200px;
  6985. height: 140px;
  6986. margin: 10px 10px 10px 0;
  6987. box-shadow: 0 0 6px 1px #dfdada;
  6988. "
  6989. v-for="(w, wIndex) in workStudent[toolIndex]"
  6990. :key="wIndex"
  6991. >
  6992. <div class="workImg">
  6993. <img :src="word" @click="openTable(w)" alt />
  6994. <div
  6995. class="answerScore"
  6996. v-if="w.score"
  6997. @click.stop="openScore(w)"
  6998. :class="{
  6999. rightW:
  7000. w.userid == userid || tType == 1 || tType == 4,
  7001. }"
  7002. >
  7003. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7004. </div>
  7005. <div
  7006. class="answerScore"
  7007. @click.stop="openScore(w)"
  7008. v-else-if="courseDetail.userid == userid"
  7009. :class="{
  7010. rightW:
  7011. w.userid == userid || tType == 1 || tType == 4,
  7012. }"
  7013. >
  7014. {{ lang.ssMarkScore }}
  7015. </div>
  7016. <img
  7017. class="deleteImg"
  7018. src="../../assets/deleteworks.png"
  7019. v-if="
  7020. w.userid == userid || tType == 1 || tType == 4
  7021. "
  7022. @click.stop="deleteWorks(w.wid)"
  7023. alt
  7024. />
  7025. </div>
  7026. <div class="worksName">
  7027. <div>{{ w.sName }}</div>
  7028. </div>
  7029. </div>
  7030. </div>
  7031. </div>
  7032. <div
  7033. v-if="
  7034. tType &&
  7035. ((tType == 2 && sIsOpen == true) ||
  7036. tType == 1 ||
  7037. tType == 4) &&
  7038. tool.tool.indexOf(52) != -1
  7039. "
  7040. class="worksBox"
  7041. >
  7042. <div
  7043. class="zuoyeYulan"
  7044. v-if="
  7045. worksStudent.length &&
  7046. worksStudent[toolIndex].length > 0
  7047. "
  7048. >
  7049. <div class="worksTop">
  7050. <div>{{ lang.ssHomeworkPreview }}</div>
  7051. <div
  7052. class="corOpen"
  7053. @click="contract(toolIndex)"
  7054. v-if="
  7055. (isCloseList[toolIndex].isCloseBoolean) &&
  7056. isCloseList[toolIndex].isClose == 0
  7057. "
  7058. >
  7059. {{ lang.ssFold }}
  7060. </div>
  7061. <div
  7062. class="corOpen"
  7063. @click="contract(toolIndex)"
  7064. v-if="isCloseList[toolIndex].isClose == 1"
  7065. >
  7066. {{ lang.ssExpand }}
  7067. </div>
  7068. </div>
  7069. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7070. </div>
  7071. <div
  7072. :id="'tool-' + toolIndex"
  7073. :style="{
  7074. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7075. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7076. }"
  7077. class="worksDetailBox"
  7078. v-if="
  7079. worksStudent.length &&
  7080. worksStudent[toolIndex].length > 0
  7081. "
  7082. >
  7083. <div
  7084. class="works"
  7085. style="
  7086. width: 200px;
  7087. height: 140px;
  7088. margin: 10px 10px 10px 0;
  7089. border-radius: 15px;
  7090. box-shadow: 0 0 6px 1px #dfdada;
  7091. "
  7092. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7093. :key="wIndex"
  7094. :class="w.type == 1 ? 'isTypeOne' : ''"
  7095. >
  7096. <div class="workImg">
  7097. <img :src="word" @click="openWord(w)" alt />
  7098. <!-- @click="openFile(w.works)" -->
  7099. <div
  7100. class="answerScore"
  7101. v-if="w.score"
  7102. @click.stop="openScore(w)"
  7103. :class="{
  7104. rightW:
  7105. w.userid == userid ||
  7106. tType == 1 ||
  7107. tType == 4 ||
  7108. w.ateacher == userid,
  7109. }"
  7110. >
  7111. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7112. </div>
  7113. <div
  7114. class="answerScore"
  7115. @click.stop="openScore(w)"
  7116. v-else-if="courseDetail.userid == userid"
  7117. :class="{
  7118. rightW:
  7119. w.userid == userid ||
  7120. tType == 1 ||
  7121. tType == 4 ||
  7122. w.ateacher == userid,
  7123. }"
  7124. >
  7125. {{ lang.ssMarkScore }}
  7126. </div>
  7127. <img
  7128. class="deleteImg"
  7129. src="../../assets/deleteworks.png"
  7130. v-if="
  7131. w.userid == userid || tType == 1 || tType == 4
  7132. "
  7133. @click.stop="deleteWorks(w.wid)"
  7134. alt
  7135. />
  7136. </div>
  7137. <div class="comment" style="min-width: 200px">
  7138. <div class="worksName">
  7139. <div>{{ w.sName }}</div>
  7140. </div>
  7141. <div class="commentList">
  7142. <div class="commentList">
  7143. <div
  7144. class="commentImg"
  7145. @click="
  7146. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7147. "
  7148. >
  7149. <img
  7150. :src="w.isLikes == true ? likes : noLikes"
  7151. alt=""
  7152. />
  7153. </div>
  7154. <div>{{ w.likesCount }}</div>
  7155. </div>
  7156. <div class="commentList" style="margin-right: 15px">
  7157. <div
  7158. class="commentImg"
  7159. @click="commentOther(w, toolIndex, wIndex)"
  7160. >
  7161. <img
  7162. src="../../assets/icon/comment/comment.png"
  7163. alt=""
  7164. />
  7165. </div>
  7166. <div>{{ w.commentCount }}</div>
  7167. </div>
  7168. </div>
  7169. </div>
  7170. </div>
  7171. </div>
  7172. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7173. {{ lang.ssNotSubmitted }}
  7174. </div>
  7175. <div
  7176. class="noWorksS"
  7177. v-if="noWorksS && noWorksS[toolIndex].length"
  7178. >
  7179. <div
  7180. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7181. :key="sIndex"
  7182. class="noWorksName"
  7183. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7184. >
  7185. <el-tooltip effect="dark" :content="s.student" placement="top">
  7186. <span>{{ s.student }}</span>
  7187. </el-tooltip>
  7188. </div>
  7189. </div>
  7190. </div>
  7191. <div
  7192. v-if="
  7193. tType &&
  7194. tType == 2 &&
  7195. !sIsOpen &&
  7196. tool.tool.indexOf(52) != -1
  7197. "
  7198. class="worksBox"
  7199. >
  7200. <div
  7201. class="zuoyeYulan"
  7202. v-if="workStudent[toolIndex].length > 0"
  7203. >
  7204. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  7205. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7206. </div>
  7207. <div
  7208. class="worksDetailBox"
  7209. v-if="workStudent[toolIndex].length > 0"
  7210. >
  7211. <div
  7212. class="works"
  7213. style="
  7214. width: 200px;
  7215. height: 140px;
  7216. margin: 10px 10px 10px 0;
  7217. box-shadow: 0 0 6px 1px #dfdada;
  7218. "
  7219. v-for="(w, wIndex) in workStudent[toolIndex]"
  7220. :key="wIndex"
  7221. >
  7222. <div class="workImg">
  7223. <img :src="word" @click="openWord(w)" alt />
  7224. <div
  7225. class="answerScore"
  7226. v-if="w.score"
  7227. @click.stop="openScore(w)"
  7228. :class="{
  7229. rightW:
  7230. w.userid == userid || tType == 1 || tType == 4,
  7231. }"
  7232. >
  7233. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7234. </div>
  7235. <div
  7236. class="answerScore"
  7237. @click.stop="openScore(w)"
  7238. v-else-if="courseDetail.userid == userid"
  7239. :class="{
  7240. rightW:
  7241. w.userid == userid || tType == 1 || tType == 4,
  7242. }"
  7243. >
  7244. {{ lang.ssMarkScore }}
  7245. </div>
  7246. <img
  7247. class="deleteImg"
  7248. src="../../assets/deleteworks.png"
  7249. v-if="
  7250. w.userid == userid || tType == 1 || tType == 4
  7251. "
  7252. @click.stop="deleteWorks(w.wid)"
  7253. alt
  7254. />
  7255. </div>
  7256. <div class="worksName">
  7257. <div>{{ w.sName }}</div>
  7258. </div>
  7259. </div>
  7260. </div>
  7261. </div>
  7262. <div
  7263. v-if="tool.tool.indexOf(49) != -1"
  7264. class="xuan_right_box"
  7265. style="margin: 0 15px 0 25px; width: 93%"
  7266. >
  7267. <div
  7268. v-if="courseDetail.userid == userid"
  7269. style="
  7270. display: flex;
  7271. justify-content: flex-end;
  7272. margin-right: 10px;
  7273. "
  7274. >
  7275. <el-button
  7276. type="primary"
  7277. size="small"
  7278. @click="addTools(49, toolIndex, taskCount)"
  7279. >{{ lang.ssGroupSetting }}</el-button
  7280. >
  7281. </div>
  7282. <div
  7283. v-if="groupStudentUid[toolIndex]"
  7284. class="group_staic_box"
  7285. >
  7286. <div
  7287. v-for="(gp, gd) in tool.groupJson.group"
  7288. :key="gd"
  7289. class="group_staic"
  7290. >
  7291. <span> {{ gp.name }}</span>
  7292. <span>
  7293. {{ lang.ssCurrentCountNum.replace(/\*/g, groupStudentUid[toolIndex][gd].length) }}</span
  7294. >
  7295. </div>
  7296. </div>
  7297. </div>
  7298. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7299. <div
  7300. class="zuoyeYulan"
  7301. v-if="
  7302. worksStudent.length &&
  7303. worksStudent[toolIndex].length > 0
  7304. "
  7305. >
  7306. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  7307. </div>
  7308. <div>
  7309. <div
  7310. class="group_workBox"
  7311. v-for="(g, gindex) in tool.groupJson.group"
  7312. :key="gindex"
  7313. >
  7314. <div
  7315. class="group_box"
  7316. v-if="
  7317. groupStudentUid[toolIndex] &&
  7318. worksStudent[toolIndex] &&
  7319. (worksStudent[toolIndex][gindex].length ||
  7320. groupStudentUid[toolIndex][gindex].indexOf(
  7321. userid
  7322. ) != -1)
  7323. "
  7324. >
  7325. <div class="group_title">
  7326. <el-tooltip
  7327. class="item"
  7328. effect="light"
  7329. :content="g.name"
  7330. placement="top"
  7331. >
  7332. <div class="group_name">{{ g.name }}</div>
  7333. </el-tooltip>
  7334. <el-button
  7335. type="primary"
  7336. v-if="
  7337. groupStudentUid[toolIndex][gindex].indexOf(
  7338. userid
  7339. ) != -1
  7340. "
  7341. @click="groupUpload(toolIndex, taskCount, gindex)"
  7342. >{{ lang.ssUploadHomework }}</el-button
  7343. >
  7344. </div>
  7345. <div class="group_work">
  7346. <div
  7347. class="works"
  7348. style="
  7349. width: 200px;
  7350. height: 140px;
  7351. margin: 10px 10px 10px 0;
  7352. border-radius: 15px;
  7353. box-shadow: 0 0 6px 1px #dfdada;
  7354. "
  7355. v-for="(w, wIndex) in worksStudent[toolIndex][
  7356. gindex
  7357. ]"
  7358. :key="wIndex"
  7359. :class="w.type == 1 ? 'isTypeOne' : ''"
  7360. >
  7361. <div class="workImg" style="overflow: hidden;" v-if="w.type == 0">
  7362. <el-image
  7363. :src="w.works"
  7364. crossorigin="anonymous"
  7365. allow="*"
  7366. @click="previewImg(w.works, w)"
  7367. alt
  7368. />
  7369. <div
  7370. class="answerScore"
  7371. style="right: 70px;"
  7372. v-if="w.score"
  7373. @click.stop="openScore(w)"
  7374. :class="{
  7375. rightW:
  7376. w.userid == userid ||
  7377. tType == 1 ||
  7378. tType == 4 ||
  7379. w.ateacher == userid,
  7380. }"
  7381. >
  7382. {{ JSON.parse(w.score).wScore }}{{ lang.ssScoreUnit }}
  7383. </div>
  7384. <div
  7385. class="answerScore"
  7386. style="right: 70px;"
  7387. @click.stop="openScore(w)"
  7388. v-else-if="courseDetail.userid == userid"
  7389. :class="{
  7390. rightW:
  7391. w.userid == userid ||
  7392. tType == 1 ||
  7393. tType == 4 ||
  7394. w.ateacher == userid,
  7395. }"
  7396. >
  7397. {{ lang.ssMarkScore }}
  7398. </div>
  7399. <img class="xiaz" @click="downloadimg(w.works,w.sName)" style="right: 40px;" src="../../assets/icon/works/xiaz.png" alt="">
  7400. <img
  7401. class="deleteImg"
  7402. src="../../assets/deleteworks.png"
  7403. v-if="
  7404. w.userid == userid ||
  7405. tType == 1 ||
  7406. tType == 4
  7407. "
  7408. @click.stop="deleteWorks(w.wid)"
  7409. alt
  7410. />
  7411. </div>
  7412. <div class="workImg" v-if="w.type == 1">
  7413. <img
  7414. :src="word"
  7415. @click="openFile(w.works)"
  7416. alt
  7417. />
  7418. <!-- @click="openFile(w.works)" -->
  7419. <div
  7420. class="answerScore"
  7421. style="right: 70px;"
  7422. v-if="w.score"
  7423. @click.stop="openScore(w)"
  7424. :class="{
  7425. rightW:
  7426. w.userid == userid ||
  7427. tType == 1 ||
  7428. tType == 4 ||
  7429. w.ateacher == userid,
  7430. }"
  7431. >
  7432. {{ JSON.parse(w.score).wScore }}{{ lang.ssScoreUnit }}
  7433. </div>
  7434. <div
  7435. class="answerScore"
  7436. style="right: 70px;"
  7437. @click.stop="openScore(w)"
  7438. v-else-if="courseDetail.userid == userid"
  7439. :class="{
  7440. rightW:
  7441. w.userid == userid ||
  7442. tType == 1 ||
  7443. tType == 4 ||
  7444. w.ateacher == userid,
  7445. }"
  7446. >
  7447. {{ lang.ssMarkScore }}
  7448. </div>
  7449. <img class="xiaz" @click="downloadFile(w.works,w.userid)" style="right: 40px;" src="../../assets/icon/works/xiaz.png" alt="">
  7450. <img
  7451. class="deleteImg"
  7452. src="../../assets/deleteworks.png"
  7453. v-if="
  7454. w.userid == userid ||
  7455. tType == 1 ||
  7456. tType == 4
  7457. "
  7458. @click.stop="deleteWorks(w.wid)"
  7459. alt
  7460. />
  7461. </div>
  7462. <div class="workImg" v-if="w.type == 3">
  7463. <img
  7464. style="cursor: pointer"
  7465. :src="video"
  7466. @click="openVideo(w)"
  7467. alt
  7468. />
  7469. <!-- @click="openVideo(w.works)" -->
  7470. <div
  7471. class="answerScore"
  7472. style="right: 70px;"
  7473. v-if="w.score"
  7474. @click.stop="openScore(w)"
  7475. :class="{
  7476. rightW:
  7477. w.userid == userid ||
  7478. tType == 1 ||
  7479. tType == 4 ||
  7480. w.ateacher == userid,
  7481. }"
  7482. >
  7483. {{ JSON.parse(w.score).wScore }}{{ lang.ssScoreUnit }}
  7484. </div>
  7485. <div
  7486. class="answerScore"
  7487. style="right: 70px;"
  7488. @click.stop="openScore(w)"
  7489. v-else-if="courseDetail.userid == userid"
  7490. :class="{
  7491. rightW:
  7492. w.userid == userid ||
  7493. tType == 1 ||
  7494. tType == 4 ||
  7495. w.ateacher == userid,
  7496. }"
  7497. >
  7498. {{ lang.ssMarkScore }}
  7499. </div>
  7500. <img class="xiaz" @click="downloadFile(w.works,w.userid)" style="right: 40px;" src="../../assets/icon/works/xiaz.png" alt="">
  7501. <img
  7502. class="deleteImg"
  7503. src="../../assets/deleteworks.png"
  7504. v-if="
  7505. w.userid == userid ||
  7506. tType == 1 ||
  7507. tType == 4
  7508. "
  7509. @click.stop="deleteWorks(w.wid)"
  7510. alt
  7511. />
  7512. </div>
  7513. <div class="workImg" v-if="w.type == 12">
  7514. <img
  7515. style="cursor: pointer"
  7516. :src="word2"
  7517. @click="downloadFile(w.works,w.userid)"
  7518. alt
  7519. />
  7520. <!-- @click="openVideo(w.works)" -->
  7521. <div
  7522. class="answerScore"
  7523. v-if="w.score"
  7524. style="right: 70px;"
  7525. @click.stop="openScore(w)"
  7526. :class="{
  7527. rightW:
  7528. w.userid == userid ||
  7529. tType == 1 ||
  7530. tType == 4 ||
  7531. w.ateacher == userid,
  7532. }"
  7533. >
  7534. {{ JSON.parse(w.score).wScore }}{{ lang.ssScoreUnit }}
  7535. </div>
  7536. <div
  7537. class="answerScore"
  7538. style="right: 70px;"
  7539. @click.stop="openScore(w)"
  7540. v-else-if="courseDetail.userid == userid"
  7541. :class="{
  7542. rightW:
  7543. w.userid == userid ||
  7544. tType == 1 ||
  7545. tType == 4 ||
  7546. w.ateacher == userid,
  7547. }"
  7548. >
  7549. {{ lang.ssMarkScore }}
  7550. </div>
  7551. <img class="xiaz" @click="downloadFile(w.works,w.userid)" style="right: 40px;" src="../../assets/icon/works/xiaz.png" alt="">
  7552. <img
  7553. class="deleteImg"
  7554. src="../../assets/deleteworks.png"
  7555. v-if="
  7556. w.userid == userid ||
  7557. tType == 1 ||
  7558. tType == 4
  7559. "
  7560. @click.stop="deleteWorks(w.wid)"
  7561. alt
  7562. />
  7563. </div>
  7564. <div class="comment" style="min-width: 200px">
  7565. <div class="worksName">
  7566. <div>{{ w.sName }}</div>
  7567. </div>
  7568. <div class="commentList">
  7569. <div class="commentList">
  7570. <div
  7571. class="commentImg"
  7572. @click="
  7573. isLikes(
  7574. w.wid,
  7575. userid,
  7576. 1,
  7577. null,
  7578. w.isLikes,
  7579. w.sName
  7580. )
  7581. "
  7582. >
  7583. <img
  7584. :src="
  7585. w.isLikes == true ? likes : noLikes
  7586. "
  7587. alt=""
  7588. />
  7589. </div>
  7590. <div>{{ w.likesCount }}</div>
  7591. </div>
  7592. <div
  7593. class="commentList"
  7594. style="margin-right: 15px"
  7595. >
  7596. <div
  7597. class="commentImg"
  7598. @click="
  7599. commentOther(
  7600. w,
  7601. toolIndex,
  7602. wIndex,
  7603. gindex
  7604. )
  7605. "
  7606. >
  7607. <img
  7608. src="../../assets/icon/comment/comment.png"
  7609. alt=""
  7610. />
  7611. </div>
  7612. <div>{{ w.commentCount }}</div>
  7613. </div>
  7614. </div>
  7615. </div>
  7616. </div>
  7617. </div>
  7618. </div>
  7619. </div>
  7620. </div>
  7621. </div>
  7622. </div>
  7623. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7624. 上传文件
  7625. <input
  7626. type="file"
  7627. accept="image/png, image/gif, image/jpeg"
  7628. style="display: none"
  7629. @change="beforeUpload1($event, 2, index)"
  7630. />
  7631. </div>-->
  7632. </div>
  7633. </div>
  7634. <div
  7635. class="vedioBox"
  7636. style="margin-top: 10px; border-radius: 20px"
  7637. v-if="
  7638. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7639. .eList &&
  7640. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7641. .eList.length &&
  7642. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7643. .eList.length > 0 &&
  7644. tType != 2
  7645. "
  7646. >
  7647. <div
  7648. class="queTop"
  7649. style="
  7650. font-size: 20px;
  7651. padding: 15px 0 15px 37px;
  7652. font-weight: bold;
  7653. "
  7654. >
  7655. <!-- <div class="question" style="width: 30px">
  7656. <img src="../assets/icon/toolIcon.png" alt />
  7657. </div>
  7658. <div class="queTitle">
  7659. <div>工具</div>
  7660. </div>-->
  7661. {{ lang.ssEvaluate }}
  7662. </div>
  7663. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7664. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7665. <el-table
  7666. :data="
  7667. chapInfoList[courseType].chapterInfo[0].taskJson[
  7668. taskCount
  7669. ].eList
  7670. "
  7671. :header-cell-style="{ background: '#F0F4FA' }"
  7672. :row-class-name="tableRowClassName"
  7673. border
  7674. stripe
  7675. style="width: 100%"
  7676. >
  7677. <el-table-column
  7678. :label="lang.ssEvalName"
  7679. align="center"
  7680. >
  7681. <template slot-scope="scope"
  7682. ><div>{{ scope.row.value }}</div></template
  7683. >
  7684. </el-table-column>
  7685. <el-table-column
  7686. :label="lang.ssEvalDesc"
  7687. align="center"
  7688. >
  7689. <template slot-scope="scope"
  7690. ><div>
  7691. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7692. </div></template
  7693. >
  7694. </el-table-column>
  7695. <el-table-column :label="lang.ssTarget" align="center">
  7696. <template slot-scope="scope"
  7697. ><div>
  7698. {{
  7699. scope.row.target
  7700. ? scope.row.target[scope.row.target.length - 1]
  7701. : "-"
  7702. }}
  7703. </div></template
  7704. ></el-table-column
  7705. >
  7706. </el-table>
  7707. <!-- <div
  7708. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7709. .chapterInfo[0].taskJson[taskCount].eList"
  7710. :key="eIndex"
  7711. class="elist_input_box"
  7712. >
  7713. <div style="width: 95%">
  7714. <div
  7715. style="
  7716. display: flex;
  7717. flex-direction: row;
  7718. flex-wrap: nowrap;
  7719. align-items: center;
  7720. "
  7721. >
  7722. <div style="max-width: calc(100% - 285px)">
  7723. <span>{{ eItem.value }}</span>
  7724. </div>
  7725. <div
  7726. style="
  7727. padding-left: 25px;
  7728. display: flex;
  7729. flex-direction: row;
  7730. align-items: center;
  7731. "
  7732. >
  7733. <el-rate
  7734. v-model="eItem.score"
  7735. :colors="colors"
  7736. disabled
  7737. ></el-rate>
  7738. </div>
  7739. </div>
  7740. <div class="elist_inptu_text" style="padding-left: 10px">
  7741. <span v-if="eItem.detail != ''">{{
  7742. eItem.detail
  7743. }}</span>
  7744. <span v-else style="color: #b2b1b3; font-size: 14px"
  7745. >暂无描述...</span
  7746. >
  7747. </div>
  7748. </div>
  7749. </div> -->
  7750. </div>
  7751. <div
  7752. v-if="evalua"
  7753. style="
  7754. border: 1px solid #e5e5e5;
  7755. max-width: 650px;
  7756. width: 100%;
  7757. margin-top: 20px;
  7758. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7759. "
  7760. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7761. >
  7762. <div class="e_add_top">
  7763. <div class="e_add_title" style="width: 100%">
  7764. <!-- <span>目标管理名称</span> -->
  7765. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7766. <img
  7767. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7768. src="../../assets/line.png"
  7769. class="cru_line"
  7770. style="
  7771. width: 125px;
  7772. height: 20px;
  7773. bottom: -10px;
  7774. left: 5px;
  7775. "
  7776. />
  7777. <!-- <el-input
  7778. v-model="eTitle"
  7779. placeholder="请输入名称"
  7780. @change="setMindData"
  7781. ></el-input>-->
  7782. <div v-show="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva()"><img src="../../assets/icon/newIcon/icon-slide.png" />{{ lang.ssCollapseTarget }}</div>
  7783. <div v-show="!chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" style="margin:0 0 0 auto" class="show_taskD" @click="foldEva()"><img src="../../assets/icon/newIcon/icon-slide.png" />{{ lang.ssExpandTarget }}</div>
  7784. </div>
  7785. </div>
  7786. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7787. <div class="e_add_list_pbox">
  7788. <div class="e_add_list_pbox_title">
  7789. <!-- <span class="type_title">切换模式</span> -->
  7790. <div class="type_content">
  7791. <span
  7792. :class="{ active: typeMode == 1 }"
  7793. @click="typeMode = 1"
  7794. >{{ lang.ssTargetTree }}</span
  7795. >
  7796. <span
  7797. :class="{ active: typeMode == 2 }"
  7798. @click="typeMode = 2"
  7799. >{{ lang.ssTargetCompass }}</span
  7800. >
  7801. <!-- <span
  7802. :class="{ active: typeMode == 3 }"
  7803. @click="typeMode = 3"
  7804. >目标看板</span
  7805. > -->
  7806. </div>
  7807. </div>
  7808. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7809. <Mind
  7810. :showBar="false"
  7811. :mindData="data"
  7812. style="width: 100%"
  7813. v-show="typeMode == 1"
  7814. ></Mind>
  7815. <Sunburst
  7816. :Josn="eJson"
  7817. :num="eJSONNum"
  7818. style="width: 100%"
  7819. v-if="typeMode == 2"
  7820. ></Sunburst>
  7821. <SeeBoard
  7822. :Josn="eJson"
  7823. :num="eJSONNum"
  7824. :ename="eTitle"
  7825. style="width: 100%"
  7826. v-if="typeMode == 3"
  7827. >
  7828. </SeeBoard>
  7829. </div>
  7830. </div>
  7831. </div>
  7832. </div>
  7833. </div>
  7834. </div>
  7835. <!-- <div
  7836. class="project_box"
  7837. style="margin-top: 15px; padding-bottom: 30px"
  7838. >
  7839. <div
  7840. style="
  7841. display: flex;
  7842. flex-wrap: nowrap;
  7843. flex-direction: column;
  7844. position: relative;
  7845. "
  7846. >
  7847. <div class="queTop">
  7848. <div class="question">
  7849. <img src="../../assets/icon/homeWork.png" alt="" />
  7850. </div>
  7851. <div class="queTitle">
  7852. <div>作业提交<span>(提交图文视频等)</span></div>
  7853. <div>:任务:{{ task.task }}</div>
  7854. </div>
  7855. </div>
  7856. <div class="ediBottom">
  7857. <div
  7858. class="addEditor"
  7859. style="margin-top: 23px"
  7860. @click="openAddWork"
  7861. v-if="!isNoHomeWork"
  7862. >
  7863. 选择文件
  7864. </div>
  7865. <div
  7866. class="addEditor"
  7867. style="margin-top: 23px"
  7868. @click="openAddWork"
  7869. v-else
  7870. >
  7871. 已提交
  7872. </div>
  7873. </div>
  7874. </div>
  7875. </div>-->
  7876. </div>
  7877. </div>
  7878. <el-dialog
  7879. :title="lang.ssHomework"
  7880. :visible.sync="dialogVisible"
  7881. :append-to-body="true"
  7882. width="500px"
  7883. :before-close="handleClose"
  7884. class="dialog_change"
  7885. >
  7886. <div class="marginT">
  7887. <div>{{ lang.ssUpFile }}</div>
  7888. <div style="display: flex; gap: 10px">
  7889. <div
  7890. class="chapter_add"
  7891. @click="addImg($event)"
  7892. v-if="studyJuri[0].cover.length == 0"
  7893. >
  7894. <div class="up_photo">
  7895. <img src="../../assets/icon/uploadImg.png" alt />
  7896. </div>
  7897. <!-- <input
  7898. type="file"
  7899. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7900. style="display: none"
  7901. @change="beforeUpload1($event, 1)"
  7902. /> -->
  7903. <input
  7904. type="file"
  7905. accept="*"
  7906. style="display: none"
  7907. @change="beforeUpload1($event, 1)"
  7908. />
  7909. <!-- <input
  7910. type="file"
  7911. accept="image/*"
  7912. capture="camera"
  7913. style="display: none"
  7914. @change="beforeUpload1($event, 1)"
  7915. /> -->
  7916. </div>
  7917. <div
  7918. class="chapter_add"
  7919. @click="addImg($event)"
  7920. v-if="studyJuri[0].cover.length == 0"
  7921. >
  7922. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  7923. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  7924. </div>
  7925. <input
  7926. type="file"
  7927. accept="image/*"
  7928. capture="camera"
  7929. style="display: none"
  7930. @change="beforeUpload1($event, 1)"
  7931. />
  7932. </div>
  7933. </div>
  7934. <div
  7935. class="chapter_add"
  7936. style="
  7937. display: flex;
  7938. width: 100%;
  7939. flex-direction: row;
  7940. flex-wrap: wrap;
  7941. justify-content: flex-start;
  7942. padding: 15px 0;
  7943. "
  7944. v-if="studyJuri[0].cover.length > 0"
  7945. >
  7946. <div class="upCover">
  7947. <img
  7948. :src="studyJuri[0].cover[0].url"
  7949. alt
  7950. v-if="fileType == 0"
  7951. />
  7952. <img :src="word" alt v-else-if="fileType == 1" />
  7953. <img :src="video" alt v-else-if="fileType == 2" />
  7954. <img :src="word2" alt v-else-if="fileType == 3" />
  7955. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7956. <div class="deleteWord" @click="clean(1)">
  7957. <img src="../../assets/icon/deleteWorks.png" alt />
  7958. </div>
  7959. </div>
  7960. </div>
  7961. </div>
  7962. <div
  7963. class="upload_send"
  7964. @click="addCourseWorks(taskCount)"
  7965. v-if="!proVisible"
  7966. >
  7967. {{ lang.ssSubmit }}
  7968. </div>
  7969. </el-dialog>
  7970. </div>
  7971. </div>
  7972. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  7973. <classRoomHelper v-if="!['2'].includes(tType) && $region != 'hk'" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  7974. '/courseDetail?userid=' +
  7975. userid +
  7976. '&oid=' +
  7977. oid +
  7978. '&org=' +
  7979. org +
  7980. '&cid=' +
  7981. classId +
  7982. '&courseId=' +
  7983. id +
  7984. '&tType=' +
  7985. tType +
  7986. '&screenType=' +
  7987. screenType+
  7988. '&role=' +
  7989. role
  7990. )"></classRoomHelper>
  7991. <studentClassRoomHelper v-else-if="['2'].includes(tType) && $region != 'hk'" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  7992. '/courseDetail?userid=' +
  7993. userid +
  7994. '&oid=' +
  7995. oid +
  7996. '&org=' +
  7997. org +
  7998. '&cid=' +
  7999. classId +
  8000. '&courseId=' +
  8001. id +
  8002. '&tType=' +
  8003. tType +
  8004. '&screenType=' +
  8005. screenType+
  8006. '&role=' +
  8007. role
  8008. )"></studentClassRoomHelper>
  8009. <div
  8010. class="pButton"
  8011. @click="(pzDialog = true), selectPz()"
  8012. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8013. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8014. >
  8015. <!-- 批 -->
  8016. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8017. </div>
  8018. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8019. <div class="pzTop2">
  8020. <!-- <div>评论</div>
  8021. <div @click="pzDialog = false">
  8022. <img src="../../assets/close1.png" alt="" />
  8023. </div> -->
  8024. <div class="checkbox">
  8025. <!-- <div class="check" style="font-size: 25px; position: unset">
  8026. 评论
  8027. </div> -->
  8028. <div class="cb-tabList">
  8029. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">{{ lang.ssComment }}</div>
  8030. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8031. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8032. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">{{ lang.ssTotalEval }}</div>
  8033. </div>
  8034. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8035. <el-option :label="lang.ssTimeDesc" :value="1"></el-option>
  8036. <el-option :label="lang.ssTimeAsc" :value="2"></el-option>
  8037. <el-option :label="lang.ssMyComment" :value="3"></el-option>
  8038. </el-select>
  8039. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8040. </div>
  8041. </div>
  8042. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8043. <div class="pzListBox" v-if="pzList && pzList.length">
  8044. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8045. <div class="pzNavTop">
  8046. <div>{{ lang.ssEval }}</div>
  8047. <div>
  8048. {{
  8049. pz.username && pz.username.length > 5
  8050. ? pz.username.substring(0, 5) + "..."
  8051. : pz.username
  8052. }}{{ lang.ssCommentOf }}
  8053. </div>
  8054. <div
  8055. class="pzDelete"
  8056. v-if="pz.userid == userid"
  8057. @click="deletePz(pz.id)"
  8058. >
  8059. {{ lang.ssDelete }}
  8060. </div>
  8061. </div>
  8062. <div
  8063. @click="checkImg(getImgList(pz.content))"
  8064. class="pzContent cont"
  8065. v-html="pz.content"
  8066. v-if="pz.type == '1'"
  8067. ></div>
  8068. <div class="pzContent" v-if="pz.type == '2'">
  8069. <audio :src="pz.content" controls="controls" ref="audio">
  8070. Your browser does not support the audio element.
  8071. </audio>
  8072. </div>
  8073. <div class="pzContent" v-if="pz.type == '3'">
  8074. <img
  8075. :src="pz.content"
  8076. style="width: 90%; margin: 0 auto; display: block"
  8077. @click="previewImg(pz.content)"
  8078. />
  8079. </div>
  8080. <div class="timeAndReply">
  8081. <div class="time">
  8082. {{ pz.time }}
  8083. </div>
  8084. <div @click="setReplyIndex(pz.id, pzIndex)">{{ lang.ssReply }}</div>
  8085. </div>
  8086. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8087. <div
  8088. v-for="(h, hIndex) in pz.hfList"
  8089. :key="hIndex"
  8090. class="hfItem"
  8091. >
  8092. <div class="whoReplyWho">
  8093. <div class="hfName">{{ h.username }}</div>
  8094. <div class="hfImg">
  8095. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8096. </div>
  8097. <div class="hfName">{{ pz.username }}</div>
  8098. </div>
  8099. <div class="hfContent" v-html="h.content"></div>
  8100. <div class="hfBottom">
  8101. <div class="hfTime">{{ h.time }}</div>
  8102. <div
  8103. class="deleteHfItem"
  8104. @click="deleteReply(h.id)"
  8105. v-if="userid == h.userid"
  8106. >
  8107. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8108. </div>
  8109. </div>
  8110. </div>
  8111. </div>
  8112. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8113. <div class="replyInput">
  8114. <el-input v-model="reply[pzIndex]"></el-input>
  8115. </div>
  8116. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8117. </div> -->
  8118. </div>
  8119. </div>
  8120. <div class="noPz" v-else>
  8121. <img src="../../assets/icon/noPz.png" alt="" />
  8122. </div>
  8123. <div class="addPzButton">
  8124. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8125. {{ lang.ssAddComment }}
  8126. </div>
  8127. <!-- <div class="img1">
  8128. <div @click="(addPzDialog = true), (pzType = 2)">
  8129. <img src="../../assets/audio.png" /><span>音频</span>
  8130. </div>
  8131. </div> -->
  8132. </div>
  8133. </div>
  8134. <div class="scoreList" v-if="commentTagShow==1">
  8135. <scoreItem v-for="item in scoreList.datalist" @refresh="getScoreList" :data="item" :isScore="scoreList.isScoreList.filter(i=>(i.userid==item.userid && i.courseid == item.courseId))" :key="item.courseId"/>
  8136. </div>
  8137. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8138. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8139. </div>
  8140. </div>
  8141. <div
  8142. v-if="toolDialogVisible == true"
  8143. class="toolMask"
  8144. @click="toolDialogVisible = false"
  8145. ></div>
  8146. <div v-if="toolDialogVisible == true" class="addToolCss">
  8147. <div class="toolTop">
  8148. <div style="font-weight: bold">{{ lang.ssNewTool }}</div>
  8149. <div @click="toolDialogVisible = false">
  8150. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8151. </div>
  8152. </div>
  8153. <div class="tool_box">
  8154. <div class="tool_type_box">
  8155. <div class="chooseWho">
  8156. <div
  8157. :class="toolType == 0 ? 'isChooseActive' : ''"
  8158. @click="(toolType = 0), $forceUpdate()"
  8159. >
  8160. {{ lang.ssInteract }}
  8161. </div>
  8162. <div
  8163. :class="toolType == 1 ? 'isChooseActive' : ''"
  8164. @click="(toolType = 1), $forceUpdate()"
  8165. >
  8166. {{ lang.ssThinking }}
  8167. </div>
  8168. <div
  8169. :class="toolType == 2 ? 'isChooseActive' : ''"
  8170. @click="(toolType = 2), $forceUpdate()"
  8171. >
  8172. {{ lang.ssEvalType }}
  8173. </div>
  8174. <div
  8175. :class="toolType == 3 ? 'isChooseActive' : ''"
  8176. @click="(toolType = 3), $forceUpdate()"
  8177. >
  8178. {{ lang.ssProgram }}
  8179. </div>
  8180. <div
  8181. :class="toolType == 5 ? 'isChooseActive' : ''"
  8182. @click="(toolType = 5), $forceUpdate()"
  8183. >
  8184. {{ lang.ssSubject }}
  8185. </div>
  8186. </div>
  8187. </div>
  8188. <div>
  8189. <div class="toolSort" v-if="toolType == 0">
  8190. <div
  8191. class="tool"
  8192. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8193. @click="addTools2(10)"
  8194. >
  8195. <div class="whiteBIcon">
  8196. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8197. <div style="margin: 5px 0">{{ lang.ssCountdown }}</div>
  8198. </div>
  8199. <div class="check">
  8200. <div
  8201. v-if="checktoolArray.indexOf(10) == -1"
  8202. class="noChoose"
  8203. ></div>
  8204. <div v-else class="isChoose"></div>
  8205. </div>
  8206. </div>
  8207. <div
  8208. class="tool"
  8209. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8210. @click="addTools2(65)"
  8211. >
  8212. <div class="whiteBIcon">
  8213. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8214. <div style="margin: 5px 0">{{ lang.ssPickPerson }}</div>
  8215. </div>
  8216. <div class="check">
  8217. <div
  8218. v-if="checktoolArray.indexOf(65) == -1"
  8219. class="noChoose"
  8220. ></div>
  8221. <div v-else class="isChoose"></div>
  8222. </div>
  8223. </div>
  8224. </div>
  8225. <div class="toolSort" v-if="toolType == 1">
  8226. <div
  8227. class="tool"
  8228. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8229. @click="addTools2(7)"
  8230. >
  8231. <div class="whiteBIcon">
  8232. <img
  8233. src="../../assets/icon/secondToolList/mindNetwork.png"
  8234. alt
  8235. />
  8236. <div style="margin: 5px 0">{{ lang.ssMindGrid }}</div>
  8237. </div>
  8238. <div class="check">
  8239. <div
  8240. v-if="checktoolArray.indexOf(7) == -1"
  8241. class="noChoose"
  8242. ></div>
  8243. <div v-else class="isChoose"></div>
  8244. </div>
  8245. </div>
  8246. <div
  8247. class="tool"
  8248. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8249. @click="addTools2(1)"
  8250. >
  8251. <div class="whiteBIcon">
  8252. <img
  8253. src="../../assets/icon/secondToolList/whiteBoard.png"
  8254. alt
  8255. />
  8256. <div style="margin: 5px 0">{{ lang.ssWhiteboard }}</div>
  8257. </div>
  8258. <div class="check">
  8259. <div
  8260. v-if="checktoolArray.indexOf(1) == -1"
  8261. class="noChoose"
  8262. ></div>
  8263. <div v-else class="isChoose"></div>
  8264. </div>
  8265. </div>
  8266. <div
  8267. class="tool"
  8268. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8269. @click="addTools2(52)"
  8270. >
  8271. <div class="whiteBIcon">
  8272. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8273. <div style="margin: 5px 0">{{ lang.ssDocument }}</div>
  8274. </div>
  8275. <div class="check">
  8276. <div
  8277. v-if="checktoolArray.indexOf(52) == -1"
  8278. class="noChoose"
  8279. ></div>
  8280. <div v-else class="isChoose"></div>
  8281. </div>
  8282. </div>
  8283. <div
  8284. class="tool"
  8285. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8286. @click="addTools2(3)"
  8287. >
  8288. <div class="whiteBIcon">
  8289. <img
  8290. src="../../assets/icon/secondToolList/mindMapping.png"
  8291. alt
  8292. />
  8293. <div style="margin: 5px 0">{{ lang.ssMindMap }}</div>
  8294. </div>
  8295. <div class="check">
  8296. <div
  8297. v-if="checktoolArray.indexOf(3) == -1"
  8298. class="noChoose"
  8299. ></div>
  8300. <div v-else class="isChoose"></div>
  8301. </div>
  8302. </div>
  8303. <div
  8304. class="tool"
  8305. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8306. @click="addTools2(48)"
  8307. >
  8308. <div class="whiteBIcon">
  8309. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8310. <div style="margin: 5px 0">{{ lang.ssTable }}</div>
  8311. </div>
  8312. <div class="check">
  8313. <div
  8314. v-if="checktoolArray.indexOf(48) == -1"
  8315. class="noChoose"
  8316. ></div>
  8317. <div v-else class="isChoose"></div>
  8318. </div>
  8319. </div>
  8320. </div>
  8321. <div class="toolSort" v-if="toolType == 6">
  8322. <div v-show="tooC == 49">
  8323. <img
  8324. @click="addTools(tooC, toolIndex, taskCount)"
  8325. src="../../assets/icon/fourthToolList/group.png"
  8326. alt
  8327. />
  8328. <div style="margin: 5px 0">{{ lang.ssStudentGroup }}</div>
  8329. </div>
  8330. </div>
  8331. <div class="toolSort" v-if="toolType == 2">
  8332. <div
  8333. class="tool"
  8334. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8335. @click="addTools2(16)"
  8336. >
  8337. <div class="whiteBIcon">
  8338. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8339. <div style="margin: 5px 0">{{ lang.ssHomework }}</div>
  8340. </div>
  8341. <div class="check">
  8342. <div
  8343. v-if="checktoolArray.indexOf(16) == -1"
  8344. class="noChoose"
  8345. ></div>
  8346. <div v-else class="isChoose"></div>
  8347. </div>
  8348. </div>
  8349. <div
  8350. class="tool"
  8351. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8352. @click="addTools2(50)"
  8353. >
  8354. <div class="whiteBIcon">
  8355. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8356. <div style="margin: 5px 0">{{ lang.ssBatchUpload }}</div>
  8357. </div>
  8358. <div class="check">
  8359. <div
  8360. v-if="checktoolArray.indexOf(50) == -1"
  8361. class="noChoose"
  8362. ></div>
  8363. <div v-else class="isChoose"></div>
  8364. </div>
  8365. </div>
  8366. </div>
  8367. <div class="toolSort" v-if="toolType == 3">
  8368. <div
  8369. class="tool"
  8370. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8371. @click="addTools2(18)"
  8372. >
  8373. <div class="whiteBIcon">
  8374. <img
  8375. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8376. alt
  8377. />
  8378. <div style="margin: 5px 0">{{ lang.ssTraining }}</div>
  8379. </div>
  8380. <div class="check">
  8381. <div
  8382. v-if="checktoolArray.indexOf(18) == -1"
  8383. class="noChoose"
  8384. ></div>
  8385. <div v-else class="isChoose"></div>
  8386. </div>
  8387. </div>
  8388. <div
  8389. class="tool"
  8390. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8391. @click="addTools2(21)"
  8392. >
  8393. <div class="whiteBIcon">
  8394. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8395. <div style="margin: 5px 0">{{ lang.ssAiotBlockly }}</div>
  8396. </div>
  8397. <div class="check">
  8398. <div
  8399. v-if="checktoolArray.indexOf(21) == -1"
  8400. class="noChoose"
  8401. ></div>
  8402. <div v-else class="isChoose"></div>
  8403. </div>
  8404. </div>
  8405. <div
  8406. class="tool"
  8407. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8408. @click="addTools2(23)"
  8409. >
  8410. <div class="whiteBIcon">
  8411. <img
  8412. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8413. alt
  8414. />
  8415. <div style="margin: 5px 0">{{ lang.ssAiPython }}</div>
  8416. </div>
  8417. <div class="check">
  8418. <div
  8419. v-if="checktoolArray.indexOf(23) == -1"
  8420. class="noChoose"
  8421. ></div>
  8422. <div v-else class="isChoose"></div>
  8423. </div>
  8424. </div>
  8425. <div
  8426. class="tool"
  8427. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8428. @click="addTools2(24)"
  8429. >
  8430. <div class="whiteBIcon">
  8431. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8432. <div style="margin: 5px 0">{{ lang.ssAiBlockly }}</div>
  8433. </div>
  8434. <div class="check">
  8435. <div
  8436. v-if="checktoolArray.indexOf(24) == -1"
  8437. class="noChoose"
  8438. ></div>
  8439. <div v-else class="isChoose"></div>
  8440. </div>
  8441. </div>
  8442. <div
  8443. class="tool"
  8444. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8445. @click="addTools2(32)"
  8446. >
  8447. <div class="whiteBIcon">
  8448. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8449. <div style="margin: 5px 0">{{ lang.ssCodeEdit }}</div>
  8450. </div>
  8451. <div class="check">
  8452. <div
  8453. v-if="checktoolArray.indexOf(32) == -1"
  8454. class="noChoose"
  8455. ></div>
  8456. <div v-else class="isChoose"></div>
  8457. </div>
  8458. </div>
  8459. <div
  8460. class="tool"
  8461. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8462. @click="addTools2(57)"
  8463. >
  8464. <div class="whiteBIcon">
  8465. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8466. <div style="margin: 5px 0">{{ lang.ssCocoPi }}</div>
  8467. </div>
  8468. <div class="check">
  8469. <div
  8470. v-if="checktoolArray.indexOf(57) == -1"
  8471. class="noChoose"
  8472. ></div>
  8473. <div v-else class="isChoose"></div>
  8474. </div>
  8475. </div>
  8476. <div
  8477. class="tool"
  8478. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8479. @click="addTools2(63)"
  8480. >
  8481. <div class="whiteBIcon">
  8482. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8483. <div style="margin: 5px 0">{{ lang.ssTurtle }}</div>
  8484. </div>
  8485. <div class="check">
  8486. <div
  8487. v-if="checktoolArray.indexOf(63) == -1"
  8488. class="noChoose"
  8489. ></div>
  8490. <div v-else class="isChoose"></div>
  8491. </div>
  8492. </div>
  8493. <div
  8494. class="tool"
  8495. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8496. @click="addTools2(71)"
  8497. >
  8498. <div class="whiteBIcon">
  8499. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  8500. <div style="margin: 5px 0">{{ lang.ssAiAgent }}</div>
  8501. </div>
  8502. <div class="check">
  8503. <div
  8504. v-if="checktoolArray.indexOf(71) == -1"
  8505. class="noChoose"
  8506. ></div>
  8507. <div v-else class="isChoose"></div>
  8508. </div>
  8509. </div>
  8510. </div>
  8511. <div class="toolSort" v-if="toolType == 7">
  8512. <div
  8513. class="tool"
  8514. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8515. @click="addTools2(40)"
  8516. >
  8517. <div class="whiteBIcon">
  8518. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8519. <div style="margin: 5px 0">{{ lang.ssPersonalEval }}</div>
  8520. </div>
  8521. <div class="check">
  8522. <div
  8523. v-if="checktoolArray.indexOf(40) == -1"
  8524. class="noChoose"
  8525. ></div>
  8526. <div v-else class="isChoose"></div>
  8527. </div>
  8528. </div>
  8529. </div>
  8530. <div class="toolSort" v-if="toolType == 5">
  8531. <div
  8532. class="tool"
  8533. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8534. @click="addTools2(28)"
  8535. >
  8536. <div class="whiteBIcon">
  8537. <img
  8538. src="../../assets/icon/secondToolList/translation.png"
  8539. alt
  8540. />
  8541. <div style="margin: 5px 0">{{ lang.ssTranslate }}</div>
  8542. </div>
  8543. <div class="check">
  8544. <div
  8545. v-if="checktoolArray.indexOf(28) == -1"
  8546. class="noChoose"
  8547. ></div>
  8548. <div v-else class="isChoose"></div>
  8549. </div>
  8550. </div>
  8551. <div
  8552. class="tool"
  8553. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8554. @click="addTools2(31)"
  8555. >
  8556. <div class="whiteBIcon">
  8557. <img
  8558. src="../../assets/icon/secondToolList/networkPanel.png"
  8559. alt
  8560. />
  8561. <div style="margin: 5px 0">{{ lang.ssDigitalBoard }}</div>
  8562. </div>
  8563. <div class="check">
  8564. <div
  8565. v-if="checktoolArray.indexOf(31) == -1"
  8566. class="noChoose"
  8567. ></div>
  8568. <div v-else class="isChoose"></div>
  8569. </div>
  8570. </div>
  8571. <div
  8572. class="tool"
  8573. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8574. @click="addTools2(39)"
  8575. >
  8576. <div class="whiteBIcon">
  8577. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8578. <div style="margin: 5px 0">{{ lang.ssGeogebra }}</div>
  8579. </div>
  8580. <div class="check">
  8581. <div
  8582. v-if="checktoolArray.indexOf(39) == -1"
  8583. class="noChoose"
  8584. ></div>
  8585. <div v-else class="isChoose"></div>
  8586. </div>
  8587. </div>
  8588. <div
  8589. class="tool"
  8590. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8591. @click="addTools2(66)"
  8592. >
  8593. <div class="whiteBIcon">
  8594. <img
  8595. src="../../assets/icon/secondToolList/formulaEdi.png"
  8596. alt
  8597. />
  8598. <div style="margin: 5px 0">{{ lang.ssFormula }}</div>
  8599. </div>
  8600. <div class="check">
  8601. <div
  8602. v-if="checktoolArray.indexOf(66) == -1"
  8603. class="noChoose"
  8604. ></div>
  8605. <div v-else class="isChoose"></div>
  8606. </div>
  8607. </div>
  8608. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8609. <div class="whiteBIcon" @click="addTools2(67)">
  8610. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8611. <div style="margin: 5px 0">分子结构</div>
  8612. </div>
  8613. <div class="check" @click="addTools2(67)">
  8614. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8615. <div v-else class="isChoose"></div>
  8616. </div>
  8617. </div> -->
  8618. <div
  8619. class="tool"
  8620. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8621. @click="addTools2(68)"
  8622. >
  8623. <div class="whiteBIcon">
  8624. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8625. <div style="margin: 5px 0">{{ lang.ssTimeline }}</div>
  8626. </div>
  8627. <div class="check">
  8628. <div
  8629. v-if="checktoolArray.indexOf(68) == -1"
  8630. class="noChoose"
  8631. ></div>
  8632. <div v-else class="isChoose"></div>
  8633. </div>
  8634. </div>
  8635. <!-- <div
  8636. class="tool"
  8637. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8638. @click="addTools2(69)"
  8639. >
  8640. <div class="whiteBIcon">
  8641. <img src="../../assets/icon/secondToolList/english.png" alt />
  8642. <div style="margin: 5px 0">英语写作</div>
  8643. </div>
  8644. <div class="check">
  8645. <div
  8646. v-if="checktoolArray.indexOf(69) == -1"
  8647. class="noChoose"
  8648. ></div>
  8649. <div v-else class="isChoose"></div>
  8650. </div>
  8651. </div> -->
  8652. </div>
  8653. <div class="toolSort" v-if="toolType == 4">
  8654. <div
  8655. class="tool"
  8656. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8657. @click="addTools2(26)"
  8658. >
  8659. <div class="whiteBIcon">
  8660. <img
  8661. src="../../assets/icon/thirdToolList/courseDesign.png"
  8662. alt
  8663. />
  8664. <div style="margin: 5px 0">{{ lang.ssCourseDesign }}</div>
  8665. </div>
  8666. <div class="check">
  8667. <div
  8668. v-if="checktoolArray.indexOf(26) == -1"
  8669. class="noChoose"
  8670. ></div>
  8671. <div v-else class="isChoose"></div>
  8672. </div>
  8673. </div>
  8674. <div
  8675. class="tool"
  8676. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8677. @click="addTools2(25)"
  8678. >
  8679. <div class="whiteBIcon">
  8680. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8681. <div style="margin: 5px 0">{{ lang.ssGoalManage }}</div>
  8682. </div>
  8683. <div class="check">
  8684. <div
  8685. v-if="checktoolArray.indexOf(25) == -1"
  8686. class="noChoose"
  8687. ></div>
  8688. <div v-else class="isChoose"></div>
  8689. </div>
  8690. </div>
  8691. </div>
  8692. </div>
  8693. </div>
  8694. <span
  8695. slot="footer"
  8696. class="dialog-footer"
  8697. style="display: block; text-align: center; padding: 0 0 10px 0"
  8698. >
  8699. <el-button @click="toolDialogVisible = false">{{ lang.ssCancel }}</el-button>
  8700. <el-button type="primary" @click.stop="addToolChoose">{{ lang.ssConfirm }}</el-button>
  8701. </span>
  8702. </div>
  8703. <div
  8704. v-if="replyDialogVisible == true"
  8705. class="addDialogCss"
  8706. v-el-drag-dialog
  8707. >
  8708. <div class="pzTop">
  8709. <div class="teacherPz">
  8710. <div class="teacherPzImg">
  8711. <img src="../../assets/icon/teacherPz.png" alt="" />
  8712. </div>
  8713. <div style="margin-left: 10px; height: 25px">{{ lang.ssAddReply }}</div>
  8714. </div>
  8715. <div @click="replyDialogVisible = false">
  8716. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8717. </div>
  8718. </div>
  8719. <div class="addPzBox">
  8720. <!-- <div class="addPzCheck">
  8721. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8722. >文本</span
  8723. >
  8724. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8725. >音频</span
  8726. >
  8727. </div> -->
  8728. <div style="height: calc(100% - 50px)">
  8729. <editor-bar
  8730. class="binfo_input pzConText"
  8731. style="width: 100% !important; margin: 0 auto"
  8732. :placeholder="lang.ssEnterReply"
  8733. v-model="reply"
  8734. @change="change"
  8735. ></editor-bar>
  8736. </div>
  8737. <div class="addTextCss" @click="addHf">{{ lang.ssConfirm }}</div>
  8738. </div>
  8739. </div>
  8740. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8741. <div class="pzTop">
  8742. <div class="teacherPz">
  8743. <div class="teacherPzImg">
  8744. <img src="../../assets/icon/teacherPz.png" alt="" />
  8745. </div>
  8746. <div style="margin-left: 10px; height: 25px">{{ lang.ssTeacherComment }}</div>
  8747. </div>
  8748. <div @click="addPzDialog = false">
  8749. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8750. </div>
  8751. </div>
  8752. <div class="addPzBox">
  8753. <div class="addPzCheck">
  8754. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8755. >{{ lang.ssText }}</span
  8756. >
  8757. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8758. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8759. >{{ lang.ssAudio }}</span
  8760. >
  8761. </div>
  8762. <div style="height: calc(100% - 95px)">
  8763. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8764. v-if="pzType == 1"></textarea> -->
  8765. <editor-bar
  8766. class="binfo_input pzConText"
  8767. style="width: 100% !important"
  8768. :placeholder="lang.ssEnterTaskDesc"
  8769. v-model="pzConText"
  8770. @change="change"
  8771. v-if="pzType == 1"
  8772. ></editor-bar>
  8773. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8774. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8775. <div @click="addImg($event)">
  8776. <el-button type="primary">上传图片</el-button>
  8777. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8778. @change="beforeUpload1($event, 4)" />
  8779. </div>
  8780. </div> -->
  8781. </div>
  8782. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8783. {{ lang.ssConfirm }}
  8784. </div>
  8785. </div>
  8786. </div>
  8787. <div v-if="proVisible" class="mask">
  8788. <div class="progressBox">
  8789. <!-- <div id="closePro" class="closeCss">
  8790. <img src="../../assets/icon/close.png" alt />
  8791. </div> -->
  8792. <div class="lbox">
  8793. <img src="../../assets/loading.gif" />{{ lang.ssUploading }}
  8794. </div>
  8795. <div style="margin-bottom: 10px">
  8796. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8797. </div>
  8798. <el-progress
  8799. :text-inside="true"
  8800. :stroke-width="20"
  8801. :percentage="progress"
  8802. style="width: 80%"
  8803. ></el-progress>
  8804. </div>
  8805. </div>
  8806. <div v-if="proVisible2" class="mask">
  8807. <div class="progressBox">
  8808. <div class="lbox">
  8809. <img src="../../assets/loading.gif" />{{lang.ssUploading}}
  8810. </div>
  8811. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8812. </div>
  8813. </div>
  8814. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8815. <img width="100%" :src="dialogImageUrl" alt />
  8816. </el-dialog>
  8817. <el-dialog
  8818. :title="noteName != '' ? noteName : lang.ssViewSurvey"
  8819. :visible.sync="dialogVisible5"
  8820. :append-to-body="true"
  8821. width="1000px"
  8822. :before-close="handleClose"
  8823. class="dialog_diy dialog_diy3"
  8824. >
  8825. <div>
  8826. <div
  8827. class="a_add_title"
  8828. style="
  8829. display: flex;
  8830. flex-direction: row;
  8831. align-items: center;
  8832. justify-content: center;
  8833. "
  8834. >
  8835. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitle }}:</div>
  8836. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8837. </div>
  8838. <div class="a_addBox">
  8839. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8840. {{ lang.ssQuestionContent }}
  8841. </div>
  8842. <div
  8843. class="a_add_box"
  8844. v-for="(item1, index1) in askJson.askCount"
  8845. :key="index1"
  8846. >
  8847. <div class="a_add_head">
  8848. <div style="display: flex">
  8849. <span class="askIndex"> {{ index1 + 1 }}</span>
  8850. <div>{{ lang.ssQuestion }}:{{ askJson.askJson[index1].askstitle }}</div>
  8851. </div>
  8852. <img
  8853. v-if="askJson.askJson[index1].img"
  8854. :src="askJson.askJson[index1].img"
  8855. style="height: 300px; margin-top: 10px; max-width: 100%"
  8856. />
  8857. </div>
  8858. <div class="a_add_body">
  8859. <div class="a_add_input">
  8860. <el-radio-group
  8861. v-model="radio[index1]"
  8862. v-if="
  8863. askJson.askJson[index1].type == '1' ||
  8864. !askJson.askJson[index1].type
  8865. "
  8866. >
  8867. <el-radio
  8868. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8869. .checkList"
  8870. :key="checkIndex"
  8871. :label="checkIndex"
  8872. :disabled="isAnswer"
  8873. class="redioStyle"
  8874. ><span v-html="item2"></span
  8875. ></el-radio>
  8876. </el-radio-group>
  8877. <el-checkbox-group
  8878. v-model="radio[index1]"
  8879. v-if="askJson.askJson[index1].type == '2'"
  8880. >
  8881. <el-checkbox
  8882. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8883. .checkList"
  8884. :key="checkIndex1"
  8885. :label="checkIndex1"
  8886. :disabled="isAnswer"
  8887. class="redioStyle"
  8888. ><span v-html="item2"></span>
  8889. </el-checkbox>
  8890. </el-checkbox-group>
  8891. </div>
  8892. </div>
  8893. </div>
  8894. </div>
  8895. </div>
  8896. <span slot="footer" class="dialog-footer">
  8897. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8898. >{{lang.ssCancel}}</el-button
  8899. >
  8900. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8901. >{{lang.ssConfirm}}</el-button
  8902. >
  8903. </span>
  8904. </el-dialog>
  8905. <el-dialog
  8906. :title="noteName != '' ? noteName : lang.ssViewSurvey"
  8907. :visible.sync="dialogVisible5Teacher"
  8908. :append-to-body="true"
  8909. width="1000px"
  8910. :before-close="handleClose"
  8911. class="dialog_diy dialog_diy3"
  8912. >
  8913. <div>
  8914. <div class="w_name">
  8915. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  8916. </div>
  8917. <div
  8918. class="a_add_title"
  8919. style="
  8920. display: flex;
  8921. flex-direction: row;
  8922. align-items: center;
  8923. justify-content: center;
  8924. "
  8925. >
  8926. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitle }}:</div>
  8927. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8928. </div>
  8929. <div class="a_addBox">
  8930. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8931. {{ lang.ssQuestionContent }}
  8932. </div>
  8933. <div
  8934. class="a_add_box"
  8935. v-for="(item1, index1) in askJson.askCount"
  8936. :key="index1"
  8937. >
  8938. <div class="a_add_head">
  8939. <div style="display: flex">
  8940. <span class="askIndex">{{ index1 + 1 }}</span>
  8941. <div>{{ lang.ssQuestion }}:{{ askJson.askJson[index1].askstitle }}</div>
  8942. </div>
  8943. <img
  8944. v-if="askJson.askJson[index1].img"
  8945. :src="askJson.askJson[index1].img"
  8946. style="height: 300px; margin-top: 10px; max-width: 100%"
  8947. />
  8948. </div>
  8949. <div class="a_add_body">
  8950. <div class="a_add_input">
  8951. <el-radio-group
  8952. v-model="radio[index1]"
  8953. v-if="
  8954. askJson.askJson[index1].type == '1' ||
  8955. !askJson.askJson[index1].type
  8956. "
  8957. >
  8958. <el-radio
  8959. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8960. .checkList"
  8961. :key="checkIndex"
  8962. :label="checkIndex"
  8963. :disabled="isAnswer"
  8964. class="redioStyle"
  8965. ><span v-html="item2"></span
  8966. ></el-radio>
  8967. </el-radio-group>
  8968. <el-checkbox-group
  8969. v-model="radio[index1]"
  8970. v-if="askJson.askJson[index1].type == '2'"
  8971. >
  8972. <el-checkbox
  8973. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8974. .checkList"
  8975. :key="checkIndex1"
  8976. :label="checkIndex1"
  8977. :disabled="isAnswer"
  8978. class="redioStyle"
  8979. ><span v-html="item2"></span>
  8980. </el-checkbox>
  8981. </el-checkbox-group>
  8982. </div>
  8983. </div>
  8984. </div>
  8985. </div>
  8986. </div>
  8987. <span slot="footer" class="dialog-footer">
  8988. <el-button
  8989. @click="dialogVisible5Teacher = false"
  8990. v-show="noteName == ''"
  8991. >{{lang.ssCancel}}</el-button
  8992. >
  8993. <el-button
  8994. type="primary"
  8995. @click="addStudentAskTeacher"
  8996. v-show="noteName == ''"
  8997. >{{lang.ssConfirm}}</el-button
  8998. >
  8999. </span>
  9000. </el-dialog>
  9001. <el-dialog
  9002. :title="noteName != '' ? noteName : lang.ssViewChoice"
  9003. :visible.sync="dialogVisibleChoice"
  9004. :append-to-body="true"
  9005. width="1000px"
  9006. :before-close="handleClose"
  9007. class="dialog_diy dialog_diy3"
  9008. >
  9009. <div>
  9010. <!-- <div class="a_add_title" style="
  9011. display: flex;
  9012. flex-direction: row;
  9013. align-items: center;
  9014. justify-content: center;
  9015. ">
  9016. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitle }}:</div>
  9017. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9018. </div> -->
  9019. <div class="a_addBox">
  9020. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9021. {{ lang.ssQuestionContent }}
  9022. </div>
  9023. <div
  9024. class="a_add_box"
  9025. v-for="(item1, index1) in testJson.testCount"
  9026. :key="index1"
  9027. >
  9028. <div class="a_add_head">
  9029. <div style="display: flex;">
  9030. <span class="askIndex">{{ index1 + 1 }}</span>
  9031. <div
  9032. v-if="testJson.testJson[index1].type == '1'"
  9033. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9034. >
  9035. ({{ lang.ssSingleChoice }})
  9036. </div>
  9037. <div
  9038. v-if="testJson.testJson[index1].type == '2'"
  9039. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9040. >
  9041. ({{ lang.ssMultiChoice }})
  9042. </div>
  9043. <div class="renderedFor">{{lang.ssQuestion}}:<span v-html="testJson.testJson[index1].teststitle"></span></div>
  9044. </div>
  9045. <img
  9046. v-if="testJson.testJson[index1].img"
  9047. :src="testJson.testJson[index1].img"
  9048. style="height: 300px; margin-top: 10px; max-width: 100%"
  9049. />
  9050. </div>
  9051. <div
  9052. class="timuImgBox"
  9053. v-if="
  9054. testJson.testJson[index1].timuList &&
  9055. testJson.testJson[index1].timuList.length
  9056. "
  9057. >
  9058. <div
  9059. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9060. :key="tIndex"
  9061. class="timuImg"
  9062. @click.stop="previewImg(timg.src)"
  9063. >
  9064. <img :src="timg.src" alt="" />
  9065. </div>
  9066. </div>
  9067. <div class="a_add_body">
  9068. <div class="a_add_input">
  9069. <el-radio-group
  9070. v-model="radio[index1]"
  9071. v-if="testJson.testJson[index1].type == '1'"
  9072. >
  9073. <div class="radioBox">
  9074. <el-radio
  9075. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9076. .checkList"
  9077. :key="checkIndex"
  9078. :label="checkIndex"
  9079. :disabled="isAnswer"
  9080. class="redioStyle"
  9081. >
  9082. <div
  9083. style="margin-right: 10px"
  9084. v-if="item2 && item2.imgType && item2.imgType == 1"
  9085. >
  9086. <div class="inImg" @click.stop="previewImg(item2.src)">
  9087. <img :src="item2.src" alt="" />
  9088. </div>
  9089. </div>
  9090. <span v-else v-html="item2"></span>
  9091. </el-radio>
  9092. </div>
  9093. </el-radio-group>
  9094. <el-checkbox-group
  9095. v-model="radio[index1]"
  9096. v-if="testJson.testJson[index1].type == '2'"
  9097. >
  9098. <div class="radioBox">
  9099. <el-checkbox
  9100. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9101. .checkList"
  9102. :key="checkIndex"
  9103. :label="checkIndex"
  9104. :disabled="isAnswer"
  9105. class="redioStyle"
  9106. >
  9107. <div
  9108. style="margin-right: 10px"
  9109. v-if="item2 && item2.imgType && item2.imgType == 1"
  9110. >
  9111. <div class="inImg" @click.stop="previewImg(item2.src)">
  9112. <img :src="item2.src" alt="" />
  9113. </div>
  9114. </div>
  9115. <span v-else v-html="item2"></span>
  9116. </el-checkbox>
  9117. </div>
  9118. </el-checkbox-group>
  9119. </div>
  9120. </div>
  9121. </div>
  9122. </div>
  9123. </div>
  9124. <span slot="footer" class="dialog-footer">
  9125. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9126. >{{lang.ssCancel}}</el-button
  9127. >
  9128. <el-button
  9129. type="primary"
  9130. @click="addStudentTest"
  9131. v-show="noteName == ''"
  9132. >{{lang.ssConfirm}}</el-button
  9133. >
  9134. </span>
  9135. </el-dialog>
  9136. <el-dialog
  9137. :title="noteName != '' ? noteName : lang.ssViewChoice"
  9138. :visible.sync="dialogVisibleChoiceTeacher"
  9139. :append-to-body="true"
  9140. width="1000px"
  9141. :before-close="handleClose"
  9142. class="dialog_diy dialog_diy3"
  9143. >
  9144. <div>
  9145. <div class="w_name">
  9146. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  9147. </div>
  9148. <div class="a_addBox">
  9149. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9150. {{ lang.ssQuestionContent }}
  9151. </div>
  9152. <div
  9153. class="a_add_box"
  9154. v-for="(item1, index1) in testJson.testCount"
  9155. :key="index1"
  9156. >
  9157. <div class="a_add_head">
  9158. <div style="display: flex">
  9159. <span class="askIndex">{{ index1 + 1 }}</span>
  9160. <div
  9161. v-if="testJson.testJson[index1].type == '1'"
  9162. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9163. >
  9164. ({{ lang.ssSingleChoice }})
  9165. </div>
  9166. <div
  9167. v-if="testJson.testJson[index1].type == '2'"
  9168. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9169. >
  9170. ({{ lang.ssMultiChoice }})
  9171. </div>
  9172. <div>{{lang.ssQuestion}}:{{ testJson.testJson[index1].teststitle }}</div>
  9173. </div>
  9174. <img
  9175. v-if="testJson.testJson[index1].img"
  9176. :src="testJson.testJson[index1].img"
  9177. style="height: 300px; margin-top: 10px; max-width: 100%"
  9178. />
  9179. </div>
  9180. <div
  9181. class="timuImgBox"
  9182. v-if="
  9183. testJson.testJson[index1].timuList &&
  9184. testJson.testJson[index1].timuList.length
  9185. "
  9186. >
  9187. <div
  9188. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9189. :key="tIndex"
  9190. class="timuImg"
  9191. @click.stop="previewImg(timg.src)"
  9192. >
  9193. <img :src="timg.src" alt="" />
  9194. </div>
  9195. </div>
  9196. <div class="a_add_body">
  9197. <div class="a_add_input">
  9198. <el-radio-group
  9199. v-model="radio[index1]"
  9200. v-if="testJson.testJson[index1].type == '1'"
  9201. >
  9202. <div class="radioBox">
  9203. <el-radio
  9204. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9205. .checkList"
  9206. :key="checkIndex"
  9207. :label="checkIndex"
  9208. :disabled="isAnswer"
  9209. class="redioStyle"
  9210. >
  9211. <div
  9212. style="margin-right: 10px"
  9213. v-if="item2 && item2.imgType && item2.imgType == 1"
  9214. >
  9215. <div class="inImg" @click.stop="previewImg(item2.src)">
  9216. <img :src="item2.src" alt="" />
  9217. </div>
  9218. </div>
  9219. <span v-else v-html="item2"></span>
  9220. </el-radio>
  9221. </div>
  9222. </el-radio-group>
  9223. <el-checkbox-group
  9224. v-model="radio[index1]"
  9225. v-if="testJson.testJson[index1].type == '2'"
  9226. >
  9227. <div class="radioBox">
  9228. <el-checkbox
  9229. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9230. .checkList"
  9231. :key="checkIndex"
  9232. :label="checkIndex"
  9233. :disabled="isAnswer"
  9234. class="redioStyle"
  9235. >
  9236. <div
  9237. style="margin-right: 10px"
  9238. v-if="item2 && item2.imgType && item2.imgType == 1"
  9239. >
  9240. <div class="inImg" @click.stop="previewImg(item2.src)">
  9241. <img :src="item2.src" alt="" />
  9242. </div>
  9243. </div>
  9244. <span v-else v-html="item2"></span>
  9245. </el-checkbox>
  9246. </div>
  9247. </el-checkbox-group>
  9248. </div>
  9249. </div>
  9250. </div>
  9251. </div>
  9252. </div>
  9253. <span slot="footer" class="dialog-footer">
  9254. <el-button
  9255. @click="dialogVisibleChoiceTeacher = false"
  9256. v-show="noteName == ''"
  9257. >{{lang.ssCancel}}</el-button
  9258. >
  9259. <el-button
  9260. type="primary"
  9261. @click="addStudentTestTeacher"
  9262. v-show="noteName == ''"
  9263. >{{lang.ssConfirm}}</el-button
  9264. >
  9265. </span>
  9266. </el-dialog>
  9267. <el-dialog
  9268. :title="lang.ssViewRichText"
  9269. :visible.sync="dialogVisible1"
  9270. :append-to-body="true"
  9271. width="500px"
  9272. :before-close="handleClose"
  9273. class="dialog_diy textCss"
  9274. >
  9275. <el-form style="font-size: 20px">
  9276. <el-form-item :label="lang.ssTextTitle" class="textTitle">
  9277. <div style="font-size: 20px">{{ text.name }}</div>
  9278. </el-form-item>
  9279. <div>{{ lang.ssRichTextContent }}</div>
  9280. <div
  9281. v-html="text.url"
  9282. style="font-size: 18px; padding: 40px 0 0 0"
  9283. ></div>
  9284. </el-form>
  9285. <span slot="footer" class="dialog-footer">
  9286. <el-button type="primary" @click="dialogVisible1 = false"
  9287. >{{ lang.ssConfirm }}</el-button
  9288. >
  9289. </span>
  9290. </el-dialog>
  9291. <el-dialog
  9292. :title="lang.ssFilePreview"
  9293. :visible.sync="dialogVisible3"
  9294. width="50%"
  9295. :before-close="handleClose"
  9296. class="dialog_diy"
  9297. :class="{ fullStyle: full }"
  9298. >
  9299. <div slot="title" class="header-title">
  9300. <div style="color: #fff">{{lang.ssFilePreview}}</div>
  9301. <div style="position: absolute; top: 19px; right: 50px">
  9302. <img
  9303. src="../../assets/full.png"
  9304. style="height: 16px; cursor: pointer"
  9305. alt=""
  9306. @click="fullTools"
  9307. />
  9308. </div>
  9309. </div>
  9310. <pdf
  9311. v-if="showPDF"
  9312. :pdfUrl="pptImgUrl"
  9313. style="width: 100%; height: 520px; overflow: auto"
  9314. :class="{ fullStyle: full }"
  9315. ></pdf>
  9316. <iframe
  9317. v-else
  9318. :src="pptImgUrl"
  9319. frameborder="0"
  9320. width="100%"
  9321. height="600"
  9322. :class="{ fullStyle: full }"
  9323. ></iframe>
  9324. </el-dialog>
  9325. <el-dialog
  9326. :title="lang.ssFilePreview"
  9327. :visible.sync="dialogVisible6"
  9328. width="50%"
  9329. :before-close="handleClose"
  9330. class="dialog_diy"
  9331. >
  9332. <iframe
  9333. :src="pptImgUrl1"
  9334. frameborder="0"
  9335. width="100%"
  9336. height="600"
  9337. ></iframe>
  9338. </el-dialog>
  9339. <el-dialog
  9340. :title="lang.ssPrompt"
  9341. :visible.sync="dialogVisible4"
  9342. :append-to-body="true"
  9343. width="800px"
  9344. :before-close="handleClose"
  9345. class="dialog_diy notice"
  9346. >
  9347. <div>{{lang.ssFeatureNotAvail}}</div>
  9348. <el-button type="primary" @click="dialogVisible4 = false">{{lang.ssConfirm}}</el-button>
  9349. </el-dialog>
  9350. <el-dialog
  9351. :title="lang.ssQa"
  9352. :visible.sync="answerDialogVisible"
  9353. :append-to-body="true"
  9354. width="800px"
  9355. :before-close="handleClose"
  9356. class="dialog_diy"
  9357. >
  9358. <div>
  9359. <div
  9360. style="
  9361. display: flex;
  9362. flex-wrap: nowrap;
  9363. flex-direction: column;
  9364. position: relative;
  9365. "
  9366. >
  9367. <div class="queTop" style="padding: 20px 0 20px 0">
  9368. <div class="question">
  9369. <img src="../../assets/icon/question.png" alt />
  9370. </div>
  9371. <div class="queTitle">
  9372. <div style="min-width: 60px">{{lang.ssAsk}}:</div>
  9373. <div>{{ answerQ }}</div>
  9374. </div>
  9375. </div>
  9376. <div class="ediBottom">
  9377. <textarea
  9378. rows="6"
  9379. class="binfo_input"
  9380. cols
  9381. style="width: 95%; height: 120px"
  9382. v-model="questionAnswer"
  9383. ></textarea>
  9384. </div>
  9385. </div>
  9386. </div>
  9387. <div slot="footer">
  9388. <el-button @click="answerDialogVisible = false">{{lang.ssCancel}}</el-button>
  9389. <el-button type="primary" @click="addQuestion">{{lang.ssSubmitAnswer}}</el-button>
  9390. </div>
  9391. </el-dialog>
  9392. <el-dialog
  9393. :title="lang.ssQa"
  9394. :visible.sync="answerDialogVisibleTeacher"
  9395. :append-to-body="true"
  9396. width="800px"
  9397. :before-close="handleClose"
  9398. class="dialog_diy"
  9399. >
  9400. <div>
  9401. <div class="w_name">
  9402. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  9403. </div>
  9404. <div
  9405. style="
  9406. display: flex;
  9407. flex-wrap: nowrap;
  9408. flex-direction: column;
  9409. position: relative;
  9410. "
  9411. >
  9412. <div class="queTop" style="padding: 20px 0 20px 0">
  9413. <div class="question">
  9414. <img src="../../assets/icon/question.png" alt />
  9415. </div>
  9416. <div class="queTitle">
  9417. <div style="min-width: 60px">{{lang.ssAsk}}:</div>
  9418. <div>{{ answerQ }}</div>
  9419. </div>
  9420. </div>
  9421. <div class="ediBottom">
  9422. <textarea
  9423. rows="6"
  9424. class="binfo_input"
  9425. cols
  9426. style="width: 95%; height: 120px"
  9427. v-model="questionAnswer"
  9428. ></textarea>
  9429. </div>
  9430. </div>
  9431. </div>
  9432. <div slot="footer">
  9433. <el-button @click="answerDialogVisibleTeacher = false">{{lang.ssCancel}}</el-button>
  9434. <el-button type="primary" @click="addQuestionTeacher">{{lang.ssSubmitAnswer}}</el-button>
  9435. </div>
  9436. </el-dialog>
  9437. <el-dialog
  9438. :title="lang.ssCountdown"
  9439. :visible.sync="timeDialogVisible"
  9440. :append-to-body="true"
  9441. width="800px"
  9442. :before-close="handleClose"
  9443. class="dialog_diy"
  9444. >
  9445. <div>
  9446. <div style="margin-bottom: 20px; color: #999">
  9447. {{lang.ssCountdownHint}}
  9448. </div>
  9449. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9450. </div>
  9451. <div slot="footer">
  9452. <el-button @click="timeDialogVisible = false">{{lang.ssCloseBtn}}</el-button>
  9453. </div>
  9454. </el-dialog>
  9455. <el-dialog
  9456. :title="lang.ssPermissionSetting"
  9457. :visible.sync="juriVisible"
  9458. :append-to-body="true"
  9459. width="400px"
  9460. :before-close="handleClose"
  9461. class="dialog_diy"
  9462. >
  9463. <div>
  9464. <div class="open_box">
  9465. <div class="switch_box">
  9466. <span>{{ lang.ssAllowViewAllHomework }}</span>
  9467. <el-switch
  9468. v-model="sIsOpen"
  9469. active-text=""
  9470. class="switchCss"
  9471. @change="updateSLook"
  9472. ></el-switch>
  9473. </div>
  9474. <div
  9475. class="switch_box"
  9476. v-if="
  9477. (courseDetail.userid == userid ||
  9478. (courseDetail.course_teacher &&
  9479. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  9480. "
  9481. >
  9482. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9483. <span>{{ lang.ssProhibitViewStage }}</span>
  9484. <el-switch
  9485. v-model="IsLookOpen"
  9486. active-text=""
  9487. class="switchCss"
  9488. @change="updateLookOpen"
  9489. ></el-switch>
  9490. </div>
  9491. <div class="switch_box" v-if="(courseDetail.userid == userid ||
  9492. (courseDetail.course_teacher &&
  9493. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen">
  9494. <span>{{ lang.ssEnableFollowMode }}</span>
  9495. <el-switch
  9496. v-model="IsFollow"
  9497. active-text=""
  9498. class="switchCss"
  9499. @change="updateFollow"
  9500. ></el-switch>
  9501. </div>
  9502. <div class="switch_box" v-if="courseDetail.userid == userid">
  9503. <span>{{ lang.ssAllowViewContent }}</span>
  9504. <el-switch
  9505. v-model="IsStulook"
  9506. active-text=""
  9507. class="switchCss"
  9508. @change="updateIsStulook"
  9509. ></el-switch>
  9510. </div>
  9511. </div>
  9512. </div>
  9513. <div slot="footer">
  9514. <el-button
  9515. style="background: #409efe; color: #fff"
  9516. @click="juriVisible = false"
  9517. >{{lang.ssCloseBtn}}</el-button
  9518. >
  9519. </div>
  9520. </el-dialog>
  9521. <el-dialog
  9522. :title="lang.ssViewVideo"
  9523. :visible.sync="videoVisible"
  9524. :append-to-body="true"
  9525. width="1000px"
  9526. :before-close="handleClose"
  9527. class="dialog_diy1"
  9528. >
  9529. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9530. <video-player
  9531. class="video-player vjs-custom-skin"
  9532. :playsinline="true"
  9533. :options="videoDetail"
  9534. @play="onPlayerPlay($event)"
  9535. style="width: 100%; height: 100%"
  9536. ></video-player>
  9537. </div>
  9538. <div slot="footer">
  9539. <el-button
  9540. style="background: #409efe; color: #fff"
  9541. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9542. >
  9543. {{ lang.ssCloseBtn }}</el-button
  9544. >
  9545. </div>
  9546. </el-dialog>
  9547. <el-dialog
  9548. :title="lang.ssViewDetails"
  9549. :visible.sync="commentDialogVisible"
  9550. :append-to-body="true"
  9551. width="800px"
  9552. :before-close="handleClose"
  9553. class="dialog_diy"
  9554. >
  9555. <div class="commentTop">
  9556. <div class="studentDetail">
  9557. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9558. <div class="nameAndTime">
  9559. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9560. <div>{{ commentDetail.time }}</div>
  9561. </div>
  9562. <div
  9563. class="returnBtn"
  9564. style="margin-left: auto; width: 80px"
  9565. v-if="
  9566. commentDetail.works &&
  9567. commentDetail.type == 0 &&
  9568. (tType == 1 || tType == 4)
  9569. "
  9570. @click="
  9571. showPicturePaint(
  9572. commentDetail.img ? commentDetail.img : commentDetail.works
  9573. )
  9574. "
  9575. >
  9576. {{ lang.ssTeacherAnnotation }}
  9577. </div>
  9578. </div>
  9579. <div
  9580. class="worksAnswer"
  9581. v-if="commentDetail.works && commentDetail.type == 2"
  9582. >
  9583. {{ JSON.parse(commentDetail.works)[0].answer }}
  9584. </div>
  9585. <div
  9586. class="worksAnswer"
  9587. v-if="commentDetail.works && commentDetail.type == 1"
  9588. >
  9589. <img
  9590. src="../../assets/teacherWork.png"
  9591. v-if="commentDetail.ateacher"
  9592. class="w_teachert"
  9593. />
  9594. <pdf
  9595. v-if="showPDF"
  9596. :pdfUrl="pptImgUrl"
  9597. style="width: 100%; height: 520px; overflow: auto"
  9598. :class="{ fullStyle: full }"
  9599. ></pdf>
  9600. <iframe
  9601. v-else
  9602. :src="pptImgUrl"
  9603. frameborder="0"
  9604. width="100%"
  9605. height="600"
  9606. :class="{ fullStyle: full }"
  9607. ></iframe>
  9608. </div>
  9609. <div
  9610. class="worksAnswer"
  9611. v-if="commentDetail.works && commentDetail.type == 0"
  9612. >
  9613. <img
  9614. src="../../assets/teacherWork.png"
  9615. v-if="commentDetail.ateacher"
  9616. class="w_teachert"
  9617. style="right: 105px"
  9618. />
  9619. <img
  9620. :src="commentDetail.works"
  9621. alt=""
  9622. @click="previewImg(commentDetail.works)"
  9623. />
  9624. </div>
  9625. <div
  9626. class="worksAnswer"
  9627. v-if="commentDetail.works && commentDetail.type == 3"
  9628. >
  9629. <img
  9630. src="../../assets/teacherWork.png"
  9631. v-if="commentDetail.ateacher"
  9632. class="w_teachert"
  9633. />
  9634. <video-player
  9635. class="video-player vjs-custom-skin"
  9636. :playsinline="true"
  9637. :options="videoDetail"
  9638. @play="onPlayerPlay($event)"
  9639. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9640. ></video-player>
  9641. </div>
  9642. <div
  9643. class="worksAnswer"
  9644. v-if="commentDetail.works && commentDetail.type == 10"
  9645. >
  9646. <div class="cont" v-html="commentDetail.works.text"></div>
  9647. </div>
  9648. <div
  9649. class="worksAnswer codeFileBox"
  9650. v-if="commentDetail.works && commentDetail.type == 12"
  9651. @click="downloadFile(commentDetail.works)"
  9652. >
  9653. <img src="../../assets/icon/codeFile.png" />
  9654. <div>{{ lang.ssClickDownloadFile }}</div>
  9655. </div>
  9656. <div
  9657. class="worksAnswer codeFileBox"
  9658. v-if="commentDetail.works && commentDetail.type == 15"
  9659. @click="
  9660. openCocoPi(
  9661. 57,
  9662. commentIndexJson.toolIndex,
  9663. commentDetail.userid,
  9664. commentDetail.sName
  9665. )
  9666. "
  9667. >
  9668. <img src="../../assets/icon/codeFile.png" />
  9669. <div>{{ lang.ssClickOpenCocoPi }}</div>
  9670. </div>
  9671. <div
  9672. class="worksAnswer"
  9673. v-if="commentDetail.works && commentDetail.type == 13"
  9674. >
  9675. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9676. </div>
  9677. <div
  9678. class="worksAnswer"
  9679. v-if="commentDetail.works && commentDetail.type == 4"
  9680. >
  9681. <div class="evalCss">
  9682. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  9683. <div class="middleBox" v-if="eScore.eStar">
  9684. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9685. <div class="nameAndrate">
  9686. <div>{{ e.value }}</div>
  9687. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9688. </div>
  9689. <div v-if="e.detail">{{ e.detail }}</div>
  9690. </div>
  9691. <div class="bz">
  9692. <textarea
  9693. disabled
  9694. rows="4"
  9695. class="pj"
  9696. style="
  9697. padding: 10px 5px;
  9698. width: 70%;
  9699. background: #f7f6f9;
  9700. font-size: 14px;
  9701. text-indent: 10px;
  9702. color: #000;
  9703. "
  9704. cols
  9705. v-model="eScore.eBzText"
  9706. :placeholder="lang.ssEnterEvalContent"
  9707. ></textarea>
  9708. </div>
  9709. </div>
  9710. </div>
  9711. </div>
  9712. <div class="comment">
  9713. <div class="commentList">
  9714. <div class="commentImg">
  9715. <img
  9716. @click="
  9717. isLikes(
  9718. commentDetail.wid,
  9719. userid,
  9720. 1,
  9721. null,
  9722. commentDetail.isLikes,
  9723. commentDetail.sName
  9724. )
  9725. "
  9726. :src="commentDetail.isLikes == true ? likes : noLikes"
  9727. alt=""
  9728. />
  9729. </div>
  9730. <div>{{ commentDetail.likesCount }}</div>
  9731. </div>
  9732. <div class="commentList">
  9733. <div class="commentImg">
  9734. <img src="../../assets/icon/comment/comment.png" alt="" />
  9735. </div>
  9736. <div>{{ commentDetail.commentCount }}</div>
  9737. </div>
  9738. </div>
  9739. <div class="drawPBox" v-if="commentDetail.img">
  9740. <span>{{ lang.ssTeacherAnnotation }}</span>
  9741. <img
  9742. :src="commentDetail.img"
  9743. alt=""
  9744. @click="previewImg(commentDetail.img)"
  9745. />
  9746. <span
  9747. class="deleteImg"
  9748. v-if="tType == 1 || tType == 4"
  9749. @click.stop="deletePicturePaint(commentDetail.wid)"
  9750. style="
  9751. font-size: 14px;
  9752. width: auto !important;
  9753. color: #b4b4b4;
  9754. top: unset;
  9755. bottom: 0;
  9756. border: none;
  9757. padding: 0;
  9758. height: auto !important;
  9759. margin: 0;
  9760. "
  9761. >{{lang.ssDelete}}</span
  9762. >
  9763. </div>
  9764. </div>
  9765. <div class="commentBox">
  9766. <div class="pl">{{lang.ssCommentLabel}}</div>
  9767. <div style="max-height: 200px; overflow: auto">
  9768. <div
  9769. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9770. style="padding: 10px 0 0 0"
  9771. >
  9772. <div
  9773. class="studentDetail"
  9774. style="padding-top: 10px"
  9775. v-for="(co, coIndex) in commentDetail.commentJson"
  9776. :key="coIndex"
  9777. >
  9778. <div class="tx" style="min-width: 50px">
  9779. <img src="../../assets/avatar.png" alt="" />
  9780. </div>
  9781. <div class="plPerson">
  9782. <div class="plName">
  9783. <div>{{ co.commentPeople }}</div>
  9784. <div style="margin-left: 5px">
  9785. {{ co.commentTime }}
  9786. </div>
  9787. <div
  9788. class="deleteComment"
  9789. v-if="userid == co.userid"
  9790. @click="deleteComment(co.wid)"
  9791. >
  9792. {{lang.ssDelete}}
  9793. </div>
  9794. </div>
  9795. <div class="plContent">{{ co.commentText }}</div>
  9796. </div>
  9797. </div>
  9798. </div>
  9799. <div v-else style="padding: 10px 0 0 0">{{ lang.ssNoComments }}</div>
  9800. </div>
  9801. </div>
  9802. <div style="margin-top: 10px">
  9803. <div class="displayBox">
  9804. <div
  9805. style="
  9806. color: #556db4;
  9807. font-size: 14px;
  9808. font-weight: bold;
  9809. padding-bottom: 10px;
  9810. "
  9811. >
  9812. {{ lang.ssEvaluation }}
  9813. </div>
  9814. <div class="easy_comment" v-if="false">
  9815. <div
  9816. v-for="(p, pIndex) in PlTextList"
  9817. :key="pIndex"
  9818. @click="fastText(p, 1)"
  9819. >
  9820. {{ p }}
  9821. </div>
  9822. </div>
  9823. </div>
  9824. <div>
  9825. <textarea
  9826. rows="3"
  9827. class="pj"
  9828. style="padding: 10px 5px"
  9829. cols
  9830. v-model="commentText"
  9831. :placeholder="lang.ssEnterComment"
  9832. ></textarea>
  9833. </div>
  9834. </div>
  9835. <div slot="footer">
  9836. <el-button
  9837. @click="
  9838. (commentDialogVisible = false),
  9839. (commentIndexJson = {}),
  9840. videoDetail.sources && videoDetail.sources[0]
  9841. ? (videoDetail.sources[0].src = '')
  9842. : ''
  9843. "
  9844. >{{lang.ssCancel}}</el-button
  9845. >
  9846. <el-button
  9847. type="primary"
  9848. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  9849. >{{lang.ssConfirm}}</el-button
  9850. >
  9851. </div>
  9852. </el-dialog>
  9853. <el-dialog
  9854. :title="lang.ssViewDoc"
  9855. :visible.sync="fullDialogVisible"
  9856. :append-to-body="true"
  9857. width="100%"
  9858. :before-close="handleClose"
  9859. :show-close="false"
  9860. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  9861. >
  9862. <div slot="title" class="header-title">
  9863. <div v-if="fulltype == 4" style="color: #fff">{{ lang.ssAIApplication }}</div>
  9864. <div v-else style="color: #fff">{{ lang.ssViewDoc }}</div>
  9865. <div
  9866. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  9867. style="
  9868. cursor: pointer;
  9869. position: absolute;
  9870. top: 20px;
  9871. right: 20px;
  9872. color: #fff;
  9873. "
  9874. >
  9875. {{ lang.ssExitFullscreen }}
  9876. </div>
  9877. </div>
  9878. <div style="height: 100%;position: relative;">
  9879. <el-button
  9880. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  9881. size="medium"
  9882. type="primary"
  9883. @click="
  9884. () => {
  9885. (fullDialogVisible = false),
  9886. changeSplitScreenBehavior({ code: 99 });
  9887. }
  9888. "
  9889. style="
  9890. cursor: pointer;
  9891. position: absolute;
  9892. top: 10px;
  9893. right: 20px;
  9894. color: #fff;
  9895. "
  9896. >
  9897. {{ lang.ssExitFullscreen }}
  9898. </el-button>
  9899. <div
  9900. class="wheel"
  9901. v-if="fulltype == 1"
  9902. style="
  9903. box-shadow: 0 0 6px 1px #f2f2f2;
  9904. height:100%;
  9905. width: 100%;
  9906. background: #f1f1f1;
  9907. "
  9908. >
  9909. <div class="title" style="width: 100%; box-sizing: border-box">
  9910. {{ lang.ssViewDoc }}
  9911. </div>
  9912. <el-form class="textBox" style="height: 90%">
  9913. <el-form-item class="textTitle">
  9914. <div style="font-size: 22px">
  9915. {{ fullUrl.name }}
  9916. </div>
  9917. </el-form-item>
  9918. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9919. <div
  9920. v-html="fullUrl.url"
  9921. class="textContent"
  9922. style="height: auto"
  9923. ></div>
  9924. </el-form>
  9925. </div>
  9926. <div
  9927. class="wheel"
  9928. v-else-if="
  9929. (fulltype == 2 || fulltype == 4) &&
  9930. fullUrl.indexOf(
  9931. 'https://view.officeapps.live.com/op/view.aspx?src='
  9932. ) != -1
  9933. "
  9934. style="width: 100%;height:100%; margin: 0 auto"
  9935. >
  9936. <iframe
  9937. style="width: 100%; height: 100%; border: none"
  9938. :src="fullUrl"
  9939. ></iframe>
  9940. </div>
  9941. <iframe
  9942. style="width: 100%; height: 100%; border: none"
  9943. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  9944. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo')!=-1)"
  9945. :src="fullUrl"
  9946. ></iframe>
  9947. <iframe
  9948. style="width: 100%; height: 100%; border: none"
  9949. security="restricted"
  9950. v-else-if="(fulltype == 2 || fulltype == 4)"
  9951. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9952. :src="fullUrl"
  9953. ></iframe>
  9954. <pdf
  9955. v-else-if="fulltype == 3"
  9956. :pdfUrl="fullUrl"
  9957. style="width: 100%; height: 100%; overflow: auto"
  9958. ></pdf>
  9959. <iframe
  9960. style="width: 100%; height: 100%; border: none"
  9961. security="restricted"
  9962. v-else-if="(fulltype == 16) && (fullUrl.indexOf('cocorobo')!=-1)"
  9963. :src="fullUrl"
  9964. ></iframe>
  9965. <iframe
  9966. style="width: 100%; height: 100%; border: none"
  9967. security="restricted"
  9968. v-else
  9969. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9970. :src="fullUrl"
  9971. ></iframe>
  9972. </div>
  9973. <!-- <div slot="footer">
  9974. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9975. </div> -->
  9976. </el-dialog>
  9977. <el-dialog
  9978. :title="lang.ssPersonalEval"
  9979. :visible.sync="studentEvalDialogVisible"
  9980. :append-to-body="true"
  9981. width="800px"
  9982. :before-close="handleClose"
  9983. class="dialog_diy"
  9984. >
  9985. <div class="evalCss">
  9986. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  9987. <div class="middleBox" v-if="eScore.eStar">
  9988. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9989. <div class="nameAndrate">
  9990. <div>{{ e.value }}</div>
  9991. <el-rate
  9992. v-model="eScore.eStar[eIndex]"
  9993. :disabled="isStar"
  9994. ></el-rate>
  9995. </div>
  9996. <div v-if="e.detail">{{ e.detail }}</div>
  9997. </div>
  9998. <div class="easy_comment" v-if="false">
  9999. <div
  10000. v-for="(p, pIndex) in PlTextList"
  10001. :key="pIndex"
  10002. @click="fastText(p, 2)"
  10003. >
  10004. {{ p }}
  10005. </div>
  10006. </div>
  10007. <div class="bz">
  10008. <textarea
  10009. :disabled="isStar"
  10010. rows="4"
  10011. class="pj"
  10012. style="
  10013. padding: 10px 5px;
  10014. width: 70%;
  10015. background: #f7f6f9;
  10016. font-size: 14px;
  10017. text-indent: 10px;
  10018. "
  10019. cols
  10020. v-model="eScore.eBzText"
  10021. :placeholder="lang.ssEnterEvalContent"
  10022. ></textarea>
  10023. </div>
  10024. </div>
  10025. </div>
  10026. <div slot="footer">
  10027. <el-button @click="studentEvalDialogVisible = false">{{lang.ssCancel}}</el-button>
  10028. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10029. >{{lang.ssConfirm}}</el-button
  10030. >
  10031. </div>
  10032. </el-dialog>
  10033. <el-dialog
  10034. :title="lang.ssPersonalEval"
  10035. :visible.sync="studentEvalDialogVisibleTeacher"
  10036. :append-to-body="true"
  10037. width="800px"
  10038. :before-close="handleClose"
  10039. class="dialog_diy"
  10040. >
  10041. <div class="w_name">
  10042. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  10043. </div>
  10044. <div class="evalCss">
  10045. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  10046. <div class="middleBox" v-if="eScore.eStar">
  10047. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10048. <div class="nameAndrate">
  10049. <div>{{ e.value }}</div>
  10050. <el-rate
  10051. v-model="eScore.eStar[eIndex]"
  10052. :disabled="isStar"
  10053. ></el-rate>
  10054. </div>
  10055. <div v-if="e.detail">{{ e.detail }}</div>
  10056. </div>
  10057. <div class="easy_comment" v-if="false">
  10058. <div
  10059. v-for="(p, pIndex) in PlTextList"
  10060. :key="pIndex"
  10061. @click="fastText(p, 2)"
  10062. >
  10063. {{ p }}
  10064. </div>
  10065. </div>
  10066. <div class="bz">
  10067. <textarea
  10068. :disabled="isStar"
  10069. rows="4"
  10070. class="pj"
  10071. style="
  10072. padding: 10px 5px;
  10073. width: 70%;
  10074. background: #f7f6f9;
  10075. font-size: 14px;
  10076. text-indent: 10px;
  10077. "
  10078. cols
  10079. v-model="eScore.eBzText"
  10080. :placeholder="lang.ssEnterEvalContent"
  10081. ></textarea>
  10082. </div>
  10083. </div>
  10084. </div>
  10085. <div slot="footer">
  10086. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10087. >{{lang.ssCancel}}</el-button
  10088. >
  10089. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10090. >{{lang.ssConfirm}}</el-button
  10091. >
  10092. </div>
  10093. </el-dialog>
  10094. <el-dialog
  10095. :title="lang.ssMatch"
  10096. :visible.sync="dialogVisibleSelect"
  10097. :append-to-body="true"
  10098. width="90%"
  10099. :before-close="handleClose"
  10100. class="dialog_diy dialog_diy3"
  10101. >
  10102. <div v-if="selectJson">
  10103. <div class="select_box2">
  10104. <div class="select_box2_title">
  10105. <div>{{ lang.ssMatch }}</div>
  10106. <div>{{ lang.ssSelectCorrespondingAnswer }}</div>
  10107. </div>
  10108. <div class="select_box2_box">
  10109. <div class="select_box2_img">
  10110. <img
  10111. :src="selectJson.url"
  10112. @click="previewImg(selectJson.url)"
  10113. alt=""
  10114. />
  10115. </div>
  10116. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10117. <div style="padding-top: 15px">
  10118. <div class="select_answer_title" v-if="isSelect">
  10119. {{ selectAnswer.stu }}
  10120. </div>
  10121. <div class="select_answer_title" v-else>
  10122. {{ lang.ssSelectAnswerByQuestion }}
  10123. </div>
  10124. <div
  10125. class="select_box2_answer_box"
  10126. v-for="(item2, checkIndex) in selectJson.select"
  10127. :key="checkIndex"
  10128. >
  10129. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10130. <el-select
  10131. :disabled="isSelect"
  10132. v-model="selectAnswer.answer[checkIndex]"
  10133. :placeholder="lang.ssSelectCorrectAnswer"
  10134. >
  10135. <el-option
  10136. v-for="(e, eIndex) in selectJson.select"
  10137. :key="eIndex"
  10138. :label="e"
  10139. :value="eIndex"
  10140. >
  10141. </el-option>
  10142. </el-select>
  10143. </div>
  10144. </div>
  10145. <div
  10146. class="rightAnswerCss"
  10147. v-if="isSelect && (tType == 1 || tType == 4)"
  10148. >
  10149. <div
  10150. v-for="(a, aIndex) in selectJson.answer"
  10151. :key="aIndex"
  10152. class="rightAnswer"
  10153. >
  10154. <div
  10155. v-if="selectAnswer.answer[aIndex] === a"
  10156. style="color: #767de1"
  10157. >
  10158. {{ lang.ssAnswerCorrect }}
  10159. </div>
  10160. <div v-else>{{ lang.ssAnswerWrong }}</div>
  10161. <div
  10162. style="margin-left: 10px"
  10163. v-if="selectAnswer.answer[aIndex] !== a"
  10164. >
  10165. {{ lang.ssCorrectAnswer }}
  10166. </div>
  10167. <div
  10168. :class="
  10169. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10170. "
  10171. >
  10172. {{ selectJson.select[a] }}
  10173. </div>
  10174. </div>
  10175. </div>
  10176. </div>
  10177. <div class="upAnswerCss">
  10178. <el-button
  10179. type="primary"
  10180. @click="addSelectAnswer"
  10181. v-if="!isSelect"
  10182. >{{ lang.ssSubmitAnswer }}</el-button
  10183. >
  10184. </div>
  10185. </div>
  10186. </div>
  10187. </div>
  10188. </el-dialog>
  10189. <el-dialog
  10190. :title="lang.ssMatch"
  10191. :visible.sync="dialogVisibleSelectTeacher"
  10192. :append-to-body="true"
  10193. width="90%"
  10194. :before-close="handleClose"
  10195. class="dialog_diy dialog_diy3"
  10196. >
  10197. <div v-if="selectJson">
  10198. <div class="w_name">
  10199. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  10200. </div>
  10201. <div class="select_box2">
  10202. <div class="select_box2_title">
  10203. <div>{{ lang.ssMatch }}</div>
  10204. <div>{{ lang.ssSelectCorrespondingAnswer }}</div>
  10205. </div>
  10206. <div class="select_box2_box">
  10207. <div class="select_box2_img">
  10208. <img
  10209. :src="selectJson.url"
  10210. @click="previewImg(selectJson.url)"
  10211. alt=""
  10212. />
  10213. </div>
  10214. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10215. <div style="padding-top: 15px">
  10216. <div class="select_answer_title" v-if="isSelect">
  10217. {{ selectAnswer.stu }}
  10218. </div>
  10219. <div class="select_answer_title" v-else>
  10220. {{ lang.ssSelectAnswerByQuestion }}
  10221. </div>
  10222. <div
  10223. class="select_box2_answer_box"
  10224. v-for="(item2, checkIndex) in selectJson.select"
  10225. :key="checkIndex"
  10226. >
  10227. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10228. <el-select
  10229. :disabled="isSelect"
  10230. v-model="selectAnswer.answer[checkIndex]"
  10231. :placeholder="lang.ssSelectCorrectAnswer"
  10232. >
  10233. <el-option
  10234. v-for="(e, eIndex) in selectJson.select"
  10235. :key="eIndex"
  10236. :label="e"
  10237. :value="eIndex"
  10238. >
  10239. </el-option>
  10240. </el-select>
  10241. </div>
  10242. </div>
  10243. <div
  10244. class="rightAnswerCss"
  10245. v-if="isSelect && (tType == 1 || tType == 4)"
  10246. >
  10247. <div
  10248. v-for="(a, aIndex) in selectJson.answer"
  10249. :key="aIndex"
  10250. class="rightAnswer"
  10251. >
  10252. <div
  10253. v-if="selectAnswer.answer[aIndex] === a"
  10254. style="color: #767de1"
  10255. >
  10256. {{ lang.ssAnswerCorrect }}
  10257. </div>
  10258. <div v-else>{{ lang.ssAnswerWrong }}</div>
  10259. <div
  10260. style="margin-left: 10px"
  10261. v-if="selectAnswer.answer[aIndex] !== a"
  10262. >
  10263. {{ lang.ssCorrectAnswer }}
  10264. </div>
  10265. <div
  10266. :class="
  10267. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10268. "
  10269. >
  10270. {{ selectJson.select[a] }}
  10271. </div>
  10272. </div>
  10273. </div>
  10274. </div>
  10275. <div class="upAnswerCss">
  10276. <el-button
  10277. type="primary"
  10278. @click="addSelectAnswerTeacher"
  10279. v-if="!isSelect"
  10280. >{{ lang.ssSubmitAnswer }}</el-button
  10281. >
  10282. </div>
  10283. </div>
  10284. </div>
  10285. </div>
  10286. </el-dialog>
  10287. <el-dialog
  10288. :title="lang.ssTeacherScoring"
  10289. :visible.sync="dialogVisibleScore"
  10290. :append-to-body="true"
  10291. width="800px"
  10292. :before-close="handleClose"
  10293. class="dialog_diy"
  10294. >
  10295. <div>
  10296. <div class="studentDetail">
  10297. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10298. <div class="nameAndTime">
  10299. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10300. <div>{{ commentDetail.time }}</div>
  10301. </div>
  10302. </div>
  10303. <div
  10304. class="worksAnswer"
  10305. v-if="commentDetail.works && commentDetail.type == 2"
  10306. >
  10307. {{ JSON.parse(commentDetail.works)[0].answer }}
  10308. </div>
  10309. <div
  10310. class="worksAnswer"
  10311. v-if="commentDetail.works && commentDetail.type == 1"
  10312. >
  10313. <pdf
  10314. v-if="showPDF"
  10315. :pdfUrl="pptImgUrl"
  10316. style="width: 100%; height: 520px; overflow: auto"
  10317. :class="{ fullStyle: full }"
  10318. ></pdf>
  10319. <iframe
  10320. v-else
  10321. :src="pptImgUrl"
  10322. frameborder="0"
  10323. width="100%"
  10324. height="600"
  10325. :class="{ fullStyle: full }"
  10326. ></iframe>
  10327. </div>
  10328. <div
  10329. class="worksAnswer"
  10330. v-if="commentDetail.works && commentDetail.type == 0"
  10331. >
  10332. <img
  10333. :src="commentDetail.works"
  10334. alt=""
  10335. @click="previewImg(commentDetail.works)"
  10336. />
  10337. </div>
  10338. <div
  10339. class="worksAnswer"
  10340. v-if="commentDetail.works && commentDetail.type == 3"
  10341. >
  10342. <video-player
  10343. class="video-player vjs-custom-skin"
  10344. :playsinline="true"
  10345. :options="videoDetail"
  10346. @play="onPlayerPlay($event)"
  10347. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10348. ></video-player>
  10349. </div>
  10350. <div
  10351. class="worksAnswer codeFileBox"
  10352. v-if="commentDetail.works && commentDetail.type == 12"
  10353. @click="downloadFile(commentDetail.works)"
  10354. >
  10355. <img src="../../assets/icon/codeFile.png" />
  10356. <div>{{ lang.ssClickDownloadFile }}</div>
  10357. </div>
  10358. <div
  10359. class="worksAnswer codeFileBox"
  10360. v-if="commentDetail.works && commentDetail.type == 15"
  10361. @click="
  10362. openCocoPi(
  10363. 57,
  10364. commentIndexJson.toolIndex,
  10365. commentDetail.userid,
  10366. commentDetail.sName
  10367. )
  10368. "
  10369. >
  10370. <img src="../../assets/icon/codeFile.png" />
  10371. <div>{{ lang.ssClickOpenCocoPi }}</div>
  10372. </div>
  10373. <div
  10374. class="worksAnswer"
  10375. v-if="commentDetail.works && commentDetail.type == 13"
  10376. >
  10377. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10378. </div>
  10379. <div class="scoreBox">
  10380. <span class="t">{{ lang.ssEnterScore }}</span>
  10381. <el-input-number
  10382. :disabled="courseDetail.userid != userid"
  10383. v-model="wScore"
  10384. :controls="false"
  10385. :min="0"
  10386. :max="100"
  10387. ></el-input-number>
  10388. </div>
  10389. <div class="scoreDetailBox">
  10390. <span class="t">{{ lang.ssScoringComment }}</span>
  10391. <el-input
  10392. type="textarea"
  10393. :rows="5"
  10394. :disabled="courseDetail.userid != userid"
  10395. resize="none"
  10396. v-model="scoreDetail"
  10397. :placeholder="lang.ssEnterStudentEvaluation"
  10398. >
  10399. </el-input>
  10400. </div>
  10401. </div>
  10402. <span slot="footer" class="dialog-footer">
  10403. <el-button
  10404. @click="
  10405. (dialogVisibleScore = false),
  10406. (commentIndexJson = {}),
  10407. videoDetail.sources && videoDetail.sources[0]
  10408. ? (videoDetail.sources[0].src = '')
  10409. : ''
  10410. "
  10411. >{{lang.ssCancel}}</el-button
  10412. >
  10413. <el-button
  10414. type="primary"
  10415. v-if="courseDetail.userid == userid"
  10416. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10417. >{{lang.ssConfirm}}
  10418. </el-button>
  10419. </span>
  10420. </el-dialog>
  10421. <el-dialog
  10422. :title="lang.ssSort"
  10423. :visible.sync="dialogVisibleSentence"
  10424. :append-to-body="true"
  10425. width="1000px"
  10426. :before-close="handleClose"
  10427. class="dialog_diy dialog_diy3"
  10428. >
  10429. <div>
  10430. <div class="sentenBox">
  10431. <div
  10432. v-for="(st, stIndex) in sentenceList"
  10433. :key="stIndex"
  10434. style="padding-bottom: 20px"
  10435. >
  10436. <div
  10437. style="padding: 15px 0 10px 20px"
  10438. class="sentenceTitle"
  10439. :index="stIndex + 1"
  10440. >
  10441. {{ lang.ssQuestion }}{{ stIndex + 1 }}:{{ lang.ssSelectCorrectOrder }}
  10442. </div>
  10443. <div class="cardList" v-if="st.chooseSenList">
  10444. <div class="cardBox">
  10445. <div
  10446. v-for="(r, rIndex) in st.chooseSenList"
  10447. :key="rIndex"
  10448. @click="returnCard(r, stIndex, rIndex)"
  10449. >
  10450. <el-tooltip
  10451. class="item"
  10452. effect="light"
  10453. :content="r"
  10454. placement="top"
  10455. v-if="r != '' && r != undefined"
  10456. >
  10457. <div
  10458. :class="{
  10459. isCard: r,
  10460. isChooseCard: r == '' || r == undefined,
  10461. }"
  10462. >
  10463. <div>{{ r }}</div>
  10464. </div>
  10465. </el-tooltip>
  10466. <div
  10467. :class="{
  10468. isCard: r,
  10469. isChooseCard: r == '' || r == undefined,
  10470. }"
  10471. v-else
  10472. >
  10473. <div>{{ r }}</div>
  10474. </div>
  10475. </div>
  10476. </div>
  10477. </div>
  10478. <div class="cardList" v-if="st.addChangeSen">
  10479. <div class="cardBox">
  10480. <div
  10481. v-for="(s, sIndex) in st.addChangeSen"
  10482. :key="sIndex"
  10483. @click="setRightAnswer(s, stIndex, sIndex)"
  10484. >
  10485. <el-tooltip
  10486. class="item"
  10487. effect="light"
  10488. :content="s"
  10489. placement="top"
  10490. v-if="s != '' && s != undefined"
  10491. >
  10492. <div
  10493. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10494. >
  10495. <div>{{ s }}</div>
  10496. </div>
  10497. </el-tooltip>
  10498. <div
  10499. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10500. v-else
  10501. >
  10502. <div>{{ s }}</div>
  10503. </div>
  10504. </div>
  10505. </div>
  10506. </div>
  10507. </div>
  10508. </div>
  10509. </div>
  10510. <span slot="footer" class="dialog-footer">
  10511. <el-button @click="dialogVisibleSentence = false">{{lang.ssCancel}}</el-button>
  10512. <el-button type="primary" @click="addSenWorks">{{lang.ssConfirm}}</el-button>
  10513. </span>
  10514. </el-dialog>
  10515. <el-dialog
  10516. :title="lang.ssSort"
  10517. :visible.sync="dialogVisibleSentenceTeacher"
  10518. :append-to-body="true"
  10519. width="1000px"
  10520. :before-close="handleClose"
  10521. class="dialog_diy dialog_diy3"
  10522. >
  10523. <div>
  10524. <div class="w_name">
  10525. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  10526. </div>
  10527. <div class="sentenBox">
  10528. <div
  10529. v-for="(st, stIndex) in sentenceList"
  10530. :key="stIndex"
  10531. style="padding-bottom: 20px"
  10532. >
  10533. <div
  10534. style="padding: 15px 0 10px 20px"
  10535. class="sentenceTitle"
  10536. :index="stIndex + 1"
  10537. >
  10538. {{ lang.ssQuestion }}{{ stIndex + 1 }}:{{ lang.ssSelectCorrectOrder }}
  10539. </div>
  10540. <div class="cardList" v-if="st.chooseSenList">
  10541. <div class="cardBox">
  10542. <div
  10543. v-for="(r, rIndex) in st.chooseSenList"
  10544. :key="rIndex"
  10545. @click="returnCard(r, stIndex, rIndex)"
  10546. >
  10547. <el-tooltip
  10548. class="item"
  10549. effect="light"
  10550. :content="r"
  10551. placement="top"
  10552. v-if="r != '' && r != undefined"
  10553. >
  10554. <div
  10555. :class="{
  10556. isCard: r,
  10557. isChooseCard: r == '' || r == undefined,
  10558. }"
  10559. >
  10560. <div>{{ r }}</div>
  10561. </div>
  10562. </el-tooltip>
  10563. <div
  10564. :class="{
  10565. isCard: r,
  10566. isChooseCard: r == '' || r == undefined,
  10567. }"
  10568. v-else
  10569. >
  10570. <div>{{ r }}</div>
  10571. </div>
  10572. </div>
  10573. </div>
  10574. </div>
  10575. <div class="cardList" v-if="st.addChangeSen">
  10576. <div class="cardBox">
  10577. <div
  10578. v-for="(s, sIndex) in st.addChangeSen"
  10579. :key="sIndex"
  10580. @click="setRightAnswer(s, stIndex, sIndex)"
  10581. >
  10582. <el-tooltip
  10583. class="item"
  10584. effect="light"
  10585. :content="s"
  10586. placement="top"
  10587. v-if="s != '' && s != undefined"
  10588. >
  10589. <div
  10590. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10591. >
  10592. <div>{{ s }}</div>
  10593. </div>
  10594. </el-tooltip>
  10595. <div
  10596. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10597. v-else
  10598. >
  10599. <div>{{ s }}</div>
  10600. </div>
  10601. </div>
  10602. </div>
  10603. </div>
  10604. </div>
  10605. </div>
  10606. </div>
  10607. <span slot="footer" class="dialog-footer">
  10608. <el-button @click="dialogVisibleSentenceTeacher = false"
  10609. >{{lang.ssCancel}}</el-button
  10610. >
  10611. <el-button type="primary" @click="addSenWorksTeacher">{{lang.ssConfirm}}</el-button>
  10612. </span>
  10613. </el-dialog>
  10614. <el-dialog
  10615. :title="lang.ssSort"
  10616. :visible.sync="dialogVisibleSentence1"
  10617. :append-to-body="true"
  10618. width="1000px"
  10619. :before-close="handleClose"
  10620. class="dialog_diy dialog_diy3"
  10621. >
  10622. <div>
  10623. <div class="sentenBox">
  10624. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10625. {{ sentenceList1.stuName }}{{ lang.ssHomeworkOf }}
  10626. </div>
  10627. <div
  10628. v-for="(st, stIndex) in sentenceList1"
  10629. :key="stIndex"
  10630. style="padding-bottom: 20px"
  10631. >
  10632. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10633. {{ lang.ssQuestionNum.replace(/\*/g, stIndex + 1) }}
  10634. </div>
  10635. <div class="isWrong">
  10636. <div class="cardList1" v-if="st.chooseSenList">
  10637. <div class="cardBox">
  10638. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10639. <el-tooltip
  10640. class="item"
  10641. effect="light"
  10642. :content="s"
  10643. placement="top"
  10644. >
  10645. <div class="isCard">
  10646. <div>{{ s }}</div>
  10647. </div>
  10648. </el-tooltip>
  10649. </div>
  10650. </div>
  10651. <div class="cardAnswerBox">
  10652. {{ lang.ssFormSentence }}{{ st.chooseSenList.join(" ") }}
  10653. </div>
  10654. </div>
  10655. <div v-if="tType == 2" class="isTj">
  10656. <div class="isTjImg">
  10657. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10658. </div>
  10659. <div>{{ lang.ssSubmitted }}</div>
  10660. </div>
  10661. <div
  10662. class="answerRight isTj"
  10663. v-if="
  10664. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10665. (tType == 1 || tType == 4)
  10666. "
  10667. >
  10668. <div class="isTjImg">
  10669. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10670. </div>
  10671. <div>{{ lang.ssAnswerCorrect }}</div>
  10672. </div>
  10673. <div
  10674. class="answerRight isTj"
  10675. v-if="
  10676. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10677. (tType == 1 || tType == 4)
  10678. "
  10679. >
  10680. <div class="isTjImg">
  10681. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10682. </div>
  10683. <div>{{ lang.ssAnswerWrong }}</div>
  10684. </div>
  10685. </div>
  10686. <div
  10687. v-if="
  10688. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10689. (tType == 1 || tType == 4)
  10690. "
  10691. >
  10692. <div style="padding: 15px 0 10px 20px">{{ lang.ssCorrectAnswerBelow }}</div>
  10693. <div
  10694. class="cardList"
  10695. v-if="st.rightAnswer"
  10696. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10697. >
  10698. <div class="cardBox">
  10699. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10700. <el-tooltip
  10701. class="item"
  10702. effect="light"
  10703. :content="r"
  10704. placement="top"
  10705. >
  10706. <div class="isCard1">
  10707. <div>{{ r }}</div>
  10708. </div>
  10709. </el-tooltip>
  10710. </div>
  10711. </div>
  10712. <div class="cardAnswerBox">
  10713. {{ lang.ssFormSentence }}{{ st.rightAnswer.join(" ") }}
  10714. </div>
  10715. </div>
  10716. </div>
  10717. </div>
  10718. </div>
  10719. </div>
  10720. <span slot="footer" class="dialog-footer">
  10721. <el-button @click="dialogVisibleSentence1 = false">{{lang.ssCancel}}</el-button>
  10722. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10723. >{{lang.ssConfirm}}</el-button
  10724. >
  10725. </span>
  10726. </el-dialog>
  10727. <el-dialog
  10728. :title="lang.ssTeacherSubmitWork"
  10729. :visible.sync="dialogVisibleWorks"
  10730. :append-to-body="true"
  10731. width="500px"
  10732. :before-close="handleClose"
  10733. class="dialog_change"
  10734. >
  10735. <div class="marginT">
  10736. <div class="w_name">
  10737. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  10738. </div>
  10739. <div>{{ lang.ssUpFile }}</div>
  10740. <div style="display: flex; gap: 10px">
  10741. <div
  10742. class="chapter_add"
  10743. @click="addImg($event)"
  10744. v-if="studyJuri[0].cover.length == 0"
  10745. >
  10746. <div class="up_photo">
  10747. <img src="../../assets/icon/uploadImg.png" alt />
  10748. </div>
  10749. <!-- <input
  10750. type="file"
  10751. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10752. style="display: none"
  10753. @change="beforeUpload1($event, 1)"
  10754. /> -->
  10755. <input
  10756. type="file"
  10757. accept="*"
  10758. style="display: none"
  10759. @change="beforeUpload1($event, 1)"
  10760. />
  10761. <!-- <input
  10762. type="file"
  10763. accept="image/*"
  10764. capture="camera"
  10765. style="display: none"
  10766. @change="beforeUpload1($event, 1)"
  10767. /> -->
  10768. </div>
  10769. <div
  10770. class="chapter_add"
  10771. @click="addImg($event)"
  10772. v-if="studyJuri[0].cover.length == 0"
  10773. >
  10774. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  10775. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  10776. </div>
  10777. <input
  10778. type="file"
  10779. accept="image/*"
  10780. capture="camera"
  10781. style="display: none"
  10782. @change="beforeUpload1($event, 1)"
  10783. />
  10784. </div>
  10785. </div>
  10786. <!-- capture="camera" -->
  10787. <div
  10788. class="chapter_add"
  10789. style="
  10790. display: flex;
  10791. width: 100%;
  10792. flex-direction: row;
  10793. flex-wrap: wrap;
  10794. justify-content: flex-start;
  10795. padding: 15px 0;
  10796. "
  10797. v-if="studyJuri[0].cover.length > 0"
  10798. >
  10799. <div class="upCover">
  10800. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10801. <img :src="word" alt v-else-if="fileType == 1" />
  10802. <img :src="video" alt v-else-if="fileType == 2" />
  10803. <img :src="word2" alt v-else-if="fileType == 3" />
  10804. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10805. <div class="deleteWord" @click="clean(1)">
  10806. <img src="../../assets/icon/deleteWorks.png" alt />
  10807. </div>
  10808. </div>
  10809. </div>
  10810. </div>
  10811. <div
  10812. class="upload_send"
  10813. @click="addCourseWorksTeacher(taskCount)"
  10814. v-if="!proVisible"
  10815. >
  10816. {{ lang.ssSubmit }}
  10817. </div>
  10818. </el-dialog>
  10819. <ImgDraw
  10820. :drawShow="drawShow"
  10821. @closeDraw="closeDraw"
  10822. @addImgDraw="addImgDraw"
  10823. :bg="bg"
  10824. ></ImgDraw>
  10825. <el-dialog
  10826. :title="lang.ssTable"
  10827. :visible.sync="dialogVisibleTable"
  10828. :append-to-body="true"
  10829. width="95%"
  10830. :before-close="handleClose"
  10831. class="dialog_diy"
  10832. >
  10833. <el-form>
  10834. <div
  10835. style="
  10836. display: flex;
  10837. align-items: center;
  10838. justify-content: space-between;
  10839. "
  10840. >
  10841. <span>{{ lang.ssTableContent }}</span>
  10842. <el-button type="primary" size="small" @click="returnTableText"
  10843. >{{ lang.ssRestoreTemplate }}</el-button
  10844. >
  10845. </div>
  10846. <Table
  10847. v-model="tableJson.text"
  10848. @change="change"
  10849. v-if="dialogVisibleTable"
  10850. ></Table>
  10851. </el-form>
  10852. <span slot="footer" class="dialog-footer">
  10853. <el-button @click="dialogVisibleTable = false">{{lang.ssCancel}}</el-button>
  10854. <el-button type="primary" @click="addTableWorks">{{lang.ssConfirm}}</el-button>
  10855. </span>
  10856. </el-dialog>
  10857. <el-dialog
  10858. :title="lang.ssTable"
  10859. :visible.sync="dialogVisibleTableTeacher"
  10860. :append-to-body="true"
  10861. width="95%"
  10862. :before-close="handleClose"
  10863. class="dialog_diy"
  10864. >
  10865. <el-form>
  10866. <div class="w_name">
  10867. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  10868. </div>
  10869. <div>{{ lang.ssTableContent }}</div>
  10870. <Table
  10871. v-model="tableJson.text"
  10872. @change="change"
  10873. v-if="dialogVisibleTableTeacher"
  10874. ></Table>
  10875. </el-form>
  10876. <span slot="footer" class="dialog-footer">
  10877. <el-button @click="dialogVisibleTableTeacher = false">{{lang.ssCancel}}</el-button>
  10878. <el-button type="primary" @click="addTableWorksTeacher">{{ lang.ssConfirm }}</el-button>
  10879. </span>
  10880. </el-dialog>
  10881. <el-dialog
  10882. :title="lang.ssDocument"
  10883. :visible.sync="dialogVisibleWord"
  10884. :append-to-body="true"
  10885. width="95%"
  10886. :before-close="handleClose"
  10887. class="dialog_diy"
  10888. >
  10889. <el-form>
  10890. <div
  10891. style="
  10892. display: flex;
  10893. align-items: center;
  10894. justify-content: space-between;
  10895. "
  10896. >
  10897. <span>{{ lang.ssDocumentContent }}</span>
  10898. <el-button type="primary" size="small" @click="returnWordText"
  10899. >{{ lang.ssRestoreTemplate }}</el-button
  10900. >
  10901. </div>
  10902. <editor-bar
  10903. v-model="wordJson.text"
  10904. v-if="dialogVisibleWord"
  10905. ></editor-bar>
  10906. </el-form>
  10907. <span slot="footer" class="dialog-footer">
  10908. <el-button @click="dialogVisibleWord = false">{{lang.ssCancel}}</el-button>
  10909. <el-button type="primary" @click="addWordWorks">{{ lang.ssConfirm }}</el-button>
  10910. </span>
  10911. </el-dialog>
  10912. <el-dialog
  10913. :title="lang.ssDocument"
  10914. :visible.sync="dialogVisibleWordTeacher"
  10915. :append-to-body="true"
  10916. width="95%"
  10917. :before-close="handleClose"
  10918. class="dialog_diy"
  10919. >
  10920. <el-form>
  10921. <div class="w_name">
  10922. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  10923. </div>
  10924. <div>{{ lang.ssDocumentContent }}</div>
  10925. <editor-bar
  10926. v-model="wordJson.text"
  10927. v-if="dialogVisibleWordTeacher"
  10928. ></editor-bar>
  10929. </el-form>
  10930. <span slot="footer" class="dialog-footer">
  10931. <el-button @click="dialogVisibleWordTeacher = false">{{lang.ssCancel}}</el-button>
  10932. <el-button type="primary" @click="addWordWorksTeacher">{{ lang.ssConfirm }}</el-button>
  10933. </span>
  10934. </el-dialog>
  10935. <el-dialog
  10936. :title="lang.ssTable"
  10937. :visible.sync="dialogVisibleTable2"
  10938. :append-to-body="true"
  10939. width="95%"
  10940. :before-close="handleClose"
  10941. class="dialog_diy"
  10942. >
  10943. <el-form>
  10944. <div class="cont" v-html="tableJson.text"></div>
  10945. </el-form>
  10946. <span slot="footer" class="dialog-footer">
  10947. <el-button @click="dialogVisibleTable2 = false">{{ lang.ssCloseBtn }}</el-button>
  10948. </span>
  10949. </el-dialog>
  10950. <el-dialog
  10951. :title="lang.ssDocument"
  10952. :visible.sync="dialogVisibleTable3"
  10953. :append-to-body="true"
  10954. width="95%"
  10955. :before-close="handleClose"
  10956. class="dialog_diy"
  10957. >
  10958. <el-form>
  10959. <div class="cont" v-html="tableJson.text"></div>
  10960. </el-form>
  10961. <span slot="footer" class="dialog-footer">
  10962. <el-button @click="dialogVisibleTable3 = false">{{ lang.ssCloseBtn }}</el-button>
  10963. </span>
  10964. </el-dialog>
  10965. <el-dialog
  10966. :title="lang.ssGroupSetting"
  10967. :visible.sync="dialogVisibleGroup"
  10968. :append-to-body="true"
  10969. width="95%"
  10970. :before-close="handleClose"
  10971. class="dialog_diy"
  10972. >
  10973. <div v-if="dialogVisibleGroup">
  10974. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10975. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10976. {{ lang.ssOpenSeatTip }}
  10977. </div>
  10978. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10979. @click="lockChair">
  10980. 锁定位置
  10981. </div>
  10982. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10983. 解锁位置
  10984. </div> -->
  10985. <div class="group_switch">
  10986. <span>开放选座</span>
  10987. <el-switch
  10988. v-model="islock"
  10989. active-text=""
  10990. class="switchCss"
  10991. @change="lockChair"
  10992. ></el-switch>
  10993. </div>
  10994. <div
  10995. type="primary"
  10996. @click="updateGroup"
  10997. class="returnBtn"
  10998. style="background-color: #225bc7"
  10999. >
  11000. {{ lang.ssGroupSetting }}
  11001. </div>
  11002. </div>
  11003. <div>
  11004. <div
  11005. class="g_d_box"
  11006. v-if="groupJson.group && groupStudent[toolindex]"
  11007. >
  11008. <div
  11009. class="g_d_group"
  11010. v-for="(g, gindex) in groupJson.group"
  11011. :key="gindex"
  11012. >
  11013. <div class="g_d_group_chair">
  11014. <div v-if="groupJson.number > 1">
  11015. <span
  11016. :class="{
  11017. isChair:
  11018. groupStudent[toolindex][gindex] &&
  11019. groupStudent[toolindex][gindex][0],
  11020. updateChair:
  11021. courseDetail.userid == userid &&
  11022. groupStudent[toolindex][gindex] &&
  11023. groupStudent[toolindex][gindex][0] &&
  11024. groupJson.islock == 2,
  11025. }"
  11026. ><span
  11027. class="updateChairBtn"
  11028. @click="
  11029. updateGroupChair(
  11030. groupStudent[toolindex][gindex] &&
  11031. groupStudent[toolindex][gindex][0]
  11032. )
  11033. "
  11034. >{{ lang.ssModify }}</span
  11035. ></span
  11036. ><span>{{
  11037. groupStudent[toolindex][gindex] &&
  11038. groupStudent[toolindex][gindex][0]
  11039. ? groupStudent[toolindex][gindex] &&
  11040. groupStudent[toolindex][gindex][0].name
  11041. : lang.ssEmptyPosition
  11042. }}</span>
  11043. </div>
  11044. <div v-if="groupJson.number > 4">
  11045. <span
  11046. :class="{
  11047. isChair:
  11048. groupStudent[toolindex][gindex] &&
  11049. groupStudent[toolindex][gindex][4],
  11050. updateChair:
  11051. courseDetail.userid == userid &&
  11052. groupStudent[toolindex][gindex] &&
  11053. groupStudent[toolindex][gindex][4] &&
  11054. groupJson.islock == 2,
  11055. }"
  11056. ><span
  11057. class="updateChairBtn"
  11058. @click="
  11059. updateGroupChair(
  11060. groupStudent[toolindex][gindex] &&
  11061. groupStudent[toolindex][gindex][4]
  11062. )
  11063. "
  11064. >{{ lang.ssModify }}</span
  11065. ></span
  11066. ><span>{{
  11067. groupStudent[toolindex][gindex] &&
  11068. groupStudent[toolindex][gindex][4]
  11069. ? groupStudent[toolindex][gindex] &&
  11070. groupStudent[toolindex][gindex][4].name
  11071. : lang.ssEmptyPosition
  11072. }}</span>
  11073. </div>
  11074. <div v-if="groupJson.number > 8">
  11075. <span
  11076. :class="{
  11077. isChair:
  11078. groupStudent[toolindex][gindex] &&
  11079. groupStudent[toolindex][gindex][8],
  11080. updateChair:
  11081. courseDetail.userid == userid &&
  11082. groupStudent[toolindex][gindex] &&
  11083. groupStudent[toolindex][gindex][8] &&
  11084. groupJson.islock == 2,
  11085. }"
  11086. ><span
  11087. class="updateChairBtn"
  11088. @click="
  11089. updateGroupChair(
  11090. groupStudent[toolindex][gindex] &&
  11091. groupStudent[toolindex][gindex][8]
  11092. )
  11093. "
  11094. >{{ lang.ssModify }}</span
  11095. ></span
  11096. ><span>{{
  11097. groupStudent[toolindex][gindex] &&
  11098. groupStudent[toolindex][gindex][8]
  11099. ? groupStudent[toolindex][gindex] &&
  11100. groupStudent[toolindex][gindex][8].name
  11101. : lang.ssEmptyPosition
  11102. }}</span>
  11103. </div>
  11104. </div>
  11105. <div class="g_d_group_tableBox">
  11106. <div class="g_d_group_chair2">
  11107. <div v-if="groupJson.number > 2">
  11108. <span
  11109. :class="{
  11110. isChair:
  11111. groupStudent[toolindex][gindex] &&
  11112. groupStudent[toolindex][gindex][2],
  11113. updateChair:
  11114. courseDetail.userid == userid &&
  11115. groupStudent[toolindex][gindex] &&
  11116. groupStudent[toolindex][gindex][2] &&
  11117. groupJson.islock == 2,
  11118. }"
  11119. ><span
  11120. class="updateChairBtn"
  11121. @click="
  11122. updateGroupChair(
  11123. groupStudent[toolindex][gindex] &&
  11124. groupStudent[toolindex][gindex][2]
  11125. )
  11126. "
  11127. >{{ lang.ssModify }}</span
  11128. ></span
  11129. ><span>{{
  11130. groupStudent[toolindex][gindex] &&
  11131. groupStudent[toolindex][gindex][2]
  11132. ? groupStudent[toolindex][gindex] &&
  11133. groupStudent[toolindex][gindex][2].name
  11134. : lang.ssEmptyPosition
  11135. }}</span>
  11136. </div>
  11137. <div v-if="groupJson.number > 6">
  11138. <span
  11139. :class="{
  11140. isChair:
  11141. groupStudent[toolindex][gindex] &&
  11142. groupStudent[toolindex][gindex][6],
  11143. updateChair:
  11144. courseDetail.userid == userid &&
  11145. groupStudent[toolindex][gindex] &&
  11146. groupStudent[toolindex][gindex][6] &&
  11147. groupJson.islock == 2,
  11148. }"
  11149. ><span
  11150. class="updateChairBtn"
  11151. @click="
  11152. updateGroupChair(
  11153. groupStudent[toolindex][gindex] &&
  11154. groupStudent[toolindex][gindex][6]
  11155. )
  11156. "
  11157. >{{ lang.ssModify }}</span
  11158. ></span
  11159. ><span>{{
  11160. groupStudent[toolindex][gindex] &&
  11161. groupStudent[toolindex][gindex][6]
  11162. ? groupStudent[toolindex][gindex] &&
  11163. groupStudent[toolindex][gindex][6].name
  11164. : lang.ssEmptyPosition
  11165. }}</span>
  11166. </div>
  11167. </div>
  11168. <div class="g_d_group_table">
  11169. <div>
  11170. {{ g.name }}
  11171. </div>
  11172. <div>
  11173. <div
  11174. v-if="
  11175. courseDetail.userid == userid && groupJson.islock == 2
  11176. "
  11177. @click="deleteGroupChair(gindex)"
  11178. >
  11179. {{ lang.ssRemoveGroupMember }}
  11180. </div>
  11181. <div
  11182. @click="selectGroup(gindex)"
  11183. v-else-if="
  11184. groupStudentUid[toolindex] &&
  11185. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11186. "
  11187. >
  11188. {{ lang.ssJoinGroup }}
  11189. </div>
  11190. <div
  11191. @click="
  11192. exitGroup(
  11193. groupStudent[toolindex][gindex] &&
  11194. groupStudent[toolindex][gindex][
  11195. groupStudentUid[toolindex][gindex].indexOf(userid)
  11196. ].id
  11197. )
  11198. "
  11199. v-else-if="
  11200. groupStudentUid[toolindex] &&
  11201. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11202. "
  11203. >
  11204. {{ lang.ssExitGroup }}
  11205. </div>
  11206. </div>
  11207. </div>
  11208. <div class="g_d_group_chair2">
  11209. <div v-if="groupJson.number > 3">
  11210. <span
  11211. :class="{
  11212. isChair:
  11213. groupStudent[toolindex][gindex] &&
  11214. groupStudent[toolindex][gindex][3],
  11215. updateChair:
  11216. courseDetail.userid == userid &&
  11217. groupStudent[toolindex][gindex] &&
  11218. groupStudent[toolindex][gindex][3] &&
  11219. groupJson.islock == 2,
  11220. }"
  11221. ><span
  11222. class="updateChairBtn"
  11223. @click="
  11224. updateGroupChair(
  11225. groupStudent[toolindex][gindex] &&
  11226. groupStudent[toolindex][gindex][3]
  11227. )
  11228. "
  11229. >{{ lang.ssModify }}</span
  11230. ></span
  11231. ><span>{{
  11232. groupStudent[toolindex][gindex] &&
  11233. groupStudent[toolindex][gindex][3]
  11234. ? groupStudent[toolindex][gindex] &&
  11235. groupStudent[toolindex][gindex][3].name
  11236. : lang.ssEmptyPosition
  11237. }}</span>
  11238. </div>
  11239. <div v-if="groupJson.number > 7">
  11240. <span
  11241. :class="{
  11242. isChair:
  11243. groupStudent[toolindex][gindex] &&
  11244. groupStudent[toolindex][gindex][7],
  11245. updateChair:
  11246. courseDetail.userid == userid &&
  11247. groupStudent[toolindex][gindex] &&
  11248. groupStudent[toolindex][gindex][7] &&
  11249. groupJson.islock == 2,
  11250. }"
  11251. ><span
  11252. class="updateChairBtn"
  11253. @click="
  11254. updateGroupChair(
  11255. groupStudent[toolindex][gindex] &&
  11256. groupStudent[toolindex][gindex][7]
  11257. )
  11258. "
  11259. >{{ lang.ssModify }}</span
  11260. ></span
  11261. ><span>{{
  11262. groupStudent[toolindex][gindex] &&
  11263. groupStudent[toolindex][gindex][7]
  11264. ? groupStudent[toolindex][gindex] &&
  11265. groupStudent[toolindex][gindex][7].name
  11266. : lang.ssEmptyPosition
  11267. }}</span>
  11268. </div>
  11269. </div>
  11270. </div>
  11271. <div class="g_d_group_chair">
  11272. <div v-if="groupJson.number > 1">
  11273. <span
  11274. :class="{
  11275. isChair:
  11276. groupStudent[toolindex][gindex] &&
  11277. groupStudent[toolindex][gindex][1],
  11278. updateChair:
  11279. courseDetail.userid == userid &&
  11280. groupStudent[toolindex][gindex] &&
  11281. groupStudent[toolindex][gindex][1] &&
  11282. groupJson.islock == 2,
  11283. }"
  11284. ><span
  11285. class="updateChairBtn"
  11286. @click="
  11287. updateGroupChair(
  11288. groupStudent[toolindex][gindex] &&
  11289. groupStudent[toolindex][gindex][1]
  11290. )
  11291. "
  11292. >{{ lang.ssModify }}</span
  11293. ></span
  11294. ><span>{{
  11295. groupStudent[toolindex][gindex] &&
  11296. groupStudent[toolindex][gindex][1]
  11297. ? groupStudent[toolindex][gindex] &&
  11298. groupStudent[toolindex][gindex][1].name
  11299. : lang.ssEmptyPosition
  11300. }}</span>
  11301. </div>
  11302. <div v-if="groupJson.number > 5">
  11303. <span
  11304. :class="{
  11305. isChair:
  11306. groupStudent[toolindex][gindex] &&
  11307. groupStudent[toolindex][gindex][5],
  11308. updateChair:
  11309. courseDetail.userid == userid &&
  11310. groupStudent[toolindex][gindex] &&
  11311. groupStudent[toolindex][gindex][5] &&
  11312. groupJson.islock == 2,
  11313. }"
  11314. ><span
  11315. class="updateChairBtn"
  11316. @click="
  11317. updateGroupChair(
  11318. groupStudent[toolindex][gindex] &&
  11319. groupStudent[toolindex][gindex][5]
  11320. )
  11321. "
  11322. >{{ lang.ssModify }}</span
  11323. ></span
  11324. ><span>{{
  11325. groupStudent[toolindex][gindex] &&
  11326. groupStudent[toolindex][gindex][5]
  11327. ? groupStudent[toolindex][gindex] &&
  11328. groupStudent[toolindex][gindex][5].name
  11329. : lang.ssEmptyPosition
  11330. }}</span>
  11331. </div>
  11332. <div v-if="groupJson.number > 9">
  11333. <span
  11334. :class="{
  11335. isChair:
  11336. groupStudent[toolindex][gindex] &&
  11337. groupStudent[toolindex][gindex][9],
  11338. updateChair:
  11339. courseDetail.userid == userid &&
  11340. groupStudent[toolindex][gindex] &&
  11341. groupStudent[toolindex][gindex][9] &&
  11342. groupJson.islock == 2,
  11343. }"
  11344. ><span
  11345. class="updateChairBtn"
  11346. @click="
  11347. updateGroupChair(
  11348. groupStudent[toolindex][gindex] &&
  11349. groupStudent[toolindex][gindex][9]
  11350. )
  11351. "
  11352. >{{ lang.ssModify }}</span
  11353. ></span
  11354. ><span>{{
  11355. groupStudent[toolindex][gindex] &&
  11356. groupStudent[toolindex][gindex][9]
  11357. ? groupStudent[toolindex][gindex] &&
  11358. groupStudent[toolindex][gindex][9].name
  11359. : lang.ssEmptyPosition
  11360. }}</span>
  11361. </div>
  11362. </div>
  11363. </div>
  11364. </div>
  11365. </div>
  11366. </div>
  11367. <span slot="footer" class="dialog-footer">
  11368. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11369. </span>
  11370. </el-dialog>
  11371. <el-dialog
  11372. :title="lang.ssGroupSetting"
  11373. :visible.sync="dialogVisibleGroup2"
  11374. :append-to-body="true"
  11375. width="650px"
  11376. :before-close="handleClose"
  11377. class="dialog_diy"
  11378. >
  11379. <div class="groupBox">
  11380. <div v-if="groupJson2.group" class="groupContent">
  11381. <div class="groupTitle">{{ lang.ssSetGroupCountAndName }}</div>
  11382. <div
  11383. v-for="(item, index) in groupJson2.group"
  11384. :key="index"
  11385. class="groupName"
  11386. >
  11387. <span class="groupn">{{ lang.ssGroupNameFormat.replace(/\*/g, index + 1) }}</span>
  11388. <el-input
  11389. v-model="item.name"
  11390. :placeholder="lang.ssEnterName"
  11391. style="width: 250px"
  11392. ></el-input>
  11393. <!-- <div class="groupBtn">
  11394. <el-button type="primary" size="small" @click="addGroup(index)">
  11395. 添加</el-button>
  11396. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11397. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11398. </div> -->
  11399. </div>
  11400. </div>
  11401. <div class="groupContent">
  11402. <div class="groupTitle">{{ lang.ssSetGroupMemberCount }}</div>
  11403. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11404. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11405. <el-input
  11406. v-model="groupJson2.number"
  11407. style="width: 150px"
  11408. :placeholder="lang.ssEnterNumber2To10"
  11409. @change="numberPan"
  11410. ></el-input>
  11411. </div>
  11412. </div>
  11413. <span slot="footer" class="dialog-footer">
  11414. <el-button @click="dialogVisibleGroup2 = false">{{lang.ssCancel}}</el-button>
  11415. <el-button type="primary" @click="updateGroupJson">{{ lang.ssConfirm }}</el-button>
  11416. </span>
  11417. </el-dialog>
  11418. <el-dialog
  11419. :title="lang.ssHomework"
  11420. :visible.sync="dialogVisibleGroupWork"
  11421. :append-to-body="true"
  11422. width="500px"
  11423. :before-close="handleClose"
  11424. class="dialog_change"
  11425. >
  11426. <div class="marginT">
  11427. <div>{{ lang.ssUpFile }}</div>
  11428. <div
  11429. class="chapter_add"
  11430. @click="addImg($event)"
  11431. v-if="studyJuri[0].cover.length == 0"
  11432. >
  11433. <div class="up_photo">
  11434. <img src="../../assets/icon/uploadImg.png" alt />
  11435. </div>
  11436. <!-- <input
  11437. type="file"
  11438. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11439. style="display: none"
  11440. @change="beforeUpload1($event, 1)"
  11441. /> -->
  11442. <input
  11443. type="file"
  11444. accept="*"
  11445. style="display: none"
  11446. @change="beforeUpload1($event, 1)"
  11447. />
  11448. </div>
  11449. <!-- capture="camera" -->
  11450. <div
  11451. class="chapter_add"
  11452. style="
  11453. display: flex;
  11454. width: 100%;
  11455. flex-direction: row;
  11456. flex-wrap: wrap;
  11457. justify-content: flex-start;
  11458. padding: 15px 0;
  11459. "
  11460. v-if="studyJuri[0].cover.length > 0"
  11461. >
  11462. <div class="upCover">
  11463. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11464. <img :src="word" alt v-else-if="fileType == 1" />
  11465. <img :src="video" alt v-else-if="fileType == 2" />
  11466. <img :src="word2" alt v-else-if="fileType == 3" />
  11467. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11468. <div class="deleteWord" @click="clean(1)">
  11469. <img src="../../assets/icon/deleteWorks.png" alt />
  11470. </div>
  11471. </div>
  11472. </div>
  11473. </div>
  11474. <div
  11475. class="upload_send"
  11476. @click="addCourseWorks2(taskCount)"
  11477. v-if="!proVisible"
  11478. >
  11479. {{ lang.ssSubmit }}
  11480. </div>
  11481. </el-dialog>
  11482. <el-dialog
  11483. :title="lang.ssModifyGroup"
  11484. :visible.sync="dialogVisibleUpdateGroup"
  11485. :append-to-body="true"
  11486. width="350px"
  11487. :before-close="handleClose"
  11488. class="dialog_diy"
  11489. >
  11490. <div>
  11491. <h2>
  11492. {{ this.updateGroupUser.name }}
  11493. </h2>
  11494. <div style="color: rgb(171 171 171); margin-top: 10px">
  11495. {{ lang.ssSelectGroupToJoin }}
  11496. </div>
  11497. <el-radio-group v-model="checkChair">
  11498. <el-radio
  11499. style="display: block; margin-top: 20px"
  11500. v-for="(item, index) in updateGroupArray"
  11501. :label="item.label"
  11502. :key="index"
  11503. >{{ item.name }}</el-radio
  11504. >
  11505. </el-radio-group>
  11506. </div>
  11507. <span slot="footer" class="dialog-footer">
  11508. <el-button @click="dialogVisibleUpdateGroup = false">{{lang.ssCancel}}</el-button>
  11509. <el-button type="primary" @click="updateChair">{{ lang.ssConfirm }}</el-button>
  11510. </span>
  11511. </el-dialog>
  11512. <el-dialog
  11513. :title="lang.ssRemoveGroupMember"
  11514. :visible.sync="dialogVisibleDeleteGroup"
  11515. :append-to-body="true"
  11516. width="350px"
  11517. :before-close="handleClose"
  11518. class="dialog_diy"
  11519. >
  11520. <div>
  11521. <h2>
  11522. {{ this.deleteGroupArray.name }}
  11523. </h2>
  11524. <div style="color: rgb(171 171 171); margin-top: 10px">
  11525. {{ lang.ssSelectMemberToDelete }}
  11526. </div>
  11527. <el-checkbox-group v-model="checkDeleteGroup">
  11528. <el-checkbox
  11529. style="display: flex; margin-top: 20px"
  11530. v-for="(item, index) in deleteGroupUser"
  11531. :label="item.userid"
  11532. :key="index"
  11533. >{{ item.name }}</el-checkbox
  11534. >
  11535. </el-checkbox-group>
  11536. </div>
  11537. <span slot="footer" class="dialog-footer">
  11538. <el-button @click="dialogVisibleDeleteGroup = false">{{lang.ssCancel}}</el-button>
  11539. <el-button type="primary" @click="deleteChair">{{ lang.ssConfirm }}</el-button>
  11540. </span>
  11541. </el-dialog>
  11542. <el-dialog
  11543. :title="lang.ssBatchUpload"
  11544. :visible.sync="dialogVisiblePl"
  11545. :append-to-body="true"
  11546. width="700px"
  11547. :before-close="handleClose"
  11548. class="dialog_change"
  11549. >
  11550. <div class="marginT">
  11551. <div class="plworkBox">
  11552. <div
  11553. class="chapter_add"
  11554. style="
  11555. display: flex;
  11556. width: 150px;
  11557. flex-direction: row;
  11558. flex-wrap: wrap;
  11559. justify-content: flex-start;
  11560. margin: 0 10px 10px 0;
  11561. "
  11562. v-for="(item, index) in plworkFile"
  11563. :key="index"
  11564. >
  11565. <div class="upCover2">
  11566. <img
  11567. :src="item.url"
  11568. alt
  11569. v-if="item.fileType == 1"
  11570. @click="previewImg(item.url)"
  11571. />
  11572. <img :src="word" alt v-else-if="item.fileType == 4" />
  11573. <img :src="video" alt v-else />
  11574. <!-- <span class="picName">{{ item.name }}</span> -->
  11575. <!-- <el-input
  11576. v-model="item.username"
  11577. placeholder="请输入学生名字"
  11578. style="margin-top: 10px"
  11579. ></el-input> -->
  11580. <div
  11581. class="pl_select_box"
  11582. @click="
  11583. getUpdateMore(true, checkUpload(), item.username, index)
  11584. "
  11585. >
  11586. {{ getSName(item.username) }}
  11587. </div>
  11588. <!-- <el-select
  11589. style="margin-top: 10px"
  11590. v-model="item.username"
  11591. filterable
  11592. allow-create
  11593. placeholder="请选择学生"
  11594. >
  11595. <el-option
  11596. v-for="item1 in checkUpload()"
  11597. :key="item1.userid"
  11598. :label="item1.name ? item1.name : item1.username"
  11599. :value="item1.userid"
  11600. >
  11601. </el-option>
  11602. </el-select> -->
  11603. <div class="deleteWord" @click="clean2(index)">
  11604. <img src="../../assets/icon/deleteWorks.png" alt />
  11605. </div>
  11606. </div>
  11607. </div>
  11608. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11609. <div class="up_photo2">
  11610. <img src="../../assets/icon/plwork.png" alt />
  11611. <span>{{ lang.ssClickUploadFile }}</span>
  11612. </div>
  11613. <input
  11614. type="file"
  11615. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11616. multiple="multiple"
  11617. style="display: none"
  11618. @change="beforeUpload3($event, 6)"
  11619. />
  11620. </div>
  11621. </div>
  11622. </div>
  11623. <!-- capture="camera" -->
  11624. <div
  11625. class="upload_send"
  11626. @click="addCourseWorksPl(taskCount)"
  11627. v-if="!proVisible2"
  11628. >
  11629. {{ lang.ssSubmit }}
  11630. </div>
  11631. </el-dialog>
  11632. <el-dialog
  11633. :title="lang.ssModifyName"
  11634. :visible.sync="dialogVisibleSname"
  11635. width="500px"
  11636. :before-close="handleClose"
  11637. class="dialog_diy"
  11638. center
  11639. >
  11640. <div
  11641. style="
  11642. text-align: center;
  11643. display: flex;
  11644. align-items: center;
  11645. justify-content: center;
  11646. "
  11647. >
  11648. <span class="tian1">{{ lang.ssName }}</span>
  11649. <div
  11650. class="pl_select_box"
  11651. style="margin-left: 10px; width: 200px"
  11652. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11653. >
  11654. {{ getSName(worksSName) }}
  11655. </div>
  11656. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11657. placeholder="请选择学生">
  11658. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11659. :value="item.userid">
  11660. </el-option>
  11661. </el-select> -->
  11662. <!-- <el-input
  11663. v-model="worksSName"
  11664. style="width: 250px; margin: 15px 0px"
  11665. ></el-input> -->
  11666. </div>
  11667. <span slot="footer" class="dialog-footer">
  11668. <el-button @click="dialogVisibleSname = false">{{lang.ssCancel}}</el-button>
  11669. <el-button type="primary" @click="updateName">{{lang.ssConfirm}}</el-button>
  11670. </span>
  11671. </el-dialog>
  11672. <el-dialog
  11673. :title="lang.ssEnglishWrite"
  11674. :visible.sync="engDialogVisible"
  11675. :append-to-body="true"
  11676. width="800px"
  11677. :before-close="handleClose"
  11678. class="dialog_diy"
  11679. >
  11680. <onlineWrite
  11681. v-if="engDialogVisible"
  11682. :englishList="englishList"
  11683. :myAnswerList1="myAnswerList1"
  11684. ref="engJson"
  11685. ></onlineWrite>
  11686. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11687. <el-button @click="engDialogVisible = false">{{lang.ssCancel}}</el-button>
  11688. <el-button type="primary" @click="addEnglishWork">{{lang.ssConfirm}}</el-button>
  11689. </span>
  11690. </el-dialog>
  11691. <el-dialog
  11692. :title="lang.ssEnglishWrite"
  11693. :visible.sync="engUpdateDialogVisible"
  11694. :append-to-body="true"
  11695. width="800px"
  11696. :before-close="handleClose"
  11697. class="dialog_diy fullStyle"
  11698. >
  11699. <div class="engUpBox">
  11700. <div class="engUpTop">
  11701. <div class="engTitle">
  11702. <div>{{lang.ssEssayTitle}}</div>
  11703. <div>{{ englishList1.engTitle }}</div>
  11704. </div>
  11705. <div class="engText">
  11706. <div>{{lang.ssEssayContent}}</div>
  11707. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11708. </div>
  11709. </div>
  11710. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11711. <div class="oldBox">
  11712. <div class="oldMes">{{lang.ssOriginalAuthor}}{{ noteName }} )</div>
  11713. <div class="oldText">
  11714. <div class="detailBox">
  11715. <div class="oldDetail">
  11716. <div>{{lang.ssTitleColon}}</div>
  11717. <div>{{ oldEnglishJson.engTitle }} </div>
  11718. </div>
  11719. <div class="oldDetail1">
  11720. <div>{{lang.ssContentColon}}</div>
  11721. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11722. </div>
  11723. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11724. <div>{{lang.ssImageColon}}</div>
  11725. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11726. </div>
  11727. </div>
  11728. </div>
  11729. </div>
  11730. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11731. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11732. <div class="oldText">
  11733. <div class="detailBox" style="position: relative;">
  11734. <div class="oldDetail">
  11735. <div>{{lang.ssTitleColon}}</div>
  11736. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11737. <div v-else v-html="newEnglishList.engTitle"></div>
  11738. </div>
  11739. <div class="oldDetail">
  11740. <div>{{lang.ssContentColon}}</div>
  11741. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11742. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11743. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11744. </div>
  11745. <div style="position: absolute;bottom: -25px;">{{lang.ssNoteRedDeleteGreenAdd}}</div>
  11746. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11747. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">{{lang.ssAIAnnotation}}</el-button>
  11748. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{lang.ssConfirm}}</el-button>
  11749. </div>
  11750. </div>
  11751. </div>
  11752. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11753. <div class="oldMes" style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;" v-if="newEnglishList1.length > 0">
  11754. <div v-if="isNoUserid" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: newEngIndex == -1 ? '#aacaff' : ''}" @click="setEngText(-1)" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11755. <div v-for="(item,index) in newEnglishList1" :key="index" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: index == newEngIndex ? '#aacaff' : ''}" @click="setEngText(index)">{{ item.username }}</div>
  11756. </div>
  11757. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11758. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11759. <div class="detailBox" style="position: relative;">
  11760. <div class="oldDetail">
  11761. <div>{{lang.ssTitleColon}}</div>
  11762. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11763. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11764. </div>
  11765. <div class="oldDetail">
  11766. <div>{{lang.ssContentColon}}</div>
  11767. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11768. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11769. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  11770. </div>
  11771. <div style="position: absolute;bottom: -25px;">{{lang.ssNoteRedDeleteGreenAdd}}</div>
  11772. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11773. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">{{lang.ssAIAnnotation}}</el-button>
  11774. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{lang.ssConfirm}}</el-button>
  11775. </div>
  11776. </div>
  11777. <div class="oldText" v-else-if="newEngIndex == -1">
  11778. <div class="detailBox" style="position: relative;">
  11779. <div class="oldDetail">
  11780. <div>{{lang.ssTitleColon}}</div>
  11781. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11782. <div v-else v-html="newEnglishList.engTitle"></div>
  11783. </div>
  11784. <div class="oldDetail">
  11785. <div>{{lang.ssContentColon}}</div>
  11786. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11787. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11788. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11789. </div>
  11790. <div style="position: absolute;bottom: -25px;">{{lang.ssNoteRedDeleteGreenAdd}}</div>
  11791. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11792. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">{{lang.ssAIAnnotation}}</el-button>
  11793. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{lang.ssConfirm}}</el-button>
  11794. </div>
  11795. </div>
  11796. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11797. <div class="detailBox" style="position: relative;">
  11798. <div class="oldDetail">
  11799. <div>{{lang.ssTitleColon}}</div>
  11800. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11801. <div v-else>
  11802. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  11803. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11804. </div>
  11805. </div>
  11806. <div class="oldDetail">
  11807. <div>{{lang.ssContentColon}}</div>
  11808. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  11809. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11810. <div v-else>
  11811. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11812. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11813. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  11814. </div>
  11815. </div>
  11816. <div style="position: absolute;bottom: -25px;">{{lang.ssNoteRedDeleteGreenAdd}}</div>
  11817. <el-button @click="isUpdateCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11818. <el-button @click="aiCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">{{lang.ssAIAnnotation}}</el-button>
  11819. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{lang.ssConfirm}}</el-button>
  11820. </div>
  11821. </div>
  11822. </div>
  11823. </div>
  11824. </div>
  11825. <span slot="footer" class="dialog-footer">
  11826. <el-button @click="engUpdateDialogVisible = false">{{lang.ssCancel}}</el-button>
  11827. <el-button type="primary" @click="addCorrect">{{lang.ssConfirm}}</el-button>
  11828. </span>
  11829. </el-dialog>
  11830. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11831. <interVideo
  11832. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11833. :videoJson="videoJson"
  11834. :userid="userid"
  11835. :id="id"
  11836. :courseType="courseType"
  11837. :taskCount="taskCount"
  11838. :toolindex="toolindex"
  11839. :videoType="videoType"
  11840. ></interVideo>
  11841. <UpdateMore
  11842. :dialogVisibleMember.sync="dialogVisibleMember"
  11843. :cList="uploadStudentJuri"
  11844. :userid="userid"
  11845. :searchTN="worksSName2"
  11846. @setPlname="setPlname"
  11847. ></UpdateMore>
  11848. <!-- <wordCloud
  11849. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11850. :data="wordCloudData"
  11851. ></wordCloud> -->
  11852. <el-dialog
  11853. :title="lang.ssWordCloud"
  11854. :visible.sync="dialogVisibleWordCloud"
  11855. width="30%"
  11856. class="dialog_diy"
  11857. :before-close="handleClose">
  11858. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  11859. </el-dialog>
  11860. <el-dialog
  11861. :title="lang.ssPickPerson"
  11862. :visible.sync="dialogVisiblePickPeople"
  11863. width="650px"
  11864. :before-close="handleClose"
  11865. class="dialog_diy"
  11866. center
  11867. >
  11868. <div class="pick_box">
  11869. <div
  11870. class="noWorksName"
  11871. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11872. v-for="(item, index) in uploadStudentJuri"
  11873. :key="index"
  11874. @click="pickStudent(item)"
  11875. >
  11876. {{ item.name }}
  11877. </div>
  11878. </div>
  11879. </el-dialog>
  11880. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11881. :englishVoiceJson='englishVoiceJson'
  11882. :userid="userid"
  11883. :id="id"
  11884. :courseType="courseType"
  11885. :taskCount="taskCount"
  11886. :toolindex="toolindex"
  11887. @selectSWorks="selectSWorks"
  11888. @selectStudent="selectStudent"
  11889. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11890. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11891. :userid="userid"
  11892. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11893. :commentDetail="commentDetail"
  11894. :courseDetail="courseDetail"
  11895. :wScore="wScore"
  11896. :scoreDetail="scoreDetail"
  11897. @selectSWorks="selectSWorks"
  11898. @selectStudent="selectStudent"></checkEnglishVoice>
  11899. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  11900. <choseWorksDetailDialog
  11901. ref="choseWorksDetailDialogRef"
  11902. :worksStudentData="worksStudent"
  11903. :noWorksSData="noWorksS"
  11904. :chapInfoListData="chapInfoList"
  11905. :courseType="courseType"
  11906. :taskCount="taskCount"
  11907. :tType="tType"
  11908. :sIsOpen="sIsOpen"
  11909. :courseDetail="courseDetail"
  11910. :groupStudent2="groupStudent"
  11911. :groupStudentUid2="groupStudentUid"
  11912. :oid="oid"
  11913. :org="org"
  11914. @getCourseDetail="getCourseDetail"
  11915. @selectSLook="selectSLook"
  11916. @selectSWorks="selectSWorks"
  11917. @selectStudent="selectStudent"
  11918. @deleteWorks="deleteWorks"
  11919. @openTools="openTools"
  11920. @openWord="openWord"
  11921. @openScore="openScore"
  11922. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  11923. />
  11924. <el-dialog
  11925. :visible.sync="confirmOpenDig"
  11926. width="500px"
  11927. :modal="false"
  11928. class="confirmOpenDigCss dialog_diyCopy"
  11929. :before-close="handleClose">
  11930. <div style="display: flex;align-items: center;">
  11931. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  11932. <span>"{{ courseDetail.title }}"{{lang.ssCourseStarted}}</span>
  11933. </div>
  11934. <div style="margin: 20px 0 35px;">
  11935. <div style="margin-bottom: 10px;">{{lang.ssFollowTeacherLearning}}</div>
  11936. <div>{{lang.ssStudyHard}}</div>
  11937. </div>
  11938. <div style="text-align: center;">
  11939. <el-button type="primary" style="width: 95%;" @click="confirmOpen">{{lang.ssStartLearningBtn}}</el-button>
  11940. </div>
  11941. </el-dialog>
  11942. <appStoreC ref="appStoreC"
  11943. :sStudent="sStudent"
  11944. :courseType="courseType"
  11945. :taskCount="taskCount"
  11946. :toolindex="toolindex"
  11947. @selectSWorks="selectSWorks"
  11948. @selectStudent="selectStudent"
  11949. ></appStoreC>
  11950. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  11951. </div>
  11952. </template>
  11953. <script>
  11954. import "../../common/aws-sdk-2.235.1.min.js";
  11955. // import pdf from "../components/pdf3";
  11956. import pdf from "../components/vpdf";
  11957. import AskStatic from "../components/askStatic";
  11958. import AskStatic2 from "../components/askStatic2";
  11959. import AnswerData2 from "../components/answerData2";
  11960. import AnswerData from "../components/answerData";
  11961. import sortToolWorkShow from "../components/sortToolWorkShow.vue";
  11962. import EditorBar from "../tools/wangEnduit.vue";
  11963. import Table from "../tools/table.vue";
  11964. import Time from "../tools/time.vue";
  11965. import Mind from "../tools/jsmind.vue";
  11966. import Sunburst from "../tools/sunburst";
  11967. import SeeBoard from "../tools/seeBoard";
  11968. import * as imageConversion from "image-conversion";
  11969. import Audio from "../components/audio.vue";
  11970. import ImgDraw from "../tools/imgDraw/imgDraw";
  11971. import { Empty } from "element-ui";
  11972. import RecordRTC from "recordrtc";
  11973. import interVideo from "../interVideo/index.vue";
  11974. import UpdateMore from "../updateMore/updateMore.vue";
  11975. import wordCloud from "../wordCloud/index.vue";
  11976. import axios from "axios";
  11977. import JSZip from "jszip";
  11978. import FileSaver from "file-saver";
  11979. import onlineWrite from "./commpont/onlineWrite";
  11980. import englishEva from "../components/englishEva";
  11981. import * as Diff from 'diff'
  11982. import EnglishVoice from '../EnglishVoice2/index.vue'
  11983. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  11984. import correctText from '../components/correctText.vue'
  11985. import scoreItem from '../scoreList/scoreItem.vue'
  11986. import scoreZong from '../scoreZong/index.vue'
  11987. import classRoomHelper from '../classRoomHelper/index.vue'
  11988. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  11989. import MarkdownIt from "markdown-it";
  11990. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  11991. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  11992. import { v4 as uuidv4 } from "uuid";
  11993. var OpenCC = require("opencc-js");
  11994. import choseWordCloud from '../components/choseWordCloud.vue'
  11995. import appStoreC from "../components/appStoreC.vue";
  11996. import cocoFlowDia from "../components/cocoFlowDia.vue";
  11997. import { myMixin } from "@/mixins/mixin.js"
  11998. import { tools as toolsList } from "@/common/tools2.js";
  11999. import katex from 'katex'
  12000. import 'katex/dist/katex.min.css'
  12001. let converter = OpenCC.Converter({
  12002. from: "hk",
  12003. to: "cn"
  12004. });
  12005. const getFile = (url) => {
  12006. return new Promise((resolve, reject) => {
  12007. var credentials = {
  12008. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12009. secretAccessKey: "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",
  12010. }; //秘钥形式的登录上传
  12011. window.AWS.config.update(credentials);
  12012. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12013. let url2 = url;
  12014. let _url2 = "";
  12015. if (
  12016. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12017. ) {
  12018. _url2 = url2.split(
  12019. "https://view.officeapps.live.com/op/view.aspx?src="
  12020. )[1];
  12021. } else {
  12022. _url2 = url2;
  12023. }
  12024. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12025. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12026. var params = {
  12027. Bucket: "ccrb",
  12028. Key: name
  12029. };
  12030. s3.getObject(params, function (err, data) {
  12031. if (err) {
  12032. console.log(err, err.stack)
  12033. resolve({ data: 1 });
  12034. }else {
  12035. resolve({ data: data.Body });
  12036. console.log(data);
  12037. } // sxuccessful response
  12038. });
  12039. // axios({
  12040. // method: "get",
  12041. // url,
  12042. // responseType: "blob",
  12043. // })
  12044. // .then((data) => {
  12045. // resolve({ data: data.data });
  12046. // })
  12047. // .catch((error) => {
  12048. // resolve({ data: 1 });
  12049. // // reject(error.toString());
  12050. // });
  12051. });
  12052. };
  12053. export default {
  12054. mixins: [ myMixin ],
  12055. components: {
  12056. choseWordCloud,
  12057. EditorBar,
  12058. Time,
  12059. pdf,
  12060. AskStatic,
  12061. AskStatic2,
  12062. Mind,
  12063. Sunburst,
  12064. SeeBoard,
  12065. AnswerData2,
  12066. AnswerData,
  12067. sortToolWorkShow,
  12068. Audio,
  12069. ImgDraw,
  12070. Table,
  12071. interVideo,
  12072. UpdateMore,
  12073. wordCloud,
  12074. onlineWrite,
  12075. englishEva,
  12076. EnglishVoice,
  12077. checkEnglishVoice,
  12078. correctText,
  12079. scoreItem,
  12080. classRoomHelper,
  12081. scoreZong,
  12082. statisticalAnalysis,
  12083. choseWorksDetailDialog,
  12084. appStoreC,
  12085. cocoFlowDia,
  12086. studentClassRoomHelper
  12087. },
  12088. data() {
  12089. return {
  12090. // 学校或者组织随机码
  12091. Code2:'',
  12092. startTime: "",
  12093. // 是否允许学生查看内容资料 2不可以 1可以
  12094. IsStulook:false,
  12095. homeWorkLoading:false,
  12096. toolsList: toolsList,
  12097. wordCloudKey: 0,
  12098. bg: null,
  12099. drawShow: false,
  12100. dialogVisible: false,
  12101. dialogVisiblePl: false,
  12102. commentDialogVisible: false,
  12103. dialogVisibleMember: false,
  12104. dialogVisibleWordCloud: false,
  12105. videoVisible: false,
  12106. isStar: false,
  12107. studentEvalDialogVisible: false,
  12108. studentEvalDialogVisibleTeacher: false,
  12109. dialogVisibleSelect: false,
  12110. dialogVisibleSelectTeacher: false,
  12111. dialogVisibleScore: false,
  12112. dialogVisibleENScore: false,
  12113. dialogVisibleSentence: false,
  12114. dialogVisibleSentenceTeacher: false,
  12115. dialogVisibleSentence1: false,
  12116. dialogVisibleWorks: false,
  12117. dialogVisibleTable: false,
  12118. dialogVisibleTableTeacher: false,
  12119. dialogVisibleWord: false,
  12120. dialogVisibleWordTeacher: false,
  12121. dialogVisibleTable2: false,
  12122. dialogVisibleTable3: false,
  12123. dialogVisibleGroupWork: false,
  12124. dialogVisibleUpdateGroup: false,
  12125. dialogVisibleDeleteGroup: false,
  12126. dialogVisibleSname: false,
  12127. dialogVisibleVideo: false,
  12128. dialogVisiblePickPeople: false,
  12129. worksSName: "",
  12130. classJuri: [],
  12131. uploadStudentJuri: [],
  12132. uploadCid: "",
  12133. snameWid: "",
  12134. sStudent: {},
  12135. sTool: "",
  12136. bzText: "",
  12137. commentDetail: [],
  12138. selectAnswer: [],
  12139. videoDetail: {},
  12140. selectJson: {},
  12141. eScore: { eBzText: "", eStar: [] },
  12142. id: this.$route.query.courseId,
  12143. userid: this.$route.query.userid,
  12144. classId: this.$route.query.cid,
  12145. role: this.$route.query.role,
  12146. // courseTypeLine: this.$route.query.type,
  12147. oid: this.$route.query.oid,
  12148. org: this.$route.query.org,
  12149. tType: this.$route.query.tType,
  12150. courseType: this.$route.query.type,
  12151. screenType: this.$route.query.screenType,
  12152. tcid2: this.$route.query.tcid,
  12153. tcid: "",
  12154. pptImgUrl: "",
  12155. pptImgUrl1: "",
  12156. commentText: "",
  12157. full: false,
  12158. sIsOpen: false,
  12159. IsLookOpen: false,
  12160. IsFollow: false,
  12161. pzDialog: false,
  12162. contentDialog: false,
  12163. mlDialog: false,
  12164. type: 1,
  12165. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12166. sentenceList1: [],
  12167. tableJson: [],
  12168. tableJsonO: [],
  12169. wordJson: [],
  12170. wordJsonO: [],
  12171. vedio: [],
  12172. text: [],
  12173. textList: [],
  12174. line: [],
  12175. lineList: [],
  12176. chapTools: [],
  12177. chapToolList: [],
  12178. file: [],
  12179. fileC: [],
  12180. vedioTime: [],
  12181. upToolImg: "",
  12182. preTime: 0,
  12183. rateList: {
  12184. ca: 0,
  12185. },
  12186. rateParams: [],
  12187. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12188. studyJuri: [
  12189. {
  12190. content: "",
  12191. cover: [],
  12192. upVedio: [],
  12193. upFile: [],
  12194. },
  12195. ],
  12196. isClose: 0,
  12197. plworkFile: [],
  12198. mr: require("../../assets/vedioPic.png"),
  12199. word: require("../../assets/icon/isWord.png"),
  12200. word2: require("../../assets/icon/word2.png"),
  12201. video: require("../../assets/icon/isVideo.png"),
  12202. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12203. likes: require("../../assets/icon/comment/likes.png"),
  12204. scoreImg: require("../../assets/score.png"),
  12205. courseDetail: {},
  12206. reply: "",
  12207. isSelect: false,
  12208. chapInfo: [],
  12209. chapInfoList: [],
  12210. taskCount: 0,
  12211. imgList: [],
  12212. noImgList: [],
  12213. pzList: [],
  12214. timeWorkList: [],
  12215. PlTextList: [
  12216. "Excellent!",
  12217. "nice!",
  12218. this.lang.ssVeryCreative,
  12219. this.lang.ssNotBad,
  12220. this.lang.ssKeepTrying,
  12221. ],
  12222. isClickNav: "",
  12223. navId: "",
  12224. playerOptions: {
  12225. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12226. autoplay: false, //如果true,浏览器准备好时开始回放。
  12227. muted: false, // 默认情况下将会消除任何音频。
  12228. loop: false, // 导致视频一结束就重新开始。
  12229. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12230. language: "zh-CN",
  12231. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12232. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12233. sources: [
  12234. {
  12235. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12236. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12237. },
  12238. ],
  12239. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12240. // poster: dataRes.imgUrl, //你的封面地址
  12241. notSupportedMessage: this.lang.ssVideoNotSupported, //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12242. controlBar: {
  12243. timeDivider: true, //当前时间和持续时间的分隔符
  12244. durationDisplay: true, //显示持续时间
  12245. remainingTimeDisplay: false, //是否显示剩余时间功能
  12246. fullscreenToggle: true, //全屏按钮
  12247. },
  12248. },
  12249. playerOptions1: {
  12250. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12251. autoplay: false, //如果true,浏览器准备好时开始回放。
  12252. muted: false, // 默认情况下将会消除任何音频。
  12253. loop: false, // 导致视频一结束就重新开始。
  12254. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12255. language: "zh-CN",
  12256. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12257. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12258. sources: [
  12259. {
  12260. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12261. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12262. },
  12263. ],
  12264. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12265. // poster: dataRes.imgUrl, //你的封面地址
  12266. notSupportedMessage: this.lang.ssVideoNotSupported, //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12267. controlBar: {
  12268. timeDivider: true, //当前时间和持续时间的分隔符
  12269. durationDisplay: true, //显示持续时间
  12270. remainingTimeDisplay: false, //是否显示剩余时间功能
  12271. fullscreenToggle: true, //全屏按钮
  12272. },
  12273. },
  12274. playerO: {},
  12275. noneBtnImg: false,
  12276. proVisible: false,
  12277. proVisible2: false,
  12278. progress: 0,
  12279. isFinishSize: 0,
  12280. isAllSize: 0,
  12281. questionAnswer: "",
  12282. answerQ: "", //问答标题
  12283. rateJson: [],
  12284. wbCount: 0,
  12285. wordCount: 0,
  12286. mindCount: 0,
  12287. askCount: 0,
  12288. noteCount: 0,
  12289. mindNetWorkCount: 0,
  12290. libraryCount: 0,
  12291. workCount: 0,
  12292. timeCount: 0,
  12293. answerCount: 0,
  12294. trainCount: 0,
  12295. evalCount: 0,
  12296. dialogImageUrl: "",
  12297. pictureDialog: false,
  12298. toolTypeList: [],
  12299. dialogVisible1: false,
  12300. dialogVisible2: false,
  12301. dialogVisible3: false,
  12302. dialogVisible6: false,
  12303. dialogVisible4: false,
  12304. isNoHomeWork: false,
  12305. dialogVisible5: false,
  12306. dialogVisible5Teacher: false,
  12307. dialogVisibleChoice: false,
  12308. dialogVisibleChoiceTeacher: false,
  12309. answerDialogVisible: false,
  12310. answerDialogVisibleTeacher: false,
  12311. juriVisible: false,
  12312. timeDialogVisible: false,
  12313. replyDialogVisible: false,
  12314. toolDialogVisible: false,
  12315. engDialogVisible: false,
  12316. engUpdateDialogVisible:false,
  12317. engEvaDialogVisible: false,
  12318. evaEngJson: {
  12319. teacherJson: {},
  12320. studentJson: {},
  12321. message: {},
  12322. },
  12323. isNoUserid:false,
  12324. engListLength:0,
  12325. engWid:"",
  12326. newEnglishList:{
  12327. engTitle:"",
  12328. engText:"",
  12329. },
  12330. newEnglishList1:[],
  12331. oldEnglishJson:{},
  12332. oldEnglishJson1:{},
  12333. englishList1:{},
  12334. englishList:{},
  12335. myAnswerList1:{},
  12336. topHeight:0,
  12337. newEngIndex:-1,
  12338. englishToolIndex:0,
  12339. userMes:{},
  12340. englishToolIndex:0,
  12341. replyIndex: 0,
  12342. replyPid: "",
  12343. radio: [],
  12344. isAsk: false,
  12345. askJson: {
  12346. askCount: 1,
  12347. askTitle: "",
  12348. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12349. },
  12350. testJson: {},
  12351. englishList: {},
  12352. topHeight:0,
  12353. checkJson: [],
  12354. askList: [],
  12355. answerList: [],
  12356. navList: [],
  12357. addPzDialog: false,
  12358. pzConText: "",
  12359. worksStudent: [],
  12360. isCloseList: [],
  12361. workStudent: [],
  12362. groupStudent: [],
  12363. groupStudentUid: [],
  12364. noWorksS: [],
  12365. isWorksS: [],
  12366. noWorksStudent: [],
  12367. toolindex: 0,
  12368. toolDetailIndex: null,
  12369. groupIndex: 0,
  12370. workTypeB: false,
  12371. workTypeC: false,
  12372. isAnswer: false,
  12373. isHovered: false,
  12374. isHovered1: false,
  12375. isHovered2: false,
  12376. commentTagShow:0,
  12377. timer: null,
  12378. timer2: null,
  12379. opertimer: null,
  12380. showType: '',
  12381. fileType: 0,
  12382. showPDF: false,
  12383. noteName: "",
  12384. evaJuri: [],
  12385. evalua: "",
  12386. eTitle: "",
  12387. eName: "",
  12388. eJson: {},
  12389. fid: "", //一级
  12390. sid: "", //二级
  12391. tid: "", //二级
  12392. typeMode: 1,
  12393. eJSONNum: 0,
  12394. Etype: 1,
  12395. data: {
  12396. meta: {
  12397. name: "example",
  12398. author: "dd@163.com",
  12399. version: "0.2",
  12400. },
  12401. format: "node_array",
  12402. data: [{ id: "root", isroot: true, topic: "" }],
  12403. },
  12404. fullDialogVisible: false,
  12405. fulltype: "",
  12406. fullUrl: "",
  12407. commentIndexJson: {},
  12408. Stbodywidth: 0,
  12409. ispzType: 0,
  12410. pzType: 1,
  12411. wScore: 0,
  12412. scoreDetail: "",
  12413. videoStart: false,
  12414. recorder: null,
  12415. groupJson: {},
  12416. islock: false,
  12417. groupJson2: {},
  12418. dialogVisibleGroup: false,
  12419. dialogVisibleGroup2: false,
  12420. updateGroupArray: [],
  12421. updateGroupUser: {},
  12422. deleteGroupUser: [],
  12423. deleteGroupArray: {},
  12424. checkChair: "",
  12425. checkDeleteGroup: [],
  12426. inviteCode: "",
  12427. courseGroupStudent: [],
  12428. courseGroupStudentUid: [],
  12429. courseGroup: {},
  12430. isGroup: false,
  12431. toolIndex: null,
  12432. tool: {},
  12433. isWorkTool: [
  12434. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12435. ], //, 40
  12436. videoJson: {},
  12437. videoType:0,
  12438. toolType: 0,
  12439. checktoolArray: [],
  12440. vChapterData: [],
  12441. isUpdateToolDetail: false,
  12442. isUpdateToolDetail1: false,
  12443. updateToolDetailInner: "",
  12444. checkboxList: [],
  12445. plIndex: "",
  12446. worksSName2: "",
  12447. worksSid: "",
  12448. wordCloudData: [],
  12449. isPickStudent: [],
  12450. pzStype: 1,
  12451. myAnList: {},
  12452. downLoading: false,
  12453. greyType: false,
  12454. correctWord: [],
  12455. EnglishVoiceDialog: false,
  12456. englishVoiceJson: {},
  12457. englishVoiceJsonWork:[],
  12458. scoreList:{
  12459. listdata:[],
  12460. isScoreList:[],
  12461. },
  12462. classRoomHelperWidth: this.$region != 'hk' ? '85px' : '15px',
  12463. orgArray:[],
  12464. oidArray:[],
  12465. splitScreenData:{
  12466. isOpen:false,
  12467. userId:"",
  12468. uid:"",
  12469. myUid:"",
  12470. loading:false,
  12471. behavior:null,
  12472. },
  12473. confirmOpenDig:false,
  12474. confirmOpenDigData:'',
  12475. diffKey:"1",
  12476. getCourseGroupLoading: false,
  12477. selectSWorksLoading:false,
  12478. selectStudentLoading:false,
  12479. selectSLookLoading:false,
  12480. getPickLoading:false,
  12481. selectPzLoading:false,
  12482. getSplitScreenDataLoading:false,
  12483. timeoutPan: null,
  12484. isTimeOutPan: false,
  12485. };
  12486. },
  12487. methods: {
  12488. // 获取学校或组织随机码
  12489. getCode2(){
  12490. let params = {
  12491. oid: this.oid,
  12492. org: this.org
  12493. };
  12494. this.ajax
  12495. .get(this.$store.state.api + "getCode2", params)
  12496. .then(res => {
  12497. this.Code2 = res.data[0] && res.data[0][0] && res.data[0][0].code2 ? res.data[0][0].code2 : ''
  12498. })
  12499. .catch(err => {
  12500. console.error(err);
  12501. });
  12502. },
  12503. //查看应用中心作业
  12504. openCocoFlow(w){
  12505. this.$refs.cocoFlowDiaRef.openAppWork(w)
  12506. },
  12507. getAIJ(){
  12508. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12509. let oid = res.data[0];
  12510. let org = res.data[1];
  12511. let oidArray = [];
  12512. let orgArray = [];
  12513. oid.forEach(i=>oidArray.push(i.oid))
  12514. org.forEach(i=>orgArray.push(i.oid))
  12515. this.orgArray = orgArray;
  12516. this.oidArray = oidArray;
  12517. })
  12518. },
  12519. insertMemorandum(_html){//保存行为操作
  12520. //variable
  12521. //btn
  12522. let params = [{
  12523. uid:this.userid,
  12524. courseId:this.id+(this.tcid2?this.tcid2:''),
  12525. content:_html
  12526. }]
  12527. console.log(params)
  12528. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12529. if(res.data==1){
  12530. console.log('保存操作成功')
  12531. }else{
  12532. console.log('保存操作失败')
  12533. }
  12534. }).catch(e=>{
  12535. console.log('保存操作失败')
  12536. console.log(e)
  12537. })
  12538. },
  12539. gx(){
  12540. this.$forceUpdate();
  12541. },
  12542. isUpdateCorrect(t,p){
  12543. if(this.greyType == false){
  12544. this.isUpdateText = t;
  12545. this.greyType = true;
  12546. }else{
  12547. if(p == 1){
  12548. this.newEnglishList.engText = this.isUpdateText;
  12549. }else if(p == 2){
  12550. this.oldEnglishJson1.engText = this.isUpdateText;
  12551. }else if(p == 3){
  12552. this.newEnglishList.engText = this.isUpdateText;
  12553. }else{
  12554. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12555. }
  12556. this.greyType = false
  12557. }
  12558. },
  12559. aiCorrect(t,p){
  12560. let aiText = "";
  12561. const loading = this.$loading.service({
  12562. background: "rgba(255, 255, 255)",
  12563. target: document.querySelectorAll(".loadingText")[0],
  12564. });
  12565. let param = {
  12566. model: "gpt-3.5-turbo",
  12567. temperature: 0,
  12568. max_tokens: 2048,
  12569. top_p: 1,
  12570. frequency_penalty: 0,
  12571. presence_penalty: 0,
  12572. messages: [
  12573. {
  12574. role: "user",
  12575. content:
  12576. `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12577. },
  12578. ],
  12579. uid: this.userid,
  12580. stream: false,
  12581. };
  12582. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12583. (res) => {
  12584. if (
  12585. res.data.FunctionResponse &&
  12586. res.data.FunctionResponse.result &&
  12587. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12588. ) {
  12589. this.$message.error(this.lang.ssEssayTooLongForAI);
  12590. return;
  12591. }
  12592. aiText =
  12593. res.data.FunctionResponse.choices[0].message.content;
  12594. aiText = aiText.replace(/%/g,"%25");
  12595. // let w = "";
  12596. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12597. // for(var k = 0;k<a.length;k++){
  12598. // //diffWordsWithSpace
  12599. // if(a.length > 1){
  12600. // if(a[k].added == true){
  12601. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12602. // }else if(a[k].removed == true){
  12603. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12604. // }else{
  12605. // w += '<span>' + a[k].value + '</span>';
  12606. // }
  12607. // }else{
  12608. // if(p == 1){
  12609. // w = this.newEnglishList.engText;
  12610. // }else if(p == 2){
  12611. // w = this.oldEnglishJson1.engText;
  12612. // }else if(p == 3){
  12613. // w = this.newEnglishList.engText;
  12614. // }else{
  12615. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12616. // }
  12617. // }
  12618. // }
  12619. if(p == 1){
  12620. this.newEnglishList.engText = aiText;
  12621. }else if(p == 2){
  12622. this.oldEnglishJson1.engText = aiText;
  12623. }else if(p == 3){
  12624. this.newEnglishList.engText = aiText;
  12625. }else{
  12626. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12627. }
  12628. loading.close();
  12629. },
  12630. (err) => {
  12631. console.log(err);
  12632. loading.close();
  12633. }
  12634. );
  12635. },
  12636. addToolChoose() {
  12637. if (!this.checktoolArray.length) {
  12638. this.$message.error(this.lang.ssSelectTaskToAdd);
  12639. return;
  12640. }
  12641. if (
  12642. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12643. this.taskCount
  12644. ].toolChoose[0].tool.length
  12645. ) {
  12646. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12647. this.taskCount
  12648. ].toolChoose[0].tool = this.checktoolArray;
  12649. } else {
  12650. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12651. this.taskCount
  12652. ].toolChoose.push({
  12653. tool: this.checktoolArray,
  12654. toolDetail: "",
  12655. toolType: 0,
  12656. askCount: 1,
  12657. askTitle: "",
  12658. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12659. });
  12660. }
  12661. let params = [
  12662. {
  12663. cid: this.id,
  12664. chapters: JSON.stringify(this.chapInfoList),
  12665. uid: this.userid,
  12666. unitIndex: this.courseType,
  12667. },
  12668. ];
  12669. this.ajax
  12670. .post(this.$store.state.api + "updateWorkNew4", params)
  12671. .then((res) => {
  12672. this.$message({
  12673. message: this.lang.ssAddSuccess,
  12674. type: "success",
  12675. });
  12676. this.checktoolArray = [];
  12677. this.getCourseDetail(2);
  12678. this.checkBz(
  12679. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12680. this.taskCount
  12681. ].toolChoose.length - 1
  12682. );
  12683. this.toolDialogVisible = false;
  12684. this.refreshCourse();
  12685. this.$forceUpdate();
  12686. })
  12687. .catch((err) => {
  12688. console.error(err);
  12689. });
  12690. },
  12691. checkBz(index) {
  12692. this.isUpdateToolDetail = false;
  12693. this.$forceUpdate();
  12694. setTimeout(() => {
  12695. document.scrollingElement.scrollTop =
  12696. document.querySelectorAll(".filebox")[index].offsetTop +
  12697. document.querySelector(".student_body").offsetTop;
  12698. }, 500);
  12699. },
  12700. updateToolDetail(i, type) {
  12701. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12702. this.toolDetailIndex = i
  12703. this.isUpdateToolDetail1 = true;
  12704. setTimeout(() => {
  12705. this.updateToolDetailInner = JSON.parse(
  12706. JSON.stringify(
  12707. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12708. this.taskCount
  12709. ].toolChoose[i].toolDetail
  12710. )
  12711. );
  12712. document.querySelector(".checkTextArea").focus();
  12713. }, 0);
  12714. } else if((this.isUpdateToolDetail1 && type != 2)){
  12715. // this.toolDetailIndex = i;
  12716. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12717. this.taskCount
  12718. ].toolChoose[i].toolDetail = JSON.parse(
  12719. JSON.stringify(this.updateToolDetailInner)
  12720. );
  12721. let params = [
  12722. {
  12723. cid: this.id,
  12724. chapters: JSON.stringify(this.chapInfoList),
  12725. uid: this.userid,
  12726. unitIndex: this.courseType,
  12727. },
  12728. ];
  12729. this.ajax
  12730. .post(this.$store.state.api + "updateWorkNew4", params)
  12731. .then((res) => {
  12732. this.isUpdateToolDetail1 = false;
  12733. this.$message({
  12734. message: this.lang.ssModifySuccess,
  12735. type: "success",
  12736. });
  12737. this.toolDetailIndex = null;
  12738. this.updateToolDetailInner = "";
  12739. this.getCourseDetail(2);
  12740. this.$forceUpdate();
  12741. })
  12742. .catch((err) => {
  12743. console.error(err);
  12744. });
  12745. } else if((this.isUpdateToolDetail1 && type == 2)){
  12746. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12747. this.taskCount
  12748. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12749. JSON.stringify(this.updateToolDetailInner)
  12750. );
  12751. let params = [
  12752. {
  12753. cid: this.id,
  12754. chapters: JSON.stringify(this.chapInfoList),
  12755. uid: this.userid,
  12756. unitIndex: this.courseType,
  12757. },
  12758. ];
  12759. this.ajax
  12760. .post(this.$store.state.api + "updateWorkNew4", params)
  12761. .then((res) => {
  12762. this.$message({
  12763. message: this.lang.ssModifySuccess,
  12764. type: "success",
  12765. });
  12766. this.toolDetailIndex = i;
  12767. this.isUpdateToolDetail1 = true;
  12768. setTimeout(() => {
  12769. this.updateToolDetailInner = JSON.parse(
  12770. JSON.stringify(
  12771. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12772. this.taskCount
  12773. ].toolChoose[i].toolDetail
  12774. )
  12775. );
  12776. document.querySelector(".checkTextArea").focus();
  12777. }, 0);
  12778. this.getCourseDetail(2);
  12779. this.$forceUpdate();
  12780. })
  12781. .catch((err) => {
  12782. console.error(err);
  12783. });
  12784. }
  12785. },
  12786. jumpGj(i, j, k, l) {
  12787. for (var z = 0; z < this.navList.length; z++) {
  12788. for (var q = 0; q < this.navList[z].task.length; q++) {
  12789. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12790. this.navList[z].task[q].tool[w].isTool = false;
  12791. }
  12792. }
  12793. }
  12794. console.log(this.navList);
  12795. this.navList[i].task[j].tool[k].isTool =
  12796. !this.navList[i].task[j].tool[k].isTool;
  12797. var a = document.scrollingElement;
  12798. let target = document.querySelector(`#gj${k}`);
  12799. if (target) {
  12800. // target.scrollIntoView(true);
  12801. // setTimeout(() => {
  12802. // a.scrollTop = a.scrollTop - 150;
  12803. // }, 0);
  12804. target.scrollIntoView();
  12805. setTimeout(()=>{
  12806. let scrollBody = document.querySelector('.body_student').parentElement
  12807. scrollBody.scrollTop = scrollBody.scrollTop - 100
  12808. }, 0);
  12809. }
  12810. this.navId = ""
  12811. let flag = this.courseType == i;
  12812. let flag2 = this.taskCount == j
  12813. if (l) {
  12814. this.courseType = i;
  12815. // this.navId = l;
  12816. this.taskCount = j;
  12817. this.selectPz();
  12818. this.getHomeWork();
  12819. this.getCourseDetail(2);
  12820. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  12821. if(flag){
  12822. if(flag2){
  12823. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12824. }else{
  12825. 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>`)
  12826. }
  12827. }else{
  12828. 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>`)
  12829. }
  12830. }
  12831. if ((this.courseDetail.userid == this.userid ||
  12832. (this.courseDetail.course_teacher &&
  12833. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
  12834. this.IsFollow) {
  12835. this.setCTask();
  12836. }
  12837. // var b = this.$refs["bz" + k][0];
  12838. // a.scrollTop = b.offsetTop;
  12839. },
  12840. addTools2(i) {
  12841. if (i == 4) {
  12842. // this.openTools2(4);
  12843. this.$message.error(this.lang.ssNotAvailable);
  12844. return;
  12845. }
  12846. if (i == 45) {
  12847. // this.openTools2(45);
  12848. this.$message.error(this.lang.ssNotAvailable);
  12849. return;
  12850. }
  12851. if (i == 47) {
  12852. // this.openTools2(47);
  12853. this.$message.error(this.lang.ssNotAvailable);
  12854. return;
  12855. }
  12856. if (i == 49) {
  12857. // this.openTools2(49);
  12858. this.$message.error(this.lang.ssNotAvailable);
  12859. return;
  12860. }
  12861. if (i == 62) {
  12862. // this.openTools(itemTaskIndex, 62, toolIndex);
  12863. this.$message.error(this.lang.ssNotAvailable);
  12864. return;
  12865. }
  12866. if (i == 15) {
  12867. // this.openTools(itemTaskIndex, 15, toolIndex);
  12868. this.$message.error(this.lang.ssNotAvailable);
  12869. return;
  12870. }
  12871. if (i == 40) {
  12872. // this.openTools(itemTaskIndex, 40, toolIndex);
  12873. this.$message.error(this.lang.ssNotAvailable);
  12874. return;
  12875. }
  12876. if (i == 41) {
  12877. // this.openTools(itemTaskIndex, 41, toolIndex);
  12878. this.$message.error(this.lang.ssNotAvailable);
  12879. return;
  12880. }
  12881. if (i == 42) {
  12882. // this.openTools(itemTaskIndex, 42, toolIndex);
  12883. this.$message.error(this.lang.ssNotAvailable);
  12884. return;
  12885. }
  12886. if (this.checktoolArray.length > 0) {
  12887. if (this.checktoolArray.indexOf(i) != -1) {
  12888. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12889. } else {
  12890. this.checktoolArray = [];
  12891. this.checktoolArray.push(i);
  12892. }
  12893. } else {
  12894. this.checktoolArray.push(i);
  12895. }
  12896. this.$forceUpdate();
  12897. },
  12898. jump() {
  12899. window.topU.postMessage({ tools: "43" }, "*");
  12900. },
  12901. getUpdateMore(f, checkboxList, searchTN, index) {
  12902. this.dialogVisibleMember = f;
  12903. this.checkboxList = checkboxList;
  12904. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12905. this.plIndex = index;
  12906. },
  12907. setPlname(a) {
  12908. if (this.plworkFile.length) {
  12909. this.plworkFile[this.plIndex].username = a;
  12910. } else {
  12911. this.worksSName = a;
  12912. }
  12913. this.dialogVisibleMember = false;
  12914. },
  12915. previewImg(url,w) {
  12916. this.$hevueImgPreview(url);
  12917. if(w){
  12918. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  12919. }
  12920. },
  12921. checkImg(list) {
  12922. if (!list.length) {
  12923. return;
  12924. }
  12925. this.$hevueImgPreview({
  12926. multiple: true, // 开启多图预览模式
  12927. imgList: list, // 需要预览的多图数组
  12928. });
  12929. },
  12930. change(val) {
  12931. console.log(val);
  12932. },
  12933. goTo(path) {
  12934. this.$router.push(path);
  12935. },
  12936. handlePictureCardPreview(url) {
  12937. this.dialogImageUrl = url;
  12938. this.pictureDialog = true;
  12939. },
  12940. clean(type) {
  12941. if (type == 1) {
  12942. this.studyJuri[0].cover.splice(0, 1);
  12943. } else if (type == 2) {
  12944. this.studyJuri[0].upVedio.splice(0, 1);
  12945. } else {
  12946. this.studyJuri[0].upFile.splice(0, 1);
  12947. }
  12948. },
  12949. clean2(index) {
  12950. this.plworkFile.splice(index, 1);
  12951. },
  12952. handleClose(done) {
  12953. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12954. this.videoDetail.sources[0].src = "";
  12955. }
  12956. this.commentIndexJson = {};
  12957. this.changeSplitScreenBehavior({code:99})
  12958. done();
  12959. },
  12960. fullTools() {
  12961. this.full = !this.full;
  12962. },
  12963. imgChange(file, fileList, type) {
  12964. if (type == 1) {
  12965. var _tmp = this.studyJuri[0].cover;
  12966. } else if (type == 2) {
  12967. var _tmp = this.studyJuri[0].upVedio;
  12968. } else {
  12969. var _tmp = this.studyJuri[0].upFile;
  12970. }
  12971. this.noneBtnImg = _tmp.length >= 1;
  12972. },
  12973. setContent(bool) {
  12974. this.contentDialog = bool;
  12975. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12976. document.querySelector(".workd_media").style.height = "650px";
  12977. } else if (document.querySelector(".workd_media")) {
  12978. document.querySelector(".workd_media").style.height = "auto";
  12979. }
  12980. },
  12981. setContent2(bool) {
  12982. this.mlDialog = bool;
  12983. if (
  12984. bool &&
  12985. this.contentDialog &&
  12986. document.querySelector(".workd_media")
  12987. ) {
  12988. document.querySelector(".workd_media").style.height = "650px";
  12989. } else if (document.querySelector(".workd_media")) {
  12990. document.querySelector(".workd_media").style.height = "auto";
  12991. }
  12992. },
  12993. openToolAll() {
  12994. this.toolDialogVisible = true;
  12995. },
  12996. addImg(e) {
  12997. var el = e.currentTarget;
  12998. // this.$message.success('触发上传')
  12999. el.getElementsByTagName("input")[0].click();
  13000. e.target.value = "";
  13001. },
  13002. addSelectAnswer() {
  13003. let params = [
  13004. {
  13005. uid: this.userid,
  13006. cid: this.id,
  13007. stage: this.courseType,
  13008. task: this.taskCount,
  13009. tool: this.toolindex,
  13010. content: this.selectAnswer.answer,
  13011. type: 7,
  13012. },
  13013. ];
  13014. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13015. this.homeWorkLoading = true
  13016. this.ajax
  13017. .post(this.$store.state.api + "addCourseWorks", params)
  13018. .then((res) => {
  13019. this.$message({
  13020. message: this.lang.ssSubmitSuccess,
  13021. type: "success",
  13022. });
  13023. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13024. setTimeout(() => {
  13025. this.homeWorkLoading = false
  13026. }, 500);
  13027. this.dialogVisibleSelect = false;
  13028. // this.selectAnswer = {};
  13029. this.selectSWorks();
  13030. this.selectStudent();
  13031. })
  13032. .catch((err) => {
  13033. this.$message.error(this.lang.ssSubmitFailed);
  13034. console.error(err);
  13035. setTimeout(() => {
  13036. this.homeWorkLoading = false
  13037. }, 500);
  13038. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13039. });
  13040. },
  13041. addSelectAnswerTeacher() {
  13042. let params = [
  13043. {
  13044. uid: this.sStudent.userid,
  13045. cid: this.id,
  13046. stage: this.courseType,
  13047. task: this.taskCount,
  13048. tool: this.toolindex,
  13049. content: this.selectAnswer.answer,
  13050. type: 7,
  13051. },
  13052. ];
  13053. this.ajax
  13054. .post(this.$store.state.api + "addCourseWorks", params)
  13055. .then((res) => {
  13056. this.$message({
  13057. message: this.lang.ssSubmitSuccess,
  13058. type: "success",
  13059. });
  13060. this.dialogVisibleSelectTeacher = false;
  13061. // this.selectAnswer = {};
  13062. this.selectSWorks();
  13063. this.selectStudent();
  13064. })
  13065. .catch((err) => {
  13066. this.$message.error(this.lang.ssSubmitFailed);
  13067. console.error(err);
  13068. });
  13069. },
  13070. addSenWorks() {
  13071. for (var i = 0; i < this.sentenceList.length; i++) {
  13072. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13073. if (
  13074. this.sentenceList[i].chooseSenList[j] == undefined ||
  13075. this.sentenceList[i].chooseSenList[j] == ""
  13076. ) {
  13077. this.$message.error(this.lang.ssFillAnswersComplete);
  13078. return;
  13079. }
  13080. }
  13081. }
  13082. let params = [
  13083. {
  13084. uid: this.userid,
  13085. cid: this.id,
  13086. stage: this.courseType,
  13087. task: this.taskCount,
  13088. tool: this.toolindex,
  13089. content: JSON.stringify(this.sentenceList),
  13090. type: 9,
  13091. },
  13092. ];
  13093. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13094. this.homeWorkLoading = true
  13095. this.ajax
  13096. .post(this.$store.state.api + "addCourseWorks", params)
  13097. .then((res) => {
  13098. this.$message({
  13099. message: this.lang.ssSubmitSuccess,
  13100. type: "success",
  13101. });
  13102. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13103. setTimeout(() => {
  13104. this.homeWorkLoading = false
  13105. }, 500);
  13106. this.dialogVisibleSentence = false;
  13107. // this.selectAnswer = {};
  13108. this.selectSWorks();
  13109. this.selectStudent();
  13110. })
  13111. .catch((err) => {
  13112. this.$message.error(this.lang.ssSubmitFailed);
  13113. console.error(err);
  13114. setTimeout(() => {
  13115. this.homeWorkLoading = false
  13116. }, 500);
  13117. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13118. });
  13119. },
  13120. addSenWorksTeacher() {
  13121. for (var i = 0; i < this.sentenceList.length; i++) {
  13122. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13123. if (
  13124. this.sentenceList[i].chooseSenList[j] == undefined ||
  13125. this.sentenceList[i].chooseSenList[j] == ""
  13126. ) {
  13127. this.$message.error(this.lang.ssFillAnswersComplete);
  13128. return;
  13129. }
  13130. }
  13131. }
  13132. let params = [
  13133. {
  13134. uid: this.sStudent.userid,
  13135. cid: this.id,
  13136. stage: this.courseType,
  13137. task: this.taskCount,
  13138. tool: this.toolindex,
  13139. content: JSON.stringify(this.sentenceList),
  13140. type: 9,
  13141. },
  13142. ];
  13143. this.ajax
  13144. .post(this.$store.state.api + "addCourseWorks", params)
  13145. .then((res) => {
  13146. this.$message({
  13147. message: this.lang.ssSubmitSuccess,
  13148. type: "success",
  13149. });
  13150. this.dialogVisibleSentenceTeacher = false;
  13151. // this.selectAnswer = {};
  13152. this.selectSWorks();
  13153. this.selectStudent();
  13154. })
  13155. .catch((err) => {
  13156. this.$message.error(this.lang.ssSubmitFailed);
  13157. console.error(err);
  13158. });
  13159. },
  13160. returnTableText() {
  13161. this.$confirm(this.lang.ssConfirmRestoreTemplate, this.lang.ssPrompt, {
  13162. confirmButtonText: this.lang.ssConfirm,
  13163. cancelButtonText: this.lang.ssCancel,
  13164. type: "warning",
  13165. })
  13166. .then(() => {
  13167. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13168. })
  13169. .catch(() => {});
  13170. },
  13171. addTableWorks() {
  13172. let params = [
  13173. {
  13174. uid: this.userid,
  13175. cid: this.id,
  13176. stage: this.courseType,
  13177. task: this.taskCount,
  13178. tool: this.toolindex,
  13179. content: JSON.stringify(this.tableJson),
  13180. type: 10,
  13181. },
  13182. ];
  13183. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13184. this.homeWorkLoading = true
  13185. this.ajax
  13186. .post(this.$store.state.api + "addCourseWorks", params)
  13187. .then((res) => {
  13188. this.$message({
  13189. message: this.lang.ssSubmitSuccess,
  13190. type: "success",
  13191. });
  13192. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13193. setTimeout(() => {
  13194. this.homeWorkLoading = false
  13195. }, 500);
  13196. this.dialogVisibleTable = false;
  13197. // this.selectAnswer = {};
  13198. this.selectSWorks();
  13199. this.selectStudent();
  13200. })
  13201. .catch((err) => {
  13202. this.$message.error(this.lang.ssSubmitFailed);
  13203. console.error(err);
  13204. setTimeout(() => {
  13205. this.homeWorkLoading = false
  13206. }, 500);
  13207. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13208. });
  13209. },
  13210. tableRowClassName({ row, rowIndex }) {
  13211. if ((rowIndex + 1) % 2 === 0) {
  13212. return "even_row";
  13213. } else {
  13214. return "";
  13215. }
  13216. },
  13217. addTableWorksTeacher() {
  13218. let params = [
  13219. {
  13220. uid: this.sStudent.userid,
  13221. cid: this.id,
  13222. stage: this.courseType,
  13223. task: this.taskCount,
  13224. tool: this.toolindex,
  13225. content: JSON.stringify(this.tableJson),
  13226. type: 10,
  13227. },
  13228. ];
  13229. this.ajax
  13230. .post(this.$store.state.api + "addCourseWorks", params)
  13231. .then((res) => {
  13232. this.$message({
  13233. message: this.lang.ssSubmitSuccess,
  13234. type: "success",
  13235. });
  13236. this.dialogVisibleTableTeacher = false;
  13237. // this.selectAnswer = {};
  13238. this.selectSWorks();
  13239. this.selectStudent();
  13240. })
  13241. .catch((err) => {
  13242. this.$message.error(this.lang.ssSubmitFailed);
  13243. console.error(err);
  13244. });
  13245. },
  13246. returnWordText() {
  13247. this.$confirm(this.lang.ssConfirmRestoreTemplate, this.lang.ssPrompt, {
  13248. confirmButtonText: this.lang.ssConfirm,
  13249. cancelButtonText: this.lang.ssCancel,
  13250. type: "warning",
  13251. })
  13252. .then(() => {
  13253. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13254. })
  13255. .catch(() => {});
  13256. },
  13257. addWordWorks() {
  13258. let params = [
  13259. {
  13260. uid: this.userid,
  13261. cid: this.id,
  13262. stage: this.courseType,
  13263. task: this.taskCount,
  13264. tool: this.toolindex,
  13265. content: JSON.stringify(this.wordJson),
  13266. type: 13,
  13267. atool: 52,
  13268. },
  13269. ];
  13270. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13271. this.homeWorkLoading = true
  13272. this.ajax
  13273. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13274. .then((res) => {
  13275. this.$message({
  13276. message: this.lang.ssSubmitSuccess,
  13277. type: "success",
  13278. });
  13279. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13280. setTimeout(() => {
  13281. this.homeWorkLoading = false
  13282. }, 500);
  13283. this.dialogVisibleWord = false;
  13284. // this.selectAnswer = {};
  13285. this.selectSWorks();
  13286. this.selectStudent();
  13287. })
  13288. .catch((err) => {
  13289. this.$message.error(this.lang.ssSubmitFailed);
  13290. console.error(err);
  13291. setTimeout(() => {
  13292. this.homeWorkLoading = false
  13293. }, 500);
  13294. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13295. });
  13296. },
  13297. addWordWorksTeacher() {
  13298. let params = [
  13299. {
  13300. uid: this.sStudent.userid,
  13301. cid: this.id,
  13302. stage: this.courseType,
  13303. task: this.taskCount,
  13304. tool: this.toolindex,
  13305. content: JSON.stringify(this.wordJson),
  13306. type: 13,
  13307. atool: 52,
  13308. },
  13309. ];
  13310. this.ajax
  13311. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13312. .then((res) => {
  13313. this.$message({
  13314. message: this.lang.ssSubmitSuccess,
  13315. type: "success",
  13316. });
  13317. this.dialogVisibleWordTeacher = false;
  13318. // this.selectAnswer = {};
  13319. this.selectSWorks();
  13320. this.selectStudent();
  13321. })
  13322. .catch((err) => {
  13323. this.$message.error(this.lang.ssSubmitFailed);
  13324. console.error(err);
  13325. });
  13326. },
  13327. addCourseWorks(i) {
  13328. var typesql;
  13329. if (this.fileType === 0) {
  13330. typesql = 1;
  13331. } else if (this.fileType === 1) {
  13332. typesql = 4;
  13333. } else if (this.fileType === 2) {
  13334. typesql = 5;
  13335. } else if (this.fileType === 3) {
  13336. typesql = 12;
  13337. }
  13338. if (!this.studyJuri[0].cover[0].url) {
  13339. this.$message.error(this.lang.ssUploadFileRequired);
  13340. return;
  13341. }
  13342. let params = [
  13343. {
  13344. uid: this.userid,
  13345. cid: this.id,
  13346. stage: this.courseType,
  13347. task: i,
  13348. tool: this.toolindex,
  13349. content: this.studyJuri[0].cover[0].url,
  13350. type: typesql,
  13351. },
  13352. ];
  13353. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13354. this.homeWorkLoading = true
  13355. this.ajax
  13356. .post(this.$store.state.api + "addCourseWorksR", params)
  13357. .then((res) => {
  13358. this.$message({
  13359. message: this.lang.ssSubmitSuccess,
  13360. type: "success",
  13361. });
  13362. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13363. setTimeout(() => {
  13364. this.homeWorkLoading = false
  13365. }, 500);
  13366. this.studyJuri[0].cover = [];
  13367. this.dialogVisible = false;
  13368. this.getCourseDetail(2);
  13369. })
  13370. .catch((err) => {
  13371. this.$message.error(this.lang.ssSubmitFailed);
  13372. console.error(err);
  13373. setTimeout(() => {
  13374. this.homeWorkLoading = false
  13375. }, 500);
  13376. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13377. });
  13378. },
  13379. addCourseWorksPl(i) {
  13380. let _files = this.plworkFile;
  13381. var c = 1;
  13382. for (var k = 0; k < _files.length; k++) {
  13383. if (!_files[k].username) {
  13384. c = 2;
  13385. }
  13386. }
  13387. if (c == 2) {
  13388. this.$message.error(this.lang.ssEnterStudentName);
  13389. return;
  13390. }
  13391. let params = [
  13392. {
  13393. ateacher: this.userid,
  13394. cid: this.id,
  13395. stage: this.courseType,
  13396. task: i,
  13397. tool: this.toolindex,
  13398. content: JSON.stringify(_files),
  13399. },
  13400. ];
  13401. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13402. this.homeWorkLoading = true
  13403. this.ajax
  13404. .post(this.$store.state.api + "addCourseWorksPl", params)
  13405. .then((res) => {
  13406. this.$message({
  13407. message: this.lang.ssSubmitSuccess,
  13408. type: "success",
  13409. });
  13410. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  13411. setTimeout(() => {
  13412. this.homeWorkLoading = false
  13413. }, 500);
  13414. this.plworkFile = [];
  13415. this.dialogVisiblePl = false;
  13416. this.getCourseDetail(2);
  13417. })
  13418. .catch((err) => {
  13419. this.$message.error(this.lang.ssSubmitFailed);
  13420. console.error(err);
  13421. setTimeout(() => {
  13422. this.homeWorkLoading = false
  13423. }, 500);
  13424. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  13425. });
  13426. },
  13427. addCourseWorks2(i) {
  13428. var typesql;
  13429. if (this.fileType === 0) {
  13430. typesql = 0;
  13431. } else if (this.fileType === 1) {
  13432. typesql = 1;
  13433. } else if (this.fileType === 2) {
  13434. typesql = 3;
  13435. } else if (this.fileType === 3) {
  13436. typesql = 12;
  13437. }
  13438. if (!this.studyJuri[0].cover[0].url) {
  13439. this.$message.error(this.lang.ssUploadFileRequired);
  13440. return;
  13441. }
  13442. let params = [
  13443. {
  13444. uid: this.userid,
  13445. cid: this.id,
  13446. stage: this.courseType,
  13447. task: i,
  13448. tool: this.toolindex,
  13449. content: JSON.stringify({
  13450. type: typesql,
  13451. groupIndex: this.groupIndex,
  13452. url: this.studyJuri[0].cover[0].url,
  13453. }),
  13454. type: 11,
  13455. atool: 49,
  13456. text: "",
  13457. },
  13458. ];
  13459. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13460. this.homeWorkLoading = true
  13461. this.ajax
  13462. .post(this.$store.state.api + "addCourseWorks5", params)
  13463. .then((res) => {
  13464. this.$message({
  13465. message: this.lang.ssSubmitSuccess,
  13466. type: "success",
  13467. });
  13468. setTimeout(() => {
  13469. this.homeWorkLoading = false
  13470. }, 500);
  13471. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13472. type: typesql,
  13473. groupIndex: this.groupIndex,
  13474. url: this.studyJuri[0].cover[0].url,
  13475. }),type: "course_tool_sub" }, "success")
  13476. this.studyJuri[0].cover = [];
  13477. this.dialogVisibleGroupWork = false;
  13478. this.getCourseDetail(2);
  13479. })
  13480. .catch((err) => {
  13481. this.$message.error(this.lang.ssSubmitFailed);
  13482. console.error(err);
  13483. setTimeout(() => {
  13484. this.homeWorkLoading = false
  13485. }, 500);
  13486. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13487. type: typesql,
  13488. groupIndex: this.groupIndex,
  13489. url: this.studyJuri[0].cover[0].url,
  13490. }),type: "course_tool_sub" }, err)
  13491. });
  13492. },
  13493. addEnglishWork() {
  13494. this.myAnList = this.$refs['engJson'].myAnswerList;
  13495. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13496. this.$message.error(this.lang.ssEnterEssayContent);
  13497. return;
  13498. }
  13499. let params = [
  13500. {
  13501. uid: this.userid,
  13502. cid: this.id,
  13503. stage: this.courseType,
  13504. task: this.taskCount,
  13505. tool: this.englishToolIndex,
  13506. content: JSON.stringify(this.myAnList),
  13507. type: 16,
  13508. atool: 69,
  13509. text: "",
  13510. },
  13511. ];
  13512. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13513. this.homeWorkLoading = true
  13514. this.ajax
  13515. .post(this.$store.state.api + "addCourseWorks5", params)
  13516. .then((res) => {
  13517. this.$message({
  13518. message: this.lang.ssSubmitSuccess,
  13519. type: "success",
  13520. });
  13521. setTimeout(() => {
  13522. this.homeWorkLoading = false
  13523. }, 500);
  13524. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  13525. data: JSON.stringify(this.myAnList),
  13526. type: "course_tool_sub" }, "success")
  13527. this.myAnList = {};
  13528. this.englishList = {};
  13529. this.englishToolIndex = 0;
  13530. this.engDialogVisible = false;
  13531. this.selectSWorks();
  13532. this.selectStudent();
  13533. })
  13534. .catch((err) => {
  13535. this.$message.error(this.lang.ssSubmitFailed);
  13536. console.error(err);
  13537. setTimeout(() => {
  13538. this.homeWorkLoading = false
  13539. }, 500);
  13540. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  13541. data: JSON.stringify(this.myAnList),
  13542. type: "course_tool_sub" }, err)
  13543. });
  13544. },
  13545. addCourseWorksGong(i, data, tool) {
  13546. let params = [
  13547. {
  13548. uid: this.userid,
  13549. cid: this.id,
  13550. stage: this.courseType,
  13551. task: this.taskCount,
  13552. tool: i,
  13553. content: data,
  13554. type: 12,
  13555. atool: tool,
  13556. text: "",
  13557. },
  13558. ];
  13559. this.ajax
  13560. .post(this.$store.state.api + "addCourseWorks5", params)
  13561. .then((res) => {
  13562. this.$message({
  13563. message: this.lang.ssSubmitSuccess,
  13564. type: "success",
  13565. });
  13566. this.studyJuri[0].cover = [];
  13567. this.selectSWorks();
  13568. this.selectStudent();
  13569. })
  13570. .catch((err) => {
  13571. this.$message.error(this.lang.ssSubmitFailed);
  13572. console.error(err);
  13573. });
  13574. },
  13575. addCourseWorksGongTeacher(i, data, tool) {
  13576. let params = [
  13577. {
  13578. uid: this.sStudent.userid,
  13579. cid: this.id,
  13580. stage: this.courseType,
  13581. task: this.taskCount,
  13582. tool: i,
  13583. content: data,
  13584. type: 12,
  13585. atool: tool,
  13586. text: "",
  13587. },
  13588. ];
  13589. this.ajax
  13590. .post(this.$store.state.api + "addCourseWorks5", params)
  13591. .then((res) => {
  13592. this.$message({
  13593. message: this.lang.ssSubmitSuccess,
  13594. type: "success",
  13595. });
  13596. this.studyJuri[0].cover = [];
  13597. this.dialogVisibleWorks = false;
  13598. this.selectSWorks();
  13599. this.selectStudent();
  13600. })
  13601. .catch((err) => {
  13602. this.$message.error(this.lang.ssSubmitFailed);
  13603. console.error(err);
  13604. });
  13605. },
  13606. addCourseWorksGongPl(i, data, tool, type) {
  13607. let params = [
  13608. {
  13609. uid: this.sStudent.userid,
  13610. cid: this.id,
  13611. stage: this.courseType,
  13612. task: this.taskCount,
  13613. tool: i,
  13614. content: data,
  13615. type: type,
  13616. atool: tool,
  13617. text: "",
  13618. },
  13619. ];
  13620. this.ajax
  13621. .post(this.$store.state.api + "addCourseWorks5", params)
  13622. .then((res) => {
  13623. this.$message({
  13624. message: this.lang.ssSubmitSuccess,
  13625. type: "success",
  13626. });
  13627. this.studyJuri[0].cover = [];
  13628. this.dialogVisibleWorks = false;
  13629. this.selectSWorks();
  13630. this.selectStudent();
  13631. })
  13632. .catch((err) => {
  13633. this.$message.error(this.lang.ssSubmitFailed);
  13634. console.error(err);
  13635. });
  13636. },
  13637. addCourseWorksTeacher(i) {
  13638. var typesql;
  13639. if (this.sTool == 32) {
  13640. this.addCourseWorksGongTeacher(
  13641. this.toolindex,
  13642. this.studyJuri[0].cover[0].url,
  13643. this.sTool
  13644. );
  13645. return;
  13646. }
  13647. if (this.fileType === 0) {
  13648. typesql = 1;
  13649. } else if (this.fileType === 1) {
  13650. typesql = 4;
  13651. } else if (this.fileType === 2) {
  13652. typesql = 5;
  13653. } else if (this.fileType === 3) {
  13654. typesql = 12;
  13655. }
  13656. if (this.sTool == 50) {
  13657. this.addCourseWorksGongPl(
  13658. this.toolindex,
  13659. this.studyJuri[0].cover[0].url,
  13660. this.sTool,
  13661. typesql
  13662. );
  13663. return;
  13664. }
  13665. if (!this.studyJuri[0].cover[0].url) {
  13666. this.$message.error(this.lang.ssUploadFileRequired);
  13667. return;
  13668. }
  13669. let params = [
  13670. {
  13671. uid: this.sStudent.userid,
  13672. cid: this.id,
  13673. stage: this.courseType,
  13674. task: i,
  13675. tool: this.toolindex,
  13676. content: this.studyJuri[0].cover[0].url,
  13677. type: typesql,
  13678. ateacher: this.userid,
  13679. },
  13680. ];
  13681. this.ajax
  13682. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13683. .then((res) => {
  13684. this.$message({
  13685. message: this.lang.ssSubmitSuccess,
  13686. type: "success",
  13687. });
  13688. this.studyJuri[0].cover = [];
  13689. this.dialogVisibleWorks = false;
  13690. this.getCourseDetail(2);
  13691. })
  13692. .catch((err) => {
  13693. this.$message.error(this.lang.ssSubmitFailed);
  13694. console.error(err);
  13695. });
  13696. },
  13697. selectUploadStudent(type) {
  13698. const loading = this.$loading.service({
  13699. background: "rgba(255, 255, 255, 0.7)",
  13700. target: document.body,
  13701. });
  13702. let params = {
  13703. cid: this.uploadCid,
  13704. oid: this.oid,
  13705. cn: "",
  13706. };
  13707. this.ajax
  13708. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13709. .then((res) => {
  13710. loading.close();
  13711. var studentK = [];
  13712. if (this.isWorksS[this.toolindex].length > 0) {
  13713. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13714. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13715. }
  13716. studentK = studentK.join(",");
  13717. }
  13718. this.uploadStudentJuri = res.data[0].filter((el) => {
  13719. return studentK.indexOf(el.userid) == -1;
  13720. });
  13721. if (this.worksSName && this.worksSid) {
  13722. this.uploadStudentJuri.push({
  13723. userid: this.worksSid,
  13724. name: this.worksSName,
  13725. });
  13726. }
  13727. if (type == 1) {
  13728. this.plworkFile = [];
  13729. this.dialogVisibleSname = true;
  13730. } else if (type == 2) {
  13731. this.dialogVisiblePl = true;
  13732. }
  13733. })
  13734. .catch((err) => {
  13735. loading.close();
  13736. console.error(err);
  13737. });
  13738. },
  13739. selectPickStudent() {
  13740. const loading = this.$loading.service({
  13741. background: "rgba(255, 255, 255, 0.7)",
  13742. target: document.body,
  13743. });
  13744. let params = {
  13745. cid: this.uploadCid,
  13746. oid: this.oid,
  13747. cn: "",
  13748. };
  13749. this.ajax
  13750. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13751. .then((res) => {
  13752. loading.close();
  13753. this.uploadStudentJuri = res.data[0];
  13754. this.dialogVisiblePickPeople = true;
  13755. })
  13756. .catch((err) => {
  13757. loading.close();
  13758. console.error(err);
  13759. });
  13760. },
  13761. arrayToArray(arrayo, arrayt) {
  13762. let array1 = arrayo;
  13763. let array2 = arrayt;
  13764. let commonElements = [];
  13765. for (let i = 0; i < array1.length; i++) {
  13766. for (let j = 0; j < array2.length; j++) {
  13767. if (array1[i] === array2[j]) {
  13768. commonElements.push(array1[i]);
  13769. }
  13770. }
  13771. }
  13772. return commonElements;
  13773. },
  13774. selectWorksStudent() {
  13775. let params = {
  13776. oid: this.oid,
  13777. cid: this.courseDetail.juri,
  13778. };
  13779. this.ajax
  13780. .get(this.$store.state.api + "selectWorksStudent", params)
  13781. .then((res) => {
  13782. var a = res.data[0];
  13783. for (var i = 0; i < this.isWorksS.length; i++) {
  13784. this.noWorksS[i] = [];
  13785. var studentK = [];
  13786. if (this.isWorksS[i].length > 0) {
  13787. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13788. studentK.push(this.isWorksS[i][z].uid);
  13789. }
  13790. studentK = studentK.join(",");
  13791. for (var j = 0; j < a.length; j++) {
  13792. if (studentK.indexOf(a[j].userid) == -1) {
  13793. if (this.tcid) {
  13794. // a[j].classid.indexOf(this.tcid) != -1
  13795. if (
  13796. this.arrayToArray(
  13797. a[j].classid.split(","),
  13798. this.tcid.split(",")
  13799. ).length
  13800. ) {
  13801. this.noWorksS[i].push({
  13802. student: a[j].name,
  13803. userid: a[j].userid,
  13804. });
  13805. }
  13806. } else {
  13807. this.noWorksS[i].push({
  13808. student: a[j].name,
  13809. userid: a[j].userid,
  13810. });
  13811. }
  13812. }
  13813. }
  13814. } else {
  13815. for (var k = 0; k < a.length; k++) {
  13816. if (this.tcid) {
  13817. if (
  13818. this.arrayToArray(
  13819. a[k].classid.split(","),
  13820. this.tcid.split(",")
  13821. ).length
  13822. ) {
  13823. this.noWorksS[i].push({
  13824. student: a[k].name,
  13825. userid: a[k].userid,
  13826. });
  13827. }
  13828. } else {
  13829. this.noWorksS[i].push({
  13830. student: a[k].name,
  13831. userid: a[k].userid,
  13832. });
  13833. }
  13834. }
  13835. }
  13836. }
  13837. this.$forceUpdate();
  13838. if (
  13839. Object.keys(this.commentDetail).length &&
  13840. Object.keys(this.commentIndexJson).length &&
  13841. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13842. ) {
  13843. let a = 1;
  13844. let c = this.commentIndexJson;
  13845. if (
  13846. this.commentIndexJson.gindex ||
  13847. this.commentIndexJson.gindex === 0
  13848. ) {
  13849. for (
  13850. var i = 0;
  13851. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13852. i++
  13853. ) {
  13854. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13855. groupA: for (var k = 0; k < _el.length; k++) {
  13856. let el = _el[k];
  13857. if (el.wid == this.commentDetail.wid) {
  13858. a = 2;
  13859. this.commentOther(
  13860. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13861. this.commentIndexJson.toolIndex,
  13862. k,
  13863. this.commentIndexJson.gindex
  13864. );
  13865. break groupA;
  13866. }
  13867. }
  13868. }
  13869. if (a === 1) {
  13870. this.commentDetail = [];
  13871. this.commentIndexJson = {};
  13872. this.commentDialogVisible = false;
  13873. this.$message(this.lang.ssHomeworkDeleted);
  13874. }
  13875. } else {
  13876. if (this.isGroup && this.commentIndexJson.gid) {
  13877. groupA: for (
  13878. var i = 0;
  13879. i < this.courseGroup.group.length;
  13880. i++
  13881. ) {
  13882. let _group = this.courseGroup.group[i];
  13883. if (_group.id == this.commentIndexJson.gid) {
  13884. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13885. for (var k = 0; k < _el2.length; k++) {
  13886. let el2 = _el2[k];
  13887. if (el2.wid == this.commentDetail.wid) {
  13888. a = 2;
  13889. this.commentOther(
  13890. _el2[k],
  13891. this.commentIndexJson.toolIndex,
  13892. k,
  13893. null,
  13894. this.commentIndexJson.gid
  13895. );
  13896. break groupA;
  13897. }
  13898. }
  13899. }
  13900. }
  13901. }
  13902. if (a == 1) {
  13903. for (
  13904. var i = 0;
  13905. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13906. i++
  13907. ) {
  13908. let el =
  13909. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13910. if (el.wid == this.commentDetail.wid) {
  13911. a = 2;
  13912. this.commentOther(
  13913. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13914. this.commentIndexJson.toolIndex,
  13915. i
  13916. );
  13917. break;
  13918. }
  13919. }
  13920. }
  13921. if (a === 1) {
  13922. this.commentDetail = [];
  13923. this.commentIndexJson = {};
  13924. this.commentDialogVisible = false;
  13925. this.$message(this.lang.ssHomeworkDeleted);
  13926. }
  13927. }
  13928. }
  13929. })
  13930. .catch((err) => {
  13931. console.error(err);
  13932. });
  13933. },
  13934. selectStudent() {
  13935. if(this.selectStudentLoading) return
  13936. this.selectStudentLoading = true
  13937. //学生查看自己作业
  13938. let params = {
  13939. uid: this.userid,
  13940. cid: this.id,
  13941. s: this.courseType,
  13942. t: this.taskCount,
  13943. };
  13944. this.ajax
  13945. .get(this.$store.state.api + "selectStudentWorks", params)
  13946. .then((res) => {
  13947. var a =
  13948. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13949. this.taskCount
  13950. ].toolChoose;
  13951. var b = res.data[0];
  13952. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13953. var y = [
  13954. "AVI",
  13955. "NAVI",
  13956. "MPEG",
  13957. "ASF",
  13958. "MOV",
  13959. "WMV",
  13960. "3GP",
  13961. "RM",
  13962. "RMVB",
  13963. "FLV",
  13964. "F4V",
  13965. "H.264",
  13966. "H.265",
  13967. "REAL VIDEO",
  13968. "MKV",
  13969. "WebM",
  13970. "HDDVD",
  13971. "MP4",
  13972. "MPG",
  13973. "M4V",
  13974. "MGV",
  13975. "OGV",
  13976. "QTM",
  13977. "STR",
  13978. "AMC",
  13979. "DVX",
  13980. "EVO",
  13981. "DAT",
  13982. "OGG",
  13983. "OGM",
  13984. ];
  13985. for (var i = 0; i < a.length; i++) {
  13986. this.workStudent[i] = [];
  13987. for (var j = 0; j < b.length; j++) {
  13988. if (i == b[j].tool) {
  13989. if (
  13990. (b[j].type == 1 ||
  13991. b[j].type == 4 ||
  13992. b[j].type == 5 ||
  13993. b[j].type == 6 ||
  13994. b[j].type == 12 ||
  13995. b[j].type == 7) &&
  13996. a[i].tool[0] != 15 &&
  13997. a[i].tool[0] != 4 &&
  13998. a[i].tool[0] != 45 &&
  13999. a[i].tool[0] != 50 &&
  14000. a[i].tool[0] != 32 &&
  14001. a[i].tool[0] != 57 &&
  14002. a[i].tool[0] != 52 &&
  14003. a[i].tool[0] != 69
  14004. ) {
  14005. if (
  14006. c.indexOf(
  14007. b[j].content
  14008. .split(".")
  14009. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14010. ) != -1 &&
  14011. a[i].tool[0] == 16 &&
  14012. b[j].atool != 50
  14013. ) {
  14014. this.workStudent[i].push({
  14015. works: b[j].content,
  14016. sName: b[j].name,
  14017. score: b[j].score,
  14018. img: b[j].img,
  14019. type: 1,
  14020. time: b[j].time,
  14021. userid: b[j].userid,
  14022. wid: b[j].id,
  14023. });
  14024. } else if (
  14025. y.indexOf(
  14026. b[j].content
  14027. .split(".")
  14028. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14029. ) != -1 &&
  14030. a[i].tool[0] == 16 &&
  14031. b[j].atool != 50
  14032. ) {
  14033. this.workStudent[i].push({
  14034. userid: b[j].userid,
  14035. wid: b[j].id,
  14036. works: b[j].content,
  14037. sName: b[j].name,
  14038. score: b[j].score,
  14039. img: b[j].img,
  14040. type: 3,
  14041. time: b[j].time,
  14042. });
  14043. } else if (b[j].type == 6 && b[j].atool != 50) {
  14044. this.workStudent[i].push({
  14045. userid: b[j].userid,
  14046. wid: b[j].id,
  14047. works: b[j].content,
  14048. sName: b[j].name,
  14049. score: b[j].score,
  14050. img: b[j].img,
  14051. type: 4,
  14052. time: b[j].time,
  14053. });
  14054. } else if (b[j].type == 7 && b[j].atool != 50) {
  14055. this.workStudent[i].push({
  14056. userid: b[j].userid,
  14057. wid: b[j].id,
  14058. works: b[j].content,
  14059. sName: b[j].name,
  14060. score: b[j].score,
  14061. img: b[j].img,
  14062. type: 5,
  14063. time: b[j].time,
  14064. });
  14065. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14066. this.workStudent[i].push({
  14067. works: b[j].content,
  14068. sName: b[j].name,
  14069. score: b[j].score,
  14070. img: b[j].img,
  14071. type: 12,
  14072. time: b[j].time,
  14073. userid: b[j].userid,
  14074. wid: b[j].id,
  14075. });
  14076. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14077. this.workStudent[i].push({
  14078. works: b[j].content,
  14079. sName: b[j].name,
  14080. score: b[j].score,
  14081. img: b[j].img,
  14082. type: 0,
  14083. time: b[j].time,
  14084. userid: b[j].userid,
  14085. wid: b[j].id,
  14086. });
  14087. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14088. this.workStudent[i].push({
  14089. works: b[j].content,
  14090. sName: b[j].name,
  14091. score: b[j].score,
  14092. img: b[j].img,
  14093. type: 0,
  14094. time: b[j].time,
  14095. userid: b[j].userid,
  14096. wid: b[j].id,
  14097. });
  14098. }
  14099. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14100. this.workStudent[i].push({
  14101. works: b[j].content,
  14102. sName: b[j].name,
  14103. score: b[j].score,
  14104. img: b[j].img,
  14105. type: 2,
  14106. time: b[j].time,
  14107. userid: b[j].userid,
  14108. wid: b[j].id,
  14109. });
  14110. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14111. this.workStudent[i].push({
  14112. works: b[j].content,
  14113. sName: b[j].name,
  14114. score: b[j].score,
  14115. img: b[j].img,
  14116. type: 20,
  14117. time: b[j].time,
  14118. userid: b[j].userid,
  14119. wid: b[j].id,
  14120. });
  14121. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14122. //问卷
  14123. this.workStudent[i].push({
  14124. works: b[j].content,
  14125. sName: b[j].name,
  14126. score: b[j].score,
  14127. img: b[j].img,
  14128. type: 2,
  14129. time: b[j].time,
  14130. userid: b[j].userid,
  14131. wid: b[j].id,
  14132. });
  14133. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14134. //选择题
  14135. this.workStudent[i].push({
  14136. works: b[j].content,
  14137. sName: b[j].name,
  14138. score: b[j].score,
  14139. img: b[j].img,
  14140. type: 8,
  14141. time: b[j].time,
  14142. userid: b[j].userid,
  14143. wid: b[j].id,
  14144. });
  14145. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14146. //选择题
  14147. this.workStudent[i].push({
  14148. works: b[j].content,
  14149. sName: b[j].name,
  14150. score: b[j].score,
  14151. img: b[j].img,
  14152. type: 9,
  14153. time: b[j].time,
  14154. userid: b[j].userid,
  14155. wid: b[j].id,
  14156. });
  14157. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14158. //选择题
  14159. this.workStudent[i].push({
  14160. works: b[j].content,
  14161. sName: b[j].name,
  14162. score: b[j].score,
  14163. img: b[j].img,
  14164. type: 10,
  14165. time: b[j].time,
  14166. userid: b[j].userid,
  14167. wid: b[j].id,
  14168. });
  14169. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14170. //选择题
  14171. this.workStudent[i].push({
  14172. works: b[j].content,
  14173. sName: b[j].name,
  14174. score: b[j].score,
  14175. img: b[j].img,
  14176. type: 13,
  14177. time: b[j].time,
  14178. userid: b[j].userid,
  14179. wid: b[j].id,
  14180. });
  14181. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14182. //选择题
  14183. this.workStudent[i].push({
  14184. works: b[j].content,
  14185. sName: b[j].name,
  14186. score: b[j].score,
  14187. img: b[j].img,
  14188. type: 12,
  14189. time: b[j].time,
  14190. userid: b[j].userid,
  14191. wid: b[j].id,
  14192. });
  14193. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14194. //选择题
  14195. this.workStudent[i].push({
  14196. works: b[j].content,
  14197. sName: b[j].name,
  14198. score: b[j].score,
  14199. img: b[j].img,
  14200. type: 12,
  14201. time: b[j].time,
  14202. userid: b[j].userid,
  14203. wid: b[j].id,
  14204. });
  14205. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14206. //选择题
  14207. this.workStudent[i].push({
  14208. works: b[j].content,
  14209. sName: b[j].name,
  14210. score: b[j].score,
  14211. img: b[j].img,
  14212. type: 15,
  14213. time: b[j].time,
  14214. userid: b[j].userid,
  14215. wid: b[j].id,
  14216. });
  14217. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14218. //英语写作
  14219. this.workStudent[i].push({
  14220. works: b[j].content,
  14221. sName: b[j].name,
  14222. score: b[j].score,
  14223. img: b[j].img,
  14224. type: 16,
  14225. time: b[j].time,
  14226. userid: b[j].userid,
  14227. wid: b[j].id,
  14228. aiCode: b[j].aiCode,
  14229. teacherCode: b[j].teacherCode
  14230. });
  14231. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14232. //英语口语
  14233. this.workStudent[i].push({
  14234. works: b[j].content,
  14235. sName: b[j].name,
  14236. score: b[j].score,
  14237. img: b[j].img,
  14238. type: 17,
  14239. time: b[j].time,
  14240. userid: b[j].userid,
  14241. wid: b[j].id,
  14242. });
  14243. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14244. //交互视频
  14245. this.workStudent[i].push({
  14246. works: b[j].content,
  14247. sName: b[j].name,
  14248. score: b[j].score,
  14249. img: b[j].img,
  14250. type: 14,
  14251. time: b[j].time,
  14252. userid: b[j].userid,
  14253. wid: b[j].id,
  14254. });
  14255. }
  14256. }
  14257. }
  14258. }
  14259. this.selectStudentLoading = false
  14260. })
  14261. .catch((err) => {
  14262. this.selectStudentLoading = false
  14263. console.error(err);
  14264. });
  14265. },
  14266. openVideo(w) {
  14267. this.videoDetail = {};
  14268. this.playerOptions1.sources[0].src = w.works;
  14269. this.videoDetail = this.playerOptions1;
  14270. this.videoVisible = true;
  14271. },
  14272. isLikes(wid, uid, t, c, isLikes,sName) {
  14273. if (isLikes == false) {
  14274. let params = [
  14275. {
  14276. wid: wid,
  14277. lid: uid,
  14278. t: t,
  14279. c: c,
  14280. },
  14281. ];
  14282. this.ajax
  14283. .post(this.$store.state.api + "insertComment", params)
  14284. .then((res) => {
  14285. this.$message({
  14286. message: this.lang.ssLikeSuccess,
  14287. type: "success",
  14288. });
  14289. this.selectSWorks();
  14290. this.selectStudent();
  14291. if(this.tType!=2){
  14292. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14293. }
  14294. })
  14295. .catch((err) => {
  14296. this.$message.error(this.lang.ssLikeFailed);
  14297. console.error(err);
  14298. });
  14299. } else {
  14300. let params = {
  14301. wid: wid,
  14302. lid: uid,
  14303. type: t,
  14304. };
  14305. this.ajax
  14306. .get(this.$store.state.api + "deleteComment", params)
  14307. .then((res) => {
  14308. this.$message({
  14309. message: this.lang.ssCancelLikeSuccess,
  14310. type: "success",
  14311. });
  14312. this.selectSWorks();
  14313. this.selectStudent();
  14314. })
  14315. .catch((err) => {
  14316. console.error(err);
  14317. });
  14318. }
  14319. },
  14320. deleteComment(wid) {
  14321. this.$confirm(this.lang.ssConfirmDeleteComment, this.lang.ssPrompt, {
  14322. confirmButtonText: this.lang.ssConfirm,
  14323. cancelButtonText: this.lang.ssCancel,
  14324. type: "warning",
  14325. })
  14326. .then(() => {
  14327. let params = {
  14328. id: wid,
  14329. };
  14330. this.ajax
  14331. .get(this.$store.state.api + "deleteComment2", params)
  14332. .then((res) => {
  14333. this.$message({
  14334. message: this.lang.ssDeleteCommentSuccess,
  14335. type: "success",
  14336. });
  14337. this.selectSWorks();
  14338. this.selectStudent();
  14339. })
  14340. .catch((err) => {
  14341. console.error(err);
  14342. });
  14343. })
  14344. .catch(() => {});
  14345. },
  14346. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14347. this.commentIndexJson = {
  14348. toolIndex: toolIndex,
  14349. wIndex: wIndex,
  14350. gindex: gindex,
  14351. gid: gid,
  14352. };
  14353. this.commentDetail = [];
  14354. this.commentDialogVisible = true;
  14355. this.commentDetail = w;
  14356. if (w.works && w.type == 1) {
  14357. // this.pptImgUrl = "";
  14358. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14359. if (
  14360. a.indexOf(
  14361. w.works
  14362. .split(".")
  14363. [w.works.split(".").length - 1].toLocaleUpperCase()
  14364. ) != -1
  14365. ) {
  14366. let _uuurl = await this.checkLink(w.works);
  14367. console.log(_uuurl)
  14368. this.pptImgUrl =
  14369. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14370. this.showPDF = false;
  14371. } else if (
  14372. w.works
  14373. .split(".")
  14374. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14375. ) {
  14376. this.pptImgUrl = w.works;
  14377. this.showPDF = true;
  14378. }
  14379. } else if (w.works && w.type == 3) {
  14380. this.videoDetail = {};
  14381. this.playerOptions1.sources[0].src = w.works;
  14382. this.videoDetail = this.playerOptions1;
  14383. // this.videoVisible = true;
  14384. } else if (w.works && w.type == 4) {
  14385. this.eScore = JSON.parse(w.works);
  14386. this.rateJson =
  14387. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14388. this.taskCount
  14389. ].toolChoose[toolIndex].rateJson;
  14390. } else if (w.works && w.type == 10) {
  14391. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14392. } else if (w.works && w.type == 13) {
  14393. this.wordJson =
  14394. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14395. this.taskCount
  14396. ].toolChoose[toolIndex].wordJson;
  14397. }
  14398. },
  14399. async openScore(w, index) {
  14400. this.wScore = 0;
  14401. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14402. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14403. this.commentDetail = [];
  14404. if(w.type == 17){
  14405. this.dialogVisibleENScore = true;
  14406. }else{
  14407. this.dialogVisibleScore = true;
  14408. }
  14409. this.commentDetail = w;
  14410. if (w.works && w.type == 1) {
  14411. this.pptImgUrl = "";
  14412. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14413. if (
  14414. a.indexOf(
  14415. w.works
  14416. .split(".")
  14417. [w.works.split(".").length - 1].toLocaleUpperCase()
  14418. ) != -1
  14419. ) {
  14420. let _uuurl = await this.checkLink(w.works);
  14421. console.log(_uuurl)
  14422. this.pptImgUrl =
  14423. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14424. this.showPDF = false;
  14425. } else if (
  14426. w.works
  14427. .split(".")
  14428. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14429. ) {
  14430. this.pptImgUrl = w.works;
  14431. this.showPDF = true;
  14432. }
  14433. } else if (w.works && w.type == 3) {
  14434. this.videoDetail = {};
  14435. this.playerOptions1.sources[0].src = w.works;
  14436. this.videoDetail = this.playerOptions1;
  14437. }else if(w.type == 17){
  14438. let englishVoiceJson = {}
  14439. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14440. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14441. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14442. .toolChoose[index].englishVoiceJson
  14443. : {};
  14444. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14445. }
  14446. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14447. },
  14448. addComment(wid, uid, t,detail) {
  14449. if (this.commentText == "") {
  14450. this.$message.error(this.lang.ssEnterComment);
  14451. return;
  14452. }
  14453. let params2 = [
  14454. {
  14455. wid: wid,
  14456. lid: uid,
  14457. t: t,
  14458. },
  14459. ];
  14460. this.ajax
  14461. .post(this.$store.state.api + "getComment", params2)
  14462. .then((res) => {
  14463. if (res.data[0].length > 0) {
  14464. this.$message.error(this.lang.ssOnlyOneCommentPerHomework);
  14465. } else {
  14466. let params = [
  14467. {
  14468. wid: wid,
  14469. lid: uid,
  14470. t: t,
  14471. c: this.commentText,
  14472. },
  14473. ];
  14474. this.ajax
  14475. .post(this.$store.state.api + "insertComment", params)
  14476. .then((res) => {
  14477. this.$message({
  14478. message: this.lang.ssCommentSuccess,
  14479. type: "success",
  14480. });
  14481. this.commentText = "";
  14482. this.selectSWorks();
  14483. this.selectStudent();
  14484. if(this.tType!=2){
  14485. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14486. }
  14487. })
  14488. .catch((err) => {
  14489. this.$message.error(this.lang.ssCommentFailed);
  14490. console.error(err);
  14491. });
  14492. }
  14493. })
  14494. .catch((err) => {
  14495. // this.$message.error("评论失败");
  14496. console.error(err);
  14497. });
  14498. },
  14499. scoreWork(wid,sName) {
  14500. if (this.wScore == 0) {
  14501. this.$message.error(this.lang.ssPleaseRate);
  14502. return;
  14503. }
  14504. let params = [
  14505. {
  14506. wid: wid,
  14507. score: JSON.stringify({
  14508. wScore: this.wScore,
  14509. detail: this.scoreDetail,
  14510. }),
  14511. },
  14512. ];
  14513. this.ajax
  14514. .post(this.$store.state.api + "scoreWork", params)
  14515. .then((res) => {
  14516. this.$message({
  14517. message: this.lang.ssRatingSuccess,
  14518. type: "success",
  14519. });
  14520. this.wScore = 0;
  14521. this.scoreDetail = "";
  14522. this.dialogVisibleScore = false;
  14523. this.selectSWorks();
  14524. this.selectStudent();
  14525. if(this.tType!=2){
  14526. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14527. }
  14528. })
  14529. .catch((err) => {
  14530. this.$message.error(this.lang.ssRatingFailed);
  14531. console.error(err);
  14532. });
  14533. },
  14534. openXz(w, i) {
  14535. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14536. .taskJson[this.taskCount].toolChoose[i].selectJson
  14537. ? JSON.parse(
  14538. JSON.stringify(
  14539. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14540. this.taskCount
  14541. ].toolChoose[i].selectJson
  14542. )
  14543. )
  14544. : { url: "", select: [], answer: [] };
  14545. var a = w.works.split(",");
  14546. for (var k = 0; k < a.length; k++) {
  14547. a[k] = parseInt(a[k]);
  14548. }
  14549. this.selectAnswer = { answer: a, stu: w.sName };
  14550. this.isSelect = true;
  14551. this.dialogVisibleSelect = true;
  14552. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14553. },
  14554. openSen(w, i) {
  14555. this.sentenceList1 = JSON.parse(w.works);
  14556. this.sentenceList1.stuName = w.sName;
  14557. this.dialogVisibleSentence1 = true;
  14558. },
  14559. openPj(w, toolindex) {
  14560. this.isStar = true;
  14561. this.eScore = JSON.parse(w);
  14562. this.rateJson =
  14563. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14564. this.taskCount
  14565. ].toolChoose[toolindex].rateJson;
  14566. this.studentEvalDialogVisible = true;
  14567. },
  14568. openEnglishEva(id,i){
  14569. let params = {
  14570. wid: id
  14571. };
  14572. this.ajax
  14573. .get(this.$store.state.api + "selectEngWork", params)
  14574. .then((res) => {
  14575. this.evaEngJson.message = res.data[0][0];
  14576. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14577. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14578. .toolChoose[i].englishList;
  14579. this.engEvaDialogVisible = true;
  14580. })
  14581. .catch((err) => {
  14582. console.error(err);
  14583. });
  14584. },
  14585. deleteWorks(id) {
  14586. this.$confirm(this.lang.ssConfirmDeleteWork, this.lang.ssPrompt, {
  14587. confirmButtonText: this.lang.ssConfirm,
  14588. cancelButtonText: this.lang.ssCancel,
  14589. type: "warning",
  14590. })
  14591. .then(() => {
  14592. let params = [
  14593. {
  14594. id: id,
  14595. },
  14596. ];
  14597. this.ajax
  14598. .post(this.$store.state.api + "deleteCourseWork", params)
  14599. .then((res) => {
  14600. this.$message({
  14601. message: this.lang.ssDeleteSuccess,
  14602. type: "success",
  14603. });
  14604. this.selectStudent();
  14605. this.selectSWorks();
  14606. this.selectSLook();
  14607. })
  14608. .catch((err) => {
  14609. this.$message.error(this.lang.ssNetworkError);
  14610. console.error(err);
  14611. });
  14612. })
  14613. .catch(() => {});
  14614. },
  14615. selectSWorks(gindex) {
  14616. if(this.selectSWorksLoading) return
  14617. this.selectSWorksLoading = true
  14618. //教师查看全部作业
  14619. let params = {
  14620. cid: this.id,
  14621. s: this.courseType,
  14622. t: this.taskCount,
  14623. };
  14624. this.ajax
  14625. .get(this.$store.state.api + "selectSWorks", params)
  14626. .then((res) => {
  14627. var a =
  14628. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14629. this.taskCount
  14630. ].toolChoose;
  14631. var b = res.data[0];
  14632. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14633. var y = [
  14634. "AVI",
  14635. "NAVI",
  14636. "MPEG",
  14637. "ASF",
  14638. "MOV",
  14639. "WMV",
  14640. "3GP",
  14641. "RM",
  14642. "RMVB",
  14643. "FLV",
  14644. "F4V",
  14645. "H.264",
  14646. "H.265",
  14647. "REAL VIDEO",
  14648. "MKV",
  14649. "WebM",
  14650. "HDDVD",
  14651. "MP4",
  14652. "MPG",
  14653. "M4V",
  14654. "MGV",
  14655. "OGV",
  14656. "QTM",
  14657. "STR",
  14658. "AMC",
  14659. "DVX",
  14660. "EVO",
  14661. "DAT",
  14662. "OGG",
  14663. "OGM",
  14664. ];
  14665. var d = res.data[1];
  14666. var e = res.data[2];
  14667. var f = res.data[3];
  14668. let _worksStudent = [];
  14669. var _worksStudent2 = [];
  14670. for (var i = 0; i < a.length; i++) {
  14671. _worksStudent[i] = [];
  14672. _worksStudent2[i] = [];
  14673. if (
  14674. !this.isCloseList[i] ||
  14675. this.isCloseList[i].isClose == undefined
  14676. ) {
  14677. this.isCloseList[i] = { isClose: 0 };
  14678. }
  14679. this.groupStudent[i] = [];
  14680. this.groupStudentUid[i] = [];
  14681. if (this.isGroup) {
  14682. for (
  14683. var groupI = 0;
  14684. groupI < this.courseGroup.group.length;
  14685. groupI++
  14686. ) {
  14687. this.courseGroup.group[groupI].works[i] = [];
  14688. }
  14689. }
  14690. this.isWorksS[i] = [];
  14691. this.checkJson[i] = [];
  14692. if (a[i].tool[0] == 49) {
  14693. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14694. this.groupStudent[i][gA] = [];
  14695. this.groupStudentUid[i][gA] = [];
  14696. _worksStudent[i][gA] = [];
  14697. _worksStudent2[i][gA] = [];
  14698. this.isCloseList[i][gA] = [];
  14699. for (var g = 0; g < f.length; g++) {
  14700. if (
  14701. f[g].ttype == 2 &&
  14702. this.tcid &&
  14703. this.arrayToArray(
  14704. (f[g].classid ? f[g].classid.split(",") : []),
  14705. this.tcid.split(",")
  14706. ).length == 0
  14707. ) {
  14708. continue;
  14709. }
  14710. let _classId = this.arrayToArray(
  14711. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14712. this.classId ? this.classId.split(",") : []
  14713. )
  14714. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14715. (f[g].classid ? f[g].classid.split(",") : []),
  14716. this.tcid.split(",")
  14717. ).length !== 0 || this.arrayToArray(
  14718. (f[g].classid ? f[g].classid.split(",") : []),
  14719. _classId
  14720. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14721. this.groupStudent[i][gA].push(f[g]);
  14722. this.groupStudentUid[i][gA].push(f[g].userid);
  14723. }
  14724. }
  14725. }
  14726. this.$forceUpdate();
  14727. }
  14728. for (var j = 0; j < b.length; j++) {
  14729. if (
  14730. b[j].ttype == 2 &&
  14731. this.tcid &&
  14732. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14733. .length == 0
  14734. ) {
  14735. continue;
  14736. }
  14737. var likesCount = 0;
  14738. var commentCount = 0;
  14739. var isLikes = false;
  14740. var commentJson = [];
  14741. var likeJson = [];
  14742. var data = b[j];
  14743. if (i == b[j].tool) {
  14744. if (data.type == 2 && a[i].tool[0] == 4) {
  14745. // if(JSON.parse(data.content)[0].anwer){
  14746. var checkL =
  14747. JSON.parse(data.content)[0].anwer instanceof Array
  14748. ? JSON.parse(data.content)[0].anwer
  14749. : JSON.parse(data.content)[0].anwer.split(",");
  14750. for (var z = 0; z < checkL.length; z++) {
  14751. if (!this.checkJson[i][z]) {
  14752. this.checkJson[i].push({
  14753. checkCount: [],
  14754. checkPerson: [],
  14755. rightPerson: [],
  14756. });
  14757. }
  14758. if (!this.checkJson[i][z].checkCount.length) {
  14759. this.checkJson[i][z].checkCount = [];
  14760. let _askItemCount = JSON.parse(data.content)[0].askJson
  14761. .askJson[z].askItem;
  14762. for (var aic = 0; aic < _askItemCount; aic++) {
  14763. this.checkJson[i][z].checkCount.push(0);
  14764. }
  14765. }
  14766. if (checkL[z] instanceof Array) {
  14767. if (
  14768. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14769. checkL[z].sort().join(",")
  14770. ) {
  14771. this.checkJson[i][z].rightPerson.push(data.name);
  14772. }
  14773. for (var q = 0; q < checkL[z].length; q++) {
  14774. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14775. ? this.checkJson[i][z].checkPerson[
  14776. parseInt(checkL[z][q])
  14777. ].push(data.name)
  14778. : (this.checkJson[i][z].checkPerson[
  14779. parseInt(checkL[z][q])
  14780. ] = [data.name]);
  14781. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14782. ? this.checkJson[i][z].checkCount[
  14783. parseInt(checkL[z][q])
  14784. ]++
  14785. : (this.checkJson[i][z].checkCount[
  14786. parseInt(checkL[z][q])
  14787. ] = 1);
  14788. }
  14789. } else {
  14790. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14791. this.checkJson[i][z].rightPerson.push(data.name);
  14792. }
  14793. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14794. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14795. ? this.checkJson[i][z].checkPerson[
  14796. parseInt(checkL[z])
  14797. ].push(data.name)
  14798. : (this.checkJson[i][z].checkPerson[
  14799. parseInt(checkL[z])
  14800. ] = [data.name]);
  14801. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14802. ? this.checkJson[i][z].checkCount[
  14803. parseInt(checkL[z])
  14804. ]++
  14805. : (this.checkJson[i][z].checkCount[
  14806. parseInt(checkL[z])
  14807. ] = 1);
  14808. }
  14809. }
  14810. }
  14811. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14812. var checkL = JSON.parse(data.content)[0].anwer;
  14813. if(a[i].testJson.testCount != JSON.parse(data.content)[0].testJson.testCount){
  14814. continue
  14815. }
  14816. // console.log('选择题')
  14817. for (var z = 0; z < checkL.length; z++) {
  14818. if (!this.checkJson[i][z]) {
  14819. this.checkJson[i].push({
  14820. checkCount: [],
  14821. checkPerson: [],
  14822. rightPerson: [],
  14823. });
  14824. }
  14825. if (!this.checkJson[i][z].checkCount.length) {
  14826. this.checkJson[i][z].checkCount = [];
  14827. let _askItemCount = JSON.parse(data.content)[0].testJson
  14828. .testJson[z].testItem;
  14829. for (var aic = 0; aic < _askItemCount; aic++) {
  14830. this.checkJson[i][z].checkCount.push(0);
  14831. }
  14832. }
  14833. if (checkL[z] instanceof Array) {
  14834. if (
  14835. JSON.parse(data.content)[0]
  14836. .testJson.testJson[z].answer.sort()
  14837. .join(",") == checkL[z].sort().join(",")
  14838. ) {
  14839. this.checkJson[i][z].rightPerson.push(data.name);
  14840. }
  14841. for (var q = 0; q < checkL[z].length; q++) {
  14842. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14843. ? this.checkJson[i][z].checkPerson[
  14844. parseInt(checkL[z][q])
  14845. ].push(data.name)
  14846. : (this.checkJson[i][z].checkPerson[
  14847. parseInt(checkL[z][q])
  14848. ] = [data.name]);
  14849. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14850. ? this.checkJson[i][z].checkCount[
  14851. parseInt(checkL[z][q])
  14852. ]++
  14853. : (this.checkJson[i][z].checkCount[
  14854. parseInt(checkL[z][q])
  14855. ] = 1);
  14856. }
  14857. } else {
  14858. if (
  14859. JSON.parse(data.content)[0].testJson.testJson[z]
  14860. .answer == checkL[z]
  14861. ) {
  14862. this.checkJson[i][z].rightPerson.push(data.name);
  14863. }
  14864. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14865. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14866. ? this.checkJson[i][z].checkPerson[
  14867. parseInt(checkL[z])
  14868. ].push(data.name)
  14869. : (this.checkJson[i][z].checkPerson[
  14870. parseInt(checkL[z])
  14871. ] = [data.name]);
  14872. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14873. ? this.checkJson[i][z].checkCount[
  14874. parseInt(checkL[z])
  14875. ]++
  14876. : (this.checkJson[i][z].checkCount[
  14877. parseInt(checkL[z])
  14878. ] = 1);
  14879. }
  14880. }
  14881. }
  14882. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14883. var checkL = JSON.parse(data.content);
  14884. for (var z = 0; z < checkL.length; z++) {
  14885. if (!this.checkJson[i][z]) {
  14886. this.checkJson[i].push({
  14887. checkCount: [],
  14888. checkPerson: [],
  14889. rightPerson: [],
  14890. });
  14891. }
  14892. this.checkJson[i][z].checkPerson.push(data.name);
  14893. if (
  14894. checkL[z].chooseSenList.toString() ==
  14895. checkL[z].rightAnswer.toString()
  14896. ) {
  14897. this.checkJson[i][z].rightPerson.push(data.name);
  14898. }
  14899. }
  14900. }
  14901. for (var k = 0; k < d.length; k++) {
  14902. //点赞
  14903. if (d[k].workId == b[j].id) {
  14904. likesCount++;
  14905. likeJson.push(d[k])
  14906. if (d[k].likesId == this.userid) {
  14907. isLikes = true;
  14908. }
  14909. }
  14910. }
  14911. for (var l = 0; l < e.length; l++) {
  14912. //评论
  14913. if (e[l].workId == b[j].id) {
  14914. if (e[l].comment != "") {
  14915. commentCount++;
  14916. commentJson.push({
  14917. commentText: e[l].comment,
  14918. commentTime: e[l].commentTime,
  14919. commentPeople: e[l].commentPeople,
  14920. userid: e[l].userid,
  14921. wid: e[l].id,
  14922. });
  14923. }
  14924. }
  14925. }
  14926. if (
  14927. (b[j].type == 1 ||
  14928. b[j].type == 4 ||
  14929. b[j].type == 5 ||
  14930. b[j].type == 6 ||
  14931. b[j].type == 12 ||
  14932. b[j].type == 7) &&
  14933. a[i].tool[0] != 15 &&
  14934. a[i].tool[0] != 4 &&
  14935. a[i].tool[0] != 45 &&
  14936. a[i].tool[0] != 50 &&
  14937. a[i].tool[0] != 32 &&
  14938. a[i].tool[0] != 57 &&
  14939. a[i].tool[0] != 52
  14940. ) {
  14941. if (
  14942. c.indexOf(
  14943. b[j].content
  14944. .split(".")
  14945. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14946. ) != -1 &&
  14947. a[i].tool[0] == 16 &&
  14948. b[j].atool != 50
  14949. ) {
  14950. let _works = {
  14951. userid: b[j].userid,
  14952. ateacher: b[j].ateacher,
  14953. wid: b[j].id,
  14954. works: b[j].content,
  14955. sName: b[j].name,
  14956. type: 1,
  14957. ttype:b[j].ttype,
  14958. time: b[j].time,
  14959. score: b[j].score,
  14960. img: b[j].img,
  14961. likesCount: likesCount,
  14962. commentCount: commentCount,
  14963. isLikes: isLikes,
  14964. commentJson: commentJson,
  14965. likeJson:likeJson
  14966. };
  14967. if (this.isGroup) {
  14968. let isGw = 1;
  14969. for (
  14970. var groupI = 0;
  14971. groupI < this.courseGroup.group.length;
  14972. groupI++
  14973. ) {
  14974. let gid = this.courseGroup.group[groupI].id;
  14975. if (
  14976. this.courseGroupStudentUid[gid].indexOf(
  14977. b[j].userid
  14978. ) != -1
  14979. ) {
  14980. isGw = 2;
  14981. this.courseGroup.group[groupI].works[i].push(_works);
  14982. break;
  14983. }
  14984. }
  14985. if (isGw == 1) {
  14986. _worksStudent[i].push(_works);
  14987. }
  14988. } else {
  14989. _worksStudent[i].push(_works);
  14990. }
  14991. _worksStudent2[i].push(_works);
  14992. this.isWorksS[i].push({
  14993. uid: b[j].userid,
  14994. sName: b[j].name,
  14995. });
  14996. } else if (
  14997. y.indexOf(
  14998. b[j].content
  14999. .split(".")
  15000. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15001. ) != -1 &&
  15002. a[i].tool[0] == 16 &&
  15003. b[j].atool != 50
  15004. ) {
  15005. let _works = {
  15006. userid: b[j].userid,
  15007. ateacher: b[j].ateacher,
  15008. wid: b[j].id,
  15009. works: b[j].content,
  15010. sName: b[j].name,
  15011. type: 3,
  15012. ttype:b[j].ttype,
  15013. time: b[j].time,
  15014. score: b[j].score,
  15015. img: b[j].img,
  15016. likesCount: likesCount,
  15017. commentCount: commentCount,
  15018. isLikes: isLikes,
  15019. commentJson: commentJson,
  15020. likeJson:likeJson
  15021. };
  15022. if (this.isGroup) {
  15023. let isGw = 1;
  15024. for (
  15025. var groupI = 0;
  15026. groupI < this.courseGroup.group.length;
  15027. groupI++
  15028. ) {
  15029. let gid = this.courseGroup.group[groupI].id;
  15030. if (
  15031. this.courseGroupStudentUid[gid].indexOf(
  15032. b[j].userid
  15033. ) != -1
  15034. ) {
  15035. isGw = 2;
  15036. this.courseGroup.group[groupI].works[i].push(_works);
  15037. break;
  15038. }
  15039. }
  15040. if (isGw == 1) {
  15041. _worksStudent[i].push(_works);
  15042. }
  15043. } else {
  15044. _worksStudent[i].push(_works);
  15045. }
  15046. _worksStudent2[i].push(_works);
  15047. this.isWorksS[i].push({
  15048. uid: b[j].userid,
  15049. sName: b[j].name,
  15050. });
  15051. } else if (b[j].type == 6 && b[j].atool != 50) {
  15052. let _works = {
  15053. userid: b[j].userid,
  15054. ateacher: b[j].ateacher,
  15055. wid: b[j].id,
  15056. works: b[j].content,
  15057. sName: b[j].name,
  15058. type: 4,
  15059. ttype:b[j].ttype,
  15060. time: b[j].time,
  15061. score: b[j].score,
  15062. img: b[j].img,
  15063. likesCount: likesCount,
  15064. commentCount: commentCount,
  15065. isLikes: isLikes,
  15066. commentJson: commentJson,
  15067. likeJson:likeJson
  15068. };
  15069. _worksStudent[i].push(_works);
  15070. _worksStudent2[i].push(_works);
  15071. this.isWorksS[i].push({
  15072. uid: b[j].userid,
  15073. sName: b[j].name,
  15074. });
  15075. } else if (b[j].type == 7 && b[j].atool != 50) {
  15076. let _work = {
  15077. userid: b[j].userid,
  15078. ateacher: b[j].ateacher,
  15079. wid: b[j].id,
  15080. works: b[j].content,
  15081. sName: b[j].name,
  15082. type: 5,
  15083. ttype:b[j].ttype,
  15084. time: b[j].time,
  15085. score: b[j].score,
  15086. img: b[j].img,
  15087. likesCount: likesCount,
  15088. commentCount: commentCount,
  15089. isLikes: isLikes,
  15090. commentJson: commentJson,
  15091. likeJson:likeJson
  15092. };
  15093. _worksStudent[i].push(_work);
  15094. _worksStudent2[i].push(_work);
  15095. this.isWorksS[i].push({
  15096. uid: b[j].userid,
  15097. sName: b[j].name,
  15098. });
  15099. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15100. let _works = {
  15101. userid: b[j].userid,
  15102. ateacher: b[j].ateacher,
  15103. wid: b[j].id,
  15104. works: b[j].content,
  15105. sName: b[j].name,
  15106. type: 12,
  15107. ttype:b[j].ttype,
  15108. time: b[j].time,
  15109. score: b[j].score,
  15110. img: b[j].img,
  15111. likesCount: likesCount,
  15112. commentCount: commentCount,
  15113. isLikes: isLikes,
  15114. commentJson: commentJson,
  15115. likeJson:likeJson
  15116. };
  15117. if (this.isGroup) {
  15118. let isGw = 1;
  15119. for (
  15120. var groupI = 0;
  15121. groupI < this.courseGroup.group.length;
  15122. groupI++
  15123. ) {
  15124. let gid = this.courseGroup.group[groupI].id;
  15125. if (
  15126. this.courseGroupStudentUid[gid].indexOf(
  15127. b[j].userid
  15128. ) != -1
  15129. ) {
  15130. isGw = 2;
  15131. this.courseGroup.group[groupI].works[i].push(_works);
  15132. break;
  15133. }
  15134. }
  15135. if (isGw == 1) {
  15136. _worksStudent[i].push(_works);
  15137. }
  15138. } else {
  15139. _worksStudent[i].push(_works);
  15140. }
  15141. _worksStudent2[i].push(_works);
  15142. this.isWorksS[i].push({
  15143. uid: b[j].userid,
  15144. sName: b[j].name,
  15145. });
  15146. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15147. let _works = {
  15148. userid: b[j].userid,
  15149. ateacher: b[j].ateacher,
  15150. wid: b[j].id,
  15151. works: b[j].content,
  15152. sName: b[j].name,
  15153. type: 0,
  15154. ttype:b[j].ttype,
  15155. time: b[j].time,
  15156. score: b[j].score,
  15157. img: b[j].img,
  15158. likesCount: likesCount,
  15159. commentCount: commentCount,
  15160. isLikes: isLikes,
  15161. commentJson: commentJson,
  15162. likeJson:likeJson
  15163. };
  15164. if (this.isGroup) {
  15165. let isGw = 1;
  15166. for (
  15167. var groupI = 0;
  15168. groupI < this.courseGroup.group.length;
  15169. groupI++
  15170. ) {
  15171. let gid = this.courseGroup.group[groupI].id;
  15172. if (
  15173. this.courseGroupStudentUid[gid].indexOf(
  15174. b[j].userid
  15175. ) != -1
  15176. ) {
  15177. isGw = 2;
  15178. this.courseGroup.group[groupI].works[i].push(_works);
  15179. break;
  15180. }
  15181. }
  15182. if (isGw == 1) {
  15183. _worksStudent[i].push(_works);
  15184. }
  15185. } else {
  15186. _worksStudent[i].push(_works);
  15187. }
  15188. _worksStudent2[i].push(_works);
  15189. this.isWorksS[i].push({
  15190. uid: b[j].userid,
  15191. sName: b[j].name,
  15192. });
  15193. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15194. let _works = {
  15195. userid: b[j].userid,
  15196. ateacher: b[j].ateacher,
  15197. wid: b[j].id,
  15198. works: b[j].content,
  15199. sName: b[j].name,
  15200. type: 0,
  15201. ttype:b[j].ttype,
  15202. time: b[j].time,
  15203. score: b[j].score,
  15204. img: b[j].img,
  15205. likesCount: likesCount,
  15206. commentCount: commentCount,
  15207. isLikes: isLikes,
  15208. commentJson: commentJson,
  15209. likeJson:likeJson
  15210. };
  15211. if (this.isGroup) {
  15212. let isGw = 1;
  15213. for (
  15214. var groupI = 0;
  15215. groupI < this.courseGroup.group.length;
  15216. groupI++
  15217. ) {
  15218. let gid = this.courseGroup.group[groupI].id;
  15219. if (
  15220. this.courseGroupStudentUid[gid].indexOf(
  15221. b[j].userid
  15222. ) != -1
  15223. ) {
  15224. isGw = 2;
  15225. this.courseGroup.group[groupI].works[i].push(_works);
  15226. break;
  15227. }
  15228. }
  15229. if (isGw == 1) {
  15230. _worksStudent[i].push(_works);
  15231. }
  15232. } else {
  15233. _worksStudent[i].push(_works);
  15234. }
  15235. _worksStudent2[i].push(_works);
  15236. this.isWorksS[i].push({
  15237. uid: b[j].userid,
  15238. sName: b[j].name,
  15239. });
  15240. }
  15241. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15242. let _works = {
  15243. userid: b[j].userid,
  15244. ateacher: b[j].ateacher,
  15245. wid: b[j].id,
  15246. works: b[j].content,
  15247. sName: b[j].name,
  15248. type: 2,
  15249. ttype:b[j].ttype,
  15250. time: b[j].time,
  15251. score: b[j].score,
  15252. img: b[j].img,
  15253. likesCount: likesCount,
  15254. commentCount: commentCount,
  15255. isLikes: isLikes,
  15256. commentJson: commentJson,
  15257. likeJson:likeJson
  15258. };
  15259. if (this.isGroup) {
  15260. let isGw = 1;
  15261. for (
  15262. var groupI = 0;
  15263. groupI < this.courseGroup.group.length;
  15264. groupI++
  15265. ) {
  15266. let gid = this.courseGroup.group[groupI].id;
  15267. if (
  15268. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15269. -1
  15270. ) {
  15271. isGw = 2;
  15272. this.courseGroup.group[groupI].works[i].push(_works);
  15273. break;
  15274. }
  15275. }
  15276. if (isGw == 1) {
  15277. _worksStudent[i].push(_works);
  15278. }
  15279. } else {
  15280. _worksStudent[i].push(_works);
  15281. }
  15282. _worksStudent2[i].push(_works);
  15283. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15284. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15285. let _works = {
  15286. userid: b[j].userid,
  15287. ateacher: b[j].ateacher,
  15288. wid: b[j].id,
  15289. works: b[j].content,
  15290. sName: b[j].name,
  15291. type: 20,
  15292. ttype:b[j].ttype,
  15293. time: b[j].time,
  15294. score: b[j].score,
  15295. img: b[j].img,
  15296. likesCount: likesCount,
  15297. commentCount: commentCount,
  15298. isLikes: isLikes,
  15299. commentJson: commentJson,
  15300. likeJson:likeJson
  15301. };
  15302. if (this.isGroup) {
  15303. let isGw = 1;
  15304. for (
  15305. var groupI = 0;
  15306. groupI < this.courseGroup.group.length;
  15307. groupI++
  15308. ) {
  15309. let gid = this.courseGroup.group[groupI].id;
  15310. if (
  15311. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15312. -1
  15313. ) {
  15314. isGw = 2;
  15315. this.courseGroup.group[groupI].works[i].push(_works);
  15316. break;
  15317. }
  15318. }
  15319. if (isGw == 1) {
  15320. _worksStudent[i].push(_works);
  15321. }
  15322. } else {
  15323. _worksStudent[i].push(_works);
  15324. }
  15325. _worksStudent2[i].push(_works);
  15326. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15327. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15328. //问卷
  15329. let _work = {
  15330. userid: b[j].userid,
  15331. ateacher: b[j].ateacher,
  15332. wid: b[j].id,
  15333. works: b[j].content,
  15334. sName: b[j].name,
  15335. type: 2,
  15336. ttype:b[j].ttype,
  15337. time: b[j].time,
  15338. score: b[j].score,
  15339. img: b[j].img,
  15340. likesCount: likesCount,
  15341. commentCount: commentCount,
  15342. isLikes: isLikes,
  15343. commentJson: commentJson,
  15344. likeJson:likeJson
  15345. };
  15346. _worksStudent[i].push(_work);
  15347. _worksStudent2[i].push(_work);
  15348. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15349. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15350. //选择题
  15351. let _work = {
  15352. userid: b[j].userid,
  15353. ateacher: b[j].ateacher,
  15354. wid: b[j].id,
  15355. works: b[j].content,
  15356. sName: b[j].name,
  15357. type: 8,
  15358. ttype:b[j].ttype,
  15359. time: b[j].time,
  15360. score: b[j].score,
  15361. img: b[j].img,
  15362. likesCount: likesCount,
  15363. commentCount: commentCount,
  15364. isLikes: isLikes,
  15365. commentJson: commentJson,
  15366. likeJson:likeJson
  15367. };
  15368. _worksStudent[i].push(_work);
  15369. _worksStudent2[i].push(_work);
  15370. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15371. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15372. //选择题
  15373. let _work = {
  15374. userid: b[j].userid,
  15375. ateacher: b[j].ateacher,
  15376. wid: b[j].id,
  15377. works: b[j].content,
  15378. sName: b[j].name,
  15379. type: 9,
  15380. ttype:b[j].ttype,
  15381. time: b[j].time,
  15382. score: b[j].score,
  15383. img: b[j].img,
  15384. likesCount: likesCount,
  15385. commentCount: commentCount,
  15386. isLikes: isLikes,
  15387. commentJson: commentJson,
  15388. likeJson:likeJson
  15389. };
  15390. _worksStudent[i].push(_work);
  15391. _worksStudent2[i].push(_work);
  15392. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15393. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15394. //选择题
  15395. let _work = {
  15396. userid: b[j].userid,
  15397. ateacher: b[j].ateacher,
  15398. wid: b[j].id,
  15399. works: b[j].content,
  15400. sName: b[j].name,
  15401. type: 10,
  15402. ttype:b[j].ttype,
  15403. time: b[j].time,
  15404. score: b[j].score,
  15405. img: b[j].img,
  15406. likesCount: likesCount,
  15407. commentCount: commentCount,
  15408. isLikes: isLikes,
  15409. commentJson: commentJson,
  15410. likeJson:likeJson
  15411. };
  15412. _worksStudent[i].push(_work);
  15413. _worksStudent2[i].push(_work);
  15414. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15415. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15416. //选择题
  15417. let _work = {
  15418. userid: b[j].userid,
  15419. ateacher: b[j].ateacher,
  15420. wid: b[j].id,
  15421. works: b[j].content,
  15422. sName: b[j].name,
  15423. type: 13,
  15424. ttype:b[j].ttype,
  15425. time: b[j].time,
  15426. score: b[j].score,
  15427. img: b[j].img,
  15428. likesCount: likesCount,
  15429. commentCount: commentCount,
  15430. isLikes: isLikes,
  15431. commentJson: commentJson,
  15432. likeJson:likeJson
  15433. };
  15434. _worksStudent[i].push(_work);
  15435. _worksStudent2[i].push(_work);
  15436. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15437. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15438. //选择题
  15439. let _work = {
  15440. userid: b[j].userid,
  15441. ateacher: b[j].ateacher,
  15442. wid: b[j].id,
  15443. works: b[j].content,
  15444. sName: b[j].name,
  15445. type: 16,
  15446. ttype:b[j].ttype,
  15447. time: b[j].time,
  15448. score: b[j].score,
  15449. img: b[j].img,
  15450. likesCount: likesCount,
  15451. commentCount: commentCount,
  15452. isLikes: isLikes,
  15453. commentJson: commentJson,
  15454. aiCode: b[j].aiCode,
  15455. teacherCode: b[j].teacherCode,
  15456. likeJson:likeJson
  15457. };
  15458. _worksStudent[i].push(_work);
  15459. _worksStudent2[i].push(_work);
  15460. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15461. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15462. //英语口语
  15463. let _work = {
  15464. userid: b[j].userid,
  15465. ateacher: b[j].ateacher,
  15466. wid: b[j].id,
  15467. works: b[j].content,
  15468. sName: b[j].name,
  15469. type: 17,
  15470. ttype:b[j].ttype,
  15471. time: b[j].time,
  15472. score: b[j].score,
  15473. img: b[j].img,
  15474. likesCount: likesCount,
  15475. commentCount: commentCount,
  15476. isLikes: isLikes,
  15477. commentJson: commentJson,
  15478. likeJson:likeJson
  15479. };
  15480. _worksStudent[i].push(_work);
  15481. _worksStudent2[i].push(_work);
  15482. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15483. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15484. //交互视频
  15485. let _work = {
  15486. userid: b[j].userid,
  15487. ateacher: b[j].ateacher,
  15488. wid: b[j].id,
  15489. works: b[j].content,
  15490. sName: b[j].name,
  15491. type: 14,
  15492. ttype:b[j].ttype,
  15493. time: b[j].time,
  15494. score: b[j].score,
  15495. img: b[j].img,
  15496. likesCount: likesCount,
  15497. commentCount: commentCount,
  15498. isLikes: isLikes,
  15499. commentJson: commentJson,
  15500. likeJson:likeJson
  15501. };
  15502. _worksStudent[i].push(_work);
  15503. _worksStudent2[i].push(_work);
  15504. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15505. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15506. let _gindex = JSON.parse(b[j].content);
  15507. if (
  15508. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15509. b[j].userid
  15510. ) != -1
  15511. ) {
  15512. let _work = {
  15513. userid: b[j].userid,
  15514. ateacher: b[j].ateacher,
  15515. wid: b[j].id,
  15516. works: _gindex.url,
  15517. sName: b[j].name,
  15518. type: _gindex.type,
  15519. ttype:b[j].ttype,
  15520. time: b[j].time,
  15521. score: b[j].score,
  15522. img: b[j].img,
  15523. likesCount: likesCount,
  15524. commentCount: commentCount,
  15525. isLikes: isLikes,
  15526. commentJson: commentJson,
  15527. likeJson:likeJson
  15528. };
  15529. _worksStudent[i][_gindex.groupIndex].push(_work);
  15530. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15531. }
  15532. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15533. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15534. let _work = {
  15535. userid: b[j].userid,
  15536. ateacher: b[j].ateacher,
  15537. wid: b[j].id,
  15538. works: b[j].content,
  15539. sName: b[j].name ? b[j].name : b[j].userid,
  15540. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15541. ttype:b[j].ttype,
  15542. time: b[j].time,
  15543. score: b[j].score,
  15544. img: b[j].img,
  15545. likesCount: likesCount,
  15546. commentCount: commentCount,
  15547. isLikes: isLikes,
  15548. commentJson: commentJson,
  15549. likeJson:likeJson
  15550. };
  15551. _worksStudent[i].push(_work);
  15552. _worksStudent2[i].push(_work);
  15553. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15554. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15555. let _work = {
  15556. userid: b[j].userid,
  15557. ateacher: b[j].ateacher,
  15558. wid: b[j].id,
  15559. works: b[j].content,
  15560. sName: b[j].name ? b[j].name : b[j].userid,
  15561. type: 12,
  15562. ttype:b[j].ttype,
  15563. time: b[j].time,
  15564. score: b[j].score,
  15565. img: b[j].img,
  15566. likesCount: likesCount,
  15567. commentCount: commentCount,
  15568. isLikes: isLikes,
  15569. commentJson: commentJson,
  15570. likeJson:likeJson
  15571. };
  15572. _worksStudent[i].push(_work);
  15573. _worksStudent2[i].push(_work);
  15574. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15575. } else if (
  15576. a[i].tool[0] == 57 &&
  15577. b[j].atool == 57 &&
  15578. b[j].type == 12
  15579. ) {
  15580. let _work = {
  15581. userid: b[j].userid,
  15582. ateacher: b[j].ateacher,
  15583. wid: b[j].id,
  15584. works: b[j].content,
  15585. sName: b[j].name ? b[j].name : b[j].userid,
  15586. type: 12,
  15587. ttype:b[j].ttype,
  15588. time: b[j].time,
  15589. score: b[j].score,
  15590. img: b[j].img,
  15591. likesCount: likesCount,
  15592. commentCount: commentCount,
  15593. isLikes: isLikes,
  15594. commentJson: commentJson,
  15595. likeJson:likeJson
  15596. };
  15597. _worksStudent[i].push(_work);
  15598. _worksStudent2[i].push(_work);
  15599. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15600. } else if (
  15601. a[i].tool[0] == 57 &&
  15602. b[j].atool == 57 &&
  15603. b[j].type == 15
  15604. ) {
  15605. let _work = {
  15606. userid: b[j].userid,
  15607. ateacher: b[j].ateacher,
  15608. wid: b[j].id,
  15609. works: b[j].content,
  15610. sName: b[j].name ? b[j].name : b[j].userid,
  15611. type: 15,
  15612. ttype:b[j].ttype,
  15613. time: b[j].time,
  15614. score: b[j].score,
  15615. img: b[j].img,
  15616. likesCount: likesCount,
  15617. commentCount: commentCount,
  15618. isLikes: isLikes,
  15619. commentJson: commentJson,
  15620. likeJson:likeJson
  15621. };
  15622. _worksStudent[i].push(_work);
  15623. _worksStudent2[i].push(_work);
  15624. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15625. }
  15626. }
  15627. }
  15628. if (_worksStudent[i] && _worksStudent[i].length) {
  15629. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15630. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15631. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15632. var scoreA = parseFloat(jscoreA);
  15633. var scoreB = parseFloat(jscoreB);
  15634. if (scoreA == scoreB) {
  15635. return b.likesCount - a.likesCount;
  15636. }
  15637. return scoreB - scoreA;
  15638. });
  15639. if (this.isGroup) {
  15640. for (
  15641. var groupI = 0;
  15642. groupI < this.courseGroup.group.length;
  15643. groupI++
  15644. ) {
  15645. this.courseGroup.group[groupI].works[i] =
  15646. this.courseGroup.group[groupI].works[i].sort(function (
  15647. a,
  15648. b
  15649. ) {
  15650. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15651. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15652. var scoreA = parseFloat(jscoreA);
  15653. var scoreB = parseFloat(jscoreB);
  15654. if (scoreA == scoreB) {
  15655. return b.likesCount - a.likesCount;
  15656. }
  15657. return scoreB - scoreA;
  15658. });
  15659. }
  15660. }
  15661. }
  15662. }
  15663. this.timeWorkList = _worksStudent2;
  15664. for (var i = 0; i < a.length; i++) {
  15665. for (var j = 0; j < b.length; j++) {
  15666. var data = b[j];
  15667. if (i == b[j].tool) {
  15668. if (data.type == 2 || data.type == 8) {
  15669. for (var z = 0; z < this.checkJson[i].length; z++) {
  15670. this.checkJson[i][z].checkPerent = [];
  15671. this.checkJson[i][z].right = Math.round(
  15672. (this.checkJson[i][z].rightPerson.length /
  15673. parseInt(_worksStudent[i].length)) *
  15674. 100
  15675. );
  15676. let aaaa = this.checkJson[i][z];
  15677. for (
  15678. var k = 0;
  15679. k < this.checkJson[i][z].checkCount.length;
  15680. k++
  15681. ) {
  15682. this.checkJson[i][z].checkPerent.push(
  15683. Math.round(
  15684. (this.checkJson[i][z].checkCount[k] /
  15685. parseInt(_worksStudent[i].length)) *
  15686. 100
  15687. )
  15688. );
  15689. }
  15690. }
  15691. } else if (data.type == 9) {
  15692. for (var z = 0; z < this.checkJson[i].length; z++) {
  15693. this.checkJson[i][z].checkPerent = [];
  15694. this.checkJson[i][z].right = Math.round(
  15695. (this.checkJson[i][z].rightPerson.length /
  15696. this.checkJson[i][z].checkPerson.length) *
  15697. 100
  15698. );
  15699. }
  15700. }
  15701. }
  15702. }
  15703. }
  15704. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15705. this.joinGroup(gindex);
  15706. }
  15707. this.worksStudent = _worksStudent;
  15708. this.selectWorksStudent();
  15709. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15710. this.$nextTick(()=>{
  15711. setTimeout(()=>{
  15712. setTimeout(()=>{
  15713. this.panToolHeight('tool-'+ci);
  15714. }, 500)
  15715. }, 0)
  15716. })
  15717. }
  15718. this.selectSWorksLoading = false
  15719. })
  15720. .catch((err) => {
  15721. this.selectSWorksLoading = false
  15722. console.error(err);
  15723. });
  15724. },
  15725. pngToWhiteBg(file) {
  15726. const _file = file;
  15727. let read = new FileReader();
  15728. read.readAsDataURL(file); // 文件转base64
  15729. return new Promise((resolve, reject) => {
  15730. read.onload = (e) => {
  15731. let img = new Image();
  15732. img.src = e.target.result;
  15733. img.onload = async () => {
  15734. // 生成canvas
  15735. let canvas = document.createElement("canvas");
  15736. let context = canvas.getContext("2d");
  15737. // 绘制图片到canvas上
  15738. canvas.width = img.width;
  15739. canvas.height = img.height;
  15740. // 在canvas绘制前填充白色背景
  15741. context.fillStyle = "#fff";
  15742. context.fillRect(0, 0, canvas.width, canvas.height);
  15743. context.drawImage(img, 0, 0);
  15744. let base64 = canvas.toDataURL(file["type"], 1);
  15745. let newFile = this.dataUrlToFile(base64, _file);
  15746. resolve(newFile);
  15747. };
  15748. };
  15749. });
  15750. },
  15751. dataUrlToFile(dataurl, file) {
  15752. let arr = dataurl.split(","),
  15753. mime = arr[0].match(/:(.*?);/)[1],
  15754. bstr = atob(arr[1]),
  15755. n = bstr.length,
  15756. u8arr = new Uint8Array(n);
  15757. while (n--) {
  15758. u8arr[n] = bstr.charCodeAt(n);
  15759. }
  15760. // return new Blob([u8arr], { type: mime });
  15761. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15762. type: mime,
  15763. });
  15764. },
  15765. async beforeUpload1(event, type, i) {
  15766. // this.$message.success('进入上传')
  15767. var file = "";
  15768. if (type == 5) {
  15769. file = event;
  15770. } else {
  15771. file = event.target.files[0];
  15772. }
  15773. var credentials = {
  15774. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15775. secretAccessKey: "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",
  15776. }; //秘钥形式的登录上传
  15777. window.AWS.config.update(credentials);
  15778. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15779. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15780. var _this = this;
  15781. _this.progress = 0;
  15782. _this.proVisible = true;
  15783. _this.isFinishSize = 0;
  15784. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15785. var b = [
  15786. "DOC",
  15787. "DOCX",
  15788. "DOCM",
  15789. "DOTM",
  15790. "DOTX",
  15791. "PPTX",
  15792. "PPSX",
  15793. "PPT",
  15794. "PPS",
  15795. "PPTM",
  15796. "POTM",
  15797. "PPAM",
  15798. "POTX",
  15799. "PPSM",
  15800. ];
  15801. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15802. var photoA = [
  15803. "BMP",
  15804. "GIF",
  15805. "PNG",
  15806. "JPEG",
  15807. "JPEG",
  15808. "JPG",
  15809. "TIF",
  15810. "PCX",
  15811. "TGA",
  15812. "EXIF",
  15813. "FPX",
  15814. "SVG",
  15815. "APNG",
  15816. ];
  15817. // if (
  15818. // b.indexOf(
  15819. // file.name
  15820. // .split(".")
  15821. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15822. // ) != -1
  15823. // ) {
  15824. // if (file.size / 1024 / 1024 > 10) {
  15825. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15826. // return;
  15827. // }
  15828. // } else if (
  15829. // excelA.indexOf(
  15830. // file.name
  15831. // .split(".")
  15832. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15833. // ) != "-1"
  15834. // ) {
  15835. // if (file.size / 1024 / 1024 > 5) {
  15836. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15837. // return;
  15838. // }
  15839. // }
  15840. if (
  15841. photoA.indexOf(
  15842. file.name
  15843. .split(".")
  15844. [file.name.split(".").length - 1].toLocaleUpperCase()
  15845. ) != -1 &&
  15846. type != 4
  15847. ) {
  15848. // const blob = await imageConversion.compress(file, 0.8)
  15849. file = await this.pngToWhiteBg(file);
  15850. const blob = await imageConversion.compressAccurately(file, 256);
  15851. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15852. file = new File([blob], file.name, { type: file.type });
  15853. }
  15854. if (file) {
  15855. var params = {
  15856. Key:
  15857. file.name.split(".")[0] +
  15858. new Date().getTime() +
  15859. "." +
  15860. file.name.split(".")[file.name.split(".").length - 1],
  15861. ContentType: file.type,
  15862. Body: file,
  15863. "Access-Control-Allow-Credentials": "*",
  15864. ACL: "public-read",
  15865. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15866. var options = {
  15867. // partSize: 2048 * 1024 * 1024,
  15868. partSize: 1024 * 1024 * 1024,
  15869. queueSize: 2,
  15870. leavePartsOnError: true,
  15871. };
  15872. bucket
  15873. .upload(params, options)
  15874. .on("httpUploadProgress", function (evt) {
  15875. //这里可以写进度条
  15876. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15877. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15878. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15879. })
  15880. .send(function (err, data) {
  15881. _this.progress = 100;
  15882. _this.isFinishSize = _this.isAllSize;
  15883. setTimeout(() => {
  15884. _this.proVisible = false;
  15885. }, 1000);
  15886. if (err) {
  15887. var a = _this.$refs.upload1.uploadFiles;
  15888. a.splice(a.length - 1, a.length);
  15889. _this.$message.error(this.lang.ssUploadFailed);
  15890. } else {
  15891. // _this.$message.success('上传成功')
  15892. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15893. var c = [
  15894. "AVI",
  15895. "NAVI",
  15896. "MPEG",
  15897. "ASF",
  15898. "MOV",
  15899. "WMV",
  15900. "3GP",
  15901. "RM",
  15902. "RMVB",
  15903. "FLV",
  15904. "F4V",
  15905. "H.264",
  15906. "H.265",
  15907. "REAL VIDEO",
  15908. "MKV",
  15909. "WebM",
  15910. "HDDVD",
  15911. "MP4",
  15912. "MPG",
  15913. "M4V",
  15914. "MGV",
  15915. "OGV",
  15916. "QTM",
  15917. "STR",
  15918. "AMC",
  15919. "DVX",
  15920. "EVO",
  15921. "DAT",
  15922. "OGG",
  15923. "OGM",
  15924. ];
  15925. if (type == 1) {
  15926. _this.studyJuri[0].cover.push({
  15927. name: file.name,
  15928. url: data.Location,
  15929. uid: file.uid,
  15930. });
  15931. if (
  15932. c.indexOf(
  15933. _this.studyJuri[0].cover[0].url
  15934. .split(".")
  15935. [
  15936. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15937. ].toLocaleUpperCase()
  15938. ) != -1
  15939. ) {
  15940. _this.fileType = 2;
  15941. } else if (
  15942. b.indexOf(
  15943. _this.studyJuri[0].cover[0].url
  15944. .split(".")
  15945. [
  15946. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15947. ].toLocaleUpperCase()
  15948. ) != -1
  15949. ) {
  15950. _this.fileType = 1;
  15951. } else if (
  15952. photoA.indexOf(
  15953. _this.studyJuri[0].cover[0].url
  15954. .split(".")
  15955. [
  15956. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15957. ].toLocaleUpperCase()
  15958. ) != -1
  15959. ) {
  15960. _this.fileType = 0;
  15961. } else {
  15962. _this.fileType = 3;
  15963. }
  15964. _this.imgChange(null, null, type);
  15965. } else if (type == 2) {
  15966. _this.upToolImg = data.Location;
  15967. _this.imgChange(null, null, type);
  15968. _this.addCourseWorks(i);
  15969. } else if (type == 4) {
  15970. _this.addPz("3", data.Location);
  15971. } else if (type == 5) {
  15972. _this.addImgDrawImG(data.Location);
  15973. } else if (type == 6) {
  15974. var _ftype = 1;
  15975. if (
  15976. c.indexOf(
  15977. data.Location.split(".")[
  15978. data.Location.split(".").length - 1
  15979. ].toLocaleUpperCase()
  15980. ) != -1
  15981. ) {
  15982. _ftype = 5;
  15983. } else if (
  15984. b.indexOf(
  15985. data.Location.split(".")[
  15986. data.Location.split(".").length - 1
  15987. ].toLocaleUpperCase()
  15988. ) != -1
  15989. ) {
  15990. _ftype = 4;
  15991. } else {
  15992. _ftype = 1;
  15993. }
  15994. _this.plworkFile.push({
  15995. name: file.name,
  15996. url: data.Location,
  15997. uid: file.uid,
  15998. fileType: _ftype,
  15999. username:
  16000. _this.plworkFile.length > 10
  16001. ? _this.plworkFile.length + 1
  16002. : "0" + (_this.plworkFile.length + 1),
  16003. });
  16004. } else if (type == 7) {
  16005. _this.addCourseWorksGong(i, data.Location, 32);
  16006. } else if (type == 8) {
  16007. _this.addCourseWorksGong(i, data.Location, 57);
  16008. }
  16009. _this.imgChange(null, null, type);
  16010. console.log(data.Location);
  16011. // _this.$message.success('上传成功'+data.Location)
  16012. }
  16013. });
  16014. }
  16015. },
  16016. async beforeUpload3(event, type, i) {
  16017. // this.$message.success('进入上传')
  16018. let file = "";
  16019. let cfindex2 = 0;
  16020. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16021. file = event.target.files[cfindex];
  16022. var credentials = {
  16023. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16024. secretAccessKey: "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",
  16025. }; //秘钥形式的登录上传
  16026. window.AWS.config.update(credentials);
  16027. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16028. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16029. var _this = this;
  16030. // _this.progress = 0;
  16031. _this.proVisible2 = true;
  16032. var b = [
  16033. "DOC",
  16034. "DOCX",
  16035. "DOCM",
  16036. "DOTM",
  16037. "DOTX",
  16038. "PPTX",
  16039. "PPSX",
  16040. "PPT",
  16041. "PPS",
  16042. "PPTM",
  16043. "POTM",
  16044. "PPAM",
  16045. "POTX",
  16046. "PPSM",
  16047. ];
  16048. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16049. var photoA = [
  16050. "BMP",
  16051. "GIF",
  16052. "PNG",
  16053. "JPEG",
  16054. "JPG",
  16055. "TIF",
  16056. "PCX",
  16057. "TGA",
  16058. "EXIF",
  16059. "FPX",
  16060. "SVG",
  16061. "APNG",
  16062. ];
  16063. if (
  16064. photoA.indexOf(
  16065. file.name
  16066. .split(".")
  16067. [file.name.split(".").length - 1].toLocaleUpperCase()
  16068. ) != -1 &&
  16069. type != 4
  16070. ) {
  16071. // const blob = await imageConversion.compress(file, 0.8)
  16072. file = await this.pngToWhiteBg(file);
  16073. const blob = await imageConversion.compressAccurately(file, 256);
  16074. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16075. file = new File([blob], file.name, { type: file.type });
  16076. }
  16077. if (file) {
  16078. var params = {
  16079. Key:
  16080. file.name.split(".")[0] +
  16081. new Date().getTime() +
  16082. "." +
  16083. file.name.split(".")[file.name.split(".").length - 1],
  16084. ContentType: file.type,
  16085. Body: file,
  16086. "Access-Control-Allow-Credentials": "*",
  16087. ACL: "public-read",
  16088. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16089. var options = {
  16090. // partSize: 2048 * 1024 * 1024,
  16091. partSize: 1024 * 1024 * 1024,
  16092. queueSize: 2,
  16093. leavePartsOnError: true,
  16094. };
  16095. bucket
  16096. .upload(params, options)
  16097. .on("httpUploadProgress", function (evt) {
  16098. //这里可以写进度条
  16099. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16100. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16101. })
  16102. .send(function (err, data) {
  16103. // _this.progress = 100;
  16104. cfindex2++;
  16105. setTimeout(() => {
  16106. if (
  16107. cfindex2 == event.target.files.length - 1 ||
  16108. cfindex2 > event.target.files.length - 1
  16109. ) {
  16110. _this.proVisible2 = false;
  16111. }
  16112. }, 1000);
  16113. if (err) {
  16114. var a = _this.$refs.upload1.uploadFiles;
  16115. a.splice(a.length - 1, a.length);
  16116. _this.$message.error(this.lang.ssUploadFailed);
  16117. } else {
  16118. // _this.$message.success('上传成功')
  16119. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16120. var c = [
  16121. "AVI",
  16122. "NAVI",
  16123. "MPEG",
  16124. "ASF",
  16125. "MOV",
  16126. "WMV",
  16127. "3GP",
  16128. "RM",
  16129. "RMVB",
  16130. "FLV",
  16131. "F4V",
  16132. "H.264",
  16133. "H.265",
  16134. "REAL VIDEO",
  16135. "MKV",
  16136. "WebM",
  16137. "HDDVD",
  16138. "MP4",
  16139. "MPG",
  16140. "M4V",
  16141. "MGV",
  16142. "OGV",
  16143. "QTM",
  16144. "STR",
  16145. "AMC",
  16146. "DVX",
  16147. "EVO",
  16148. "DAT",
  16149. "OGG",
  16150. "OGM",
  16151. ];
  16152. if (type == 1) {
  16153. _this.studyJuri[0].cover.push({
  16154. name: file.name,
  16155. url: data.Location,
  16156. uid: file.uid,
  16157. });
  16158. if (
  16159. c.indexOf(
  16160. _this.studyJuri[0].cover[0].url
  16161. .split(".")
  16162. [
  16163. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16164. ].toLocaleUpperCase()
  16165. ) != -1
  16166. ) {
  16167. _this.fileType = 2;
  16168. } else if (
  16169. b.indexOf(
  16170. _this.studyJuri[0].cover[0].url
  16171. .split(".")
  16172. [
  16173. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16174. ].toLocaleUpperCase()
  16175. ) != -1
  16176. ) {
  16177. _this.fileType = 1;
  16178. } else {
  16179. _this.fileType = 0;
  16180. }
  16181. _this.imgChange(null, null, type);
  16182. } else if (type == 2) {
  16183. _this.upToolImg = data.Location;
  16184. _this.imgChange(null, null, type);
  16185. _this.addCourseWorks(i);
  16186. } else if (type == 4) {
  16187. _this.addPz("3", data.Location);
  16188. } else if (type == 5) {
  16189. _this.addImgDrawImG(data.Location);
  16190. } else if (type == 6) {
  16191. var _ftype = 1;
  16192. if (
  16193. c.indexOf(
  16194. data.Location.split(".")[
  16195. data.Location.split(".").length - 1
  16196. ].toLocaleUpperCase()
  16197. ) != -1
  16198. ) {
  16199. _ftype = 5;
  16200. } else if (
  16201. b.indexOf(
  16202. data.Location.split(".")[
  16203. data.Location.split(".").length - 1
  16204. ].toLocaleUpperCase()
  16205. ) != -1
  16206. ) {
  16207. _ftype = 4;
  16208. } else {
  16209. _ftype = 1;
  16210. }
  16211. _this.plworkFile.push({
  16212. name: file.name,
  16213. url: data.Location,
  16214. uid: file.uid,
  16215. fileType: _ftype,
  16216. username:
  16217. _this.plworkFile.length + 1 > 9
  16218. ? _this.plworkFile.length + 1
  16219. : "0" + (_this.plworkFile.length + 1),
  16220. });
  16221. }
  16222. _this.imgChange(null, null, type);
  16223. console.log(data.Location);
  16224. // _this.$message.success('上传成功'+data.Location)
  16225. }
  16226. });
  16227. }
  16228. }
  16229. },
  16230. beforeUpload2(event, type) {
  16231. var file = event.target.files[0];
  16232. var credentials = {
  16233. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16234. secretAccessKey: "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",
  16235. }; //秘钥形式的登录上传
  16236. window.AWS.config.update(credentials);
  16237. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16238. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16239. var _this = this;
  16240. _this.progress = 0;
  16241. _this.proVisible = true;
  16242. if (file) {
  16243. var params = {
  16244. Key:
  16245. file.name.split(".")[0] +
  16246. new Date().getTime() +
  16247. "." +
  16248. file.name.split(".")[file.name.split(".").length - 1],
  16249. ContentType: file.type,
  16250. Body: file,
  16251. "Access-Control-Allow-Credentials": "*",
  16252. ACL: "public-read",
  16253. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16254. var options = {
  16255. partSize: 2048 * 1024 * 1024,
  16256. queueSize: 2,
  16257. leavePartsOnError: true,
  16258. };
  16259. bucket
  16260. .upload(params, options)
  16261. .on("httpUploadProgress", function (evt) {
  16262. //这里可以写进度条
  16263. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16264. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16265. })
  16266. .send(function (err, data) {
  16267. _this.progress = 100;
  16268. setTimeout(() => {
  16269. _this.proVisible = false;
  16270. }, 1000);
  16271. if (err) {
  16272. var a = _this.$refs.upload1.uploadFiles;
  16273. a.splice(a.length - 1, a.length);
  16274. _this.$message.error(this.lang.ssUploadFailed);
  16275. } else {
  16276. if (type == 2) {
  16277. _this.studyJuri[0].upVedio.push({
  16278. name: file.name,
  16279. url: data.Location,
  16280. uid: file.uid,
  16281. });
  16282. _this.imgChange(null, null, type);
  16283. } else if (type == 3) {
  16284. _this.studyJuri[0].upFile.push({
  16285. name: file.name,
  16286. url: data.Location,
  16287. uid: file.uid,
  16288. });
  16289. _this.imgChange(null, null, type);
  16290. }
  16291. console.log(data.Location);
  16292. }
  16293. });
  16294. }
  16295. },
  16296. allScrell() {
  16297. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16298. },
  16299. nextOrpreSteps(t) {
  16300. if (this.IsFollow && this.tType == 2) {
  16301. this.$message.error(this.lang.ssFollowModeOn);
  16302. return;
  16303. }
  16304. var b = this.chapInfoList.length - 1;
  16305. if (t == 0) {
  16306. if (this.courseType == 0) {
  16307. if (this.taskCount == 0) {
  16308. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16309. if (this.IsLookOpen) {
  16310. if (
  16311. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16312. ) {
  16313. if (
  16314. this.courseDetail.userid != this.userid &&
  16315. (!this.courseDetail.course_teacher ||
  16316. (this.courseDetail.course_teacher &&
  16317. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16318. ) {
  16319. this.$message.error(this.lang.ssTaskLocked);
  16320. } else {
  16321. this.$message.error(this.lang.ssPrevTaskLocked);
  16322. }
  16323. return;
  16324. }
  16325. }
  16326. this.navList[this.courseType].isOpen = false;
  16327. this.courseType = b;
  16328. this.taskCount =
  16329. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16330. .length - 1;
  16331. this.navList[this.courseType].isOpen = true;
  16332. } else {
  16333. this.taskCount--;
  16334. }
  16335. } else {
  16336. if (this.taskCount == 0) {
  16337. this.navList[this.courseType].isOpen = false;
  16338. this.courseType--;
  16339. this.taskCount =
  16340. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16341. .length - 1;
  16342. this.navList[this.courseType].isOpen = true;
  16343. } else {
  16344. this.taskCount--;
  16345. }
  16346. }
  16347. } else {
  16348. if (this.courseType == b) {
  16349. if (
  16350. this.taskCount ==
  16351. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16352. 1
  16353. ) {
  16354. this.navList[this.courseType].isOpen = false;
  16355. this.courseType = 0;
  16356. this.taskCount = 0;
  16357. this.navList[this.courseType].isOpen = true;
  16358. } else {
  16359. var bbb = parseInt(this.taskCount) + 1;
  16360. if (
  16361. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16362. .isLook &&
  16363. this.courseDetail.userid != this.userid &&
  16364. (!this.courseDetail.course_teacher ||
  16365. (this.courseDetail.course_teacher &&
  16366. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16367. this.IsLookOpen
  16368. ) {
  16369. this.$message.error(this.lang.ssTaskLocked);
  16370. return;
  16371. }
  16372. this.taskCount++;
  16373. if (this.IsLookOpen) {
  16374. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16375. this.taskCount
  16376. ].isLook = true;
  16377. this.addCourseState(3);
  16378. }
  16379. }
  16380. } else {
  16381. if (
  16382. this.taskCount ==
  16383. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16384. 1
  16385. ) {
  16386. var bbb = parseInt(this.courseType) + 1;
  16387. if (
  16388. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16389. this.courseDetail.userid != this.userid &&
  16390. (!this.courseDetail.course_teacher ||
  16391. (this.courseDetail.course_teacher &&
  16392. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16393. this.IsLookOpen
  16394. ) {
  16395. this.$message.error(this.lang.ssTaskLocked);
  16396. return;
  16397. }
  16398. this.navList[this.courseType].isOpen = false;
  16399. this.courseType++;
  16400. this.taskCount = 0;
  16401. this.navList[this.courseType].isOpen = true;
  16402. } else {
  16403. var bbb = parseInt(this.taskCount) + 1;
  16404. if (
  16405. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16406. .isLook &&
  16407. this.courseDetail.userid != this.userid &&
  16408. (!this.courseDetail.course_teacher ||
  16409. (this.courseDetail.course_teacher &&
  16410. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16411. this.IsLookOpen
  16412. ) {
  16413. this.$message.error(this.lang.ssTaskLocked);
  16414. return;
  16415. }
  16416. this.taskCount++;
  16417. }
  16418. if (this.IsLookOpen) {
  16419. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16420. this.taskCount
  16421. ].isLook = true;
  16422. this.addCourseState(3);
  16423. }
  16424. }
  16425. // if (
  16426. // this.taskCount ==
  16427. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16428. // ) {
  16429. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16430. // } else {
  16431. // this.taskCount++;
  16432. // }
  16433. }
  16434. document.scrollingElement.scrollTop = 0;
  16435. // this.showType = 7;
  16436. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16437. // if (this.vedio[this.taskCount].length > 0) {
  16438. // var a =
  16439. // document.getElementsByClassName("box_course")[this.taskCount]
  16440. // .offsetHeight;
  16441. // document.getElementsByClassName("vedioList")[
  16442. // this.taskCount
  16443. // ].style.height = a + "px";
  16444. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16445. // a - 40 + "px";
  16446. // }
  16447. this.isNoHomeWork = false;
  16448. (this.studyJuri = [
  16449. {
  16450. content: "",
  16451. cover: [],
  16452. upVedio: [],
  16453. upFile: [],
  16454. },
  16455. ]),
  16456. (this.radio = []);
  16457. this.isClickNav = "";
  16458. this.selectPz();
  16459. this.getHomeWork();
  16460. this.getCourseDetail(2);
  16461. this.$forceUpdate();
  16462. if ((this.courseDetail.userid == this.userid ||
  16463. (this.courseDetail.course_teacher &&
  16464. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  16465. this.setCTask();
  16466. }
  16467. },
  16468. openTask(s, n, i) {
  16469. if (this.IsFollow && this.tType == 2) {
  16470. this.$message.error(this.lang.ssFollowModeOn);
  16471. return;
  16472. }
  16473. if (this.IsLookOpen &&
  16474. this.courseDetail.userid != this.userid &&
  16475. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  16476. if (
  16477. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16478. this.courseDetail.userid != this.userid &&
  16479. (!this.courseDetail.course_teacher ||
  16480. (this.courseDetail.course_teacher &&
  16481. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16482. ) {
  16483. this.$message.error(this.lang.ssTaskLocked);
  16484. return;
  16485. }
  16486. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16487. if (
  16488. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16489. .isLook
  16490. ) {
  16491. this.$message.error(this.lang.ssPrevTaskLocked);
  16492. return;
  16493. }
  16494. } else if (s > this.courseType) {
  16495. if (n > 0) {
  16496. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16497. this.$message.error(this.lang.ssPrevTaskLocked);
  16498. return;
  16499. }
  16500. } else {
  16501. if (
  16502. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16503. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16504. ].isLook
  16505. ) {
  16506. this.$message.error(this.lang.ssPrevTaskLocked);
  16507. return;
  16508. }
  16509. }
  16510. }
  16511. }
  16512. if (this.navList[s].task[n].isOpen == true) {
  16513. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16514. return;
  16515. }
  16516. let flag = this.courseType==s;
  16517. this.courseType = s;
  16518. this.navId = i;
  16519. this.taskCount = n;
  16520. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  16521. this.navList[this.courseType].task[this.taskCount].isOpen =
  16522. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16523. if (this.IsLookOpen) {
  16524. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16525. this.taskCount
  16526. ].isLook = true;
  16527. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  16528. this.addCourseState(3,yym);
  16529. }
  16530. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  16531. this.isCloseList[ci].isClose = 0;
  16532. this.isCloseList[ci].isCloseBoolean = false;
  16533. this.$nextTick(()=>{
  16534. setTimeout(()=>{
  16535. setTimeout(()=>{
  16536. this.panToolHeight('tool-'+ci);
  16537. }, 0)
  16538. }, 0)
  16539. })
  16540. }
  16541. // this.showType = 7;
  16542. this.isNoHomeWork = false;
  16543. (this.studyJuri = [
  16544. {
  16545. content: "",
  16546. cover: [],
  16547. upVedio: [],
  16548. upFile: [],
  16549. },
  16550. ]),
  16551. (this.radio = []);
  16552. document.scrollingElement.scrollTop = 0;
  16553. // setTimeout(() => {
  16554. // let a = document.getElementById(i);
  16555. // if (a.offsetTop - 110 == 0) {
  16556. // window.scrollTo(0, 0);
  16557. // } else {
  16558. // window.scrollTo(0, a.offsetTop);
  16559. // }
  16560. // }, 0);
  16561. for (var z = 0; z < this.navList.length; z++) {
  16562. for (var q = 0; q < this.navList[z].task.length; q++) {
  16563. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16564. this.navList[z].task[q].tool[w].isTool = false;
  16565. }
  16566. }
  16567. }
  16568. this.selectPz();
  16569. this.getHomeWork();
  16570. this.getCourseDetail(2);
  16571. if ((this.courseDetail.userid == this.userid ||
  16572. (this.courseDetail.course_teacher &&
  16573. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  16574. this.setCTask();
  16575. }
  16576. if(flag){
  16577. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16578. }else{
  16579. 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>`)
  16580. }
  16581. },
  16582. get(i) {
  16583. if (this.IsFollow && this.tType == 2) {
  16584. this.$message.error(this.lang.ssFollowModeOn);
  16585. return;
  16586. }
  16587. // for(var k=0;k<this.navList.length;k++){
  16588. // this.navList[k].isOpen = false;
  16589. // }
  16590. // this.navList[i].isOpen = true;
  16591. this.navList[i].isOpen = !this.navList[i].isOpen;
  16592. if (this.navList[i].isOpen) {
  16593. this.openTask(i, 0, i + "-0");
  16594. }
  16595. },
  16596. addQuestion() {
  16597. this.answerList.push({
  16598. answerTitle: this.answerQ,
  16599. answer: this.questionAnswer,
  16600. });
  16601. let params = [
  16602. {
  16603. uid: this.userid,
  16604. cid: this.id,
  16605. stage: this.courseType,
  16606. task: this.taskCount,
  16607. tool: this.toolindex,
  16608. content: JSON.stringify(this.answerList),
  16609. type: 3,
  16610. },
  16611. ];
  16612. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  16613. this.homeWorkLoading = true
  16614. this.ajax
  16615. .post(this.$store.state.api + "addCourseWorks", params)
  16616. .then((res) => {
  16617. this.$message({
  16618. message: this.lang.ssSubmitSuccess,
  16619. type: "success",
  16620. });
  16621. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  16622. setTimeout(() => {
  16623. this.homeWorkLoading = false
  16624. }, 500);
  16625. this.answerList = [];
  16626. this.answerDialogVisible = false;
  16627. this.selectStudent();
  16628. this.selectSWorks();
  16629. this.selectSLook();
  16630. })
  16631. .catch((err) => {
  16632. this.$message.error(this.lang.ssSubmitFailed);
  16633. console.error(err);
  16634. setTimeout(() => {
  16635. this.homeWorkLoading = false
  16636. }, 500);
  16637. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  16638. });
  16639. },
  16640. addQuestionTeacher() {
  16641. this.answerList.push({
  16642. answerTitle: this.answerQ,
  16643. answer: this.questionAnswer,
  16644. });
  16645. let params = [
  16646. {
  16647. uid: this.sStudent.userid,
  16648. cid: this.id,
  16649. stage: this.courseType,
  16650. task: this.taskCount,
  16651. tool: this.toolindex,
  16652. content: JSON.stringify(this.answerList),
  16653. type: 3,
  16654. ateacher: this.userid,
  16655. },
  16656. ];
  16657. this.ajax
  16658. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16659. .then((res) => {
  16660. this.$message({
  16661. message: this.lang.ssSubmitSuccess,
  16662. type: "success",
  16663. });
  16664. this.answerList = [];
  16665. this.questionAnswer = "";
  16666. this.answerDialogVisibleTeacher = false;
  16667. this.selectStudent();
  16668. this.selectSWorks();
  16669. this.selectSLook();
  16670. })
  16671. .catch((err) => {
  16672. this.$message.error(this.lang.ssSubmitFailed);
  16673. console.error(err);
  16674. });
  16675. },
  16676. refreshCourse() {
  16677. // window.location.reload();
  16678. this.navList = [];
  16679. this.getCourseDetail(1);
  16680. },
  16681. getCourseDetail(type, gindex) {
  16682. let loading;
  16683. if (type != 2) {
  16684. loading = this.$loading.service({
  16685. background: "rgba(255, 255, 255, 0.7)",
  16686. target: document.querySelector(".student_table"),
  16687. });
  16688. }
  16689. this.downLoading = false
  16690. // this.navList[0].isOpen = false;
  16691. // this.navList[this.courseType].isOpen = true;
  16692. // this.courseType = this.courseTypeLine;
  16693. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16694. let params = {
  16695. courseId: this.id,
  16696. };
  16697. this.ajax
  16698. .get(this.$store.state.api + "selectCourseDetail3", params)
  16699. .then((res) => {
  16700. if ((this.courseDetail.userid == this.userid ||
  16701. (this.courseDetail.course_teacher &&
  16702. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  16703. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  16704. }
  16705. if (type != 2) {
  16706. loading.close();
  16707. if (
  16708. this.courseType >
  16709. JSON.parse(res.data[0][0].chapters).length - 1
  16710. ) {
  16711. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16712. }
  16713. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16714. .chapterInfo[0].taskJson;
  16715. var b = [
  16716. "AVI",
  16717. "NAVI",
  16718. "MPEG",
  16719. "ASF",
  16720. "MOV",
  16721. "WMV",
  16722. "3GP",
  16723. "RM",
  16724. "RMVB",
  16725. "FLV",
  16726. "F4V",
  16727. "H.264",
  16728. "H.265",
  16729. "REAL VIDEO",
  16730. "MKV",
  16731. "WebM",
  16732. "HDDVD",
  16733. "MP4",
  16734. "MPG",
  16735. "M4V",
  16736. "MGV",
  16737. "OGV",
  16738. "QTM",
  16739. "STR",
  16740. "AMC",
  16741. "DVX",
  16742. "EVO",
  16743. "DAT",
  16744. "OGG",
  16745. "OGM",
  16746. "MP3",
  16747. ];
  16748. let _chapterData = [];
  16749. for (var i = 0; i < a.length; i++) {
  16750. var c = a[i].chapterData;
  16751. this.vedio[i] = [];
  16752. this.textList[i] = [];
  16753. this.lineList[i] = [];
  16754. this.chapToolList[i] = [];
  16755. this.file[i] = [];
  16756. this.fileC[i] = [];
  16757. _chapterData[i] = c.filter((el) => {
  16758. return el.type != 12;
  16759. });
  16760. this.fileC[i] = c.filter((el) => {
  16761. return el.type == 12;
  16762. });
  16763. if (this.tType == 2) {
  16764. if (this.fileC[i].length) {
  16765. let yym1 = this.fileC[i].filter(e=>{
  16766. if(!converter(e.name).includes(converter(this.lang.ssTeachingPlan))){
  16767. return e
  16768. }
  16769. })
  16770. this.fileC[i] = yym1
  16771. }
  16772. }
  16773. // else if (c[j].type == 12) {
  16774. // this.fileC[i].push(c[j]);
  16775. // }
  16776. for (var j = 0; j < c.length; j++) {
  16777. if (c[j].type == 7) {
  16778. this.chapToolList[i].push(c[j]);
  16779. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  16780. this.lineList[i].push(c[j]);
  16781. } else if (c[j].type == 6) {
  16782. this.textList[i].push(c[j]);
  16783. } else {
  16784. if (
  16785. b.indexOf(
  16786. c[j].url
  16787. .split(".")
  16788. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16789. ) != -1
  16790. ) {
  16791. this.vedio[i].push(c[j]);
  16792. } else {
  16793. this.file[i].push(c[j]);
  16794. }
  16795. }
  16796. }
  16797. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16798. d.sources[0].src =
  16799. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16800. this.playerO[i] = d;
  16801. }
  16802. this.courseDetail = res.data[0][0];
  16803. if(this.tType == 2){
  16804. this.tcid = this.arrayToArray(
  16805. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16806. this.classId ? this.classId.split(",") : []
  16807. ).join(",");
  16808. }else{
  16809. this.tcid = this.arrayToArray(
  16810. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16811. this.tcid2 ? this.tcid2.split(",") : []
  16812. ).join(",");
  16813. }
  16814. this.evalua = res.data[0][0].evaId;
  16815. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16816. this.courseType
  16817. ];
  16818. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16819. if (this.tcid && res.data[1].length) {
  16820. let _inviteA = [];
  16821. for (var ik = 0; ik < res.data[1].length; ik++) {
  16822. _inviteA.push({
  16823. cid: res.data[1][ik].classid,
  16824. ic: res.data[1][ik].code,
  16825. });
  16826. }
  16827. for (var ik = 0; ik < _inviteA.length; ik++) {
  16828. if (
  16829. this.arrayToArray(
  16830. _inviteA[ik].cid.split(","),
  16831. this.tcid.split(",")
  16832. ).length
  16833. ) {
  16834. this.inviteCode = _inviteA[ik].ic;
  16835. break;
  16836. }
  16837. }
  16838. }
  16839. for (var l = 0; l < this.chapInfoList.length; l++) {
  16840. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16841. for (var m = 0; m < w.length; m++) {
  16842. w[m].id = l + "-" + m;
  16843. }
  16844. }
  16845. let taskCount = 0;
  16846. if (
  16847. _chapterData[taskCount].length &&
  16848. _chapterData[taskCount][0].type == 2
  16849. ) {
  16850. this.showType = 0;
  16851. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  16852. } else {
  16853. if (_chapterData[taskCount].length > 0) {
  16854. let _url = _chapterData[taskCount][0].url;
  16855. if (
  16856. _chapterData[taskCount][0].type == 8 ||
  16857. _chapterData[taskCount][0].type == 14 ||
  16858. _chapterData[taskCount][0].type == 15
  16859. ) {
  16860. this.showType = 2;
  16861. if (
  16862. _url.indexOf("https://") == -1 &&
  16863. _url.indexOf("http://") == -1
  16864. ) {
  16865. _url = "https://" + _url;
  16866. }
  16867. this.pptImgUrl1 = _url;
  16868. } else if (_chapterData[taskCount][0].type == 3) {
  16869. if (
  16870. _url
  16871. .split(".")
  16872. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16873. ) {
  16874. this.showType = 3;
  16875. this.pptImgUrl1 = _url;
  16876. } else if (
  16877. this.isAssetTypeAnImage(
  16878. _url
  16879. .split(".")
  16880. [_url.split(".").length - 1].toLocaleLowerCase()
  16881. )
  16882. ) {
  16883. this.showType = 4;
  16884. this.pptImgUrl1 = _url;
  16885. } else {
  16886. this.showType = 2;
  16887. this.pptImgUrl1 =
  16888. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16889. encodeURIComponent(_url);
  16890. }
  16891. } else if (_chapterData[taskCount][0].type == 13) {
  16892. this.showType = 4;
  16893. this.pptImgUrl1 = _url;
  16894. } else if (_chapterData[taskCount][0].type == 6) {
  16895. this.showType = 1;
  16896. this.text = this.textList[taskCount][0];
  16897. } else if (_chapterData[taskCount][0].type == 16) {
  16898. this.showType = 16;
  16899. this.pptImgUrl1 = _url;
  16900. } else if (_chapterData[taskCount][0].type == 17) {
  16901. this.showType = 16;
  16902. this.pptImgUrl1 = _url;
  16903. }
  16904. }
  16905. }
  16906. this.isClickNav = 0;
  16907. if (
  16908. !_chapterData[taskCount].length ||
  16909. _chapterData[taskCount][0].type == 12
  16910. ) {
  16911. this.isClickNav = "";
  16912. this.showType = "";
  16913. }
  16914. if (this.tType == 2) {
  16915. _chapterData.forEach((e,i)=>{
  16916. if (e.length) {
  16917. let yym = e.filter(k=>{
  16918. if(!converter(k.name).includes(converter(this.lang.ssTeachingPlan))){
  16919. return k
  16920. }
  16921. })
  16922. _chapterData[i] = yym
  16923. }
  16924. })
  16925. }
  16926. this.vChapterData = _chapterData;
  16927. } else {
  16928. // this.showType = 0;
  16929. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16930. .chapterInfo[0].taskJson;
  16931. var b = [
  16932. "AVI",
  16933. "NAVI",
  16934. "MPEG",
  16935. "ASF",
  16936. "MOV",
  16937. "WMV",
  16938. "3GP",
  16939. "RM",
  16940. "RMVB",
  16941. "FLV",
  16942. "F4V",
  16943. "H.264",
  16944. "H.265",
  16945. "REAL VIDEO",
  16946. "MKV",
  16947. "WebM",
  16948. "HDDVD",
  16949. "MP4",
  16950. "MPG",
  16951. "M4V",
  16952. "MGV",
  16953. "OGV",
  16954. "QTM",
  16955. "STR",
  16956. "AMC",
  16957. "DVX",
  16958. "EVO",
  16959. "DAT",
  16960. "OGG",
  16961. "OGM",
  16962. "MP3",
  16963. ];
  16964. let _chapterData = [];
  16965. for (var i = 0; i < a.length; i++) {
  16966. var c = a[i].chapterData;
  16967. this.vedio[i] = [];
  16968. this.textList[i] = [];
  16969. this.lineList[i] = [];
  16970. this.chapToolList[i] = [];
  16971. this.file[i] = [];
  16972. this.fileC[i] = [];
  16973. _chapterData[i] = c.filter((el) => {
  16974. return el.type != 12;
  16975. });
  16976. this.fileC[i] = c.filter((el) => {
  16977. return el.type == 12;
  16978. });
  16979. if (this.tType == 2) {
  16980. if (this.fileC[i].length) {
  16981. let yym1 = this.fileC[i].filter(e=>{
  16982. if(!converter(e.name).includes(converter(this.lang.ssTeachingPlan))){
  16983. return e
  16984. }
  16985. })
  16986. this.fileC[i] = yym1
  16987. }
  16988. }
  16989. for (var j = 0; j < c.length; j++) {
  16990. if (c[j].type == 7) {
  16991. this.chapToolList[i].push(c[j]);
  16992. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  16993. this.lineList[i].push(c[j]);
  16994. } else if (c[j].type == 6) {
  16995. this.textList[i].push(c[j]);
  16996. } else {
  16997. if (
  16998. b.indexOf(
  16999. c[j].url
  17000. .split(".")
  17001. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17002. ) != -1
  17003. ) {
  17004. this.vedio[i].push(c[j]);
  17005. } else {
  17006. this.file[i].push(c[j]);
  17007. }
  17008. }
  17009. }
  17010. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17011. d.sources[0].src =
  17012. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17013. this.playerO[i] = d;
  17014. }
  17015. let taskCount = 0;
  17016. if (
  17017. _chapterData[taskCount].length &&
  17018. _chapterData[taskCount][0].type == 2
  17019. ) {
  17020. // this.showType = 0;
  17021. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17022. } else {
  17023. if (_chapterData[taskCount].length > 0) {
  17024. let _url = _chapterData[taskCount][0].url;
  17025. if (
  17026. _chapterData[taskCount][0].type == 8 ||
  17027. _chapterData[taskCount][0].type == 14||
  17028. _chapterData[taskCount][0].type == 15
  17029. ) {
  17030. // this.showType = 2;
  17031. if (
  17032. _url.indexOf("https://") == -1 &&
  17033. _url.indexOf("http://") == -1
  17034. ) {
  17035. _url = "https://" + _url;
  17036. }
  17037. // this.pptImgUrl1 = _url;
  17038. } else if (_chapterData[taskCount][0].type == 3) {
  17039. if (
  17040. _url
  17041. .split(".")
  17042. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17043. ) {
  17044. // this.showType = 3;
  17045. // this.pptImgUrl1 = _url;
  17046. } else if (
  17047. this.isAssetTypeAnImage(
  17048. _url
  17049. .split(".")
  17050. [_url.split(".").length - 1].toLocaleLowerCase()
  17051. )
  17052. ) {
  17053. // this.showType = 4;
  17054. // this.pptImgUrl1 = _url;
  17055. } else {
  17056. // this.showType = 2;
  17057. // this.pptImgUrl1 =
  17058. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  17059. // encodeURIComponent(_url);
  17060. }
  17061. } else if (_chapterData[taskCount][0].type == 13) {
  17062. // this.showType = 4;
  17063. // this.pptImgUrl1 = _url;
  17064. } else if (_chapterData[taskCount][0].type == 6) {
  17065. this.showType = 1;
  17066. this.text = this.textList[taskCount][0];
  17067. } else if (_chapterData[taskCount][0].type == 16) {
  17068. this.showType = 16;
  17069. this.pptImgUrl1 = _url;
  17070. } else if (_chapterData[taskCount][0].type == 17) {
  17071. this.showType = 16;
  17072. this.pptImgUrl1 = _url;
  17073. }
  17074. }
  17075. }
  17076. this.isClickNav = 0;
  17077. if (
  17078. !_chapterData[taskCount].length ||
  17079. _chapterData[taskCount][0].type == 12
  17080. ) {
  17081. this.isClickNav = "";
  17082. // this.showType = "";
  17083. }
  17084. if (this.tType == 2) {
  17085. _chapterData.forEach((e,i)=>{
  17086. if (e.length) {
  17087. let yym = e.filter(k=>{
  17088. if(!converter(k.name).includes(converter(this.lang.ssTeachingPlan))){
  17089. return k
  17090. }
  17091. })
  17092. _chapterData[i] = yym
  17093. }
  17094. })
  17095. }
  17096. this.vChapterData = _chapterData;
  17097. this.$forceUpdate();
  17098. }
  17099. // else {
  17100. // this.courseDetail = res.data[0][0];
  17101. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17102. // }
  17103. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  17104. if (type == 10) {
  17105. console.log('this.courseDetail.userid',this.courseDetail.userid);
  17106. console.log('this.userid',this.userid);
  17107. if (this.courseDetail.userid == this.userid) {
  17108. // 开局关闭学生查看内容
  17109. this.StulookMode(true)
  17110. // 开局打开跟随模式
  17111. this.followingMode(true)
  17112. }
  17113. }
  17114. let _this = this;
  17115. if (_this.timer) {
  17116. clearInterval(_this.timer);
  17117. _this.timer = null;
  17118. }
  17119. if (_this.tcid) {
  17120. _this.getCourseGroup(gindex);
  17121. } else {
  17122. _this.selectSWorks(gindex);
  17123. }
  17124. _this.selectStudent();
  17125. _this.selectSLook();
  17126. _this.getPick();
  17127. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17128. // _this.setCTask();
  17129. // }
  17130. if (_this.dialogVisibleGroup) {
  17131. _this.groupJson =
  17132. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17133. _this.taskCount
  17134. ].toolChoose[_this.toolindex].groupJson;
  17135. }
  17136. _this.$nextTick(() => {
  17137. setTimeout(() => {
  17138. _this.checkEva();
  17139. }, 1000);
  17140. });
  17141. _this.timer = setInterval(function () {
  17142. // _this.getCourseDetail(2);
  17143. if (_this.tcid) {
  17144. _this.getCourseGroup();
  17145. } else {
  17146. _this.selectSWorks();
  17147. }
  17148. _this.selectStudent();
  17149. _this.selectSLook();
  17150. _this.getPick();
  17151. // _this.getSplitScreenData();//获取分屏数据
  17152. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17153. // _this.setCTask();
  17154. // }
  17155. if (_this.dialogVisibleGroup) {
  17156. _this.groupJson =
  17157. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17158. _this.taskCount
  17159. ].toolChoose[_this.toolindex].groupJson;
  17160. }
  17161. if (_this.tType == 4 || _this.ispzType == 4) {
  17162. _this.selectPz();
  17163. }
  17164. }, 5000);
  17165. if (_this.timer2 == null) {
  17166. _this.timer2 = setInterval(()=> {
  17167. if (_this.$region != 'hk') {
  17168. _this.getSplitScreenData();//获取分屏数据
  17169. }
  17170. }, 5000);
  17171. }
  17172. _this.$nextTick(function () {
  17173. setTimeout(() => {
  17174. const element = document.getElementsByClassName("pb_body")[0];
  17175. if (element) {
  17176. element.style.minHeight = 'unset'
  17177. // 或者:element.style.removeProperty("min-height");
  17178. }
  17179. // var a =
  17180. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17181. // document.getElementsByClassName("vedioList")[0].style.height =
  17182. // a + "px";
  17183. // document.getElementsByClassName("navBox")[0].style.height =
  17184. // a - 40 + "px";
  17185. // if (_this.vedio[_this.taskCount].length > 0) {
  17186. // _this.vedioTime = [];
  17187. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17188. // _this.vedioTime[i] = document.getElementsByClassName(
  17189. // "vjs-duration-display"
  17190. // )[i].textContent;
  17191. // }
  17192. // }
  17193. }, 1000);
  17194. });
  17195. })
  17196. .catch((err) => {
  17197. loading.close();
  17198. console.error(err);
  17199. });
  17200. },
  17201. getCourseGroup(gindex) {
  17202. if(this.getCourseGroupLoading) return
  17203. this.getCourseGroupLoading = true
  17204. let params = {
  17205. cid: this.id,
  17206. classid: this.tcid ? this.tcid : "1",
  17207. };
  17208. this.ajax
  17209. .get(this.$store.state.api + "getCourseGroup", params)
  17210. .then((res) => {
  17211. if (res.data && res.data[0].length) {
  17212. if (!this.isGroup) {
  17213. let courseGroup = JSON.parse(res.data[0][0].group);
  17214. courseGroup.group = courseGroup.group.filter((el) => {
  17215. el.works = [];
  17216. return el;
  17217. });
  17218. if (courseGroup.isopen == 2) {
  17219. this.isGroup = false;
  17220. this.selectSWorks(gindex);
  17221. return;
  17222. }
  17223. this.courseGroup = courseGroup;
  17224. let groupPerson = res.data[1];
  17225. let group = JSON.parse(res.data[0][0].group).group;
  17226. let courseGroupStudent = {};
  17227. let courseGroupStudentUid = {};
  17228. for (var i = 0; i < group.length; i++) {
  17229. courseGroupStudent[group[i].id] = [];
  17230. courseGroupStudentUid[group[i].id] = [];
  17231. for (var j = 0; j < groupPerson.length; j++) {
  17232. if (groupPerson[j].groupCid == group[i].id) {
  17233. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17234. courseGroupStudentUid[group[i].id].push(
  17235. groupPerson[j].userid
  17236. );
  17237. }
  17238. }
  17239. }
  17240. this.courseGroupStudent = courseGroupStudent;
  17241. this.courseGroupStudentUid = courseGroupStudentUid;
  17242. }
  17243. if (this.courseGroup.isopen == 2) {
  17244. this.isGroup = false;
  17245. } else {
  17246. this.isGroup = true;
  17247. }
  17248. this.selectSWorks(gindex);
  17249. } else {
  17250. this.selectSWorks(gindex);
  17251. this.isGroup = false;
  17252. }
  17253. this.getCourseGroupLoading = false
  17254. })
  17255. .catch((err) => {
  17256. this.getCourseGroupLoading = false
  17257. // this.$message.error("网络不佳");
  17258. console.error(err);
  17259. });
  17260. },
  17261. setOperationTime() {
  17262. let _this = this;
  17263. if (_this.opertimer) {
  17264. clearInterval(_this.opertimer);
  17265. _this.opertimer = null;
  17266. }
  17267. _this.opertimer = setInterval(() => {
  17268. _this.setoTime("600");
  17269. }, 600000);
  17270. },
  17271. setoTime(time) {
  17272. this.doSyncClassData();
  17273. let params = [
  17274. {
  17275. uid: this.userid,
  17276. cid: this.id + (this.tcid2 || ''),
  17277. type: "2",
  17278. time: time,
  17279. },
  17280. ];
  17281. this.ajax
  17282. .post(this.$store.state.api + "addOperationTimeT2", params)
  17283. .then((res) => {})
  17284. .catch((err) => {
  17285. console.error(err);
  17286. });
  17287. },
  17288. addPz(type, content) {
  17289. if (type == "1" && this.pzConText == "") {
  17290. this.$message.error(this.lang.ssCommentEmpty);
  17291. return;
  17292. }
  17293. let params = [
  17294. {
  17295. cid: this.id,
  17296. uid: this.userid,
  17297. s: this.courseType,
  17298. t: this.taskCount,
  17299. c: type == "1" ? this.pzConText : content,
  17300. type: type,
  17301. },
  17302. ];
  17303. this.ajax
  17304. .post(this.$store.state.api + "addPz2", params)
  17305. .then((res) => {
  17306. this.$message({
  17307. message: this.lang.ssAddSuccess,
  17308. type: "success",
  17309. });
  17310. this.pzConText = "";
  17311. this.addPzDialog = false;
  17312. this.selectPz();
  17313. if(this.tType!=2){
  17314. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17315. }
  17316. })
  17317. .catch((err) => {
  17318. this.$message.error(this.lang.ssAddFailed);
  17319. console.error(err);
  17320. });
  17321. },
  17322. setReplyIndex(id, i) {
  17323. this.replyIndex = i;
  17324. this.replyPid = id;
  17325. this.replyDialogVisible = true;
  17326. },
  17327. addHf() {
  17328. if (this.reply == "") {
  17329. this.$message.error(this.lang.ssReplyEmpty);
  17330. return;
  17331. }
  17332. let params = [
  17333. {
  17334. cid: this.id,
  17335. uid: this.userid,
  17336. s: this.courseType,
  17337. t: this.taskCount,
  17338. type: "1",
  17339. ct: 2,
  17340. pid: this.replyPid,
  17341. c: this.reply,
  17342. },
  17343. ];
  17344. this.ajax
  17345. .post(this.$store.state.api + "addHf", params)
  17346. .then((res) => {
  17347. this.reply = "";
  17348. this.$message({
  17349. message: this.lang.ssReplySuccess,
  17350. type: "success",
  17351. });
  17352. this.replyDialogVisible = false;
  17353. this.selectPz();
  17354. })
  17355. .catch((err) => {
  17356. this.$message.error(this.lang.ssReplyFailed);
  17357. console.error(err);
  17358. });
  17359. },
  17360. deletePz(id) {
  17361. this.$confirm(this.lang.ssConfirmDeleteComment, this.lang.ssPrompt, {
  17362. confirmButtonText: this.lang.ssConfirm,
  17363. cancelButtonText: this.lang.ssCancel,
  17364. type: "warning",
  17365. })
  17366. .then(() => {
  17367. let params = [
  17368. {
  17369. id: id,
  17370. },
  17371. ];
  17372. this.ajax
  17373. .post(this.$store.state.api + "deletePz", params)
  17374. .then((res) => {
  17375. this.$message({
  17376. message: this.lang.ssDeleteSuccess,
  17377. type: "success",
  17378. });
  17379. this.selectPz();
  17380. })
  17381. .catch((err) => {
  17382. this.$message.error(this.lang.ssNetworkError);
  17383. console.error(err);
  17384. });
  17385. })
  17386. .catch(() => {});
  17387. },
  17388. deleteReply(id) {
  17389. this.$confirm(this.lang.ssConfirmDeleteReply, this.lang.ssPrompt, {
  17390. confirmButtonText: this.lang.ssConfirm,
  17391. cancelButtonText: this.lang.ssCancel,
  17392. type: "warning",
  17393. })
  17394. .then(() => {
  17395. let params = [
  17396. {
  17397. id: id,
  17398. },
  17399. ];
  17400. this.ajax
  17401. .post(this.$store.state.api + "deleteReply", params)
  17402. .then((res) => {
  17403. this.$message({
  17404. message: this.lang.ssDeleteSuccess,
  17405. type: "success",
  17406. });
  17407. this.selectPz();
  17408. })
  17409. .catch((err) => {
  17410. this.$message.error(this.lang.ssNetworkError);
  17411. console.error(err);
  17412. });
  17413. })
  17414. .catch(() => {});
  17415. },
  17416. setPz() {
  17417. if (this.ispzType == 4) {
  17418. this.ispzType = 0;
  17419. this.pzDialog = false;
  17420. return;
  17421. }
  17422. this.ispzType = 4;
  17423. this.pzDialog = true;
  17424. this.selectPz();
  17425. },
  17426. selectPz() {
  17427. if(this.selectPzLoading) return
  17428. this.selectPzLoading = true
  17429. let params = {
  17430. cid: this.id,
  17431. s: this.courseType,
  17432. t: this.taskCount,
  17433. type: this.pzStype,
  17434. uid: this.userid,
  17435. };
  17436. this.ajax
  17437. .get(this.$store.state.api + "selectPzListType", params)
  17438. .then((res) => {
  17439. this.pzList = res.data[0];
  17440. var a = res.data[1];
  17441. for (var i = 0; i < a.length; i++) {
  17442. for (var j = 0; j < this.pzList.length; j++) {
  17443. if (!this.pzList[j].hfList) {
  17444. this.pzList[j].hfList = [];
  17445. }
  17446. if (a[i].pid == this.pzList[j].id) {
  17447. this.pzList[j].hfList.push(a[i]);
  17448. }
  17449. }
  17450. }
  17451. this.selectPzLoading = false
  17452. })
  17453. .catch((err) => {
  17454. this.selectPzLoading = false
  17455. console.error(err);
  17456. });
  17457. },
  17458. // selectHf() {
  17459. // let params = {
  17460. // cid: this.id,
  17461. // s: this.courseType,
  17462. // t: this.taskCount,
  17463. // };
  17464. // this.ajax
  17465. // .get(this.$store.state.api + "selectHfList", params)
  17466. // .then((res) => {
  17467. // var a = res.data[0];
  17468. // for (var i = 0; i < a.length; i++) {
  17469. // for (var j = 0; j < this.pzList.length; j++) {
  17470. // if (!this.pzList[i].hfList) {
  17471. // this.pzList[i].hfList = [];
  17472. // }
  17473. // if (a[i].pid == this.pzList[j].id) {
  17474. // this.pzList[i].hfList.push(a[i]);
  17475. // }
  17476. // }
  17477. // }
  17478. // })
  17479. // .catch((err) => {
  17480. // console.error(err);
  17481. // });
  17482. // },
  17483. updateSLook() {
  17484. let params = {
  17485. sopen: this.sIsOpen == false ? 1 : 2,
  17486. cid: this.id,
  17487. };
  17488. this.ajax
  17489. .get(this.$store.state.api + "updateCourseSLook", params)
  17490. .then((res) => {
  17491. if (this.sIsOpen == true) {
  17492. this.$message({
  17493. message: this.lang.ssPermSetSuccess,
  17494. type: "success",
  17495. });
  17496. } else {
  17497. this.$message({
  17498. message: this.lang.ssPermClosedOk,
  17499. type: "success",
  17500. });
  17501. }
  17502. })
  17503. .catch((err) => {
  17504. console.error(err);
  17505. });
  17506. },
  17507. updateIsStulook(){
  17508. let params = [
  17509. {
  17510. sopen: this.IsStulook == false ? 2 : 1,
  17511. cid: this.id
  17512. }
  17513. ];
  17514. this.ajax
  17515. .post(this.$store.state.api + "updateCourseStulook", params)
  17516. .then(res => {
  17517. if (this.IsStulook == true) {
  17518. this.$message({
  17519. message: this.lang.ssStuViewPermOn,
  17520. type: "success"
  17521. });
  17522. } else {
  17523. this.$message({
  17524. message: this.lang.ssStuViewPermOff,
  17525. type: "success"
  17526. });
  17527. }
  17528. // this.setCTask();
  17529. })
  17530. .catch(err => {
  17531. console.error(err);
  17532. });
  17533. },
  17534. updateFollow() {
  17535. let params = [
  17536. {
  17537. sopen: this.IsFollow == false ? 1 : 2,
  17538. cid: this.id,
  17539. },
  17540. ];
  17541. this.ajax
  17542. .post(this.$store.state.api + "updateCourseFollow", params)
  17543. .then((res) => {
  17544. if (this.IsFollow == true) {
  17545. this.$message({
  17546. message: this.lang.ssFollowModeOn2,
  17547. type: "success",
  17548. });
  17549. } else {
  17550. this.$message({
  17551. message: this.lang.ssFollowModeOff,
  17552. type: "success",
  17553. });
  17554. }
  17555. this.setCTask();
  17556. })
  17557. .catch((err) => {
  17558. console.error(err);
  17559. });
  17560. },
  17561. setCTask() {
  17562. let params = [
  17563. {
  17564. sopen: this.courseType + "-" + this.taskCount,
  17565. cid: this.id,
  17566. },
  17567. ];
  17568. this.ajax
  17569. .post(this.$store.state.api + "updateCourseFollowC", params)
  17570. .then((res) => {})
  17571. .catch((err) => {
  17572. console.error(err);
  17573. });
  17574. },
  17575. updateLookOpen() {
  17576. let params = [
  17577. {
  17578. sopen: this.IsLookOpen == false ? 1 : 2,
  17579. cid: this.id,
  17580. },
  17581. ];
  17582. this.ajax
  17583. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17584. .then((res) => {
  17585. if (this.IsLookOpen == true) {
  17586. // if (this.courseType != 0 && this.taskCount != 0) {
  17587. // this.openTask(0, 0, "0-0");
  17588. // }
  17589. this.$message({
  17590. message: this.lang.ssPermSetSuccess,
  17591. type: "success",
  17592. });
  17593. } else {
  17594. this.$message({
  17595. message: this.lang.ssPermClosedOk,
  17596. type: "success",
  17597. });
  17598. }
  17599. this.getCourseState(2);
  17600. })
  17601. .catch((err) => {
  17602. console.error(err);
  17603. });
  17604. },
  17605. selectSLook() {
  17606. if(this.selectSLookLoading) return
  17607. this.selectSLookLoading = true
  17608. let params = {
  17609. cid: this.id,
  17610. };
  17611. this.ajax
  17612. .get(this.$store.state.api + "selectCourseSLook", params)
  17613. .then((res) => {
  17614. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17615. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17616. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17617. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  17618. if (!this.IsLookOpen) {
  17619. this.setNavList();
  17620. }else {
  17621. this.getCourseState(1);
  17622. }
  17623. if ((this.IsFollow && this.tType == 2)) {
  17624. this.setContent2(false);
  17625. let _followC = res.data[0][0].followC.split("-");
  17626. if (
  17627. this.courseType != _followC[0] ||
  17628. this.taskCount != _followC[1]
  17629. ) {
  17630. this.navList[this.courseType].isOpen = false;
  17631. this.courseType = _followC[0];
  17632. this.navList[this.courseType].isOpen = true;
  17633. this.taskCount = parseInt(_followC[1]);
  17634. this.navId = res.data[0][0].followC;
  17635. document.scrollingElement.scrollTop = 0;
  17636. this.getCourseDetail(2);
  17637. }
  17638. }
  17639. this.selectSLookLoading = false
  17640. })
  17641. .catch((err) => {
  17642. this.selectSLookLoading = false
  17643. console.error(err);
  17644. });
  17645. },
  17646. setNavList() {
  17647. if (this.navList.length == 0) {
  17648. this.navList = [];
  17649. var copyList = [];
  17650. for (var l = 0; l < this.chapInfoList.length; l++) {
  17651. var q = this.chapInfoList[l].dyName;
  17652. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17653. var e;
  17654. copyList.push({
  17655. dyName: q,
  17656. isOpen: l === 0 ? true : false,
  17657. task: [],
  17658. });
  17659. for (var r = 0; r < w.length; r++) {
  17660. e = w[r].task;
  17661. if (this.chapInfoList[l].easy == 1) {
  17662. copyList[l].task.push({
  17663. taskName: q,
  17664. id: l + "-" + r,
  17665. isLook: w[r].isLook,
  17666. isOpen: r === 0 ? true : false,
  17667. tool: [],
  17668. });
  17669. } else {
  17670. copyList[l].task.push({
  17671. taskName: e,
  17672. id: l + "-" + r,
  17673. isLook: w[r].isLook,
  17674. isOpen: r === 0 ? true : false,
  17675. tool: [],
  17676. });
  17677. }
  17678. var t = w[r].toolChoose;
  17679. for (var k = 0; k < t.length; k++) {
  17680. var tool = t[k].tool[0];
  17681. copyList[l].task[r].tool.push({
  17682. tool: tool,
  17683. isTool: false,
  17684. });
  17685. }
  17686. // this.navId = this.navId ? this.navId : l + "-" + r;
  17687. // this.navId = l + "-" + r;
  17688. }
  17689. }
  17690. this.navList = copyList;
  17691. this.navList[0].isOpen = false;
  17692. this.navList[this.courseType].isOpen = true;
  17693. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17694. } else {
  17695. this.setNavList2();
  17696. }
  17697. },
  17698. setNavList2() {
  17699. for (var l = 0; l < this.chapInfoList.length; l++) {
  17700. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17701. for (var r = 0; r < w.length; r++) {
  17702. this.navList[l].task[r].isLook = w[r].isLook;
  17703. }
  17704. }
  17705. if (
  17706. this.IsLookOpen &&
  17707. !this.navList[this.courseType].task[this.taskCount].isLook
  17708. ) {
  17709. this.openTask(0, 0, "0-0");
  17710. }
  17711. this.$forceUpdate();
  17712. },
  17713. getCourseState(type) {
  17714. let params = {
  17715. cid: this.id,
  17716. };
  17717. this.ajax
  17718. .get(this.$store.state.api + "getCourseState", params)
  17719. .then((res) => {
  17720. // if (res.data[0].length > 0) {
  17721. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  17722. // }
  17723. if (res.data[0].length > 0 && type == 1) {
  17724. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17725. this.setNavList();
  17726. this.$forceUpdate();
  17727. } else if (res.data[0].length > 0 && type == 2) {
  17728. this.addCourseState(2);
  17729. } else {
  17730. // this.addCourseState(1);
  17731. }
  17732. })
  17733. .catch((err) => {
  17734. console.error(err);
  17735. });
  17736. },
  17737. addCourseState(type,val = '') {
  17738. let _state = val ? val : this.chapInfoList;
  17739. // this.courseType this.taskCount
  17740. if (type == 1 || type == 2) {
  17741. for (var i = 0; i < _state.length; i++) {
  17742. let el = _state[i].chapterInfo[0].taskJson;
  17743. for (var j = 0; j < el.length; j++) {
  17744. // if (i == 0 && j == 0) {
  17745. // el[j].isLook = true;
  17746. // } else {
  17747. // el[j].isLook = false;
  17748. // }
  17749. if (
  17750. this.courseType > i ||
  17751. (this.courseType == i && this.taskCount + 1 > j)
  17752. ) {
  17753. el[j].isLook = true;
  17754. } else {
  17755. el[j].isLook = false;
  17756. }
  17757. }
  17758. }
  17759. }
  17760. let params = [
  17761. {
  17762. cid: this.id,
  17763. state: JSON.stringify(_state),
  17764. },
  17765. ];
  17766. this.ajax
  17767. .post(
  17768. this.$store.state.api +
  17769. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17770. params
  17771. )
  17772. .then((res) => {
  17773. if (this.IsLookOpen) {
  17774. this.setNavList();
  17775. }
  17776. if (type == 3 && type == 2) {
  17777. this.getCourseState(1);
  17778. }
  17779. })
  17780. .catch((err) => {
  17781. console.error(err);
  17782. });
  17783. },
  17784. getHomeWork() {
  17785. let params = {
  17786. cid: this.id,
  17787. stage: this.courseType,
  17788. task: this.taskCount,
  17789. uid: this.userid,
  17790. };
  17791. this.ajax
  17792. .get(this.$store.state.api + "selectWork", params)
  17793. .then((res) => {
  17794. if (res.data[0].length > 0) {
  17795. this.studyJuri = JSON.parse(res.data[0][0].content);
  17796. this.isNoHomeWork = true;
  17797. }
  17798. })
  17799. .catch((err) => {
  17800. console.error(err);
  17801. });
  17802. },
  17803. isAssetTypeAnImage(ext) {
  17804. return (
  17805. [
  17806. "png",
  17807. "jpg",
  17808. "jpeg",
  17809. "bmp",
  17810. "gif",
  17811. "webp",
  17812. "psd",
  17813. "svg",
  17814. "tiff",
  17815. ].indexOf(ext) !== -1
  17816. );
  17817. },
  17818. switchVideo(media) {
  17819. this.playerO = {};
  17820. this.playerOptions.poster = "";
  17821. this.playerOptions.sources[0].src = media;
  17822. this.playerO = this.playerOptions;
  17823. },
  17824. onPlayerPlay() {},
  17825. onPlayerTimeupdate(player) {
  17826. let gklog = player.cache_.currentTime; //当前播放的秒数
  17827. let a = player.cache_.duration; //视频的总时长
  17828. let gklog2 = parseInt(gklog);
  17829. // if(gklog2 == '3'){
  17830. // player.pause()
  17831. // setTimeout(()=>{
  17832. // player.currentTime(gklog2+1)
  17833. // player.play()
  17834. // },1000)
  17835. // }
  17836. console.log(" onPlayerTimeupdate!", gklog);
  17837. console.log(" onPlayerTimeupdate!", gklog2);
  17838. },
  17839. lookVedio(u, i) {
  17840. this.isClickNav = "";
  17841. // this.playerOptions.sources[0].src = u;
  17842. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17843. d.sources[0].src = u;
  17844. this.playerO[0] = d;
  17845. this.showType = 0;
  17846. // this.isClickNav = "video" + i;
  17847. this.isClickNav = i;
  17848. this.$forceUpdate();
  17849. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17850. },
  17851. lookText(i, t) {
  17852. this.isClickNav = "";
  17853. // this.text = this.textList[i][t];
  17854. this.text = this.vChapterData[i][t];
  17855. // this.dialogVisible1 = true;
  17856. this.showType = 1;
  17857. // this.isClickNav = "text" + t;
  17858. this.isClickNav = t;
  17859. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17860. },
  17861. lookTools(i, t) {
  17862. this.chapTools = this.chapToolList[i][t];
  17863. this.dialogVisible2 = true;
  17864. },
  17865. async openFile(f) {
  17866. this.pptImgUrl = "";
  17867. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17868. if (
  17869. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17870. -1
  17871. ) {
  17872. let _uuurl = await this.checkLink(f);
  17873. console.log(_uuurl)
  17874. this.pptImgUrl =
  17875. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17876. this.showPDF = false;
  17877. this.dialogVisible3 = true;
  17878. } else if (
  17879. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17880. ) {
  17881. this.pptImgUrl = f;
  17882. this.showPDF = true;
  17883. this.dialogVisible3 = true;
  17884. }
  17885. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17886. },
  17887. openTable(f) {
  17888. this.tableJson = JSON.parse(f.works);
  17889. this.dialogVisibleTable2 = true;
  17890. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17891. },
  17892. openWord(f) {
  17893. this.tableJson = JSON.parse(f.works);
  17894. this.dialogVisibleTable3 = true;
  17895. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17896. },
  17897. doUrl(url, i) {
  17898. this.isClickNav = "";
  17899. this.pptImgUrl1 = "";
  17900. this.showType = 2;
  17901. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17902. url = "https://" + url;
  17903. }
  17904. this.pptImgUrl1 = "";
  17905. this.diffKey = new Date().getTime();
  17906. setTimeout(() => {
  17907. this.pptImgUrl1 = url;
  17908. }, 500);
  17909. // this.isClickNav = "line" + i;
  17910. this.isClickNav = i;
  17911. this.$forceUpdate();
  17912. },
  17913. checkPhoto(f, i) {
  17914. this.showType = 4;
  17915. this.pptImgUrl1 = f.url;
  17916. this.isClickNav = i;
  17917. this.$forceUpdate();
  17918. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17919. },
  17920. checkHtml(f, i){
  17921. this.showType = 16;
  17922. this.pptImgUrl1 = f.url;
  17923. this.isClickNav = i;
  17924. this.$forceUpdate();
  17925. },
  17926. async downFile(f, i) {
  17927. this.isClickNav = "";
  17928. this.pptImgUrl1 = "";
  17929. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17930. if (
  17931. a.indexOf(
  17932. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17933. ) != -1
  17934. ) {
  17935. let _uuurl = await this.checkLink(f.url);
  17936. console.log(_uuurl)
  17937. this.pptImgUrl1 =
  17938. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17939. // this.dialogVisible3 = true;
  17940. this.showType = 2;
  17941. } else if (
  17942. this.isAssetTypeAnImage(
  17943. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17944. )
  17945. ) {
  17946. this.showType = 4;
  17947. this.pptImgUrl1 = f.url;
  17948. } else if (
  17949. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17950. "PDF"
  17951. ) {
  17952. this.pptImgUrl1 = f.url;
  17953. // this.dialogVisible3 = true;
  17954. this.showType = 3;
  17955. } else {
  17956. window.open(this.file[i].url);
  17957. }
  17958. // this.isClickNav = "word" + i;
  17959. this.isClickNav = i;
  17960. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17961. },
  17962. downFileList(i) {
  17963. window.open(this.noImgList[i].url);
  17964. },
  17965. openAddWork() {
  17966. this.dialogVisible = true;
  17967. },
  17968. addBzWorks() {
  17969. let params = [
  17970. {
  17971. uid: this.userid,
  17972. cid: this.id,
  17973. stage: this.courseType,
  17974. task: this.taskCount,
  17975. tool: this.toolindex,
  17976. content: JSON.stringify(this.eScore),
  17977. type: 6,
  17978. },
  17979. ];
  17980. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17981. this.homeWorkLoading = true
  17982. this.ajax
  17983. .post(this.$store.state.api + "addCourseWorks", params)
  17984. .then((res) => {
  17985. this.$message({
  17986. message: this.lang.ssSubmitSuccess,
  17987. type: "success",
  17988. });
  17989. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  17990. setTimeout(() => {
  17991. this.homeWorkLoading = false
  17992. }, 500);
  17993. this.eScore = { eBzText: "", eStar: [] };
  17994. this.studentEvalDialogVisible = false;
  17995. this.selectSWorks();
  17996. })
  17997. .catch((err) => {
  17998. this.$message.error(this.lang.ssSubmitFailed);
  17999. console.error(err);
  18000. setTimeout(() => {
  18001. this.homeWorkLoading = false
  18002. }, 500);
  18003. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18004. });
  18005. },
  18006. addBzWorksTeacher() {
  18007. let params = [
  18008. {
  18009. uid: this.sStudent.userid,
  18010. cid: this.id,
  18011. stage: this.courseType,
  18012. task: this.taskCount,
  18013. tool: this.toolindex,
  18014. content: JSON.stringify(this.eScore),
  18015. type: 6,
  18016. },
  18017. ];
  18018. this.ajax
  18019. .post(this.$store.state.api + "addCourseWorks", params)
  18020. .then((res) => {
  18021. this.$message({
  18022. message: this.lang.ssSubmitSuccess,
  18023. type: "success",
  18024. });
  18025. this.eScore = { eBzText: "", eStar: [] };
  18026. this.studentEvalDialogVisibleTeacher = false;
  18027. this.selectSWorks();
  18028. })
  18029. .catch((err) => {
  18030. this.$message.error(this.lang.ssSubmitFailed);
  18031. console.error(err);
  18032. });
  18033. },
  18034. addStudentAsk() {
  18035. if (!this.radio.length) {
  18036. this.$message.error(this.lang.ssPleaseSelectOption);
  18037. return;
  18038. }
  18039. for (var i = 0; i < this.askJson.askCount; i++) {
  18040. if (
  18041. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18042. (this.radio[i] !== 0 && !this.radio[i])
  18043. ) {
  18044. this.$message.error(this.lang.ssPleaseSelectOption);
  18045. return;
  18046. }
  18047. }
  18048. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18049. let params = [
  18050. {
  18051. uid: this.userid,
  18052. cid: this.id,
  18053. stage: this.courseType,
  18054. task: this.taskCount,
  18055. tool: this.toolindex,
  18056. content: JSON.stringify(this.askList),
  18057. type: 2,
  18058. },
  18059. ];
  18060. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  18061. this.homeWorkLoading = true
  18062. this.ajax
  18063. .post(this.$store.state.api + "addCourseWorks", params)
  18064. .then((res) => {
  18065. this.$message({
  18066. message: this.lang.ssSubmitSuccess,
  18067. type: "success",
  18068. });
  18069. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18070. setTimeout(() => {
  18071. this.homeWorkLoading = false
  18072. }, 500);
  18073. this.askList = [];
  18074. this.dialogVisible5 = false;
  18075. this.selectStudent();
  18076. this.selectSWorks();
  18077. this.selectSLook();
  18078. })
  18079. .catch((err) => {
  18080. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18081. setTimeout(() => {
  18082. this.homeWorkLoading = false
  18083. }, 500);
  18084. this.$message.error(this.lang.ssSubmitFailed);
  18085. console.error(err);
  18086. });
  18087. },
  18088. addStudentAskTeacher() {
  18089. if (!this.radio.length) {
  18090. this.$message.error(this.lang.ssPleaseSelectOption);
  18091. return;
  18092. }
  18093. for (var i = 0; i < this.askJson.askCount; i++) {
  18094. if (
  18095. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18096. (this.radio[i] !== 0 && !this.radio[i])
  18097. ) {
  18098. this.$message.error(this.lang.ssPleaseSelectOption);
  18099. return;
  18100. }
  18101. }
  18102. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18103. let params = [
  18104. {
  18105. uid: this.sStudent.userid,
  18106. cid: this.id,
  18107. stage: this.courseType,
  18108. task: this.taskCount,
  18109. tool: this.toolindex,
  18110. content: JSON.stringify(this.askList),
  18111. type: 2,
  18112. },
  18113. ];
  18114. this.ajax
  18115. .post(this.$store.state.api + "addCourseWorks", params)
  18116. .then((res) => {
  18117. this.$message({
  18118. message: this.lang.ssSubmitSuccess,
  18119. type: "success",
  18120. });
  18121. this.askList = [];
  18122. this.dialogVisible5Teacher = false;
  18123. this.selectStudent();
  18124. this.selectSWorks();
  18125. this.selectSLook();
  18126. })
  18127. .catch((err) => {
  18128. this.$message.error(this.lang.ssSubmitFailed);
  18129. console.error(err);
  18130. });
  18131. },
  18132. addStudentTest() {
  18133. if (!this.radio.length) {
  18134. this.$message.error(this.lang.ssPleaseSelectOption);
  18135. return;
  18136. }
  18137. for (var i = 0; i < this.testJson.testCount; i++) {
  18138. if (
  18139. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18140. (this.radio[i] !== 0 && !this.radio[i])
  18141. ) {
  18142. this.$message.error(this.lang.ssPleaseSelectOption);
  18143. return;
  18144. }
  18145. }
  18146. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18147. let params = [
  18148. {
  18149. uid: this.userid,
  18150. cid: this.id,
  18151. stage: this.courseType,
  18152. task: this.taskCount,
  18153. tool: this.toolindex,
  18154. content: JSON.stringify(this.askList),
  18155. type: 8,
  18156. },
  18157. ];
  18158. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  18159. this.homeWorkLoading = true
  18160. this.ajax
  18161. .post(this.$store.state.api + "addCourseWorks", params)
  18162. .then((res) => {
  18163. this.$message({
  18164. message: this.lang.ssSubmitSuccess,
  18165. type: "success",
  18166. });
  18167. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18168. setTimeout(() => {
  18169. this.homeWorkLoading = false
  18170. }, 500);
  18171. this.askList = [];
  18172. this.dialogVisibleChoice = false;
  18173. this.selectStudent();
  18174. this.selectSWorks();
  18175. this.selectSLook();
  18176. })
  18177. .catch((err) => {
  18178. this.$message.error(this.lang.ssSubmitFailed);
  18179. console.error(err);
  18180. setTimeout(() => {
  18181. this.homeWorkLoading = false
  18182. }, 500);
  18183. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18184. });
  18185. },
  18186. addStudentTestTeacher() {
  18187. if (!this.radio.length) {
  18188. this.$message.error(this.lang.ssPleaseSelectOption);
  18189. return;
  18190. }
  18191. for (var i = 0; i < this.testJson.testCount; i++) {
  18192. if (
  18193. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18194. (this.radio[i] !== 0 && !this.radio[i])
  18195. ) {
  18196. this.$message.error(this.lang.ssPleaseSelectOption);
  18197. return;
  18198. }
  18199. }
  18200. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18201. let params = [
  18202. {
  18203. uid: this.sStudent.userid,
  18204. cid: this.id,
  18205. stage: this.courseType,
  18206. task: this.taskCount,
  18207. tool: this.toolindex,
  18208. content: JSON.stringify(this.askList),
  18209. type: 8,
  18210. },
  18211. ];
  18212. this.ajax
  18213. .post(this.$store.state.api + "addCourseWorks", params)
  18214. .then((res) => {
  18215. this.$message({
  18216. message: this.lang.ssSubmitSuccess,
  18217. type: "success",
  18218. });
  18219. this.askList = [];
  18220. this.dialogVisibleChoiceTeacher = false;
  18221. this.selectStudent();
  18222. this.selectSWorks();
  18223. this.selectSLook();
  18224. })
  18225. .catch((err) => {
  18226. this.$message.error(this.lang.ssSubmitFailed);
  18227. console.error(err);
  18228. });
  18229. },
  18230. addWork() {
  18231. if (this.studyJuri[0].content == "") {
  18232. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18233. return;
  18234. } else if (this.studyJuri[0].cover.length == 0) {
  18235. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18236. return;
  18237. } else if (this.studyJuri[0].upVedio.length == 0) {
  18238. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18239. return;
  18240. }
  18241. if (this.isNoHomeWork) {
  18242. this.$confirm(
  18243. this.lang.ssAlreadySubmittedHomework,
  18244. this.lang.ssPrompt,
  18245. {
  18246. confirmButtonText: this.lang.ssConfirm,
  18247. cancelButtonText: this.lang.ssCancel,
  18248. type: "warning",
  18249. }
  18250. )
  18251. .then(() => {
  18252. let params = [
  18253. {
  18254. uid: this.userid,
  18255. cid: this.id,
  18256. stage: this.courseType,
  18257. task: this.taskCount,
  18258. content: JSON.stringify(this.studyJuri),
  18259. },
  18260. ];
  18261. this.ajax
  18262. .post(this.$store.state.api + "addWorks", params)
  18263. .then((res) => {
  18264. this.$message({
  18265. message: this.lang.ssSubmitSuccess,
  18266. type: "success",
  18267. });
  18268. this.isNoHomeWork = true;
  18269. this.dialogVisible = false;
  18270. })
  18271. .catch((err) => {
  18272. this.$message.error(this.lang.ssSubmitFailed);
  18273. console.error(err);
  18274. });
  18275. })
  18276. .catch(() => {});
  18277. } else {
  18278. let params = [
  18279. {
  18280. uid: this.userid,
  18281. cid: this.id,
  18282. stage: this.courseType,
  18283. task: this.taskCount,
  18284. content: JSON.stringify(this.studyJuri),
  18285. },
  18286. ];
  18287. this.ajax
  18288. .post(this.$store.state.api + "addWorks", params)
  18289. .then((res) => {
  18290. this.$message({
  18291. message: this.lang.ssSubmitSuccess,
  18292. type: "success",
  18293. });
  18294. this.isNoHomeWork = true;
  18295. this.dialogVisible = false;
  18296. })
  18297. .catch((err) => {
  18298. this.$message.error(this.lang.ssSubmitFailed);
  18299. console.error(err);
  18300. });
  18301. }
  18302. },
  18303. selectCount() {
  18304. let params = {
  18305. cid: this.id,
  18306. chid: this.courseType,
  18307. uid: this.userid,
  18308. };
  18309. this.ajax
  18310. .get(this.$store.state.api + "selectToolsCount", params)
  18311. .then((res) => {
  18312. for (var i = 0; i < res.data[0].length; i++) {
  18313. if (res.data[0][i].tools == 1) {
  18314. this.wbCount = res.data[0][i].count;
  18315. } else if (res.data[0][i].tools == 2) {
  18316. this.wordCount = res.data[0][i].count;
  18317. } else if (res.data[0][i].tools == 3) {
  18318. this.mindCount = res.data[0][i].count;
  18319. } else if (res.data[0][i].tools == 4) {
  18320. this.askCount = res.data[0][i].count;
  18321. } else if (res.data[0][i].tools == 6) {
  18322. this.noteCount = res.data[0][i].count;
  18323. } else if (res.data[0][i].tools == 7) {
  18324. this.mindNetWorkCount = res.data[0][i].count;
  18325. } else if (res.data[0][i].tools == 8) {
  18326. this.libraryCount = res.data[0][i].count;
  18327. } else if (res.data[0][i].tools == 16) {
  18328. this.workCount = res.data[0][i].count;
  18329. } else if (res.data[0][i].tools == 10) {
  18330. this.timeCount = res.data[0][i].count;
  18331. } else if (res.data[0][i].tools == 15) {
  18332. this.answerCount = res.data[0][i].count;
  18333. } else if (res.data[0][i].tools == 18) {
  18334. this.trainCount = res.data[0][i].count;
  18335. }
  18336. }
  18337. })
  18338. .catch((err) => {
  18339. console.error(err);
  18340. });
  18341. },
  18342. openTools(t, i, index, c, sName,id) {
  18343. var z = JSON.parse(c);
  18344. this.noteName = sName;
  18345. if (t == 4) {
  18346. this.radio = [];
  18347. this.isAnswer = false;
  18348. let b = z[0].anwer;
  18349. this.radio = b;
  18350. this.askJson = z[0].askJson;
  18351. this.isAnswer = true;
  18352. this.dialogVisible5 = true;
  18353. } else if (t == 45) {
  18354. this.radio = [];
  18355. this.isAnswer = false;
  18356. let b = z[0].anwer;
  18357. this.radio = b;
  18358. this.testJson = z[0].testJson;
  18359. this.isAnswer = true;
  18360. this.dialogVisibleChoice = true;
  18361. }else if(t == 69){
  18362. this.oldEnglishJson1 = {}
  18363. this.oldEnglishJson = {}
  18364. this.englishList1 = {}
  18365. this.newEngIndex = -1;
  18366. this.isNoUserid = false;
  18367. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18368. .toolChoose[i].englishList;
  18369. this.oldEnglishJson = z;
  18370. this.engWid = id;
  18371. this.newEnglishList = { engTitle:"",engText:"" }
  18372. this.newEnglishList1 = []
  18373. this.selectEngC(id,z);
  18374. }else if(t == 62){
  18375. this.videoType = 1;
  18376. this.videoJson = {};
  18377. this.videoJson = JSON.parse(c);
  18378. // this.videoJson =
  18379. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18380. // index
  18381. // ].toolChoose[i].videoJson;
  18382. this.dialogVisibleVideo = true;
  18383. }
  18384. // else if (t == 15) {
  18385. // this.answerQ = "";
  18386. // this.questionAnswer = "";
  18387. // this.answerQ = z[0].answerTitle;
  18388. // this.questionAnswer = z[0].answer;
  18389. // this.answerDialogVisible = true;
  18390. // }
  18391. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18392. },
  18393. fastText(p, t) {
  18394. if (t == 1) {
  18395. this.commentText += p;
  18396. } else {
  18397. this.eScore.eBzText += p;
  18398. }
  18399. },
  18400. addTools(t, i, index) {
  18401. var a = 0;
  18402. // this.taskCount = index;
  18403. this.toolindex = i;
  18404. if (t == 1) {
  18405. if (this.wbCount > 0) {
  18406. this.updateCount(this.wbCount, t);
  18407. } else {
  18408. this.wbCount++;
  18409. a = this.wbCount;
  18410. this.toolsCount(a, t);
  18411. }
  18412. window.topU.postMessage(
  18413. {
  18414. tools: "1",
  18415. cid: this.id,
  18416. stage: this.courseType,
  18417. task: this.taskCount,
  18418. tool: i,
  18419. },
  18420. "*"
  18421. );
  18422. } else if (t == 2) {
  18423. if (this.wordCount > 0) {
  18424. this.updateCount(this.wordCount, t);
  18425. } else {
  18426. this.wordCount++;
  18427. a = this.wordCount;
  18428. this.toolsCount(a, t);
  18429. }
  18430. window.topU.postMessage({ tools: "2" }, "*");
  18431. } else if (t == 3) {
  18432. if (this.mindCount > 0) {
  18433. this.updateCount(this.mindCount, t);
  18434. } else {
  18435. this.mindCount++;
  18436. a = this.mindCount;
  18437. this.toolsCount(a, t);
  18438. }
  18439. window.topU.postMessage(
  18440. {
  18441. tools: "3",
  18442. cid: this.id,
  18443. stage: this.courseType,
  18444. task: this.taskCount,
  18445. tool: i,
  18446. },
  18447. "*"
  18448. );
  18449. } else if (t == 4) {
  18450. this.radio = [];
  18451. this.noteName = "";
  18452. this.isAnswer = false;
  18453. if (this.askCount > 0) {
  18454. this.updateCount(this.askCount, t);
  18455. } else {
  18456. this.askCount++;
  18457. a = this.askCount;
  18458. this.toolsCount(a, t);
  18459. }
  18460. if (!this.dialogVisible2) {
  18461. this.askJson.askJson =
  18462. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18463. index
  18464. ].toolChoose[i].askJson;
  18465. this.askJson.askTitle =
  18466. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18467. index
  18468. ].toolChoose[i].askTitle;
  18469. this.askJson.askCount =
  18470. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18471. index
  18472. ].toolChoose[i].askCount;
  18473. } else {
  18474. this.askJson.askJson = this.chapTools.askJson.askJson;
  18475. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18476. this.askJson.askCount = this.chapTools.askJson.askCount;
  18477. }
  18478. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18479. if (this.askJson.askJson[k].type == "2") {
  18480. this.radio.push([]);
  18481. } else {
  18482. this.radio.push("");
  18483. }
  18484. }
  18485. this.dialogVisible5 = true;
  18486. // window.topU.postMessage({ tools: "4" }, "*");
  18487. } else if (t == 45) {
  18488. this.noteName = "";
  18489. this.radio = [];
  18490. this.isAnswer = false;
  18491. if (this.askCount > 0) {
  18492. this.updateCount(this.askCount, t);
  18493. } else {
  18494. this.askCount++;
  18495. a = this.askCount;
  18496. this.toolsCount(a, t);
  18497. }
  18498. this.testJson =
  18499. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18500. index
  18501. ].toolChoose[i].testJson;
  18502. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18503. if (this.testJson.testJson[k].type == "2") {
  18504. this.radio.push([]);
  18505. } else {
  18506. this.radio.push("");
  18507. }
  18508. }
  18509. this.dialogVisibleChoice = true;
  18510. // window.topU.postMessage({ tools: "4" }, "*");
  18511. } else if (t == 5) {
  18512. if (this.scoreCount > 0) {
  18513. this.updateCount(this.scoreCount, t);
  18514. } else {
  18515. this.scoreCount++;
  18516. a = this.scoreCount;
  18517. this.toolsCount(a, t);
  18518. }
  18519. this.dialogVisible4 = true;
  18520. // window.topU.postMessage({ tools: "5" }, "*");
  18521. } else if (t == 6) {
  18522. if (this.noteCount > 0) {
  18523. this.updateCount(this.noteCount, t);
  18524. } else {
  18525. this.noteCount++;
  18526. a = this.noteCount;
  18527. this.toolsCount(a, t);
  18528. }
  18529. window.topU.postMessage(
  18530. {
  18531. tools: "6",
  18532. cid: this.id,
  18533. stage: this.courseType,
  18534. task: this.taskCount,
  18535. tool: i,
  18536. },
  18537. "*"
  18538. );
  18539. } else if (t == 7) {
  18540. if (this.mindNetWorkCount > 0) {
  18541. this.updateCount(this.mindNetWorkCount, t);
  18542. } else {
  18543. this.mindNetWorkCount++;
  18544. a = this.mindNetWorkCount;
  18545. this.toolsCount(a, t);
  18546. }
  18547. window.topU.postMessage(
  18548. {
  18549. tools: "7",
  18550. cid: this.id,
  18551. stage: this.courseType,
  18552. task: this.taskCount,
  18553. tool: i,
  18554. },
  18555. "*"
  18556. );
  18557. } else if (t == 16) {
  18558. if (this.workCount > 0) {
  18559. this.updateCount(this.workCount, t);
  18560. } else {
  18561. this.workCount++;
  18562. a = this.workCount;
  18563. this.toolsCount(a, t);
  18564. }
  18565. this.dialogVisible = true;
  18566. } else if (t == 50) {
  18567. if (this.tType == 2) {
  18568. this.$message.error(this.lang.ssNotSupportedForStudents);
  18569. return;
  18570. }
  18571. this.plworkFile = [];
  18572. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18573. if (!this.uploadCid) {
  18574. this.$message.error(this.lang.ssBatchUploadNoClassPermission);
  18575. return;
  18576. }
  18577. // this.uploadCid =
  18578. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18579. // index
  18580. // ].toolChoose[i].uploadJson[0];
  18581. this.selectUploadStudent(2);
  18582. } else if (t == 8) {
  18583. if (this.libraryCount > 0) {
  18584. this.updateCount(this.libraryCount, t);
  18585. } else {
  18586. this.libraryCount++;
  18587. a = this.libraryCount;
  18588. this.toolsCount(a, t);
  18589. }
  18590. window.topU.postMessage({ tools: "8" }, "*");
  18591. } else if (t == 17) {
  18592. if (this.libraryCount > 0) {
  18593. this.updateCount(this.libraryCount, t);
  18594. } else {
  18595. this.libraryCount++;
  18596. a = this.libraryCount;
  18597. this.toolsCount(a, t);
  18598. }
  18599. window.topU.postMessage({ tools: "17" }, "*");
  18600. } else if (t == 18) {
  18601. if (this.trainCount > 0) {
  18602. this.updateCount(this.trainCount, t);
  18603. } else {
  18604. this.trainCount++;
  18605. a = this.trainCount;
  18606. this.toolsCount(a, t);
  18607. }
  18608. window.topU.postMessage({ tools: "18" }, "*");
  18609. } else if (t == 10) {
  18610. if (this.timeCount > 0) {
  18611. this.updateCount(this.timeCount, t);
  18612. } else {
  18613. this.timeCount++;
  18614. a = this.timeCount;
  18615. this.toolsCount(a, t);
  18616. }
  18617. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18618. .taskJson[index].toolChoose[i].preTime
  18619. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18620. .toolChoose[i].preTime
  18621. : "";
  18622. this.timeDialogVisible = true;
  18623. } else if (t == 15) {
  18624. this.answerQ = "";
  18625. this.questionAnswer = "";
  18626. if (this.answerCount > 0) {
  18627. this.updateCount(this.answerCount, t);
  18628. } else {
  18629. this.answerCount++;
  18630. a = this.answerCount;
  18631. this.toolsCount(a, t);
  18632. }
  18633. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18634. .taskJson[index].toolChoose[i].answerQ
  18635. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18636. .toolChoose[i].answerQ
  18637. : "";
  18638. this.answerDialogVisible = true;
  18639. } else if (t == 21) {
  18640. window.topU.postMessage({ tools: "21" }, "*");
  18641. } else if (t == 22) {
  18642. window.topU.postMessage({ tools: "22" }, "*");
  18643. } else if (t == 23) {
  18644. window.topU.postMessage({ tools: "23" }, "*");
  18645. } else if (t == 24) {
  18646. window.topU.postMessage({ tools: "24" }, "*");
  18647. } else if (t == 25) {
  18648. window.topU.postMessage({ tools: "25" }, "*");
  18649. } else if (t == 31) {
  18650. window.topU.postMessage({ tools: "31" }, "*");
  18651. } else if (t == 28) {
  18652. window.topU.postMessage({ tools: "28" }, "*");
  18653. } else if (t == 37) {
  18654. window.topU.postMessage({ tools: "37" }, "*");
  18655. } else if (t == 38) {
  18656. window.topU.postMessage({ tools: "38" }, "*");
  18657. } else if (t == 39) {
  18658. window.topU.postMessage({ tools: "39" }, "*");
  18659. } else if (t == 32) {
  18660. window.topU.postMessage({ tools: "32" }, "*");
  18661. } else if (t == 66) {
  18662. window.topU.postMessage({ tools: "66" }, "*");
  18663. } else if (t == 67) {
  18664. window.topU.postMessage({ tools: "67" }, "*");
  18665. } else if (t == 68) {
  18666. window.topU.postMessage({ tools: "68" }, "*");
  18667. } else if (t == 57) {
  18668. // window.topU.postMessage({ tools: "57" }, "*");
  18669. window.topU.postMessage(
  18670. {
  18671. tools: "57u",
  18672. cid: this.id,
  18673. stage: this.courseType,
  18674. task: this.taskCount,
  18675. tool: i,
  18676. },
  18677. "*"
  18678. );
  18679. } else if (t == 58) {
  18680. window.topU.postMessage({ tools: "58" }, "*");
  18681. } else if (t == 59) {
  18682. window.topU.postMessage({ tools: "59" }, "*");
  18683. } else if (t == 60) {
  18684. window.topU.postMessage({ tools: "60" }, "*");
  18685. } else if (t == 61) {
  18686. window.topU.postMessage({ tools: "61" }, "*");
  18687. } else if (t == 63) {
  18688. window.topU.postMessage({ tools: "63" }, "*");
  18689. } else if (t == 71) {
  18690. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  18691. // this.$message.error("该工具不可使用");
  18692. // return
  18693. // }
  18694. window.topU.postMessage({ tools: "71" }, "*");
  18695. } else if (t == 72) {
  18696. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  18697. .taskJson[index].toolChoose[i].appJson
  18698. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18699. .toolChoose[i].appJson
  18700. : "";
  18701. if(!item || !item.url){
  18702. this.$message.error(this.lang.ssAppConnectionEmpty);
  18703. return;
  18704. }
  18705. if (!document.fullscreenElement) {
  18706. this.enterFullScreen();
  18707. }
  18708. this.$refs.appStoreC.getData(item.url,this.userid)
  18709. // window.topU.postMessage({ tools: "72", data: item }, "*");
  18710. // window.open(item.url, "_blank");
  18711. } else if (t == 69) {
  18712. if (this.worksStudent[i].length) {
  18713. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18714. if (this.userid == this.worksStudent[i][k].userid) {
  18715. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18716. break;
  18717. } else {
  18718. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18719. }
  18720. }
  18721. } else {
  18722. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18723. }
  18724. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18725. .taskJson[index].toolChoose[i].englishList
  18726. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18727. .toolChoose[i].englishList
  18728. : {};
  18729. this.englishToolIndex = i;
  18730. this.myAnList = this.myAnswerList1;
  18731. this.engDialogVisible = true;
  18732. } else if (t == 70) {
  18733. if (this.worksStudent[i].length) {
  18734. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18735. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18736. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18737. break;
  18738. } else {
  18739. this.englishVoiceJsonWork = [];
  18740. }
  18741. }
  18742. } else {
  18743. this.englishVoiceJsonWork = [];
  18744. }
  18745. let englishVoiceJson = {}
  18746. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18747. .taskJson[index].toolChoose[i].englishVoiceJson
  18748. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18749. .toolChoose[i].englishVoiceJson
  18750. : {};
  18751. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18752. this.EnglishVoiceDialog = true;
  18753. } else if (t == 65) {
  18754. if (this.tType == 2) {
  18755. this.$message.error(this.lang.ssNotSupportedForStudents);
  18756. return;
  18757. }
  18758. this.uploadCid = this.tcid;
  18759. if (!this.uploadCid) {
  18760. this.$message.error(this.lang.ssNoClassPermission);
  18761. return;
  18762. }
  18763. this.selectPickStudent();
  18764. } else if (t == 26) {
  18765. window.topU.postMessage(
  18766. {
  18767. tools: "26",
  18768. cid: this.id,
  18769. stage: this.courseType,
  18770. task: this.taskCount,
  18771. tool: i,
  18772. },
  18773. "*"
  18774. );
  18775. } else if (t == 40) {
  18776. if (this.evalCount > 0) {
  18777. this.updateCount(this.evalCount, t);
  18778. } else {
  18779. this.evalCount++;
  18780. a = this.evalCount;
  18781. this.toolsCount(a, t);
  18782. }
  18783. this.eScore = { eBzText: "", eStar: [] };
  18784. if (this.worksStudent[i].length) {
  18785. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18786. if (this.userid == this.worksStudent[i][k].userid) {
  18787. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18788. this.rateJson =
  18789. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18790. index
  18791. ].toolChoose[i].rateJson;
  18792. break;
  18793. } else {
  18794. this.rateJson =
  18795. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18796. index
  18797. ].toolChoose[i].rateJson;
  18798. }
  18799. }
  18800. } else {
  18801. this.rateJson =
  18802. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18803. index
  18804. ].toolChoose[i].rateJson;
  18805. }
  18806. this.isStar = false;
  18807. this.studentEvalDialogVisible = true;
  18808. } else if (t == 41) {
  18809. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18810. .taskJson[index].toolChoose[i].selectJson
  18811. ? JSON.parse(
  18812. JSON.stringify(
  18813. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18814. index
  18815. ].toolChoose[i].selectJson
  18816. )
  18817. )
  18818. : { url: "", select: [], answer: [] };
  18819. if (this.worksStudent[i].length) {
  18820. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18821. if (this.userid == this.worksStudent[i][k].userid) {
  18822. var a = this.worksStudent[i][k].works.split(",");
  18823. for (var ki = 0; ki < a.length; ki++) {
  18824. a[ki] = parseInt(a[ki]);
  18825. }
  18826. this.selectAnswer = {
  18827. answer: a,
  18828. stu: this.worksStudent[i][k].sName,
  18829. };
  18830. break;
  18831. } else {
  18832. this.selectAnswer = { answer: [], stu: "" };
  18833. }
  18834. }
  18835. } else {
  18836. this.selectAnswer = { answer: [], stu: "" };
  18837. }
  18838. this.isSelect = false;
  18839. this.dialogVisibleSelect = true;
  18840. } else if (t == 44) {
  18841. window.topU.postMessage({ tools: "44" }, "*");
  18842. } else if (t == 47) {
  18843. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18844. .taskJson[index].toolChoose[i].sentenceList
  18845. ? JSON.parse(
  18846. JSON.stringify(
  18847. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18848. index
  18849. ].toolChoose[i].sentenceList
  18850. )
  18851. )
  18852. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18853. for (var q = 0; q < this.sentenceList.length; q++) {
  18854. this.sentenceList[q].chooseSenList = [];
  18855. this.sentenceList[q].addChangeSen = [];
  18856. this.sentenceList[q].addChangeSen = JSON.parse(
  18857. JSON.stringify(this.sentenceList[q].addSentence)
  18858. );
  18859. this.sentenceList[q].chooseSenList.length =
  18860. this.sentenceList[q].rightAnswer.length;
  18861. }
  18862. this.dialogVisibleSentence = true;
  18863. } else if (t == 48) {
  18864. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18865. .taskJson[index].toolChoose[i].tableJson
  18866. ? JSON.parse(
  18867. JSON.stringify(
  18868. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18869. index
  18870. ].toolChoose[i].tableJson
  18871. )
  18872. )
  18873. : { text: "" };
  18874. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18875. if (this.worksStudent[i].length) {
  18876. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18877. if (this.userid == this.worksStudent[i][k].userid) {
  18878. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18879. break;
  18880. }
  18881. }
  18882. }
  18883. this.dialogVisibleTable = 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. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18896. if (this.worksStudent[i].length) {
  18897. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18898. if (this.userid == this.worksStudent[i][k].userid) {
  18899. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18900. break;
  18901. }
  18902. }
  18903. }
  18904. this.dialogVisibleWord = true;
  18905. } else if (t == 49) {
  18906. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18907. return
  18908. }
  18909. this.groupJson =
  18910. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18911. index
  18912. ].toolChoose[i].groupJson;
  18913. this.islock = this.groupJson.islock == 1 ? true : false;
  18914. this.dialogVisibleGroup = true;
  18915. } else if (t == 62) {
  18916. this.videoType = 0;
  18917. this.videoJson = {};
  18918. this.videoJson =
  18919. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18920. index
  18921. ].toolChoose[i].videoJson;
  18922. this.dialogVisibleVideo = true;
  18923. }
  18924. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  18925. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18926. },
  18927. teacherWorkSubmit(t, i, index, s) {
  18928. console.log('t',t);
  18929. if(t == 72) return
  18930. this.sStudent = s;
  18931. this.toolindex = i;
  18932. this.sTool = t;
  18933. if (this.tType !== "1" && this.tType !== "4") {
  18934. return;
  18935. }
  18936. if (t == 16 || t == 32 || t == 50) {
  18937. this.dialogVisibleWorks = true;
  18938. } else if (t == 15) {
  18939. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18940. .taskJson[index].toolChoose[i].answerQ
  18941. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18942. .toolChoose[i].answerQ
  18943. : "";
  18944. this.questionAnswer = "";
  18945. this.answerDialogVisibleTeacher = true; //问答
  18946. } else if (t == 52) {
  18947. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18948. .taskJson[index].toolChoose[i].wordJson
  18949. ? JSON.parse(
  18950. JSON.stringify(
  18951. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18952. index
  18953. ].toolChoose[i].wordJson
  18954. )
  18955. )
  18956. : { text: "" };
  18957. if (this.worksStudent[i].length) {
  18958. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18959. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18960. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18961. break;
  18962. }
  18963. }
  18964. }
  18965. this.dialogVisibleWordTeacher = true; //文档
  18966. } else if (t == 4) {
  18967. this.radio = [];
  18968. this.noteName = "";
  18969. this.isAnswer = false;
  18970. if (this.askCount > 0) {
  18971. this.updateCount(this.askCount, t);
  18972. } else {
  18973. this.askCount++;
  18974. a = this.askCount;
  18975. this.toolsCount(a, t);
  18976. }
  18977. if (!this.dialogVisible2) {
  18978. this.askJson.askJson =
  18979. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18980. index
  18981. ].toolChoose[i].askJson;
  18982. this.askJson.askTitle =
  18983. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18984. index
  18985. ].toolChoose[i].askTitle;
  18986. this.askJson.askCount =
  18987. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18988. index
  18989. ].toolChoose[i].askCount;
  18990. } else {
  18991. this.askJson.askJson = this.chapTools.askJson.askJson;
  18992. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18993. this.askJson.askCount = this.chapTools.askJson.askCount;
  18994. }
  18995. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18996. if (this.askJson.askJson[k].type == "2") {
  18997. this.radio.push([]);
  18998. } else {
  18999. this.radio.push("");
  19000. }
  19001. }
  19002. this.dialogVisible5Teacher = true;
  19003. } else if (t == 45) {
  19004. this.noteName = "";
  19005. this.radio = [];
  19006. this.isAnswer = false;
  19007. if (this.askCount > 0) {
  19008. this.updateCount(this.askCount, t);
  19009. } else {
  19010. this.askCount++;
  19011. a = this.askCount;
  19012. this.toolsCount(a, t);
  19013. }
  19014. this.testJson =
  19015. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19016. index
  19017. ].toolChoose[i].testJson;
  19018. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19019. if (this.testJson.testJson[k].type == "2") {
  19020. this.radio.push([]);
  19021. } else {
  19022. this.radio.push("");
  19023. }
  19024. }
  19025. this.dialogVisibleChoiceTeacher = true;
  19026. } else if (t == 41) {
  19027. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19028. .taskJson[index].toolChoose[i].selectJson
  19029. ? JSON.parse(
  19030. JSON.stringify(
  19031. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19032. index
  19033. ].toolChoose[i].selectJson
  19034. )
  19035. )
  19036. : { url: "", select: [], answer: [] };
  19037. if (this.worksStudent[i].length) {
  19038. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19039. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19040. var a = this.worksStudent[i][k].works.split(",");
  19041. for (var ki = 0; ki < a.length; ki++) {
  19042. a[ki] = parseInt(a[ki]);
  19043. }
  19044. this.selectAnswer = {
  19045. answer: a,
  19046. stu: this.worksStudent[i][k].sName,
  19047. };
  19048. break;
  19049. } else {
  19050. this.selectAnswer = { answer: [], stu: "" };
  19051. }
  19052. }
  19053. } else {
  19054. this.selectAnswer = { answer: [], stu: "" };
  19055. }
  19056. this.isSelect = false;
  19057. this.dialogVisibleSelectTeacher = true;
  19058. } else if (t == 47) {
  19059. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19060. .taskJson[index].toolChoose[i].sentenceList
  19061. ? JSON.parse(
  19062. JSON.stringify(
  19063. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19064. index
  19065. ].toolChoose[i].sentenceList
  19066. )
  19067. )
  19068. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19069. for (var q = 0; q < this.sentenceList.length; q++) {
  19070. this.sentenceList[q].chooseSenList = [];
  19071. this.sentenceList[q].addChangeSen = [];
  19072. this.sentenceList[q].addChangeSen = JSON.parse(
  19073. JSON.stringify(this.sentenceList[q].addSentence)
  19074. );
  19075. this.sentenceList[q].chooseSenList.length =
  19076. this.sentenceList[q].rightAnswer.length;
  19077. }
  19078. this.dialogVisibleSentenceTeacher = true;
  19079. } else if (t == 48) {
  19080. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19081. .taskJson[index].toolChoose[i].tableJson
  19082. ? JSON.parse(
  19083. JSON.stringify(
  19084. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19085. index
  19086. ].toolChoose[i].tableJson
  19087. )
  19088. )
  19089. : { text: "" };
  19090. if (this.worksStudent[i].length) {
  19091. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19092. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19093. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19094. break;
  19095. }
  19096. }
  19097. }
  19098. this.dialogVisibleTableTeacher = true;
  19099. } else if (t == 40) {
  19100. if (this.evalCount > 0) {
  19101. this.updateCount(this.evalCount, t);
  19102. } else {
  19103. this.evalCount++;
  19104. a = this.evalCount;
  19105. this.toolsCount(a, t);
  19106. }
  19107. this.eScore = { eBzText: "", eStar: [] };
  19108. if (this.worksStudent[i].length) {
  19109. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19110. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19111. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19112. this.rateJson =
  19113. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19114. index
  19115. ].toolChoose[i].rateJson;
  19116. break;
  19117. } else {
  19118. this.rateJson =
  19119. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19120. index
  19121. ].toolChoose[i].rateJson;
  19122. }
  19123. }
  19124. } else {
  19125. this.rateJson =
  19126. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19127. index
  19128. ].toolChoose[i].rateJson;
  19129. }
  19130. this.isStar = false;
  19131. this.studentEvalDialogVisibleTeacher = true;
  19132. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19133. window.topU.postMessage(
  19134. {
  19135. tools: t + "teacher",
  19136. cid: this.id,
  19137. stage: this.courseType,
  19138. task: this.taskCount,
  19139. tool: i,
  19140. student: this.sStudent,
  19141. },
  19142. "*"
  19143. );
  19144. }else if (t == 72) {
  19145. if (!document.fullscreenElement) {
  19146. this.enterFullScreen();
  19147. }
  19148. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19149. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19150. }
  19151. },
  19152. openCocoPi(tool, i, uid, uname) {
  19153. let student = {
  19154. userid: uid,
  19155. student: uname,
  19156. };
  19157. if (tool == 57) {
  19158. window.topU.postMessage(
  19159. {
  19160. tools: tool + "teacher",
  19161. cid: this.id,
  19162. stage: this.courseType,
  19163. task: this.taskCount,
  19164. tool: i,
  19165. student: student,
  19166. },
  19167. "*"
  19168. );
  19169. }
  19170. },
  19171. setRightAnswer(s, i, j) {
  19172. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19173. if (
  19174. this.sentenceList[i].chooseSenList[q] == undefined ||
  19175. this.sentenceList[i].chooseSenList[q] == ""
  19176. ) {
  19177. this.sentenceList[i].chooseSenList[q] = s;
  19178. this.sentenceList[i].addChangeSen[j] = "";
  19179. break;
  19180. }
  19181. }
  19182. this.$forceUpdate();
  19183. },
  19184. returnCard(r, i, j) {
  19185. var a = this.sentenceList[i].addSentence.indexOf(r);
  19186. this.sentenceList[i].chooseSenList[j] = "";
  19187. this.sentenceList[i].addChangeSen[a] = r;
  19188. this.$forceUpdate();
  19189. },
  19190. // addSentenceTool() {
  19191. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19192. // this.taskCount
  19193. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19194. // this.sentenceList = [
  19195. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19196. // ];
  19197. // this.dialogVisibleSentence = false;
  19198. // },
  19199. toolsCount(a, t) {
  19200. let params = {
  19201. cid: this.id,
  19202. chid: this.courseType,
  19203. uid: this.userid,
  19204. tid: t,
  19205. count: a,
  19206. };
  19207. this.ajax
  19208. .get(this.$store.state.api + "insertToolsCount", params)
  19209. .then((res) => {
  19210. this.selectCount();
  19211. })
  19212. .catch((err) => {
  19213. console.error(err);
  19214. });
  19215. },
  19216. updateCount(c, t) {
  19217. c++;
  19218. let params = {
  19219. cid: this.id,
  19220. chid: this.courseType,
  19221. uid: this.userid,
  19222. tid: t,
  19223. count: c,
  19224. };
  19225. this.ajax
  19226. .get(this.$store.state.api + "updateToolsCount", params)
  19227. .then((res) => {
  19228. this.selectCount();
  19229. })
  19230. .catch((err) => {
  19231. console.error(err);
  19232. });
  19233. },
  19234. checkEva() {
  19235. if (this.evalua != "") {
  19236. for (var i = 0; i < this.evaJuri.length; i++) {
  19237. if (this.evalua == this.evaJuri[i].id) {
  19238. this.eTitle = this.evaJuri[i].title;
  19239. this.eJson = JSON.parse(this.evaJuri[i].content);
  19240. }
  19241. }
  19242. this.$forceUpdate();
  19243. setTimeout(() => {
  19244. this.setMindData();
  19245. }, 0);
  19246. }
  19247. },
  19248. selectEva() {
  19249. let params = {
  19250. oid: this.oid,
  19251. };
  19252. this.ajax
  19253. .get(this.$store.state.api + "selectAllEvaluation", params)
  19254. .then((res) => {
  19255. this.evaJuri = res.data[0];
  19256. })
  19257. .catch((err) => {
  19258. console.error(err);
  19259. });
  19260. },
  19261. setMindData() {
  19262. this.data.data = [];
  19263. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19264. let _eJson = Object.keys(this.eJson);
  19265. let _e = this.eJson;
  19266. for (let i = 0; i < _eJson.length; i++) {
  19267. let element = _e[_eJson[i]];
  19268. this.data.data.push({
  19269. id: element.id,
  19270. parentid: "root",
  19271. topic: element.name,
  19272. });
  19273. let _eJsonc = Object.keys(element.child);
  19274. let _e2 = element.child;
  19275. for (let j = 0; j < _eJsonc.length; j++) {
  19276. let _ec = _e2[_eJsonc[j]];
  19277. this.data.data.push({
  19278. id: _ec.id,
  19279. parentid: element.id,
  19280. topic: _ec.name,
  19281. });
  19282. let _eJsonz = Object.keys(_ec.child);
  19283. let _e3 = _ec.child;
  19284. for (let z = 0; z < _eJsonz.length; z++) {
  19285. let _ez = _e3[_eJsonz[z]];
  19286. this.data.data.push({
  19287. id: _ez.id,
  19288. parentid: _ec.id,
  19289. topic: _ez.name,
  19290. });
  19291. }
  19292. }
  19293. }
  19294. this.$forceUpdate();
  19295. },
  19296. checkFileFull(type, url) {
  19297. this.fullDialogVisible = true;
  19298. this.fulltype = type;
  19299. this.fullUrl = url;
  19300. },
  19301. async checkFileFull1(t, f) {
  19302. this.fullDialogVisible = true;
  19303. if (t == 6) {
  19304. this.fulltype = 1;
  19305. console.log('checkFileFull1',f);
  19306. this.fullUrl = JSON.parse(JSON.stringify(f));
  19307. } else if (t == 8) {
  19308. this.fulltype = 2;
  19309. this.fullUrl = f.url;
  19310. } else if (t == 16) {
  19311. this.fulltype = 16;
  19312. this.fullUrl = f.url;
  19313. } else if (t == 15) {
  19314. this.fulltype = 4;
  19315. this.fullUrl = f.url;
  19316. } else if (
  19317. t == 3 &&
  19318. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19319. "PDF"
  19320. ) {
  19321. this.fulltype = 3;
  19322. this.fullUrl = f.url;
  19323. } else if (t == 3) {
  19324. this.fulltype = 2;
  19325. let _uuurl = await this.checkLink(f.url);
  19326. console.log(_uuurl)
  19327. this.fullUrl =
  19328. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19329. }
  19330. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19331. },
  19332. openSname(n, id, i, uid) {
  19333. this.snameWid = id;
  19334. this.worksSName = n;
  19335. this.worksSid = uid == n ? "" : uid;
  19336. this.toolindex = i;
  19337. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19338. if (!this.uploadCid) {
  19339. this.$message.error(this.lang.ssBatchUploadNoClassPermission);
  19340. return;
  19341. }
  19342. this.selectUploadStudent(1);
  19343. },
  19344. updateName() {
  19345. let params = {
  19346. n: this.worksSName,
  19347. cid: this.snameWid,
  19348. };
  19349. this.ajax
  19350. .get(this.$store.state.api + "updateCourseWorksName", params)
  19351. .then((res) => {
  19352. this.$message({
  19353. message: this.lang.ssModifySuccess,
  19354. type: "success",
  19355. });
  19356. this.dialogVisibleSname = false;
  19357. this.getCourseDetail(2);
  19358. this.snameWid = "";
  19359. this.worksSName = "";
  19360. })
  19361. .catch((err) => {
  19362. console.error(err);
  19363. });
  19364. },
  19365. downloadimg(img,val){
  19366. console.log('img',img)
  19367. fetch(img)
  19368. .then((response) => {
  19369. if (!response.ok) throw new Error('download failed')
  19370. return response.blob()
  19371. })
  19372. .then((blob) => {
  19373. const blobUrl = URL.createObjectURL(blob)
  19374. const a = document.createElement('a')
  19375. a.href = blobUrl
  19376. a.download = val + '.jpg'
  19377. document.body.appendChild(a)
  19378. a.click()
  19379. document.body.removeChild(a)
  19380. URL.revokeObjectURL(blobUrl)
  19381. })
  19382. .catch(() => {
  19383. fallbackDownload()
  19384. })
  19385. },
  19386. downloadFile2(f) {
  19387. // const loading = this.$loading.service({
  19388. // background: "rgba(255, 255, 255, 0.7)",
  19389. // target: document.body,
  19390. // text: "文件加载中...",
  19391. // });
  19392. // let url2 = f.url;
  19393. // let _url2 = "";
  19394. // if (
  19395. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19396. // ) {
  19397. // _url2 = url2.split(
  19398. // "https://view.officeapps.live.com/op/view.aspx?src="
  19399. // )[1];
  19400. // } else {
  19401. // _url2 = url2;
  19402. // }
  19403. // let params = {
  19404. // url: _url2,
  19405. // name: f.name,
  19406. // };
  19407. // this.ajax
  19408. // .get(this.$store.state.api + "download", params)
  19409. // .then((res) => {
  19410. // loading.close();
  19411. // let content = res.data.data.data;
  19412. // let ab = new ArrayBuffer(content.length);
  19413. // let view = new Uint8Array(ab);
  19414. // for (var i = 0; i < content.length; ++i) {
  19415. // view[i] = content[i];
  19416. // }
  19417. // let elink = document.createElement("a");
  19418. // elink.download = f.name;
  19419. // elink.style.display = "none";
  19420. // let blob = new Blob([ab], {
  19421. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19422. // });
  19423. // elink.href = URL.createObjectURL(blob);
  19424. // document.body.appendChild(elink);
  19425. // elink.click();
  19426. // document.body.removeChild(elink);
  19427. // })
  19428. // .catch((err) => {
  19429. // loading.close();
  19430. // console.error(err);
  19431. // });
  19432. var credentials = {
  19433. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19434. secretAccessKey: "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",
  19435. }; //秘钥形式的登录上传
  19436. window.AWS.config.update(credentials);
  19437. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19438. let url2 = f.url;
  19439. let _url2 = "";
  19440. if (
  19441. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19442. ) {
  19443. _url2 = url2.split(
  19444. "https://view.officeapps.live.com/op/view.aspx?src="
  19445. )[1];
  19446. } else {
  19447. _url2 = url2;
  19448. }
  19449. let _this = this;
  19450. _this.downLoading = true
  19451. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19452. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19453. var params = {
  19454. Bucket: "ccrb",
  19455. Key: name
  19456. };
  19457. s3.getObject(params, function (err, data) {
  19458. _this.downLoading = false
  19459. if (err) console.log(err, err.stack); // an error occurred
  19460. else {
  19461. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19462. let a = document.createElement("a");
  19463. a.name = f.name;
  19464. a.href = url;
  19465. a.download = f.name;
  19466. a.click();
  19467. console.log(data);
  19468. } // sxuccessful response
  19469. });
  19470. return;
  19471. // let url = f.url;
  19472. // let _url = "";
  19473. // if (
  19474. // url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19475. // ) {
  19476. // _url = url.split(
  19477. // "https://view.officeapps.live.com/op/view.aspx?src="
  19478. // )[1];
  19479. // } else {
  19480. // _url = url;
  19481. // }
  19482. // _this.downLoading = true
  19483. // // const loading = _this.$loading.service({
  19484. // // background: "rgba(255, 255, 255, 0.7)",
  19485. // // target: document.body,
  19486. // // text: "文件加载中...",
  19487. // // });
  19488. // let x = new XMLHttpRequest();
  19489. // x.open("GET", _url, true);
  19490. // x.responseType = "blob";
  19491. // x.onload = function () {
  19492. // _this.downLoading = false
  19493. // // loading.close();
  19494. // let url = window.URL.createObjectURL(new Blob([x.response]));
  19495. // let a = document.createElement("a");
  19496. // a.name = f.name;
  19497. // a.href = url;
  19498. // a.download = f.name;
  19499. // a.click();
  19500. // };
  19501. // x.send();
  19502. },
  19503. downloadFile(url,uid) {
  19504. if (this.tType == 1 || this.userid == uid) {
  19505. var credentials = {
  19506. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19507. secretAccessKey: "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",
  19508. }; //秘钥形式的登录上传
  19509. window.AWS.config.update(credentials);
  19510. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19511. let url2 = url;
  19512. let _url2 = "";
  19513. if (
  19514. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19515. ) {
  19516. _url2 = url2.split(
  19517. "https://view.officeapps.live.com/op/view.aspx?src="
  19518. )[1];
  19519. } else {
  19520. _url2 = url2;
  19521. }
  19522. const loading2 = this.$loading.service({
  19523. background: "rgba(255, 255, 255, 0.7)",
  19524. target: document.body,
  19525. text: this.lang.ssFileLoading,
  19526. });
  19527. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19528. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19529. var params = {
  19530. Bucket: "ccrb",
  19531. Key: name
  19532. };
  19533. s3.getObject(params, function (err, data) {
  19534. loading2.close();
  19535. if (err) console.log(err, err.stack); // an error occurred
  19536. else {
  19537. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19538. let a = document.createElement("a");
  19539. a.name = name;
  19540. a.href = url;
  19541. a.download = name;
  19542. a.click();
  19543. console.log(data);
  19544. } // sxuccessful response
  19545. });
  19546. }
  19547. return;
  19548. // let _this = this;
  19549. // let _url = "";
  19550. // if (
  19551. // url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19552. // ) {
  19553. // _url = url.split(
  19554. // "https://view.officeapps.live.com/op/view.aspx?src="
  19555. // )[1];
  19556. // } else {
  19557. // _url = url;
  19558. // }
  19559. // const x = new XMLHttpRequest();
  19560. // x.open("GET", _url, true);
  19561. // x.responseType = "blob";
  19562. // // this.downLoading = true
  19563. // const loading = _this.$loading.service({
  19564. // background: "rgba(255, 255, 255, 0.7)",
  19565. // target: document.body,
  19566. // text: "文件加载中...",
  19567. // });
  19568. // // _this.$message.success("文件下载中...");
  19569. // x.onload = function (e) {
  19570. // this.downLoading = false
  19571. // loading.close();
  19572. // let content = x.response;
  19573. // let elink = document.createElement("a");
  19574. // elink.download = decodeURI(
  19575. // _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19576. // );
  19577. // elink.style.display = "none";
  19578. // let blob = new Blob([content]);
  19579. // elink.href = URL.createObjectURL(blob);
  19580. // document.body.appendChild(elink);
  19581. // elink.click();
  19582. // document.body.removeChild(elink);
  19583. // };
  19584. // x.send();
  19585. },
  19586. openLine(url) {
  19587. window.open(url);
  19588. },
  19589. resize() {
  19590. if (document.getElementsByClassName("box_course").length) {
  19591. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19592. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19593. if (this.showType == 2 || this.showType == 3) {
  19594. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  19595. document.getElementsByClassName("navBox")[0].style.height =
  19596. a - 40 + 0+ "px";
  19597. }
  19598. } else {
  19599. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  19600. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  19601. }
  19602. }
  19603. }
  19604. this.Stbodywidth =
  19605. document.getElementsByClassName("student_body").length &&
  19606. document.getElementsByClassName("student_body")[0].offsetWidth;
  19607. },
  19608. closeDraw() {
  19609. this.bg = null;
  19610. this.drawShow = false;
  19611. },
  19612. showPicturePaint(url) {
  19613. let params = {
  19614. img: url,
  19615. };
  19616. this.ajax
  19617. .get(this.$store.state.api + "imgToBase64", params)
  19618. .then((res) => {
  19619. this.drawShow = true;
  19620. this.bg = res.data[0].img;
  19621. })
  19622. .catch((err) => {
  19623. console.error(err);
  19624. });
  19625. },
  19626. addImgDraw(base64) {
  19627. let file = { name: this.lang.ssAnnotationImage };
  19628. let img = this.dataUrlToFile(base64, file);
  19629. this.beforeUpload1(img, 5);
  19630. },
  19631. addImgDrawImG(url) {
  19632. // console.log(url);
  19633. let params = [
  19634. {
  19635. wid: this.commentDetail.wid,
  19636. img: url,
  19637. },
  19638. ];
  19639. this.ajax
  19640. .post(this.$store.state.api + "updateCourseWorks", params)
  19641. .then((res) => {
  19642. this.$message({
  19643. message: this.lang.ssSubmitSuccess,
  19644. type: "success",
  19645. });
  19646. this.drawShow = false;
  19647. this.bg = "";
  19648. this.selectSWorks();
  19649. this.selectStudent();
  19650. })
  19651. .catch((err) => {
  19652. this.$message.error(this.lang.ssSubmitFailed);
  19653. console.error(err);
  19654. });
  19655. },
  19656. deletePicturePaint() {
  19657. this.$confirm(this.lang.ssConfirmDeleteAnnotation, this.lang.ssPrompt, {
  19658. confirmButtonText: this.lang.ssConfirm,
  19659. cancelButtonText: this.lang.ssCancel,
  19660. type: "warning",
  19661. })
  19662. .then(() => {
  19663. let params = [
  19664. {
  19665. wid: this.commentDetail.wid,
  19666. img: "",
  19667. },
  19668. ];
  19669. this.ajax
  19670. .post(this.$store.state.api + "updateCourseWorks", params)
  19671. .then((res) => {
  19672. this.$message({
  19673. message: this.lang.ssDeleteSuccess,
  19674. type: "success",
  19675. });
  19676. this.selectSWorks();
  19677. this.selectStudent();
  19678. })
  19679. .catch((err) => {
  19680. this.$message.error(this.lang.ssDeleteFailed);
  19681. console.error(err);
  19682. });
  19683. })
  19684. .catch(() => {});
  19685. },
  19686. getAudioVideo(constraintsData) {
  19687. if (navigator.mediaDevices === undefined) {
  19688. navigator.mediaDevices = {};
  19689. }
  19690. if (navigator.mediaDevices.getUserMedia === undefined) {
  19691. navigator.mediaDevices.getUserMedia = function (constraints) {
  19692. // 首先,如果有getUserMedia的话,就获得它
  19693. var getUserMedia =
  19694. navigator.getUserMedia ||
  19695. navigator.webkitGetUserMedia ||
  19696. navigator.mozGetUserMedia ||
  19697. navigator.msGetUserMedia;
  19698. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19699. if (!getUserMedia) {
  19700. return Promise.reject({ code: 404 });
  19701. }
  19702. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19703. return new Promise(function (resolve, reject) {
  19704. getUserMedia.call(navigator, constraints, resolve, reject);
  19705. });
  19706. };
  19707. }
  19708. return navigator.mediaDevices.getUserMedia(constraintsData);
  19709. },
  19710. /**
  19711. * 开始录制
  19712. */
  19713. startRecording(callback) {
  19714. let _function = (screenStream) => {
  19715. this.addStreamStopListener(screenStream, () => {
  19716. console.log("流停止监听");
  19717. this.stopRecording();
  19718. this.$emit("streamStop", {});
  19719. // this.stopRecording();
  19720. });
  19721. var options = {
  19722. type: "video",
  19723. mimeType: "video/webm",
  19724. disableLogs: false,
  19725. getNativeBlob: false, // enable it for longer recordings
  19726. ignoreMutedMedia: false,
  19727. };
  19728. // this.video.srcObject = screenStream;
  19729. this.recorder = RecordRTC(screenStream, options);
  19730. this.recorder.startRecording();
  19731. this.recorder.screen = screenStream;
  19732. this.videoStart = true;
  19733. // callback(true);
  19734. };
  19735. this.getAudioVideo({ audio: true })
  19736. .then((res) => {
  19737. this.captureScreen(_function, true);
  19738. console.log("已点击允许,开启成功");
  19739. })
  19740. .catch((err) => {
  19741. // console.log('浏览器不支持,请更换浏览器')
  19742. // } else {
  19743. this.captureScreen(_function, false);
  19744. console.log("请检查是否存在麦克风");
  19745. });
  19746. },
  19747. /**
  19748. * 停止录制
  19749. */
  19750. stopRecording(callback) {
  19751. this.recorder.stopRecording(() => {
  19752. // this.video.src = this.video.srcObject = null;
  19753. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19754. const url = URL.createObjectURL(this.recorder.getBlob());
  19755. const a = document.createElement("a"); //this.fileName+
  19756. let videoFile = new File(
  19757. [this.recorder.getBlob()],
  19758. this.courseDetail.title + this.lang.ssScreenRecording + ".mp4",
  19759. {
  19760. type: "video/mp4",
  19761. }
  19762. );
  19763. let downloadUrl = URL.createObjectURL(videoFile);
  19764. if(this.$refs.classRoomHelperRef){
  19765. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19766. }
  19767. document.body.appendChild(a);
  19768. a.style.display = "none";
  19769. a.href = url;
  19770. a.download = this.courseDetail.title + this.lang.ssScreenRecording + ".mp4"; //this.fileName +
  19771. a.click();
  19772. this.recorder.screen.stop();
  19773. this.recorder.destroy();
  19774. this.recorder = null;
  19775. this.videoStart = false;
  19776. // callback(false);
  19777. });
  19778. },
  19779. //初始化
  19780. captureScreen(callback, type) {
  19781. if (navigator.getDisplayMedia) {
  19782. //录制结束,文件下载
  19783. navigator
  19784. .getDisplayMedia({
  19785. video: true,
  19786. })
  19787. .then((screenStream) => {
  19788. if (type) {
  19789. navigator.mediaDevices
  19790. .getUserMedia({ audio: true })
  19791. .then((mic) => {
  19792. screenStream.addTrack(mic.getTracks()[0]);
  19793. callback(screenStream);
  19794. });
  19795. } else {
  19796. callback(screenStream);
  19797. }
  19798. })
  19799. .catch(function (error) {
  19800. console.log("error", error);
  19801. });
  19802. } else if (navigator.mediaDevices.getDisplayMedia) {
  19803. navigator.mediaDevices
  19804. .getDisplayMedia({
  19805. video: true,
  19806. })
  19807. .then((screenStream) => {
  19808. if (type) {
  19809. navigator.mediaDevices
  19810. .getUserMedia({ audio: true })
  19811. .then((mic) => {
  19812. screenStream.addTrack(mic.getTracks()[0]);
  19813. callback(screenStream);
  19814. });
  19815. } else {
  19816. callback(screenStream);
  19817. }
  19818. })
  19819. .catch(function (error) {
  19820. console.log("error", error);
  19821. });
  19822. } else {
  19823. var error = "getDisplayMedia API are not supported in this browser.";
  19824. console.log("error", error);
  19825. alert(error);
  19826. }
  19827. },
  19828. //流监听
  19829. addStreamStopListener(stream, callback) {
  19830. stream.addEventListener(
  19831. "ended",
  19832. function () {
  19833. callback();
  19834. callback = function () {};
  19835. },
  19836. false
  19837. );
  19838. stream.addEventListener(
  19839. "inactive",
  19840. function () {
  19841. callback();
  19842. callback = function () {};
  19843. },
  19844. false
  19845. );
  19846. stream.getTracks().forEach(function (track) {
  19847. track.addEventListener(
  19848. "ended",
  19849. function () {
  19850. callback();
  19851. callback = function () {};
  19852. },
  19853. false
  19854. );
  19855. track.addEventListener(
  19856. "inactive",
  19857. function () {
  19858. callback();
  19859. callback = function () {};
  19860. },
  19861. false
  19862. );
  19863. });
  19864. },
  19865. updateGroup() {
  19866. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19867. this.dialogVisibleGroup2 = true;
  19868. },
  19869. numberPan() {
  19870. if (
  19871. /[^\d]/.test(this.groupJson.number) ||
  19872. this.groupJson.number < 2 ||
  19873. this.groupJson.number > 10
  19874. ) {
  19875. this.$message.error(this.lang.ssEnterNumber2To10);
  19876. this.groupJson.number = "";
  19877. }
  19878. },
  19879. updateGroupJson() {
  19880. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19881. if (
  19882. this.groupStudentUid[this.toolindex][i].length >
  19883. this.groupJson2.number
  19884. ) {
  19885. this.$message.error(this.lang.ssGroupLargerThanSet);
  19886. return;
  19887. }
  19888. }
  19889. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19890. this.islock = this.groupJson.islock == 1 ? true : false;
  19891. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19892. this.taskCount
  19893. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19894. let params = [
  19895. {
  19896. cid: this.id,
  19897. chapters: JSON.stringify(this.chapInfoList),
  19898. uid: this.userid,
  19899. unitIndex: this.courseType,
  19900. },
  19901. ];
  19902. this.ajax
  19903. .post(this.$store.state.api + "updateWorkNew4", params)
  19904. .then((res) => {
  19905. this.$message.success(this.lang.ssSettingSuccess);
  19906. this.getCourseDetail(2);
  19907. this.dialogVisibleGroup2 = false;
  19908. this.groupJson2 = {};
  19909. this.$forceUpdate();
  19910. })
  19911. .catch((err) => {
  19912. this.$message.error(this.lang.ssNetworkPoor);
  19913. console.error(err);
  19914. });
  19915. },
  19916. lockChair() {
  19917. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19918. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19919. this.updateGroupJson();
  19920. },
  19921. selectGroup(index) {
  19922. this.getCourseDetail(2, index);
  19923. },
  19924. joinGroup(index) {
  19925. if (this.groupJson.islock == 2) {
  19926. this.$message.error(this.lang.ssPositionLockedCannotJoin);
  19927. return;
  19928. }
  19929. if (
  19930. this.groupStudent[this.toolindex][index].length >
  19931. this.groupJson.number ||
  19932. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19933. ) {
  19934. this.$message.error(this.lang.ssPositionFullCannotJoin);
  19935. return;
  19936. }
  19937. let params = [
  19938. {
  19939. cid: this.id,
  19940. stage: this.courseType,
  19941. task: this.taskCount,
  19942. tool: this.toolindex,
  19943. g: index,
  19944. uid: this.userid,
  19945. },
  19946. ];
  19947. this.ajax
  19948. .post(this.$store.state.api + "joinGroup", params)
  19949. .then((res) => {
  19950. this.$message.success(this.lang.ssJoinSuccess);
  19951. this.getCourseDetail(2);
  19952. })
  19953. .catch((err) => {
  19954. this.$message.error(this.lang.ssNetworkPoor);
  19955. console.error(err);
  19956. });
  19957. },
  19958. exitGroup(id) {
  19959. if (this.groupJson.islock == 2) {
  19960. this.$message.error(this.lang.ssPositionLockedCannotExit);
  19961. return;
  19962. }
  19963. let params = [
  19964. {
  19965. gid: id,
  19966. },
  19967. ];
  19968. this.ajax
  19969. .post(this.$store.state.api + "exitGroup", params)
  19970. .then((res) => {
  19971. this.$message.success(this.lang.ssExitSuccess);
  19972. this.getCourseDetail(2);
  19973. })
  19974. .catch((err) => {
  19975. this.$message.error(this.lang.ssNetworkPoor);
  19976. console.error(err);
  19977. });
  19978. },
  19979. groupUpload(index, task, gindex) {
  19980. this.taskCount = task;
  19981. this.toolindex = index;
  19982. this.groupIndex = gindex;
  19983. this.dialogVisibleGroupWork = true;
  19984. },
  19985. updateGroupChair(user) {
  19986. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19987. el.label = index;
  19988. return index != user.group;
  19989. });
  19990. this.updateGroupUser = user;
  19991. this.dialogVisibleUpdateGroup = true;
  19992. },
  19993. updateChair() {
  19994. if (
  19995. this.groupStudent[this.toolindex][this.checkChair].length >
  19996. this.groupJson.number ||
  19997. this.groupStudent[this.toolindex][this.checkChair].length ==
  19998. this.groupJson.number
  19999. ) {
  20000. this.$message.error(this.lang.ssPositionFullCannotJoin);
  20001. return;
  20002. }
  20003. let params = [
  20004. {
  20005. cid: this.id,
  20006. stage: this.courseType,
  20007. task: this.taskCount,
  20008. tool: this.toolindex,
  20009. g: this.checkChair,
  20010. uid: this.updateGroupUser.userid,
  20011. },
  20012. ];
  20013. this.ajax
  20014. .post(this.$store.state.api + "joinGroup", params)
  20015. .then((res) => {
  20016. this.$message.success(this.lang.ssModifySuccess);
  20017. this.updateGroupUser = {};
  20018. this.checkChair = "";
  20019. this.updateGroupArray = {};
  20020. this.dialogVisibleUpdateGroup = false;
  20021. this.getCourseDetail(2);
  20022. })
  20023. .catch((err) => {
  20024. this.$message.error(this.lang.ssNetworkPoor);
  20025. console.error(err);
  20026. });
  20027. },
  20028. deleteGroupChair(gindex) {
  20029. this.checkDeleteGroup = [];
  20030. this.deleteGroupUser = JSON.parse(
  20031. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20032. );
  20033. this.deleteGroupArray = this.groupJson.group[gindex];
  20034. this.groupIndex = gindex;
  20035. this.dialogVisibleDeleteGroup = true;
  20036. },
  20037. async deleteChair() {
  20038. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20039. const gid =
  20040. this.groupStudent[this.toolindex][this.groupIndex][
  20041. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20042. this.checkDeleteGroup[i]
  20043. )
  20044. ];
  20045. let params = [
  20046. {
  20047. gid: gid.id,
  20048. },
  20049. ];
  20050. var a = await this.deleteChairA(params);
  20051. if (i == this.checkDeleteGroup.length - 1) {
  20052. this.$message.success(this.lang.ssExitSuccess);
  20053. this.dialogVisibleDeleteGroup = false;
  20054. this.deleteGroupUser = [];
  20055. this.deleteGroupArray = {};
  20056. this.groupIndex = "";
  20057. this.checkDeleteGroup = [];
  20058. this.getCourseDetail(2);
  20059. }
  20060. }
  20061. },
  20062. deleteChairA(params) {
  20063. return new Promise((resolve, reject) => {
  20064. this.ajax
  20065. .post(this.$store.state.api + "exitGroup", params)
  20066. .then((res) => {
  20067. resolve(1);
  20068. })
  20069. .catch((err) => {
  20070. this.$message.error(this.lang.ssNetworkPoor);
  20071. console.error(err);
  20072. });
  20073. });
  20074. },
  20075. contract(i) {
  20076. if (this.isCloseList[i].isClose == 0) {
  20077. this.isCloseList[i].isClose = 1;
  20078. } else {
  20079. this.isCloseList[i].isClose = 0;
  20080. }
  20081. this.$forceUpdate();
  20082. },
  20083. openWordCloud(toolindex) {
  20084. this.wordCloudData = '';
  20085. let array = [];
  20086. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20087. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20088. array.push({ name: works });
  20089. }
  20090. if (this.isGroup) {
  20091. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20092. let works = this.courseGroup.group[i].works[toolindex];
  20093. for (var j = 0; j < works.length; j++) {
  20094. let answer = JSON.parse(works[j].works)[0].answer;
  20095. array.push({ name: answer });
  20096. }
  20097. }
  20098. }
  20099. let _result = ''
  20100. array.forEach(e=>{
  20101. _result +=e.name+','
  20102. })
  20103. this.wordCloudData = _result;
  20104. this.dialogVisibleWordCloud = true;
  20105. this.wordCloudKey += 1;
  20106. },
  20107. uploadWorks(i) {
  20108. this.$confirm(this.lang.ssConfirmExportHomework, this.lang.ssPrompt, {
  20109. confirmButtonText: this.lang.ssConfirm,
  20110. cancelButtonText: this.lang.ssCancel,
  20111. type: "warning",
  20112. })
  20113. .then(() => {
  20114. const loading = this.$loading.service({
  20115. background: "rgba(255, 255, 255, 0.7)",
  20116. target: document.body,
  20117. text: this.lang.ssFileLoading,
  20118. });
  20119. const _worksStudent = this.worksStudent;
  20120. let url = [];
  20121. var counts = {};
  20122. for (var l = 0; l < _worksStudent[i].length; l++) {
  20123. var item = _worksStudent[i][l];
  20124. var name = item.sName;
  20125. if (!counts.hasOwnProperty(name)) {
  20126. counts[name] = 0;
  20127. } else {
  20128. counts[name]++;
  20129. }
  20130. if (counts[name] > 0) {
  20131. item.sName += " (" + counts[name] + ")";
  20132. }
  20133. }
  20134. for (var l = 0; l < _worksStudent[i].length; l++) {
  20135. var item = _worksStudent[i][l];
  20136. if (
  20137. item.works.indexOf(
  20138. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20139. ) !== -1 &&
  20140. item.works.indexOf("img") === -1
  20141. ) {
  20142. url.push({ name: item.sName, url: item.works });
  20143. }
  20144. }
  20145. // var toolList = [
  20146. // { name: "电子白板", tool: 1 },
  20147. // { name: "思维导图", tool: 3 },
  20148. // { name: "协同文档", tool: 6 },
  20149. // { name: "思维网格", tool: 7 },
  20150. // { name: "素材库", tool: 8 },
  20151. // { name: "学习资料", tool: 17 },
  20152. // { name: "便签", tool: 2 },
  20153. // { name: "问卷调查", tool: 4 },
  20154. // { name: "选择题", tool: 45 },
  20155. // { name: "倒计时", tool: 10 },
  20156. // { name: "问答", tool: 15 },
  20157. // { name: "课程设计", tool: 26 },
  20158. // { name: "训练服务器", tool: 18 },
  20159. // { name: "作业提交", tool: 16 },
  20160. // { name: "批量上传", tool: 50 },
  20161. // { name: "AIoT Blockly", tool: 21 },
  20162. // { name: "AI Python", tool: 23 },
  20163. // { name: "AI Blockly", tool: 24 },
  20164. // { name: "目标管理", tool: 25 },
  20165. // { name: "数学画板", tool: 31 },
  20166. // { name: "翻译", tool: 28 },
  20167. // { name: "魔盒识字", tool: 37 },
  20168. // { name: "数学画板", tool: 31 },
  20169. // { name: "24点", tool: 38 },
  20170. // { name: "GeoGebra", tool: 39 },
  20171. // { name: "源码编辑", tool: 32 },
  20172. // { name: "个人评价", tool: 40 },
  20173. // { name: "选择匹配", tool: 41 },
  20174. // { name: "汉字宫", tool: 44 },
  20175. // { name: "排序", tool: 47 },
  20176. // { name: "表格", tool: 48 },
  20177. // { name: "文档", tool: 52 },
  20178. // { name: "学生分组", tool: 49 },
  20179. // { name: "CocoPi", tool: 57 },
  20180. // { name: "模拟驾驶", tool: 58 },
  20181. // { name: "路径搜索", tool: 59 },
  20182. // { name: "深度学习", tool: 60 },
  20183. // { name: "全历史", tool: 61 },
  20184. // { name: "交互视频", tool: 62 },
  20185. // { name: "海龟编程", tool: 63 },
  20186. // { name: "挑人", tool: 65 },
  20187. // { name: "公式编辑", tool: 66 },
  20188. // { name: "分子结构", tool: 67 },
  20189. // { name: "时间轴", tool: 68 },
  20190. // ];
  20191. // var toolName = "";
  20192. // for(var w = 0;w<toolList.length;w++){
  20193. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20194. // toolName = toolList[w].name;
  20195. // }
  20196. // }
  20197. console.log(url);
  20198. this.downLoadAll(url, loading);
  20199. })
  20200. .catch(() => {});
  20201. },
  20202. downLoadAll(url, loading) {
  20203. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20204. const zip = new JSZip();
  20205. const cache = {};
  20206. const promises = [];
  20207. data.forEach((item) => {
  20208. const promise = getFile(item.url).then((data) => {
  20209. if (data.data != 1) {
  20210. // 下载文件, 并存成ArrayBuffer对象
  20211. const file_name =
  20212. item.name +
  20213. "." +
  20214. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20215. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20216. cache[file_name] = data.data;
  20217. }
  20218. });
  20219. promises.push(promise);
  20220. });
  20221. Promise.all(promises).then(() => {
  20222. zip.generateAsync({ type: "blob" }).then((content) => {
  20223. // 生成二进制流
  20224. FileSaver.saveAs(
  20225. content,
  20226. this.courseDetail.title + "-" + this.lang.ssHomeworkSubmissionTool + ".zip"
  20227. ); // 利用file-saver保存文件 自定义文件名
  20228. setTimeout(() => {
  20229. loading.close();
  20230. }, 2000);
  20231. });
  20232. });
  20233. },
  20234. pickStudent(stu) {
  20235. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20236. return;
  20237. }
  20238. this.$confirm(this.lang.ssAskStudentToAnswer.replace(/\*/g, stu.name), this.lang.ssPrompt, {
  20239. confirmButtonText: this.lang.ssConfirm,
  20240. cancelButtonText: this.lang.ssCancel,
  20241. type: "warning",
  20242. })
  20243. .then(() => {
  20244. let params = [
  20245. {
  20246. uid: stu.userid,
  20247. cid: this.id,
  20248. stage: this.courseType,
  20249. task: this.taskCount,
  20250. tool: this.toolindex,
  20251. },
  20252. ];
  20253. this.ajax
  20254. .post(this.$store.state.api + "updateCoursePick", params)
  20255. .then((res) => {
  20256. this.$message.success(this.lang.ssOperationSuccess);
  20257. this.getPick();
  20258. })
  20259. .catch((err) => {
  20260. this.$message.error(this.lang.ssNetworkPoor);
  20261. console.error(err);
  20262. });
  20263. })
  20264. .catch(() => {});
  20265. },
  20266. selectUser(){
  20267. let params = {
  20268. userid: this.userid,
  20269. };
  20270. this.ajax
  20271. .get(this.$store.state.api + "selectUser", params)
  20272. .then((res) => {
  20273. this.userMes = res.data[0];
  20274. })
  20275. .catch((err) => {
  20276. console.error(err);
  20277. });
  20278. },
  20279. setEngText(i){
  20280. this.newEngIndex = i;
  20281. this.$forceUpdate();
  20282. },
  20283. addCorrect(){
  20284. this.$confirm(this.lang.ssConfirmSubmitCorrection, this.lang.ssPrompt, {
  20285. confirmButtonText: this.lang.ssConfirm,
  20286. showCancelButton: false,
  20287. closeOnClickModal: false,
  20288. type: "warning",
  20289. })
  20290. .then(() => {
  20291. let params = {
  20292. cid: this.id,
  20293. s: parseInt(this.courseType),
  20294. t: this.taskCount,
  20295. tool: this.toolindex,
  20296. wid: this.engWid,
  20297. c: this.userid,
  20298. 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) : "",
  20299. };
  20300. this.ajax
  20301. .get(this.$store.state.api + "addEngC", params)
  20302. .then((res) => {
  20303. this.$message.success(this.lang.ssSubmitSuccess);
  20304. this.engUpdateDialogVisible = false;
  20305. })
  20306. .catch((err) => {
  20307. console.error(err);
  20308. });
  20309. })
  20310. .catch(() => {});
  20311. },
  20312. selectEngC(id,z){
  20313. let params = {
  20314. workid: id,
  20315. };
  20316. this.ajax
  20317. .get(this.$store.state.api + "selectEngC", params)
  20318. .then((res) => {
  20319. if(res.data[0].length == 0){
  20320. this.newEnglishList.engTitle = z.engTitle;
  20321. this.newEnglishList.engText = z.engText;
  20322. }else{
  20323. var a = res.data[0];
  20324. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20325. if(this.userMes[0].type == 2){
  20326. var snum = 0;
  20327. for(var i = 0;i<a.length;i++){
  20328. if(this.userMes[0].userid == a[i].correct){
  20329. this.newEnglishList = JSON.parse(a[i].cWork);
  20330. snum = 1;
  20331. }
  20332. }
  20333. if(snum == 0){
  20334. this.newEnglishList = { engTitle:"",engText:"" };
  20335. this.newEnglishList.engTitle = z.engTitle;
  20336. this.newEnglishList.engText = z.engText;
  20337. }
  20338. }else if(this.userMes[0].type == 1){
  20339. var num = 0;
  20340. for(var w= 0;w<a.length;w++){
  20341. if(this.userMes[0].userid == a[w].correct){
  20342. num = 1;
  20343. }
  20344. }
  20345. if(num == 0){
  20346. this.isNoUserid = true;
  20347. var c = JSON.parse(JSON.stringify(z));
  20348. this.oldEnglishJson1 = c;
  20349. }else{
  20350. this.isNoUserid = false;
  20351. }
  20352. var b = a.sort((item, index) => {
  20353. console.log(item)
  20354. if (item.correct === this.userMes[0].userid) {
  20355. return -1; // 将a移到前面
  20356. } else if (index.correct === this.userMes[0].userid) {
  20357. return 1; // 将b移到前面
  20358. } else {
  20359. return 0; // 保持默认顺序
  20360. }
  20361. });
  20362. for(var p = 0;p<b.length;p++){
  20363. for(var y = 0;y<ppp.length;y++){
  20364. if(b[p].id == ppp[y].id){
  20365. b[p].cWork = JSON.parse(ppp[y].cWork);
  20366. break
  20367. }
  20368. }
  20369. }
  20370. this.newEnglishList1 = b;
  20371. }
  20372. }
  20373. this.greyType = false;
  20374. setTimeout(() => {
  20375. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20376. if(this.newEnglishList1.length > 0){
  20377. if(this.isNoUserid == true){
  20378. this.engListLength = this.newEnglishList1.length + 1;
  20379. this.newEngIndex = -1;
  20380. }else{
  20381. this.engListLength = this.newEnglishList1.length;
  20382. this.newEngIndex = 0;
  20383. }
  20384. }
  20385. if(this.userMes[0].type == 2){
  20386. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20387. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20388. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20389. }else if(this.newEngIndex == -1){
  20390. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20391. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20392. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20393. }
  20394. }, 500);
  20395. this.engUpdateDialogVisible = true;
  20396. this.$forceUpdate();
  20397. })
  20398. .catch((err) => {
  20399. console.error(err);
  20400. });
  20401. },
  20402. getPick() {
  20403. if(this.getPickLoading) return
  20404. this.getPickLoading = true
  20405. let params = {
  20406. cid: this.id,
  20407. };
  20408. this.ajax
  20409. .get(this.$store.state.api + "getPick", params)
  20410. .then((res) => {
  20411. let array = [];
  20412. for (var i = 0; i < res.data[0].length; i++) {
  20413. array.push(res.data[0][i].userid);
  20414. }
  20415. this.isPickStudent = array;
  20416. if (array.indexOf(this.userid) !== -1) {
  20417. this.$confirm(this.lang.ssSelectedByTeacher, this.lang.ssPrompt, {
  20418. confirmButtonText: this.lang.ssConfirm,
  20419. showCancelButton: false,
  20420. closeOnClickModal: false,
  20421. type: "warning",
  20422. })
  20423. .then(() => {
  20424. let pa = [
  20425. {
  20426. uid: this.userid,
  20427. cid: this.id,
  20428. },
  20429. ];
  20430. this.ajax
  20431. .post(this.$store.state.api + "deletePick", pa)
  20432. .then((res) => {
  20433. this.getPick();
  20434. })
  20435. .catch((err) => {
  20436. this.$message.error(this.lang.ssNetworkPoor);
  20437. console.error(err);
  20438. });
  20439. })
  20440. .catch(() => {});
  20441. }
  20442. this.getPickLoading = false
  20443. })
  20444. .catch((err) => {
  20445. this.getPickLoading = false
  20446. this.$message.error(this.lang.ssNetworkPoor);
  20447. console.error(err);
  20448. });
  20449. },
  20450. foldEva() {
  20451. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20452. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20453. } else {
  20454. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20455. setTimeout(() => {
  20456. this.checkEva();
  20457. setTimeout(() => {
  20458. this.checkEva();
  20459. }, 500);
  20460. }, 0);
  20461. }
  20462. this.$forceUpdate();
  20463. },
  20464. panToolHeight(tool) {
  20465. var _tool = document.querySelectorAll('#'+tool)[0]
  20466. var _toolA = _tool ? _tool.offsetHeight : 0
  20467. var _toolC = 0
  20468. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20469. let boolean2 = (_toolA > _toolC) ? true : false
  20470. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20471. this.$forceUpdate();
  20472. },
  20473. async checkLink(url) {
  20474. // console.log(url)
  20475. let _url = url
  20476. try {
  20477. const response = await fetch(url);
  20478. if(!response.ok){
  20479. _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]))
  20480. }
  20481. // console.log(response.ok)
  20482. } catch (error) {
  20483. console.error('Error checking link:', error);
  20484. // console.log(false)
  20485. _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]))
  20486. }
  20487. // console.log(_url)
  20488. return _url
  20489. },
  20490. getScoreList(){
  20491. let params = {
  20492. cid: this.id,
  20493. };
  20494. this.ajax
  20495. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20496. .then((res) => {
  20497. let result = res.data;
  20498. this.scoreList.datalist = result[0];
  20499. this.scoreList.isScoreList = result[1];
  20500. })
  20501. .catch((err) => {
  20502. console.error(err);
  20503. });
  20504. },
  20505. setClassRoomHelperWidth(width){
  20506. this.classRoomHelperWidth = width
  20507. },
  20508. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20509. this.$refs.choseWorksDetailDialogRef.open({
  20510. toolType:tooc,
  20511. tType: this.tType,
  20512. toolIndex: toolIndex
  20513. });
  20514. this.changeSplitScreenBehavior({
  20515. code: 1,
  20516. form: {
  20517. toolType:tooc,
  20518. toolIndex: toolIndex,
  20519. courseType: this.courseType,
  20520. taskCount: this.taskCount,
  20521. type: 0
  20522. }
  20523. });
  20524. },
  20525. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20526. this.$refs.statisticalAnalysisRef.open({
  20527. worksStudent: this.worksStudent[toolIndex],
  20528. tType: this.tType,
  20529. toolIndex: toolIndex
  20530. });
  20531. this.changeSplitScreenBehavior({
  20532. code: 2,
  20533. form: {
  20534. toolType:4,
  20535. courseType: this.courseType,
  20536. taskCount: this.taskCount,
  20537. toolIndex: toolIndex,
  20538. type: 0
  20539. }
  20540. });
  20541. },
  20542. statisticalAnalysisRefresh(toolIndex) {
  20543. this.$refs.statisticalAnalysisRef.refreshData({
  20544. worksStudent: this.worksStudent[toolIndex],
  20545. tType: this.tType,
  20546. toolIndex: toolIndex
  20547. });
  20548. },
  20549. async splitScreenBehavior(type = 0) {
  20550. // return;
  20551. if (this.splitScreenData.loading)
  20552. return this.$message.info(this.lang.ssOperationTooFast);
  20553. if (type == 0) {
  20554. //关闭分屏
  20555. this.splitScreenData.isOpen = false;
  20556. // this.splitScreenData.userId = "";
  20557. // this.splitScreenData.uid = "";
  20558. this.splitScreenData.behavior = null;
  20559. await this.updateSplitScreenData(1);
  20560. this.$message.success(this.lang.ssSplitScreenClosed);
  20561. this.studentFreePreview(false);
  20562. this.OpenJobPreview(false);
  20563. // this.followingMode(false);
  20564. } else if (type == 1) {
  20565. //开启分屏
  20566. this.splitScreenData.isOpen = true;
  20567. this.splitScreenData.userId = this.userid;
  20568. this.splitScreenData.uid = this.splitScreenData.myUid;
  20569. this.splitScreenData.behavior = null;
  20570. let status = await this.updateSplitScreenData(0);
  20571. this.changeSplitScreenBehavior({form:{}})
  20572. if (status == 1) {
  20573. this.$message.success(this.lang.ssSplitScreenOpened);
  20574. this.studentFreePreview(false);
  20575. this.OpenJobPreview(true);
  20576. // this.followingMode(true);
  20577. } else {
  20578. this.splitScreenData.isOpen = false;
  20579. this.splitScreenData.userId = "";
  20580. this.splitScreenData.uid = "";
  20581. this.splitScreenData.behavior = null;
  20582. this.$message.success(this.lang.ssSplitScreenOpenFailed);
  20583. }
  20584. }
  20585. },
  20586. enterFullScreen() {
  20587. let element = document.documentElement;
  20588. if (element.requestFullscreen) {
  20589. element.requestFullscreen();
  20590. } else if (element.mozRequestFullScreen) { /* Firefox */
  20591. element.mozRequestFullScreen();
  20592. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  20593. element.webkitRequestFullscreen();
  20594. } else if (element.msRequestFullscreen) { /* IE/Edge */
  20595. element.msRequestFullscreen();
  20596. }
  20597. },
  20598. exitFullScreen() {
  20599. if (document.exitFullscreen) {
  20600. document.exitFullscreen();
  20601. } else if (document.mozCancelFullScreen) { /* Firefox */
  20602. document.mozCancelFullScreen();
  20603. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  20604. document.webkitExitFullscreen();
  20605. } else if (document.msExitFullscreen) { /* IE/Edge */
  20606. document.msExitFullscreen();
  20607. }
  20608. },
  20609. confirmOpen(){
  20610. this.splitScreenData.isOpen = true;
  20611. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  20612. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  20613. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  20614. this.confirmOpenDig = false
  20615. if (!document.fullscreenElement) {
  20616. this.enterFullScreen();
  20617. }
  20618. // if (this.timer2) {
  20619. // clearInterval(this.timer2);
  20620. // this.timer2 = null;
  20621. // }
  20622. // this.timer2 = setInterval(()=> {
  20623. // this.getSplitScreenData();//获取分屏数据
  20624. // }, 1000);
  20625. this.$message.success(this.lang.ssSplitScreenEnabled);
  20626. },
  20627. getSplitScreenData() {
  20628. // return;
  20629. // if (this.tType != 1) return;
  20630. if(this.getSplitScreenDataLoading) return
  20631. this.getSplitScreenDataLoading = true
  20632. let params = {
  20633. cid: this.id
  20634. };
  20635. this.ajax
  20636. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20637. .then(async res => {
  20638. let data = res.data[0][0]["splitScreenData"];
  20639. console.log("获取了分屏数:", data);
  20640. if (data) {
  20641. data = JSON.parse(data);
  20642. if (
  20643. !this.splitScreenData.isOpen &&
  20644. data.isOpen &&
  20645. this.splitScreenData.myUid == data.uid
  20646. ) {
  20647. this.splitScreenData.isOpen = false;
  20648. this.splitScreenData.userId = "";
  20649. this.splitScreenData.uid = "";
  20650. this.splitScreenData.behavior = null;
  20651. await this.updateSplitScreenData(1);
  20652. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20653. this.confirmOpenDig = true
  20654. this.confirmOpenDigData = data
  20655. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20656. this.splitScreenData.isOpen = false;
  20657. this.splitScreenData.userId = "";
  20658. this.splitScreenData.uid = "";
  20659. this.splitScreenData.behavior = null;
  20660. this.$message.error(this.lang.ssSplitScreenEnded);
  20661. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20662. this.splitScreenData.isOpen = true;
  20663. this.splitScreenData.uid = data.uid;
  20664. this.splitScreenData.userId = data.userId;
  20665. this.splitScreenData.behavior = data.behavior;
  20666. }
  20667. this.doSplitScreenBehavior();
  20668. } else {
  20669. if (this.splitScreenData.isOpen) {
  20670. this.splitScreenData.isOpen = false;
  20671. this.splitScreenData.userId = "";
  20672. this.splitScreenData.uid = "";
  20673. this.splitScreenData.behavior = null;
  20674. this.$message.error(this.lang.ssSplitScreenEnded);
  20675. // if (this.timer2) {
  20676. // clearInterval(this.timer2);
  20677. // this.timer2 = null;
  20678. // }
  20679. // this.timer2 = setInterval(()=> {
  20680. // this.getSplitScreenData();//获取分屏数据
  20681. // }, 5000);
  20682. this.$confirm(this.lang.ssTeacherEndedSplitScreen, this.lang.ssPrompt, {
  20683. confirmButtonText: '确定', //确认按钮的文字
  20684. showCancelButton: false, //是否显示取消按钮
  20685. showClose: false, //是否显示关闭按钮
  20686. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  20687. type: "warning",
  20688. })
  20689. .then(() => {
  20690. if (document.fullscreenElement) {
  20691. this.exitFullScreen();
  20692. }
  20693. })
  20694. .catch(() => {});
  20695. }
  20696. }
  20697. this.getSplitScreenDataLoading = false
  20698. })
  20699. .catch(e => {
  20700. this.getSplitScreenDataLoading = false
  20701. console.log("获取分屏数出错:", e);
  20702. });
  20703. },
  20704. doSplitScreenBehavior() {
  20705. if (
  20706. this.splitScreenData.isOpen &&
  20707. this.splitScreenData.uid != this.splitScreenData.myUid
  20708. ) {
  20709. let behavior = this.splitScreenData.behavior;
  20710. if (behavior) {
  20711. if (behavior.code === 99) {
  20712. //初始化
  20713. this.fullDialogVisible = false;
  20714. if(this.$refs.choseWorksDetailDialogRef.show){
  20715. this.$refs.choseWorksDetailDialogRef.close();
  20716. }
  20717. if(this.$refs.statisticalAnalysisRef.show){
  20718. this.$refs.statisticalAnalysisRef.close();
  20719. }
  20720. }
  20721. if (behavior.code === 0) {
  20722. //开启内容列表弹窗
  20723. this.checkFileFull1(behavior.form.t, behavior.form.f);
  20724. }else{
  20725. this.fullDialogVisible = false;
  20726. }
  20727. if (behavior.code === 1) {
  20728. //关于选择题的作业详细的操作
  20729. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20730. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20731. this.courseType = behavior.form.courseType;
  20732. this.taskCount = behavior.form.taskCount;
  20733. }
  20734. this.$nextTick(() => {
  20735. if (this.$refs.choseWorksDetailDialogRef.show) {
  20736. //已经打开了
  20737. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  20738. } else {
  20739. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  20740. }
  20741. });
  20742. }else{
  20743. this.$refs.choseWorksDetailDialogRef.close()
  20744. }
  20745. if(behavior.code === 2){
  20746. if(this.$refs.statisticalAnalysisRef.show){
  20747. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20748. }else{
  20749. this.$refs.statisticalAnalysisRef.open({
  20750. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20751. tType: this.tType,
  20752. toolIndex: behavior.form.toolIndex
  20753. });
  20754. }
  20755. }else{
  20756. this.$refs.statisticalAnalysisRef.close();
  20757. }
  20758. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  20759. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  20760. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  20761. if (behavior.form.courseType != this.courseType ||
  20762. behavior.form.taskCount != this.taskCount ||
  20763. behavior.form.toolType != this.toolindex
  20764. ) {
  20765. var a = document.scrollingElement;
  20766. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  20767. if (target) {
  20768. target.scrollIntoView(true);
  20769. setTimeout(()=>{
  20770. let scrollBody = document.querySelector('.body_student').parentElement
  20771. scrollBody.scrollTop = scrollBody.scrollTop - 100
  20772. }, 0);
  20773. // setTimeout(() => {
  20774. // a.scrollTop = 0
  20775. // }, 0);
  20776. }
  20777. }
  20778. if(this.courseType !=behavior.form.courseType){
  20779. this.courseType = behavior.form.courseType;
  20780. }
  20781. if(this.taskCount !=behavior.form.taskCount){
  20782. this.taskCount = behavior.form.taskCount;
  20783. }
  20784. if((behavior.form.toolType || behavior.form.toolType == 0) && (this.toolindex != behavior.form.toolType)){
  20785. this.toolindex = behavior.form.toolType;
  20786. }
  20787. // if(behavior.form.navId){
  20788. // this.navId = behavior.form.navId
  20789. // }
  20790. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  20791. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  20792. console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  20793. this.getCourseDetail()
  20794. }
  20795. this.setContent2(false)
  20796. }
  20797. } else {
  20798. }
  20799. }
  20800. },
  20801. updateSplitScreenData(empty = 0) {
  20802. return new Promise(resolve => {
  20803. if(this.userid!==this.courseDetail.userid){
  20804. if(!this.courseDetail.userid){
  20805. return setTimeout(()=>{
  20806. this.updateSplitScreenData(empty)
  20807. },2000)
  20808. }
  20809. return;
  20810. };
  20811. if (
  20812. this.splitScreenData.uid == this.splitScreenData.myUid &&
  20813. this.splitScreenData.userId == this.userid
  20814. ) {
  20815. this.splitScreenData.loading = true;
  20816. let params = [
  20817. {
  20818. cid: this.id,
  20819. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  20820. }
  20821. ];
  20822. this.ajax
  20823. .post(
  20824. this.$store.state.api + "update_courseSplitScreenData",
  20825. params
  20826. )
  20827. .then(res => {
  20828. this.splitScreenData.loading = false;
  20829. if (res.data == 1) {
  20830. resolve(1);
  20831. console.log("修改分屏数据成功");
  20832. }
  20833. })
  20834. .catch(e => {
  20835. this.splitScreenData.loading = false;
  20836. console.log("修改分屏数据失败", e);
  20837. resoleve(0);
  20838. });
  20839. } else if (empty == 2 && this.tType == 1) {
  20840. let params = [
  20841. {
  20842. cid: this.id,
  20843. nData: ""
  20844. }
  20845. ];
  20846. return this.ajax
  20847. .post(
  20848. this.$store.state.api + "update_courseSplitScreenData",
  20849. params
  20850. )
  20851. .then(_ => resolve(1))
  20852. .catch(_ => resolve(0));
  20853. } else {
  20854. return resolve(0);
  20855. }
  20856. });
  20857. },
  20858. changeSplitScreenBehavior(newValue) {
  20859. if (
  20860. this.splitScreenData.isOpen &&
  20861. this.splitScreenData.uid == this.splitScreenData.myUid
  20862. ) {
  20863. let _behavior = null;
  20864. if(!newValue){
  20865. _behavior = {}
  20866. }else{
  20867. _behavior = newValue
  20868. }
  20869. if(_behavior.form){
  20870. _behavior.form.taskCount = this.taskCount;
  20871. _behavior.form.courseType = this.courseType
  20872. }else{
  20873. _behavior.form = {
  20874. taskCount:this.taskCount,
  20875. courseType:this.courseType
  20876. }
  20877. }
  20878. this.splitScreenData.behavior = _behavior;
  20879. this.updateSplitScreenData(0);
  20880. }
  20881. },
  20882. studentFreePreview(flag) {
  20883. this.IsLookOpen = flag;
  20884. this.followingMode(flag)
  20885. this.updateLookOpen();
  20886. },
  20887. OpenJobPreview(flag) {
  20888. this.sIsOpen = flag;
  20889. this.updateSLook();
  20890. },
  20891. followingMode(flag) {
  20892. this.IsFollow = flag;
  20893. this.updateFollow();
  20894. },
  20895. StulookMode(flag) {
  20896. this.IsStulook = flag;
  20897. this.updateIsStulook();
  20898. },
  20899. async doSyncClassData(){
  20900. let userArray = ['6fbc6471-1d48-11ed-8c78-005056b86db5','333d0dfc-1cd9-11ef-bee5-005056b86db5','6fbce5ef-1d48-11ed-8c78-005056b86db5','66feffcc-ad35-11ed-b13d-005056b86db5']
  20901. if (this.courseDetail.userid == this.userid && (this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840' || userArray.includes(this.userid))) {
  20902. let endTime = await this.getServerTime()
  20903. let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
  20904. this.syncClassData({
  20905. courseId: this.id,
  20906. title: this.courseDetail.title,
  20907. ctitle: this.courseDetail.copyTitle || this.courseDetail.title,
  20908. courseGrade: this.tcid2 ? this.tcid2 : '',
  20909. courseTime: courseTime,
  20910. startTime: this.startTime,
  20911. endTime: endTime,
  20912. })
  20913. console.log('同步数据')
  20914. }
  20915. },
  20916. resetIdleOp(){
  20917. this.$message({
  20918. message: this.lang.ssLongTimeNoOperation,
  20919. type: "warning",
  20920. });
  20921. this.goTo(
  20922. '/courseDetail?userid=' +
  20923. this.userid +
  20924. '&oid=' +
  20925. this.oid +
  20926. '&org=' +
  20927. this.org +
  20928. '&cid=' +
  20929. this.id +
  20930. '&courseId=' +
  20931. this.id +
  20932. '&tType=' +
  20933. this.tType +
  20934. '&screenType=' +
  20935. this.screenType
  20936. )
  20937. }
  20938. },
  20939. directives: {
  20940. // 使用局部注册指令的方式
  20941. resize: {
  20942. // 指令的名称
  20943. bind(el, binding) {
  20944. // el为绑定的元素,binding为绑定给指令的对象
  20945. let width = "",
  20946. height = "";
  20947. function isReize() {
  20948. const style = document.defaultView.getComputedStyle(el);
  20949. if (width !== style.width || height !== style.height) {
  20950. binding.value(); // 关键
  20951. }
  20952. width = style.width;
  20953. height = style.height;
  20954. }
  20955. el.__vueSetInterval__ = setInterval(isReize, 300);
  20956. },
  20957. unbind(el) {
  20958. clearInterval(el.__vueSetInterval__);
  20959. },
  20960. },
  20961. autoHeight: {
  20962. update(el, binding) {
  20963. const { value } = binding
  20964. if (value && typeof value === 'number') {
  20965. el.style.height = `${value}px`
  20966. } else {
  20967. el.style.height = 'auto'
  20968. }
  20969. },
  20970. componentUpdated(el) {
  20971. el.style.height = `${el.scrollHeight + 5}px`
  20972. },
  20973. },
  20974. },
  20975. beforeDestroy() {
  20976. window.onresize = null;
  20977. clearInterval(this.timer);
  20978. this.timer = null;
  20979. clearInterval(this.timer2);
  20980. this.timer2 = null;
  20981. clearInterval(this.opertimer);
  20982. this.opertimer = null;
  20983. this.updateSplitScreenData(1);
  20984. this.doSyncClassData();
  20985. clearTimeout(this.timeoutPan);
  20986. this.timeoutPan = null;
  20987. this.stopIdleDetection(this.resetIdleOp);
  20988. },
  20989. computed: {
  20990. renderedFormula2() {
  20991. return function(val){
  20992. // 处理换行符和HTML实体
  20993. const normalized = val
  20994. .replace(/&amp;/g, '&')
  20995. .replace(/<br\/?>/g, '\n');
  20996. // 匹配行内公式($...$)和块级公式($$...$$)
  20997. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  20998. try {
  20999. return katex.renderToString(expr.trim(), {
  21000. displayMode: false,
  21001. throwOnError: false,
  21002. macros: {
  21003. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  21004. }
  21005. });
  21006. } catch (e) {
  21007. console.warn('KaTeX渲染失败:', e);
  21008. return `<span style="color:red">${expr}</span>`;
  21009. }
  21010. })
  21011. }
  21012. },
  21013. renderedFormula() {
  21014. return function(val){
  21015. try {
  21016. // 判断是否含有HTML标签,<tag ...>...</tag>
  21017. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  21018. if (!hasTag) {
  21019. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21020. // 纯文本,整体渲染
  21021. try {
  21022. return katex.renderToString(val.trim(), {
  21023. throwOnError: false,
  21024. strict: false,
  21025. output: "htmlAndMathml"
  21026. });
  21027. } catch (e) {
  21028. return val; // 渲染失败原样输出
  21029. }
  21030. } else {
  21031. // 有标签,对每个标签内容渲染
  21032. return val.replace(
  21033. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  21034. (match, tag, attrs, inner) => {
  21035. let html;
  21036. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  21037. try {
  21038. html = katex.renderToString(inner.trim(), {
  21039. throwOnError: false,
  21040. strict: false,
  21041. output: "htmlAndMathml"
  21042. });
  21043. } catch (e) {
  21044. html = inner;
  21045. }
  21046. return `<${tag}${attrs}>${html}</${tag}>`;
  21047. }
  21048. );
  21049. }
  21050. } catch (e) {
  21051. console.error('KaTeX渲染错误:', e);
  21052. return val;
  21053. }
  21054. }
  21055. },
  21056. isAndroid() {
  21057. return /Android/i.test(navigator.userAgent);
  21058. },
  21059. getHeight(){
  21060. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21061. },
  21062. contentConvent() {
  21063. return function (c) {
  21064. return c
  21065. ? c
  21066. .replaceAll(/\r\n/g, "<br/>")
  21067. .replaceAll(/\n/g, "<br/>")
  21068. .replaceAll(/\s/g, "&nbsp")
  21069. : "";
  21070. };
  21071. },
  21072. MarkdownT() {
  21073. return function (c) {
  21074. let md = new MarkdownIt();
  21075. return c
  21076. ? md.render(c) : "";
  21077. };
  21078. },
  21079. commentRight(){
  21080. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21081. return "35px";
  21082. }
  21083. return `calc(${this.classRoomHelperWidth} + 5px)`
  21084. // if(this.$refs["classRoomHelperRef"].type==0){
  21085. // return "100px";
  21086. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21087. // return "502px"
  21088. // }else{
  21089. // return "0px"
  21090. // }
  21091. },
  21092. checkUpload() {
  21093. return function () {
  21094. var studentK = [];
  21095. if (this.plworkFile.length > 0) {
  21096. for (var z = 0; z < this.plworkFile.length; z++) {
  21097. studentK.push(this.plworkFile[z].username);
  21098. }
  21099. studentK = studentK.join(",");
  21100. }
  21101. var a = this.uploadStudentJuri.filter((el) => {
  21102. return studentK.indexOf(el.userid) == -1;
  21103. });
  21104. return a;
  21105. };
  21106. },
  21107. getSName() {
  21108. return function (name) {
  21109. var check = name;
  21110. this.uploadStudentJuri.forEach((el) => {
  21111. if (el.userid == check) {
  21112. check = el.name ? el.name : el.username;
  21113. }
  21114. });
  21115. return check;
  21116. };
  21117. },
  21118. getImgList() {
  21119. return function (val) {
  21120. let srcList = []; // 定义一个数组用来接收后面的img地址
  21121. val.replace(
  21122. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21123. function (match, capture) {
  21124. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21125. srcList.push(capture);
  21126. }
  21127. );
  21128. return srcList;
  21129. };
  21130. },
  21131. retrnToolHeight(){
  21132. return function (tool) {
  21133. var _tool = document.querySelectorAll('#'+tool)[0]
  21134. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21135. };
  21136. },
  21137. Correct() {
  21138. return function (c,d) {
  21139. let w = "";
  21140. let a = this.correctWord;
  21141. for(var k = 0;k<a.length;k++){
  21142. //diffWordsWithSpace
  21143. if(a.length > 1){
  21144. if(a[k].added == true){
  21145. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21146. }else if(a[k].removed == true){
  21147. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21148. }else{
  21149. w += '<span>' + a[k].value + '</span>';
  21150. }
  21151. }else{
  21152. w = c
  21153. }
  21154. console.log("👇👇!+++==")
  21155. console.log(w)
  21156. //diffChars方法
  21157. // if(w == ""){
  21158. // if(a.length > 1){
  21159. // if(a[k].added == true){
  21160. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21161. // }else if(a[k].removed == true){
  21162. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21163. // }
  21164. // }else{
  21165. // w = c
  21166. // }
  21167. // }else{
  21168. // if(k == a.length - 1){
  21169. // if(a[k].added == true){
  21170. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21171. // }else if(a[k].removed == true){
  21172. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21173. // }
  21174. // }else{
  21175. // if(a[k].added == true){
  21176. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21177. // }else if(a[k].removed == true){
  21178. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21179. // }
  21180. // }
  21181. // }
  21182. }
  21183. c = w;
  21184. return c;
  21185. };
  21186. },
  21187. },
  21188. async mounted() {
  21189. this.setoTime("1");
  21190. this.startTime = await this.getServerTime()
  21191. this.timeoutPan = setTimeout(() => {
  21192. this.startIdleDetection(this.resetIdleOp);
  21193. }, 40 * 60 * 1000)
  21194. // if (this.tType == 1) {
  21195. // // 开局关闭学生查看内容
  21196. // this.StulookMode(false)
  21197. // // 开局打开跟随模式
  21198. // this.followingMode(true)
  21199. // }
  21200. document.body.addEventListener("click", (e) => {
  21201. if (this.isUpdateToolDetail1) {
  21202. this.updateToolDetail(this.toolDetailIndex);
  21203. }
  21204. });
  21205. try {
  21206. if (this.screenType == 2) {
  21207. window.topU.postMessage({ allScreen: 4 }, "*");
  21208. } else if (this.screenType == 3) {
  21209. window.topU.postMessage({ allScreen: 5 }, "*");
  21210. } else if (this.screenType == 1) {
  21211. window.topU.postMessage({ allScreen: 6 }, "*");
  21212. }
  21213. } catch (error) {
  21214. console.log(error)
  21215. }
  21216. setTimeout(() => {
  21217. this.doSyncClassData();
  21218. }, 1000);
  21219. this.getCode2()
  21220. this.setOperationTime();
  21221. this.selectEva();
  21222. this.getCourseDetail(10);
  21223. this.selectCount();
  21224. this.getHomeWork();
  21225. this.selectUser();
  21226. this.getAIJ();
  21227. this.contentDialog = false;
  21228. this.setContent2(true);
  21229. if (this.tType == 4) {
  21230. this.pzDialog = true;
  21231. this.selectPz();
  21232. }
  21233. // 获取评分列表
  21234. this.getScoreList()
  21235. this.updateSplitScreenData(2);
  21236. this.splitScreenData.myUid = uuidv4();
  21237. document.scrollingElement.scrollTop = 0;
  21238. window.addEventListener("resize", () => {
  21239. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21240. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21241. if (this.showType == 2 || this.showType == 3) {
  21242. document.getElementsByClassName("navBox")[0].style.height =
  21243. a - 40 + 0+ "px";
  21244. } else {
  21245. document.getElementsByClassName("navBox")[0].style.height =
  21246. a - 40 + "px";
  21247. }
  21248. });
  21249. // let _this = this;
  21250. // setTimeout(() => {
  21251. // _this.vedioTime = [];
  21252. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21253. // _this.vedioTime[i] = document.getElementsByClassName(
  21254. // "vjs-duration-display"
  21255. // )[i].textContent;
  21256. // }
  21257. // }, 1000);
  21258. },
  21259. };
  21260. </script>
  21261. <style scoped>
  21262. @media screen and (max-width: 1280px) {
  21263. /* .courseIndex > div:first-child(2) {
  21264. width: 15% !important;
  21265. } */
  21266. /* .navText {
  21267. width: 120px !important;
  21268. } */
  21269. .evaCss {
  21270. flex-direction: column !important;
  21271. align-items: center !important;
  21272. }
  21273. .elist_input {
  21274. width: 90% !important;
  21275. }
  21276. .dialog_diy1 >>> .el-dialog {
  21277. width: 100% !important;
  21278. }
  21279. .rightWidthCss {
  21280. width: 100% !important;
  21281. }
  21282. .dialog_diy3 >>> .el-dialog {
  21283. width: 100% !important;
  21284. }
  21285. .addToolCss {
  21286. right: 0 !important;
  21287. width: 100% !important;
  21288. min-width: unset !important;
  21289. }
  21290. }
  21291. .evaCssMax {
  21292. flex-direction: column !important;
  21293. align-items: center !important;
  21294. }
  21295. .dialog_diy >>> .el-dialog {
  21296. margin-top: 10vh !important;
  21297. }
  21298. .body_student {
  21299. width: 77%;
  21300. height: 100%;
  21301. position: absolute;
  21302. left: 22%;
  21303. top: 0;
  21304. }
  21305. .student_head {
  21306. width: 100%;
  21307. margin: 20px auto 0;
  21308. padding-bottom: 20px;
  21309. display: flex;
  21310. flex-direction: column;
  21311. flex-wrap: nowrap;
  21312. align-items: flex-start;
  21313. justify-content: flex-start;
  21314. }
  21315. .pb_left {
  21316. width: 15%;
  21317. margin-right: 10px;
  21318. background: rgb(255, 255, 255);
  21319. position: fixed;
  21320. height: calc(100% - 40px);
  21321. border-radius: 20px;
  21322. padding-bottom: 15px;
  21323. box-sizing: border-box;
  21324. }
  21325. .wheel > img,
  21326. .project > img,
  21327. .star > img,
  21328. .evaluate > img,
  21329. .up_photo > img,
  21330. .chapter_add > img,
  21331. .deleteWord > img,
  21332. .question > img,
  21333. .homework > img {
  21334. width: 100%;
  21335. height: 100%;
  21336. }
  21337. .upCover > img {
  21338. width: 131px;
  21339. height: 69px;
  21340. object-fit: cover;
  21341. }
  21342. .upCover {
  21343. width: calc(100% / 3.5);
  21344. position: relative;
  21345. margin: 0 15px 10px 0;
  21346. display: flex;
  21347. flex-direction: column;
  21348. flex-wrap: nowrap;
  21349. justify-content: center;
  21350. align-content: center;
  21351. align-items: center;
  21352. height: fit-content;
  21353. }
  21354. .upCover2 {
  21355. width: 100%;
  21356. position: relative;
  21357. margin: 0 15px 10px 0;
  21358. display: flex;
  21359. flex-direction: column;
  21360. flex-wrap: nowrap;
  21361. justify-content: center;
  21362. align-content: center;
  21363. align-items: center;
  21364. }
  21365. .upCover2 > img {
  21366. width: 100%;
  21367. height: 90px;
  21368. object-fit: contain;
  21369. }
  21370. .chapter_add {
  21371. width: 120px;
  21372. position: relative;
  21373. text-align: center;
  21374. }
  21375. .isAddThings {
  21376. margin-top: 20px;
  21377. position: relative;
  21378. text-align: center;
  21379. background: #f7f8fa;
  21380. height: 90px;
  21381. width: 90px;
  21382. display: flex;
  21383. flex-direction: column;
  21384. justify-content: center;
  21385. }
  21386. .deleteWord {
  21387. width: 22px;
  21388. height: 22px;
  21389. position: absolute;
  21390. right: -5px;
  21391. top: -5px;
  21392. cursor: pointer;
  21393. }
  21394. .box_course {
  21395. /* width: 60%; */
  21396. width: calc(100% - 300px);
  21397. }
  21398. .wheel {
  21399. width: 100%;
  21400. /* height: 100%; */
  21401. height: 650px;
  21402. }
  21403. .right_box {
  21404. display: flex;
  21405. flex-direction: column;
  21406. margin-left: 30px;
  21407. justify-content: space-around;
  21408. }
  21409. .right_box_title {
  21410. font-size: 23px;
  21411. }
  21412. .people {
  21413. display: flex;
  21414. }
  21415. .student_body {
  21416. width: 100%;
  21417. margin: 0 auto;
  21418. margin-top: 10px;
  21419. padding: 0 0 20px;
  21420. }
  21421. .study_top {
  21422. margin-top: 100px;
  21423. width: 100%;
  21424. height: auto;
  21425. padding-bottom: 20px;
  21426. margin-left: 2px;
  21427. min-height: 90%;
  21428. }
  21429. .study_top .checkbox {
  21430. display: flex;
  21431. align-items: center;
  21432. padding: 15px 0 15px 30px;
  21433. flex: 0 0 auto;
  21434. font-weight: bold;
  21435. border-bottom: 1px solid #eee;
  21436. }
  21437. .study_top .check {
  21438. padding-bottom: 5px;
  21439. text-align: center;
  21440. cursor: pointer;
  21441. height: 30px;
  21442. box-sizing: border-box;
  21443. display: flex;
  21444. }
  21445. .study_top .checked {
  21446. border-bottom: 4px solid #3fc6a0;
  21447. padding-bottom: 5px;
  21448. color: #3fc6a0;
  21449. display: flex;
  21450. height: 35px;
  21451. }
  21452. .study_top .checked > div,
  21453. .study_top .check > div {
  21454. margin-right: 5px;
  21455. }
  21456. .videoTop {
  21457. display: flex;
  21458. flex-direction: row;
  21459. justify-content: space-between;
  21460. background: #fff;
  21461. align-items: center;
  21462. width: 95%;
  21463. padding: 20px;
  21464. }
  21465. .filebox {
  21466. display: flex;
  21467. flex-wrap: wrap;
  21468. flex-direction: column;
  21469. padding: 0 0 5px;
  21470. position: relative;
  21471. }
  21472. .filebox:before {
  21473. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21474. position: absolute;
  21475. top: 20px;
  21476. left: 13px;
  21477. border-left: 2px dotted #cad1dc;
  21478. height: calc(100% - 15px);
  21479. }
  21480. .toolHeng2 > div:last-child::before {
  21481. height: calc(100% - 43px);
  21482. }
  21483. .filebox .tooldetail {
  21484. width: calc(100%);
  21485. margin: 0px 12px;
  21486. padding: 12px;
  21487. line-height: 30px;
  21488. word-break: break-word;
  21489. background: #ffffff;
  21490. border-radius: 8px 8px 8px 8px;
  21491. opacity: 1;
  21492. border: 1px solid #cad1dc;
  21493. overflow:hidden;
  21494. box-sizing:border-box;
  21495. }
  21496. .pb_content >>> .katex {
  21497. font-size: 16px;
  21498. width: 100%;
  21499. white-space: normal;
  21500. }
  21501. .pb_content >>> .katex .base{
  21502. display: inline !important;
  21503. display: contents !important;
  21504. }
  21505. .pb_content >>> .katex .base .cjk_fallback{
  21506. white-space: normal !important;
  21507. display: inline !important;
  21508. }
  21509. .file {
  21510. display: flex;
  21511. flex-direction: column;
  21512. align-items: center;
  21513. justify-content: center;
  21514. cursor: pointer;
  21515. width: 200px;
  21516. }
  21517. .file div {
  21518. margin-top: 10px;
  21519. width: 150px;
  21520. text-align: center;
  21521. overflow: hidden;
  21522. white-space: nowrap;
  21523. text-overflow: ellipsis;
  21524. }
  21525. .media {
  21526. display: flex;
  21527. flex-direction: column;
  21528. align-items: center;
  21529. justify-content: center;
  21530. margin: 0 20px 20px 0;
  21531. cursor: pointer;
  21532. margin: 12px 0 5px 15px;
  21533. overflow: hidden;
  21534. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21535. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21536. box-sizing: border-box;
  21537. }
  21538. .media img {
  21539. height: 90px;
  21540. width: 160px;
  21541. object-fit: cover;
  21542. }
  21543. .media .title {
  21544. padding: 5px;
  21545. text-align: left;
  21546. width: 100%;
  21547. box-sizing: border-box;
  21548. }
  21549. .media .btn {
  21550. width: 100%;
  21551. height: 35px;
  21552. line-height: 35px;
  21553. color: #fff;
  21554. background: #606060;
  21555. text-align: center;
  21556. overflow: hidden;
  21557. white-space: nowrap;
  21558. text-overflow: ellipsis;
  21559. }
  21560. .detail_content_top {
  21561. width: 100%;
  21562. padding: 25px 0 25px 0;
  21563. }
  21564. .detail_title {
  21565. text-align: center;
  21566. font-size: 24px;
  21567. }
  21568. .detail_time {
  21569. font-size: 13px;
  21570. padding: 15px 0 0 40px;
  21571. }
  21572. .detail_content {
  21573. line-height: 2pc;
  21574. width: 90%;
  21575. margin: 0 auto;
  21576. padding-top: 30px;
  21577. text-indent: 30px;
  21578. overflow: auto;
  21579. height: 200px;
  21580. }
  21581. .score_box >>> .el-rate {
  21582. margin-left: 10px;
  21583. }
  21584. .dialog_change >>> .el-dialog {
  21585. border-radius: 5px;
  21586. }
  21587. .dialog_change >>> .el-dialog__header {
  21588. background: #f2f2f2;
  21589. text-align: center;
  21590. }
  21591. .dialog_change >>> .el-dialog__title {
  21592. line-height: 5px;
  21593. }
  21594. .dialog_change >>> .el-dialog__body {
  21595. background: #fff;
  21596. padding: 10px 20px;
  21597. }
  21598. .score_box {
  21599. display: flex;
  21600. align-items: center;
  21601. margin-bottom: 18px;
  21602. margin-top: 20px;
  21603. }
  21604. .up_photo {
  21605. width: 120px;
  21606. cursor: pointer;
  21607. margin-top: 10px;
  21608. }
  21609. .up_photo2 {
  21610. width: 180px;
  21611. box-sizing: border-box;
  21612. min-width: 180px;
  21613. height: 180px;
  21614. max-height: 180px;
  21615. min-height: 180px;
  21616. cursor: pointer;
  21617. display: flex;
  21618. flex-direction: column;
  21619. align-items: center;
  21620. justify-content: center;
  21621. background: rgb(242, 246, 255);
  21622. /* padding: 25px; */
  21623. margin-bottom: 10px;
  21624. }
  21625. .up_photo2 img {
  21626. width: 50%;
  21627. height: auto;
  21628. }
  21629. .up_photo2 span {
  21630. color: #898989;
  21631. }
  21632. .plworkBox {
  21633. display: flex;
  21634. align-items: center;
  21635. margin-top: 10px;
  21636. flex-wrap: wrap;
  21637. }
  21638. .upload_send {
  21639. margin: 30px auto 30px;
  21640. width: 60%;
  21641. background: #3681fc;
  21642. text-align: center;
  21643. height: 35px;
  21644. line-height: 35px;
  21645. color: #fff;
  21646. border-radius: 5px;
  21647. cursor: pointer;
  21648. }
  21649. .marginT {
  21650. margin-top: 20px;
  21651. }
  21652. .cd_content_steps {
  21653. display: flex;
  21654. width: 90%;
  21655. justify-content: space-around;
  21656. border-top: 1px solid #eeeeee;
  21657. }
  21658. .cd_steps_box {
  21659. display: flex;
  21660. justify-content: center;
  21661. align-items: center;
  21662. flex-direction: column;
  21663. cursor: pointer;
  21664. }
  21665. .first {
  21666. display: flex;
  21667. align-items: center;
  21668. margin: 15px 0 20px 0;
  21669. font-size: 20px;
  21670. }
  21671. .first > div:nth-child(2) {
  21672. font-size: 16px !important;
  21673. padding-left: 10px;
  21674. line-height: 26px;
  21675. box-sizing: border-box;
  21676. }
  21677. .blue_box_one {
  21678. text-align: center;
  21679. color: #fff;
  21680. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  21681. border-radius: 7px;
  21682. margin: 10px;
  21683. cursor: pointer;
  21684. width: 95%;
  21685. height: 45px;
  21686. display: flex;
  21687. flex-direction: row;
  21688. justify-content: flex-start;
  21689. align-items: center;
  21690. }
  21691. .blue_box_one > div:nth-child(1) {
  21692. line-height: 30px;
  21693. margin: 0 5px 0 10px;
  21694. width: 30%;
  21695. min-width: 70px;
  21696. border-radius: 4px;
  21697. }
  21698. .blue_box_one > div:nth-child(2) {
  21699. white-space: nowrap;
  21700. text-overflow: ellipsis;
  21701. overflow: hidden;
  21702. word-break: break-all;
  21703. width: 70%;
  21704. text-align: left;
  21705. margin-right: 10px;
  21706. max-width: calc(100% - 85px);
  21707. }
  21708. .blue_box_one > div:nth-child(2):hover {
  21709. overflow: hidden;
  21710. text-overflow: ellipsis;
  21711. white-space: nowrap;
  21712. cursor: pointer;
  21713. }
  21714. .upFile {
  21715. margin: 0 auto;
  21716. width: 120px;
  21717. background: #3681fc;
  21718. color: #fff;
  21719. height: 30px;
  21720. text-align: center;
  21721. line-height: 30px;
  21722. border-radius: 5px;
  21723. font-size: 14px;
  21724. cursor: pointer;
  21725. }
  21726. .courseTitle {
  21727. width: 85%;
  21728. margin: 10px auto 26px auto;
  21729. display: flex;
  21730. flex-direction: row;
  21731. align-items: center;
  21732. justify-content: space-between;
  21733. text-align: center;
  21734. }
  21735. .courseTitle .ctitle {
  21736. font-size: 20px;
  21737. font-weight: bold;
  21738. color: #0e1e33;
  21739. white-space: nowrap;
  21740. overflow: hidden;
  21741. text-overflow: ellipsis;
  21742. }
  21743. .inviteBox {
  21744. font-size: 14px;
  21745. /* margin-top: 5px; */
  21746. color: #00000099;
  21747. text-align: center;
  21748. }
  21749. .courseTitle >>> .el-tooltip {
  21750. width: 100%;
  21751. white-space: nowrap;
  21752. overflow: hidden;
  21753. text-overflow: ellipsis;
  21754. word-break: break-word;
  21755. }
  21756. .ml {
  21757. margin-left: 20px;
  21758. color: #5b7dba;
  21759. border-left: 3px solid #5b7dba;
  21760. padding-left: 5px;
  21761. font-weight: bold;
  21762. }
  21763. .return {
  21764. width: 2rem;
  21765. height: 2rem;
  21766. cursor: pointer;
  21767. }
  21768. .return > img {
  21769. width: 100%;
  21770. height: 100%;
  21771. }
  21772. .returnBtn {
  21773. /* width: 86px; */
  21774. /* height: 36px; */
  21775. background: #3681fc;
  21776. border-radius: 4px;
  21777. color: #fff;
  21778. text-align: center;
  21779. padding: 8px 10px;
  21780. /* line-height: 36px; */
  21781. margin-right: 20px;
  21782. cursor: pointer;
  21783. font-size: 14px;
  21784. font-weight: 400;
  21785. display: flex;
  21786. flex-direction: row;
  21787. flex-wrap: nowrap;
  21788. align-items: center;
  21789. justify-content: center;
  21790. }
  21791. .reBtnIcon,
  21792. .commentIcon,
  21793. .vedioIcon,
  21794. .vedioIcon1 {
  21795. /* width: 36px; */
  21796. height: 36px;
  21797. border-radius: 4px;
  21798. position: relative;
  21799. /* background: #e0eafb; */
  21800. background: #0061ff;
  21801. cursor: pointer;
  21802. margin-right: 12px;
  21803. display: flex;
  21804. align-items: center;
  21805. padding: 0 10px;
  21806. box-sizing: border-box;
  21807. font-size: 14px;
  21808. color: #fff;
  21809. }
  21810. .reBtnIcon::before,
  21811. .commentIcon::before,
  21812. .vedioIcon::before,
  21813. .vedioIcon1::before {
  21814. content: "";
  21815. display: block;
  21816. background-size: 100% 100%;
  21817. background-repeat: no-repeat;
  21818. width: 20px;
  21819. height: 20px;
  21820. margin-right: 5px;
  21821. /* position: absolute; */
  21822. /* top: 8px;
  21823. left: 8px; */
  21824. }
  21825. .vedioIcon1 {
  21826. background: #f63564;
  21827. }
  21828. .reBtnIcon::before {
  21829. background-image: url("../../assets/icon/newIcons/refresh.png");
  21830. }
  21831. .commentIcon::before {
  21832. background-image: url("../../assets/icon/newIcons/comment.png");
  21833. }
  21834. .vedioIcon::before {
  21835. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21836. }
  21837. .vedioIcon1::before {
  21838. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  21839. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21840. }
  21841. .tool {
  21842. display: flex;
  21843. flex-direction: column;
  21844. flex-wrap: nowrap;
  21845. width: 13%;
  21846. margin: 0 30px;
  21847. align-items: center;
  21848. position: relative;
  21849. padding: 10px 25px;
  21850. cursor: pointer;
  21851. }
  21852. .whiteBIcon {
  21853. width: 150px;
  21854. }
  21855. .whiteBIcon > img {
  21856. width: 100%;
  21857. height: 100%;
  21858. }
  21859. .mask {
  21860. background-color: rgba(0, 0, 0, 0);
  21861. position: fixed;
  21862. top: 0;
  21863. left: 0;
  21864. width: 100%;
  21865. height: 100%;
  21866. z-index: 20000;
  21867. display: flex;
  21868. align-items: center;
  21869. justify-content: center;
  21870. }
  21871. .progressBox {
  21872. width: 500px;
  21873. height: 180px;
  21874. background: #fff;
  21875. border-radius: 10px;
  21876. box-shadow: 0 0 6px 1px #bfbfbf;
  21877. display: flex;
  21878. align-items: center;
  21879. justify-content: center;
  21880. flex-direction: column;
  21881. position: relative;
  21882. color: #6c6c6c;
  21883. }
  21884. .progressBox >>> .el-progress-bar__outer {
  21885. background-color: #d1dfff !important;
  21886. }
  21887. .progressBox .lbox {
  21888. height: 50px;
  21889. font-size: 19px;
  21890. display: flex;
  21891. align-items: center;
  21892. color: #747474;
  21893. }
  21894. .progressBox .lbox img {
  21895. width: 40px;
  21896. margin-right: 20px;
  21897. }
  21898. .closeCss {
  21899. position: absolute;
  21900. top: 8px;
  21901. right: 8px;
  21902. cursor: pointer;
  21903. width: 20px;
  21904. height: 20px;
  21905. }
  21906. .closeCss > img {
  21907. width: 100%;
  21908. height: 100%;
  21909. }
  21910. .uploadVedio {
  21911. display: flex;
  21912. flex-direction: column;
  21913. flex-wrap: nowrap;
  21914. justify-content: center;
  21915. align-items: center;
  21916. margin: 0 15px 10px 0;
  21917. }
  21918. .uploadVedio > img {
  21919. width: 30px;
  21920. height: 30px;
  21921. }
  21922. .uploadVedio > span {
  21923. white-space: nowrap;
  21924. overflow: hidden;
  21925. text-overflow: ellipsis;
  21926. width: 75px;
  21927. margin-top: 7px;
  21928. }
  21929. .picName {
  21930. white-space: nowrap;
  21931. overflow: hidden;
  21932. text-overflow: ellipsis;
  21933. width: 75px;
  21934. margin-top: 7px;
  21935. }
  21936. .new_top {
  21937. display: flex;
  21938. background: #fff;
  21939. flex-direction: row;
  21940. justify-content: flex-start;
  21941. align-items: center;
  21942. height: 60px;
  21943. position: fixed;
  21944. top: 20px;
  21945. left: 22%;
  21946. width: 77%;
  21947. z-index: 999;
  21948. border-radius: 12px 12px 0 0;
  21949. border-bottom: 1px solid #cad1dc;
  21950. padding: 10px 0;
  21951. }
  21952. .new_topFixed {
  21953. width: 100%;
  21954. height: 40px;
  21955. position: fixed;
  21956. top: 0px;
  21957. display: block;
  21958. background: #f2f2f2;
  21959. z-index: 998;
  21960. }
  21961. .before {
  21962. position: absolute;
  21963. background: #c3dad4;
  21964. width: 6px;
  21965. height: 100%;
  21966. }
  21967. .courseIndex {
  21968. display: flex;
  21969. flex-direction: row;
  21970. align-items: center;
  21971. width: calc(100% - 745px);
  21972. }
  21973. .courseIndex > div:nth-child(1) {
  21974. margin: 0 0 0 10px;
  21975. font-size: 20px;
  21976. min-width: 100px;
  21977. font-weight: bold;
  21978. border-left: 4px solid #3363b9;
  21979. height: 32px;
  21980. text-align: center;
  21981. line-height: 35px;
  21982. }
  21983. .courseIndex > div:nth-child(2) {
  21984. font-size: 20px;
  21985. /* width: 300px; */
  21986. max-width: calc(100% - 105px);
  21987. white-space: nowrap;
  21988. overflow: hidden;
  21989. text-overflow: ellipsis;
  21990. }
  21991. .courseIndex > div:nth-child(3) {
  21992. border-bottom: 1px solid #d7d7d7;
  21993. padding-bottom: 5px;
  21994. background: #3681fc;
  21995. width: 55px;
  21996. min-width: 55px;
  21997. border-radius: 5px;
  21998. color: #fff;
  21999. text-align: center;
  22000. height: 20px;
  22001. line-height: 26px;
  22002. font-size: 14px;
  22003. margin: 0 0 0 10px;
  22004. }
  22005. .course_text {
  22006. padding: 20px 0 0 15px;
  22007. text-indent: 30px;
  22008. width: 80%;
  22009. min-height: 20px;
  22010. }
  22011. .vedioList {
  22012. background: #f2f2f2;
  22013. border: 1px solid #ececec;
  22014. /* width: 38.8%; */
  22015. /* width: 300px; */
  22016. width: 100%;
  22017. height: 445px;
  22018. border-radius: 10px;
  22019. overflow: hidden;
  22020. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22021. }
  22022. .vedioNav {
  22023. margin: 10px 0 0 15px;
  22024. border-bottom: 1px solid #d7d7d7;
  22025. padding-bottom: 5px;
  22026. background: #3681fc;
  22027. width: 55px;
  22028. min-width: 55px;
  22029. border-radius: 5px;
  22030. color: #fff;
  22031. text-align: center;
  22032. height: 20px;
  22033. line-height: 26px;
  22034. font-size: 14px;
  22035. }
  22036. .queTop {
  22037. display: flex;
  22038. padding: 20px 0 20px 30px;
  22039. width: 100%;
  22040. flex-direction: row;
  22041. justify-content: flex-start;
  22042. align-items: center;
  22043. box-sizing: border-box;
  22044. }
  22045. .queTopTitle {
  22046. display: flex;
  22047. flex-direction: row;
  22048. flex-wrap: nowrap;
  22049. align-items: center;
  22050. font-weight: bold;
  22051. font-size: 20px;
  22052. color: rgb(14, 30, 51);
  22053. }
  22054. .queTopTitle::before {
  22055. content: "";
  22056. width: 2px;
  22057. height: 22px;
  22058. background: #3681fc;
  22059. border-radius: 3px;
  22060. display: block;
  22061. margin: 2px 6px 0 0;
  22062. }
  22063. .queTopRight {
  22064. display: flex;
  22065. flex-direction: row;
  22066. flex-wrap: nowrap;
  22067. align-items: center;
  22068. }
  22069. .queTopClose {
  22070. margin-right: 20px;
  22071. cursor: pointer;
  22072. position: relative;
  22073. display: flex;
  22074. }
  22075. .closeImg,
  22076. .openImg {
  22077. width: 25px;
  22078. height: 25px;
  22079. position: absolute;
  22080. left: -20px;
  22081. top: -1px;
  22082. }
  22083. .closeImg > img,
  22084. .openImg > img {
  22085. width: 100%;
  22086. height: 100%;
  22087. }
  22088. .question {
  22089. width: 40px;
  22090. margin-right: 10px;
  22091. margin-top: 7px;
  22092. flex-shrink: 0;
  22093. }
  22094. .queTitle {
  22095. margin-left: 5px;
  22096. font-size: 25px;
  22097. display: flex;
  22098. align-items: center;
  22099. }
  22100. .queTitle > div:nth-child(1){
  22101. width: 120px;
  22102. flex-shrink: 0;
  22103. }
  22104. .addEditor {
  22105. width: 100px;
  22106. height: 30px;
  22107. background: #42cda6;
  22108. color: #fff;
  22109. border-radius: 5px;
  22110. text-align: center;
  22111. line-height: 30px;
  22112. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22113. cursor: pointer;
  22114. }
  22115. /* .vedioName {
  22116. cursor: pointer;
  22117. margin: 0px 0px 10px 5px;
  22118. white-space: nowrap;
  22119. overflow: hidden;
  22120. text-overflow: ellipsis;
  22121. width: 100%;
  22122. } */
  22123. .vedioTime {
  22124. width: 35px;
  22125. position: absolute;
  22126. color: #fff;
  22127. bottom: 0px;
  22128. right: 0px;
  22129. text-align: center;
  22130. background: #46411f;
  22131. height: 20px;
  22132. font-size: 14px;
  22133. line-height: 20px;
  22134. }
  22135. .homework {
  22136. width: 200px;
  22137. display: flex;
  22138. flex-direction: column;
  22139. flex-wrap: nowrap;
  22140. align-items: center;
  22141. cursor: pointer;
  22142. }
  22143. .homebox {
  22144. display: flex;
  22145. flex-wrap: wrap;
  22146. flex-direction: row;
  22147. justify-content: flex-start;
  22148. align-items: center;
  22149. padding: 15px 0;
  22150. }
  22151. .isChooseActive {
  22152. color: #3681fc !important;
  22153. font-weight: bold !important;
  22154. }
  22155. .chooseWho {
  22156. display: flex;
  22157. width: 100%;
  22158. flex-direction: row;
  22159. flex-wrap: nowrap;
  22160. justify-content: flex-start;
  22161. padding-bottom: 10px;
  22162. }
  22163. .chooseWho > div {
  22164. cursor: pointer;
  22165. padding-bottom: 10px;
  22166. margin: 0 30px 0 0;
  22167. font-weight: 400;
  22168. color: #0e1e33;
  22169. }
  22170. .addPoint > div > img {
  22171. cursor: pointer;
  22172. width: 85px;
  22173. border-radius: 15px;
  22174. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22175. }
  22176. .addPoint > div {
  22177. display: flex;
  22178. flex-direction: column;
  22179. flex-wrap: nowrap;
  22180. align-items: center;
  22181. }
  22182. .isBorder > div {
  22183. margin: 0 0 10px 0;
  22184. align-items: flex-start !important;
  22185. }
  22186. .noiframeBox {
  22187. display: flex;
  22188. flex-wrap: wrap;
  22189. }
  22190. .iframeBox iframe {
  22191. width: 100%;
  22192. height: 800px;
  22193. border: none;
  22194. margin-bottom: 20px;
  22195. border: 1px solid #ccc;
  22196. }
  22197. .upload_toolBtn {
  22198. background: #3681fc;
  22199. color: #fff;
  22200. width: 110px;
  22201. text-align: center;
  22202. height: 35px;
  22203. line-height: 35px;
  22204. font-size: 14px;
  22205. border-radius: 5px;
  22206. cursor: pointer;
  22207. position: absolute;
  22208. right: 10px;
  22209. bottom: 0;
  22210. }
  22211. .binfo_input,
  22212. .pj {
  22213. font: inherit;
  22214. color: currentColor;
  22215. width: 100%;
  22216. margin: 0;
  22217. padding: 15px 14px;
  22218. display: block;
  22219. min-width: 0;
  22220. outline: none;
  22221. box-sizing: content-box;
  22222. background: none;
  22223. -webkit-tap-highlight-color: transparent;
  22224. border: 1px solid rgba(0, 0, 0, 0.23);
  22225. border-radius: 4px;
  22226. box-sizing: border-box;
  22227. resize: none;
  22228. }
  22229. .binfo_input:focus-visible {
  22230. border: 1px solid rgba(61, 103, 188);
  22231. }
  22232. .dialog_diy >>> .el-dialog__header,
  22233. .dialog_diy1 >>> .el-dialog__header {
  22234. background: #454545 !important;
  22235. padding: 15px 20px;
  22236. }
  22237. .dialog_diy >>> .el-dialog__title,
  22238. .dialog_diy1 >>> .el-dialog__title {
  22239. color: #fff;
  22240. }
  22241. .dialog_diy >>> .el-dialog__headerbtn,
  22242. .dialog_diy1 >>> .el-dialog__headerbtn {
  22243. top: 19px;
  22244. }
  22245. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22246. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22247. color: #fff;
  22248. }
  22249. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22250. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22251. color: #fff;
  22252. }
  22253. .dialog_diy1 >>> .el-dialog__body {
  22254. padding: 0;
  22255. }
  22256. .dialog_diy >>> .el-dialog__body,
  22257. .dialog_diy >>> .el-dialog__footer,
  22258. .dialog_diy1 >>> .el-dialog__footer {
  22259. background: #fafafa;
  22260. }
  22261. .a_addBox {
  22262. padding: 0 0 0 15px;
  22263. }
  22264. .a_add_box {
  22265. padding: 10px;
  22266. background: #fff;
  22267. margin-bottom: 10px;
  22268. border-radius: 5px;
  22269. box-shadow: 0 0 5px 0 #d5d5d5;
  22270. }
  22271. .a_add_head {
  22272. display: flex;
  22273. align-items: flex-start;
  22274. /* justify-content: space-between; */
  22275. flex-direction: column;
  22276. /* flex-direction: row; */
  22277. margin: 10px 0 20px 0;
  22278. font-size: 18px;
  22279. width: 100%;
  22280. }
  22281. .askIndex {
  22282. background: #3681fc;
  22283. border-radius: 50%;
  22284. color: #fff;
  22285. width: 25px;
  22286. height: 25px;
  22287. min-width: 25px;
  22288. min-height: 25px;
  22289. text-align: center;
  22290. line-height: 25px;
  22291. margin-right: 5px;
  22292. }
  22293. .a_add_head .a_add_head_input {
  22294. width: 300px;
  22295. }
  22296. .a_add_head .a_add_head_div {
  22297. display: flex;
  22298. align-items: center;
  22299. justify-content: space-between;
  22300. }
  22301. .a_add_body {
  22302. display: flex;
  22303. align-items: center;
  22304. }
  22305. .a_add_input {
  22306. display: flex;
  22307. align-items: center;
  22308. flex-wrap: wrap;
  22309. width: 100%;
  22310. }
  22311. .a_add_input >>> .el-radio-group,
  22312. .a_add_input >>> .el-checkbox-group {
  22313. width: 100%;
  22314. }
  22315. .a_add_input >>> .el-radio,
  22316. .a_add_input >>> .el-checkbox {
  22317. display: flex;
  22318. flex-direction: row;
  22319. flex-wrap: nowrap;
  22320. align-items: center;
  22321. padding: 15px 0;
  22322. }
  22323. .a_add_input >>> .el-radio:not(:last-child),
  22324. .a_add_input >>> .el-checkbox:not(:last-child) {
  22325. width: 100%;
  22326. border-bottom: 1px solid #efefef;
  22327. }
  22328. .redioStyle >>> .el-radio__label {
  22329. font-size: 18px;
  22330. }
  22331. .redioStyle >>> .el-radio__label > span,
  22332. .redioStyle >>> .el-checkbox__label > span {
  22333. word-break: break-all;
  22334. white-space: normal;
  22335. }
  22336. .redioStyle >>> .el-checkbox__label {
  22337. font-size: 18px;
  22338. }
  22339. .toolHeng2 {
  22340. width: 100%;
  22341. padding-left: 15px;
  22342. box-sizing: border-box;
  22343. }
  22344. .workNav {
  22345. font-size: 20px;
  22346. font-weight: bold;
  22347. color: #0e1e33;
  22348. display: flex;
  22349. flex-direction: row;
  22350. flex-wrap: nowrap;
  22351. align-items: center;
  22352. padding: 15px 0 15px 0;
  22353. }
  22354. .workNav::before {
  22355. content: "";
  22356. width: 2px;
  22357. height: 22px;
  22358. background: #3681fc;
  22359. border-radius: 3px;
  22360. display: block;
  22361. margin: 2px 6px 0 0;
  22362. }
  22363. .toolHeng {
  22364. display: flex;
  22365. flex-direction: row;
  22366. flex-wrap: wrap;
  22367. justify-content: flex-start;
  22368. align-items: center;
  22369. width: 100%;
  22370. }
  22371. .toolHeng > div {
  22372. padding-left: 20px;
  22373. }
  22374. .isWidth {
  22375. width: 20%;
  22376. }
  22377. .textTitle {
  22378. display: flex;
  22379. flex-direction: row;
  22380. flex-wrap: nowrap;
  22381. align-items: center;
  22382. width: 95%;
  22383. }
  22384. .textTitle >>> .el-form-item__label {
  22385. font-size: 22px;
  22386. color: #918f8f;
  22387. width: 100px;
  22388. }
  22389. .textTitle >>> .el-form-item__content {
  22390. width: calc(100% - 100px);
  22391. }
  22392. .textCss >>> .el-dialog {
  22393. width: 800px !important;
  22394. height: 400px;
  22395. background: #fafafa;
  22396. }
  22397. .textCss >>> .el-dialog__body {
  22398. margin: 55px 8% 0 8%;
  22399. padding: 0 !important;
  22400. }
  22401. .textCss >>> .el-dialog__footer {
  22402. padding-top: 38px;
  22403. }
  22404. .toolsCss >>> .el-dialog__body {
  22405. padding: 20px;
  22406. }
  22407. .lineCss >>> .el-dialog__body {
  22408. display: flex;
  22409. flex-direction: row;
  22410. align-items: center;
  22411. justify-content: center;
  22412. }
  22413. .newNav {
  22414. display: flex;
  22415. flex-direction: row;
  22416. align-items: baseline;
  22417. justify-content: flex-start;
  22418. }
  22419. .navListItem {
  22420. width: calc(100% - 20px);
  22421. height: 50px;
  22422. margin: 0px auto 10px;
  22423. display: flex;
  22424. flex-direction: row;
  22425. flex-wrap: nowrap;
  22426. align-items: center;
  22427. justify-content: space-between;
  22428. background: #f0f4fa;
  22429. border-radius: 6px 6px 6px 6px;
  22430. }
  22431. .navText {
  22432. cursor: pointer;
  22433. white-space: nowrap;
  22434. overflow: hidden;
  22435. text-overflow: ellipsis;
  22436. width: 220px;
  22437. padding: 0 10px;
  22438. font-weight: 400;
  22439. color: #0e1e33;
  22440. }
  22441. .downIcon {
  22442. width: 20px;
  22443. min-width: 20px;
  22444. height: 20px;
  22445. margin-right: 15px;
  22446. cursor: pointer;
  22447. }
  22448. .downIcon > img {
  22449. width: 100%;
  22450. height: 100%;
  22451. }
  22452. .noVedio {
  22453. display: flex;
  22454. flex-direction: row;
  22455. justify-content: center;
  22456. align-content: center;
  22457. }
  22458. .noNavText {
  22459. cursor: pointer;
  22460. margin: 0px 0px 10px 5px;
  22461. width: 112px;
  22462. }
  22463. .listNoVedio {
  22464. margin: 0 0 0 30px;
  22465. width: 97%;
  22466. }
  22467. .video-player >>> .video-js {
  22468. height: 100%;
  22469. }
  22470. .hangVedioList {
  22471. width: 90% !important;
  22472. height: 150px !important;
  22473. margin: 20px 0 0 30px;
  22474. }
  22475. .hangVedio {
  22476. width: 100%;
  22477. height: 170px !important;
  22478. align-items: flex-start !important;
  22479. }
  22480. .hangHand {
  22481. height: 150px !important;
  22482. }
  22483. .twoChild {
  22484. width: 95%;
  22485. margin: 10px;
  22486. border-radius: 5px;
  22487. background: #f2f2f2;
  22488. display: flex;
  22489. flex-direction: column;
  22490. flex-wrap: nowrap;
  22491. justify-content: flex-start;
  22492. align-items: flex-start;
  22493. transition: all 0.5s;
  22494. overflow: hidden;
  22495. height: 0;
  22496. background: #e7f3ff;
  22497. }
  22498. .twoChild > div:nth-child(1) {
  22499. margin-top: 5px;
  22500. }
  22501. .navChild {
  22502. width: 100%;
  22503. cursor: pointer;
  22504. margin-bottom: 10px;
  22505. position: relative;
  22506. }
  22507. .navChild img {
  22508. position: absolute;
  22509. right: 11px;
  22510. width: 15px;
  22511. top: 50%;
  22512. transform: translateY(-50%);
  22513. }
  22514. .navActive,
  22515. .toolActive {
  22516. height: auto !important;
  22517. overflow: auto !important;
  22518. /* padding-bottom: 16px; */
  22519. }
  22520. .toolActive {
  22521. padding: 0;
  22522. }
  22523. .navTask {
  22524. display: flex;
  22525. flex-direction: row;
  22526. flex-wrap: nowrap;
  22527. align-items: center;
  22528. align-content: flex-start;
  22529. height: 40px;
  22530. justify-content: flex-start;
  22531. padding: 0 10px;
  22532. width: 100%;
  22533. box-sizing: border-box;
  22534. }
  22535. .navTaskname {
  22536. white-space: nowrap;
  22537. text-overflow: ellipsis;
  22538. overflow: hidden;
  22539. word-break: break-all;
  22540. padding-left: 5px;
  22541. }
  22542. .openTaskActive {
  22543. /* background-color: #e0eafb !important;
  22544. color: #0061ff; */
  22545. color:#fff;
  22546. background: rgb(55, 129, 252) !important;
  22547. }
  22548. .iframeName {
  22549. margin: 5px 0;
  22550. border-left: 4px solid #41c4a4;
  22551. padding-left: 4px;
  22552. }
  22553. .toolTitle {
  22554. margin: 0px 0px 20px;
  22555. font-size: 20px;
  22556. font-weight: 500;
  22557. border-left: 4px solid #41c4a4;
  22558. padding-left: 4px;
  22559. }
  22560. .cru_selectBox {
  22561. overflow: auto;
  22562. width: 95%;
  22563. margin: 17px auto 0;
  22564. height: calc(100% - 40px - 21px - 20px - 17px);
  22565. background: #fff;
  22566. border-radius: 8px;
  22567. }
  22568. .cru_selectBox::-webkit-scrollbar,
  22569. .study_top::-webkit-scrollbar,
  22570. .textContent::-webkit-scrollbar {
  22571. /*滚动条整体样式*/
  22572. width: 6px;
  22573. /*高宽分别对应横竖滚动条的尺寸*/
  22574. height: 6px;
  22575. }
  22576. /*定义滚动条轨道 内阴影+圆角*/
  22577. .cru_selectBox::-webkit-scrollbar-track,
  22578. .study_top::-webkit-scrollbar-track,
  22579. .textContent::-webkit-scrollbar {
  22580. border-radius: 10px;
  22581. background-color: #b8bdc9;
  22582. }
  22583. /*定义滑块 内阴影+圆角*/
  22584. .cru_selectBox::-webkit-scrollbar-thumb,
  22585. .study_top::-webkit-scrollbar-thumb,
  22586. .textContent::-webkit-scrollbar-thumb {
  22587. border-radius: 10px;
  22588. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22589. background-color: #2c5ab3;
  22590. }
  22591. .vedioBox {
  22592. border-radius: 0 0 20px 20px;
  22593. background: #fff;
  22594. overflow: auto;
  22595. }
  22596. .taskBox {
  22597. width: 98%;
  22598. background: #f0f4fa;
  22599. margin: 10px auto;
  22600. padding: 0 10px;
  22601. border-radius: 4px;
  22602. box-sizing: border-box;
  22603. }
  22604. .vedioTaskBox {
  22605. width: 100%;
  22606. display: flex;
  22607. flex-direction: row;
  22608. flex-wrap: nowrap;
  22609. align-items: flex-start;
  22610. position: relative;
  22611. }
  22612. .toolBox {
  22613. margin: 15px 0 0 25px;
  22614. display: flex;
  22615. position: relative;
  22616. padding: 18px 20px;
  22617. border-top-left-radius: 5px;
  22618. border-top-right-radius: 5px;
  22619. width: 90%;
  22620. }
  22621. .btnAll {
  22622. position: absolute;
  22623. right: 0;
  22624. display: flex;
  22625. flex-direction: row;
  22626. flex-wrap: nowrap;
  22627. align-items: center;
  22628. }
  22629. .btnLeft,
  22630. .btnRight {
  22631. display: flex;
  22632. flex-direction: row;
  22633. flex-wrap: nowrap;
  22634. align-items: center;
  22635. padding: 5px 0;
  22636. }
  22637. .btnLeft {
  22638. border-right: 1px solid #cad1dc;
  22639. }
  22640. .btnLeft > .custom-tooltip {
  22641. background: #3681fc;
  22642. color: #fff;
  22643. }
  22644. .last:hover {
  22645. background: #3383fa !important;
  22646. color: #fff;
  22647. border: 1px solid #3383fa !important;
  22648. }
  22649. .last,
  22650. .returnBtn1 {
  22651. width: 90px;
  22652. height: 36px;
  22653. background: #ffffff;
  22654. border-radius: 4px;
  22655. border: 1px solid #0061ff;
  22656. color: #0061ff;
  22657. cursor: pointer;
  22658. display: flex;
  22659. flex-direction: row;
  22660. flex-wrap: nowrap;
  22661. align-items: center;
  22662. justify-content: center;
  22663. margin-left: 12px;
  22664. }
  22665. .returnBtn1 {
  22666. background: #f0f4fa;
  22667. border-radius: 4px;
  22668. border: 1px solid #cad1dc;
  22669. margin: 0 12px;
  22670. }
  22671. .lastImg {
  22672. min-width: 15px;
  22673. width: 15px;
  22674. height: 15px;
  22675. display: flex;
  22676. }
  22677. .lastText {
  22678. padding: 0 5px 0 5px;
  22679. box-sizing: border-box;
  22680. font-size: 14px;
  22681. }
  22682. .lastImg > img {
  22683. width: 100%;
  22684. height: 100%;
  22685. }
  22686. /* .vedioTimeBox {
  22687. display: flex;
  22688. flex-direction: row;
  22689. align-items: center;
  22690. flex-wrap: nowrap;
  22691. position: relative;
  22692. } */
  22693. .navBox {
  22694. background: #fff;
  22695. height: calc(100% - 40px);
  22696. overflow-y: auto;
  22697. overflow-x: hidden;
  22698. }
  22699. .worksBox {
  22700. margin: 0 0 10px 25px;
  22701. border-bottom: 1px solid #eeeeee;
  22702. padding: 18px 20px;
  22703. border-radius: 4px;
  22704. width: 90%;
  22705. }
  22706. .worksBTitle {
  22707. font-size: 20px;
  22708. padding-bottom: 15px;
  22709. border-bottom: 1px solid #eeeeee;
  22710. display: flex;
  22711. align-items: center;
  22712. }
  22713. .greenBox {
  22714. width: 5px;
  22715. height: 30px;
  22716. background: #63b6fa;
  22717. margin-right: 5px;
  22718. }
  22719. .worksDetailBox {
  22720. display: flex;
  22721. width: 100%;
  22722. flex-direction: row;
  22723. flex-wrap: wrap;
  22724. align-items: flex-end;
  22725. justify-content: flex-start;
  22726. padding: 15px 5px;
  22727. box-sizing: border-box;
  22728. }
  22729. .works {
  22730. display: flex;
  22731. flex-direction: column;
  22732. flex-wrap: nowrap;
  22733. align-items: flex-start;
  22734. justify-content: flex-start;
  22735. align-content: center;
  22736. max-width: 240px;
  22737. width: calc(100% / 3 - 10px);
  22738. height: auto;
  22739. margin-right: 10px;
  22740. margin-bottom: 10px;
  22741. overflow: hidden;
  22742. height: 140px;
  22743. box-shadow: 0 0 6px 1px #dfdada;
  22744. border-radius: 15px;
  22745. }
  22746. .workImg {
  22747. width: 100%;
  22748. /* height: calc(100% - 40px); */
  22749. height: 105px;
  22750. position: relative;
  22751. }
  22752. .workImg > img {
  22753. width: 100%;
  22754. height: 100%;
  22755. object-fit: contain;
  22756. cursor: pointer;
  22757. }
  22758. .worksName {
  22759. height: 40px;
  22760. line-height: 40px;
  22761. display: flex;
  22762. width: 100%;
  22763. flex-direction: row;
  22764. flex-wrap: nowrap;
  22765. justify-content: space-between;
  22766. align-items: center;
  22767. margin: 0 0 0 10px;
  22768. }
  22769. .worksName > div:nth-child(1) {
  22770. width: 110px;
  22771. white-space: nowrap;
  22772. overflow: hidden;
  22773. text-overflow: ellipsis;
  22774. }
  22775. .worksName > div:nth-child(2) {
  22776. color: #b7b4b5;
  22777. }
  22778. .noWorksS {
  22779. padding: 15px 0;
  22780. display: flex;
  22781. flex-direction: row;
  22782. flex-wrap: wrap;
  22783. align-items: center;
  22784. justify-content: flex-start;
  22785. }
  22786. .noWorksName,
  22787. .isWorksName,
  22788. .isWorksName2 {
  22789. background: #ddebf8;
  22790. color: #000;
  22791. width: 90px;
  22792. height: 25px;
  22793. text-align: center;
  22794. line-height: 25px;
  22795. border-radius: 4px;
  22796. margin: 10px 15px 10px 0;
  22797. white-space: nowrap;
  22798. overflow: hidden;
  22799. padding: 5px;
  22800. text-overflow: ellipsis;
  22801. cursor: pointer;
  22802. border: 1px solid #ddebf8;
  22803. }
  22804. .noWorksName {
  22805. background: #fff;
  22806. color: #0061ff;
  22807. border: 1px solid #0061ff;
  22808. }
  22809. .noWorksName > span{
  22810. max-width: 100%;
  22811. display: block;
  22812. overflow: hidden;
  22813. text-overflow: ellipsis;
  22814. white-space: nowrap;
  22815. }
  22816. .noWorksName2 {
  22817. background: #fff;
  22818. color: #0061ff;
  22819. width: 90px;
  22820. height: 25px;
  22821. text-align: center;
  22822. line-height: 25px;
  22823. border-radius: 4px;
  22824. margin: 10px 15px 10px 0;
  22825. white-space: nowrap;
  22826. overflow: hidden;
  22827. padding: 5px;
  22828. text-overflow: ellipsis;
  22829. cursor: pointer;
  22830. border: 1px solid #0061ff;
  22831. }
  22832. .noWorksName2 > span {
  22833. max-width: 100%;
  22834. display: block;
  22835. overflow: hidden;
  22836. text-overflow: ellipsis;
  22837. white-space: nowrap;
  22838. }
  22839. .isWorksName2 {
  22840. width: 100px;
  22841. height: 40px;
  22842. line-height: 40px;
  22843. position: relative;
  22844. background: #dae6f9;
  22845. }
  22846. .isWorksName {
  22847. background: #e7ebf1 !important;
  22848. width: 100px;
  22849. height: 40px;
  22850. line-height: 40px;
  22851. position: relative;
  22852. color: #acb4bf;
  22853. border: 1px solid #cad1dc !important;
  22854. }
  22855. .isSelectName,
  22856. .noWorksName:hover {
  22857. background: #3383fa !important;
  22858. color: #fff !important;
  22859. border: 1px solid #3383fa !important;
  22860. }
  22861. .title {
  22862. background: #1e5cc9;
  22863. /* width: 98%; */
  22864. height: 45px;
  22865. color: #fff;
  22866. line-height: 45px;
  22867. padding-left: 20px;
  22868. box-sizing: border-box;
  22869. }
  22870. .textBox {
  22871. font-size: 20px;
  22872. width: 90%;
  22873. display: flex;
  22874. flex-direction: column;
  22875. align-items: center;
  22876. margin: 20px auto 0;
  22877. max-height: calc(100% - 75px);
  22878. overflow: auto;
  22879. }
  22880. .textContent {
  22881. font-size: 18px;
  22882. width: 95%;
  22883. max-width: 95%;
  22884. }
  22885. .answerBg {
  22886. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  22887. background-size: 100% 100%;
  22888. width: 100%;
  22889. height: 100%;
  22890. color: #fff;
  22891. text-align: center;
  22892. display: flex;
  22893. flex-direction: column;
  22894. flex-wrap: nowrap;
  22895. align-items: center;
  22896. position: relative;
  22897. justify-content: center;
  22898. }
  22899. /* .answerBg > div:nth-child(1) {
  22900. font-size: 22px;
  22901. padding: 25px 0 10px;
  22902. } */
  22903. .answerContent {
  22904. width: 215px;
  22905. max-height: 60px;
  22906. word-break: break-all;
  22907. text-align: center;
  22908. /* white-space: nowrap; */
  22909. overflow: hidden;
  22910. text-overflow: ellipsis;
  22911. /* padding: 23px 0 0; */
  22912. -webkit-line-clamp: 3;
  22913. -webkit-box-orient: vertical;
  22914. display: -webkit-box;
  22915. font-size: 15px;
  22916. cursor: pointer;
  22917. }
  22918. .elist_input_box {
  22919. display: flex;
  22920. align-items: flex-start;
  22921. flex-wrap: nowrap;
  22922. padding: 10px 0 15px 30px;
  22923. flex-direction: column;
  22924. }
  22925. .elist_input {
  22926. /* width: 40%; */
  22927. width: 45%;
  22928. margin: 20px;
  22929. }
  22930. .elist_input .elist_input_box input {
  22931. font: inherit;
  22932. color: currentColor;
  22933. width: 200px;
  22934. padding: 8px 14px;
  22935. display: block;
  22936. min-width: 0;
  22937. outline: none;
  22938. border: 1px solid rgba(0, 0, 0, 0.23);
  22939. border-radius: 4px;
  22940. box-sizing: border-box;
  22941. background: #fff;
  22942. margin: 0 20px 0 0;
  22943. }
  22944. .elist_input .elist_input_box span {
  22945. height: 36px;
  22946. line-height: 36px;
  22947. color: rgb(82, 82, 82);
  22948. }
  22949. .elist_input .elist_input_box .remove {
  22950. height: 20px;
  22951. width: 20px;
  22952. background-size: 100% 100%;
  22953. background-position: unset;
  22954. margin-left: 5px;
  22955. }
  22956. .elist_input_box >>> .el-rate {
  22957. display: flex;
  22958. height: 36px;
  22959. align-items: center;
  22960. }
  22961. .elist_input_box .elist_inptu_text {
  22962. min-height: 50px;
  22963. /* width: 500px;
  22964. max-height: 150px; */
  22965. width: 100%;
  22966. line-height: 50px;
  22967. color: rgb(82, 82, 82);
  22968. overflow: auto;
  22969. text-indent: 5px;
  22970. background: #f7f6f9;
  22971. border-radius: 10px;
  22972. }
  22973. .elist_input_box .elist_inptu_text input {
  22974. width: 500px;
  22975. }
  22976. .elist_input_box >>> .el-rate__icon {
  22977. font-size: 24px;
  22978. }
  22979. .isClick {
  22980. background: #4d9def;
  22981. }
  22982. .bzBox {
  22983. display: flex;
  22984. flex-direction: row;
  22985. align-items: center;
  22986. }
  22987. .bzBox .yCss {
  22988. width: 7px;
  22989. height: 7px;
  22990. background: #fff;
  22991. margin: 0 16px 0 6px;
  22992. border-radius: 50%;
  22993. border: 5px solid #3681fc;
  22994. z-index: 99;
  22995. }
  22996. .bzBox > div:nth-child(2) {
  22997. font-size: 18px;
  22998. font-weight: bold;
  22999. color: #0e1e33;
  23000. }
  23001. .navTitile {
  23002. padding: 0 0px 0 15px;
  23003. font-size: 16px;
  23004. font-weight: bold;
  23005. color: #0e1e33;
  23006. height: 40px;
  23007. line-height: 40px;
  23008. }
  23009. .isTypeOne {
  23010. width: 240px;
  23011. height: 170px;
  23012. /* border: 1px solid #f8f8f8; */
  23013. border-radius: 10px;
  23014. box-shadow: 0 0 6px 1px #dfdada;
  23015. }
  23016. .e_add_top {
  23017. display: flex;
  23018. justify-content: space-between;
  23019. padding: 10px 20px;
  23020. border-radius: 3px;
  23021. background: #fff;
  23022. }
  23023. .e_add_title2 {
  23024. display: flex;
  23025. align-items: center;
  23026. }
  23027. .e_add_title2 span {
  23028. width: 40px;
  23029. }
  23030. .e_add_title {
  23031. display: flex;
  23032. align-items: center;
  23033. color: #b8b8b8;
  23034. font-size: 18px;
  23035. position: relative;
  23036. height: 40px;
  23037. }
  23038. .e_add_title span {
  23039. margin-right: 10px;
  23040. }
  23041. .e_add_title .el_input {
  23042. width: 300px;
  23043. }
  23044. .e_add_title >>> .el-input__inner {
  23045. width: 400px;
  23046. }
  23047. /* .e_add_btn {
  23048. } */
  23049. .e_add_content {
  23050. display: flex;
  23051. width: 100%;
  23052. max-width: 650px;
  23053. height: 550px;
  23054. }
  23055. .e_add_list {
  23056. background: #fff;
  23057. height: 500px;
  23058. width: 210px;
  23059. position: relative;
  23060. margin: 15px 5px 0 0;
  23061. flex-shrink: 0;
  23062. display: flex;
  23063. flex-direction: column;
  23064. }
  23065. .e_add_list_title {
  23066. font-size: 20px;
  23067. width: 100%;
  23068. box-sizing: border-box;
  23069. padding: 15px 40px;
  23070. text-align: center;
  23071. border-bottom: 1px solid #eaeaea;
  23072. position: relative;
  23073. display: flex;
  23074. align-items: center;
  23075. justify-content: center;
  23076. height: 57px;
  23077. background: #f6f6f6;
  23078. }
  23079. .e_add_list_title span {
  23080. overflow: hidden;
  23081. white-space: nowrap;
  23082. text-overflow: ellipsis;
  23083. }
  23084. .e_add_list_title img {
  23085. position: absolute;
  23086. right: 15px;
  23087. width: 25px;
  23088. cursor: pointer;
  23089. top: 50%;
  23090. transform: translateY(-50%);
  23091. }
  23092. .e_add_list_body {
  23093. height: calc(100% - 187px);
  23094. overflow: auto;
  23095. }
  23096. .e_add_list_child {
  23097. width: 100%;
  23098. display: flex;
  23099. align-items: center;
  23100. justify-content: center;
  23101. position: relative;
  23102. box-sizing: border-box;
  23103. padding: 15px 40px;
  23104. text-align: center;
  23105. }
  23106. .e_add_list_child span {
  23107. overflow: hidden;
  23108. white-space: nowrap;
  23109. text-overflow: ellipsis;
  23110. cursor: pointer;
  23111. }
  23112. .e_add_list_child img {
  23113. position: absolute;
  23114. right: 10px;
  23115. width: 21px;
  23116. cursor: pointer;
  23117. top: 50%;
  23118. transform: translateY(-50%);
  23119. }
  23120. .e_add_list_child + .e_add_list_child {
  23121. border-top: 1px solid #eaeaea;
  23122. }
  23123. .e_add_list_child .active {
  23124. color: #409eff;
  23125. }
  23126. .e_add_list_btn {
  23127. position: absolute;
  23128. bottom: 0;
  23129. height: 50px;
  23130. background: rgb(120, 120, 254);
  23131. width: 100%;
  23132. color: #fff;
  23133. font-size: 16px;
  23134. text-align: center;
  23135. line-height: 50px;
  23136. cursor: pointer;
  23137. }
  23138. .e_add_list_detail {
  23139. position: absolute;
  23140. bottom: 0;
  23141. height: 130px;
  23142. background: rgb(120, 120, 254);
  23143. width: 100%;
  23144. color: #fff;
  23145. font-size: 16px;
  23146. display: flex;
  23147. align-items: center;
  23148. justify-content: center;
  23149. }
  23150. .e_add_list_detail textarea {
  23151. height: 90%;
  23152. width: 95%;
  23153. border: none;
  23154. resize: none;
  23155. outline: none;
  23156. padding: 5px;
  23157. box-sizing: border-box;
  23158. }
  23159. .e_add_list_pbox {
  23160. width: 100%;
  23161. max-width: 650px;
  23162. /* height: 600px; */
  23163. }
  23164. .e_add_list_pbox_title {
  23165. height: 50px;
  23166. background: #fff;
  23167. display: flex;
  23168. align-items: center;
  23169. width: 100%;
  23170. box-sizing: border-box;
  23171. padding: 0 20px;
  23172. }
  23173. .type_title {
  23174. font-size: 18px;
  23175. font-weight: 700;
  23176. }
  23177. .type_content {
  23178. font-size: 16px;
  23179. /* margin-left: 30px; */
  23180. }
  23181. .type_content span + span {
  23182. margin-left: 20px;
  23183. }
  23184. .type_content span {
  23185. cursor: pointer;
  23186. padding-bottom: 5px;
  23187. box-sizing: border-box;
  23188. }
  23189. .type_content .active {
  23190. color: #409eff;
  23191. border-bottom: 2px solid #409eff;
  23192. }
  23193. .e_add_list_pbox_content {
  23194. height: calc(100% - 50px);
  23195. display: flex;
  23196. align-items: center;
  23197. width: 100%;
  23198. background: #fff;
  23199. }
  23200. .evaCss {
  23201. display: flex;
  23202. flex-direction: row;
  23203. flex-wrap: nowrap;
  23204. align-items: flex-start;
  23205. padding: 0 0 20px;
  23206. }
  23207. .cru_line {
  23208. position: absolute;
  23209. bottom: 0px;
  23210. transition: all 0.5s;
  23211. left: 0px;
  23212. width: 125px;
  23213. margin-left: -25px;
  23214. }
  23215. .isNoMessage {
  23216. width: 20%;
  23217. margin: 25% auto 0;
  23218. }
  23219. .isNoMessage > img {
  23220. width: 100%;
  23221. height: 100%;
  23222. }
  23223. .fullStyle >>> .el-dialog__body {
  23224. height: 100% !important;
  23225. }
  23226. .fullStyle >>> .el-dialog,
  23227. .fullStyle {
  23228. width: 100% !important;
  23229. max-width: 100% !important;
  23230. height: 100% !important;
  23231. margin: 0 !important;
  23232. }
  23233. .full_diy >>> .el-dialog {
  23234. margin: 0 !important;
  23235. height: 100%;
  23236. padding: 4px;
  23237. }
  23238. .full_diy >>> .el-dialog__body {
  23239. height: calc(100% - 100px);
  23240. }
  23241. .full_diy2 >>> .el-dialog__body {
  23242. height: calc(100% - 50px);
  23243. padding: 0;
  23244. }
  23245. .switchCss {
  23246. /* width: 100%; */
  23247. display: flex;
  23248. flex-direction: row;
  23249. flex-wrap: nowrap;
  23250. align-items: center;
  23251. /* justify-content: center; */
  23252. }
  23253. .isClickNav {
  23254. /* color: #499eef; */
  23255. color: #000;
  23256. }
  23257. .commentImg {
  23258. width: 25px;
  23259. height: 25px;
  23260. cursor: pointer;
  23261. }
  23262. .commentImg > img {
  23263. width: 100%;
  23264. height: 100%;
  23265. }
  23266. .comment {
  23267. background: #f9f9f9;
  23268. border-radius: 0 0 4px 4px;
  23269. display: flex;
  23270. flex-direction: row;
  23271. flex-wrap: nowrap;
  23272. align-items: center;
  23273. justify-content: flex-end;
  23274. height: 35px;
  23275. }
  23276. .commentList {
  23277. display: flex;
  23278. flex-direction: row;
  23279. flex-wrap: nowrap;
  23280. align-items: center;
  23281. justify-content: center;
  23282. align-content: center;
  23283. /* margin-left: 15px; */
  23284. /* margin-left: 8px; */
  23285. }
  23286. .scoreImg {
  23287. width: 17px;
  23288. height: 17px;
  23289. }
  23290. .studentDetail {
  23291. display: flex;
  23292. flex-direction: row;
  23293. flex-wrap: nowrap;
  23294. /* align-items: center; */
  23295. align-items: flex-start;
  23296. }
  23297. .tx {
  23298. width: 50px;
  23299. }
  23300. .tx > img {
  23301. width: 100%;
  23302. height: 100%;
  23303. }
  23304. .nameAndTime {
  23305. display: flex;
  23306. flex-direction: column;
  23307. flex-wrap: nowrap;
  23308. align-items: flex-start;
  23309. margin-left: 10px;
  23310. }
  23311. .worksAnswer {
  23312. color: #4078dd;
  23313. margin: 10px 0;
  23314. font-size: 16px;
  23315. position: relative;
  23316. }
  23317. .worksAnswer > img {
  23318. width: 500px;
  23319. height: 300px;
  23320. object-fit: contain;
  23321. margin: 0 auto;
  23322. display: block;
  23323. }
  23324. .commentTop {
  23325. border-bottom: 1px solid #eaeaea;
  23326. padding-bottom: 10px;
  23327. }
  23328. .commentBox {
  23329. padding-top: 15px;
  23330. }
  23331. .pl {
  23332. font-size: 18px;
  23333. }
  23334. .plPerson {
  23335. width: 100%;
  23336. }
  23337. .plName {
  23338. display: flex;
  23339. flex-direction: row;
  23340. flex-wrap: nowrap;
  23341. align-items: baseline;
  23342. color: #78787a;
  23343. width: 100%;
  23344. }
  23345. .deleteComment {
  23346. cursor: pointer;
  23347. margin-left: auto;
  23348. color: #237ade;
  23349. }
  23350. .plContent {
  23351. margin-top: 5px;
  23352. }
  23353. .evalCss {
  23354. background: #fff;
  23355. font-size: 18px;
  23356. }
  23357. .nav {
  23358. color: #9d9d9d;
  23359. padding: 5px 0 15px 20px;
  23360. }
  23361. .middleBox {
  23362. padding: 5px 0 15px 20px;
  23363. }
  23364. .pfBox {
  23365. padding-bottom: 30px;
  23366. }
  23367. .nameAndrate {
  23368. display: flex;
  23369. flex-direction: row;
  23370. flex-wrap: nowrap;
  23371. align-items: center;
  23372. padding-bottom: 10px;
  23373. height: 30px;
  23374. line-height: 30px;
  23375. }
  23376. .nameAndrate > div {
  23377. margin-left: 10px;
  23378. color: #000;
  23379. height: 30px;
  23380. }
  23381. .nameAndrate >>> .el-rate__icon {
  23382. font-size: 28px !important;
  23383. }
  23384. .pfBox > div:nth-child(2) {
  23385. background: #f7f6f9;
  23386. width: 400px;
  23387. min-height: 45px;
  23388. border-radius: 10px;
  23389. font-size: 16px;
  23390. display: flex;
  23391. flex-wrap: wrap;
  23392. align-items: center;
  23393. padding: 10px 20px;
  23394. box-sizing: border-box;
  23395. color: #000;
  23396. }
  23397. .bz {
  23398. display: flex;
  23399. flex-direction: row;
  23400. flex-wrap: nowrap;
  23401. align-items: flex-start;
  23402. }
  23403. .bz > div {
  23404. padding: 0 10px;
  23405. }
  23406. .select_box2_title {
  23407. background: #fff;
  23408. border-radius: 5px;
  23409. padding: 15px 10px;
  23410. box-sizing: border-box;
  23411. margin-bottom: 10px;
  23412. display: flex;
  23413. flex-direction: row;
  23414. flex-wrap: nowrap;
  23415. align-items: center;
  23416. }
  23417. .select_box2_title > div:nth-child(2) {
  23418. margin-left: 10px;
  23419. color: #c4c4c4;
  23420. }
  23421. .select_box2_box {
  23422. display: flex;
  23423. height: 500px;
  23424. }
  23425. .select_box2_img {
  23426. width: calc(100% - 310px);
  23427. height: 100%;
  23428. overflow: auto;
  23429. background: #fff;
  23430. border-radius: 5px;
  23431. }
  23432. .select_box2_img img {
  23433. width: 100%;
  23434. }
  23435. .select_box2_answer {
  23436. background: #fff;
  23437. margin-left: 10px;
  23438. border-radius: 5px;
  23439. width: 300px;
  23440. overflow: auto;
  23441. height: 90%;
  23442. display: flex;
  23443. flex-direction: column;
  23444. align-items: flex-start;
  23445. padding-top: 10px;
  23446. box-sizing: border-box;
  23447. position: relative;
  23448. }
  23449. .select_answer_title {
  23450. padding: 0 0 15px 20px;
  23451. color: #c4c4c4;
  23452. }
  23453. .select_box2_answer_box {
  23454. margin: 0 0 10px 20px;
  23455. width: 85%;
  23456. display: flex;
  23457. flex-direction: row;
  23458. flex-wrap: nowrap;
  23459. align-items: center;
  23460. }
  23461. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23462. color: #000;
  23463. }
  23464. .upAnswerCss {
  23465. position: absolute;
  23466. bottom: 15px;
  23467. right: 15px;
  23468. }
  23469. .upAnswerCss >>> .el-button {
  23470. width: 95px;
  23471. height: 35px;
  23472. line-height: 35px;
  23473. padding: 0;
  23474. }
  23475. .rightWidthCss {
  23476. width: 60%;
  23477. display: flex;
  23478. flex-direction: row;
  23479. align-items: flex-start;
  23480. }
  23481. .rightAnswer {
  23482. display: flex;
  23483. flex-direction: row;
  23484. flex-wrap: nowrap;
  23485. align-items: center;
  23486. color: red;
  23487. margin-bottom: 31px;
  23488. }
  23489. .rightAnswerCss {
  23490. display: flex;
  23491. flex-direction: column;
  23492. flex-wrap: nowrap;
  23493. padding-top: 60px;
  23494. }
  23495. .blueCss {
  23496. color: #767de1;
  23497. margin-left: 10px;
  23498. }
  23499. .redCss {
  23500. color: red;
  23501. }
  23502. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23503. color: rgb(0 123 255) !important;
  23504. }
  23505. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23506. color: rgb(0 123 255) !important;
  23507. }
  23508. .zuoyeYulan {
  23509. padding-top: 0;
  23510. font-size: 18px;
  23511. display: flex;
  23512. align-items: flex-end;
  23513. }
  23514. .buttonA {
  23515. margin-left: 10px;
  23516. padding: 0;
  23517. }
  23518. .displayBox {
  23519. margin-bottom: 10px;
  23520. display: block;
  23521. border-bottom: 3px solid #eee;
  23522. display: flex;
  23523. align-items: center;
  23524. }
  23525. .easy_comment {
  23526. width: calc(100% - 90px);
  23527. margin-left: 10px;
  23528. display: flex;
  23529. flex-wrap: wrap;
  23530. }
  23531. .easy_comment > div {
  23532. border: 1px solid #4a4a4a;
  23533. color: #666;
  23534. border-radius: 15px;
  23535. padding: 5px 10px;
  23536. font-size: 16px;
  23537. margin-bottom: 10px;
  23538. margin-right: 5px;
  23539. cursor: pointer;
  23540. }
  23541. .easy_comment div:hover {
  23542. border: 1px solid #f7ba2a;
  23543. color: #c69217;
  23544. }
  23545. .xuan_right_box {
  23546. padding: 10px 0;
  23547. background: #f0f4fa;
  23548. margin: 0 15px 0 25px;
  23549. border-bottom-left-radius: 5px;
  23550. border-bottom-right-radius: 5px;
  23551. width: 91.5%;
  23552. }
  23553. .tool_right_box {
  23554. display: flex;
  23555. align-items: center;
  23556. }
  23557. .tool_right_box + .tool_right_box {
  23558. margin-top: 10px;
  23559. }
  23560. .right_box_xuan {
  23561. border-radius: 5px;
  23562. padding: 5px;
  23563. margin-left: 10px;
  23564. min-width: 95px;
  23565. background: #fff;
  23566. color: #0061ff;
  23567. border: 1px solid #0061ff;
  23568. font-size: 14px;
  23569. }
  23570. .pButton:hover {
  23571. opacity: 1 !important;
  23572. }
  23573. .pButton {
  23574. position: fixed;
  23575. text-align: center;
  23576. cursor: pointer;
  23577. z-index: 999;
  23578. right: 20px;
  23579. top: 110px;
  23580. width: 50px;
  23581. height: 50px;
  23582. display: flex;
  23583. align-items: center;
  23584. justify-content: center;
  23585. border-radius: 5px;
  23586. }
  23587. .pzClass {
  23588. width: calc(100% - 340px);
  23589. }
  23590. .newDialogCss {
  23591. /* position: fixed;
  23592. right: 5%;
  23593. top: 50%;
  23594. width: 340px;
  23595. transform: translateY(-50%);
  23596. height: 60%;
  23597. box-shadow: 0px 0 8px 0px #555555;
  23598. border-radius: 15px;
  23599. z-index: 999; */
  23600. position: fixed;
  23601. right: 20px;
  23602. top: 101px;
  23603. width: 330px;
  23604. height: calc(100% - 80px);
  23605. z-index: 999;
  23606. background: #fff;
  23607. border-top-right-radius: 0px;
  23608. border-bottom-right-radius: 0px;
  23609. overflow: hidden;
  23610. }
  23611. .newDialogCss>.scoreList{
  23612. width:100%;
  23613. height:100%;
  23614. box-sizing:border-box;
  23615. padding:10px 15px;
  23616. overflow:auto;
  23617. padding-bottom:80px;
  23618. }
  23619. .pzTop {
  23620. color: #fff;
  23621. background: #000;
  23622. display: flex;
  23623. flex-direction: row;
  23624. flex-wrap: nowrap;
  23625. align-items: center;
  23626. justify-content: space-between;
  23627. height: 40px;
  23628. border-radius: 15px 15px 0 0;
  23629. user-select: none;
  23630. }
  23631. .pzTop2 .checkbox {
  23632. display: flex;
  23633. align-items: center;
  23634. padding: 5px 10px;
  23635. flex: 0 0 auto;
  23636. font-weight: bold;
  23637. border-bottom: 1px solid #eee;
  23638. justify-content: space-between;
  23639. }
  23640. .checkbox>.cb-tabList{
  23641. display:flex;
  23642. align-items:center;
  23643. }
  23644. .cb-tabList>div{
  23645. margin-right:20px;
  23646. font-weight:400;
  23647. cursor:pointer;
  23648. }
  23649. .cb-tabList>.cb-tabItem{
  23650. color:#1684FC;
  23651. position:relative;
  23652. }
  23653. .cb-tabItem::after{
  23654. content:"";
  23655. width:100%;
  23656. height:2px;
  23657. background:#1684FC;
  23658. position:absolute;
  23659. bottom:-5px;
  23660. left:0
  23661. }
  23662. .pzTop2 .check {
  23663. text-align: center;
  23664. cursor: pointer;
  23665. box-sizing: border-box;
  23666. display: flex;
  23667. }
  23668. .pzTop2 img {
  23669. width: 25px;
  23670. cursor: pointer;
  23671. }
  23672. .pzTop > div:nth-child(1) {
  23673. padding-left: 10px;
  23674. }
  23675. .pzTop > div:nth-child(2) {
  23676. width: 15px;
  23677. height: 15px;
  23678. padding-right: 10px;
  23679. cursor: pointer;
  23680. }
  23681. .pzTop > div:nth-child(2) > img {
  23682. width: 100%;
  23683. height: 100%;
  23684. }
  23685. .pzBox,
  23686. .noPzBox {
  23687. height: calc(100% - 60px);
  23688. /* background: #ededed; */
  23689. background: #fff;
  23690. /* border-radius: 0 0 15px 15px; */
  23691. }
  23692. .noPzBox {
  23693. display: flex;
  23694. flex-direction: column;
  23695. flex-wrap: nowrap;
  23696. justify-content: center;
  23697. align-items: center;
  23698. }
  23699. .pzList {
  23700. background: #f7f7f7;
  23701. width: 90%;
  23702. margin: 0 auto 15px;
  23703. border-radius: 5px;
  23704. }
  23705. .pzNavTop {
  23706. display: flex;
  23707. flex-direction: row;
  23708. flex-wrap: nowrap;
  23709. padding: 10px 10px 0 10px;
  23710. align-items: center;
  23711. }
  23712. .pzDelete {
  23713. cursor: pointer;
  23714. margin-left: auto;
  23715. font-size: 14px;
  23716. color: #afafaf;
  23717. }
  23718. .pzNavTop > div:nth-child(1) {
  23719. background: #3760af;
  23720. width: 35px;
  23721. height: 35px;
  23722. color: #fff;
  23723. text-align: center;
  23724. line-height: 35px;
  23725. border-radius: 50%;
  23726. font-size: 14px;
  23727. }
  23728. .pzNavTop > div:nth-child(2) {
  23729. font-size: 18px;
  23730. color: #959595;
  23731. margin-left: 5px;
  23732. }
  23733. .pzContent {
  23734. padding: 10px;
  23735. word-break: break-word;
  23736. }
  23737. .pzContent audio {
  23738. width: 100%;
  23739. }
  23740. .pzContent audio::-webkit-media-controls-panel {
  23741. background: #fff;
  23742. }
  23743. .pzContent >>> img {
  23744. max-width: 100%;
  23745. }
  23746. .pzListBox {
  23747. padding-top: 15px;
  23748. height: calc(100% - 110px);
  23749. overflow: auto;
  23750. }
  23751. .addPzButton {
  23752. position: relative;
  23753. margin-top: 3px;
  23754. width: 100%;
  23755. }
  23756. .addPzButton .img1 {
  23757. position: absolute;
  23758. top: 50%;
  23759. right: 25px;
  23760. transform: translateY(-50%);
  23761. height: 100%;
  23762. display: flex;
  23763. align-items: center;
  23764. }
  23765. .addPzButton .img1 div {
  23766. display: flex;
  23767. }
  23768. .addPzButton .img1 div img {
  23769. width: 28px;
  23770. margin-left: 10px;
  23771. cursor: pointer;
  23772. }
  23773. .addPzButton .img1 div span {
  23774. font-size: 14px;
  23775. margin: 4px 0 0 3px;
  23776. color: #afafaf;
  23777. }
  23778. .addPz {
  23779. background: #4b79ce;
  23780. width: 100px;
  23781. color: #fff;
  23782. font-size: 12px;
  23783. height: 30px;
  23784. margin: 0 auto;
  23785. text-align: center;
  23786. line-height: 30px;
  23787. border-radius: 10px;
  23788. cursor: pointer;
  23789. }
  23790. .addDialogCss {
  23791. position: fixed;
  23792. width: 600px;
  23793. height: 70%;
  23794. min-height: 450px;
  23795. box-shadow: 0px 0 8px 0px #555555;
  23796. border-radius: 15px;
  23797. z-index: 999;
  23798. left: 50%;
  23799. top: 50%;
  23800. margin: -18% 0 0 -300px;
  23801. }
  23802. .teacherPz {
  23803. display: flex;
  23804. flex-direction: row;
  23805. align-items: center;
  23806. flex-wrap: nowrap;
  23807. }
  23808. .teacherPzImg {
  23809. width: 30px;
  23810. height: 30px;
  23811. }
  23812. .teacherPzImg > img {
  23813. width: 100%;
  23814. height: 100%;
  23815. }
  23816. .addPzBox {
  23817. height: calc(100% - 40px);
  23818. background: #ededed;
  23819. border-bottom-left-radius: 15px;
  23820. border-bottom-right-radius: 15px;
  23821. }
  23822. .pzAudioClass {
  23823. margin: 15px 14px;
  23824. background: #fff;
  23825. height: 100%;
  23826. display: flex;
  23827. justify-content: center;
  23828. align-items: center;
  23829. }
  23830. .pzConText {
  23831. width: 95%;
  23832. height: 100%;
  23833. margin: 10px auto 0;
  23834. border: none;
  23835. background: #fff;
  23836. border-radius: 0px;
  23837. }
  23838. .pzConText >>> .text {
  23839. height: calc(100% - 82px);
  23840. }
  23841. .addTextCss {
  23842. background: #4b79ce;
  23843. width: 80px;
  23844. height: 30px;
  23845. text-align: center;
  23846. color: #fff;
  23847. line-height: 30px;
  23848. border-radius: 10px;
  23849. margin: 10px auto 0;
  23850. cursor: pointer;
  23851. }
  23852. .pzConText:focus-visible {
  23853. border: none !important;
  23854. }
  23855. .maxWidth {
  23856. width: 1000px;
  23857. }
  23858. .noPz {
  23859. width: 150px;
  23860. margin: 0 auto 20%;
  23861. }
  23862. .noPz > img {
  23863. width: 100%;
  23864. height: 100%;
  23865. }
  23866. .timeAndReply {
  23867. display: flex;
  23868. flex-direction: row;
  23869. flex-wrap: nowrap;
  23870. justify-content: space-between;
  23871. align-items: center;
  23872. font-size: 14px;
  23873. box-sizing: border-box;
  23874. padding: 0 10px 10px 0px;
  23875. }
  23876. .timeAndReply .time {
  23877. color: #bfbfbf;
  23878. padding: 0 0 0 10px;
  23879. box-sizing: border-box;
  23880. }
  23881. .timeAndReply > div:last-child {
  23882. cursor: pointer;
  23883. color: #777;
  23884. }
  23885. /* table 样式 */
  23886. .cont >>> table {
  23887. border-top: 1px solid #ccc;
  23888. border-left: 1px solid #ccc;
  23889. }
  23890. .cont >>> table td,
  23891. .cont >>> table th {
  23892. border-bottom: 1px solid #ccc;
  23893. border-right: 1px solid #ccc;
  23894. /* padding: 20px 5px; */
  23895. padding: 5px 10px;
  23896. max-width: 0px;
  23897. height: 30px;
  23898. vertical-align: baseline;
  23899. box-sizing: border-box;
  23900. }
  23901. .cont >>> table th {
  23902. border-bottom: 2px solid #ccc;
  23903. text-align: center;
  23904. }
  23905. /* blockquote 样式 */
  23906. .cont >>> blockquote {
  23907. display: block;
  23908. border-left: 8px solid #d0e5f2;
  23909. padding: 5px 10px;
  23910. margin: 10px 0;
  23911. line-height: 1.4;
  23912. font-size: 100%;
  23913. background-color: #f1f1f1;
  23914. }
  23915. /* code 样式 */
  23916. .cont >>> code {
  23917. display: inline-block;
  23918. /* *display: inline; */
  23919. zoom: 1;
  23920. background-color: #f1f1f1;
  23921. border-radius: 3px;
  23922. padding: 3px 5px;
  23923. margin: 0 3px;
  23924. }
  23925. .cont >>> pre code {
  23926. display: block;
  23927. }
  23928. /* ul ol 样式 */
  23929. .cont >>> ul,
  23930. ol {
  23931. margin: 10px 0 10px 20px;
  23932. }
  23933. .addPzCheck {
  23934. display: flex;
  23935. flex-direction: row;
  23936. flex-wrap: nowrap;
  23937. padding: 10px 15px 0;
  23938. }
  23939. .addPzCheck span {
  23940. cursor: pointer;
  23941. padding-bottom: 5px;
  23942. font-weight: bold;
  23943. }
  23944. .addPzCheck span + span {
  23945. margin-left: 10px;
  23946. }
  23947. .addPzCheck .isChooseActive {
  23948. color: #3e88f4;
  23949. border-bottom: 2px solid #2f80f3;
  23950. }
  23951. /* code 样式 */
  23952. .cont {
  23953. /* -webkit-user-modify: read-write; */
  23954. overflow-wrap: break-word;
  23955. -webkit-line-break: after-white-space;
  23956. word-break: break-word;
  23957. white-space: pre-line;
  23958. }
  23959. .scoreBox,
  23960. .scoreDetailBox {
  23961. display: flex;
  23962. align-items: center;
  23963. justify-content: flex-start;
  23964. margin-top: 20px;
  23965. font-size: 18px;
  23966. width: 100%;
  23967. }
  23968. .scoreBox .t,
  23969. .scoreDetailBox .t {
  23970. margin-right: 10px;
  23971. min-width:100px;
  23972. text-align: right;
  23973. }
  23974. .scoreDetailBox {
  23975. align-items: flex-start;
  23976. }
  23977. .scoreDetailBox >>> .el-textarea {
  23978. width: calc(100% - 200px);
  23979. }
  23980. .scoreBox >>> .el-input {
  23981. width: 130px;
  23982. font-size: 38px;
  23983. }
  23984. .scoreBox >>> .el-input__inner {
  23985. height: 60px;
  23986. }
  23987. .answerScore {
  23988. position: absolute;
  23989. top: 10px;
  23990. right: 10px;
  23991. background: #0000008f;
  23992. border-radius: 5px;
  23993. padding: 3px 5px;
  23994. font-size: 14px;
  23995. color: #fff;
  23996. cursor: pointer;
  23997. }
  23998. .open_box .switch_box {
  23999. width: 100%;
  24000. margin: 0 auto;
  24001. display: flex;
  24002. justify-content: space-between;
  24003. }
  24004. .open_box .switch_box + .switch_box {
  24005. margin-top: 10px;
  24006. }
  24007. .deleteImg,.deleteImg1 {
  24008. width: 25px !important;
  24009. height: 25px !important;
  24010. cursor: pointer;
  24011. position: absolute;
  24012. top: 10px;
  24013. right: 10px;
  24014. }
  24015. .deleteImg2 {
  24016. width: 23px !important;
  24017. height: 23px !important;
  24018. top: 5px;
  24019. right: 5px;
  24020. }
  24021. .deleteImg1{
  24022. width: 23px !important;
  24023. height: 23px !important;
  24024. top: 5px !important;
  24025. right: 30px !important;
  24026. }
  24027. .rightW {
  24028. right: 40px;
  24029. }
  24030. .drawPBox {
  24031. display: flex;
  24032. flex-direction: column;
  24033. position: relative;
  24034. }
  24035. .drawPBox span {
  24036. font-size: 18px;
  24037. color: #606266;
  24038. padding-bottom: 10px;
  24039. margin: 10px 0;
  24040. border-bottom: 1px solid #eaeaea;
  24041. }
  24042. .drawPBox img {
  24043. width: 500px;
  24044. height: 300px;
  24045. object-fit: contain;
  24046. cursor: pointer;
  24047. margin: 0 auto;
  24048. }
  24049. .sentenBox {
  24050. background: #fff;
  24051. height: 450px;
  24052. overflow: auto;
  24053. background-image: url("../../assets/icon/conSentences/stuBg.png");
  24054. background-position: 102%;
  24055. background-repeat: no-repeat;
  24056. background-size: 60%;
  24057. }
  24058. .addSen {
  24059. background: #409efe;
  24060. width: 90px;
  24061. color: #fff;
  24062. height: 35px;
  24063. text-align: center;
  24064. line-height: 35px;
  24065. border-radius: 5px;
  24066. float: right;
  24067. margin: 10px 20px 0 0;
  24068. cursor: pointer;
  24069. }
  24070. .sentenTop {
  24071. display: flex;
  24072. flex-direction: row;
  24073. flex-wrap: nowrap;
  24074. align-items: center;
  24075. padding: 55px 0 0 20px;
  24076. box-sizing: border-box;
  24077. }
  24078. .sentenTop > div:nth-child(2) {
  24079. width: 300px;
  24080. margin: 0 15px;
  24081. }
  24082. .sentenTop > div:nth-child(3) {
  24083. background: #409efe;
  24084. color: #fff;
  24085. width: 65px;
  24086. height: 35px;
  24087. text-align: center;
  24088. line-height: 35px;
  24089. border-radius: 5px;
  24090. cursor: pointer;
  24091. }
  24092. .cardList,
  24093. .cardList1 {
  24094. padding: 10px 0 10px 0;
  24095. display: flex;
  24096. flex-direction: row;
  24097. flex-wrap: wrap;
  24098. align-items: center;
  24099. box-sizing: border-box;
  24100. border-bottom: 1px solid #f4f4f4;
  24101. width: 98%;
  24102. margin: 0 auto;
  24103. min-width: 60%;
  24104. max-width: 85%;
  24105. }
  24106. .cardList1 {
  24107. padding: 10px 0 10px 10px !important;
  24108. margin: 0 !important;
  24109. }
  24110. .cardBox {
  24111. display: flex;
  24112. flex-direction: row;
  24113. flex-wrap: wrap;
  24114. align-items: center;
  24115. align-content: center;
  24116. }
  24117. .cardBox > div {
  24118. margin-bottom: 10px;
  24119. }
  24120. .isCard,
  24121. .isChooseCard,
  24122. .noCard,
  24123. .isCard1 {
  24124. min-width: 130px;
  24125. width: auto;
  24126. height: 60px;
  24127. text-align: center;
  24128. line-height: 60px;
  24129. font-size: 20px;
  24130. cursor: pointer;
  24131. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  24132. background-size: cover;
  24133. transition: all 2s;
  24134. margin-right: 20px;
  24135. background-size: 100% 100%;
  24136. padding: 0 20px;
  24137. box-sizing: border-box;
  24138. }
  24139. .isCard > div,
  24140. .noCard > div,
  24141. .isCard1 > div {
  24142. white-space: nowrap;
  24143. overflow: hidden;
  24144. text-overflow: ellipsis;
  24145. width: 100%;
  24146. margin: 0 auto;
  24147. }
  24148. .noCard {
  24149. background-image: none;
  24150. }
  24151. .isCard1 {
  24152. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  24153. }
  24154. .isChooseCard {
  24155. background-image: none;
  24156. border: 1px dashed #b9b9b9;
  24157. border-radius: 10px;
  24158. }
  24159. .card {
  24160. width: 130px;
  24161. height: 60px;
  24162. }
  24163. .card > img {
  24164. width: 100%;
  24165. height: 100%;
  24166. }
  24167. .rightCardBox {
  24168. margin: 10px 0 0 10px;
  24169. }
  24170. .rightCardBox > div:nth-child(1) {
  24171. margin-bottom: 10px;
  24172. }
  24173. .cardCss {
  24174. display: flex;
  24175. flex-direction: column;
  24176. flex-wrap: nowrap;
  24177. align-items: center;
  24178. border-bottom: 3px solid #b4c3d3;
  24179. padding: 0 0 5px 0;
  24180. margin-right: 10px;
  24181. }
  24182. .cardCss > div:nth-child(2) {
  24183. background: #5b7b9d;
  24184. color: #fff;
  24185. width: 20px;
  24186. height: 20px;
  24187. border-radius: 50%;
  24188. text-align: center;
  24189. line-height: 20px;
  24190. }
  24191. .isWrong {
  24192. display: flex;
  24193. flex-direction: row;
  24194. flex-wrap: nowrap;
  24195. align-content: center;
  24196. align-items: center;
  24197. }
  24198. .answerRight {
  24199. width: 25%;
  24200. }
  24201. .isTj {
  24202. display: flex;
  24203. flex-direction: row;
  24204. flex-wrap: nowrap;
  24205. align-items: center;
  24206. }
  24207. .isTj > div:nth-child(2) {
  24208. color: #727070;
  24209. margin-left: 10px;
  24210. }
  24211. .isTjImg {
  24212. width: 30px;
  24213. height: 30px;
  24214. }
  24215. .isTjImg > img {
  24216. width: 100%;
  24217. height: 100%;
  24218. }
  24219. .cardAnswerBox {
  24220. font-size: 18px;
  24221. width: 97%;
  24222. border: 5px;
  24223. padding: 0;
  24224. border-radius: 5px;
  24225. margin: 10px auto;
  24226. word-break: break-word;
  24227. }
  24228. .w_name {
  24229. margin-bottom: 10px;
  24230. }
  24231. .w_name span {
  24232. font-size: 16px;
  24233. }
  24234. .w_teachert {
  24235. width: 50px !important;
  24236. position: absolute;
  24237. height: auto !important;
  24238. z-index: 10;
  24239. right: 25px;
  24240. top: -25px;
  24241. }
  24242. /* .group_workBox {
  24243. } */
  24244. .group_workBox + .group_workBox {
  24245. margin-top: 20px;
  24246. }
  24247. .group_box {
  24248. padding-bottom: 20px;
  24249. border-bottom: 2px solid #f0f0f0;
  24250. margin-top: 10px;
  24251. }
  24252. .group_title {
  24253. display: flex;
  24254. align-items: center;
  24255. justify-content: space-between;
  24256. width: 95%;
  24257. }
  24258. .group_name {
  24259. background-image: url(../../assets/icon/groupN.png);
  24260. width: 220px;
  24261. background-size: 100% 100%;
  24262. height: 67px;
  24263. padding: 0 20px 0 43px;
  24264. box-sizing: border-box;
  24265. line-height: 63px;
  24266. color: #fff;
  24267. overflow: hidden;
  24268. white-space: nowrap;
  24269. text-overflow: ellipsis;
  24270. }
  24271. .group_work {
  24272. width: 100%;
  24273. padding: 0 10px;
  24274. box-sizing: border-box;
  24275. display: flex;
  24276. flex-wrap: wrap;
  24277. }
  24278. .g_d_box {
  24279. display: flex;
  24280. flex-flow: wrap;
  24281. justify-content: space-around;
  24282. }
  24283. .g_d_box .isChair {
  24284. background-image: url(../../assets/avatar.png) !important;
  24285. }
  24286. .g_d_group {
  24287. width: 500px;
  24288. margin-bottom: 80px;
  24289. }
  24290. .g_d_group_chair {
  24291. display: flex;
  24292. align-items: center;
  24293. justify-content: center;
  24294. }
  24295. .g_d_group_chair > div + div {
  24296. margin-left: 30px;
  24297. }
  24298. .g_d_group_chair > div,
  24299. .g_d_group_chair2 > div {
  24300. display: flex;
  24301. flex-direction: column;
  24302. align-items: center;
  24303. }
  24304. .g_d_group_chair > div > span:nth-child(1),
  24305. .g_d_group_chair2 > div > span:nth-child(1) {
  24306. background-image: url(../../assets/icon/chair.png);
  24307. width: 50px;
  24308. height: 50px;
  24309. display: block;
  24310. background-size: 100% 100%;
  24311. }
  24312. .g_d_group_tableBox {
  24313. display: flex;
  24314. align-items: center;
  24315. justify-content: center;
  24316. }
  24317. .g_d_group_chair2 {
  24318. display: flex;
  24319. flex-direction: column;
  24320. align-items: center;
  24321. justify-content: center;
  24322. }
  24323. .g_d_group_chair2 > div + div {
  24324. margin-top: 10px;
  24325. }
  24326. .g_d_group_table {
  24327. background-image: url(../../assets/icon/groupBg.png);
  24328. width: 354px;
  24329. height: 196px;
  24330. background-size: 100% 100%;
  24331. display: flex;
  24332. align-items: center;
  24333. justify-content: center;
  24334. flex-direction: column;
  24335. color: #fff;
  24336. }
  24337. .g_d_group_table > div:nth-child(1) {
  24338. font-size: 24px;
  24339. margin-bottom: 5px;
  24340. }
  24341. .g_d_group_table > div:nth-child(2) div {
  24342. cursor: pointer;
  24343. background: #2e77bf;
  24344. padding: 4px 10px;
  24345. border-radius: 5px;
  24346. }
  24347. /* .groupBox {
  24348. } */
  24349. .groupContent + .groupContent {
  24350. margin-top: 30px;
  24351. }
  24352. .groupTitle {
  24353. font-size: 24px;
  24354. color: rgb(80, 80, 80);
  24355. margin-bottom: 20px;
  24356. }
  24357. .groupName {
  24358. display: flex;
  24359. align-items: center;
  24360. }
  24361. .groupn {
  24362. font-size: 15px;
  24363. margin-right: 10px;
  24364. }
  24365. .groupName + .groupName {
  24366. margin-top: 15px;
  24367. }
  24368. .groupBtn {
  24369. margin-left: 10px;
  24370. }
  24371. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24372. text-align: left;
  24373. }
  24374. .g_d_btnBox {
  24375. display: flex;
  24376. justify-content: flex-end;
  24377. align-items: center;
  24378. margin-bottom: 20px;
  24379. }
  24380. .updateChair {
  24381. position: relative;
  24382. }
  24383. .updateChairBtn {
  24384. position: absolute;
  24385. width: 50px;
  24386. height: 50px;
  24387. overflow: hidden;
  24388. /* display: flex; */
  24389. align-items: center;
  24390. justify-content: center;
  24391. background: #00000087;
  24392. color: #fff;
  24393. border-radius: 50px;
  24394. display: none;
  24395. cursor: pointer;
  24396. }
  24397. .updateChair:hover .updateChairBtn {
  24398. display: flex;
  24399. }
  24400. .group_staic_box {
  24401. display: flex;
  24402. padding: 30px 40px 10px;
  24403. flex-wrap: wrap;
  24404. }
  24405. .group_staic {
  24406. /* width: 50%; */
  24407. margin-bottom: 20px;
  24408. display: flex;
  24409. align-items: center;
  24410. }
  24411. .group_staic span:nth-child(1) {
  24412. width: 150px;
  24413. text-align: right;
  24414. margin-right: 15px;
  24415. }
  24416. .group_staic span:nth-child(2) {
  24417. background: rgb(0 123 255);
  24418. color: #fff;
  24419. border-radius: 5px;
  24420. padding: 5px;
  24421. }
  24422. .codeFileBox {
  24423. height: 300px;
  24424. background: #fff;
  24425. display: flex;
  24426. align-items: center;
  24427. justify-content: center;
  24428. }
  24429. .codeFileBox img {
  24430. width: 200px;
  24431. margin: 0;
  24432. height: auto;
  24433. }
  24434. .codeFileBox div {
  24435. background: rgb(80, 142, 226);
  24436. color: #fff;
  24437. padding: 10px 20px;
  24438. border-radius: 25px;
  24439. cursor: pointer;
  24440. margin-left: 15px;
  24441. }
  24442. .radioBox {
  24443. display: flex;
  24444. flex-direction: column;
  24445. flex-wrap: nowrap;
  24446. align-items: flex-start;
  24447. }
  24448. .radioBox > div {
  24449. margin: 10px 0 0 10px;
  24450. }
  24451. /* .radioBox >>> .el-radio__input,
  24452. .radioBox >>> .el-checkbox__inner {
  24453. margin-left: 10px;
  24454. } */
  24455. .radioBox >>> .el-radio__label,
  24456. .radioBox >>> .el-checkbox__label {
  24457. display: flex;
  24458. align-items: center;
  24459. width: 100%;
  24460. }
  24461. .radioBox >>> .el-radio__label > span {
  24462. width: 100%;
  24463. display: -webkit-box;
  24464. overflow: hidden;
  24465. white-space: normal !important;
  24466. text-overflow: ellipsis;
  24467. word-wrap: break-word;
  24468. }
  24469. .inImg {
  24470. width: 100px;
  24471. cursor: pointer;
  24472. }
  24473. .inImg > img {
  24474. width: 100%;
  24475. height: 100%;
  24476. object-fit: cover;
  24477. }
  24478. .timuImgBox {
  24479. margin: 10px 0;
  24480. display: flex;
  24481. flex-direction: column;
  24482. flex-wrap: wrap;
  24483. align-items: flex-start;
  24484. }
  24485. .timuImg {
  24486. width: 150px;
  24487. margin: 5px 0;
  24488. cursor: pointer;
  24489. }
  24490. .timuImg > img {
  24491. width: 100%;
  24492. height: 100%;
  24493. object-fit: cover;
  24494. }
  24495. .worksTop {
  24496. display: flex;
  24497. flex-direction: row;
  24498. align-items: flex-end;
  24499. }
  24500. .worksTitle {
  24501. display: flex;
  24502. flex-direction: row;
  24503. flex-wrap: nowrap;
  24504. align-items: center;
  24505. }
  24506. .worksTitle::before,
  24507. .worksTop::before {
  24508. content: "";
  24509. display: block;
  24510. width: 3px;
  24511. height: 20px;
  24512. background: #0061ff;
  24513. border-radius: 3px;
  24514. margin: 0 5px 0 0;
  24515. }
  24516. .corOpen {
  24517. margin: 0 0 0 10px;
  24518. font-size: 14px;
  24519. cursor: pointer;
  24520. color: #505050;
  24521. }
  24522. .corOpen:hover {
  24523. color: #499eef;
  24524. }
  24525. .navCorOpenBox {
  24526. display: flex;
  24527. flex-direction: row;
  24528. align-items: center;
  24529. justify-content: space-between;
  24530. height: 55px;
  24531. background: #ffffff;
  24532. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24533. border-radius: 8px 8px 0px 0px;
  24534. z-index: 9;
  24535. position: relative;
  24536. }
  24537. .navCorOpen {
  24538. padding-right: 15px;
  24539. cursor: pointer;
  24540. width: 45px;
  24541. display: flex;
  24542. }
  24543. .navCorOpen > img {
  24544. width: 100%;
  24545. height: 100%;
  24546. }
  24547. .mlImg {
  24548. width: 40px !important;
  24549. min-width: 40px;
  24550. cursor: pointer;
  24551. transform: rotate(180deg);
  24552. }
  24553. .mlImg > img {
  24554. width: 100%;
  24555. height: 100%;
  24556. }
  24557. .navLeftCss {
  24558. width: 100% !important;
  24559. left: 0 !important;
  24560. }
  24561. .isContentCss {
  24562. width: 100% !important;
  24563. }
  24564. .isAllWidth {
  24565. width: 100% !important;
  24566. }
  24567. .group_switch {
  24568. margin-right: 10px;
  24569. height: 30px;
  24570. display: flex;
  24571. align-items: center;
  24572. }
  24573. .group_switch > span {
  24574. margin-right: 5px;
  24575. }
  24576. .fileC_box {
  24577. padding-top: 15px;
  24578. }
  24579. .fileC_box > .fileC_title {
  24580. padding: 10px 5px 14px 10px;
  24581. border-top: 1px solid #cad1dc;
  24582. font-size: 14px;
  24583. font-weight: 400;
  24584. color: #cad1dc;
  24585. width: calc(100% - 20px);
  24586. margin: 0 auto;
  24587. box-sizing: border-box;
  24588. }
  24589. .pl_select_box {
  24590. height: 40px;
  24591. line-height: 40px;
  24592. width: 100%;
  24593. cursor: pointer;
  24594. padding: 0 20px;
  24595. box-sizing: border-box;
  24596. border-radius: 5px;
  24597. border: 1px solid #d6d6d6;
  24598. white-space: nowrap;
  24599. overflow: hidden;
  24600. text-overflow: ellipsis;
  24601. background: #fff;
  24602. text-align: left;
  24603. }
  24604. .newButton {
  24605. width: 102px;
  24606. height: 36px;
  24607. background: #e7ebf1;
  24608. border-radius: 4px;
  24609. color: #0e1e33;
  24610. font-weight: 400;
  24611. font-size: 14px;
  24612. border: none;
  24613. float: right;
  24614. margin-left: 10px;
  24615. }
  24616. .el-table >>> .even_row {
  24617. background-color: #f0f4fa;
  24618. }
  24619. .stageBoxCss,
  24620. .stageBoxIsCss {
  24621. display: flex;
  24622. flex-direction: row;
  24623. flex-wrap: nowrap;
  24624. align-items: center;
  24625. height: 50px;
  24626. border-bottom: 1px solid #e2f5fc;
  24627. cursor: pointer;
  24628. width: 100%;
  24629. }
  24630. .stageBoxIsCss {
  24631. background: #0061ff;
  24632. color: #fff;
  24633. border-radius: 8px;
  24634. }
  24635. .closeTri,
  24636. .closeTri1 {
  24637. min-width: 15px;
  24638. width: 15px;
  24639. height: 15px;
  24640. }
  24641. .closeTri1 {
  24642. padding-left: 10px;
  24643. cursor: pointer;
  24644. }
  24645. .closeTri > img,
  24646. .closeTri1 > img {
  24647. width: 100%;
  24648. height: 100%;
  24649. /* transition: all .5s; */
  24650. }
  24651. .noToolBlue {
  24652. min-width: 10px;
  24653. width: 10px;
  24654. height: 10px;
  24655. background: #0061ff;
  24656. border-radius: 50%;
  24657. margin-left: 13px;
  24658. }
  24659. .stageChild,
  24660. .toolChild {
  24661. height: 0;
  24662. overflow: hidden;
  24663. transition: all 0.5s;
  24664. }
  24665. /* .toolChild { */
  24666. /* margin: 0 0 0 17px;
  24667. padding: 0 0 0 20px;
  24668. border-left: 1px solid #d7d7d7; */
  24669. /* } */
  24670. .toolChild > div + div{
  24671. margin-top:5px;
  24672. }
  24673. .gjCss {
  24674. display: flex;
  24675. flex-direction: row;
  24676. flex-wrap: nowrap;
  24677. align-items: center;
  24678. padding: 10px 0 10px 25px;
  24679. box-sizing: border-box;
  24680. font-size: 14px;
  24681. cursor: pointer;
  24682. border-radius:5px;
  24683. }
  24684. .gjCss > div:nth-child(1){
  24685. flex-shrink: 0;
  24686. }
  24687. .toolChild > div {
  24688. position: relative;
  24689. width: 100%;
  24690. }
  24691. /* .toolChild > div::before { */
  24692. /* content: "";
  24693. width: 15px;
  24694. height: 1px;
  24695. background: #cad1dc;
  24696. position: absolute;
  24697. top: 24px;
  24698. left: -20px;
  24699. display: block; */
  24700. /* } */
  24701. .isGjCss {
  24702. /* color: #0061ff; */
  24703. color:#fff;
  24704. background: rgb(55, 129, 252);
  24705. /* background-color: #e0eafb !important;
  24706. color: #0061ff !important; */
  24707. }
  24708. .navItem {
  24709. background: #ffffff;
  24710. border-radius: 4px;
  24711. width: 100%;
  24712. margin: 10px auto;
  24713. position: relative;
  24714. height: 40px;
  24715. display: flex;
  24716. flex-direction: row;
  24717. flex-wrap: nowrap;
  24718. align-items: center;
  24719. }
  24720. .navItemList {
  24721. display: flex;
  24722. flex-direction: row;
  24723. flex-wrap: nowrap;
  24724. align-items: center;
  24725. padding: 0 13px;
  24726. cursor: pointer;
  24727. width: calc(100% - 60px);
  24728. height: 100%;
  24729. }
  24730. .navItemList > div:first-child {
  24731. min-width: 60px;
  24732. }
  24733. .navItemList > div:last-child {
  24734. width: calc(100% - 80px);
  24735. white-space: nowrap;
  24736. overflow: hidden;
  24737. text-overflow: ellipsis;
  24738. word-break: break-word;
  24739. }
  24740. /* .isItemList > div {
  24741. color: #fff !important;
  24742. } */
  24743. .tool_work_box {
  24744. width: 100%;
  24745. padding: 0 37px 0;
  24746. box-sizing: border-box;
  24747. }
  24748. .tool_box {
  24749. width: 100%;
  24750. padding: 0 0 0 20px;
  24751. }
  24752. .tool_type_box {
  24753. display: flex;
  24754. flex-direction: row;
  24755. align-items: baseline;
  24756. flex-wrap: nowrap;
  24757. justify-content: flex-start;
  24758. position: relative;
  24759. }
  24760. .toolSort {
  24761. display: flex;
  24762. flex-direction: row;
  24763. flex-wrap: wrap;
  24764. justify-content: flex-start;
  24765. align-items: flex-start;
  24766. padding: 0 0 15px 0;
  24767. }
  24768. .toolSort > div {
  24769. margin: 0 10px 0 0;
  24770. width: 135px;
  24771. box-sizing: border-box;
  24772. border: 2px solid transparent;
  24773. }
  24774. .tools {
  24775. width: 100%;
  24776. display: flex;
  24777. flex-direction: column;
  24778. flex-wrap: nowrap;
  24779. align-items: flex-start;
  24780. }
  24781. .whiteBIcon {
  24782. width: fit-content;
  24783. cursor: pointer;
  24784. display: flex;
  24785. flex-direction: column;
  24786. flex-wrap: nowrap;
  24787. align-items: center;
  24788. font-size: 14px;
  24789. }
  24790. .tool:hover {
  24791. border: 2px solid #a5c7ff;
  24792. border-radius: 5px;
  24793. }
  24794. .whiteBIcon > img {
  24795. width: 65px;
  24796. height: 100%;
  24797. }
  24798. .whiteBIcon > img {
  24799. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  24800. border-radius: 15px;
  24801. }
  24802. .check {
  24803. /* width: 20px;
  24804. height: 20px; */
  24805. cursor: pointer;
  24806. margin: 10px 0;
  24807. position: absolute;
  24808. right: 2px;
  24809. top: -5px;
  24810. }
  24811. .noChoose,
  24812. .isChoose {
  24813. width: 15px;
  24814. height: 15px;
  24815. border-radius: 50%;
  24816. border: 1px solid #adadad;
  24817. }
  24818. .isChoose {
  24819. border: 4px solid #0363ff !important;
  24820. width: 10px;
  24821. height: 10px;
  24822. }
  24823. .isToolChoose {
  24824. border: 2px solid #5394ff !important;
  24825. border-radius: 5px;
  24826. box-shadow: 0 0 6px 0px #5394ff;
  24827. }
  24828. .checkDiv {
  24829. display: flex;
  24830. align-items: center;
  24831. }
  24832. .checkDiv span {
  24833. margin-left: 5px;
  24834. color: #858585;
  24835. }
  24836. .check img {
  24837. width: 20px;
  24838. height: 20px;
  24839. }
  24840. .lockTaskIcon {
  24841. width: 20px;
  24842. height: 20px;
  24843. position: absolute;
  24844. right: 10px;
  24845. top: 10px;
  24846. }
  24847. .lockTaskIcon > img {
  24848. width: 100%;
  24849. height: 100%;
  24850. }
  24851. .pick_box {
  24852. display: flex;
  24853. align-items: flex-start;
  24854. flex-wrap: wrap;
  24855. }
  24856. .selectBox {
  24857. width: 110px;
  24858. margin-left: 10px;
  24859. margin: 0 10px 0 auto;
  24860. }
  24861. .selectBox >>> .el-input__inner {
  24862. height: 30px;
  24863. line-height: 30px;
  24864. }
  24865. .selectBox >>> .el-input__icon {
  24866. line-height: 30px;
  24867. }
  24868. .sentenceTitle {
  24869. display: flex;
  24870. flex-direction: row;
  24871. flex-wrap: nowrap;
  24872. align-items: center;
  24873. }
  24874. .sentenceTitle::before {
  24875. content: attr(index);
  24876. background: #3681fc;
  24877. border-radius: 50%;
  24878. color: #fff;
  24879. width: 25px;
  24880. height: 25px;
  24881. min-width: 25px;
  24882. min-height: 25px;
  24883. text-align: center;
  24884. line-height: 25px;
  24885. margin-right: 5px;
  24886. }
  24887. .hfBox {
  24888. padding: 10px;
  24889. box-sizing: border-box;
  24890. }
  24891. .whoReplyWho {
  24892. display: flex;
  24893. flex-direction: row;
  24894. flex-wrap: nowrap;
  24895. align-items: baseline;
  24896. justify-content: flex-start;
  24897. }
  24898. .hfBottom {
  24899. display: flex;
  24900. flex-direction: row;
  24901. flex-wrap: nowrap;
  24902. align-items: center;
  24903. justify-content: space-between;
  24904. font-size: 14px;
  24905. }
  24906. .deleteHfItem {
  24907. cursor: pointer;
  24908. width: 20px;
  24909. height: 20px;
  24910. }
  24911. .deleteHfItem > img {
  24912. width: 100%;
  24913. height: 100%;
  24914. }
  24915. .whoReplyWho > .hfImg {
  24916. width: 12px;
  24917. height: 12px;
  24918. margin: 0 5px;
  24919. }
  24920. .whoReplyWho > .hfImg > img {
  24921. width: 100%;
  24922. height: 100%;
  24923. }
  24924. .hfContent {
  24925. padding-top: 10px;
  24926. box-sizing: border-box;
  24927. display: -webkit-box;
  24928. overflow: hidden;
  24929. white-space: normal !important;
  24930. text-overflow: ellipsis;
  24931. word-wrap: break-word;
  24932. -webkit-box-orient: vertical;
  24933. }
  24934. .hfTime {
  24935. text-align: left;
  24936. box-sizing: border-box;
  24937. padding: 10px 0 10px 0px;
  24938. color: #bfbfbf;
  24939. font-size: 14px;
  24940. }
  24941. .btnAllNT {
  24942. position: fixed;
  24943. bottom: 100px;
  24944. right: 40px;
  24945. z-index: 999;
  24946. display: flex;
  24947. flex-direction: row;
  24948. }
  24949. .btnAllNT > img {
  24950. cursor: pointer;
  24951. width: 80px;
  24952. }
  24953. .toolMask {
  24954. position: fixed;
  24955. width: 100%;
  24956. height: 100%;
  24957. background: #3f3c3c;
  24958. opacity: 0.5;
  24959. top: 0;
  24960. left: 0;
  24961. z-index: 999;
  24962. }
  24963. .addToolCss {
  24964. position: fixed;
  24965. z-index: 999;
  24966. background: #fff;
  24967. right: 5%;
  24968. bottom: 18%;
  24969. min-width: 1035px;
  24970. min-height: 300px;
  24971. border-radius: 10px;
  24972. box-shadow: 0 0 8px 1px #b2b2b2;
  24973. }
  24974. .toolTop {
  24975. display: flex;
  24976. flex-direction: row;
  24977. flex-wrap: nowrap;
  24978. justify-content: space-between;
  24979. align-items: center;
  24980. padding: 20px;
  24981. }
  24982. .toolTop > div:nth-child(2) {
  24983. width: 15px;
  24984. height: 15px;
  24985. padding-right: 10px;
  24986. cursor: pointer;
  24987. }
  24988. .toolTop > div:nth-child(2) > img {
  24989. width: 100%;
  24990. height: 100%;
  24991. }
  24992. .fullStyle>>>.el-dialog__body {
  24993. height: calc(100% - 125px) !important;
  24994. box-sizing: border-box;
  24995. padding: 30px 0 !important;
  24996. background: #fff !important;
  24997. }
  24998. .fullStyle>>>.el-dialog {
  24999. width: 100% !important;
  25000. max-width: 100% !important;
  25001. height: 100% !important;
  25002. margin: 0 !important;
  25003. }
  25004. .fullStyle {
  25005. width: 100% !important;
  25006. max-width: 100% !important;
  25007. height: 100% !important;
  25008. margin: 0 auto !important;
  25009. }
  25010. .fullStyle>>>.el-dialog__footer{
  25011. background: #fff !important;
  25012. }
  25013. .engUpBox {
  25014. width: 100%;
  25015. height: 100%;
  25016. }
  25017. .engTitle,
  25018. .engText {
  25019. display: flex;
  25020. flex-direction: row;
  25021. flex-wrap: nowrap;
  25022. align-items: flex-start;
  25023. padding: 0 20px 20px 20px;
  25024. box-sizing: border-box;
  25025. }
  25026. .engTitle > .div:first-child,
  25027. .engText > div:first-child {
  25028. min-width: 75px;
  25029. }
  25030. .correctBox{
  25031. width: 100%;
  25032. display: flex;
  25033. flex-direction: row;
  25034. flex-wrap: nowrap;
  25035. align-items: flex-start;
  25036. }
  25037. .oldBox{
  25038. width: 50%;
  25039. height: 100%;
  25040. display: flex;
  25041. flex-direction: column;
  25042. flex-wrap: nowrap;
  25043. align-items: center;
  25044. border-top: 1px solid #d9d9d9;
  25045. border-left: 1px solid #d9d9d9;
  25046. border-right: 1px solid #d9d9d9;
  25047. }
  25048. .oldBox>div:first-child{
  25049. width: 100%;
  25050. text-align: center;
  25051. background: #d9d9d9;
  25052. height: 35px;
  25053. line-height: 35px;
  25054. font-weight: bold;
  25055. }
  25056. .oldText{
  25057. width: 100%;
  25058. height: calc(100% - 35px);
  25059. overflow: auto;
  25060. margin: 10px 0;
  25061. display: flex;
  25062. flex-direction: column;
  25063. flex-wrap: nowrap;
  25064. align-content: center;
  25065. align-items: center;
  25066. }
  25067. .detailBox{
  25068. width: 50%;
  25069. padding: 10px;
  25070. background: #f6f6f6;
  25071. border-radius: 5px;
  25072. }
  25073. .oldDetail,.oldDetail1{
  25074. padding-bottom: 30px;
  25075. }
  25076. .oldImg{
  25077. width:30px;
  25078. height: 30px;
  25079. }
  25080. .oldImg>img{
  25081. width: 100%;
  25082. height: 100%;
  25083. }
  25084. .allName{
  25085. min-width: 200px;
  25086. white-space: nowrap;
  25087. overflow: hidden;
  25088. text-overflow: ellipsis;
  25089. word-break: break-word;
  25090. cursor: pointer;
  25091. text-align: center;
  25092. border: 1px solid #bcc2cc;
  25093. box-sizing: border-box;
  25094. }
  25095. .engUpTop{
  25096. max-height: 300px;
  25097. overflow: auto;
  25098. }
  25099. .isUpdateToolDetailClass{
  25100. padding: 0 !important;
  25101. }
  25102. .isUpdateToolDetailClass textarea{
  25103. padding:12px;
  25104. font-size: 16px;
  25105. min-height:100%;
  25106. width: 100%;
  25107. box-sizing:border-box;
  25108. outline: none;
  25109. border:none;
  25110. line-height: 30px;
  25111. resize: none;
  25112. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25113. color: #838383;
  25114. }
  25115. .show_taskD {
  25116. min-width: fit-content;
  25117. margin-left: 10px;
  25118. display: flex;
  25119. align-items: center;
  25120. font-size: 14px;
  25121. cursor: pointer;
  25122. color: #717c8d;
  25123. }
  25124. .show_taskD > img {
  25125. width: 15px;
  25126. margin-right: 5px;
  25127. transition: 0.2s all;
  25128. transform: rotate(-90deg);
  25129. }
  25130. .show_taskD.show > img {
  25131. transform: rotate(0deg);
  25132. }
  25133. .dialog_diyCopy >>> .el-dialog__header {
  25134. display: none !important;
  25135. }
  25136. .dialog_diyCopy >>> .el-dialog__body {
  25137. padding: 0 !important;
  25138. height: 100% !important;
  25139. }
  25140. .confirmOpenDigCss > div{
  25141. font-size: 14px;
  25142. color: rgba(0, 0, 0, 0.6);
  25143. }
  25144. .confirmOpenDigCss >>> .el-dialog{
  25145. border-radius: 6px;
  25146. }
  25147. .confirmOpenDigCss >>> .el-dialog__body{
  25148. padding: 25px !important;
  25149. }
  25150. .confirmOpenDigCss > span{
  25151. font-size: 16px;
  25152. font-weight: 600;
  25153. color: rgba(0, 0, 0, 0.8);
  25154. }
  25155. .correctCss{
  25156. position: absolute;
  25157. bottom: -70px;
  25158. background: #409eff;
  25159. color: #fff;
  25160. }
  25161. div::-webkit-scrollbar {
  25162. width: 10px;
  25163. height: 6px;
  25164. }
  25165. .Ovh{
  25166. margin: 5px 0;
  25167. width: 4em;
  25168. -webkit-line-clamp: 2;
  25169. display: -webkit-box;
  25170. -webkit-box-orient: vertical;
  25171. overflow: hidden;
  25172. text-overflow: ellipsis;
  25173. }
  25174. .renderedFor >>> .katex {
  25175. font-size: 18px;
  25176. width: 100%;
  25177. white-space: normal;
  25178. font-family: '黑体' !important;
  25179. }
  25180. .renderedFor >>> .katex .base{
  25181. display: inline !important;
  25182. display: contents !important;
  25183. }
  25184. .renderedFor >>> .katex .base .cjk_fallback{
  25185. white-space: normal !important;
  25186. display: inline !important;
  25187. }
  25188. .notop >>> .vjs-fluid{
  25189. padding-top: 0 !important;
  25190. }
  25191. .xiaz{
  25192. position: absolute;
  25193. right: 40px;
  25194. top: 10px;
  25195. width: 24px !important;
  25196. padding: 4px;
  25197. box-sizing: border-box;
  25198. background: #243052;
  25199. border-radius: 8px;
  25200. height: 24px !important;
  25201. }
  25202. </style>