studyStudent.vue 875 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- 阶段模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <div class="btnAllNT" v-if="false">
  16. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  17. <img
  18. v-if="
  19. courseDetail.userid == userid ||
  20. (courseDetail.course_teacher &&
  21. courseDetail.course_teacher.indexOf(userid) != -1)
  22. "
  23. src="../assets/icon/learn/addTool.png"
  24. @click="openToolAll"
  25. style="position: relative"
  26. />
  27. </div>
  28. <div
  29. class="pButton"
  30. style="left: 0; top: 140px"
  31. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  32. @click="setContent2(true)"
  33. >
  34. <!-- 批 , getCourseDetail()-->
  35. <img
  36. src="../assets/icon/newIcons/isRight.png"
  37. style="width: 45px"
  38. alt=""
  39. />
  40. </div>
  41. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  42. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  43. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  44. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  45. <div
  46. style="
  47. max-width: calc(100% - 40px);
  48. width: auto;
  49. white-space: nowrap;
  50. overflow: hidden;
  51. text-overflow: ellipsis;
  52. word-break: break-word;
  53. display: block;
  54. "
  55. >
  56. <el-tooltip
  57. effect="light"
  58. :content="courseDetail.title"
  59. placement="top"
  60. >
  61. <div class="ctitle">
  62. {{ courseDetail.title }}
  63. </div>
  64. </el-tooltip>
  65. </div>
  66. <el-tooltip effect="light" :content="lang.ssCollapse" placement="top">
  67. <div class="mlImg" @click="setContent2(false)">
  68. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  69. </div>
  70. </el-tooltip>
  71. </div>
  72. <div
  73. class="inviteBox"
  74. v-if="tcid && inviteCode"
  75. style="padding: 0 0 8px 0"
  76. >
  77. <div>
  78. <!-- <span>识别码:{{ inviteCode }}</span> -->
  79. <span>{{ lang.ssInviteCodeLabel }}{{ Code2 ? Code2 + inviteCode : inviteCode }}</span>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="cru_selectBox">
  84. <div
  85. style="background: #fff; margin: 0 10px; border-radius: 8px"
  86. v-for="(item, stageIndex) in navList"
  87. :key="stageIndex"
  88. >
  89. <div
  90. class="stageBoxCss"
  91. @click="get(stageIndex)"
  92. :class="{
  93. // stageBoxIsCss: stageIndex == courseType,
  94. }"
  95. >
  96. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  97. <div>{{ lang.ssStage2.replace(/\*/g, stageIndex + 1) }}</div>
  98. <el-tooltip
  99. effect="light"
  100. :content="item.dyName"
  101. placement="top"
  102. >
  103. <div>
  104. {{ item.dyName }}
  105. </div>
  106. </el-tooltip>
  107. </div>
  108. <!-- <div class="closeTri" v-if="stageIndex == courseType" :style="{transform:item.isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}">
  109. <img src="../assets/icon/newIcons/downC.png" alt />
  110. </div> -->
  111. <div class="closeTri" :style="{transform:item.isOpen ? 'rotate(90deg)' : 'rotate(0deg)'}">
  112. <img src="../assets/icon/newIcons/right.png" alt />
  113. </div>
  114. </div>
  115. <div class="stageChild" :class="{ navActive: item.isOpen }">
  116. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  117. <div
  118. class="navItem"
  119. :class="{
  120. openTaskActive:
  121. navIndex == taskCount &&
  122. nav.id == navId &&
  123. stageIndex == courseType,
  124. }"
  125. >
  126. <div v-if="nav.tool[0].tool != undefined">
  127. <div
  128. class="closeTri1"
  129. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  130. @click="openTask(stageIndex, navIndex, nav.id)"
  131. >
  132. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../assets/icon/newIcons/bDown2.png" alt />
  133. </div>
  134. <div
  135. class="closeTri1"
  136. v-else
  137. @click="openTask(stageIndex, navIndex, nav.id)"
  138. >
  139. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../assets/icon/newIcons/right.png" alt />
  140. </div>
  141. </div>
  142. <div v-else class="noToolBlue"></div>
  143. <div
  144. @click="openTask(stageIndex, navIndex, nav.id)"
  145. class="navItemList"
  146. :class="{
  147. isItemList:
  148. navIndex == taskCount &&
  149. nav.id == navId &&
  150. stageIndex == courseType,
  151. }"
  152. >
  153. <div>{{ lang.ssTask + (navIndex + 1)}}:</div>
  154. <el-tooltip
  155. effect="light"
  156. :content="nav.taskName"
  157. placement="top"
  158. >
  159. <div
  160. :style="{
  161. width:
  162. IsLookOpen &&
  163. !(
  164. navIndex == taskCount &&
  165. nav.id == navId &&
  166. stageIndex == courseType
  167. )
  168. ? 'calc(100% - 75px)'
  169. : 'auto',
  170. }"
  171. >
  172. {{ nav.taskName }}
  173. </div>
  174. </el-tooltip>
  175. </div>
  176. <div class="lockTaskIcon">
  177. <img
  178. src="../assets/lock.png"
  179. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  180. courseDetail.course_teacher.indexOf(userid) ==-1"
  181. alt=""
  182. />
  183. </div>
  184. </div>
  185. <div
  186. v-if="nav.tool[0].tool != undefined"
  187. class="toolChild"
  188. :class="{ toolActive: nav.isOpen }"
  189. >
  190. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  191. <div
  192. class="gjCss"
  193. :class="{ isGjCss: t.isTool }"
  194. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  195. >
  196. <div>{{ lang.ssTool + (toolIndex + 1)}}:</div>
  197. <div v-if="t.tool == 58">{{ lang.ssSimulateDrive }}</div>
  198. <div v-if="t.tool == 59">{{ lang.ssPathSearch }}</div>
  199. <div v-if="t.tool == 60">{{ lang.ssDeepLearning }}</div>
  200. <div v-if="t.tool == 10">{{ lang.ssCountdown }}</div>
  201. <div v-if="t.tool == 65">{{ lang.ssPickPerson }}</div>
  202. <div v-if="t.tool == 7">{{ lang.ssMindGrid }}</div>
  203. <div v-if="t.tool == 1">{{ lang.ssWhiteboard }}</div>
  204. <div v-if="t.tool == 52">{{ lang.ssDocument }}</div>
  205. <div v-if="t.tool == 3">{{ lang.ssMindMap }}</div>
  206. <div v-if="t.tool == 48">{{ lang.ssTable }}</div>
  207. <div v-if="t.tool == 49">{{ lang.ssStudentGroup }}</div>
  208. <div v-if="t.tool == 4">{{ lang.ssSurvey }}</div>
  209. <div v-if="t.tool == 45">{{ lang.ssChoice }}</div>
  210. <div v-if="t.tool == 15">{{ lang.ssQa }}</div>
  211. <div v-if="t.tool == 16">{{ lang.ssHomework }}</div>
  212. <div v-if="t.tool == 50">{{ lang.ssBatchUpload }}</div>
  213. <div v-if="t.tool == 41">{{ lang.ssMatch }}</div>
  214. <div v-if="t.tool == 47">{{ lang.ssSort }}</div>
  215. <div v-if="t.tool == 40">{{ lang.ssPersonalEval }}</div>
  216. <div v-if="t.tool == 18">{{ lang.ssTraining }}</div>
  217. <div v-if="t.tool == 21">AIoT Blockly</div>
  218. <div v-if="t.tool == 23">AI Python</div>
  219. <div v-if="t.tool == 24">AI Blockly</div>
  220. <div v-if="t.tool == 32">{{ lang.ssCodeEdit }}</div>
  221. <div v-if="t.tool == 57">CocoPi</div>
  222. <div v-if="t.tool == 63">{{ lang.ssTurtle }}</div>
  223. <div v-if="t.tool == 28">{{ lang.ssTranslate }}</div>
  224. <div v-if="t.tool == 31">{{ lang.ssDigitalBoard }}</div>
  225. <div v-if="t.tool == 39">GeoGebra</div>
  226. <div v-if="t.tool == 66">{{ lang.ssFormula }}</div>
  227. <div v-if="t.tool == 67">{{ lang.ssMolecule }}</div>
  228. <div v-if="t.tool == 68">{{ lang.ssTimeline }}</div>
  229. <div v-if="t.tool == 69">{{ lang.ssEnglishWrite }}</div>
  230. <div v-if="t.tool == 70">{{ lang.ssEnglishSpeak }}</div>
  231. <div v-if="t.tool == 25">{{ lang.ssGoalManage }}</div>
  232. <div v-if="t.tool == 26">{{ lang.ssCourseDesign }}</div>
  233. <div v-if="t.tool == 62">{{ lang.ssInteractiveVideo }}</div>
  234. <div v-if="t.tool == 71">{{ lang.ssAiAgent }}</div>
  235. <div v-if="t.tool == 72">{{ lang.ssAppCenter }}</div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. </div>
  241. </div>
  242. </div>
  243. </div>
  244. <!-- :class="{ navLeftCss: !mlDialog }" -->
  245. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  246. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  247. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  248. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  249. <div>{{ lang.ssTask.replace(/\*/g, taskCount + 1) }}</div>
  250. <el-tooltip
  251. effect="light"
  252. :content="
  253. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  254. "
  255. placement="top"
  256. >
  257. <div>
  258. {{
  259. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  260. .task
  261. }}
  262. </div>
  263. </el-tooltip>
  264. </div>
  265. <div class="btnAll" v-show="(!orgArray.includes(org) && !oidArray.includes(oid)) || $region == 'hk'"><!--v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'"-->
  266. <div class="btnLeft">
  267. <el-tooltip effect="light" :content="lang.ssRefresh" placement="top">
  268. <div class="reBtnIcon" @click="refreshCourse">
  269. <span>{{ lang.ssRefresh }}</span>
  270. </div>
  271. </el-tooltip>
  272. <el-tooltip effect="light" :content="lang.ssComment" placement="top">
  273. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  274. <span>{{ lang.ssComment }}</span>
  275. </div>
  276. </el-tooltip>
  277. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  278. <el-tooltip effect="light" :content="lang.ssRecord" placement="top">
  279. <div class="vedioIcon" @click="startRecording">
  280. <span>{{ lang.ssRecord }}</span>
  281. </div>
  282. </el-tooltip>
  283. </div>
  284. <div v-else-if="tType == 1 || tType == 4">
  285. <el-tooltip effect="light" :content="lang.ssDownload" placement="top">
  286. <div class="vedioIcon1" @click="stopRecording">
  287. <span>{{ lang.ssDownload }}</span>
  288. </div>
  289. </el-tooltip>
  290. </div>
  291. </div>
  292. <div class="btnRight">
  293. <div
  294. class="last"
  295. @click="nextOrpreSteps(0)"
  296. v-if="!(IsFollow && tType == 2)"
  297. @mouseover="isHovered = true"
  298. @mouseout="isHovered = false"
  299. >
  300. <div class="lastImg">
  301. <img
  302. :src="
  303. isHovered
  304. ? require('../assets/icon/newIcons/whiteLast.png')
  305. : require('../assets/icon/newIcons/last.png')
  306. "
  307. alt=""
  308. />
  309. </div>
  310. <div class="lastText">{{ lang.ssPrevious }}</div>
  311. </div>
  312. <div
  313. class="last"
  314. @click="nextOrpreSteps(1)"
  315. v-if="!(IsFollow && tType == 2)"
  316. @mouseover="isHovered1 = true"
  317. @mouseout="isHovered1 = false"
  318. >
  319. <div class="lastText">{{ lang.ssNext }}</div>
  320. <div class="lastImg">
  321. <img
  322. :src="
  323. isHovered1
  324. ? require('../assets/icon/newIcons/whiteNext.png')
  325. : require('../assets/icon/newIcons/next.png')
  326. "
  327. alt=""
  328. />
  329. </div>
  330. </div>
  331. <div
  332. class="last"
  333. @click="juriVisible = true"
  334. v-if="tType == 1"
  335. @mouseover="isHovered2 = true"
  336. @mouseout="isHovered2 = false"
  337. >
  338. <div class="lastImg">
  339. <img
  340. :src="
  341. isHovered2
  342. ? require('../assets/icon/newIcons/whiteLock.png')
  343. : require('../assets/icon/newIcons/lock.png')
  344. "
  345. alt=""
  346. />
  347. </div>
  348. <div class="lastText">{{ lang.ssPermission }}</div>
  349. </div>
  350. <div
  351. class="returnBtn1 returnIcon"
  352. @click.stop="
  353. goTo(
  354. '/courseDetail?userid=' +
  355. userid +
  356. '&oid=' +
  357. oid +
  358. '&org=' +
  359. org +
  360. '&cid=' +
  361. classId +
  362. '&courseId=' +
  363. id +
  364. '&tType=' +
  365. tType +
  366. '&screenType=' +
  367. screenType
  368. )
  369. "
  370. >
  371. <div class="lastImg">
  372. <img src="../assets/icon/newIcon/return.png" alt="" />
  373. </div>
  374. <div class="lastText" style="color: #000">{{ lang.ssReturn }}</div>
  375. </div>
  376. </div>
  377. <!-- <div
  378. class="returnBtn lockIcon"
  379. @click="juriVisible = true"
  380. v-if="tType == 1"
  381. >
  382. 权限
  383. </div>
  384. <div
  385. class="returnBtn vedioIcon"
  386. @click="startRecording"
  387. v-if="!videoStart && (tType == 1 || tType == 4)"
  388. >
  389. 录制
  390. </div>
  391. <div
  392. class="returnBtn"
  393. @click="stopRecording"
  394. v-else-if="tType == 1 || tType == 4"
  395. style="background: #ee5255"
  396. >
  397. {{ lang.ssDownload }}
  398. </div>
  399. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  400. {{ lang.ssComment }}
  401. </div>
  402. <div
  403. class="returnBtn"
  404. @click="nextOrpreSteps(0)"
  405. v-if="!(IsFollow && tType == 2)"
  406. >
  407. {{ lang.ssPrevious }}
  408. </div>
  409. <div
  410. class="returnBtn"
  411. @click="nextOrpreSteps(1)"
  412. v-if="!(IsFollow && tType == 2)"
  413. >
  414. {{ lang.ssNext }}
  415. </div>
  416. <div class="returnBtn" @click="refreshCourse">{{ lang.ssRefresh }}</div>
  417. <div
  418. class="returnBtn returnIcon"
  419. @click.stop="
  420. goTo(
  421. '/courseDetail?userid=' +
  422. userid +
  423. '&oid=' +
  424. oid +
  425. '&org=' +
  426. org +
  427. '&cid=' +
  428. classId +
  429. '&courseId=' +
  430. id +
  431. '&tType=' +
  432. tType +
  433. '&screenType=' +
  434. screenType
  435. )
  436. "
  437. >
  438. 返回
  439. </div> -->
  440. </div>
  441. </div>
  442. <div
  443. class="isNoMessage"
  444. v-if="
  445. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  446. .chapterData.length == 0 &&
  447. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .toolChoose[0].tool.length == 0 &&
  449. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  450. .taskDetail == '' &&
  451. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  452. .eList &&
  453. !(
  454. courseDetail.userid == userid ||
  455. (courseDetail.course_teacher &&
  456. courseDetail.course_teacher.indexOf(userid) != -1)
  457. )
  458. "
  459. >
  460. <img src="../assets/icon/isNoMessage.png" alt />
  461. </div>
  462. <div class="study_top" :class="{ pzClass: pzDialog }">
  463. <div
  464. class="vedioBox"
  465. v-if="
  466. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  467. .taskDetail != '' ||
  468. vChapterData[taskCount].length > 0 ||
  469. fileC[taskCount].length > 0) && (tType == 1 || (tType == 2 && IsStulook))
  470. "
  471. style="border-radius: 0 0 20px 20px"
  472. >
  473. <div
  474. class="taskBox"
  475. v-if="
  476. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  477. .taskDetail != ''
  478. "
  479. >
  480. <div
  481. style="
  482. display: flex;
  483. flex-wrap: nowrap;
  484. flex-direction: column;
  485. position: relative;
  486. "
  487. class="renderedFor"
  488. >
  489. <div
  490. style="
  491. padding: 15px 0;
  492. line-height: 29px;
  493. font-size: 18px;
  494. color: #0e1e33;
  495. "
  496. class="cont"
  497. v-if="
  498. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  499. .taskDetail != ''
  500. "
  501. v-html="
  502. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  503. .taskDetail
  504. ? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
  505. taskCount
  506. ].taskDetail)
  507. : lang.ssNoDesc
  508. "
  509. ></div>
  510. </div>
  511. </div>
  512. <div
  513. class="student_head"
  514. v-if="
  515. vChapterData[taskCount].length > 0 ||
  516. fileC[taskCount].length > 0
  517. "
  518. >
  519. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  520. <div
  521. :class="
  522. contentDialog == false
  523. ? 'box_course isContentCss'
  524. : 'box_course'
  525. "
  526. v-if="
  527. vChapterData.length > 0 &&
  528. vChapterData[taskCount] &&
  529. showType !== ''
  530. "
  531. >
  532. <div class="wheel" style="height: auto" v-if="showType === 0">
  533. <div
  534. class="workd_media"
  535. style="height: 650px; width: calc(100% - 50px)"
  536. >
  537. <video-player
  538. class="video-player vjs-custom-skin notop"
  539. :class="contentDialog == false ? 'isAllWidth' : ''"
  540. :playsinline="true"
  541. :options="playerO[taskCount]"
  542. @play="onPlayerPlay($event)"
  543. style="width: 100%; height: 650px; margin: 0 0 0 30px"
  544. ></video-player>
  545. </div>
  546. </div>
  547. <div
  548. class="wheel"
  549. v-if="showType == 1"
  550. style="
  551. box-shadow: 0 0 6px 1px #f2f2f2;
  552. width: 95%;
  553. margin: 0 auto;
  554. background: #f1f1f1;
  555. "
  556. >
  557. <div class="title">{{ lang.ssViewDoc }}</div>
  558. <el-form class="textBox">
  559. <el-form-item class="textTitle">
  560. <div style="font-size: 22px">
  561. {{ text.name }}
  562. </div>
  563. </el-form-item>
  564. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  565. <div v-html="text.url" class="textContent cont"></div>
  566. </el-form>
  567. </div>
  568. <div
  569. class="wheel"
  570. v-if="
  571. pptImgUrl1.indexOf(
  572. 'https://view.officeapps.live.com/op/view.aspx?src='
  573. ) != -1 && showType == 2
  574. "
  575. style="width: 95%; margin: 0 auto"
  576. >
  577. <iframe
  578. style="width: 100%; height: 100%; border: none"
  579. :src="pptImgUrl1"
  580. ></iframe>
  581. </div>
  582. <div
  583. class="wheel"
  584. v-else-if="showType == 2"
  585. style="width: 95%; margin: 0 auto"
  586. >
  587. <iframe
  588. style="width: 100%; height: 100%; border: none"
  589. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  590. :key="diffKey"
  591. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  592. :src="pptImgUrl1"
  593. ></iframe>
  594. <iframe
  595. style="width: 100%; height: 100%; border: none"
  596. security="restricted"
  597. v-else
  598. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  599. :src="pptImgUrl1"
  600. ></iframe>
  601. </div>
  602. <div
  603. class="wheel"
  604. v-if="showType === 16"
  605. style="width: 95%; margin: 0 auto"
  606. >
  607. <iframe
  608. style="width: 100%; height: 100%; border: none"
  609. :src="pptImgUrl1"
  610. ></iframe>
  611. </div>
  612. <div
  613. class="wheel"
  614. v-if="showType == 3"
  615. style="width: 95%; margin: 0 auto"
  616. >
  617. <pdf
  618. :pdfUrl="pptImgUrl1"
  619. style="width: 100%; height: 100%; overflow: auto"
  620. ></pdf>
  621. </div>
  622. <div
  623. class="wheel"
  624. v-if="showType == 4"
  625. style="width: 95%; margin: 0 auto"
  626. >
  627. <el-image
  628. :src="pptImgUrl1"
  629. fit="contain"
  630. style="width: 100%; height: 100%; cursor: pointer"
  631. @click="previewImg(pptImgUrl1)"
  632. ></el-image>
  633. </div>
  634. </div>
  635. <div
  636. class="pButton"
  637. style="position: absolute; right: 20px; top: 0; z-index: 998"
  638. v-if="!contentDialog"
  639. @click="setContent(true)"
  640. >
  641. <!-- 批 -->
  642. <img
  643. src="../assets/icon/newIcons/isLeft.png"
  644. style="width: 45px"
  645. alt=""
  646. />
  647. </div>
  648. <div
  649. v-if="contentDialog == true"
  650. :style="{
  651. width:
  652. (vChapterData[taskCount].length > 0 ||
  653. fileC[taskCount].length > 0) &&
  654. showType === ''
  655. ? 'calc(100%)'
  656. : '300px',
  657. margin:
  658. (vChapterData[taskCount].length > 0 ||
  659. fileC[taskCount].length > 0) &&
  660. showType === ''
  661. ? '0 15px'
  662. : '0 15px 0 0',
  663. }"
  664. >
  665. <div
  666. class="vedioList"
  667. v-if="
  668. vChapterData[taskCount].length > 0 ||
  669. fileC[taskCount].length > 0
  670. "
  671. style="height: 650px"
  672. >
  673. <div class="navCorOpenBox">
  674. <div class="navTitile">{{ lang.ssContentListLabel }}</div>
  675. <div class="navCorOpen" @click="setContent(false)">
  676. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  677. </div>
  678. </div>
  679. <div class="navBox">
  680. <div
  681. v-show="
  682. vChapterData[taskCount].length > 0 ||
  683. fileC[taskCount].length > 0
  684. "
  685. style="padding: 10px 0 25px 0"
  686. >
  687. <div
  688. class="vedioTimeBox"
  689. v-for="(vitem, vindex) in vChapterData[taskCount]"
  690. :key="vindex + '1'"
  691. >
  692. <div class="navListItem" v-if="vitem.type == 2">
  693. <div
  694. @click="lookVedio(vitem.url, vindex)"
  695. class="navText"
  696. :class="isClickNav == vindex ? 'isClickNav' : ''"
  697. >
  698. <span v-if="vitem.text">{{ vitem.text }}-</span
  699. >{{ vitem.name }}
  700. </div>
  701. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  702. <img src="../assets/icon/newIcon/down.png" alt />
  703. </div> -->
  704. </div>
  705. <div class="navListItem" v-if="vitem.type == 6">
  706. <div
  707. @click="lookText(taskCount, vindex)"
  708. class="navText"
  709. :class="isClickNav == vindex ? 'isClickNav' : ''"
  710. >
  711. {{ vitem.name }}.doc
  712. </div>
  713. <div
  714. class="downIcon"
  715. @click="checkFileFull1(vitem.type, vitem)"
  716. >
  717. <img
  718. src="../assets/icon/newIcon/allScreen.png"
  719. alt
  720. />
  721. </div>
  722. </div>
  723. <div
  724. class="navListItem"
  725. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  726. >
  727. <div
  728. @click="doUrl(vitem.url, vindex)"
  729. class="navText"
  730. :class="isClickNav == vindex ? 'isClickNav' : ''"
  731. >
  732. {{ vitem.title ? vitem.title : vitem.url }}
  733. </div>
  734. <div
  735. class="downIcon"
  736. @click="checkFileFull1(vitem.type, vitem)"
  737. >
  738. <img
  739. src="../assets/icon/newIcon/allScreen.png"
  740. alt
  741. />
  742. </div>
  743. </div>
  744. <div class="navListItem" v-if="vitem.type == 3">
  745. <div
  746. @click="downFile(vitem, vindex)"
  747. class="navText"
  748. :class="isClickNav == vindex ? 'isClickNav' : ''"
  749. >
  750. <span v-if="vitem.text">{{ vitem.text }}-</span
  751. >{{ vitem.name }}
  752. </div>
  753. <div
  754. class="downIcon"
  755. @click="checkFileFull1(vitem.type, vitem)"
  756. >
  757. <img
  758. src="../assets/icon/newIcon/allScreen.png"
  759. alt
  760. />
  761. </div>
  762. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  763. <img src="../assets/icon/newIcon/down.png" alt />
  764. </div> -->
  765. </div>
  766. <div class="navListItem" v-if="vitem.type == 12">
  767. <div class="navText" @click="downloadFile2(vitem)">
  768. <span v-if="vitem.text">{{ vitem.text }}-</span
  769. >{{ vitem.name }}
  770. </div>
  771. <div
  772. class="downIcon"
  773. @click="checkFileFull1(vitem.type, vitem)"
  774. >
  775. <img
  776. src="../assets/icon/newIcon/allScreen.png"
  777. alt
  778. />
  779. </div>
  780. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  781. <img src="../assets/icon/newIcon/down.png" alt />
  782. </div> -->
  783. </div>
  784. <div class="navListItem" v-if="vitem.type == 13">
  785. <div
  786. class="navText"
  787. @click="checkPhoto(vitem, vindex)"
  788. :class="isClickNav == vindex ? 'isClickNav' : ''"
  789. >
  790. {{ vitem.name }}
  791. </div>
  792. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  793. <img src="../assets/icon/newIcon/down.png" alt />
  794. </div> -->
  795. </div>
  796. <div class="navListItem" v-if="vitem.type == 16">
  797. <div
  798. class="navText"
  799. @click="checkHtml(vitem, vindex)"
  800. :class="isClickNav == vindex ? 'isClickNav' : ''"
  801. >
  802. {{ vitem.name }}
  803. </div>
  804. <div
  805. class="downIcon"
  806. @click="checkFileFull1(vitem.type, vitem)"
  807. >
  808. <img
  809. src="../assets/icon/newIcon/allScreen.png"
  810. alt
  811. />
  812. </div>
  813. </div>
  814. <div class="navListItem" v-if="vitem.type == 17">
  815. <div
  816. class="navText"
  817. @click="checkHtml(vitem, vindex)"
  818. :class="isClickNav == vindex ? 'isClickNav' : ''"
  819. >
  820. {{ vitem.name }}
  821. </div>
  822. <div
  823. class="downIcon"
  824. @click="checkFileFull1(vitem.type, vitem)"
  825. >
  826. <img
  827. src="../assets/icon/newIcon/allScreen.png"
  828. alt
  829. />
  830. </div>
  831. </div>
  832. </div>
  833. <div
  834. class="fileC_box"
  835. v-if="fileC[taskCount].length > 0"
  836. >
  837. <div class="fileC_title">{{ lang.ssNoPreview }}</div>
  838. <div
  839. class="vedioTimeBox"
  840. v-for="(vitem, vindex) in fileC[taskCount]"
  841. :key="vindex + '1'"
  842. >
  843. <div class="navListItem" v-if="vitem.type == 12">
  844. <div class="navText" style="color: #acb4bf">
  845. <span v-if="vitem.text">{{ vitem.text }}-</span
  846. >{{ vitem.name }}
  847. </div>
  848. <div
  849. class="downIcon"
  850. @click="downloadFile2(vitem)"
  851. >
  852. <img
  853. src="../assets/icon/newIcon/down.png"
  854. alt
  855. />
  856. </div>
  857. </div>
  858. </div>
  859. </div>
  860. </div>
  861. </div>
  862. </div>
  863. </div>
  864. </div>
  865. <div style="width: calc(100% - 315px)">
  866. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  867. <!-- <el-button
  868. type="primary"
  869. class="newButton"
  870. @click="checkFileFull(showType, pptImgUrl1)"
  871. >全屏查看</el-button
  872. >
  873. <el-button
  874. type="primary"
  875. class="newButton"
  876. @click="downloadFile(pptImgUrl1)"
  877. v-if="showType != 2"
  878. >文件下载</el-button
  879. > -->
  880. <el-button
  881. class="newButton"
  882. v-if="
  883. showType == 2 &&
  884. pptImgUrl1.indexOf(
  885. 'https://view.officeapps.live.com/op/view.aspx?src='
  886. ) == -1
  887. "
  888. type="primary"
  889. @click="openLine(pptImgUrl1)"
  890. >{{ lang.ssOpenLink }}
  891. </el-button>
  892. </div>
  893. <!-- <div
  894. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  895. v-if="showType == 1"
  896. >
  897. <el-button
  898. type="primary"
  899. class="newButton"
  900. @click="checkFileFull(showType, text)"
  901. >{{ lang.ssFullScreenView }}</el-button
  902. >
  903. </div> -->
  904. </div>
  905. </div>
  906. </div>
  907. <div class="student_body" v-resize="resize">
  908. <div
  909. class="vedioBox"
  910. :style="{
  911. borderRadius:
  912. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  913. .taskDetail == '' &&
  914. vChapterData[taskCount].length == 0 &&
  915. fileC[taskCount].length == 0
  916. ? '0 0 20px 20px'
  917. : '20px',
  918. }"
  919. v-if="
  920. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  921. .toolChoose[0].tool &&
  922. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  923. .toolChoose[0].tool.length > 0
  924. "
  925. >
  926. <div
  927. class="toolHeng2"
  928. style="position: relative"
  929. v-if="
  930. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  931. .toolChoose[0].tool &&
  932. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  933. .toolChoose[0].tool.length &&
  934. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  935. .toolChoose[0].tool.length > 0
  936. "
  937. >
  938. <div class="workNav">{{ lang.ssWorkArea }}</div>
  939. <div
  940. class="filebox"
  941. style="flex-wrap: nowrap"
  942. v-for="(tool, toolIndex) in chapInfoList[courseType]
  943. .chapterInfo[0].taskJson[taskCount].toolChoose"
  944. :key="toolIndex"
  945. >
  946. <div class="bzBox">
  947. <div class="yCss"></div>
  948. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  949. {{ lang.ssTool + (toolIndex + 1) }}
  950. </div>
  951. <div
  952. v-if="timeWorkList[toolIndex].length > 0"
  953. style="margin: 0 0 0 10px"
  954. >
  955. {{
  956. timeWorkList[toolIndex][0].time
  957. ? lang.ssTimeLabel + timeWorkList[toolIndex][0].time
  958. : ""
  959. }}
  960. </div>
  961. </div>
  962. <div class="toolBox">
  963. <div>
  964. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  965. :key="indexTool"-->
  966. <!-- <div class="iframeBox">
  967. <div
  968. class="addPoint isBorder"
  969. v-for="(tooC, toolCIndex) in tool.tool"
  970. :key="toolCIndex"
  971. >
  972. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  973. <div
  974. class="iframeName"
  975. >
  976. {{ lang.ssWhiteboard }}
  977. </div>
  978. <iframe
  979. src="https://iwb.cocorobo.cn/"
  980. ref="whiteBoard"
  981. ></iframe>
  982. </div>
  983. </div>
  984. </div>-->
  985. <div class="noiframeBox">
  986. <div
  987. class="addPoint"
  988. v-for="(tooC, toolCIndex) in tool.tool"
  989. :key="toolCIndex"
  990. >
  991. <div v-if="tooC == 1">
  992. <img
  993. src="../assets/icon/secondToolList/whiteBoard.png"
  994. alt
  995. @click="addTools(tooC, toolIndex, taskCount)"
  996. />
  997. <div style="margin: 5px 0">{{ lang.ssWhiteboard }}</div>
  998. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  999. style="position: absolute;right: 33px;top: -30px;">
  1000. {{ lang.ssAnalyze }}
  1001. </div>
  1002. </div>
  1003. <div v-if="tooC == 3">
  1004. <img
  1005. src="../assets/icon/secondToolList/mindMapping.png"
  1006. alt
  1007. @click="addTools(tooC, toolIndex, taskCount)"
  1008. />
  1009. <div style="margin: 5px 0">{{ lang.ssMindMap }}</div>
  1010. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1011. style="position: absolute;right: 33px;top: -30px;">
  1012. {{ lang.ssAnalyze }}
  1013. </div>
  1014. </div>
  1015. <div v-if="tooC == 6">
  1016. <img
  1017. src="../assets/icon/secondToolList/doc.png"
  1018. alt
  1019. @click="addTools(tooC, toolIndex, taskCount)"
  1020. />
  1021. <div style="margin: 5px 0">{{ lang.ssCoDoc }}</div>
  1022. </div>
  1023. <div v-if="tooC == 7">
  1024. <img
  1025. src="../assets/icon/secondToolList/mindNetwork.png"
  1026. alt
  1027. @click="addTools(tooC, toolIndex, taskCount)"
  1028. />
  1029. <div style="margin: 5px 0">{{ lang.ssMindGrid }}</div>
  1030. <!-- && worksStudent[toolIndex].length>0 -->
  1031. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1032. style="position: absolute;right: 33px;top: -30px;">
  1033. {{ lang.ssAnalyze }}
  1034. </div>
  1035. </div>
  1036. <div v-if="tooC == 8">
  1037. <img
  1038. src="../assets/icon/secondToolList/library.png"
  1039. alt
  1040. @click="addTools(tooC, toolIndex, taskCount)"
  1041. />
  1042. <div style="margin: 5px 0">{{ lang.ssMaterialLib }}</div>
  1043. </div>
  1044. <div v-if="tooC == 17">
  1045. <img
  1046. src="../assets/icon/secondToolList/library.png"
  1047. alt
  1048. @click="addTools(tooC, toolIndex, taskCount)"
  1049. />
  1050. <div style="margin: 5px 0">{{ lang.ssLearningMaterial }}</div>
  1051. </div>
  1052. <div v-if="tooC == 2">
  1053. <img
  1054. @click="addTools(tooC, toolIndex, taskCount)"
  1055. src="../assets/icon/secondToolList/note.png"
  1056. alt
  1057. />
  1058. <div style="margin: 5px 0">{{ lang.ssNote }}</div>
  1059. </div>
  1060. <div v-if="tooC == 4">
  1061. <img
  1062. @click="addTools(tooC, toolIndex, taskCount)"
  1063. src="../assets/icon/thirdToolList/ask.png"
  1064. alt
  1065. />
  1066. <div style="margin: 5px 0">{{ lang.ssSurvey }}</div>
  1067. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1068. style="position: absolute;right: 153px;top: -30px;">
  1069. {{ lang.ssAnalyze }}
  1070. </div>
  1071. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1072. style="position: absolute;right: 33px;top: -30px;">
  1073. {{ lang.ssStatisticalAnalysis }}
  1074. </div>
  1075. </div>
  1076. <div v-if="tooC == 45">
  1077. <img
  1078. @click="addTools(tooC, toolIndex, taskCount)"
  1079. src="../assets/icon/thirdToolList/choose.png"
  1080. alt
  1081. />
  1082. <div style="margin: 5px 0">{{ lang.ssChoice }}</div>
  1083. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1084. style="position: absolute;right: 33px;top: -30px;">
  1085. {{ lang.ssAnalyze }}
  1086. </div>
  1087. </div>
  1088. <!-- <div v-if="tooC == 5">
  1089. <img
  1090. @click="addTools(tooC, toolIndex, taskCount)"
  1091. src="../assets/icon/thirdToolList/score.png"
  1092. alt
  1093. />
  1094. <div style="margin: 5px 0">{{ lang.ssRatingScale }}</div>
  1095. </div> -->
  1096. <div v-if="tooC == 10">
  1097. <img
  1098. @click="addTools(tooC, toolIndex, taskCount)"
  1099. src="../assets/icon/thirdToolList/time.png"
  1100. alt
  1101. />
  1102. <div style="margin: 5px 0">{{ lang.ssCountdown }}</div>
  1103. </div>
  1104. <div v-if="tooC == 15">
  1105. <img
  1106. @click="addTools(tooC, toolIndex, taskCount)"
  1107. src="../assets/icon/thirdToolList/answer.png"
  1108. alt
  1109. />
  1110. <div style="margin: 5px 0">{{ lang.ssQa }}</div>
  1111. <div class="upload_toolBtn" v-if="tType == 1"
  1112. :style="{ right: lang.lang == 'com' ? '220px' : '135px' }"
  1113. @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1114. style="position: absolute;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1115. {{ lang.ssAnalyze }}
  1116. </div>
  1117. </div>
  1118. <div v-if="tooC == 26">
  1119. <img
  1120. @click="addTools(tooC, toolIndex, taskCount)"
  1121. src="../assets/icon/thirdToolList/courseDesign.png"
  1122. alt
  1123. />
  1124. <div style="margin: 5px 0">{{ lang.ssCourseDesign }}</div>
  1125. </div>
  1126. <div v-if="tooC == 18">
  1127. <img
  1128. @click="addTools(tooC, toolIndex, taskCount)"
  1129. src="../assets/icon/thirdToolList/trainPlatform.png"
  1130. alt
  1131. />
  1132. <div style="margin: 5px 0">{{ lang.ssTrainingServer }}</div>
  1133. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1134. style="position: absolute;right: 33px;top: -30px;">
  1135. {{ lang.ssAnalyze }}
  1136. </div>
  1137. </div>
  1138. <div v-if="tooC == 16">
  1139. <img
  1140. @click="addTools(tooC, toolIndex, taskCount)"
  1141. src="../assets/icon/thirdToolList/work.png"
  1142. alt
  1143. />
  1144. <div style="margin: 5px 0">{{ lang.ssHomework }}</div>
  1145. </div>
  1146. <div v-if="tooC == 50">
  1147. <img
  1148. @click="addTools(tooC, toolIndex, taskCount)"
  1149. src="../assets/icon/thirdToolList/plwork.png"
  1150. alt
  1151. />
  1152. <div style="margin: 5px 0">{{ lang.ssBatchUpload }}</div>
  1153. </div>
  1154. <div v-if="tooC == 21">
  1155. <img
  1156. @click="addTools(tooC, toolIndex, taskCount)"
  1157. src="../assets/icon/fourthToolList/program.png"
  1158. alt
  1159. />
  1160. <div style="margin: 5px 0">{{ lang.ssAiotBlockly }}</div>
  1161. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1162. style="position: absolute;right: 33px;top: -30px;">
  1163. {{ lang.ssAnalyze }}
  1164. </div>
  1165. </div>
  1166. <!-- <div v-if="tooC == 22">
  1167. <img
  1168. @click="addTools(tooC, toolIndex, taskCount)"
  1169. src="../assets/icon/fourthToolList/program.png"
  1170. alt
  1171. />
  1172. <div style="margin: 5px 0">{{ lang.ssAiExperience }}</div>
  1173. </div> -->
  1174. <div v-if="tooC == 23">
  1175. <img
  1176. @click="addTools(tooC, toolIndex, taskCount)"
  1177. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1178. alt
  1179. />
  1180. <div style="margin: 5px 0">AI Python</div>
  1181. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1182. style="position: absolute;right: 33px;top: -30px;">
  1183. {{ lang.ssAnalyze }}
  1184. </div>
  1185. </div>
  1186. <div v-if="tooC == 24">
  1187. <img
  1188. @click="addTools(tooC, toolIndex, taskCount)"
  1189. src="../assets/icon/fourthToolList/AIprogram.png"
  1190. alt
  1191. />
  1192. <div style="margin: 5px 0">AI Blockly</div>
  1193. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1194. style="position: absolute;right: 33px;top: -30px;">
  1195. {{ lang.ssAnalyze }}
  1196. </div>
  1197. </div>
  1198. <div v-if="tooC == 25">
  1199. <img
  1200. @click="addTools(tooC, toolIndex, taskCount)"
  1201. src="../assets/icon/thirdToolList/evalua.png"
  1202. alt
  1203. />
  1204. <div style="margin: 5px 0">{{ lang.ssGoalManage }}</div>
  1205. </div>
  1206. <div v-if="tooC == 31">
  1207. <img
  1208. @click="addTools(tooC, toolIndex, taskCount)"
  1209. src="../assets/icon/secondToolList/networkPanel.png"
  1210. alt
  1211. />
  1212. <div style="margin: 5px 0">{{ lang.ssMathBoard }}</div>
  1213. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1214. style="position: absolute;right: 33px;top: -30px;">
  1215. {{ lang.ssAnalyze }}
  1216. </div>
  1217. </div>
  1218. <div v-if="tooC == 28">
  1219. <img
  1220. @click="addTools(tooC, toolIndex, taskCount)"
  1221. src="../assets/icon/secondToolList/translation.png"
  1222. alt
  1223. />
  1224. <div style="margin: 5px 0">{{ lang.ssTranslate }}</div>
  1225. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1226. style="position: absolute;right: 33px;top: -30px;">
  1227. {{ lang.ssAnalyze }}
  1228. </div>
  1229. </div>
  1230. <div v-if="tooC == 37">
  1231. <img
  1232. @click="addTools(tooC, toolIndex, taskCount)"
  1233. src="../assets/icon/secondToolList/mohe.png"
  1234. alt
  1235. />
  1236. <div style="margin: 5px 0">{{ lang.ssMohe }}</div>
  1237. </div>
  1238. <div v-if="tooC == 38">
  1239. <img
  1240. @click="addTools(tooC, toolIndex, taskCount)"
  1241. src="../assets/icon/secondToolList/24game.png"
  1242. alt
  1243. />
  1244. <div style="margin: 5px 0">{{ lang.ss24Game }}</div>
  1245. </div>
  1246. <div v-if="tooC == 39">
  1247. <img
  1248. @click="addTools(tooC, toolIndex, taskCount)"
  1249. src="../assets/icon/secondToolList/GeoGebra.png"
  1250. alt
  1251. />
  1252. <div style="margin: 5px 0">GeoGebra</div>
  1253. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1254. style="position: absolute;right: 33px;top: -30px;">
  1255. {{ lang.ssAnalyze }}
  1256. </div>
  1257. </div>
  1258. <div v-if="tooC == 32">
  1259. <img
  1260. @click="addTools(tooC, toolIndex, taskCount)"
  1261. src="../assets/icon/thirdToolList/code.png"
  1262. alt
  1263. />
  1264. <div style="margin: 5px 0">{{ lang.ssCodeEdit }}</div>
  1265. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1266. style="position: absolute;right: 153px;top: -42px;">
  1267. {{ lang.ssAnalyze }}
  1268. </div>
  1269. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1270. style="position: absolute;left: 110px;bottom: 30px;">
  1271. {{ lang.ssUpFile }}
  1272. <input type="file" accept="*" style="display: none"
  1273. @change="beforeUpload1($event, 7, toolIndex)" />
  1274. </div> -->
  1275. </div>
  1276. <div v-if="tooC == 40">
  1277. <img
  1278. @click="addTools(tooC, toolIndex, taskCount)"
  1279. src="../assets/icon/secondToolList/eval.png"
  1280. alt
  1281. />
  1282. <div style="margin: 5px 0">{{ lang.ssPersonalEval }}</div>
  1283. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1284. style="position: absolute;right: 33px;top: -30px;">
  1285. {{ lang.ssAnalyze }}
  1286. </div>
  1287. </div>
  1288. <div v-if="tooC == 41">
  1289. <img
  1290. @click="addTools(tooC, toolIndex, taskCount)"
  1291. src="../assets/icon/thirdToolList/select.png"
  1292. alt
  1293. />
  1294. <div style="margin: 5px 0">{{ lang.ssMatch }}</div>
  1295. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1296. style="position: absolute;right: 33px;top: -30px;">
  1297. {{ lang.ssAnalyze }}
  1298. </div>
  1299. </div>
  1300. <div v-if="tooC == 44">
  1301. <img
  1302. @click="addTools(tooC, toolIndex, taskCount)"
  1303. src="../assets/icon/thirdToolList/hanClass.png"
  1304. alt
  1305. />
  1306. <div style="margin: 5px 0">{{ lang.ssHanziPalace }}</div>
  1307. </div>
  1308. <div v-if="tooC == 47">
  1309. <img
  1310. @click="addTools(tooC, toolIndex, taskCount)"
  1311. src="../assets/icon/fourthToolList/conSentences.png"
  1312. alt
  1313. />
  1314. <div style="margin: 5px 0">{{ lang.ssSort }}</div>
  1315. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1316. style="position: absolute;right: 33px;top: -30px;">
  1317. {{ lang.ssAnalyze }}
  1318. </div>
  1319. </div>
  1320. <div v-if="tooC == 48">
  1321. <img
  1322. @click="addTools(tooC, toolIndex, taskCount)"
  1323. src="../assets/icon/fourthToolList/table.png"
  1324. alt
  1325. />
  1326. <div style="margin: 5px 0">{{ lang.ssTable }}</div>
  1327. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1328. style="position: absolute;right: 33px;top: -30px;">
  1329. {{ lang.ssAnalyze }}
  1330. </div>
  1331. </div>
  1332. <div v-if="tooC == 52">
  1333. <img
  1334. @click="addTools(tooC, toolIndex, taskCount)"
  1335. src="../assets/icon/fourthToolList/text.png"
  1336. alt
  1337. />
  1338. <div style="margin: 5px 0">{{ lang.ssDocument }}</div>
  1339. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1340. style="position: absolute;right: 33px;top: -30px;">
  1341. {{ lang.ssAnalyze }}
  1342. </div>
  1343. </div>
  1344. <div v-if="tooC == 49">
  1345. <img
  1346. @click="addTools(tooC, toolIndex, taskCount)"
  1347. src="../assets/icon/fourthToolList/group.png"
  1348. alt
  1349. />
  1350. <div style="margin: 5px 0">{{ lang.ssStudentGroup }}</div>
  1351. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1352. style="position: absolute;right: 33px;top: -30px;">
  1353. {{ lang.ssAnalyze }}
  1354. </div>
  1355. </div>
  1356. <div v-if="tooC == 57">
  1357. <img
  1358. @click="addTools(tooC, toolIndex, taskCount)"
  1359. src="../assets/icon/fourthToolList/cocopi.png"
  1360. alt
  1361. />
  1362. <div style="margin: 5px 0">CocoPi</div>
  1363. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1364. style="position: absolute;right: 33px;top: -30px;">
  1365. {{ lang.ssAnalyze }}
  1366. </div>
  1367. </div>
  1368. <div v-if="tooC == 58">
  1369. <img
  1370. @click="addTools(tooC, toolIndex, taskCount)"
  1371. src="../assets/icon/fourthToolList/car.png"
  1372. alt
  1373. />
  1374. <div style="margin: 5px 0">{{ lang.ssSimulateDrive }}</div>
  1375. </div>
  1376. <div v-if="tooC == 59">
  1377. <img
  1378. @click="addTools(tooC, toolIndex, taskCount)"
  1379. src="../assets/icon/fourthToolList/lineSearch.png"
  1380. alt
  1381. />
  1382. <div style="margin: 5px 0">{{ lang.ssPathSearch }}</div>
  1383. </div>
  1384. <div v-if="tooC == 60">
  1385. <img
  1386. @click="addTools(tooC, toolIndex, taskCount)"
  1387. src="../assets/icon/fourthToolList/deepLearning.png"
  1388. alt
  1389. />
  1390. <div style="margin: 5px 0">{{ lang.ssDeepLearning }}</div>
  1391. </div>
  1392. <div v-if="tooC == 61">
  1393. <img
  1394. @click="addTools(tooC, toolIndex, taskCount)"
  1395. src="../assets/icon/fourthToolList/allHistory.png"
  1396. alt
  1397. />
  1398. <div style="margin: 5px 0">{{ lang.ssAllHistory }}</div>
  1399. </div>
  1400. <div v-if="tooC == 62">
  1401. <img
  1402. @click="addTools(tooC, toolIndex, taskCount)"
  1403. src="../assets/icon/fourthToolList/interVideo.png"
  1404. alt
  1405. />
  1406. <div style="margin: 5px 0">{{ lang.ssInteractiveVideo }}</div>
  1407. </div>
  1408. <div v-if="tooC == 63">
  1409. <img
  1410. @click="addTools(tooC, toolIndex, taskCount)"
  1411. src="../assets/icon/fourthToolList/Wood.png"
  1412. alt
  1413. />
  1414. <div style="margin: 5px 0">{{ lang.ssTurtle }}</div>
  1415. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1416. style="position: absolute;right: 33px;top: -30px;">
  1417. {{ lang.ssAnalyze }}
  1418. </div>
  1419. </div>
  1420. <div v-if="tooC == 71">
  1421. <img
  1422. @click="addTools(tooC, toolIndex, taskCount)"
  1423. src="../assets/icon/fourthToolList/chatgpt.png"
  1424. alt
  1425. />
  1426. <div style="margin: 5px 0">{{ lang.ssAiAgent }}</div>
  1427. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1428. style="position: absolute;right: 33px;top: -30px;">
  1429. {{ lang.ssAnalyze }}
  1430. </div>
  1431. </div>
  1432. <div v-if="tooC == 72">
  1433. <img
  1434. style="height: 85px;object-fit: cover;"
  1435. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1436. @click="addTools(tooC, toolIndex, taskCount)"
  1437. :src="tool.appJson.json.icon"
  1438. alt
  1439. />
  1440. <img
  1441. v-else
  1442. @click="addTools(tooC, toolIndex, taskCount)"
  1443. src="../assets/icon/firstToolList/appStore.png"
  1444. alt
  1445. />
  1446. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : lang.ssAppCenter" placement="top" effect="dark">
  1447. <!-- content to trigger tooltip here -->
  1448. <div class="Ovh">
  1449. {{tool.appJson && tool.appJson.name ? tool.appJson.name : lang.ssAppCenter}}
  1450. </div>
  1451. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1452. style="position: absolute;right: 33px;top: -30px;">
  1453. {{ lang.ssAnalyze }}
  1454. </div>
  1455. </el-tooltip>
  1456. </div>
  1457. <div v-if="tooC == 65">
  1458. <img
  1459. @click="addTools(tooC, toolIndex, taskCount)"
  1460. src="../assets/icon/firstToolList/pickPeople.png"
  1461. alt
  1462. />
  1463. <div style="margin: 5px 0">{{ lang.ssPickPerson }}</div>
  1464. </div>
  1465. <div v-if="tooC == 66">
  1466. <img
  1467. @click="addTools(tooC, toolIndex, taskCount)"
  1468. src="../assets/icon/secondToolList/formulaEdi.png"
  1469. alt
  1470. />
  1471. <div style="margin: 5px 0">{{ lang.ssFormula }}</div>
  1472. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1473. style="position: absolute;right: 33px;top: -30px;">
  1474. {{ lang.ssAnalyze }}
  1475. </div>
  1476. </div>
  1477. <div v-if="tooC == 67">
  1478. <img
  1479. @click="addTools(tooC, toolIndex, taskCount)"
  1480. src="../assets/icon/secondToolList/molStr.png"
  1481. alt
  1482. />
  1483. <div style="margin: 5px 0">{{ lang.ssMolecule }}</div>
  1484. </div>
  1485. <div v-if="tooC == 68">
  1486. <img
  1487. @click="addTools(tooC, toolIndex, taskCount)"
  1488. src="../assets/icon/secondToolList/timeAxis.png"
  1489. alt
  1490. />
  1491. <div style="margin: 5px 0">{{ lang.ssTimeline }}</div>
  1492. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1493. style="position: absolute;right: 33px;top: -30px;">
  1494. {{ lang.ssAnalyze }}
  1495. </div> -->
  1496. </div>
  1497. <div v-if="tooC == 69">
  1498. <img
  1499. @click="addTools(tooC, toolIndex, taskCount)"
  1500. src="../assets/icon/secondToolList/english.png"
  1501. alt
  1502. />
  1503. <div style="margin: 5px 0">{{ lang.ssEnglishWrite }}</div>
  1504. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1505. style="position: absolute;right: 33px;top: -30px;">
  1506. {{ lang.ssAnalyze }}
  1507. </div>
  1508. </div>
  1509. <div v-if="tooC == 70">
  1510. <img
  1511. @click="addTools(tooC, toolIndex, taskCount)"
  1512. src="../assets/icon/thirdToolList/englishVoice.png"
  1513. alt
  1514. />
  1515. <div style="margin: 5px 0">{{ lang.ssEnglishSpeak }}</div>
  1516. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1517. style="position: absolute;right: 33px;top: -30px;">
  1518. {{ lang.ssAnalyze }}
  1519. </div>
  1520. </div>
  1521. </div>
  1522. </div>
  1523. </div>
  1524. <div class="tooldetail renderedFor" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1525. <!-- <div class="toolTitle">工具描述</div> -->
  1526. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1527. <div style="height:100%;"
  1528. v-html="renderedFormula(tool.toolDetail)"
  1529. v-if="toolDetailIndex != toolIndex"
  1530. ></div>
  1531. <div v-else @click.stop="" style="height:100%;">
  1532. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" :placeholder="lang.ssEnterTaskDesc" v-model="updateToolDetailInner"></textarea>
  1533. </div>
  1534. </div>
  1535. <el-button
  1536. type="primary"
  1537. v-if="tool.tool[0] == 32"
  1538. style="position: absolute; right: 30px; top: -45px"
  1539. @click="addImg($event)"
  1540. >{{ lang.ssUploadHomework }}<input
  1541. type="file"
  1542. accept="*"
  1543. style="display: none"
  1544. @change="beforeUpload1($event, 7, toolIndex)"
  1545. /></el-button>
  1546. <el-button
  1547. type="primary"
  1548. v-if="tool.tool[0] == 15"
  1549. style="position: absolute; right: 30px; top: -45px"
  1550. @click="openWordCloud(toolIndex)"
  1551. >{{ lang.ssGenerateWordCloud }}
  1552. </el-button>
  1553. <el-button
  1554. type="primary"
  1555. v-if="
  1556. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1557. "
  1558. style="position: absolute; right: 30px; top: -45px"
  1559. @click="uploadWorks(toolIndex)"
  1560. >{{ lang.ssExportHomework }}
  1561. </el-button>
  1562. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1563. position: absolute;
  1564. right: 30px;
  1565. transform: translateY(-130%);
  1566. " @click="addImg($event)">{{ lang.ssUploadHomework }}<input type="file" accept="*" style="display: none"
  1567. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1568. </div>
  1569. <div
  1570. v-if="
  1571. tType &&
  1572. tType == 2 &&
  1573. !sIsOpen &&
  1574. tool.tool.indexOf(16) != -1
  1575. "
  1576. class="worksBox"
  1577. >
  1578. <div
  1579. class="zuoyeYulan"
  1580. v-if="workStudent[toolIndex].length > 0"
  1581. >
  1582. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1583. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1584. </div>
  1585. <div
  1586. class="worksDetailBox"
  1587. v-if="workStudent[toolIndex].length > 0"
  1588. >
  1589. <div
  1590. class="works"
  1591. style="
  1592. width: 200px;
  1593. height: 140px;
  1594. margin: 10px 10px 10px 0;
  1595. box-shadow: 0 0 6px 1px #dfdada;
  1596. "
  1597. v-for="(w, wIndex) in workStudent[toolIndex]"
  1598. :key="wIndex"
  1599. >
  1600. <div class="workImg" v-if="w.type == 0">
  1601. <img
  1602. :src="w.works"
  1603. @click="previewImg(w.works,w)"
  1604. alt
  1605. />
  1606. <div
  1607. class="answerScore"
  1608. v-if="w.score"
  1609. @click.stop="openScore(w)"
  1610. :class="{
  1611. rightW:
  1612. w.userid == userid || tType == 1 || tType == 4,
  1613. }"
  1614. >
  1615. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1616. </div>
  1617. <div
  1618. class="answerScore"
  1619. @click.stop="openScore(w)"
  1620. v-else-if="courseDetail.userid == userid"
  1621. :class="{
  1622. rightW:
  1623. w.userid == userid || tType == 1 || tType == 4,
  1624. }"
  1625. >
  1626. {{ lang.ssMarkScore }}
  1627. </div>
  1628. <img
  1629. class="deleteImg"
  1630. src="../assets/deleteworks.png"
  1631. v-if="
  1632. w.userid == userid || tType == 1 || tType == 4
  1633. "
  1634. @click.stop="deleteWorks(w.wid)"
  1635. alt
  1636. />
  1637. </div>
  1638. <div class="workImg" v-if="w.type == 1">
  1639. <img :src="word" @click="openFile(w.works,w)" alt />
  1640. <div
  1641. class="answerScore"
  1642. v-if="w.score"
  1643. @click.stop="openScore(w)"
  1644. :class="{
  1645. rightW:
  1646. w.userid == userid || tType == 1 || tType == 4,
  1647. }"
  1648. >
  1649. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1650. </div>
  1651. <div
  1652. class="answerScore"
  1653. @click.stop="openScore(w)"
  1654. v-else-if="courseDetail.userid == userid"
  1655. :class="{
  1656. rightW:
  1657. w.userid == userid || tType == 1 || tType == 4,
  1658. }"
  1659. >
  1660. {{ lang.ssMarkScore }}
  1661. </div>
  1662. <img
  1663. class="deleteImg"
  1664. src="../assets/deleteworks.png"
  1665. v-if="
  1666. w.userid == userid || tType == 1 || tType == 4
  1667. "
  1668. @click.stop="deleteWorks(w.wid)"
  1669. alt
  1670. />
  1671. </div>
  1672. <div class="workImg" v-if="w.type == 3">
  1673. <img
  1674. style="cursor: pointer"
  1675. :src="video"
  1676. @click="openVideo(w)"
  1677. alt
  1678. />
  1679. <div
  1680. class="answerScore"
  1681. v-if="w.score"
  1682. @click.stop="openScore(w)"
  1683. :class="{
  1684. rightW:
  1685. w.userid == userid || tType == 1 || tType == 4,
  1686. }"
  1687. >
  1688. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1689. </div>
  1690. <div
  1691. class="answerScore"
  1692. @click.stop="openScore(w)"
  1693. v-else-if="courseDetail.userid == userid"
  1694. :class="{
  1695. rightW:
  1696. w.userid == userid || tType == 1 || tType == 4,
  1697. }"
  1698. >
  1699. {{ lang.ssMarkScore }}
  1700. </div>
  1701. <img
  1702. class="deleteImg"
  1703. src="../assets/deleteworks.png"
  1704. v-if="
  1705. w.userid == userid || tType == 1 || tType == 4
  1706. "
  1707. @click.stop="deleteWorks(w.wid)"
  1708. alt
  1709. />
  1710. </div>
  1711. <div class="workImg" v-if="w.type == 12">
  1712. <img
  1713. style="cursor: pointer"
  1714. :src="word2"
  1715. @click="downloadFile(w.works,w.userid)"
  1716. alt
  1717. />
  1718. <div
  1719. class="answerScore"
  1720. v-if="w.score"
  1721. @click.stop="openScore(w)"
  1722. :class="{
  1723. rightW:
  1724. w.userid == userid || tType == 1 || tType == 4,
  1725. }"
  1726. >
  1727. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1728. </div>
  1729. <div
  1730. class="answerScore"
  1731. @click.stop="openScore(w)"
  1732. v-else-if="courseDetail.userid == userid"
  1733. :class="{
  1734. rightW:
  1735. w.userid == userid || tType == 1 || tType == 4,
  1736. }"
  1737. >
  1738. {{ lang.ssMarkScore }}
  1739. </div>
  1740. <img
  1741. class="deleteImg"
  1742. src="../assets/deleteworks.png"
  1743. v-if="
  1744. w.userid == userid || tType == 1 || tType == 4
  1745. "
  1746. @click.stop="deleteWorks(w.wid)"
  1747. alt
  1748. />
  1749. </div>
  1750. <div class="worksName">
  1751. <div>{{ w.sName }}</div>
  1752. </div>
  1753. </div>
  1754. </div>
  1755. </div>
  1756. <div
  1757. v-if="
  1758. tType &&
  1759. tType == 2 &&
  1760. !sIsOpen &&
  1761. tool.tool.indexOf(32) != -1
  1762. "
  1763. class="worksBox"
  1764. >
  1765. <div
  1766. class="zuoyeYulan"
  1767. v-if="workStudent[toolIndex].length > 0"
  1768. >
  1769. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1770. </div>
  1771. <div
  1772. class="worksDetailBox"
  1773. v-if="workStudent[toolIndex].length > 0"
  1774. >
  1775. <div
  1776. class="works"
  1777. style="
  1778. width: 200px;
  1779. height: 140px;
  1780. margin: 10px 10px 10px 0;
  1781. box-shadow: 0 0 6px 1px #dfdada;
  1782. "
  1783. v-for="(w, wIndex) in workStudent[toolIndex]"
  1784. :key="wIndex"
  1785. >
  1786. <div class="workImg">
  1787. <img
  1788. :src="word2"
  1789. @click="downloadFile(w.works,w.userid)"
  1790. alt
  1791. />
  1792. <div
  1793. class="answerScore"
  1794. v-if="w.score"
  1795. @click.stop="openScore(w)"
  1796. :class="{
  1797. rightW:
  1798. w.userid == userid || tType == 1 || tType == 4,
  1799. }"
  1800. >
  1801. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1802. </div>
  1803. <div
  1804. class="answerScore"
  1805. @click.stop="openScore(w)"
  1806. v-else-if="courseDetail.userid == userid"
  1807. :class="{
  1808. rightW:
  1809. w.userid == userid || tType == 1 || tType == 4,
  1810. }"
  1811. >
  1812. {{ lang.ssMarkScore }}
  1813. </div>
  1814. <img
  1815. class="deleteImg"
  1816. src="../assets/deleteworks.png"
  1817. v-if="
  1818. w.userid == userid || tType == 1 || tType == 4
  1819. "
  1820. @click.stop="deleteWorks(w.wid)"
  1821. alt
  1822. />
  1823. </div>
  1824. <div class="worksName">
  1825. <div>{{ w.sName }}</div>
  1826. </div>
  1827. </div>
  1828. </div>
  1829. </div>
  1830. <div
  1831. v-if="
  1832. tType &&
  1833. tType == 2 &&
  1834. !sIsOpen &&
  1835. tool.tool.indexOf(57) != -1
  1836. "
  1837. class="worksBox"
  1838. >
  1839. <div
  1840. class="zuoyeYulan"
  1841. v-if="workStudent[toolIndex].length > 0"
  1842. >
  1843. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1844. </div>
  1845. <div
  1846. class="worksDetailBox"
  1847. v-if="workStudent[toolIndex].length > 0"
  1848. >
  1849. <div
  1850. class="works"
  1851. style="
  1852. width: 200px;
  1853. height: 140px;
  1854. margin: 10px 10px 10px 0;
  1855. box-shadow: 0 0 6px 1px #dfdada;
  1856. "
  1857. v-for="(w, wIndex) in workStudent[toolIndex]"
  1858. :key="wIndex"
  1859. >
  1860. <div class="workImg">
  1861. <img
  1862. :src="word2"
  1863. @click="downloadFile(w.works,w.userid)"
  1864. v-if="w.type == 12"
  1865. alt
  1866. />
  1867. <img
  1868. :src="word2"
  1869. @click="
  1870. openCocoPi(57, toolIndex, w.userid, w.sName)
  1871. "
  1872. v-else-if="w.type == 15"
  1873. alt
  1874. />
  1875. <div
  1876. class="answerScore"
  1877. v-if="w.score"
  1878. @click.stop="openScore(w)"
  1879. :class="{
  1880. rightW:
  1881. w.userid == userid || tType == 1 || tType == 4,
  1882. }"
  1883. >
  1884. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1885. </div>
  1886. <div
  1887. class="answerScore"
  1888. @click.stop="openScore(w)"
  1889. v-else-if="courseDetail.userid == userid"
  1890. :class="{
  1891. rightW:
  1892. w.userid == userid || tType == 1 || tType == 4,
  1893. }"
  1894. >
  1895. {{ lang.ssMarkScore }}
  1896. </div>
  1897. <img
  1898. class="deleteImg"
  1899. src="../assets/deleteworks.png"
  1900. v-if="
  1901. w.userid == userid || tType == 1 || tType == 4
  1902. "
  1903. @click.stop="deleteWorks(w.wid)"
  1904. alt
  1905. />
  1906. </div>
  1907. <div class="worksName">
  1908. <div>{{ w.sName }}</div>
  1909. </div>
  1910. </div>
  1911. </div>
  1912. </div>
  1913. <div
  1914. v-if="
  1915. tType &&
  1916. tType == 2 &&
  1917. !sIsOpen &&
  1918. tool.tool.indexOf(4) != -1
  1919. "
  1920. class="worksBox"
  1921. >
  1922. <div
  1923. class="zuoyeYulan"
  1924. v-if="workStudent[toolIndex].length > 0"
  1925. >
  1926. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1927. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1928. </div>
  1929. <div
  1930. class="worksDetailBox"
  1931. v-if="workStudent[toolIndex].length > 0"
  1932. >
  1933. <div
  1934. class="isWorksName2"
  1935. v-for="(w, wIndex) in workStudent[toolIndex]"
  1936. :key="wIndex"
  1937. @click="
  1938. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1939. "
  1940. >
  1941. {{ w.sName }}
  1942. <img
  1943. class="deleteImg deleteImg2"
  1944. src="../assets/deleteworks.png"
  1945. v-if="w.userid == userid || tType == 1 || tType == 4"
  1946. @click.stop="deleteWorks(w.wid)"
  1947. alt
  1948. />
  1949. </div>
  1950. <!-- <div
  1951. class="works"
  1952. style="
  1953. width: 200px;
  1954. height: 140px;
  1955. border-radius: 10px;
  1956. box-shadow: 0 0 6px 1px #dfdada;
  1957. overflow: hidden;
  1958. "
  1959. v-for="(w, wIndex) in workStudent[toolIndex]"
  1960. :key="wIndex"
  1961. >
  1962. <div class="workImg">
  1963. <img
  1964. src="../assets/icon/works/noImg.png"
  1965. @click="
  1966. openTools(
  1967. 4,
  1968. toolIndex,
  1969. taskCount,
  1970. w.works,
  1971. w.sName
  1972. )
  1973. "
  1974. alt
  1975. />
  1976. </div>
  1977. <div class="worksName">
  1978. <div>{{ w.sName }}</div>
  1979. <div>{{ w.time }}</div>
  1980. </div>
  1981. </div> -->
  1982. </div>
  1983. </div>
  1984. <div
  1985. v-if="
  1986. tType &&
  1987. ((tType == 2 && sIsOpen == true) ||
  1988. tType == 1 ||
  1989. tType == 4) &&
  1990. tool.tool.indexOf(62) != -1
  1991. "
  1992. class="worksBox"
  1993. >
  1994. <div
  1995. class="zuoyeYulan"
  1996. v-if="
  1997. worksStudent.length &&
  1998. worksStudent[toolIndex].length > 0
  1999. "
  2000. >
  2001. <div class="worksTop">
  2002. <div>{{ lang.ssHomeworkPreview }}</div>
  2003. <div
  2004. class="corOpen"
  2005. @click="contract(toolIndex)"
  2006. v-if="
  2007. (isCloseList[toolIndex].isCloseBoolean) &&
  2008. isCloseList[toolIndex].isClose == 0
  2009. "
  2010. >
  2011. {{ lang.ssFold }}
  2012. </div>
  2013. <div
  2014. class="corOpen"
  2015. @click="contract(toolIndex)"
  2016. v-if="isCloseList[toolIndex].isClose == 1"
  2017. >
  2018. {{ lang.ssExpand }}
  2019. </div>
  2020. </div>
  2021. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2022. </div>
  2023. <div>
  2024. <div
  2025. :id="'tool-' + toolIndex"
  2026. :style="{
  2027. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2028. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2029. }"
  2030. class="worksDetailBox"
  2031. v-if="
  2032. worksStudent.length &&
  2033. worksStudent[toolIndex].length > 0
  2034. "
  2035. >
  2036. <div
  2037. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2038. :key="wIndex"
  2039. class="isWorksName2"
  2040. @click="
  2041. openTools(
  2042. 62,
  2043. toolIndex,
  2044. taskCount,
  2045. w.works,
  2046. w.sName
  2047. )
  2048. "
  2049. >
  2050. {{ w.sName }}
  2051. <img
  2052. class="deleteImg deleteImg2"
  2053. src="../assets/deleteworks.png"
  2054. v-if="
  2055. w.userid == userid || tType == 1 || tType == 4
  2056. "
  2057. @click.stop="deleteWorks(w.wid)"
  2058. alt
  2059. />
  2060. </div>
  2061. </div>
  2062. </div>
  2063. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2064. {{ lang.ssNotSubmitted }}
  2065. </div>
  2066. <div
  2067. class="noWorksS"
  2068. v-if="noWorksS && noWorksS[toolIndex].length"
  2069. >
  2070. <div
  2071. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2072. :key="sIndex"
  2073. class="noWorksName"
  2074. >
  2075. <el-tooltip effect="dark" :content="s.student" placement="top">
  2076. <span>{{ s.student }}</span>
  2077. </el-tooltip>
  2078. </div>
  2079. </div>
  2080. </div>
  2081. <div
  2082. v-if="
  2083. tType &&
  2084. tType == 2 &&
  2085. !sIsOpen &&
  2086. tool.tool.indexOf(62) != -1
  2087. "
  2088. class="worksBox"
  2089. >
  2090. <div
  2091. class="zuoyeYulan"
  2092. v-if="workStudent[toolIndex].length > 0"
  2093. >
  2094. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2095. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2096. </div>
  2097. <div
  2098. class="worksDetailBox"
  2099. v-if="workStudent[toolIndex].length > 0"
  2100. >
  2101. <div
  2102. class="isWorksName2"
  2103. v-for="(w, wIndex) in workStudent[toolIndex]"
  2104. :key="wIndex"
  2105. @click="
  2106. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2107. "
  2108. >
  2109. {{ w.sName }}
  2110. <img
  2111. class="deleteImg deleteImg2"
  2112. src="../assets/deleteworks.png"
  2113. v-if="w.userid == userid || tType == 1 || tType == 4"
  2114. @click.stop="deleteWorks(w.wid)"
  2115. alt
  2116. />
  2117. </div>
  2118. </div>
  2119. </div>
  2120. <div
  2121. v-if="
  2122. tType &&
  2123. tType == 2 &&
  2124. !sIsOpen &&
  2125. tool.tool.indexOf(45) != -1
  2126. "
  2127. class="worksBox"
  2128. >
  2129. <div
  2130. class="zuoyeYulan"
  2131. v-if="workStudent[toolIndex].length > 0"
  2132. >
  2133. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2134. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2135. </div>
  2136. <div
  2137. class="worksDetailBox"
  2138. v-if="workStudent[toolIndex].length > 0"
  2139. >
  2140. <div
  2141. class="isWorksName2"
  2142. v-for="(w, wIndex) in workStudent[toolIndex]"
  2143. :key="wIndex"
  2144. @click="
  2145. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2146. "
  2147. >
  2148. {{ w.sName }}
  2149. <img
  2150. class="deleteImg deleteImg2"
  2151. src="../assets/deleteworks.png"
  2152. v-if="w.userid == userid || tType == 1 || tType == 4"
  2153. @click.stop="deleteWorks(w.wid)"
  2154. alt
  2155. />
  2156. </div>
  2157. </div>
  2158. </div>
  2159. <div
  2160. v-if="
  2161. tType &&
  2162. tType == 2 &&
  2163. !sIsOpen &&
  2164. tool.tool.indexOf(69) != -1
  2165. "
  2166. class="worksBox"
  2167. >
  2168. <div
  2169. class="zuoyeYulan"
  2170. v-if="workStudent[toolIndex].length > 0"
  2171. >
  2172. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2173. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2174. </div>
  2175. <div
  2176. class="worksDetailBox"
  2177. v-if="workStudent[toolIndex].length > 0"
  2178. >
  2179. <div
  2180. class="isWorksName2"
  2181. v-for="(w, wIndex) in workStudent[toolIndex]"
  2182. :key="wIndex"
  2183. @click="
  2184. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2185. "
  2186. >
  2187. {{ w.sName }}
  2188. <img
  2189. class="deleteImg deleteImg2"
  2190. src="../assets/deleteworks.png"
  2191. v-if="w.userid == userid || tType == 1 || tType == 4"
  2192. @click.stop="deleteWorks(w.wid)"
  2193. alt
  2194. />
  2195. </div>
  2196. </div>
  2197. </div>
  2198. <div
  2199. v-if="
  2200. tType &&
  2201. tType == 2 &&
  2202. !sIsOpen &&
  2203. tool.tool.indexOf(15) != -1
  2204. "
  2205. class="worksBox"
  2206. >
  2207. <div
  2208. class="zuoyeYulan"
  2209. v-if="workStudent[toolIndex].length > 0"
  2210. >
  2211. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2212. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2213. </div>
  2214. <div
  2215. class="worksDetailBox"
  2216. v-if="workStudent[toolIndex].length > 0"
  2217. >
  2218. <div
  2219. class="works"
  2220. v-for="(w, wIndex) in workStudent[toolIndex]"
  2221. :key="wIndex"
  2222. >
  2223. <div class="workImg">
  2224. <!-- <img
  2225. src="../assets/icon/works/noImg.png"
  2226. @click="openTools(15, toolIndex, taskCount, w.works)"
  2227. alt=""
  2228. />-->
  2229. <div class="answerBg">
  2230. <!-- <div>{{ w.sName }}</div> -->
  2231. <el-tooltip
  2232. class="item"
  2233. effect="light"
  2234. :content="JSON.parse(w.works)[0].answer"
  2235. placement="top"
  2236. >
  2237. <div class="answerContent">
  2238. {{ JSON.parse(w.works)[0].answer }}
  2239. </div>
  2240. </el-tooltip>
  2241. <div
  2242. class="answerScore"
  2243. v-if="w.score"
  2244. @click.stop="openScore(w)"
  2245. :class="{
  2246. rightW:
  2247. w.userid == userid ||
  2248. tType == 1 ||
  2249. tType == 4,
  2250. }"
  2251. >
  2252. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2253. </div>
  2254. <div
  2255. class="answerScore"
  2256. @click.stop="openScore(w)"
  2257. v-else-if="courseDetail.userid == userid"
  2258. :class="{
  2259. rightW:
  2260. w.userid == userid ||
  2261. tType == 1 ||
  2262. tType == 4,
  2263. }"
  2264. >
  2265. {{ lang.ssMarkScore }}
  2266. </div>
  2267. <img
  2268. class="deleteImg"
  2269. src="../assets/deleteworks.png"
  2270. v-if="
  2271. w.userid == userid || tType == 1 || tType == 4
  2272. "
  2273. @click.stop="deleteWorks(w.wid)"
  2274. alt
  2275. />
  2276. </div>
  2277. <div class="comment">
  2278. <div class="worksName">
  2279. <div>{{ w.sName }}</div>
  2280. </div>
  2281. </div>
  2282. </div>
  2283. </div>
  2284. </div>
  2285. </div>
  2286. <div
  2287. v-if="
  2288. tType &&
  2289. tType == 2 &&
  2290. !sIsOpen &&
  2291. tool.tool.indexOf(1) != -1
  2292. "
  2293. class="worksBox"
  2294. >
  2295. <div
  2296. class="zuoyeYulan"
  2297. v-if="workStudent[toolIndex].length > 0"
  2298. >
  2299. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2300. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2301. </div>
  2302. <div
  2303. class="worksDetailBox"
  2304. v-if="workStudent[toolIndex].length > 0"
  2305. >
  2306. <div
  2307. class="works"
  2308. style="
  2309. width: 200px;
  2310. height: 140px;
  2311. margin: 10px 10px 10px 0;
  2312. box-shadow: 0 0 6px 1px #dfdada;
  2313. "
  2314. v-for="(w, wIndex) in workStudent[toolIndex]"
  2315. :key="wIndex"
  2316. >
  2317. <div class="workImg">
  2318. <img
  2319. :src="w.works"
  2320. @click="previewImg(w.works,w)"
  2321. alt
  2322. />
  2323. <div
  2324. class="answerScore"
  2325. v-if="w.score"
  2326. @click.stop="openScore(w)"
  2327. :class="{
  2328. rightW:
  2329. w.userid == userid || tType == 1 || tType == 4,
  2330. }"
  2331. >
  2332. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2333. </div>
  2334. <div
  2335. class="answerScore"
  2336. @click.stop="openScore(w)"
  2337. v-else-if="courseDetail.userid == userid"
  2338. :class="{
  2339. rightW:
  2340. w.userid == userid || tType == 1 || tType == 4,
  2341. }"
  2342. >
  2343. {{ lang.ssMarkScore }}
  2344. </div>
  2345. <img
  2346. class="deleteImg"
  2347. src="../assets/deleteworks.png"
  2348. v-if="
  2349. w.userid == userid || tType == 1 || tType == 4
  2350. "
  2351. @click.stop="deleteWorks(w.wid)"
  2352. alt
  2353. />
  2354. </div>
  2355. <div class="worksName">
  2356. <div>{{ w.sName }}</div>
  2357. </div>
  2358. </div>
  2359. </div>
  2360. </div>
  2361. <div
  2362. v-if="
  2363. tType &&
  2364. tType == 2 &&
  2365. !sIsOpen &&
  2366. tool.tool.indexOf(3) != -1
  2367. "
  2368. class="worksBox"
  2369. >
  2370. <div
  2371. class="zuoyeYulan"
  2372. v-if="workStudent[toolIndex].length > 0"
  2373. >
  2374. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2375. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2376. </div>
  2377. <div
  2378. class="worksDetailBox"
  2379. v-if="workStudent[toolIndex].length > 0"
  2380. >
  2381. <div
  2382. class="works"
  2383. style="
  2384. width: 200px;
  2385. height: 140px;
  2386. margin: 10px 10px 10px 0;
  2387. box-shadow: 0 0 6px 1px #dfdada;
  2388. "
  2389. v-for="(w, wIndex) in workStudent[toolIndex]"
  2390. :key="wIndex"
  2391. >
  2392. <div class="workImg">
  2393. <img
  2394. :src="w.works"
  2395. @click="previewImg(w.works,w)"
  2396. alt
  2397. />
  2398. <div
  2399. class="answerScore"
  2400. v-if="w.score"
  2401. @click.stop="openScore(w)"
  2402. :class="{
  2403. rightW:
  2404. w.userid == userid || tType == 1 || tType == 4,
  2405. }"
  2406. >
  2407. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2408. </div>
  2409. <div
  2410. class="answerScore"
  2411. @click.stop="openScore(w)"
  2412. v-else-if="courseDetail.userid == userid"
  2413. :class="{
  2414. rightW:
  2415. w.userid == userid || tType == 1 || tType == 4,
  2416. }"
  2417. >
  2418. {{ lang.ssMarkScore }}
  2419. </div>
  2420. <img
  2421. class="deleteImg"
  2422. src="../assets/deleteworks.png"
  2423. v-if="
  2424. w.userid == userid || tType == 1 || tType == 4
  2425. "
  2426. @click.stop="deleteWorks(w.wid)"
  2427. alt
  2428. />
  2429. </div>
  2430. <div class="worksName">
  2431. <div>{{ w.sName }}</div>
  2432. </div>
  2433. </div>
  2434. </div>
  2435. </div>
  2436. <div
  2437. v-if="
  2438. tType &&
  2439. tType == 2 &&
  2440. !sIsOpen &&
  2441. tool.tool.indexOf(6) != -1
  2442. "
  2443. class="worksBox"
  2444. >
  2445. <div
  2446. class="zuoyeYulan"
  2447. v-if="workStudent[toolIndex].length > 0"
  2448. >
  2449. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2450. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2451. </div>
  2452. <div
  2453. class="worksDetailBox"
  2454. v-if="workStudent[toolIndex].length > 0"
  2455. >
  2456. <div
  2457. class="works"
  2458. style="
  2459. width: 200px;
  2460. height: 140px;
  2461. margin: 10px 10px 10px 0;
  2462. box-shadow: 0 0 6px 1px #dfdada;
  2463. "
  2464. v-for="(w, wIndex) in workStudent[toolIndex]"
  2465. :key="wIndex"
  2466. >
  2467. <div class="workImg">
  2468. <img
  2469. :src="w.works"
  2470. @click="previewImg(w.works,w)"
  2471. alt
  2472. />
  2473. <div
  2474. class="answerScore"
  2475. v-if="w.score"
  2476. @click.stop="openScore(w)"
  2477. :class="{
  2478. rightW:
  2479. w.userid == userid || tType == 1 || tType == 4,
  2480. }"
  2481. >
  2482. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2483. </div>
  2484. <div
  2485. class="answerScore"
  2486. @click.stop="openScore(w)"
  2487. v-else-if="courseDetail.userid == userid"
  2488. :class="{
  2489. rightW:
  2490. w.userid == userid || tType == 1 || tType == 4,
  2491. }"
  2492. >
  2493. {{ lang.ssMarkScore }}
  2494. </div>
  2495. <img
  2496. class="deleteImg"
  2497. src="../assets/deleteworks.png"
  2498. v-if="
  2499. w.userid == userid || tType == 1 || tType == 4
  2500. "
  2501. @click.stop="deleteWorks(w.wid)"
  2502. alt
  2503. />
  2504. </div>
  2505. <div class="worksName">
  2506. <div>{{ w.sName }}</div>
  2507. </div>
  2508. </div>
  2509. </div>
  2510. </div>
  2511. <div
  2512. v-if="
  2513. tType &&
  2514. tType == 2 &&
  2515. !sIsOpen &&
  2516. tool.tool.indexOf(7) != -1
  2517. "
  2518. class="worksBox"
  2519. >
  2520. <div
  2521. class="zuoyeYulan"
  2522. v-if="workStudent[toolIndex].length > 0"
  2523. >
  2524. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2525. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2526. </div>
  2527. <div
  2528. class="worksDetailBox"
  2529. v-if="workStudent[toolIndex].length > 0"
  2530. >
  2531. <div
  2532. class="works"
  2533. style="
  2534. width: 200px;
  2535. height: 140px;
  2536. margin: 10px 10px 10px 0;
  2537. box-shadow: 0 0 6px 1px #dfdada;
  2538. "
  2539. v-for="(w, wIndex) in workStudent[toolIndex]"
  2540. :key="wIndex"
  2541. >
  2542. <div class="workImg">
  2543. <img
  2544. :src="w.works"
  2545. @click="previewImg(w.works,w)"
  2546. alt
  2547. />
  2548. <div
  2549. class="answerScore"
  2550. v-if="w.score"
  2551. @click.stop="openScore(w)"
  2552. :class="{
  2553. rightW:
  2554. w.userid == userid || tType == 1 || tType == 4,
  2555. }"
  2556. >
  2557. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2558. </div>
  2559. <div
  2560. class="answerScore"
  2561. @click.stop="openScore(w)"
  2562. v-else-if="courseDetail.userid == userid"
  2563. :class="{
  2564. rightW:
  2565. w.userid == userid || tType == 1 || tType == 4,
  2566. }"
  2567. >
  2568. {{ lang.ssMarkScore }}
  2569. </div>
  2570. <img
  2571. class="deleteImg"
  2572. src="../assets/deleteworks.png"
  2573. v-if="
  2574. w.userid == userid || tType == 1 || tType == 4
  2575. "
  2576. @click.stop="deleteWorks(w.wid)"
  2577. alt
  2578. />
  2579. </div>
  2580. <div class="worksName">
  2581. <div>{{ w.sName }}</div>
  2582. </div>
  2583. </div>
  2584. </div>
  2585. </div>
  2586. <div
  2587. v-if="
  2588. tType &&
  2589. tType == 2 &&
  2590. !sIsOpen &&
  2591. tool.tool.indexOf(26) != -1
  2592. "
  2593. class="worksBox"
  2594. >
  2595. <div
  2596. class="zuoyeYulan"
  2597. v-if="workStudent[toolIndex].length > 0"
  2598. >
  2599. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2600. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2601. </div>
  2602. <div
  2603. class="worksDetailBox"
  2604. v-if="workStudent[toolIndex].length > 0"
  2605. >
  2606. <div
  2607. class="works"
  2608. style="
  2609. width: 200px;
  2610. height: 140px;
  2611. margin: 10px 10px 10px 0;
  2612. box-shadow: 0 0 6px 1px #dfdada;
  2613. "
  2614. v-for="(w, wIndex) in workStudent[toolIndex]"
  2615. :key="wIndex"
  2616. >
  2617. <div class="workImg">
  2618. <img
  2619. :src="w.works"
  2620. @click="previewImg(w.works,w)"
  2621. alt
  2622. />
  2623. <img
  2624. class="deleteImg"
  2625. src="../assets/deleteworks.png"
  2626. v-if="
  2627. w.userid == userid || tType == 1 || tType == 4
  2628. "
  2629. @click.stop="deleteWorks(w.wid)"
  2630. alt
  2631. />
  2632. </div>
  2633. <div class="worksName">
  2634. <div>{{ w.sName }}</div>
  2635. </div>
  2636. </div>
  2637. </div>
  2638. </div>
  2639. <div
  2640. v-if="
  2641. tType &&
  2642. ((tType == 2 && sIsOpen == true) ||
  2643. tType == 1 ||
  2644. tType == 4) &&
  2645. tool.tool.indexOf(16) != -1
  2646. "
  2647. class="worksBox"
  2648. >
  2649. <div
  2650. class="zuoyeYulan"
  2651. v-if="
  2652. (worksStudent.length &&
  2653. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2654. "
  2655. >
  2656. <div class="worksTop">
  2657. <div>{{ lang.ssHomeworkPreview }}</div>
  2658. <div
  2659. class="corOpen"
  2660. @click="contract(toolIndex)"
  2661. v-if="
  2662. (isCloseList[toolIndex].isCloseBoolean) &&
  2663. isCloseList[toolIndex].isClose == 0
  2664. "
  2665. >
  2666. {{ lang.ssFold }}
  2667. </div>
  2668. <div
  2669. class="corOpen"
  2670. @click="contract(toolIndex)"
  2671. v-if="isCloseList[toolIndex].isClose == 1"
  2672. >
  2673. {{ lang.ssExpand }}
  2674. </div>
  2675. </div>
  2676. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2677. </div>
  2678. <div
  2679. class="group_workBox"
  2680. v-for="(g, gindex) in courseGroup.group"
  2681. :key="gindex"
  2682. >
  2683. <div class="group_box">
  2684. <div class="group_title">
  2685. <el-tooltip
  2686. class="item"
  2687. effect="light"
  2688. :content="g.name"
  2689. placement="top"
  2690. >
  2691. <div class="group_name">{{ g.name }}</div>
  2692. </el-tooltip>
  2693. </div>
  2694. <div
  2695. class="group_work"
  2696. v-if="
  2697. g.works &&
  2698. g.works.length &&
  2699. g.works[toolIndex].length
  2700. "
  2701. >
  2702. <div
  2703. class="works"
  2704. style="
  2705. width: 200px;
  2706. height: 140px;
  2707. margin: 10px 10px 10px 0;
  2708. border-radius: 15px;
  2709. box-shadow: 0 0 6px 1px #dfdada;
  2710. "
  2711. v-for="(w, wIndex) in g.works[toolIndex]"
  2712. :key="wIndex"
  2713. :class="w.type == 1 ? 'isTypeOne' : ''"
  2714. >
  2715. <div class="workImg" v-if="w.type == 0">
  2716. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2717. <img
  2718. :src="w.works"
  2719. @click="previewImg(w.works,w)"
  2720. alt
  2721. />
  2722. <div
  2723. class="answerScore"
  2724. v-if="w.score"
  2725. @click.stop="openScore(w)"
  2726. :class="{
  2727. rightW:
  2728. w.userid == userid ||
  2729. tType == 1 ||
  2730. tType == 4 ||
  2731. w.ateacher == userid,
  2732. }"
  2733. >
  2734. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2735. </div>
  2736. <div
  2737. class="answerScore"
  2738. @click.stop="openScore(w)"
  2739. v-else-if="courseDetail.userid == userid"
  2740. :class="{
  2741. rightW:
  2742. w.userid == userid ||
  2743. tType == 1 ||
  2744. tType == 4 ||
  2745. w.ateacher == userid,
  2746. }"
  2747. >
  2748. {{ lang.ssMarkScore }}
  2749. </div>
  2750. <img
  2751. class="deleteImg"
  2752. src="../assets/deleteworks.png"
  2753. v-if="
  2754. w.userid == userid || tType == 1 || tType == 4
  2755. "
  2756. @click.stop="deleteWorks(w.wid)"
  2757. alt
  2758. />
  2759. </div>
  2760. <div class="workImg" v-if="w.type == 1">
  2761. <img :src="word" @click="openFile(w.works,w)" alt />
  2762. <!-- @click="openFile(w.works)" -->
  2763. <div
  2764. class="answerScore"
  2765. v-if="w.score"
  2766. @click.stop="openScore(w)"
  2767. :class="{
  2768. rightW:
  2769. w.userid == userid ||
  2770. tType == 1 ||
  2771. tType == 4 ||
  2772. w.ateacher == userid,
  2773. }"
  2774. >
  2775. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2776. </div>
  2777. <div
  2778. class="answerScore"
  2779. @click.stop="openScore(w)"
  2780. v-else-if="courseDetail.userid == userid"
  2781. :class="{
  2782. rightW:
  2783. w.userid == userid ||
  2784. tType == 1 ||
  2785. tType == 4 ||
  2786. w.ateacher == userid,
  2787. }"
  2788. >
  2789. {{ lang.ssMarkScore }}
  2790. </div>
  2791. <img
  2792. class="deleteImg"
  2793. src="../assets/deleteworks.png"
  2794. v-if="
  2795. w.userid == userid || tType == 1 || tType == 4
  2796. "
  2797. @click.stop="deleteWorks(w.wid)"
  2798. alt
  2799. />
  2800. </div>
  2801. <div class="workImg" v-if="w.type == 3">
  2802. <img
  2803. style="cursor: pointer"
  2804. :src="video"
  2805. @click="openVideo(w)"
  2806. alt
  2807. />
  2808. <!-- @click="openVideo(w.works)" -->
  2809. <div
  2810. class="answerScore"
  2811. v-if="w.score"
  2812. @click.stop="openScore(w)"
  2813. :class="{
  2814. rightW:
  2815. w.userid == userid ||
  2816. tType == 1 ||
  2817. tType == 4 ||
  2818. w.ateacher == userid,
  2819. }"
  2820. >
  2821. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2822. </div>
  2823. <div
  2824. class="answerScore"
  2825. @click.stop="openScore(w)"
  2826. v-else-if="courseDetail.userid == userid"
  2827. :class="{
  2828. rightW:
  2829. w.userid == userid ||
  2830. tType == 1 ||
  2831. tType == 4 ||
  2832. w.ateacher == userid,
  2833. }"
  2834. >
  2835. {{ lang.ssMarkScore }}
  2836. </div>
  2837. <img
  2838. class="deleteImg"
  2839. src="../assets/deleteworks.png"
  2840. v-if="
  2841. w.userid == userid || tType == 1 || tType == 4
  2842. "
  2843. @click.stop="deleteWorks(w.wid)"
  2844. alt
  2845. />
  2846. </div>
  2847. <div class="workImg" v-if="w.type == 12">
  2848. <img
  2849. style="cursor: pointer"
  2850. :src="word2"
  2851. @click="downloadFile(w.works,w.userid)"
  2852. alt
  2853. />
  2854. <!-- @click="openVideo(w.works)" -->
  2855. <div
  2856. class="answerScore"
  2857. v-if="w.score"
  2858. @click.stop="openScore(w)"
  2859. :class="{
  2860. rightW:
  2861. w.userid == userid ||
  2862. tType == 1 ||
  2863. tType == 4 ||
  2864. w.ateacher == userid,
  2865. }"
  2866. >
  2867. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2868. </div>
  2869. <div
  2870. class="answerScore"
  2871. @click.stop="openScore(w)"
  2872. v-else-if="courseDetail.userid == userid"
  2873. :class="{
  2874. rightW:
  2875. w.userid == userid ||
  2876. tType == 1 ||
  2877. tType == 4 ||
  2878. w.ateacher == userid,
  2879. }"
  2880. >
  2881. {{ lang.ssMarkScore }}
  2882. </div>
  2883. <img
  2884. class="deleteImg"
  2885. src="../assets/deleteworks.png"
  2886. v-if="
  2887. w.userid == userid || tType == 1 || tType == 4
  2888. "
  2889. @click.stop="deleteWorks(w.wid)"
  2890. alt
  2891. />
  2892. </div>
  2893. <div class="comment" style="min-width: 200px">
  2894. <div class="worksName">
  2895. <div>{{ w.sName }}</div>
  2896. </div>
  2897. <div class="commentList">
  2898. <div class="commentList">
  2899. <div
  2900. class="commentImg"
  2901. @click="
  2902. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2903. "
  2904. >
  2905. <img
  2906. :src="w.isLikes == true ? likes : noLikes"
  2907. alt=""
  2908. />
  2909. </div>
  2910. <div>{{ w.likesCount }}</div>
  2911. </div>
  2912. <div
  2913. class="commentList"
  2914. style="margin-right: 15px"
  2915. >
  2916. <div
  2917. class="commentImg"
  2918. @click="
  2919. commentOther(
  2920. w,
  2921. toolIndex,
  2922. wIndex,
  2923. null,
  2924. g.id
  2925. )
  2926. "
  2927. >
  2928. <img
  2929. src="../assets/icon/comment/comment.png"
  2930. alt=""
  2931. />
  2932. </div>
  2933. <div>{{ w.commentCount }}</div>
  2934. </div>
  2935. </div>
  2936. </div>
  2937. </div>
  2938. </div>
  2939. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  2940. </div>
  2941. </div>
  2942. <div
  2943. :id="'tool-' + toolIndex"
  2944. :style="{
  2945. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2946. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2947. }"
  2948. class="worksDetailBox"
  2949. v-if="
  2950. worksStudent.length &&
  2951. worksStudent[toolIndex].length > 0
  2952. "
  2953. >
  2954. <div
  2955. class="works"
  2956. style="
  2957. width: 200px;
  2958. height: 140px;
  2959. margin: 10px 10px 10px 0;
  2960. border-radius: 15px;
  2961. box-shadow: 0 0 6px 1px #dfdada;
  2962. "
  2963. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2964. :key="wIndex"
  2965. :class="w.type == 1 ? 'isTypeOne' : ''"
  2966. >
  2967. <div class="workImg" v-if="w.type == 0">
  2968. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2969. <img
  2970. :src="w.works"
  2971. @click="previewImg(w.works,w)"
  2972. alt
  2973. />
  2974. <div
  2975. class="answerScore"
  2976. v-if="w.score"
  2977. @click.stop="openScore(w)"
  2978. :class="{
  2979. rightW:
  2980. w.userid == userid ||
  2981. tType == 1 ||
  2982. tType == 4 ||
  2983. w.ateacher == userid,
  2984. }"
  2985. >
  2986. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2987. </div>
  2988. <div
  2989. class="answerScore"
  2990. @click.stop="openScore(w)"
  2991. v-else-if="courseDetail.userid == userid"
  2992. :class="{
  2993. rightW:
  2994. w.userid == userid ||
  2995. tType == 1 ||
  2996. tType == 4 ||
  2997. w.ateacher == userid,
  2998. }"
  2999. >
  3000. {{ lang.ssMarkScore }}
  3001. </div>
  3002. <img
  3003. class="deleteImg"
  3004. src="../assets/deleteworks.png"
  3005. v-if="
  3006. w.userid == userid || tType == 1 || tType == 4
  3007. "
  3008. @click.stop="deleteWorks(w.wid)"
  3009. alt
  3010. />
  3011. </div>
  3012. <div class="workImg" v-if="w.type == 1">
  3013. <img :src="word" @click="openFile(w.works,w)" alt />
  3014. <!-- @click="openFile(w.works)" -->
  3015. <div
  3016. class="answerScore"
  3017. v-if="w.score"
  3018. @click.stop="openScore(w)"
  3019. :class="{
  3020. rightW:
  3021. w.userid == userid ||
  3022. tType == 1 ||
  3023. tType == 4 ||
  3024. w.ateacher == userid,
  3025. }"
  3026. >
  3027. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3028. </div>
  3029. <div
  3030. class="answerScore"
  3031. @click.stop="openScore(w)"
  3032. v-else-if="courseDetail.userid == userid"
  3033. :class="{
  3034. rightW:
  3035. w.userid == userid ||
  3036. tType == 1 ||
  3037. tType == 4 ||
  3038. w.ateacher == userid,
  3039. }"
  3040. >
  3041. {{ lang.ssMarkScore }}
  3042. </div>
  3043. <img
  3044. class="deleteImg"
  3045. src="../assets/deleteworks.png"
  3046. v-if="
  3047. w.userid == userid || tType == 1 || tType == 4
  3048. "
  3049. @click.stop="deleteWorks(w.wid)"
  3050. alt
  3051. />
  3052. </div>
  3053. <div class="workImg" v-if="w.type == 3">
  3054. <img
  3055. style="cursor: pointer"
  3056. :src="video"
  3057. @click="openVideo(w)"
  3058. alt
  3059. />
  3060. <!-- @click="openVideo(w.works)" -->
  3061. <div
  3062. class="answerScore"
  3063. v-if="w.score"
  3064. @click.stop="openScore(w)"
  3065. :class="{
  3066. rightW:
  3067. w.userid == userid ||
  3068. tType == 1 ||
  3069. tType == 4 ||
  3070. w.ateacher == userid,
  3071. }"
  3072. >
  3073. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3074. </div>
  3075. <div
  3076. class="answerScore"
  3077. @click.stop="openScore(w)"
  3078. v-else-if="courseDetail.userid == userid"
  3079. :class="{
  3080. rightW:
  3081. w.userid == userid ||
  3082. tType == 1 ||
  3083. tType == 4 ||
  3084. w.ateacher == userid,
  3085. }"
  3086. >
  3087. {{ lang.ssMarkScore }}
  3088. </div>
  3089. <img
  3090. class="deleteImg"
  3091. src="../assets/deleteworks.png"
  3092. v-if="
  3093. w.userid == userid || tType == 1 || tType == 4
  3094. "
  3095. @click.stop="deleteWorks(w.wid)"
  3096. alt
  3097. />
  3098. </div>
  3099. <div class="workImg" v-if="w.type == 12">
  3100. <img
  3101. style="cursor: pointer"
  3102. :src="word2"
  3103. @click="downloadFile(w.works,w.userid)"
  3104. alt
  3105. />
  3106. <!-- @click="openVideo(w.works)" -->
  3107. <div
  3108. class="answerScore"
  3109. v-if="w.score"
  3110. @click.stop="openScore(w)"
  3111. :class="{
  3112. rightW:
  3113. w.userid == userid ||
  3114. tType == 1 ||
  3115. tType == 4 ||
  3116. w.ateacher == userid,
  3117. }"
  3118. >
  3119. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3120. </div>
  3121. <div
  3122. class="answerScore"
  3123. @click.stop="openScore(w)"
  3124. v-else-if="courseDetail.userid == userid"
  3125. :class="{
  3126. rightW:
  3127. w.userid == userid ||
  3128. tType == 1 ||
  3129. tType == 4 ||
  3130. w.ateacher == userid,
  3131. }"
  3132. >
  3133. {{ lang.ssMarkScore }}
  3134. </div>
  3135. <img
  3136. class="deleteImg"
  3137. src="../assets/deleteworks.png"
  3138. v-if="
  3139. w.userid == userid || tType == 1 || tType == 4
  3140. "
  3141. @click.stop="deleteWorks(w.wid)"
  3142. alt
  3143. />
  3144. </div>
  3145. <div class="comment" style="min-width: 200px">
  3146. <div class="worksName">
  3147. <div>{{ w.sName }}</div>
  3148. </div>
  3149. <div class="commentList">
  3150. <div class="commentList">
  3151. <div
  3152. class="commentImg"
  3153. @click="
  3154. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3155. "
  3156. >
  3157. <img
  3158. :src="w.isLikes == true ? likes : noLikes"
  3159. alt=""
  3160. />
  3161. </div>
  3162. <div>{{ w.likesCount }}</div>
  3163. </div>
  3164. <div class="commentList" style="margin-right: 15px">
  3165. <div
  3166. class="commentImg"
  3167. @click="commentOther(w, toolIndex, wIndex)"
  3168. >
  3169. <img
  3170. src="../assets/icon/comment/comment.png"
  3171. alt=""
  3172. />
  3173. </div>
  3174. <div>{{ w.commentCount }}</div>
  3175. </div>
  3176. </div>
  3177. </div>
  3178. </div>
  3179. </div>
  3180. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3181. {{ lang.ssNotSubmitted }}
  3182. </div>
  3183. <div
  3184. class="noWorksS"
  3185. v-if="noWorksS && noWorksS[toolIndex].length"
  3186. >
  3187. <div
  3188. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3189. :key="sIndex"
  3190. class="noWorksName"
  3191. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3192. >
  3193. <el-tooltip effect="dark" :content="s.student" placement="top">
  3194. <span>{{ s.student }}</span>
  3195. </el-tooltip>
  3196. </div>
  3197. </div>
  3198. </div>
  3199. <div
  3200. v-if="
  3201. tType &&
  3202. ((tType == 2 && sIsOpen == true) ||
  3203. tType == 1 ||
  3204. tType == 4) &&
  3205. tool.tool.indexOf(70) != -1
  3206. "
  3207. class="worksBox"
  3208. >
  3209. <div
  3210. class="zuoyeYulan"
  3211. v-if="
  3212. (worksStudent.length &&
  3213. worksStudent[toolIndex].length > 0)
  3214. "
  3215. >
  3216. <div class="worksTop">
  3217. <div>{{ lang.ssHomeworkPreview }}</div>
  3218. <div
  3219. class="corOpen"
  3220. @click="contract(toolIndex)"
  3221. v-if="
  3222. (isCloseList[toolIndex].isCloseBoolean) &&
  3223. isCloseList[toolIndex].isClose == 0
  3224. "
  3225. >
  3226. {{ lang.ssFold }}
  3227. </div>
  3228. <div
  3229. class="corOpen"
  3230. @click="contract(toolIndex)"
  3231. v-if="isCloseList[toolIndex].isClose == 1"
  3232. >
  3233. {{ lang.ssExpand }}
  3234. </div>
  3235. </div>
  3236. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3237. </div>
  3238. <div
  3239. :id="'tool-' + toolIndex"
  3240. :style="{
  3241. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3242. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3243. }"
  3244. class="worksDetailBox"
  3245. v-if="
  3246. worksStudent.length &&
  3247. worksStudent[toolIndex].length > 0
  3248. "
  3249. >
  3250. <div
  3251. class="works"
  3252. style="
  3253. width: 200px;
  3254. height: 140px;
  3255. margin: 10px 10px 10px 0;
  3256. border-radius: 15px;
  3257. box-shadow: 0 0 6px 1px #dfdada;
  3258. "
  3259. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3260. :key="wIndex"
  3261. :class="w.type == 1 ? 'isTypeOne' : ''"
  3262. >
  3263. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3264. <img :src="word" alt />
  3265. <img
  3266. class="deleteImg"
  3267. src="../assets/deleteworks.png"
  3268. v-if="
  3269. w.userid == userid || tType == 1 || tType == 4
  3270. "
  3271. @click.stop="deleteWorks(w.wid)"
  3272. alt
  3273. />
  3274. </div>
  3275. <div class="comment" style="min-width: 200px">
  3276. <div class="worksName">
  3277. <div>{{ w.sName }}</div>
  3278. </div>
  3279. </div>
  3280. </div>
  3281. </div>
  3282. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3283. {{ lang.ssNotSubmitted }}
  3284. </div>
  3285. <div
  3286. class="noWorksS"
  3287. v-if="noWorksS && noWorksS[toolIndex].length"
  3288. >
  3289. <div
  3290. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3291. :key="sIndex"
  3292. class="noWorksName"
  3293. >
  3294. <el-tooltip effect="dark" :content="s.student" placement="top">
  3295. <span>{{ s.student }}</span>
  3296. </el-tooltip>
  3297. </div>
  3298. </div>
  3299. </div>
  3300. <div
  3301. v-if="
  3302. tType &&
  3303. tType == 2 &&
  3304. !sIsOpen &&
  3305. tool.tool.indexOf(70) != -1
  3306. "
  3307. class="worksBox"
  3308. >
  3309. <div
  3310. class="zuoyeYulan"
  3311. v-if="workStudent[toolIndex].length > 0"
  3312. >
  3313. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  3314. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3315. </div>
  3316. <div
  3317. class="worksDetailBox"
  3318. v-if="workStudent[toolIndex].length > 0"
  3319. >
  3320. <div
  3321. class="works"
  3322. style="
  3323. width: 200px;
  3324. height: 140px;
  3325. margin: 10px 10px 10px 0;
  3326. box-shadow: 0 0 6px 1px #dfdada;
  3327. "
  3328. v-for="(w, wIndex) in workStudent[toolIndex]"
  3329. :key="wIndex"
  3330. >
  3331. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3332. <img :src="word" alt />
  3333. <img
  3334. class="deleteImg"
  3335. src="../assets/deleteworks.png"
  3336. v-if="
  3337. w.userid == userid || tType == 1 || tType == 4
  3338. "
  3339. @click.stop="deleteWorks(w.wid)"
  3340. alt
  3341. />
  3342. </div>
  3343. <div class="worksName">
  3344. <div>{{ w.sName }}</div>
  3345. </div>
  3346. </div>
  3347. </div>
  3348. </div>
  3349. <div
  3350. v-if="
  3351. tType &&
  3352. ((tType == 2 && sIsOpen == true) ||
  3353. tType == 1 ||
  3354. tType == 4) &&
  3355. tool.tool.indexOf(32) != -1
  3356. "
  3357. class="worksBox"
  3358. >
  3359. <div
  3360. class="zuoyeYulan"
  3361. v-if="
  3362. worksStudent.length &&
  3363. worksStudent[toolIndex].length > 0
  3364. "
  3365. >
  3366. <div class="worksTop">
  3367. <div>{{ lang.ssHomeworkPreview }}</div>
  3368. <div
  3369. class="corOpen"
  3370. @click="contract(toolIndex)"
  3371. v-if="
  3372. (isCloseList[toolIndex].isCloseBoolean) &&
  3373. isCloseList[toolIndex].isClose == 0
  3374. "
  3375. >
  3376. {{ lang.ssFold }}
  3377. </div>
  3378. <div
  3379. class="corOpen"
  3380. @click="contract(toolIndex)"
  3381. v-if="isCloseList[toolIndex].isClose == 1"
  3382. >
  3383. {{ lang.ssExpand }}
  3384. </div>
  3385. </div>
  3386. </div>
  3387. <div
  3388. :id="'tool-' + toolIndex"
  3389. class="worksDetailBox"
  3390. :style="{
  3391. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3392. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3393. }"
  3394. v-if="
  3395. worksStudent.length &&
  3396. worksStudent[toolIndex].length > 0
  3397. "
  3398. >
  3399. <div
  3400. class="works"
  3401. style="
  3402. width: 200px;
  3403. height: 140px;
  3404. margin: 10px 10px 10px 0;
  3405. border-radius: 15px;
  3406. box-shadow: 0 0 6px 1px #dfdada;
  3407. "
  3408. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3409. :key="wIndex"
  3410. :class="w.type == 1 ? 'isTypeOne' : ''"
  3411. >
  3412. <div class="workImg">
  3413. <img
  3414. :src="word2"
  3415. @click="downloadFile(w.works,w.userid)"
  3416. alt
  3417. />
  3418. <div
  3419. class="answerScore"
  3420. v-if="w.score"
  3421. @click.stop="openScore(w)"
  3422. :class="{
  3423. rightW:
  3424. w.userid == userid ||
  3425. tType == 1 ||
  3426. tType == 4 ||
  3427. w.ateacher == userid,
  3428. }"
  3429. >
  3430. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3431. </div>
  3432. <div
  3433. class="answerScore"
  3434. @click.stop="openScore(w)"
  3435. v-else-if="courseDetail.userid == userid"
  3436. :class="{
  3437. rightW:
  3438. w.userid == userid ||
  3439. tType == 1 ||
  3440. tType == 4 ||
  3441. w.ateacher == userid,
  3442. }"
  3443. >
  3444. {{ lang.ssMarkScore }}
  3445. </div>
  3446. <img
  3447. class="deleteImg"
  3448. src="../assets/deleteworks.png"
  3449. v-if="
  3450. w.userid == userid || tType == 1 || tType == 4
  3451. "
  3452. @click.stop="deleteWorks(w.wid)"
  3453. alt
  3454. />
  3455. </div>
  3456. <div class="comment" style="min-width: 200px">
  3457. <div class="worksName">
  3458. <div>{{ w.sName }}</div>
  3459. </div>
  3460. <div class="commentList">
  3461. <div class="commentList">
  3462. <div
  3463. class="commentImg"
  3464. @click="
  3465. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3466. "
  3467. >
  3468. <img
  3469. :src="w.isLikes == true ? likes : noLikes"
  3470. alt=""
  3471. />
  3472. </div>
  3473. <div>{{ w.likesCount }}</div>
  3474. </div>
  3475. <div class="commentList" style="margin-right: 15px">
  3476. <div
  3477. class="commentImg"
  3478. @click="commentOther(w, toolIndex, wIndex)"
  3479. >
  3480. <img
  3481. src="../assets/icon/comment/comment.png"
  3482. alt=""
  3483. />
  3484. </div>
  3485. <div>{{ w.commentCount }}</div>
  3486. </div>
  3487. </div>
  3488. </div>
  3489. </div>
  3490. </div>
  3491. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3492. {{ lang.ssNotSubmitted }}
  3493. </div>
  3494. <div
  3495. class="noWorksS"
  3496. v-if="noWorksS && noWorksS[toolIndex].length"
  3497. >
  3498. <div
  3499. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3500. :key="sIndex"
  3501. class="noWorksName"
  3502. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3503. >
  3504. <el-tooltip effect="dark" :content="s.student" placement="top">
  3505. <span>{{ s.student }}</span>
  3506. </el-tooltip>
  3507. </div>
  3508. </div>
  3509. </div>
  3510. <div
  3511. v-if="
  3512. tType &&
  3513. ((tType == 2 && sIsOpen == true) ||
  3514. tType == 1 ||
  3515. tType == 4) &&
  3516. tool.tool.indexOf(57) != -1
  3517. "
  3518. class="worksBox"
  3519. >
  3520. <div
  3521. class="zuoyeYulan"
  3522. v-if="
  3523. worksStudent.length &&
  3524. worksStudent[toolIndex].length > 0
  3525. "
  3526. >
  3527. <div class="worksTop">
  3528. <div>{{ lang.ssHomeworkPreview }}</div>
  3529. <div
  3530. class="corOpen"
  3531. @click="contract(toolIndex)"
  3532. v-if="
  3533. (isCloseList[toolIndex].isCloseBoolean) &&
  3534. isCloseList[toolIndex].isClose == 0
  3535. "
  3536. >
  3537. {{ lang.ssFold }}
  3538. </div>
  3539. <div
  3540. class="corOpen"
  3541. @click="contract(toolIndex)"
  3542. v-if="isCloseList[toolIndex].isClose == 1"
  3543. >
  3544. {{ lang.ssExpand }}
  3545. </div>
  3546. </div>
  3547. </div>
  3548. <div
  3549. :id="'tool-' + toolIndex"
  3550. class="worksDetailBox"
  3551. :style="{
  3552. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3553. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3554. }"
  3555. v-if="
  3556. worksStudent.length &&
  3557. worksStudent[toolIndex].length > 0
  3558. "
  3559. >
  3560. <div
  3561. class="works"
  3562. style="
  3563. width: 200px;
  3564. height: 140px;
  3565. margin: 10px 10px 10px 0;
  3566. border-radius: 15px;
  3567. box-shadow: 0 0 6px 1px #dfdada;
  3568. "
  3569. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3570. :key="wIndex"
  3571. :class="w.type == 1 ? 'isTypeOne' : ''"
  3572. >
  3573. <div class="workImg">
  3574. <img
  3575. :src="word2"
  3576. @click="downloadFile(w.works,w.userid)"
  3577. v-if="w.type == 12"
  3578. alt
  3579. />
  3580. <img
  3581. :src="word2"
  3582. @click="
  3583. openCocoPi(57, toolIndex, w.userid, w.sName)
  3584. "
  3585. v-else-if="w.type == 15"
  3586. alt
  3587. />
  3588. <div
  3589. class="answerScore"
  3590. v-if="w.score"
  3591. @click.stop="openScore(w)"
  3592. :class="{
  3593. rightW:
  3594. w.userid == userid ||
  3595. tType == 1 ||
  3596. tType == 4 ||
  3597. w.ateacher == userid,
  3598. }"
  3599. >
  3600. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3601. </div>
  3602. <div
  3603. class="answerScore"
  3604. @click.stop="openScore(w)"
  3605. v-else-if="courseDetail.userid == userid"
  3606. :class="{
  3607. rightW:
  3608. w.userid == userid ||
  3609. tType == 1 ||
  3610. tType == 4 ||
  3611. w.ateacher == userid,
  3612. }"
  3613. >
  3614. {{ lang.ssMarkScore }}
  3615. </div>
  3616. <img
  3617. class="deleteImg"
  3618. src="../assets/deleteworks.png"
  3619. v-if="
  3620. w.userid == userid || tType == 1 || tType == 4
  3621. "
  3622. @click.stop="deleteWorks(w.wid)"
  3623. alt
  3624. />
  3625. </div>
  3626. <div class="comment" style="min-width: 200px">
  3627. <div class="worksName">
  3628. <div>{{ w.sName }}</div>
  3629. </div>
  3630. <div class="commentList">
  3631. <div class="commentList">
  3632. <div
  3633. class="commentImg"
  3634. @click="
  3635. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3636. "
  3637. >
  3638. <img
  3639. :src="w.isLikes == true ? likes : noLikes"
  3640. alt=""
  3641. />
  3642. </div>
  3643. <div>{{ w.likesCount }}</div>
  3644. </div>
  3645. <div class="commentList" style="margin-right: 15px">
  3646. <div
  3647. class="commentImg"
  3648. @click="commentOther(w, toolIndex, wIndex)"
  3649. >
  3650. <img
  3651. src="../assets/icon/comment/comment.png"
  3652. alt=""
  3653. />
  3654. </div>
  3655. <div>{{ w.commentCount }}</div>
  3656. </div>
  3657. </div>
  3658. </div>
  3659. </div>
  3660. </div>
  3661. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3662. {{ lang.ssNotSubmitted }}
  3663. </div>
  3664. <div
  3665. class="noWorksS"
  3666. v-if="noWorksS && noWorksS[toolIndex].length"
  3667. >
  3668. <div
  3669. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3670. :key="sIndex"
  3671. class="noWorksName"
  3672. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3673. >
  3674. <el-tooltip effect="dark" :content="s.student" placement="top">
  3675. <span>{{ s.student }}</span>
  3676. </el-tooltip>
  3677. </div>
  3678. </div>
  3679. </div>
  3680. <div
  3681. v-if="
  3682. tType &&
  3683. ((tType == 2 && sIsOpen == true) ||
  3684. tType == 1 ||
  3685. tType == 4) &&
  3686. tool.tool.indexOf(72) != -1
  3687. "
  3688. class="worksBox"
  3689. >
  3690. <div
  3691. class="zuoyeYulan"
  3692. v-if="
  3693. worksStudent.length &&
  3694. worksStudent[toolIndex].length > 0
  3695. "
  3696. >
  3697. <div class="worksTop">
  3698. <div>{{ lang.ssHomeworkPreview }}</div>
  3699. <div
  3700. class="corOpen"
  3701. @click="contract(toolIndex)"
  3702. v-if="
  3703. isCloseList[toolIndex].isCloseBoolean &&
  3704. isCloseList[toolIndex].isClose == 0
  3705. "
  3706. >
  3707. {{ lang.ssFold }}
  3708. </div>
  3709. <div
  3710. class="corOpen"
  3711. @click="contract(toolIndex)"
  3712. v-if="isCloseList[toolIndex].isClose == 1"
  3713. >
  3714. {{ lang.ssExpand }}
  3715. </div>
  3716. </div>
  3717. </div>
  3718. <div
  3719. :id="'tool-' + toolIndex"
  3720. :style="{
  3721. height:
  3722. isCloseList[toolIndex].isClose == 1
  3723. ? retrnToolHeight('tool-' + toolIndex)
  3724. : 'auto',
  3725. overflow:
  3726. isCloseList[toolIndex].isClose == 1
  3727. ? 'hidden'
  3728. : 'unset'
  3729. }"
  3730. class="worksDetailBox"
  3731. v-if="
  3732. worksStudent.length &&
  3733. worksStudent[toolIndex].length > 0
  3734. "
  3735. >
  3736. <div
  3737. class="works"
  3738. style="
  3739. width: 200px;
  3740. height: 140px;
  3741. margin: 10px 10px 10px 0;
  3742. border-radius: 15px;
  3743. box-shadow: 0 0 6px 1px #dfdada;
  3744. "
  3745. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3746. :key="wIndex"
  3747. :class="w.type == 1 ? 'isTypeOne' : ''"
  3748. >
  3749. <div class="workImg">
  3750. <!-- <img
  3751. :src="word2"
  3752. @click="downloadFile(w.works)"
  3753. v-if="w.type == 12"
  3754. alt
  3755. /> -->
  3756. <img
  3757. :src="word2"
  3758. @click="
  3759. openCocoFlow(w)
  3760. "
  3761. alt
  3762. />
  3763. <div
  3764. class="answerScore"
  3765. v-if="w.score"
  3766. @click.stop="openScore(w)"
  3767. :class="{
  3768. rightW:
  3769. w.userid == userid ||
  3770. tType == 1 ||
  3771. tType == 4 ||
  3772. w.ateacher == userid
  3773. }"
  3774. >
  3775. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3776. </div>
  3777. <div
  3778. class="answerScore"
  3779. @click.stop="openScore(w)"
  3780. v-else-if="
  3781. courseDetail.userid == userid &&
  3782. courseDetail.state != 5 &&
  3783. chapInfoList[courseType].chapterInfo[0]
  3784. .taskJson[taskCount].eList &&
  3785. chapInfoList[courseType].chapterInfo[0]
  3786. .taskJson[taskCount].eList.length
  3787. "
  3788. :class="{
  3789. rightW:
  3790. w.userid == userid ||
  3791. tType == 1 ||
  3792. tType == 4 ||
  3793. w.ateacher == userid
  3794. }"
  3795. >
  3796. {{ lang.ssMarkScore }}
  3797. </div>
  3798. <img
  3799. class="deleteImg"
  3800. src="../assets/deleteworks.png"
  3801. v-if="
  3802. w.userid == userid || tType == 1 || tType == 4
  3803. "
  3804. @click.stop="deleteWorks(w.wid)"
  3805. alt
  3806. />
  3807. </div>
  3808. <div class="comment" style="min-width: 200px">
  3809. <div class="worksName">
  3810. <div>{{ w.sName }}</div>
  3811. </div>
  3812. <div class="commentList">
  3813. <div class="commentList">
  3814. <div
  3815. class="commentImg"
  3816. @click="
  3817. isLikes(
  3818. w.wid,
  3819. userid,
  3820. 1,
  3821. null,
  3822. w.isLikes,
  3823. w.sName
  3824. )
  3825. "
  3826. >
  3827. <img
  3828. :src="w.isLikes == true ? likes : noLikes"
  3829. alt=""
  3830. />
  3831. </div>
  3832. <div>{{ w.likesCount }}</div>
  3833. </div>
  3834. <div class="commentList" style="margin-right: 15px">
  3835. <div
  3836. class="commentImg"
  3837. @click="commentOther(w, toolIndex, wIndex)"
  3838. >
  3839. <img
  3840. src="../assets/icon/comment/comment.png"
  3841. alt=""
  3842. />
  3843. </div>
  3844. <div>{{ w.commentCount }}</div>
  3845. </div>
  3846. </div>
  3847. </div>
  3848. </div>
  3849. </div>
  3850. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3851. {{ lang.ssNotSubmitted }}
  3852. </div>
  3853. <div
  3854. class="noWorksS"
  3855. v-if="noWorksS && noWorksS[toolIndex].length"
  3856. >
  3857. <div
  3858. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3859. :key="sIndex"
  3860. class="noWorksName2"
  3861. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3862. >
  3863. <el-tooltip
  3864. effect="dark"
  3865. :content="s.student"
  3866. placement="top"
  3867. >
  3868. <span>{{ s.student }}</span>
  3869. </el-tooltip>
  3870. </div>
  3871. </div>
  3872. </div>
  3873. <div
  3874. v-if="
  3875. tType &&
  3876. tType == 2 &&
  3877. !sIsOpen &&
  3878. tool.tool.indexOf(72) != -1
  3879. "
  3880. class="worksBox"
  3881. >
  3882. <div
  3883. class="zuoyeYulan"
  3884. v-if="workStudent[toolIndex].length > 0"
  3885. >
  3886. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  3887. </div>
  3888. <div
  3889. class="worksDetailBox"
  3890. v-if="workStudent[toolIndex].length > 0"
  3891. >
  3892. <div
  3893. class="works"
  3894. style="
  3895. width: 200px;
  3896. height: 140px;
  3897. margin: 10px 10px 10px 0;
  3898. box-shadow: 0 0 6px 1px #dfdada;
  3899. "
  3900. v-for="(w, wIndex) in workStudent[toolIndex]"
  3901. :key="wIndex"
  3902. >
  3903. <div class="workImg">
  3904. <!-- <img
  3905. :src="word2"
  3906. @click="downloadFile(w.works)"
  3907. v-if="w.type == 12"
  3908. alt
  3909. /> -->
  3910. <img
  3911. :src="word2"
  3912. @click="
  3913. openCocoFlow(w)
  3914. "
  3915. alt
  3916. />
  3917. <div
  3918. class="answerScore"
  3919. v-if="w.score"
  3920. @click.stop="openScore(w)"
  3921. :class="{
  3922. rightW:
  3923. w.userid == userid || tType == 1 || tType == 4
  3924. }"
  3925. >
  3926. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3927. </div>
  3928. <div
  3929. class="answerScore"
  3930. @click.stop="openScore(w)"
  3931. v-else-if="courseDetail.userid == userid"
  3932. :class="{
  3933. rightW:
  3934. w.userid == userid || tType == 1 || tType == 4
  3935. }"
  3936. >
  3937. {{ lang.ssMarkScore }}
  3938. </div>
  3939. <img
  3940. class="deleteImg"
  3941. src="../assets/deleteworks.png"
  3942. v-if="
  3943. w.userid == userid || tType == 1 || tType == 4
  3944. "
  3945. @click.stop="deleteWorks(w.wid)"
  3946. alt
  3947. />
  3948. </div>
  3949. <div class="worksName">
  3950. <div>{{ w.sName }}</div>
  3951. </div>
  3952. </div>
  3953. </div>
  3954. </div>
  3955. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3956. <div
  3957. class="zuoyeYulan"
  3958. v-if="
  3959. worksStudent.length &&
  3960. worksStudent[toolIndex].length > 0
  3961. "
  3962. >
  3963. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  3964. <div
  3965. class="corOpen"
  3966. @click="contract(toolIndex)"
  3967. v-if="
  3968. (isCloseList[toolIndex].isCloseBoolean) &&
  3969. isCloseList[toolIndex].isClose == 0
  3970. "
  3971. >
  3972. {{ lang.ssFold }}
  3973. </div>
  3974. <div
  3975. class="corOpen"
  3976. @click="contract(toolIndex)"
  3977. v-if="isCloseList[toolIndex].isClose == 1"
  3978. >
  3979. {{ lang.ssExpand }}
  3980. </div>
  3981. </div>
  3982. <div
  3983. :id="'tool-' + toolIndex"
  3984. :style="{
  3985. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3986. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3987. }"
  3988. class="worksDetailBox"
  3989. v-if="
  3990. worksStudent.length &&
  3991. worksStudent[toolIndex].length > 0
  3992. "
  3993. >
  3994. <div
  3995. class="works"
  3996. style="
  3997. width: 200px;
  3998. height: 140px;
  3999. margin: 10px 10px 10px 0;
  4000. border-radius: 15px;
  4001. box-shadow: 0 0 6px 1px #dfdada;
  4002. "
  4003. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4004. :key="wIndex"
  4005. :class="w.type == 1 ? 'isTypeOne' : ''"
  4006. >
  4007. <div class="workImg" v-if="w.type == 0">
  4008. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4009. <img
  4010. :src="w.works"
  4011. @click="previewImg(w.works,w)"
  4012. alt
  4013. />
  4014. <div
  4015. class="answerScore"
  4016. v-if="w.score"
  4017. @click.stop="openScore(w)"
  4018. :class="{
  4019. rightW:
  4020. w.userid == userid ||
  4021. tType == 1 ||
  4022. tType == 4 ||
  4023. w.ateacher == userid,
  4024. }"
  4025. >
  4026. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4027. </div>
  4028. <div
  4029. class="answerScore"
  4030. @click.stop="openScore(w)"
  4031. v-else-if="courseDetail.userid == userid"
  4032. :class="{
  4033. rightW:
  4034. w.userid == userid ||
  4035. tType == 1 ||
  4036. tType == 4 ||
  4037. w.ateacher == userid,
  4038. }"
  4039. >
  4040. {{ lang.ssMarkScore }}
  4041. </div>
  4042. <img
  4043. class="deleteImg"
  4044. src="../assets/deleteworks.png"
  4045. v-if="
  4046. w.userid == userid || tType == 1 || tType == 4
  4047. "
  4048. @click.stop="deleteWorks(w.wid)"
  4049. alt
  4050. />
  4051. </div>
  4052. <div
  4053. class="workImg"
  4054. style="cursor: pointer"
  4055. v-if="w.type == 1"
  4056. >
  4057. <img :src="word" @click="openFile(w.works,w)" alt />
  4058. <!-- @click="openFile(w.works)" -->
  4059. <div
  4060. class="answerScore"
  4061. v-if="w.score"
  4062. @click.stop="openScore(w)"
  4063. :class="{
  4064. rightW:
  4065. w.userid == userid ||
  4066. tType == 1 ||
  4067. tType == 4 ||
  4068. w.ateacher == userid,
  4069. }"
  4070. >
  4071. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4072. </div>
  4073. <div
  4074. class="answerScore"
  4075. @click.stop="openScore(w)"
  4076. v-else-if="courseDetail.userid == userid"
  4077. :class="{
  4078. rightW:
  4079. w.userid == userid ||
  4080. tType == 1 ||
  4081. tType == 4 ||
  4082. w.ateacher == userid,
  4083. }"
  4084. >
  4085. {{ lang.ssMarkScore }}
  4086. </div>
  4087. <img
  4088. class="deleteImg"
  4089. src="../assets/deleteworks.png"
  4090. v-if="
  4091. w.userid == userid || tType == 1 || tType == 4
  4092. "
  4093. @click.stop="deleteWorks(w.wid)"
  4094. alt
  4095. />
  4096. </div>
  4097. <div class="workImg" v-if="w.type == 3">
  4098. <img
  4099. style="cursor: pointer"
  4100. :src="video"
  4101. @click="openVideo(w)"
  4102. alt
  4103. />
  4104. <!-- @click="openVideo(w.works)" -->
  4105. <div
  4106. class="answerScore"
  4107. v-if="w.score"
  4108. @click.stop="openScore(w)"
  4109. :class="{
  4110. rightW:
  4111. w.userid == userid ||
  4112. tType == 1 ||
  4113. tType == 4 ||
  4114. w.ateacher == userid,
  4115. }"
  4116. >
  4117. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4118. </div>
  4119. <div
  4120. class="answerScore"
  4121. @click.stop="openScore(w)"
  4122. v-else-if="courseDetail.userid == userid"
  4123. :class="{
  4124. rightW:
  4125. w.userid == userid ||
  4126. tType == 1 ||
  4127. tType == 4 ||
  4128. w.ateacher == userid,
  4129. }"
  4130. >
  4131. {{ lang.ssMarkScore }}
  4132. </div>
  4133. <img
  4134. class="deleteImg"
  4135. src="../assets/deleteworks.png"
  4136. v-if="
  4137. w.userid == userid || tType == 1 || tType == 4
  4138. "
  4139. @click.stop="deleteWorks(w.wid)"
  4140. alt
  4141. />
  4142. </div>
  4143. <div class="comment" style="min-width: 200px">
  4144. <div class="worksName">
  4145. <div
  4146. style="cursor: pointer"
  4147. @click="
  4148. openSname(w.sName, w.wid, toolIndex, w.userid)
  4149. "
  4150. >
  4151. {{ w.sName }}
  4152. </div>
  4153. </div>
  4154. <div class="commentList">
  4155. <div class="commentList">
  4156. <div
  4157. class="commentImg"
  4158. @click="
  4159. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4160. "
  4161. >
  4162. <img
  4163. :src="w.isLikes == true ? likes : noLikes"
  4164. alt=""
  4165. />
  4166. </div>
  4167. <div>{{ w.likesCount }}</div>
  4168. </div>
  4169. <div class="commentList" style="margin-right: 15px">
  4170. <div
  4171. class="commentImg"
  4172. @click="commentOther(w, toolIndex, wIndex)"
  4173. >
  4174. <img
  4175. src="../assets/icon/comment/comment.png"
  4176. alt=""
  4177. />
  4178. </div>
  4179. <div>{{ w.commentCount }}</div>
  4180. </div>
  4181. </div>
  4182. </div>
  4183. </div>
  4184. </div>
  4185. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4186. {{ lang.ssNotSubmitted }}
  4187. </div>
  4188. <div
  4189. class="noWorksS"
  4190. v-if="noWorksS && noWorksS[toolIndex].length"
  4191. >
  4192. <div
  4193. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4194. :key="sIndex"
  4195. class="noWorksName"
  4196. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4197. >
  4198. <el-tooltip effect="dark" :content="s.student" placement="top">
  4199. <span>{{ s.student }}</span>
  4200. </el-tooltip>
  4201. </div>
  4202. </div>
  4203. </div>
  4204. <div
  4205. v-if="
  4206. tType &&
  4207. ((tType == 2 && sIsOpen == true) ||
  4208. tType == 1 ||
  4209. tType == 4) &&
  4210. tool.tool.indexOf(4) != -1 &&
  4211. (tool.askJson[0].answer ||
  4212. tool.askJson[0].answer === 0) &&
  4213. checkJson[toolIndex].length
  4214. "
  4215. class="xuan_right_box"
  4216. >
  4217. <div
  4218. class="tool_right_box"
  4219. v-for="(item, index) in tool.askJson"
  4220. :key="index"
  4221. >
  4222. <div style="width: calc(100% - 30px);">
  4223. <el-tooltip
  4224. effect="light"
  4225. :content="index + 1 + '、' + item.askstitle"
  4226. placement="top"
  4227. popper-class="text_tooltip"
  4228. >
  4229. <div
  4230. style="
  4231. width: calc(100% - 130px);
  4232. display: block;
  4233. white-space: nowrap;
  4234. overflow: hidden;
  4235. text-overflow: ellipsis;
  4236. word-break: break-word;
  4237. cursor: pointer;
  4238. "
  4239. >
  4240. {{ index + 1 + "、" + item.askstitle }}
  4241. </div>
  4242. </el-tooltip>
  4243. </div>
  4244. <div class="right_box_xuan">
  4245. <span>{{ lang.ssCorrectRate }}</span>
  4246. <span>{{
  4247. (checkJson[toolIndex][index].right
  4248. ? checkJson[toolIndex][index].right
  4249. : 0) + "%"
  4250. }}</span>
  4251. </div>
  4252. </div>
  4253. </div>
  4254. <div
  4255. class="xuan_right_box"
  4256. style="background: unset; padding: 0 10px"
  4257. v-if="
  4258. tType &&
  4259. ((tType == 2 && sIsOpen == true) ||
  4260. tType == 1 ||
  4261. tType == 4) &&
  4262. tool.tool.indexOf(4) != -1
  4263. "
  4264. >
  4265. <AskStatic
  4266. v-if="
  4267. worksStudent.length &&
  4268. worksStudent[toolIndex].length > 0
  4269. "
  4270. :askJSON="tool"
  4271. :checkJson="checkJson[toolIndex]"
  4272. ></AskStatic>
  4273. </div>
  4274. <div
  4275. v-if="
  4276. tType &&
  4277. ((tType == 2 && sIsOpen == true) ||
  4278. tType == 1 ||
  4279. tType == 4) &&
  4280. tool.tool.indexOf(4) != -1
  4281. "
  4282. class="worksBox"
  4283. >
  4284. <div
  4285. class="zuoyeYulan"
  4286. v-if="
  4287. worksStudent.length &&
  4288. worksStudent[toolIndex].length > 0
  4289. "
  4290. >
  4291. <div class="worksTop">
  4292. <div>{{ lang.ssHomeworkPreview }}</div>
  4293. <div
  4294. class="corOpen"
  4295. @click="contract(toolIndex)"
  4296. v-if="
  4297. (isCloseList[toolIndex].isCloseBoolean) &&
  4298. isCloseList[toolIndex].isClose == 0
  4299. "
  4300. >
  4301. {{ lang.ssFold }}
  4302. </div>
  4303. <div
  4304. class="corOpen"
  4305. @click="contract(toolIndex)"
  4306. v-if="isCloseList[toolIndex].isClose == 1"
  4307. >
  4308. {{ lang.ssExpand }}
  4309. </div>
  4310. </div>
  4311. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4312. </div>
  4313. <div>
  4314. <div
  4315. :id="'tool-' + toolIndex"
  4316. :style="{
  4317. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4318. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4319. }"
  4320. class="worksDetailBox"
  4321. v-if="
  4322. worksStudent.length &&
  4323. worksStudent[toolIndex].length > 0
  4324. "
  4325. >
  4326. <div
  4327. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4328. :key="wIndex"
  4329. class="isWorksName2"
  4330. @click="
  4331. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4332. "
  4333. >
  4334. {{ w.sName }}
  4335. <img
  4336. class="deleteImg deleteImg2"
  4337. src="../assets/deleteworks.png"
  4338. v-if="
  4339. w.userid == userid || tType == 1 || tType == 4
  4340. "
  4341. @click.stop="deleteWorks(w.wid)"
  4342. alt
  4343. />
  4344. </div>
  4345. <!-- <div class="works" style="
  4346. width: 200px;
  4347. height: 140px;
  4348. border-radius: 10px;
  4349. box-shadow: 0 0 6px 1px #dfdada;
  4350. overflow: hidden;
  4351. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4352. <div class="workImg">
  4353. <img src="../assets/icon/works/noImg.png" @click="
  4354. openTools(
  4355. 4,
  4356. toolIndex,
  4357. taskCount,
  4358. w.works,
  4359. w.sName
  4360. )
  4361. " alt />
  4362. </div>
  4363. <div class="worksName">
  4364. <div>{{ w.sName }}</div>
  4365. <div>{{ w.time }}</div>
  4366. </div>
  4367. </div> -->
  4368. </div>
  4369. </div>
  4370. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4371. {{ lang.ssNotSubmitted }}
  4372. </div>
  4373. <div
  4374. class="noWorksS"
  4375. v-if="noWorksS && noWorksS[toolIndex].length"
  4376. >
  4377. <div
  4378. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4379. :key="sIndex"
  4380. class="noWorksName"
  4381. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4382. >
  4383. <el-tooltip effect="dark" :content="s.student" placement="top">
  4384. <span>{{ s.student }}</span>
  4385. </el-tooltip>
  4386. </div>
  4387. </div>
  4388. </div>
  4389. <div
  4390. v-if="
  4391. tType &&
  4392. ((tType == 2 && sIsOpen == true) ||
  4393. tType == 1 ||
  4394. tType == 4) &&
  4395. tool.tool.indexOf(45) != -1 &&
  4396. (tool.testJson.testJson[0].answer ||
  4397. tool.testJson.testJson[0].answer === 0) &&
  4398. checkJson[toolIndex].length
  4399. "
  4400. class="xuan_right_box"
  4401. >
  4402. <div
  4403. class="tool_right_box"
  4404. v-for="(item, index) in tool.testJson.testJson"
  4405. :key="index"
  4406. >
  4407. <div class="right_box_xuan" style="margin-right: 10px">
  4408. <span>{{ lang.ssCorrectRate }}</span>
  4409. <span>{{
  4410. (checkJson[toolIndex][index].right
  4411. ? checkJson[toolIndex][index].right
  4412. : 0) + "%"
  4413. }}</span>
  4414. </div>
  4415. <div style="width: calc(100% - 30px);">
  4416. <el-tooltip
  4417. effect="light"
  4418. :content="index + 1 + '、' + item.teststitle"
  4419. placement="top"
  4420. popper-class="text_tooltip"
  4421. >
  4422. <div
  4423. style="
  4424. width: calc(100% - 130px);
  4425. display: flex;
  4426. white-space: nowrap;
  4427. overflow: hidden;
  4428. text-overflow: ellipsis;
  4429. word-break: break-word;
  4430. cursor: pointer;
  4431. "
  4432. class="renderedFor"
  4433. >
  4434. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  4435. </div>
  4436. </el-tooltip>
  4437. </div>
  4438. </div>
  4439. </div>
  4440. <div
  4441. class="xuan_right_box"
  4442. style="background: unset; padding: 0 10px; width: 91.5%"
  4443. v-if="
  4444. tType &&
  4445. ((tType == 2 && sIsOpen == true) ||
  4446. tType == 1 ||
  4447. tType == 4) &&
  4448. tool.tool.indexOf(45) != -1
  4449. "
  4450. >
  4451. <AskStatic2
  4452. v-if="
  4453. worksStudent.length &&
  4454. worksStudent[toolIndex].length > 0
  4455. "
  4456. :askJSON="tool"
  4457. :checkJson="checkJson[toolIndex]"
  4458. ></AskStatic2>
  4459. </div>
  4460. <div
  4461. v-if="
  4462. tType &&
  4463. ((tType == 2 && sIsOpen == true) ||
  4464. tType == 1 ||
  4465. tType == 4) &&
  4466. tool.tool.indexOf(45) != -1
  4467. "
  4468. class="worksBox"
  4469. >
  4470. <div
  4471. class="zuoyeYulan"
  4472. v-if="
  4473. worksStudent.length &&
  4474. worksStudent[toolIndex].length > 0
  4475. "
  4476. >
  4477. <div class="worksTop">
  4478. <div>{{ lang.ssHomeworkPreview }}</div>
  4479. <div
  4480. class="corOpen"
  4481. @click="contract(toolIndex)"
  4482. v-if="
  4483. (isCloseList[toolIndex].isCloseBoolean) &&
  4484. isCloseList[toolIndex].isClose == 0
  4485. "
  4486. >
  4487. {{ lang.ssFold }}
  4488. </div>
  4489. <div
  4490. class="corOpen"
  4491. @click="contract(toolIndex)"
  4492. v-if="isCloseList[toolIndex].isClose == 1"
  4493. >
  4494. {{ lang.ssExpand }}
  4495. </div>
  4496. </div>
  4497. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4498. </div>
  4499. <div>
  4500. <div
  4501. :id="'tool-' + toolIndex"
  4502. :style="{
  4503. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4504. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4505. }"
  4506. class="worksDetailBox"
  4507. v-if="
  4508. worksStudent.length &&
  4509. worksStudent[toolIndex].length > 0
  4510. "
  4511. >
  4512. <div
  4513. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4514. :key="wIndex"
  4515. class="isWorksName2"
  4516. @click="
  4517. openTools(
  4518. 45,
  4519. toolIndex,
  4520. taskCount,
  4521. w.works,
  4522. w.sName
  4523. )
  4524. "
  4525. >
  4526. {{ w.sName }}
  4527. <img
  4528. class="deleteImg deleteImg2"
  4529. src="../assets/deleteworks.png"
  4530. v-if="
  4531. w.userid == userid || tType == 1 || tType == 4
  4532. "
  4533. @click.stop="deleteWorks(w.wid)"
  4534. alt
  4535. />
  4536. </div>
  4537. </div>
  4538. </div>
  4539. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4540. {{ lang.ssNotSubmitted }}
  4541. </div>
  4542. <div
  4543. class="noWorksS"
  4544. v-if="noWorksS && noWorksS[toolIndex].length"
  4545. >
  4546. <div
  4547. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4548. :key="sIndex"
  4549. class="noWorksName"
  4550. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4551. >
  4552. <el-tooltip effect="dark" :content="s.student" placement="top">
  4553. <span>{{ s.student }}</span>
  4554. </el-tooltip>
  4555. </div>
  4556. </div>
  4557. </div>
  4558. <div
  4559. v-if="
  4560. tType &&
  4561. ((tType == 2 && sIsOpen == true) ||
  4562. tType == 1 ||
  4563. tType == 4) &&
  4564. tool.tool.indexOf(69) != -1
  4565. "
  4566. class="worksBox"
  4567. >
  4568. <div
  4569. class="zuoyeYulan"
  4570. v-if="
  4571. worksStudent.length &&
  4572. worksStudent[toolIndex].length > 0
  4573. "
  4574. >
  4575. <div class="worksTop">
  4576. <div>{{ lang.ssHomeworkPreview }}</div>
  4577. <div
  4578. class="corOpen"
  4579. @click="contract(toolIndex)"
  4580. v-if="
  4581. (isCloseList[toolIndex].isCloseBoolean) &&
  4582. isCloseList[toolIndex].isClose == 0
  4583. "
  4584. >
  4585. {{ lang.ssFold }}
  4586. </div>
  4587. <div
  4588. class="corOpen"
  4589. @click="contract(toolIndex)"
  4590. v-if="isCloseList[toolIndex].isClose == 1"
  4591. >
  4592. {{ lang.ssExpand }}
  4593. </div>
  4594. </div>
  4595. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4596. </div>
  4597. <div>
  4598. <div
  4599. :id="'tool-' + toolIndex"
  4600. :style="{
  4601. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4602. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4603. }"
  4604. class="worksDetailBox"
  4605. v-if="
  4606. worksStudent.length &&
  4607. worksStudent[toolIndex].length > 0
  4608. "
  4609. >
  4610. <div
  4611. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4612. :key="wIndex"
  4613. class="isWorksName2"
  4614. style="width: 160px;height: 65px;line-height: 65px;"
  4615. @click="
  4616. openTools(
  4617. 69,
  4618. toolIndex,
  4619. taskCount,
  4620. w.works,
  4621. w.sName,
  4622. w.wid
  4623. )
  4624. "
  4625. >
  4626. {{ w.sName }}
  4627. <img
  4628. class="deleteImg1"
  4629. src="../assets/evaEnglish.png"
  4630. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4631. alt
  4632. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4633. />
  4634. <img
  4635. class="deleteImg deleteImg2"
  4636. src="../assets/deleteworks.png"
  4637. v-if="
  4638. w.userid == userid || tType == 1 || tType == 4
  4639. "
  4640. @click.stop="deleteWorks(w.wid)"
  4641. alt
  4642. />
  4643. </div>
  4644. </div>
  4645. </div>
  4646. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4647. {{ lang.ssNotSubmitted }}
  4648. </div>
  4649. <div
  4650. class="noWorksS"
  4651. v-if="noWorksS && noWorksS[toolIndex].length"
  4652. >
  4653. <div
  4654. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4655. :key="sIndex"
  4656. class="noWorksName"
  4657. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4658. >
  4659. <el-tooltip effect="dark" :content="s.student" placement="top">
  4660. <span>{{ s.student }}</span>
  4661. </el-tooltip>
  4662. </div>
  4663. </div>
  4664. </div>
  4665. <div
  4666. v-if="
  4667. tType &&
  4668. ((tType == 2 && sIsOpen == true) ||
  4669. tType == 1 ||
  4670. tType == 4) &&
  4671. tool.tool.indexOf(15) != -1
  4672. "
  4673. class="worksBox"
  4674. >
  4675. <div
  4676. class="zuoyeYulan"
  4677. v-if="
  4678. (worksStudent.length &&
  4679. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4680. "
  4681. >
  4682. <div class="worksTop">
  4683. <div>{{ lang.ssHomeworkPreview }}</div>
  4684. <div
  4685. class="corOpen"
  4686. @click="contract(toolIndex)"
  4687. v-if="
  4688. (isCloseList[toolIndex].isCloseBoolean) &&
  4689. isCloseList[toolIndex].isClose == 0
  4690. "
  4691. >
  4692. {{ lang.ssFold }}
  4693. </div>
  4694. <div
  4695. class="corOpen"
  4696. @click="contract(toolIndex)"
  4697. v-if="isCloseList[toolIndex].isClose == 1"
  4698. >
  4699. {{ lang.ssExpand }}
  4700. </div>
  4701. </div>
  4702. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4703. </div>
  4704. <div
  4705. class="group_workBox"
  4706. v-for="(g, gindex) in courseGroup.group"
  4707. :key="gindex"
  4708. >
  4709. <div class="group_box">
  4710. <div class="group_title">
  4711. <el-tooltip
  4712. class="item"
  4713. effect="light"
  4714. :content="g.name"
  4715. placement="top"
  4716. >
  4717. <div class="group_name">{{ g.name }}</div>
  4718. </el-tooltip>
  4719. </div>
  4720. <div
  4721. class="group_work"
  4722. v-if="
  4723. g.works &&
  4724. g.works.length &&
  4725. g.works[toolIndex].length
  4726. "
  4727. >
  4728. <div
  4729. class="works"
  4730. v-for="(w, wIndex) in g.works[toolIndex]"
  4731. :key="wIndex"
  4732. >
  4733. <div
  4734. class="workImg"
  4735. style="
  4736. border-radius: 15px;
  4737. box-shadow: 0px 0px 5px 5px #eee;
  4738. "
  4739. >
  4740. <div
  4741. class="answerBg"
  4742. style="border-radius: 15px 15px 0 0"
  4743. @click="
  4744. commentOther(w, toolIndex, wIndex, null, g.id)
  4745. "
  4746. >
  4747. <div class="answerContent">
  4748. {{ JSON.parse(w.works)[0].answer }}
  4749. </div>
  4750. <div
  4751. class="answerScore"
  4752. v-if="w.score"
  4753. @click.stop="openScore(w)"
  4754. :class="{
  4755. rightW:
  4756. w.userid == userid ||
  4757. tType == 1 ||
  4758. tType == 4,
  4759. }"
  4760. >
  4761. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4762. </div>
  4763. <div
  4764. class="answerScore"
  4765. @click.stop="openScore(w)"
  4766. v-else-if="courseDetail.userid == userid"
  4767. :class="{
  4768. rightW:
  4769. w.userid == userid ||
  4770. tType == 1 ||
  4771. tType == 4,
  4772. }"
  4773. >
  4774. {{ lang.ssMarkScore }}
  4775. </div>
  4776. <img
  4777. class="deleteImg"
  4778. src="../assets/deleteworks.png"
  4779. v-if="
  4780. w.userid == userid ||
  4781. tType == 1 ||
  4782. tType == 4
  4783. "
  4784. @click.stop="deleteWorks(w.wid)"
  4785. alt
  4786. />
  4787. </div>
  4788. <div class="comment">
  4789. <div class="worksName">
  4790. <div>{{ w.sName }}</div>
  4791. </div>
  4792. <div class="commentList">
  4793. <div
  4794. class="commentImg"
  4795. @click="
  4796. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4797. "
  4798. >
  4799. <img
  4800. :src="w.isLikes == true ? likes : noLikes"
  4801. alt=""
  4802. />
  4803. </div>
  4804. <div>{{ w.likesCount }}</div>
  4805. </div>
  4806. <div
  4807. class="commentList"
  4808. style="margin-right: 15px"
  4809. >
  4810. <div
  4811. class="commentImg"
  4812. @click="
  4813. commentOther(
  4814. w,
  4815. toolIndex,
  4816. wIndex,
  4817. null,
  4818. g.id
  4819. )
  4820. "
  4821. >
  4822. <img
  4823. src="../assets/icon/comment/comment.png"
  4824. alt=""
  4825. />
  4826. </div>
  4827. <div>{{ w.commentCount }}</div>
  4828. </div>
  4829. </div>
  4830. </div>
  4831. </div>
  4832. </div>
  4833. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  4834. </div>
  4835. </div>
  4836. <div
  4837. :id="'tool-' + toolIndex"
  4838. :style="{
  4839. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4840. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4841. }"
  4842. class="worksDetailBox"
  4843. v-if="
  4844. worksStudent.length &&
  4845. worksStudent[toolIndex].length > 0
  4846. "
  4847. >
  4848. <div
  4849. class="works"
  4850. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4851. :key="wIndex"
  4852. >
  4853. <div
  4854. class="workImg"
  4855. style="
  4856. border-radius: 15px;
  4857. box-shadow: 0px 0px 5px 5px #eee;
  4858. "
  4859. >
  4860. <!-- <img
  4861. src="../assets/icon/works/noImg.png"
  4862. @click="openTools(15, toolIndex, taskCount, w.works)"
  4863. alt=""
  4864. />-->
  4865. <div
  4866. class="answerBg"
  4867. style="border-radius: 15px 15px 0 0"
  4868. @click="commentOther(w, toolIndex, wIndex)"
  4869. >
  4870. <!-- <div>{{ w.sName }}</div> -->
  4871. <div class="answerContent">
  4872. {{ JSON.parse(w.works)[0].answer }}
  4873. </div>
  4874. <div
  4875. class="answerScore"
  4876. v-if="w.score"
  4877. @click.stop="openScore(w)"
  4878. :class="{
  4879. rightW:
  4880. w.userid == userid ||
  4881. tType == 1 ||
  4882. tType == 4,
  4883. }"
  4884. >
  4885. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4886. </div>
  4887. <div
  4888. class="answerScore"
  4889. @click.stop="openScore(w)"
  4890. v-else-if="courseDetail.userid == userid"
  4891. :class="{
  4892. rightW:
  4893. w.userid == userid ||
  4894. tType == 1 ||
  4895. tType == 4,
  4896. }"
  4897. >
  4898. {{ lang.ssMarkScore }}
  4899. </div>
  4900. <img
  4901. class="deleteImg"
  4902. src="../assets/deleteworks.png"
  4903. v-if="
  4904. w.userid == userid || tType == 1 || tType == 4
  4905. "
  4906. @click.stop="deleteWorks(w.wid)"
  4907. alt
  4908. />
  4909. </div>
  4910. <div class="comment">
  4911. <div class="worksName">
  4912. <div>{{ w.sName }}</div>
  4913. </div>
  4914. <div class="commentList">
  4915. <div
  4916. class="commentImg"
  4917. @click="
  4918. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4919. "
  4920. >
  4921. <img
  4922. :src="w.isLikes == true ? likes : noLikes"
  4923. alt=""
  4924. />
  4925. </div>
  4926. <div>{{ w.likesCount }}</div>
  4927. </div>
  4928. <div class="commentList" style="margin-right: 15px">
  4929. <div
  4930. class="commentImg"
  4931. @click="commentOther(w, toolIndex, wIndex)"
  4932. >
  4933. <img
  4934. src="../assets/icon/comment/comment.png"
  4935. alt=""
  4936. />
  4937. </div>
  4938. <div>{{ w.commentCount }}</div>
  4939. </div>
  4940. </div>
  4941. </div>
  4942. </div>
  4943. </div>
  4944. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4945. {{ lang.ssNotSubmitted }}
  4946. </div>
  4947. <div
  4948. class="noWorksS"
  4949. v-if="noWorksS && noWorksS[toolIndex].length"
  4950. >
  4951. <div
  4952. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4953. :key="sIndex"
  4954. class="noWorksName"
  4955. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4956. >
  4957. <el-tooltip effect="dark" :content="s.student" placement="top">
  4958. <span>{{ s.student }}</span>
  4959. </el-tooltip>
  4960. </div>
  4961. </div>
  4962. </div>
  4963. <div
  4964. v-if="
  4965. tType &&
  4966. ((tType == 2 && sIsOpen == true) ||
  4967. tType == 1 ||
  4968. tType == 4) &&
  4969. tool.tool.indexOf(1) != -1
  4970. "
  4971. class="worksBox"
  4972. >
  4973. <div
  4974. class="zuoyeYulan"
  4975. v-if="
  4976. (worksStudent.length &&
  4977. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4978. "
  4979. >
  4980. <div class="worksTop">
  4981. <div>{{ lang.ssHomeworkPreview }}</div>
  4982. <div
  4983. class="corOpen"
  4984. @click="contract(toolIndex)"
  4985. v-if="
  4986. (isCloseList[toolIndex].isCloseBoolean) &&
  4987. isCloseList[toolIndex].isClose == 0
  4988. "
  4989. >
  4990. {{ lang.ssFold }}
  4991. </div>
  4992. <div
  4993. class="corOpen"
  4994. @click="contract(toolIndex)"
  4995. v-if="isCloseList[toolIndex].isClose == 1"
  4996. >
  4997. {{ lang.ssExpand }}
  4998. </div>
  4999. </div>
  5000. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5001. </div>
  5002. <div
  5003. class="group_workBox"
  5004. v-for="(g, gindex) in courseGroup.group"
  5005. :key="gindex"
  5006. >
  5007. <div class="group_box">
  5008. <div class="group_title">
  5009. <el-tooltip
  5010. class="item"
  5011. effect="light"
  5012. :content="g.name"
  5013. placement="top"
  5014. >
  5015. <div class="group_name">{{ g.name }}</div>
  5016. </el-tooltip>
  5017. </div>
  5018. <div
  5019. class="group_work"
  5020. v-if="
  5021. g.works &&
  5022. g.works.length &&
  5023. g.works[toolIndex].length
  5024. "
  5025. >
  5026. <div
  5027. class="works"
  5028. style="
  5029. width: 200px;
  5030. height: 140px;
  5031. margin: 10px 10px 10px 0;
  5032. border-radius: 15px;
  5033. box-shadow: 0 0 6px 1px #dfdada;
  5034. "
  5035. v-for="(w, wIndex) in g.works[toolIndex]"
  5036. :key="wIndex"
  5037. :class="w.type == 1 ? 'isTypeOne' : ''"
  5038. >
  5039. <div class="workImg">
  5040. <img
  5041. :src="w.works"
  5042. @click="previewImg(w.works,w)"
  5043. alt
  5044. />
  5045. <div
  5046. class="answerScore"
  5047. v-if="w.score"
  5048. @click.stop="openScore(w)"
  5049. :class="{
  5050. rightW:
  5051. w.userid == userid ||
  5052. tType == 1 ||
  5053. tType == 4,
  5054. }"
  5055. >
  5056. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5057. </div>
  5058. <div
  5059. class="answerScore"
  5060. @click.stop="openScore(w)"
  5061. v-else-if="courseDetail.userid == userid"
  5062. :class="{
  5063. rightW:
  5064. w.userid == userid ||
  5065. tType == 1 ||
  5066. tType == 4,
  5067. }"
  5068. >
  5069. {{ lang.ssMarkScore }}
  5070. </div>
  5071. <img
  5072. class="deleteImg"
  5073. src="../assets/deleteworks.png"
  5074. v-if="
  5075. w.userid == userid || tType == 1 || tType == 4
  5076. "
  5077. @click.stop="deleteWorks(w.wid)"
  5078. alt
  5079. />
  5080. </div>
  5081. <div class="comment" style="min-width: 200px">
  5082. <div class="worksName">
  5083. <div>{{ w.sName }}</div>
  5084. </div>
  5085. <div class="commentList">
  5086. <div class="commentList">
  5087. <div
  5088. class="commentImg"
  5089. @click="
  5090. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5091. "
  5092. >
  5093. <img
  5094. :src="w.isLikes == true ? likes : noLikes"
  5095. alt=""
  5096. />
  5097. </div>
  5098. <div>{{ w.likesCount }}</div>
  5099. </div>
  5100. <div
  5101. class="commentList"
  5102. style="margin-right: 15px"
  5103. >
  5104. <div
  5105. class="commentImg"
  5106. @click="
  5107. commentOther(
  5108. w,
  5109. toolIndex,
  5110. wIndex,
  5111. null,
  5112. g.id
  5113. )
  5114. "
  5115. >
  5116. <img
  5117. src="../assets/icon/comment/comment.png"
  5118. alt=""
  5119. />
  5120. </div>
  5121. <div>{{ w.commentCount }}</div>
  5122. </div>
  5123. </div>
  5124. </div>
  5125. </div>
  5126. </div>
  5127. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  5128. </div>
  5129. </div>
  5130. <div
  5131. :id="'tool-' + toolIndex"
  5132. :style="{
  5133. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5134. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5135. }"
  5136. class="worksDetailBox"
  5137. v-if="
  5138. worksStudent.length &&
  5139. worksStudent[toolIndex].length > 0
  5140. "
  5141. >
  5142. <div
  5143. class="works"
  5144. style="
  5145. width: 200px;
  5146. height: 140px;
  5147. margin: 10px 10px 10px 0;
  5148. border-radius: 15px;
  5149. box-shadow: 0 0 6px 1px #dfdada;
  5150. "
  5151. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5152. :key="wIndex"
  5153. >
  5154. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5155. <div class="workImg">
  5156. <img
  5157. :src="w.works"
  5158. @click="previewImg(w.works,w)"
  5159. alt
  5160. />
  5161. <div
  5162. class="answerScore"
  5163. v-if="w.score"
  5164. @click.stop="openScore(w)"
  5165. :class="{
  5166. rightW:
  5167. w.userid == userid || tType == 1 || tType == 4,
  5168. }"
  5169. >
  5170. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5171. </div>
  5172. <div
  5173. class="answerScore"
  5174. @click.stop="openScore(w)"
  5175. v-else-if="courseDetail.userid == userid"
  5176. :class="{
  5177. rightW:
  5178. w.userid == userid || tType == 1 || tType == 4,
  5179. }"
  5180. >
  5181. {{ lang.ssMarkScore }}
  5182. </div>
  5183. <img
  5184. class="deleteImg"
  5185. src="../assets/deleteworks.png"
  5186. v-if="
  5187. w.userid == userid || tType == 1 || tType == 4
  5188. "
  5189. @click.stop="deleteWorks(w.wid)"
  5190. alt
  5191. />
  5192. </div>
  5193. <div class="comment" style="min-width: 200px">
  5194. <div class="worksName">
  5195. <div>{{ w.sName }}</div>
  5196. </div>
  5197. <div class="commentList">
  5198. <div class="commentList">
  5199. <div
  5200. class="commentImg"
  5201. @click="
  5202. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5203. "
  5204. >
  5205. <img
  5206. :src="w.isLikes == true ? likes : noLikes"
  5207. alt=""
  5208. />
  5209. </div>
  5210. <div>{{ w.likesCount }}</div>
  5211. </div>
  5212. <div class="commentList" style="margin-right: 15px">
  5213. <div
  5214. class="commentImg"
  5215. @click="commentOther(w, toolIndex, wIndex)"
  5216. >
  5217. <img
  5218. src="../assets/icon/comment/comment.png"
  5219. alt=""
  5220. />
  5221. </div>
  5222. <div>{{ w.commentCount }}</div>
  5223. </div>
  5224. </div>
  5225. </div>
  5226. </div>
  5227. </div>
  5228. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5229. {{ lang.ssNotSubmitted }}
  5230. </div>
  5231. <div
  5232. class="noWorksS"
  5233. v-if="noWorksS && noWorksS[toolIndex].length"
  5234. >
  5235. <div
  5236. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5237. :key="sIndex"
  5238. class="noWorksName"
  5239. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5240. >
  5241. <el-tooltip effect="dark" :content="s.student" placement="top">
  5242. <span>{{ s.student }}</span>
  5243. </el-tooltip>
  5244. </div>
  5245. </div>
  5246. </div>
  5247. <div
  5248. v-if="
  5249. tType &&
  5250. ((tType == 2 && sIsOpen == true) ||
  5251. tType == 1 ||
  5252. tType == 4) &&
  5253. tool.tool.indexOf(3) != -1
  5254. "
  5255. class="worksBox"
  5256. >
  5257. <div
  5258. class="zuoyeYulan"
  5259. v-if="
  5260. (worksStudent.length &&
  5261. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5262. "
  5263. >
  5264. <div class="worksTop">
  5265. <div>{{ lang.ssHomeworkPreview }}</div>
  5266. <div
  5267. class="corOpen"
  5268. @click="contract(toolIndex)"
  5269. v-if="
  5270. (isCloseList[toolIndex].isCloseBoolean) &&
  5271. isCloseList[toolIndex].isClose == 0
  5272. "
  5273. >
  5274. {{ lang.ssFold }}
  5275. </div>
  5276. <div
  5277. class="corOpen"
  5278. @click="contract(toolIndex)"
  5279. v-if="isCloseList[toolIndex].isClose == 1"
  5280. >
  5281. {{ lang.ssExpand }}
  5282. </div>
  5283. </div>
  5284. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5285. </div>
  5286. <div
  5287. class="group_workBox"
  5288. v-for="(g, gindex) in courseGroup.group"
  5289. :key="gindex"
  5290. >
  5291. <div class="group_box">
  5292. <div class="group_title">
  5293. <el-tooltip
  5294. class="item"
  5295. effect="light"
  5296. :content="g.name"
  5297. placement="top"
  5298. >
  5299. <div class="group_name">{{ g.name }}</div>
  5300. </el-tooltip>
  5301. </div>
  5302. <div
  5303. class="group_work"
  5304. v-if="
  5305. g.works &&
  5306. g.works.length &&
  5307. g.works[toolIndex].length
  5308. "
  5309. >
  5310. <div
  5311. class="works"
  5312. style="
  5313. width: 200px;
  5314. height: 140px;
  5315. margin: 10px 10px 10px 0;
  5316. border-radius: 15px;
  5317. box-shadow: 0 0 6px 1px #dfdada;
  5318. "
  5319. v-for="(w, wIndex) in g.works[toolIndex]"
  5320. :key="wIndex"
  5321. :class="w.type == 1 ? 'isTypeOne' : ''"
  5322. >
  5323. <div class="workImg">
  5324. <img
  5325. :src="w.works"
  5326. @click="previewImg(w.works,w)"
  5327. alt
  5328. />
  5329. <div
  5330. class="answerScore"
  5331. v-if="w.score"
  5332. @click.stop="openScore(w)"
  5333. :class="{
  5334. rightW:
  5335. w.userid == userid ||
  5336. tType == 1 ||
  5337. tType == 4,
  5338. }"
  5339. >
  5340. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5341. </div>
  5342. <div
  5343. class="answerScore"
  5344. @click.stop="openScore(w)"
  5345. v-else-if="courseDetail.userid == userid"
  5346. :class="{
  5347. rightW:
  5348. w.userid == userid ||
  5349. tType == 1 ||
  5350. tType == 4,
  5351. }"
  5352. >
  5353. {{ lang.ssMarkScore }}
  5354. </div>
  5355. <img
  5356. class="deleteImg"
  5357. src="../assets/deleteworks.png"
  5358. v-if="
  5359. w.userid == userid || tType == 1 || tType == 4
  5360. "
  5361. @click.stop="deleteWorks(w.wid)"
  5362. alt
  5363. />
  5364. </div>
  5365. <div class="comment" style="min-width: 200px">
  5366. <div class="worksName">
  5367. <div>{{ w.sName }}</div>
  5368. </div>
  5369. <div class="commentList">
  5370. <div class="commentList">
  5371. <div
  5372. class="commentImg"
  5373. @click="
  5374. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5375. "
  5376. >
  5377. <img
  5378. :src="w.isLikes == true ? likes : noLikes"
  5379. alt=""
  5380. />
  5381. </div>
  5382. <div>{{ w.likesCount }}</div>
  5383. </div>
  5384. <div
  5385. class="commentList"
  5386. style="margin-right: 15px"
  5387. >
  5388. <div
  5389. class="commentImg"
  5390. @click="
  5391. commentOther(
  5392. w,
  5393. toolIndex,
  5394. wIndex,
  5395. null,
  5396. g.id
  5397. )
  5398. "
  5399. >
  5400. <img
  5401. src="../assets/icon/comment/comment.png"
  5402. alt=""
  5403. />
  5404. </div>
  5405. <div>{{ w.commentCount }}</div>
  5406. </div>
  5407. </div>
  5408. </div>
  5409. </div>
  5410. </div>
  5411. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  5412. </div>
  5413. </div>
  5414. <div
  5415. :id="'tool-' + toolIndex"
  5416. :style="{
  5417. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5418. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5419. }"
  5420. class="worksDetailBox"
  5421. v-if="
  5422. worksStudent.length &&
  5423. worksStudent[toolIndex].length > 0
  5424. "
  5425. >
  5426. <div
  5427. class="works"
  5428. style="
  5429. width: 200px;
  5430. height: 140px;
  5431. margin: 10px 10px 10px 0;
  5432. border-radius: 15px;
  5433. box-shadow: 0 0 6px 1px #dfdada;
  5434. "
  5435. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5436. :key="wIndex"
  5437. >
  5438. <!-- @click="previewImg(w.works)" -->
  5439. <div class="workImg">
  5440. <img
  5441. :src="w.works"
  5442. @click="previewImg(w.works,w)"
  5443. alt
  5444. />
  5445. <div
  5446. class="answerScore"
  5447. v-if="w.score"
  5448. @click.stop="openScore(w)"
  5449. :class="{
  5450. rightW:
  5451. w.userid == userid || tType == 1 || tType == 4,
  5452. }"
  5453. >
  5454. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5455. </div>
  5456. <div
  5457. class="answerScore"
  5458. @click.stop="openScore(w)"
  5459. v-else-if="courseDetail.userid == userid"
  5460. :class="{
  5461. rightW:
  5462. w.userid == userid || tType == 1 || tType == 4,
  5463. }"
  5464. >
  5465. {{ lang.ssMarkScore }}
  5466. </div>
  5467. <img
  5468. class="deleteImg"
  5469. src="../assets/deleteworks.png"
  5470. v-if="
  5471. w.userid == userid || tType == 1 || tType == 4
  5472. "
  5473. @click.stop="deleteWorks(w.wid)"
  5474. alt
  5475. />
  5476. </div>
  5477. <div class="comment" style="min-width: 200px">
  5478. <div class="worksName">
  5479. <div>{{ w.sName }}</div>
  5480. </div>
  5481. <div class="commentList">
  5482. <div class="commentList">
  5483. <div
  5484. class="commentImg"
  5485. @click="
  5486. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5487. "
  5488. >
  5489. <img
  5490. :src="w.isLikes == true ? likes : noLikes"
  5491. alt=""
  5492. />
  5493. </div>
  5494. <div>{{ w.likesCount }}</div>
  5495. </div>
  5496. <div class="commentList" style="margin-right: 15px">
  5497. <div
  5498. class="commentImg"
  5499. @click="commentOther(w, toolIndex, wIndex)"
  5500. >
  5501. <img
  5502. src="../assets/icon/comment/comment.png"
  5503. alt=""
  5504. />
  5505. </div>
  5506. <div>{{ w.commentCount }}</div>
  5507. </div>
  5508. </div>
  5509. </div>
  5510. </div>
  5511. </div>
  5512. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5513. {{ lang.ssNotSubmitted }}
  5514. </div>
  5515. <div
  5516. class="noWorksS"
  5517. v-if="noWorksS && noWorksS[toolIndex].length"
  5518. >
  5519. <div
  5520. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5521. :key="sIndex"
  5522. class="noWorksName"
  5523. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5524. >
  5525. <el-tooltip effect="dark" :content="s.student" placement="top">
  5526. <span>{{ s.student }}</span>
  5527. </el-tooltip>
  5528. </div>
  5529. </div>
  5530. </div>
  5531. <div
  5532. v-if="
  5533. tType &&
  5534. ((tType == 2 && sIsOpen == true) ||
  5535. tType == 1 ||
  5536. tType == 4) &&
  5537. tool.tool.indexOf(6) != -1
  5538. "
  5539. class="worksBox"
  5540. >
  5541. <div
  5542. class="zuoyeYulan"
  5543. v-if="
  5544. (worksStudent.length &&
  5545. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5546. "
  5547. >
  5548. <div class="worksTop">
  5549. <div>{{ lang.ssHomeworkPreview }}</div>
  5550. <div
  5551. class="corOpen"
  5552. @click="contract(toolIndex)"
  5553. v-if="
  5554. (isCloseList[toolIndex].isCloseBoolean) &&
  5555. isCloseList[toolIndex].isClose == 0
  5556. "
  5557. >
  5558. {{ lang.ssFold }}
  5559. </div>
  5560. <div
  5561. class="corOpen"
  5562. @click="contract(toolIndex)"
  5563. v-if="isCloseList[toolIndex].isClose == 1"
  5564. >
  5565. {{ lang.ssExpand }}
  5566. </div>
  5567. </div>
  5568. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5569. </div>
  5570. <div
  5571. class="group_workBox"
  5572. v-for="(g, gindex) in courseGroup.group"
  5573. :key="gindex"
  5574. >
  5575. <div class="group_box">
  5576. <div class="group_title">
  5577. <el-tooltip
  5578. class="item"
  5579. effect="light"
  5580. :content="g.name"
  5581. placement="top"
  5582. >
  5583. <div class="group_name">{{ g.name }}</div>
  5584. </el-tooltip>
  5585. </div>
  5586. <div
  5587. class="group_work"
  5588. v-if="
  5589. g.works &&
  5590. g.works.length &&
  5591. g.works[toolIndex].length
  5592. "
  5593. >
  5594. <div
  5595. class="works"
  5596. style="
  5597. width: 200px;
  5598. height: 140px;
  5599. margin: 10px 10px 10px 0;
  5600. border-radius: 15px;
  5601. box-shadow: 0 0 6px 1px #dfdada;
  5602. "
  5603. v-for="(w, wIndex) in g.works[toolIndex]"
  5604. :key="wIndex"
  5605. :class="w.type == 1 ? 'isTypeOne' : ''"
  5606. >
  5607. <div class="workImg">
  5608. <img
  5609. :src="w.works"
  5610. @click="previewImg(w.works,w)"
  5611. alt
  5612. />
  5613. <div
  5614. class="answerScore"
  5615. v-if="w.score"
  5616. @click.stop="openScore(w)"
  5617. :class="{
  5618. rightW:
  5619. w.userid == userid ||
  5620. tType == 1 ||
  5621. tType == 4,
  5622. }"
  5623. >
  5624. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5625. </div>
  5626. <div
  5627. class="answerScore"
  5628. @click.stop="openScore(w)"
  5629. v-else-if="courseDetail.userid == userid"
  5630. :class="{
  5631. rightW:
  5632. w.userid == userid ||
  5633. tType == 1 ||
  5634. tType == 4,
  5635. }"
  5636. >
  5637. {{ lang.ssMarkScore }}
  5638. </div>
  5639. <img
  5640. class="deleteImg"
  5641. src="../assets/deleteworks.png"
  5642. v-if="
  5643. w.userid == userid || tType == 1 || tType == 4
  5644. "
  5645. @click.stop="deleteWorks(w.wid)"
  5646. alt
  5647. />
  5648. </div>
  5649. <div class="comment" style="min-width: 200px">
  5650. <div class="worksName">
  5651. <div>{{ w.sName }}</div>
  5652. </div>
  5653. <div class="commentList">
  5654. <div class="commentList">
  5655. <div
  5656. class="commentImg"
  5657. @click="
  5658. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5659. "
  5660. >
  5661. <img
  5662. :src="w.isLikes == true ? likes : noLikes"
  5663. alt=""
  5664. />
  5665. </div>
  5666. <div>{{ w.likesCount }}</div>
  5667. </div>
  5668. <div
  5669. class="commentList"
  5670. style="margin-right: 15px"
  5671. >
  5672. <div
  5673. class="commentImg"
  5674. @click="
  5675. commentOther(
  5676. w,
  5677. toolIndex,
  5678. wIndex,
  5679. null,
  5680. g.id
  5681. )
  5682. "
  5683. >
  5684. <img
  5685. src="../assets/icon/comment/comment.png"
  5686. alt=""
  5687. />
  5688. </div>
  5689. <div>{{ w.commentCount }}</div>
  5690. </div>
  5691. </div>
  5692. </div>
  5693. </div>
  5694. </div>
  5695. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  5696. </div>
  5697. </div>
  5698. <div
  5699. :id="'tool-' + toolIndex"
  5700. :style="{
  5701. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5702. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5703. }"
  5704. class="worksDetailBox"
  5705. v-if="
  5706. worksStudent.length &&
  5707. worksStudent[toolIndex].length > 0
  5708. "
  5709. >
  5710. <div
  5711. class="works"
  5712. style="
  5713. width: 200px;
  5714. height: 140px;
  5715. margin: 10px 10px 10px 0;
  5716. border-radius: 15px;
  5717. box-shadow: 0 0 6px 1px #dfdada;
  5718. "
  5719. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5720. :key="wIndex"
  5721. >
  5722. <!-- @click="previewImg(w.works)" -->
  5723. <div class="workImg">
  5724. <img
  5725. :src="w.works"
  5726. @click="previewImg(w.works,w)"
  5727. alt
  5728. />
  5729. <div
  5730. class="answerScore"
  5731. v-if="w.score"
  5732. @click.stop="openScore(w)"
  5733. :class="{
  5734. rightW:
  5735. w.userid == userid || tType == 1 || tType == 4,
  5736. }"
  5737. >
  5738. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5739. </div>
  5740. <div
  5741. class="answerScore"
  5742. @click.stop="openScore(w)"
  5743. v-else-if="courseDetail.userid == userid"
  5744. :class="{
  5745. rightW:
  5746. w.userid == userid || tType == 1 || tType == 4,
  5747. }"
  5748. >
  5749. {{ lang.ssMarkScore }}
  5750. </div>
  5751. <img
  5752. class="deleteImg"
  5753. src="../assets/deleteworks.png"
  5754. v-if="
  5755. w.userid == userid || tType == 1 || tType == 4
  5756. "
  5757. @click.stop="deleteWorks(w.wid)"
  5758. alt
  5759. />
  5760. </div>
  5761. <div class="comment" style="min-width: 200px">
  5762. <div class="worksName">
  5763. <div>{{ w.sName }}</div>
  5764. </div>
  5765. <div class="commentList">
  5766. <div class="commentList">
  5767. <div
  5768. class="commentImg"
  5769. @click="
  5770. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5771. "
  5772. >
  5773. <img
  5774. :src="w.isLikes == true ? likes : noLikes"
  5775. alt=""
  5776. />
  5777. </div>
  5778. <div>{{ w.likesCount }}</div>
  5779. </div>
  5780. <div class="commentList" style="margin-right: 15px">
  5781. <div
  5782. class="commentImg"
  5783. @click="commentOther(w, toolIndex, wIndex)"
  5784. >
  5785. <img
  5786. src="../assets/icon/comment/comment.png"
  5787. alt=""
  5788. />
  5789. </div>
  5790. <div>{{ w.commentCount }}</div>
  5791. </div>
  5792. </div>
  5793. </div>
  5794. </div>
  5795. </div>
  5796. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5797. {{ lang.ssNotSubmitted }}
  5798. </div>
  5799. <div
  5800. class="noWorksS"
  5801. v-if="noWorksS && noWorksS[toolIndex].length"
  5802. >
  5803. <div
  5804. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5805. :key="sIndex"
  5806. class="noWorksName"
  5807. >
  5808. <el-tooltip effect="dark" :content="s.student" placement="top">
  5809. <span>{{ s.student }}</span>
  5810. </el-tooltip>
  5811. </div>
  5812. </div>
  5813. </div>
  5814. <div
  5815. v-if="
  5816. tType &&
  5817. ((tType == 2 && sIsOpen == true) ||
  5818. tType == 1 ||
  5819. tType == 4) &&
  5820. tool.tool.indexOf(7) != -1
  5821. "
  5822. class="worksBox"
  5823. >
  5824. <div
  5825. class="zuoyeYulan"
  5826. v-if="
  5827. (worksStudent.length &&
  5828. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5829. "
  5830. >
  5831. <div class="worksTop">
  5832. <div>{{ lang.ssHomeworkPreview }}</div>
  5833. <div
  5834. class="corOpen"
  5835. @click="contract(toolIndex)"
  5836. v-if="
  5837. (isCloseList[toolIndex].isCloseBoolean) &&
  5838. isCloseList[toolIndex].isClose == 0
  5839. "
  5840. >
  5841. {{ lang.ssFold }}
  5842. </div>
  5843. <div
  5844. class="corOpen"
  5845. @click="contract(toolIndex)"
  5846. v-if="isCloseList[toolIndex].isClose == 1"
  5847. >
  5848. {{ lang.ssExpand }}
  5849. </div>
  5850. </div>
  5851. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5852. </div>
  5853. <div
  5854. class="group_workBox"
  5855. v-for="(g, gindex) in courseGroup.group"
  5856. :key="gindex"
  5857. >
  5858. <div class="group_box">
  5859. <div class="group_title">
  5860. <el-tooltip
  5861. class="item"
  5862. effect="light"
  5863. :content="g.name"
  5864. placement="top"
  5865. >
  5866. <div class="group_name">{{ g.name }}</div>
  5867. </el-tooltip>
  5868. </div>
  5869. <div
  5870. class="group_work"
  5871. v-if="
  5872. g.works &&
  5873. g.works.length &&
  5874. g.works[toolIndex].length
  5875. "
  5876. >
  5877. <div
  5878. class="works"
  5879. style="
  5880. width: 200px;
  5881. height: 140px;
  5882. margin: 10px 10px 10px 0;
  5883. border-radius: 15px;
  5884. box-shadow: 0 0 6px 1px #dfdada;
  5885. "
  5886. v-for="(w, wIndex) in g.works[toolIndex]"
  5887. :key="wIndex"
  5888. :class="w.type == 1 ? 'isTypeOne' : ''"
  5889. >
  5890. <div class="workImg">
  5891. <img
  5892. :src="w.works"
  5893. @click="previewImg(w.works,w)"
  5894. alt
  5895. />
  5896. <div
  5897. class="answerScore"
  5898. v-if="w.score"
  5899. @click.stop="openScore(w)"
  5900. :class="{
  5901. rightW:
  5902. w.userid == userid ||
  5903. tType == 1 ||
  5904. tType == 4,
  5905. }"
  5906. >
  5907. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5908. </div>
  5909. <div
  5910. class="answerScore"
  5911. @click.stop="openScore(w)"
  5912. v-else-if="courseDetail.userid == userid"
  5913. :class="{
  5914. rightW:
  5915. w.userid == userid ||
  5916. tType == 1 ||
  5917. tType == 4,
  5918. }"
  5919. >
  5920. {{ lang.ssMarkScore }}
  5921. </div>
  5922. <img
  5923. class="deleteImg"
  5924. src="../assets/deleteworks.png"
  5925. v-if="
  5926. w.userid == userid || tType == 1 || tType == 4
  5927. "
  5928. @click.stop="deleteWorks(w.wid)"
  5929. alt
  5930. />
  5931. </div>
  5932. <div class="comment" style="min-width: 200px">
  5933. <div class="worksName">
  5934. <div>{{ w.sName }}</div>
  5935. </div>
  5936. <div class="commentList">
  5937. <div class="commentList">
  5938. <div
  5939. class="commentImg"
  5940. @click="
  5941. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5942. "
  5943. >
  5944. <img
  5945. :src="w.isLikes == true ? likes : noLikes"
  5946. alt=""
  5947. />
  5948. </div>
  5949. <div>{{ w.likesCount }}</div>
  5950. </div>
  5951. <div
  5952. class="commentList"
  5953. style="margin-right: 15px"
  5954. >
  5955. <div
  5956. class="commentImg"
  5957. @click="
  5958. commentOther(
  5959. w,
  5960. toolIndex,
  5961. wIndex,
  5962. null,
  5963. g.id
  5964. )
  5965. "
  5966. >
  5967. <img
  5968. src="../assets/icon/comment/comment.png"
  5969. alt=""
  5970. />
  5971. </div>
  5972. <div>{{ w.commentCount }}</div>
  5973. </div>
  5974. </div>
  5975. </div>
  5976. </div>
  5977. </div>
  5978. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  5979. </div>
  5980. </div>
  5981. <div
  5982. :id="'tool-' + toolIndex"
  5983. :style="{
  5984. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5985. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5986. }"
  5987. class="worksDetailBox"
  5988. v-if="
  5989. worksStudent.length &&
  5990. worksStudent[toolIndex].length > 0
  5991. "
  5992. >
  5993. <div
  5994. class="works"
  5995. style="
  5996. width: 200px;
  5997. height: 140px;
  5998. margin: 10px 10px 10px 0;
  5999. border-radius: 15px;
  6000. box-shadow: 0 0 6px 1px #dfdada;
  6001. "
  6002. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6003. :key="wIndex"
  6004. >
  6005. <!-- @click="previewImg(w.works)" -->
  6006. <div class="workImg">
  6007. <img
  6008. :src="w.works"
  6009. @click="previewImg(w.works,w)"
  6010. alt
  6011. />
  6012. <div
  6013. class="answerScore"
  6014. v-if="w.score"
  6015. @click.stop="openScore(w)"
  6016. :class="{
  6017. rightW:
  6018. w.userid == userid || tType == 1 || tType == 4,
  6019. }"
  6020. >
  6021. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  6022. </div>
  6023. <div
  6024. class="answerScore"
  6025. @click.stop="openScore(w)"
  6026. v-else-if="courseDetail.userid == userid"
  6027. :class="{
  6028. rightW:
  6029. w.userid == userid || tType == 1 || tType == 4,
  6030. }"
  6031. >
  6032. {{ lang.ssMarkScore }}
  6033. </div>
  6034. <img
  6035. class="deleteImg"
  6036. src="../assets/deleteworks.png"
  6037. v-if="
  6038. w.userid == userid || tType == 1 || tType == 4
  6039. "
  6040. @click.stop="deleteWorks(w.wid)"
  6041. alt
  6042. />
  6043. </div>
  6044. <div class="comment" style="min-width: 200px">
  6045. <div class="worksName">
  6046. <div>{{ w.sName }}</div>
  6047. </div>
  6048. <div class="commentList">
  6049. <div class="commentList">
  6050. <div
  6051. class="commentImg"
  6052. @click="
  6053. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6054. "
  6055. >
  6056. <img
  6057. :src="w.isLikes == true ? likes : noLikes"
  6058. alt=""
  6059. />
  6060. </div>
  6061. <div>{{ w.likesCount }}</div>
  6062. </div>
  6063. <div class="commentList" style="margin-right: 15px">
  6064. <div
  6065. class="commentImg"
  6066. @click="commentOther(w, toolIndex, wIndex)"
  6067. >
  6068. <img
  6069. src="../assets/icon/comment/comment.png"
  6070. alt=""
  6071. />
  6072. </div>
  6073. <div>{{ w.commentCount }}</div>
  6074. </div>
  6075. </div>
  6076. </div>
  6077. </div>
  6078. </div>
  6079. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6080. {{ lang.ssNotSubmitted }}
  6081. </div>
  6082. <div
  6083. class="noWorksS"
  6084. v-if="noWorksS && noWorksS[toolIndex].length"
  6085. >
  6086. <div
  6087. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6088. :key="sIndex"
  6089. class="noWorksName"
  6090. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6091. >
  6092. <el-tooltip effect="dark" :content="s.student" placement="top">
  6093. <span>{{ s.student }}</span>
  6094. </el-tooltip>
  6095. </div>
  6096. </div>
  6097. </div>
  6098. <div
  6099. v-if="
  6100. tType &&
  6101. ((tType == 2 && sIsOpen == true) ||
  6102. tType == 1 ||
  6103. tType == 4) &&
  6104. tool.tool.indexOf(26) != -1
  6105. "
  6106. class="worksBox"
  6107. >
  6108. <div
  6109. class="zuoyeYulan"
  6110. v-if="
  6111. worksStudent.length &&
  6112. worksStudent[toolIndex].length > 0
  6113. "
  6114. >
  6115. <div class="worksTop">
  6116. <div>{{ lang.ssHomeworkPreview }}</div>
  6117. <div
  6118. class="corOpen"
  6119. @click="contract(toolIndex)"
  6120. v-if="
  6121. (isCloseList[toolIndex].isCloseBoolean) &&
  6122. isCloseList[toolIndex].isClose == 0
  6123. "
  6124. >
  6125. {{ lang.ssFold }}
  6126. </div>
  6127. <div
  6128. class="corOpen"
  6129. @click="contract(toolIndex)"
  6130. v-if="isCloseList[toolIndex].isClose == 1"
  6131. >
  6132. {{ lang.ssExpand }}
  6133. </div>
  6134. </div>
  6135. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6136. </div>
  6137. <div
  6138. :id="'tool-' + toolIndex"
  6139. :style="{
  6140. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6141. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6142. }"
  6143. class="worksDetailBox"
  6144. v-if="
  6145. worksStudent.length &&
  6146. worksStudent[toolIndex].length > 0
  6147. "
  6148. >
  6149. <div
  6150. class="works"
  6151. style="width: 240px; height: 140px; overflow: hidden"
  6152. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6153. :key="wIndex"
  6154. :class="w.type == 1 ? 'isTypeOne' : ''"
  6155. >
  6156. <div class="workImg" v-if="w.type == 0">
  6157. <img
  6158. :src="w.works"
  6159. @click="previewImg(w.works,w)"
  6160. alt
  6161. />
  6162. <img
  6163. class="deleteImg"
  6164. src="../assets/deleteworks.png"
  6165. v-if="
  6166. w.userid == userid || tType == 1 || tType == 4
  6167. "
  6168. @click.stop="deleteWorks(w.wid)"
  6169. alt
  6170. />
  6171. </div>
  6172. <div class="workImg" v-if="w.type == 1">
  6173. <img :src="word" @click="openFile(w.works,w)" alt />
  6174. <img
  6175. class="deleteImg"
  6176. src="../assets/deleteworks.png"
  6177. v-if="
  6178. w.userid == userid || tType == 1 || tType == 4
  6179. "
  6180. @click.stop="deleteWorks(w.wid)"
  6181. alt
  6182. />
  6183. </div>
  6184. <div class="worksName">
  6185. <div>{{ w.sName }}</div>
  6186. </div>
  6187. </div>
  6188. </div>
  6189. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6190. {{ lang.ssNotSubmitted }}
  6191. </div>
  6192. <div
  6193. class="noWorksS"
  6194. v-if="noWorksS && noWorksS[toolIndex].length"
  6195. >
  6196. <div
  6197. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6198. :key="sIndex"
  6199. class="noWorksName"
  6200. >
  6201. <el-tooltip effect="dark" :content="s.student" placement="top">
  6202. <span>{{ s.student }}</span>
  6203. </el-tooltip>
  6204. </div>
  6205. </div>
  6206. </div>
  6207. <div
  6208. v-if="
  6209. tType &&
  6210. ((tType == 2 && sIsOpen == true) ||
  6211. tType == 1 ||
  6212. tType == 4) &&
  6213. tool.tool.indexOf(40) != -1
  6214. "
  6215. class="worksBox"
  6216. >
  6217. <div
  6218. class="zuoyeYulan"
  6219. v-if="
  6220. worksStudent.length &&
  6221. worksStudent[toolIndex].length > 0
  6222. "
  6223. >
  6224. <div class="worksTop">
  6225. <div>{{ lang.ssHomeworkPreview }}</div>
  6226. <div
  6227. class="corOpen"
  6228. @click="contract(toolIndex)"
  6229. v-if="
  6230. (isCloseList[toolIndex].isCloseBoolean) &&
  6231. isCloseList[toolIndex].isClose == 0
  6232. "
  6233. >
  6234. {{ lang.ssFold }}
  6235. </div>
  6236. <div
  6237. class="corOpen"
  6238. @click="contract(toolIndex)"
  6239. v-if="isCloseList[toolIndex].isClose == 1"
  6240. >
  6241. {{ lang.ssExpand }}
  6242. </div>
  6243. </div>
  6244. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6245. </div>
  6246. <div
  6247. :id="'tool-' + toolIndex"
  6248. :style="{
  6249. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6250. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6251. }"
  6252. class="worksDetailBox"
  6253. v-if="
  6254. worksStudent.length &&
  6255. worksStudent[toolIndex].length > 0
  6256. "
  6257. >
  6258. <div
  6259. class="works"
  6260. style="
  6261. width: 200px;
  6262. height: 140px;
  6263. margin: 10px 10px 10px 0;
  6264. border-radius: 15px;
  6265. box-shadow: 0 0 6px 1px #dfdada;
  6266. "
  6267. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6268. :key="wIndex"
  6269. :class="w.type == 1 ? 'isTypeOne' : ''"
  6270. >
  6271. <div class="workImg">
  6272. <img
  6273. src="../assets/icon/works/noImg.png"
  6274. @click="openPj(w.works, toolIndex)"
  6275. alt
  6276. />
  6277. <img
  6278. class="deleteImg"
  6279. src="../assets/deleteworks.png"
  6280. v-if="
  6281. w.userid == userid || tType == 1 || tType == 4
  6282. "
  6283. @click.stop="deleteWorks(w.wid)"
  6284. alt
  6285. />
  6286. </div>
  6287. <div class="comment" style="min-width: 200px">
  6288. <div class="worksName">
  6289. <div>{{ w.sName }}</div>
  6290. </div>
  6291. <div class="commentList">
  6292. <div class="commentList">
  6293. <div
  6294. class="commentImg"
  6295. @click="
  6296. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6297. "
  6298. >
  6299. <img
  6300. :src="w.isLikes == true ? likes : noLikes"
  6301. alt=""
  6302. />
  6303. </div>
  6304. <div>{{ w.likesCount }}</div>
  6305. </div>
  6306. <div class="commentList" style="margin-right: 15px">
  6307. <div
  6308. class="commentImg"
  6309. @click="commentOther(w, toolIndex, wIndex)"
  6310. >
  6311. <img
  6312. src="../assets/icon/comment/comment.png"
  6313. alt=""
  6314. />
  6315. </div>
  6316. <div>{{ w.commentCount }}</div>
  6317. </div>
  6318. </div>
  6319. </div>
  6320. </div>
  6321. </div>
  6322. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6323. {{ lang.ssNotSubmitted }}
  6324. </div>
  6325. <div
  6326. class="noWorksS"
  6327. v-if="noWorksS && noWorksS[toolIndex].length"
  6328. >
  6329. <div
  6330. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6331. :key="sIndex"
  6332. class="noWorksName"
  6333. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6334. >
  6335. <el-tooltip effect="dark" :content="s.student" placement="top">
  6336. <span>{{ s.student }}</span>
  6337. </el-tooltip>
  6338. </div>
  6339. </div>
  6340. </div>
  6341. <div
  6342. v-if="
  6343. tType &&
  6344. tType == 2 &&
  6345. !sIsOpen &&
  6346. tool.tool.indexOf(40) != -1
  6347. "
  6348. class="worksBox"
  6349. >
  6350. <div
  6351. class="zuoyeYulan"
  6352. v-if="workStudent[toolIndex].length > 0"
  6353. >
  6354. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6355. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6356. </div>
  6357. <div
  6358. class="worksDetailBox"
  6359. v-if="workStudent[toolIndex].length > 0"
  6360. >
  6361. <div
  6362. class="works"
  6363. style="
  6364. width: 200px;
  6365. height: 140px;
  6366. margin: 10px 10px 10px 0;
  6367. "
  6368. v-for="(w, wIndex) in workStudent[toolIndex]"
  6369. :key="wIndex"
  6370. >
  6371. <div class="workImg">
  6372. <img
  6373. src="../assets/icon/works/noImg.png"
  6374. @click="openPj(w.works, toolIndex)"
  6375. alt
  6376. />
  6377. <img
  6378. class="deleteImg"
  6379. src="../assets/deleteworks.png"
  6380. v-if="
  6381. w.userid == userid || tType == 1 || tType == 4
  6382. "
  6383. @click.stop="deleteWorks(w.wid)"
  6384. alt
  6385. />
  6386. </div>
  6387. <div class="worksName">
  6388. <div>{{ w.sName }}</div>
  6389. </div>
  6390. </div>
  6391. </div>
  6392. </div>
  6393. <div
  6394. v-if="
  6395. tType &&
  6396. ((tType == 2 && sIsOpen == true) ||
  6397. tType == 1 ||
  6398. tType == 4) &&
  6399. tool.tool.indexOf(41) != -1
  6400. "
  6401. >
  6402. <AnswerData2
  6403. v-if="
  6404. worksStudent.length &&
  6405. worksStudent[toolIndex].length > 0
  6406. "
  6407. :problemJson="tool.selectJson.answer"
  6408. :people="worksStudent[toolIndex]"
  6409. ></AnswerData2>
  6410. </div>
  6411. <div
  6412. v-if="
  6413. tType &&
  6414. ((tType == 2 && sIsOpen == true) ||
  6415. tType == 1 ||
  6416. tType == 4) &&
  6417. tool.tool.indexOf(41) != -1
  6418. "
  6419. class="worksBox"
  6420. >
  6421. <div
  6422. class="zuoyeYulan"
  6423. v-if="
  6424. worksStudent.length &&
  6425. worksStudent[toolIndex].length > 0
  6426. "
  6427. >
  6428. <div class="worksTop">
  6429. <div>{{ lang.ssHomeworkPreview }}</div>
  6430. <div
  6431. class="corOpen"
  6432. @click="contract(toolIndex)"
  6433. v-if="
  6434. (isCloseList[toolIndex].isCloseBoolean) &&
  6435. isCloseList[toolIndex].isClose == 0
  6436. "
  6437. >
  6438. {{ lang.ssFold }}
  6439. </div>
  6440. <div
  6441. class="corOpen"
  6442. @click="contract(toolIndex)"
  6443. v-if="isCloseList[toolIndex].isClose == 1"
  6444. >
  6445. {{ lang.ssExpand }}
  6446. </div>
  6447. </div>
  6448. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6449. </div>
  6450. <div
  6451. :id="'tool-' + toolIndex"
  6452. :style="{
  6453. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6454. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6455. }"
  6456. class="worksDetailBox"
  6457. v-if="
  6458. worksStudent.length &&
  6459. worksStudent[toolIndex].length > 0
  6460. "
  6461. >
  6462. <div
  6463. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6464. :key="wIndex"
  6465. class="isWorksName2"
  6466. @click="openXz(w, toolIndex)"
  6467. >
  6468. {{ w.sName }}
  6469. <img
  6470. class="deleteImg deleteImg2"
  6471. src="../assets/deleteworks.png"
  6472. v-if="w.userid == userid || tType == 1 || tType == 4"
  6473. @click.stop="deleteWorks(w.wid)"
  6474. alt
  6475. />
  6476. </div>
  6477. <!-- <div
  6478. class="works"
  6479. style="
  6480. width: 200px;
  6481. height: 140px;
  6482. margin: 10px 10px 10px 0;
  6483. border-radius: 15px;
  6484. box-shadow: 0 0 6px 1px #dfdada;
  6485. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6486. :class="w.type == 5 ? 'isTypeOne' : ''">
  6487. <div class="workImg">
  6488. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6489. </div>
  6490. <div class="worksName">
  6491. <div>{{ w.sName }}</div>
  6492. </div>
  6493. </div> -->
  6494. </div>
  6495. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6496. {{ lang.ssNotSubmitted }}
  6497. </div>
  6498. <div
  6499. class="noWorksS"
  6500. v-if="noWorksS && noWorksS[toolIndex].length"
  6501. >
  6502. <div
  6503. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6504. :key="sIndex"
  6505. class="noWorksName"
  6506. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6507. >
  6508. <el-tooltip effect="dark" :content="s.student" placement="top">
  6509. <span>{{ s.student }}</span>
  6510. </el-tooltip>
  6511. </div>
  6512. </div>
  6513. </div>
  6514. <div
  6515. v-if="
  6516. tType &&
  6517. tType == 2 &&
  6518. !sIsOpen &&
  6519. tool.tool.indexOf(41) != -1
  6520. "
  6521. class="worksBox"
  6522. >
  6523. <div
  6524. class="zuoyeYulan"
  6525. v-if="workStudent[toolIndex].length > 0"
  6526. >
  6527. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6528. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6529. </div>
  6530. <div
  6531. class="worksDetailBox"
  6532. v-if="workStudent[toolIndex].length > 0"
  6533. >
  6534. <div
  6535. class="works"
  6536. style="
  6537. width: 200px;
  6538. height: 140px;
  6539. margin: 10px 10px 10px 0;
  6540. "
  6541. v-for="(w, wIndex) in workStudent[toolIndex]"
  6542. :key="wIndex"
  6543. >
  6544. <div class="workImg">
  6545. <img
  6546. src="../assets/icon/works/noImg.png"
  6547. @click="openXz(w, toolIndex)"
  6548. alt
  6549. />
  6550. <img
  6551. class="deleteImg"
  6552. src="../assets/deleteworks.png"
  6553. v-if="
  6554. w.userid == userid || tType == 1 || tType == 4
  6555. "
  6556. @click.stop="deleteWorks(w.wid)"
  6557. alt
  6558. />
  6559. </div>
  6560. <div class="worksName">
  6561. <div>{{ w.sName }}</div>
  6562. </div>
  6563. </div>
  6564. </div>
  6565. </div>
  6566. <div v-if="false" class="xuan_right_box">
  6567. <div
  6568. class="tool_right_box"
  6569. v-for="(item, index) in tool.sentenceList"
  6570. :key="index"
  6571. >
  6572. <div>
  6573. <span
  6574. style="word-break: break-all; white-space: normal"
  6575. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6576. >
  6577. </div>
  6578. <div class="right_box_xuan">
  6579. <span>{{ lang.ssCorrectRate }}</span>
  6580. <span>{{
  6581. (checkJson[toolIndex][index].right
  6582. ? checkJson[toolIndex][index].right
  6583. : 0) + "%"
  6584. }}</span>
  6585. </div>
  6586. <div class="right_box_xuan">
  6587. <span>{{ lang.ssRightPerson }}</span>
  6588. <span>{{
  6589. checkJson[toolIndex][index].rightPerson.length
  6590. }}</span>
  6591. </div>
  6592. </div>
  6593. </div>
  6594. <div
  6595. v-if="
  6596. tType &&
  6597. ((tType == 2 && sIsOpen == true) ||
  6598. tType == 1 ||
  6599. tType == 4) &&
  6600. tool.tool.indexOf(47) != -1
  6601. "
  6602. >
  6603. <!-- <AnswerData
  6604. v-if="
  6605. checkJson[toolIndex].length &&
  6606. (tool.sentenceList || tool.sentenceList.length > 0)
  6607. "
  6608. :people="checkJson[toolIndex]"
  6609. ></AnswerData> -->
  6610. <sortToolWorkShow v-if="
  6611. worksStudent[toolIndex].length
  6612. "
  6613. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  6614. </div>
  6615. <div
  6616. v-if="
  6617. tType &&
  6618. tType == 2 &&
  6619. !sIsOpen &&
  6620. tool.tool.indexOf(47) != -1
  6621. "
  6622. class="worksBox"
  6623. >
  6624. <div
  6625. class="zuoyeYulan"
  6626. v-if="workStudent[toolIndex].length > 0"
  6627. >
  6628. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6629. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6630. </div>
  6631. <div
  6632. class="worksDetailBox"
  6633. v-if="workStudent[toolIndex].length > 0"
  6634. >
  6635. <div
  6636. class="works"
  6637. style="
  6638. width: 200px;
  6639. height: 140px;
  6640. margin: 10px 10px 10px 0;
  6641. "
  6642. v-for="(w, wIndex) in workStudent[toolIndex]"
  6643. :key="wIndex"
  6644. >
  6645. <!-- @click="openXz(w, toolIndex)" -->
  6646. <div class="workImg" @click="openSen(w, toolIndex)">
  6647. <img src="../assets/icon/works/noImg.png" alt />
  6648. <img
  6649. class="deleteImg"
  6650. src="../assets/deleteworks.png"
  6651. v-if="
  6652. w.userid == userid || tType == 1 || tType == 4
  6653. "
  6654. @click.stop="deleteWorks(w.wid)"
  6655. alt
  6656. />
  6657. </div>
  6658. <div class="worksName">
  6659. <div>
  6660. {{ w.sName }}
  6661. </div>
  6662. </div>
  6663. </div>
  6664. </div>
  6665. </div>
  6666. <div
  6667. v-if="
  6668. tType &&
  6669. ((tType == 2 && sIsOpen == true) ||
  6670. tType == 1 ||
  6671. tType == 4) &&
  6672. tool.tool.indexOf(47) != -1
  6673. "
  6674. class="worksBox"
  6675. >
  6676. <div
  6677. class="zuoyeYulan"
  6678. v-if="
  6679. worksStudent.length &&
  6680. worksStudent[toolIndex].length > 0
  6681. "
  6682. >
  6683. <div class="worksTop">
  6684. <div>{{ lang.ssHomeworkPreview }}</div>
  6685. <div
  6686. class="corOpen"
  6687. @click="contract(toolIndex)"
  6688. v-if="
  6689. (isCloseList[toolIndex].isCloseBoolean) &&
  6690. isCloseList[toolIndex].isClose == 0
  6691. "
  6692. >
  6693. {{ lang.ssFold }}
  6694. </div>
  6695. <div
  6696. class="corOpen"
  6697. @click="contract(toolIndex)"
  6698. v-if="isCloseList[toolIndex].isClose == 1"
  6699. >
  6700. {{ lang.ssExpand }}
  6701. </div>
  6702. </div>
  6703. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6704. </div>
  6705. <div
  6706. :id="'tool-' + toolIndex"
  6707. :style="{
  6708. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6709. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6710. }"
  6711. class="worksDetailBox"
  6712. v-if="
  6713. worksStudent.length &&
  6714. worksStudent[toolIndex].length > 0
  6715. "
  6716. >
  6717. <!-- @click="openXz(w, toolIndex)" -->
  6718. <div
  6719. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6720. :key="wIndex"
  6721. class="isWorksName2"
  6722. @click="openSen(w, toolIndex)"
  6723. >
  6724. {{ w.sName }}
  6725. <img
  6726. class="deleteImg deleteImg2"
  6727. src="../assets/deleteworks.png"
  6728. v-if="w.userid == userid || tType == 1 || tType == 4"
  6729. @click.stop="deleteWorks(w.wid)"
  6730. alt
  6731. />
  6732. </div>
  6733. </div>
  6734. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6735. {{ lang.ssNotSubmitted }}
  6736. </div>
  6737. <div
  6738. class="noWorksS"
  6739. v-if="noWorksS && noWorksS[toolIndex].length"
  6740. >
  6741. <div
  6742. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6743. :key="sIndex"
  6744. class="noWorksName"
  6745. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6746. >
  6747. <el-tooltip effect="dark" :content="s.student" placement="top">
  6748. <span>{{ s.student }}</span>
  6749. </el-tooltip>
  6750. </div>
  6751. </div>
  6752. </div>
  6753. <div
  6754. v-if="
  6755. tType &&
  6756. ((tType == 2 && sIsOpen == true) ||
  6757. tType == 1 ||
  6758. tType == 4) &&
  6759. tool.tool.indexOf(48) != -1
  6760. "
  6761. class="worksBox"
  6762. >
  6763. <div
  6764. class="zuoyeYulan"
  6765. v-if="
  6766. worksStudent.length &&
  6767. worksStudent[toolIndex].length > 0
  6768. "
  6769. >
  6770. <div class="worksTop">
  6771. <div>{{ lang.ssHomeworkPreview }}</div>
  6772. <div
  6773. class="corOpen"
  6774. @click="contract(toolIndex)"
  6775. v-if="
  6776. (isCloseList[toolIndex].isCloseBoolean) &&
  6777. isCloseList[toolIndex].isClose == 0
  6778. "
  6779. >
  6780. {{ lang.ssFold }}
  6781. </div>
  6782. <div
  6783. class="corOpen"
  6784. @click="contract(toolIndex)"
  6785. v-if="isCloseList[toolIndex].isClose == 1"
  6786. >
  6787. {{ lang.ssExpand }}
  6788. </div>
  6789. </div>
  6790. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6791. </div>
  6792. <div
  6793. :id="'tool-' + toolIndex"
  6794. :style="{
  6795. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6796. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6797. }"
  6798. class="worksDetailBox"
  6799. v-if="
  6800. worksStudent.length &&
  6801. worksStudent[toolIndex].length > 0
  6802. "
  6803. >
  6804. <div
  6805. class="works"
  6806. style="
  6807. width: 200px;
  6808. height: 140px;
  6809. margin: 10px 10px 10px 0;
  6810. border-radius: 15px;
  6811. box-shadow: 0 0 6px 1px #dfdada;
  6812. "
  6813. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6814. :key="wIndex"
  6815. :class="w.type == 1 ? 'isTypeOne' : ''"
  6816. >
  6817. <div class="workImg">
  6818. <img :src="word" @click="openTable(w)" alt />
  6819. <!-- @click="openFile(w.works)" -->
  6820. <div
  6821. class="answerScore"
  6822. v-if="w.score"
  6823. @click.stop="openScore(w)"
  6824. :class="{
  6825. rightW:
  6826. w.userid == userid ||
  6827. tType == 1 ||
  6828. tType == 4 ||
  6829. w.ateacher == userid,
  6830. }"
  6831. >
  6832. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  6833. </div>
  6834. <div
  6835. class="answerScore"
  6836. @click.stop="openScore(w)"
  6837. v-else-if="courseDetail.userid == userid"
  6838. :class="{
  6839. rightW:
  6840. w.userid == userid ||
  6841. tType == 1 ||
  6842. tType == 4 ||
  6843. w.ateacher == userid,
  6844. }"
  6845. >
  6846. {{ lang.ssMarkScore }}
  6847. </div>
  6848. <img
  6849. class="deleteImg"
  6850. src="../assets/deleteworks.png"
  6851. v-if="
  6852. w.userid == userid || tType == 1 || tType == 4
  6853. "
  6854. @click.stop="deleteWorks(w.wid)"
  6855. alt
  6856. />
  6857. </div>
  6858. <div class="comment" style="min-width: 200px">
  6859. <div class="worksName">
  6860. <div>{{ w.sName }}</div>
  6861. </div>
  6862. <div class="commentList">
  6863. <div class="commentList">
  6864. <div
  6865. class="commentImg"
  6866. @click="
  6867. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6868. "
  6869. >
  6870. <img
  6871. :src="w.isLikes == true ? likes : noLikes"
  6872. alt=""
  6873. />
  6874. </div>
  6875. <div>{{ w.likesCount }}</div>
  6876. </div>
  6877. <div class="commentList" style="margin-right: 15px">
  6878. <div
  6879. class="commentImg"
  6880. @click="commentOther(w, toolIndex, wIndex)"
  6881. >
  6882. <img
  6883. src="../assets/icon/comment/comment.png"
  6884. alt=""
  6885. />
  6886. </div>
  6887. <div>{{ w.commentCount }}</div>
  6888. </div>
  6889. </div>
  6890. </div>
  6891. </div>
  6892. </div>
  6893. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6894. {{ lang.ssNotSubmitted }}
  6895. </div>
  6896. <div
  6897. class="noWorksS"
  6898. v-if="noWorksS && noWorksS[toolIndex].length"
  6899. >
  6900. <div
  6901. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6902. :key="sIndex"
  6903. class="noWorksName"
  6904. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6905. >
  6906. <el-tooltip effect="dark" :content="s.student" placement="top">
  6907. <span>{{ s.student }}</span>
  6908. </el-tooltip>
  6909. </div>
  6910. </div>
  6911. </div>
  6912. <div
  6913. v-if="
  6914. tType &&
  6915. tType == 2 &&
  6916. !sIsOpen &&
  6917. tool.tool.indexOf(48) != -1
  6918. "
  6919. class="worksBox"
  6920. >
  6921. <div
  6922. class="zuoyeYulan"
  6923. v-if="workStudent[toolIndex].length > 0"
  6924. >
  6925. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6926. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6927. </div>
  6928. <div
  6929. class="worksDetailBox"
  6930. v-if="workStudent[toolIndex].length > 0"
  6931. >
  6932. <div
  6933. class="works"
  6934. style="
  6935. width: 200px;
  6936. height: 140px;
  6937. margin: 10px 10px 10px 0;
  6938. box-shadow: 0 0 6px 1px #dfdada;
  6939. "
  6940. v-for="(w, wIndex) in workStudent[toolIndex]"
  6941. :key="wIndex"
  6942. >
  6943. <div class="workImg">
  6944. <img :src="word" @click="openTable(w)" alt />
  6945. <div
  6946. class="answerScore"
  6947. v-if="w.score"
  6948. @click.stop="openScore(w)"
  6949. :class="{
  6950. rightW:
  6951. w.userid == userid || tType == 1 || tType == 4,
  6952. }"
  6953. >
  6954. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  6955. </div>
  6956. <div
  6957. class="answerScore"
  6958. @click.stop="openScore(w)"
  6959. v-else-if="courseDetail.userid == userid"
  6960. :class="{
  6961. rightW:
  6962. w.userid == userid || tType == 1 || tType == 4,
  6963. }"
  6964. >
  6965. {{ lang.ssMarkScore }}
  6966. </div>
  6967. <img
  6968. class="deleteImg"
  6969. src="../assets/deleteworks.png"
  6970. v-if="
  6971. w.userid == userid || tType == 1 || tType == 4
  6972. "
  6973. @click.stop="deleteWorks(w.wid)"
  6974. alt
  6975. />
  6976. </div>
  6977. <div class="worksName">
  6978. <div>{{ w.sName }}</div>
  6979. </div>
  6980. </div>
  6981. </div>
  6982. </div>
  6983. <div
  6984. v-if="
  6985. tType &&
  6986. ((tType == 2 && sIsOpen == true) ||
  6987. tType == 1 ||
  6988. tType == 4) &&
  6989. tool.tool.indexOf(52) != -1
  6990. "
  6991. class="worksBox"
  6992. >
  6993. <div
  6994. class="zuoyeYulan"
  6995. v-if="
  6996. worksStudent.length &&
  6997. worksStudent[toolIndex].length > 0
  6998. "
  6999. >
  7000. <div class="worksTop">
  7001. <div>{{ lang.ssHomeworkPreview }}</div>
  7002. <div
  7003. class="corOpen"
  7004. @click="contract(toolIndex)"
  7005. v-if="
  7006. (isCloseList[toolIndex].isCloseBoolean) &&
  7007. isCloseList[toolIndex].isClose == 0
  7008. "
  7009. >
  7010. {{ lang.ssFold }}
  7011. </div>
  7012. <div
  7013. class="corOpen"
  7014. @click="contract(toolIndex)"
  7015. v-if="isCloseList[toolIndex].isClose == 1"
  7016. >
  7017. {{ lang.ssExpand }}
  7018. </div>
  7019. </div>
  7020. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7021. </div>
  7022. <div
  7023. :id="'tool-' + toolIndex"
  7024. :style="{
  7025. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7026. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7027. }"
  7028. class="worksDetailBox"
  7029. v-if="
  7030. worksStudent.length &&
  7031. worksStudent[toolIndex].length > 0
  7032. "
  7033. >
  7034. <div
  7035. class="works"
  7036. style="
  7037. width: 200px;
  7038. height: 140px;
  7039. margin: 10px 10px 10px 0;
  7040. border-radius: 15px;
  7041. box-shadow: 0 0 6px 1px #dfdada;
  7042. "
  7043. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7044. :key="wIndex"
  7045. :class="w.type == 1 ? 'isTypeOne' : ''"
  7046. >
  7047. <div class="workImg">
  7048. <img :src="word" @click="openWord(w)" alt />
  7049. <!-- @click="openFile(w.works)" -->
  7050. <div
  7051. class="answerScore"
  7052. v-if="w.score"
  7053. @click.stop="openScore(w)"
  7054. :class="{
  7055. rightW:
  7056. w.userid == userid ||
  7057. tType == 1 ||
  7058. tType == 4 ||
  7059. w.ateacher == userid,
  7060. }"
  7061. >
  7062. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7063. </div>
  7064. <div
  7065. class="answerScore"
  7066. @click.stop="openScore(w)"
  7067. v-else-if="courseDetail.userid == userid"
  7068. :class="{
  7069. rightW:
  7070. w.userid == userid ||
  7071. tType == 1 ||
  7072. tType == 4 ||
  7073. w.ateacher == userid,
  7074. }"
  7075. >
  7076. {{ lang.ssMarkScore }}
  7077. </div>
  7078. <img
  7079. class="deleteImg"
  7080. src="../assets/deleteworks.png"
  7081. v-if="
  7082. w.userid == userid || tType == 1 || tType == 4
  7083. "
  7084. @click.stop="deleteWorks(w.wid)"
  7085. alt
  7086. />
  7087. </div>
  7088. <div class="comment" style="min-width: 200px">
  7089. <div class="worksName">
  7090. <div>{{ w.sName }}</div>
  7091. </div>
  7092. <div class="commentList">
  7093. <div class="commentList">
  7094. <div
  7095. class="commentImg"
  7096. @click="
  7097. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7098. "
  7099. >
  7100. <img
  7101. :src="w.isLikes == true ? likes : noLikes"
  7102. alt=""
  7103. />
  7104. </div>
  7105. <div>{{ w.likesCount }}</div>
  7106. </div>
  7107. <div class="commentList" style="margin-right: 15px">
  7108. <div
  7109. class="commentImg"
  7110. @click="commentOther(w, toolIndex, wIndex)"
  7111. >
  7112. <img
  7113. src="../assets/icon/comment/comment.png"
  7114. alt=""
  7115. />
  7116. </div>
  7117. <div>{{ w.commentCount }}</div>
  7118. </div>
  7119. </div>
  7120. </div>
  7121. </div>
  7122. </div>
  7123. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7124. {{ lang.ssNotSubmitted }}
  7125. </div>
  7126. <div
  7127. class="noWorksS"
  7128. v-if="noWorksS && noWorksS[toolIndex].length"
  7129. >
  7130. <div
  7131. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7132. :key="sIndex"
  7133. class="noWorksName"
  7134. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7135. >
  7136. <el-tooltip effect="dark" :content="s.student" placement="top">
  7137. <span>{{ s.student }}</span>
  7138. </el-tooltip>
  7139. </div>
  7140. </div>
  7141. </div>
  7142. <div
  7143. v-if="
  7144. tType &&
  7145. tType == 2 &&
  7146. !sIsOpen &&
  7147. tool.tool.indexOf(52) != -1
  7148. "
  7149. class="worksBox"
  7150. >
  7151. <div
  7152. class="zuoyeYulan"
  7153. v-if="workStudent[toolIndex].length > 0"
  7154. >
  7155. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  7156. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7157. </div>
  7158. <div
  7159. class="worksDetailBox"
  7160. v-if="workStudent[toolIndex].length > 0"
  7161. >
  7162. <div
  7163. class="works"
  7164. style="
  7165. width: 200px;
  7166. height: 140px;
  7167. margin: 10px 10px 10px 0;
  7168. box-shadow: 0 0 6px 1px #dfdada;
  7169. "
  7170. v-for="(w, wIndex) in workStudent[toolIndex]"
  7171. :key="wIndex"
  7172. >
  7173. <div class="workImg">
  7174. <img :src="word" @click="openWord(w)" alt />
  7175. <div
  7176. class="answerScore"
  7177. v-if="w.score"
  7178. @click.stop="openScore(w)"
  7179. :class="{
  7180. rightW:
  7181. w.userid == userid || tType == 1 || tType == 4,
  7182. }"
  7183. >
  7184. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7185. </div>
  7186. <div
  7187. class="answerScore"
  7188. @click.stop="openScore(w)"
  7189. v-else-if="courseDetail.userid == userid"
  7190. :class="{
  7191. rightW:
  7192. w.userid == userid || tType == 1 || tType == 4,
  7193. }"
  7194. >
  7195. {{ lang.ssMarkScore }}
  7196. </div>
  7197. <img
  7198. class="deleteImg"
  7199. src="../assets/deleteworks.png"
  7200. v-if="
  7201. w.userid == userid || tType == 1 || tType == 4
  7202. "
  7203. @click.stop="deleteWorks(w.wid)"
  7204. alt
  7205. />
  7206. </div>
  7207. <div class="worksName">
  7208. <div>{{ w.sName }}</div>
  7209. </div>
  7210. </div>
  7211. </div>
  7212. </div>
  7213. <div
  7214. v-if="tool.tool.indexOf(49) != -1"
  7215. class="xuan_right_box"
  7216. style="margin: 0 15px 0 25px; width: 93%"
  7217. >
  7218. <div
  7219. v-if="courseDetail.userid == userid"
  7220. style="
  7221. display: flex;
  7222. justify-content: flex-end;
  7223. margin-right: 10px;
  7224. "
  7225. >
  7226. <el-button
  7227. type="primary"
  7228. size="small"
  7229. @click="addTools(49, toolIndex, taskCount)"
  7230. >{{ lang.ssGroupSetting }}
  7231. </el-button>
  7232. </div>
  7233. <div
  7234. v-if="groupStudentUid[toolIndex]"
  7235. class="group_staic_box"
  7236. >
  7237. <div
  7238. v-for="(gp, gd) in tool.groupJson.group"
  7239. :key="gd"
  7240. class="group_staic"
  7241. >
  7242. <span> {{ gp.name }}</span>
  7243. <span>
  7244. {{ lang.ssCurrentCountNum.replace(/\*/, groupStudentUid[toolIndex][gd].length) }}</span
  7245. >
  7246. </div>
  7247. </div>
  7248. </div>
  7249. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7250. <div
  7251. class="zuoyeYulan"
  7252. v-if="
  7253. worksStudent.length &&
  7254. worksStudent[toolIndex].length > 0
  7255. "
  7256. >
  7257. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  7258. </div>
  7259. <div>
  7260. <div
  7261. class="group_workBox"
  7262. v-for="(g, gindex) in tool.groupJson.group"
  7263. :key="gindex"
  7264. >
  7265. <div
  7266. class="group_box"
  7267. v-if="
  7268. groupStudentUid[toolIndex] &&
  7269. worksStudent[toolIndex] &&
  7270. (worksStudent[toolIndex][gindex].length ||
  7271. groupStudentUid[toolIndex][gindex].indexOf(
  7272. userid
  7273. ) != -1)
  7274. "
  7275. >
  7276. <div class="group_title">
  7277. <el-tooltip
  7278. class="item"
  7279. effect="light"
  7280. :content="g.name"
  7281. placement="top"
  7282. >
  7283. <div class="group_name">{{ g.name }}</div>
  7284. </el-tooltip>
  7285. <el-button
  7286. type="primary"
  7287. v-if="
  7288. groupStudentUid[toolIndex][gindex].indexOf(
  7289. userid
  7290. ) != -1
  7291. "
  7292. @click="groupUpload(toolIndex, taskCount, gindex)"
  7293. >{{ lang.ssUploadHomework }}
  7294. </el-button>
  7295. </div>
  7296. <div class="group_work">
  7297. <div
  7298. class="works"
  7299. style="
  7300. width: 200px;
  7301. height: 140px;
  7302. margin: 10px 10px 10px 0;
  7303. border-radius: 15px;
  7304. box-shadow: 0 0 6px 1px #dfdada;
  7305. "
  7306. v-for="(w, wIndex) in worksStudent[toolIndex][
  7307. gindex
  7308. ]"
  7309. :key="wIndex"
  7310. :class="w.type == 1 ? 'isTypeOne' : ''"
  7311. >
  7312. <div class="workImg" style="overflow: hidden;" v-if="w.type == 0">
  7313. <el-image
  7314. crossorigin="anonymous"
  7315. allow="*"
  7316. :src="w.works"
  7317. @click="previewImg(w.works,w)"
  7318. alt
  7319. />
  7320. <div
  7321. class="answerScore"
  7322. style="right: 70px;"
  7323. v-if="w.score"
  7324. @click.stop="openScore(w)"
  7325. :class="{
  7326. rightW:
  7327. w.userid == userid ||
  7328. tType == 1 ||
  7329. tType == 4 ||
  7330. w.ateacher == userid,
  7331. }"
  7332. >
  7333. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7334. </div>
  7335. <div
  7336. class="answerScore"
  7337. style="right: 70px;"
  7338. @click.stop="openScore(w)"
  7339. v-else-if="courseDetail.userid == userid"
  7340. :class="{
  7341. rightW:
  7342. w.userid == userid ||
  7343. tType == 1 ||
  7344. tType == 4 ||
  7345. w.ateacher == userid,
  7346. }"
  7347. >
  7348. {{ lang.ssMarkScore }}
  7349. </div>
  7350. <img class="xiaz" @click="downloadimg(w.works,w.sName)" style="right: 40px;" src="../assets/icon/works/xiaz.png" alt="">
  7351. <img
  7352. class="deleteImg"
  7353. src="../assets/deleteworks.png"
  7354. v-if="
  7355. w.userid == userid ||
  7356. tType == 1 ||
  7357. tType == 4
  7358. "
  7359. @click.stop="deleteWorks(w.wid)"
  7360. alt
  7361. />
  7362. </div>
  7363. <div class="workImg" v-if="w.type == 1">
  7364. <img
  7365. :src="word"
  7366. @click="openFile(w.works,w)"
  7367. alt
  7368. />
  7369. <!-- @click="openFile(w.works)" -->
  7370. <div
  7371. class="answerScore"
  7372. style="right: 70px;"
  7373. v-if="w.score"
  7374. @click.stop="openScore(w)"
  7375. :class="{
  7376. rightW:
  7377. w.userid == userid ||
  7378. tType == 1 ||
  7379. tType == 4 ||
  7380. w.ateacher == userid,
  7381. }"
  7382. >
  7383. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7384. </div>
  7385. <div
  7386. class="answerScore"
  7387. style="right: 70px;"
  7388. @click.stop="openScore(w)"
  7389. v-else-if="courseDetail.userid == userid"
  7390. :class="{
  7391. rightW:
  7392. w.userid == userid ||
  7393. tType == 1 ||
  7394. tType == 4 ||
  7395. w.ateacher == userid,
  7396. }"
  7397. >
  7398. {{ lang.ssMarkScore }}
  7399. </div>
  7400. <img class="xiaz" @click="downloadFile(w.works,w.userid)" style="right: 40px;" src="../assets/icon/works/xiaz.png" alt="">
  7401. <img
  7402. class="deleteImg"
  7403. src="../assets/deleteworks.png"
  7404. v-if="
  7405. w.userid == userid ||
  7406. tType == 1 ||
  7407. tType == 4
  7408. "
  7409. @click.stop="deleteWorks(w.wid)"
  7410. alt
  7411. />
  7412. </div>
  7413. <div class="workImg" v-if="w.type == 3">
  7414. <img
  7415. style="cursor: pointer"
  7416. :src="video"
  7417. @click="openVideo(w)"
  7418. alt
  7419. />
  7420. <!-- @click="openVideo(w.works)" -->
  7421. <div
  7422. class="answerScore"
  7423. style="right: 70px;"
  7424. v-if="w.score"
  7425. @click.stop="openScore(w)"
  7426. :class="{
  7427. rightW:
  7428. w.userid == userid ||
  7429. tType == 1 ||
  7430. tType == 4 ||
  7431. w.ateacher == userid,
  7432. }"
  7433. >
  7434. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7435. </div>
  7436. <div
  7437. class="answerScore"
  7438. style="right: 70px;"
  7439. @click.stop="openScore(w)"
  7440. v-else-if="courseDetail.userid == userid"
  7441. :class="{
  7442. rightW:
  7443. w.userid == userid ||
  7444. tType == 1 ||
  7445. tType == 4 ||
  7446. w.ateacher == userid,
  7447. }"
  7448. >
  7449. {{ lang.ssMarkScore }}
  7450. </div>
  7451. <img class="xiaz" @click="downloadFile(w.works,w.userid)" style="right: 40px;" src="../assets/icon/works/xiaz.png" alt="">
  7452. <img
  7453. class="deleteImg"
  7454. src="../assets/deleteworks.png"
  7455. v-if="
  7456. w.userid == userid ||
  7457. tType == 1 ||
  7458. tType == 4
  7459. "
  7460. @click.stop="deleteWorks(w.wid)"
  7461. alt
  7462. />
  7463. </div>
  7464. <div class="workImg" v-if="w.type == 12">
  7465. <img
  7466. style="cursor: pointer"
  7467. :src="word2"
  7468. @click="downloadFile(w.works,w.userid)"
  7469. alt
  7470. />
  7471. <!-- @click="openVideo(w.works)" -->
  7472. <div
  7473. class="answerScore"
  7474. style="right: 70px;"
  7475. v-if="w.score"
  7476. @click.stop="openScore(w)"
  7477. :class="{
  7478. rightW:
  7479. w.userid == userid ||
  7480. tType == 1 ||
  7481. tType == 4 ||
  7482. w.ateacher == userid,
  7483. }"
  7484. >
  7485. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7486. </div>
  7487. <div
  7488. class="answerScore"
  7489. style="right: 70px;"
  7490. @click.stop="openScore(w)"
  7491. v-else-if="courseDetail.userid == userid"
  7492. :class="{
  7493. rightW:
  7494. w.userid == userid ||
  7495. tType == 1 ||
  7496. tType == 4 ||
  7497. w.ateacher == userid,
  7498. }"
  7499. >
  7500. {{ lang.ssMarkScore }}
  7501. </div>
  7502. <img class="xiaz" @click="downloadFile(w.works,w.userid)" style="right: 40px;" src="../assets/icon/works/xiaz.png" alt="">
  7503. <img
  7504. class="deleteImg"
  7505. src="../assets/deleteworks.png"
  7506. v-if="
  7507. w.userid == userid ||
  7508. tType == 1 ||
  7509. tType == 4
  7510. "
  7511. @click.stop="deleteWorks(w.wid)"
  7512. alt
  7513. />
  7514. </div>
  7515. <div class="comment" style="min-width: 200px">
  7516. <div class="worksName">
  7517. <div>{{ w.sName }}</div>
  7518. </div>
  7519. <div class="commentList">
  7520. <div class="commentList">
  7521. <div
  7522. class="commentImg"
  7523. @click="
  7524. isLikes(
  7525. w.wid,
  7526. userid,
  7527. 1,
  7528. null,
  7529. w.isLikes,
  7530. w.sName
  7531. )
  7532. "
  7533. >
  7534. <img
  7535. :src="
  7536. w.isLikes == true ? likes : noLikes
  7537. "
  7538. alt=""
  7539. />
  7540. </div>
  7541. <div>{{ w.likesCount }}</div>
  7542. </div>
  7543. <div
  7544. class="commentList"
  7545. style="margin-right: 15px"
  7546. >
  7547. <div
  7548. class="commentImg"
  7549. @click="
  7550. commentOther(
  7551. w,
  7552. toolIndex,
  7553. wIndex,
  7554. gindex
  7555. )
  7556. "
  7557. >
  7558. <img
  7559. src="../assets/icon/comment/comment.png"
  7560. alt=""
  7561. />
  7562. </div>
  7563. <div>{{ w.commentCount }}</div>
  7564. </div>
  7565. </div>
  7566. </div>
  7567. </div>
  7568. </div>
  7569. </div>
  7570. </div>
  7571. </div>
  7572. </div>
  7573. </div>
  7574. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7575. 上传文件
  7576. <input
  7577. type="file"
  7578. accept="image/png, image/gif, image/jpeg"
  7579. style="display: none"
  7580. @change="beforeUpload1($event, 2, index)"
  7581. />
  7582. </div>-->
  7583. </div>
  7584. </div>
  7585. <div
  7586. class="vedioBox"
  7587. style="margin-top: 10px; border-radius: 20px"
  7588. v-if="
  7589. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7590. .eList &&
  7591. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7592. .eList.length &&
  7593. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7594. .eList.length > 0 &&
  7595. tType != 2
  7596. "
  7597. >
  7598. <div
  7599. class="queTop"
  7600. style="
  7601. font-size: 20px;
  7602. padding: 15px 0 15px 37px;
  7603. font-weight: bold;
  7604. "
  7605. >
  7606. <!-- <div class="question" style="width: 30px">
  7607. <img src="../assets/icon/toolIcon.png" alt />
  7608. </div>
  7609. <div class="queTitle">
  7610. <div>工具</div>
  7611. </div>-->
  7612. {{ lang.ssEvaluate }}
  7613. </div>
  7614. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7615. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7616. <el-table
  7617. :data="
  7618. chapInfoList[courseType].chapterInfo[0].taskJson[
  7619. taskCount
  7620. ].eList
  7621. "
  7622. :header-cell-style="{ background: '#F0F4FA' }"
  7623. :row-class-name="tableRowClassName"
  7624. border
  7625. stripe
  7626. style="width: 100%"
  7627. >
  7628. <el-table-column
  7629. :label="lang.ssEvalName"
  7630. align="center"
  7631. >
  7632. <template slot-scope="scope"
  7633. ><div>{{ scope.row.value }}</div></template
  7634. >
  7635. </el-table-column>
  7636. <el-table-column
  7637. :label="lang.ssEvalDimensionDesc"
  7638. align="center"
  7639. >
  7640. <template slot-scope="scope"
  7641. ><div>
  7642. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7643. </div></template
  7644. >
  7645. </el-table-column>
  7646. <el-table-column :label="lang.ssTarget" align="center">
  7647. <template slot-scope="scope"
  7648. ><div>
  7649. {{
  7650. scope.row.target
  7651. ? scope.row.target[scope.row.target.length - 1]
  7652. : "-"
  7653. }}
  7654. </div></template
  7655. ></el-table-column
  7656. >
  7657. </el-table>
  7658. <!-- <div
  7659. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7660. .chapterInfo[0].taskJson[taskCount].eList"
  7661. :key="eIndex"
  7662. class="elist_input_box"
  7663. >
  7664. <div style="width: 95%">
  7665. <div
  7666. style="
  7667. display: flex;
  7668. flex-direction: row;
  7669. flex-wrap: nowrap;
  7670. align-items: center;
  7671. "
  7672. >
  7673. <div style="max-width: calc(100% - 285px)">
  7674. <span>{{ eItem.value }}</span>
  7675. </div>
  7676. <div
  7677. style="
  7678. padding-left: 25px;
  7679. display: flex;
  7680. flex-direction: row;
  7681. align-items: center;
  7682. "
  7683. >
  7684. <el-rate
  7685. v-model="eItem.score"
  7686. :colors="colors"
  7687. disabled
  7688. ></el-rate>
  7689. </div>
  7690. </div>
  7691. <div class="elist_inptu_text" style="padding-left: 10px">
  7692. <span v-if="eItem.detail != ''">{{
  7693. eItem.detail
  7694. }}</span>
  7695. <span v-else style="color: #b2b1b3; font-size: 14px"
  7696. >{{ lang.ssNoDesc }}</span
  7697. >
  7698. </div>
  7699. </div>
  7700. </div> -->
  7701. </div>
  7702. <div
  7703. v-if="evalua"
  7704. style="
  7705. border: 1px solid #e5e5e5;
  7706. max-width: 650px;
  7707. width: 100%;
  7708. margin-top: 20px;
  7709. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7710. "
  7711. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7712. >
  7713. <div class="e_add_top">
  7714. <div class="e_add_title" style="width: 100%">
  7715. <!-- <span>目标管理名称</span> -->
  7716. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7717. <img
  7718. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7719. src="../assets/line.png"
  7720. class="cru_line"
  7721. style="
  7722. width: 125px;
  7723. height: 20px;
  7724. bottom: -10px;
  7725. left: 5px;
  7726. "
  7727. />
  7728. <!-- <el-input
  7729. v-model="eTitle"
  7730. :placeholder="this.lang.ssEnterName"
  7731. @change="setMindData"
  7732. ></el-input>-->
  7733. <div v-show="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva()"><img src="../assets/icon/newIcon/icon-slide.png" />{{ lang.ssCollapseTarget }}</div>
  7734. <div v-show="!chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" style="margin:0 0 0 auto" class="show_taskD" @click="foldEva()"><img src="../assets/icon/newIcon/icon-slide.png" />{{ lang.ssExpandTarget }}</div>
  7735. </div>
  7736. </div>
  7737. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7738. <div class="e_add_list_pbox">
  7739. <div class="e_add_list_pbox_title">
  7740. <!-- <span class="type_title">切换模式</span> -->
  7741. <div class="type_content">
  7742. <span
  7743. :class="{ active: typeMode == 1 }"
  7744. @click="typeMode = 1"
  7745. >{{lang.ssTargetTree}}</span
  7746. >
  7747. <span
  7748. :class="{ active: typeMode == 2 }"
  7749. @click="typeMode = 2"
  7750. >{{lang.ssTargetCompass}}</span
  7751. >
  7752. <!-- <span
  7753. :class="{ active: typeMode == 3 }"
  7754. @click="typeMode = 3"
  7755. >目标看板</span
  7756. > -->
  7757. </div>
  7758. </div>
  7759. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7760. <Mind
  7761. :showBar="false"
  7762. :mindData="data"
  7763. style="width: 100%"
  7764. v-show="typeMode == 1"
  7765. ></Mind>
  7766. <Sunburst
  7767. :Josn="eJson"
  7768. :num="eJSONNum"
  7769. style="width: 100%"
  7770. v-if="typeMode == 2"
  7771. ></Sunburst>
  7772. <SeeBoard
  7773. :Josn="eJson"
  7774. :num="eJSONNum"
  7775. :ename="eTitle"
  7776. style="width: 100%"
  7777. v-if="typeMode == 3"
  7778. >
  7779. </SeeBoard>
  7780. </div>
  7781. </div>
  7782. </div>
  7783. </div>
  7784. </div>
  7785. </div>
  7786. <!-- <div
  7787. class="project_box"
  7788. style="margin-top: 15px; padding-bottom: 30px"
  7789. >
  7790. <div
  7791. style="
  7792. display: flex;
  7793. flex-wrap: nowrap;
  7794. flex-direction: column;
  7795. position: relative;
  7796. "
  7797. >
  7798. <div class="queTop">
  7799. <div class="question">
  7800. <img src="../assets/icon/homeWork.png" alt="" />
  7801. </div>
  7802. <div class="queTitle">
  7803. <div>{{ lang.ssHomeworkSubmit }}<span>{{ lang.ssSubmitDescText }}</span></div>
  7804. <div>{{ lang.ssTaskColon }}{{ task.task }}</div>
  7805. </div>
  7806. </div>
  7807. <div class="ediBottom">
  7808. <div
  7809. class="addEditor"
  7810. style="margin-top: 23px"
  7811. @click="openAddWork"
  7812. v-if="!isNoHomeWork"
  7813. >
  7814. {{ lang.ssSelectFile }}
  7815. </div>
  7816. <div
  7817. class="addEditor"
  7818. style="margin-top: 23px"
  7819. @click="openAddWork"
  7820. v-else
  7821. >
  7822. {{ lang.ssSubmitted }}
  7823. </div>
  7824. </div>
  7825. </div>
  7826. </div>-->
  7827. </div>
  7828. </div>
  7829. <el-dialog
  7830. :title="lang.ssHomeworkSubmit"
  7831. :visible.sync="dialogVisible"
  7832. :append-to-body="true"
  7833. width="500px"
  7834. :before-close="handleClose"
  7835. class="dialog_change"
  7836. >
  7837. <div class="marginT">
  7838. <div>{{ lang.ssUploadHomework }}</div>
  7839. <div style="display: flex; gap: 10px">
  7840. <div
  7841. class="chapter_add"
  7842. @click="addImg($event)"
  7843. v-if="studyJuri[0].cover.length == 0"
  7844. >
  7845. <div class="up_photo">
  7846. <img src="../assets/icon/uploadImg.png" alt />
  7847. </div>
  7848. <!-- <input
  7849. type="file"
  7850. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7851. style="display: none"
  7852. @change="beforeUpload1($event, 1)"
  7853. /> -->
  7854. <input
  7855. type="file"
  7856. accept="*"
  7857. style="display: none"
  7858. @change="beforeUpload1($event, 1)"
  7859. />
  7860. <!-- <input
  7861. type="file"
  7862. accept="image/*"
  7863. capture="camera"
  7864. style="display: none"
  7865. @change="beforeUpload1($event, 1)"
  7866. /> -->
  7867. </div>
  7868. <div
  7869. class="chapter_add"
  7870. @click="addImg($event)"
  7871. v-if="studyJuri[0].cover.length == 0"
  7872. >
  7873. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  7874. <img src="../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  7875. </div>
  7876. <input
  7877. type="file"
  7878. accept="image/*"
  7879. capture="camera"
  7880. style="display: none"
  7881. @change="beforeUpload1($event, 1)"
  7882. />
  7883. </div>
  7884. </div>
  7885. <div
  7886. class="chapter_add"
  7887. style="
  7888. display: flex;
  7889. width: 100%;
  7890. flex-direction: row;
  7891. flex-wrap: wrap;
  7892. justify-content: flex-start;
  7893. padding: 15px 0;
  7894. "
  7895. v-if="studyJuri[0].cover.length > 0"
  7896. >
  7897. <div class="upCover">
  7898. <img
  7899. :src="studyJuri[0].cover[0].url"
  7900. alt
  7901. v-if="fileType == 0"
  7902. />
  7903. <img :src="word" alt v-else-if="fileType == 1" />
  7904. <img :src="video" alt v-else-if="fileType == 2" />
  7905. <img :src="word2" alt v-else-if="fileType == 3" />
  7906. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7907. <div class="deleteWord" @click="clean(1)">
  7908. <img src="../assets/icon/deleteWorks.png" alt />
  7909. </div>
  7910. </div>
  7911. </div>
  7912. </div>
  7913. <div
  7914. class="upload_send"
  7915. @click="addCourseWorks(taskCount)"
  7916. v-if="!proVisible"
  7917. >
  7918. {{ lang.ssSubmit }}
  7919. </div>
  7920. </el-dialog>
  7921. </div>
  7922. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  7923. <classRoomHelper v-if="(!['2'].includes(tType) || canUseCourseId.includes(id)) && $region != 'hk'" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  7924. '/courseDetail?userid=' +
  7925. userid +
  7926. '&oid=' +
  7927. oid +
  7928. '&org=' +
  7929. org +
  7930. '&cid=' +
  7931. classId +
  7932. '&courseId=' +
  7933. id +
  7934. '&tType=' +
  7935. tType +
  7936. '&screenType=' +
  7937. screenType+
  7938. '&role=' +
  7939. role
  7940. )"></classRoomHelper>
  7941. <studentClassRoomHelper v-else-if="['2'].includes(tType) && $region != 'hk'" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  7942. '/courseDetail?userid=' +
  7943. userid +
  7944. '&oid=' +
  7945. oid +
  7946. '&org=' +
  7947. org +
  7948. '&cid=' +
  7949. classId +
  7950. '&courseId=' +
  7951. id +
  7952. '&tType=' +
  7953. tType +
  7954. '&screenType=' +
  7955. screenType+
  7956. '&role=' +
  7957. role
  7958. )"></studentClassRoomHelper>
  7959. </div>
  7960. <div
  7961. class="pButton"
  7962. @click="(pzDialog = true), selectPz()"
  7963. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7964. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  7965. >
  7966. <!-- 批 -->
  7967. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  7968. </div>
  7969. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  7970. <div class="pzTop2">
  7971. <!-- <div>评论</div>
  7972. <div @click="pzDialog = false">
  7973. <img src="../assets/close1.png" alt="" />
  7974. </div> -->
  7975. <div class="checkbox">
  7976. <!-- <div class="check" style="font-size: 25px; position: unset">
  7977. 评论
  7978. </div> -->
  7979. <div class="cb-tabList">
  7980. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">{{ lang.ssComment }}</div>
  7981. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  7982. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  7983. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">{{ lang.ssTotalEval }}</div>
  7984. </div>
  7985. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  7986. <el-option :label="lang.ssTimeDesc" :value="1"></el-option>
  7987. <el-option :label="lang.ssTimeAsc" :value="2"></el-option>
  7988. <el-option :label="lang.ssMyComment" :value="3"></el-option>
  7989. </el-select>
  7990. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7991. </div>
  7992. </div>
  7993. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  7994. <div class="pzListBox" v-if="pzList && pzList.length">
  7995. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7996. <div class="pzNavTop">
  7997. <div>{{ lang.ssEval }}</div>
  7998. <div>
  7999. {{
  8000. pz.username && pz.username.length > 5
  8001. ? pz.username.substring(0, 5) + "..."
  8002. : pz.username
  8003. }}{{ lang.ssCommentOf.replace(/\*/g, pz.username) }}
  8004. </div>
  8005. <div
  8006. class="pzDelete"
  8007. v-if="pz.userid == userid"
  8008. @click="deletePz(pz.id)"
  8009. >
  8010. {{ lang.ssDelete }}
  8011. </div>
  8012. </div>
  8013. <div
  8014. @click="checkImg(getImgList(pz.content))"
  8015. class="pzContent cont"
  8016. v-html="pz.content"
  8017. v-if="pz.type == '1'"
  8018. ></div>
  8019. <div class="pzContent" v-if="pz.type == '2'">
  8020. <audio :src="pz.content" controls="controls" ref="audio">
  8021. Your browser does not support the audio element.
  8022. </audio>
  8023. </div>
  8024. <div class="pzContent" v-if="pz.type == '3'">
  8025. <img
  8026. :src="pz.content"
  8027. style="width: 90%; margin: 0 auto; display: block"
  8028. @click="previewImg(pz.content)"
  8029. />
  8030. </div>
  8031. <div class="timeAndReply">
  8032. <div class="time">
  8033. {{ pz.time }}
  8034. </div>
  8035. <div @click="setReplyIndex(pz.id, pzIndex)">{{ lang.ssReply }}</div>
  8036. </div>
  8037. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8038. <div
  8039. v-for="(h, hIndex) in pz.hfList"
  8040. :key="hIndex"
  8041. class="hfItem"
  8042. >
  8043. <div class="whoReplyWho">
  8044. <div class="hfName">{{ h.username }}</div>
  8045. <div class="hfImg">
  8046. <img src="../assets/icon/newIcons/right.png" alt="" />
  8047. </div>
  8048. <div class="hfName">{{ pz.username }}</div>
  8049. </div>
  8050. <div class="hfContent" v-html="h.content"></div>
  8051. <div class="hfBottom">
  8052. <div class="hfTime">{{ h.time }}</div>
  8053. <div
  8054. class="deleteHfItem"
  8055. @click="deleteReply(h.id)"
  8056. v-if="userid == h.userid"
  8057. >
  8058. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8059. </div>
  8060. </div>
  8061. </div>
  8062. </div>
  8063. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8064. <div class="replyInput">
  8065. <el-input v-model="reply[pzIndex]"></el-input>
  8066. </div>
  8067. <el-button @click="addHf(pz.id, pzIndex)">{{ lang.ssReply }}</el-button>
  8068. </div> -->
  8069. </div>
  8070. </div>
  8071. <div class="noPz" v-else>
  8072. <img src="../assets/icon/noPz.png" alt="" />
  8073. </div>
  8074. <div class="addPzButton">
  8075. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8076. {{ lang.ssAddComment }}
  8077. </div>
  8078. <!-- <div class="img1">
  8079. <div @click="(addPzDialog = true), (pzType = 2)">
  8080. <img src="../assets/audio.png" /><span>{{ lang.ssAudio }}</span>
  8081. </div>
  8082. </div> -->
  8083. </div>
  8084. </div>
  8085. <div class="scoreList" v-if="commentTagShow==1">
  8086. <scoreItem v-for="item in scoreList.datalist" @refresh="getScoreList" :data="item" :isScore="scoreList.isScoreList.filter(i=>(i.userid==item.userid && i.courseid == item.courseId))" :key="item.courseId"/>
  8087. </div>
  8088. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8089. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8090. </div>
  8091. </div>
  8092. <div
  8093. v-if="toolDialogVisible == true"
  8094. class="toolMask"
  8095. @click="toolDialogVisible = false"
  8096. ></div>
  8097. <div v-if="toolDialogVisible == true" class="addToolCss">
  8098. <div class="toolTop">
  8099. <div style="font-weight: bold">{{ lang.ssNewTool }}</div>
  8100. <div @click="toolDialogVisible = false">
  8101. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8102. </div>
  8103. </div>
  8104. <div class="tool_box">
  8105. <div class="tool_type_box">
  8106. <div class="chooseWho">
  8107. <div
  8108. :class="toolType == 0 ? 'isChooseActive' : ''"
  8109. @click="(toolType = 0), $forceUpdate()"
  8110. >
  8111. {{ lang.ssInteract }}
  8112. </div>
  8113. <div
  8114. :class="toolType == 1 ? 'isChooseActive' : ''"
  8115. @click="(toolType = 1), $forceUpdate()"
  8116. >
  8117. {{ lang.ssThinking }}
  8118. </div>
  8119. <div
  8120. :class="toolType == 2 ? 'isChooseActive' : ''"
  8121. @click="(toolType = 2), $forceUpdate()"
  8122. >
  8123. {{ lang.ssEvalType }}
  8124. </div>
  8125. <div
  8126. :class="toolType == 3 ? 'isChooseActive' : ''"
  8127. @click="(toolType = 3), $forceUpdate()"
  8128. >
  8129. {{ lang.ssProgram }}
  8130. </div>
  8131. <div
  8132. :class="toolType == 5 ? 'isChooseActive' : ''"
  8133. @click="(toolType = 5), $forceUpdate()"
  8134. >
  8135. {{ lang.ssSubject }}
  8136. </div>
  8137. </div>
  8138. </div>
  8139. <div>
  8140. <div class="toolSort" v-if="toolType == 0">
  8141. <div
  8142. class="tool"
  8143. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8144. @click="addTools2(10)"
  8145. >
  8146. <div class="whiteBIcon">
  8147. <img src="../assets/icon/thirdToolList/time.png" alt />
  8148. <div style="margin: 5px 0">{{ lang.ssCountdown }}</div>
  8149. </div>
  8150. <div class="check">
  8151. <div
  8152. v-if="checktoolArray.indexOf(10) == -1"
  8153. class="noChoose"
  8154. ></div>
  8155. <div v-else class="isChoose"></div>
  8156. </div>
  8157. </div>
  8158. <div
  8159. class="tool"
  8160. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8161. @click="addTools2(65)"
  8162. >
  8163. <div class="whiteBIcon">
  8164. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8165. <div style="margin: 5px 0">{{ lang.ssPickPerson }}</div>
  8166. </div>
  8167. <div class="check">
  8168. <div
  8169. v-if="checktoolArray.indexOf(65) == -1"
  8170. class="noChoose"
  8171. ></div>
  8172. <div v-else class="isChoose"></div>
  8173. </div>
  8174. </div>
  8175. </div>
  8176. <div class="toolSort" v-if="toolType == 1">
  8177. <div
  8178. class="tool"
  8179. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8180. @click="addTools2(7)"
  8181. >
  8182. <div class="whiteBIcon">
  8183. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8184. <div style="margin: 5px 0">{{ lang.ssMindGrid }}</div>
  8185. </div>
  8186. <div class="check">
  8187. <div
  8188. v-if="checktoolArray.indexOf(7) == -1"
  8189. class="noChoose"
  8190. ></div>
  8191. <div v-else class="isChoose"></div>
  8192. </div>
  8193. </div>
  8194. <div
  8195. class="tool"
  8196. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8197. @click="addTools2(1)"
  8198. >
  8199. <div class="whiteBIcon">
  8200. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8201. <div style="margin: 5px 0">{{ lang.ssWhiteboard }}</div>
  8202. </div>
  8203. <div class="check">
  8204. <div
  8205. v-if="checktoolArray.indexOf(1) == -1"
  8206. class="noChoose"
  8207. ></div>
  8208. <div v-else class="isChoose"></div>
  8209. </div>
  8210. </div>
  8211. <div
  8212. class="tool"
  8213. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8214. @click="addTools2(52)"
  8215. >
  8216. <div class="whiteBIcon">
  8217. <img src="../assets/icon/fourthToolList/text.png" alt />
  8218. <div style="margin: 5px 0">{{ lang.ssDocument }}</div>
  8219. </div>
  8220. <div class="check">
  8221. <div
  8222. v-if="checktoolArray.indexOf(52) == -1"
  8223. class="noChoose"
  8224. ></div>
  8225. <div v-else class="isChoose"></div>
  8226. </div>
  8227. </div>
  8228. <div
  8229. class="tool"
  8230. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8231. @click="addTools2(3)"
  8232. >
  8233. <div class="whiteBIcon">
  8234. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8235. <div style="margin: 5px 0">{{ lang.ssMindMap }}</div>
  8236. </div>
  8237. <div class="check">
  8238. <div
  8239. v-if="checktoolArray.indexOf(3) == -1"
  8240. class="noChoose"
  8241. ></div>
  8242. <div v-else class="isChoose"></div>
  8243. </div>
  8244. </div>
  8245. <div
  8246. class="tool"
  8247. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8248. @click="addTools2(48)"
  8249. >
  8250. <div class="whiteBIcon">
  8251. <img src="../assets/icon/fourthToolList/table.png" alt />
  8252. <div style="margin: 5px 0">{{ lang.ssTable }}</div>
  8253. </div>
  8254. <div class="check">
  8255. <div
  8256. v-if="checktoolArray.indexOf(48) == -1"
  8257. class="noChoose"
  8258. ></div>
  8259. <div v-else class="isChoose"></div>
  8260. </div>
  8261. </div>
  8262. </div>
  8263. <div class="toolSort" v-if="toolType == 6">
  8264. <div v-show="tooC == 49">
  8265. <img
  8266. @click="addTools(tooC, toolIndex, taskCount)"
  8267. src="../assets/icon/fourthToolList/group.png"
  8268. alt
  8269. />
  8270. <div style="margin: 5px 0">{{ lang.ssStudentGroup }}</div>
  8271. </div>
  8272. </div>
  8273. <div class="toolSort" v-if="toolType == 2">
  8274. <div
  8275. class="tool"
  8276. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8277. @click="addTools2(16)"
  8278. >
  8279. <div class="whiteBIcon">
  8280. <img src="../assets/icon/thirdToolList/work.png" alt />
  8281. <div style="margin: 5px 0">{{ lang.ssHomework }}</div>
  8282. </div>
  8283. <div class="check">
  8284. <div
  8285. v-if="checktoolArray.indexOf(16) == -1"
  8286. class="noChoose"
  8287. ></div>
  8288. <div v-else class="isChoose"></div>
  8289. </div>
  8290. </div>
  8291. <div
  8292. class="tool"
  8293. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8294. @click="addTools2(50)"
  8295. >
  8296. <div class="whiteBIcon">
  8297. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8298. <div style="margin: 5px 0">{{ lang.ssBatchUpload }}</div>
  8299. </div>
  8300. <div class="check">
  8301. <div
  8302. v-if="checktoolArray.indexOf(50) == -1"
  8303. class="noChoose"
  8304. ></div>
  8305. <div v-else class="isChoose"></div>
  8306. </div>
  8307. </div>
  8308. </div>
  8309. <div class="toolSort" v-if="toolType == 3">
  8310. <div
  8311. class="tool"
  8312. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8313. @click="addTools2(18)"
  8314. >
  8315. <div class="whiteBIcon">
  8316. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8317. <div style="margin: 5px 0">{{ lang.ssTraining }}</div>
  8318. </div>
  8319. <div class="check">
  8320. <div
  8321. v-if="checktoolArray.indexOf(18) == -1"
  8322. class="noChoose"
  8323. ></div>
  8324. <div v-else class="isChoose"></div>
  8325. </div>
  8326. </div>
  8327. <div
  8328. class="tool"
  8329. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8330. @click="addTools2(21)"
  8331. >
  8332. <div class="whiteBIcon">
  8333. <img src="../assets/icon/fourthToolList/program.png" alt />
  8334. <div style="margin: 5px 0">{{ lang.ssAiotBlockly }}</div>
  8335. </div>
  8336. <div class="check">
  8337. <div
  8338. v-if="checktoolArray.indexOf(21) == -1"
  8339. class="noChoose"
  8340. ></div>
  8341. <div v-else class="isChoose"></div>
  8342. </div>
  8343. </div>
  8344. <div
  8345. class="tool"
  8346. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8347. @click="addTools2(23)"
  8348. >
  8349. <div class="whiteBIcon">
  8350. <img
  8351. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8352. alt
  8353. />
  8354. <div style="margin: 5px 0">{{ lang.ssAiPython }}</div>
  8355. </div>
  8356. <div class="check">
  8357. <div
  8358. v-if="checktoolArray.indexOf(23) == -1"
  8359. class="noChoose"
  8360. ></div>
  8361. <div v-else class="isChoose"></div>
  8362. </div>
  8363. </div>
  8364. <div
  8365. class="tool"
  8366. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8367. @click="addTools2(24)"
  8368. >
  8369. <div class="whiteBIcon">
  8370. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8371. <div style="margin: 5px 0">{{ lang.ssAiBlockly }}</div>
  8372. </div>
  8373. <div class="check">
  8374. <div
  8375. v-if="checktoolArray.indexOf(24) == -1"
  8376. class="noChoose"
  8377. ></div>
  8378. <div v-else class="isChoose"></div>
  8379. </div>
  8380. </div>
  8381. <div
  8382. class="tool"
  8383. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8384. @click="addTools2(32)"
  8385. >
  8386. <div class="whiteBIcon">
  8387. <img src="../assets/icon/thirdToolList/code.png" alt />
  8388. <div style="margin: 5px 0">{{ lang.ssCodeEdit }}</div>
  8389. </div>
  8390. <div class="check">
  8391. <div
  8392. v-if="checktoolArray.indexOf(32) == -1"
  8393. class="noChoose"
  8394. ></div>
  8395. <div v-else class="isChoose"></div>
  8396. </div>
  8397. </div>
  8398. <div
  8399. class="tool"
  8400. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8401. @click="addTools2(57)"
  8402. >
  8403. <div class="whiteBIcon">
  8404. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8405. <div style="margin: 5px 0">{{ lang.ssCocoPi }}</div>
  8406. </div>
  8407. <div class="check">
  8408. <div
  8409. v-if="checktoolArray.indexOf(57) == -1"
  8410. class="noChoose"
  8411. ></div>
  8412. <div v-else class="isChoose"></div>
  8413. </div>
  8414. </div>
  8415. <div
  8416. class="tool"
  8417. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8418. @click="addTools2(63)"
  8419. >
  8420. <div class="whiteBIcon">
  8421. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8422. <div style="margin: 5px 0">{{ lang.ssTurtle }}</div>
  8423. </div>
  8424. <div class="check">
  8425. <div
  8426. v-if="checktoolArray.indexOf(63) == -1"
  8427. class="noChoose"
  8428. ></div>
  8429. <div v-else class="isChoose"></div>
  8430. </div>
  8431. </div>
  8432. <div
  8433. class="tool"
  8434. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8435. @click="addTools2(71)"
  8436. >
  8437. <div class="whiteBIcon">
  8438. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  8439. <div style="margin: 5px 0">{{ lang.ssAiAgent }}</div>
  8440. </div>
  8441. <div class="check">
  8442. <div
  8443. v-if="checktoolArray.indexOf(71) == -1"
  8444. class="noChoose"
  8445. ></div>
  8446. <div v-else class="isChoose"></div>
  8447. </div>
  8448. </div>
  8449. </div>
  8450. <div class="toolSort" v-if="toolType == 7">
  8451. <div
  8452. class="tool"
  8453. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8454. @click="addTools2(40)"
  8455. >
  8456. <div class="whiteBIcon">
  8457. <img src="../assets/icon/secondToolList/eval.png" alt />
  8458. <div style="margin: 5px 0">{{ lang.ssPersonalEval }}</div>
  8459. </div>
  8460. <div class="check">
  8461. <div
  8462. v-if="checktoolArray.indexOf(40) == -1"
  8463. class="noChoose"
  8464. ></div>
  8465. <div v-else class="isChoose"></div>
  8466. </div>
  8467. </div>
  8468. </div>
  8469. <div class="toolSort" v-if="toolType == 5">
  8470. <div
  8471. class="tool"
  8472. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8473. @click="addTools2(28)"
  8474. >
  8475. <div class="whiteBIcon">
  8476. <img src="../assets/icon/secondToolList/translation.png" alt />
  8477. <div style="margin: 5px 0">{{ lang.ssTranslate }}</div>
  8478. </div>
  8479. <div class="check">
  8480. <div
  8481. v-if="checktoolArray.indexOf(28) == -1"
  8482. class="noChoose"
  8483. ></div>
  8484. <div v-else class="isChoose"></div>
  8485. </div>
  8486. </div>
  8487. <div
  8488. class="tool"
  8489. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8490. @click="addTools2(31)"
  8491. >
  8492. <div class="whiteBIcon">
  8493. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8494. <div style="margin: 5px 0">{{ lang.ssDigitalBoard }}</div>
  8495. </div>
  8496. <div class="check">
  8497. <div
  8498. v-if="checktoolArray.indexOf(31) == -1"
  8499. class="noChoose"
  8500. ></div>
  8501. <div v-else class="isChoose"></div>
  8502. </div>
  8503. </div>
  8504. <div
  8505. class="tool"
  8506. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8507. @click="addTools2(39)"
  8508. >
  8509. <div class="whiteBIcon">
  8510. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8511. <div style="margin: 5px 0">GeoGebra</div>
  8512. </div>
  8513. <div class="check">
  8514. <div
  8515. v-if="checktoolArray.indexOf(39) == -1"
  8516. class="noChoose"
  8517. ></div>
  8518. <div v-else class="isChoose"></div>
  8519. </div>
  8520. </div>
  8521. <div
  8522. class="tool"
  8523. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8524. @click="addTools2(66)"
  8525. >
  8526. <div class="whiteBIcon">
  8527. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8528. <div style="margin: 5px 0">{{ lang.ssFormula }}</div>
  8529. </div>
  8530. <div class="check">
  8531. <div
  8532. v-if="checktoolArray.indexOf(66) == -1"
  8533. class="noChoose"
  8534. ></div>
  8535. <div v-else class="isChoose"></div>
  8536. </div>
  8537. </div>
  8538. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8539. <div class="whiteBIcon" @click="addTools2(67)">
  8540. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8541. <div style="margin: 5px 0">分子结构</div>
  8542. </div>
  8543. <div class="check" @click="addTools2(67)">
  8544. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8545. <div v-else class="isChoose"></div>
  8546. </div>
  8547. </div> -->
  8548. <div
  8549. class="tool"
  8550. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8551. @click="addTools2(68)"
  8552. >
  8553. <div class="whiteBIcon">
  8554. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8555. <div style="margin: 5px 0">{{ lang.ssTimeline }}</div>
  8556. </div>
  8557. <div class="check">
  8558. <div
  8559. v-if="checktoolArray.indexOf(68) == -1"
  8560. class="noChoose"
  8561. ></div>
  8562. <div v-else class="isChoose"></div>
  8563. </div>
  8564. </div>
  8565. <!-- <div
  8566. class="tool"
  8567. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8568. @click="addTools2(69)"
  8569. >
  8570. <div class="whiteBIcon">
  8571. <img src="../assets/icon/secondToolList/english.png" alt />
  8572. <div style="margin: 5px 0">{{ lang.ssEnglishWrite }}</div>
  8573. </div>
  8574. <div class="check">
  8575. <div
  8576. v-if="checktoolArray.indexOf(69) == -1"
  8577. class="noChoose"
  8578. ></div>
  8579. <div v-else class="isChoose"></div>
  8580. </div>
  8581. </div> -->
  8582. </div>
  8583. <div class="toolSort" v-if="toolType == 4">
  8584. <div
  8585. class="tool"
  8586. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8587. @click="addTools2(26)"
  8588. >
  8589. <div class="whiteBIcon">
  8590. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8591. <div style="margin: 5px 0">{{ lang.ssCourseDesignLabel }}</div>
  8592. </div>
  8593. <div class="check">
  8594. <div
  8595. v-if="checktoolArray.indexOf(26) == -1"
  8596. class="noChoose"
  8597. ></div>
  8598. <div v-else class="isChoose"></div>
  8599. </div>
  8600. </div>
  8601. <div
  8602. class="tool"
  8603. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8604. @click="addTools2(25)"
  8605. >
  8606. <div class="whiteBIcon">
  8607. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8608. <div style="margin: 5px 0">{{ lang.ssGoalManageLabel }}</div>
  8609. </div>
  8610. <div class="check">
  8611. <div
  8612. v-if="checktoolArray.indexOf(25) == -1"
  8613. class="noChoose"
  8614. ></div>
  8615. <div v-else class="isChoose"></div>
  8616. </div>
  8617. </div>
  8618. </div>
  8619. </div>
  8620. </div>
  8621. <span
  8622. slot="footer"
  8623. class="dialog-footer"
  8624. style="display: block; text-align: center; padding: 0 0 10px 0"
  8625. >
  8626. <el-button @click="toolDialogVisible = false">{{ lang.ssCancel }}</el-button>
  8627. <el-button type="primary" @click.stop="addToolChoose">{{ lang.ssConfirm }}</el-button>
  8628. </span>
  8629. </div>
  8630. <div
  8631. v-if="replyDialogVisible == true"
  8632. class="addDialogCss"
  8633. v-el-drag-dialog
  8634. >
  8635. <div class="pzTop">
  8636. <div class="teacherPz">
  8637. <div class="teacherPzImg">
  8638. <img src="../assets/icon/teacherPz.png" alt="" />
  8639. </div>
  8640. <div style="margin-left: 10px; height: 25px">{{ lang.ssAddReply }}</div>
  8641. </div>
  8642. <div @click="replyDialogVisible = false">
  8643. <img src="../assets/close1.png" class="pzClose" alt="" />
  8644. </div>
  8645. </div>
  8646. <div class="addPzBox">
  8647. <!-- <div class="addPzCheck">
  8648. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8649. >{{ lang.ssText }}</span
  8650. >
  8651. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8652. >{{ lang.ssAudio }}</span
  8653. >
  8654. </div> -->
  8655. <div style="height: calc(100% - 50px)">
  8656. <editor-bar
  8657. class="binfo_input pzConText"
  8658. style="width: 100% !important; margin: 0 auto"
  8659. :placeholder="lang.ssEnterReply"
  8660. v-model="reply"
  8661. @change="change"
  8662. ></editor-bar>
  8663. </div>
  8664. <div class="addTextCss" @click="addHf">{{ lang.ssConfirm }}</div>
  8665. </div>
  8666. </div>
  8667. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8668. <div class="pzTop">
  8669. <div class="teacherPz">
  8670. <div class="teacherPzImg">
  8671. <img src="../assets/icon/teacherPz.png" alt="" />
  8672. </div>
  8673. <div style="margin-left: 10px; height: 25px">{{ lang.ssTeacherComment }}</div>
  8674. </div>
  8675. <div @click="addPzDialog = false">
  8676. <img src="../assets/close1.png" class="pzClose" alt="" />
  8677. </div>
  8678. </div>
  8679. <div class="addPzBox">
  8680. <div class="addPzCheck">
  8681. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8682. >{{ lang.ssText }}</span
  8683. >
  8684. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8685. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8686. >{{ lang.ssAudio }}</span
  8687. >
  8688. </div>
  8689. <div style="height: calc(100% - 95px)">
  8690. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8691. v-if="pzType == 1"></textarea> -->
  8692. <editor-bar
  8693. class="binfo_input pzConText"
  8694. style="width: 100% !important"
  8695. :placeholder="lang.ssEnterTaskDesc"
  8696. v-model="pzConText"
  8697. @change="change"
  8698. v-if="pzType == 1"
  8699. ></editor-bar>
  8700. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8701. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8702. <div @click="addImg($event)">
  8703. <el-button type="primary">{{ lang.ssUploadImage }}</el-button>
  8704. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8705. @change="beforeUpload1($event, 4)" />
  8706. </div>
  8707. </div> -->
  8708. </div>
  8709. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8710. {{ lang.ssConfirm }}
  8711. </div>
  8712. </div>
  8713. </div>
  8714. <div v-if="proVisible" class="mask">
  8715. <div class="progressBox">
  8716. <!-- <div id="closePro" class="closeCss">
  8717. <img src="../assets/icon/close.png" alt />
  8718. </div> -->
  8719. <div class="lbox">
  8720. <img src="../assets/loading.gif" />{{ lang.ssUploading }}
  8721. </div>
  8722. <div style="margin-bottom: 10px">
  8723. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8724. </div>
  8725. <el-progress
  8726. :text-inside="true"
  8727. :stroke-width="20"
  8728. :percentage="progress"
  8729. style="width: 80%"
  8730. ></el-progress>
  8731. </div>
  8732. </div>
  8733. <div v-if="proVisible2" class="mask">
  8734. <div class="progressBox">
  8735. <div class="lbox">
  8736. <img src="../assets/loading.gif" />{{ lang.ssUploading }}
  8737. </div>
  8738. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8739. </div>
  8740. </div>
  8741. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8742. <img width="100%" :src="dialogImageUrl" alt />
  8743. </el-dialog>
  8744. <el-dialog
  8745. :title="noteName != '' ? noteName : lang.ssViewSurvey"
  8746. :visible.sync="dialogVisible5"
  8747. :append-to-body="true"
  8748. width="1000px"
  8749. :before-close="handleClose"
  8750. class="dialog_diy dialog_diy3"
  8751. >
  8752. <div>
  8753. <div
  8754. class="a_add_title"
  8755. style="
  8756. display: flex;
  8757. flex-direction: row;
  8758. align-items: center;
  8759. justify-content: center;
  8760. "
  8761. >
  8762. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitleColon }}</div>
  8763. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8764. </div>
  8765. <div class="a_addBox">
  8766. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8767. {{ lang.ssQuestionContent }}
  8768. </div>
  8769. <div
  8770. class="a_add_box"
  8771. v-for="(item1, index1) in askJson.askCount"
  8772. :key="index1"
  8773. >
  8774. <div class="a_add_head">
  8775. <div style="display: flex">
  8776. <span class="askIndex"> {{ index1 + 1 }}</span>
  8777. <div>{{ lang.ssQuestionColon }}{{ askJson.askJson[index1].askstitle }}</div>
  8778. </div>
  8779. <img
  8780. v-if="askJson.askJson[index1].img"
  8781. :src="askJson.askJson[index1].img"
  8782. style="height: 300px; margin-top: 10px; max-width: 100%"
  8783. />
  8784. </div>
  8785. <div class="a_add_body">
  8786. <div class="a_add_input">
  8787. <el-radio-group
  8788. v-model="radio[index1]"
  8789. v-if="
  8790. askJson.askJson[index1].type == '1' ||
  8791. !askJson.askJson[index1].type
  8792. "
  8793. >
  8794. <el-radio
  8795. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8796. .checkList"
  8797. :key="checkIndex"
  8798. :label="checkIndex"
  8799. :disabled="isAnswer"
  8800. class="redioStyle"
  8801. ><span v-html="item2"></span
  8802. ></el-radio>
  8803. </el-radio-group>
  8804. <el-checkbox-group
  8805. v-model="radio[index1]"
  8806. v-if="askJson.askJson[index1].type == '2'"
  8807. >
  8808. <el-checkbox
  8809. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8810. .checkList"
  8811. :key="checkIndex1"
  8812. :label="checkIndex1"
  8813. :disabled="isAnswer"
  8814. class="redioStyle"
  8815. ><span v-html="item2"></span>
  8816. </el-checkbox>
  8817. </el-checkbox-group>
  8818. </div>
  8819. </div>
  8820. </div>
  8821. </div>
  8822. </div>
  8823. <span slot="footer" class="dialog-footer">
  8824. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8825. >{{lang.ssCancelBtn}}</el-button
  8826. >
  8827. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8828. >{{lang.ssConfirmBtn}}</el-button
  8829. >
  8830. </span>
  8831. </el-dialog>
  8832. <el-dialog
  8833. :title="noteName != '' ? noteName : lang.ssViewSurvey"
  8834. :visible.sync="dialogVisible5Teacher"
  8835. :append-to-body="true"
  8836. width="1000px"
  8837. :before-close="handleClose"
  8838. class="dialog_diy dialog_diy3"
  8839. >
  8840. <div>
  8841. <div class="w_name">
  8842. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  8843. </div>
  8844. <div
  8845. class="a_add_title"
  8846. style="
  8847. display: flex;
  8848. flex-direction: row;
  8849. align-items: center;
  8850. justify-content: center;
  8851. "
  8852. >
  8853. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitleColon }}</div>
  8854. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8855. </div>
  8856. <div class="a_addBox">
  8857. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8858. {{ lang.ssQuestionContent }}
  8859. </div>
  8860. <div
  8861. class="a_add_box"
  8862. v-for="(item1, index1) in askJson.askCount"
  8863. :key="index1"
  8864. >
  8865. <div class="a_add_head">
  8866. <div style="display: flex">
  8867. <span class="askIndex">{{ index1 + 1 }}</span>
  8868. <div>{{ lang.ssQuestionColon }}{{ askJson.askJson[index1].askstitle }}</div>
  8869. </div>
  8870. <img
  8871. v-if="askJson.askJson[index1].img"
  8872. :src="askJson.askJson[index1].img"
  8873. style="height: 300px; margin-top: 10px; max-width: 100%"
  8874. />
  8875. </div>
  8876. <div class="a_add_body">
  8877. <div class="a_add_input">
  8878. <el-radio-group
  8879. v-model="radio[index1]"
  8880. v-if="
  8881. askJson.askJson[index1].type == '1' ||
  8882. !askJson.askJson[index1].type
  8883. "
  8884. >
  8885. <el-radio
  8886. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8887. .checkList"
  8888. :key="checkIndex"
  8889. :label="checkIndex"
  8890. :disabled="isAnswer"
  8891. class="redioStyle"
  8892. ><span v-html="item2"></span
  8893. ></el-radio>
  8894. </el-radio-group>
  8895. <el-checkbox-group
  8896. v-model="radio[index1]"
  8897. v-if="askJson.askJson[index1].type == '2'"
  8898. >
  8899. <el-checkbox
  8900. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8901. .checkList"
  8902. :key="checkIndex1"
  8903. :label="checkIndex1"
  8904. :disabled="isAnswer"
  8905. class="redioStyle"
  8906. ><span v-html="item2"></span>
  8907. </el-checkbox>
  8908. </el-checkbox-group>
  8909. </div>
  8910. </div>
  8911. </div>
  8912. </div>
  8913. </div>
  8914. <span slot="footer" class="dialog-footer">
  8915. <el-button
  8916. @click="dialogVisible5Teacher = false"
  8917. v-show="noteName == ''"
  8918. >{{lang.ssCancelBtn}}</el-button
  8919. >
  8920. <el-button
  8921. type="primary"
  8922. @click="addStudentAskTeacher"
  8923. v-show="noteName == ''"
  8924. >{{lang.ssConfirmBtn}}</el-button
  8925. >
  8926. </span>
  8927. </el-dialog>
  8928. <el-dialog
  8929. :title="noteName != '' ? noteName : lang.ssViewChoice"
  8930. :visible.sync="dialogVisibleChoice"
  8931. :append-to-body="true"
  8932. width="1000px"
  8933. :before-close="handleClose"
  8934. class="dialog_diy dialog_diy3"
  8935. >
  8936. <div>
  8937. <!-- <div class="a_add_title" style="
  8938. display: flex;
  8939. flex-direction: row;
  8940. align-items: center;
  8941. justify-content: center;
  8942. ">
  8943. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitleColon }}</div>
  8944. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  8945. </div> -->
  8946. <div class="a_addBox">
  8947. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8948. {{ lang.ssQuestionContent }}
  8949. </div>
  8950. <div
  8951. class="a_add_box"
  8952. v-for="(item1, index1) in testJson.testCount"
  8953. :key="index1"
  8954. >
  8955. <div class="a_add_head">
  8956. <div style="display: flex;">
  8957. <span class="askIndex">{{ index1 + 1 }}</span>
  8958. <div
  8959. v-if="testJson.testJson[index1].type == '1'"
  8960. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  8961. >
  8962. {{ lang.ssSingleChoice }}
  8963. </div>
  8964. <div
  8965. v-if="testJson.testJson[index1].type == '2'"
  8966. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  8967. >
  8968. {{ lang.ssMultiChoice }}
  8969. </div>
  8970. <div class="renderedFor"><span>{{lang.ssQuestionColon}}</span> <span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  8971. </div>
  8972. <img
  8973. v-if="testJson.testJson[index1].img"
  8974. :src="testJson.testJson[index1].img"
  8975. style="height: 300px; margin-top: 10px; max-width: 100%"
  8976. />
  8977. </div>
  8978. <div
  8979. class="timuImgBox"
  8980. v-if="
  8981. testJson.testJson[index1].timuList &&
  8982. testJson.testJson[index1].timuList.length
  8983. "
  8984. >
  8985. <div
  8986. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8987. :key="tIndex"
  8988. class="timuImg"
  8989. @click.stop="previewImg(timg.src)"
  8990. >
  8991. <img :src="timg.src" alt="" />
  8992. </div>
  8993. </div>
  8994. <div class="a_add_body">
  8995. <div class="a_add_input">
  8996. <el-radio-group
  8997. v-model="radio[index1]"
  8998. v-if="testJson.testJson[index1].type == '1'"
  8999. >
  9000. <div class="radioBox">
  9001. <el-radio
  9002. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9003. .checkList"
  9004. :key="checkIndex"
  9005. :label="checkIndex"
  9006. :disabled="isAnswer"
  9007. class="redioStyle"
  9008. >
  9009. <div
  9010. style="margin-right: 10px"
  9011. v-if="item2 && item2.imgType && item2.imgType == 1"
  9012. >
  9013. <div class="inImg" @click.stop="previewImg(item2.src)">
  9014. <img :src="item2.src" alt="" />
  9015. </div>
  9016. </div>
  9017. <span v-else v-html="item2"></span>
  9018. </el-radio>
  9019. </div>
  9020. </el-radio-group>
  9021. <el-checkbox-group
  9022. v-model="radio[index1]"
  9023. v-if="testJson.testJson[index1].type == '2'"
  9024. >
  9025. <div class="radioBox">
  9026. <el-checkbox
  9027. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9028. .checkList"
  9029. :key="checkIndex"
  9030. :label="checkIndex"
  9031. :disabled="isAnswer"
  9032. class="redioStyle"
  9033. >
  9034. <div
  9035. style="margin-right: 10px"
  9036. v-if="item2 && item2.imgType && item2.imgType == 1"
  9037. >
  9038. <div class="inImg" @click.stop="previewImg(item2.src)">
  9039. <img :src="item2.src" alt="" />
  9040. </div>
  9041. </div>
  9042. <span v-else v-html="item2"></span>
  9043. </el-checkbox>
  9044. </div>
  9045. </el-checkbox-group>
  9046. </div>
  9047. </div>
  9048. </div>
  9049. </div>
  9050. </div>
  9051. <span slot="footer" class="dialog-footer">
  9052. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9053. >{{lang.ssCancelBtn}}</el-button
  9054. >
  9055. <el-button
  9056. type="primary"
  9057. @click="addStudentTest"
  9058. v-show="noteName == ''"
  9059. >{{lang.ssConfirmBtn}}</el-button
  9060. >
  9061. </span>
  9062. </el-dialog>
  9063. <el-dialog
  9064. :title="noteName != '' ? noteName : lang.ssViewChoice"
  9065. :visible.sync="dialogVisibleChoiceTeacher"
  9066. :append-to-body="true"
  9067. width="1000px"
  9068. :before-close="handleClose"
  9069. class="dialog_diy dialog_diy3"
  9070. >
  9071. <div>
  9072. <div class="w_name">
  9073. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  9074. </div>
  9075. <div class="a_addBox">
  9076. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9077. {{ lang.ssQuestionContent }}
  9078. </div>
  9079. <div
  9080. class="a_add_box"
  9081. v-for="(item1, index1) in testJson.testCount"
  9082. :key="index1"
  9083. >
  9084. <div class="a_add_head">
  9085. <div style="display: flex">
  9086. <span class="askIndex">{{ index1 + 1 }}</span>
  9087. <div
  9088. v-if="testJson.testJson[index1].type == '1'"
  9089. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9090. >
  9091. {{ lang.ssSingleChoice }}
  9092. </div>
  9093. <div
  9094. v-if="testJson.testJson[index1].type == '2'"
  9095. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9096. >
  9097. {{ lang.ssMultiChoice }}
  9098. </div>
  9099. <div>{{ lang.ssQuestionColon }}{{ testJson.testJson[index1].teststitle }}</div>
  9100. </div>
  9101. <img
  9102. v-if="testJson.testJson[index1].img"
  9103. :src="testJson.testJson[index1].img"
  9104. style="height: 300px; margin-top: 10px; max-width: 100%"
  9105. />
  9106. </div>
  9107. <div
  9108. class="timuImgBox"
  9109. v-if="
  9110. testJson.testJson[index1].timuList &&
  9111. testJson.testJson[index1].timuList.length
  9112. "
  9113. >
  9114. <div
  9115. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9116. :key="tIndex"
  9117. class="timuImg"
  9118. @click.stop="previewImg(timg.src)"
  9119. >
  9120. <img :src="timg.src" alt="" />
  9121. </div>
  9122. </div>
  9123. <div class="a_add_body">
  9124. <div class="a_add_input">
  9125. <el-radio-group
  9126. v-model="radio[index1]"
  9127. v-if="testJson.testJson[index1].type == '1'"
  9128. >
  9129. <div class="radioBox">
  9130. <el-radio
  9131. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9132. .checkList"
  9133. :key="checkIndex"
  9134. :label="checkIndex"
  9135. :disabled="isAnswer"
  9136. class="redioStyle"
  9137. >
  9138. <div
  9139. style="margin-right: 10px"
  9140. v-if="item2 && item2.imgType && item2.imgType == 1"
  9141. >
  9142. <div class="inImg" @click.stop="previewImg(item2.src)">
  9143. <img :src="item2.src" alt="" />
  9144. </div>
  9145. </div>
  9146. <span v-else v-html="item2"></span>
  9147. </el-radio>
  9148. </div>
  9149. </el-radio-group>
  9150. <el-checkbox-group
  9151. v-model="radio[index1]"
  9152. v-if="testJson.testJson[index1].type == '2'"
  9153. >
  9154. <div class="radioBox">
  9155. <el-checkbox
  9156. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9157. .checkList"
  9158. :key="checkIndex"
  9159. :label="checkIndex"
  9160. :disabled="isAnswer"
  9161. class="redioStyle"
  9162. >
  9163. <div
  9164. style="margin-right: 10px"
  9165. v-if="item2 && item2.imgType && item2.imgType == 1"
  9166. >
  9167. <div class="inImg" @click.stop="previewImg(item2.src)">
  9168. <img :src="item2.src" alt="" />
  9169. </div>
  9170. </div>
  9171. <span v-else v-html="item2"></span>
  9172. </el-checkbox>
  9173. </div>
  9174. </el-checkbox-group>
  9175. </div>
  9176. </div>
  9177. </div>
  9178. </div>
  9179. </div>
  9180. <span slot="footer" class="dialog-footer">
  9181. <el-button
  9182. @click="dialogVisibleChoiceTeacher = false"
  9183. v-show="noteName == ''"
  9184. >{{lang.ssCancelBtn}}</el-button
  9185. >
  9186. <el-button
  9187. type="primary"
  9188. @click="addStudentTestTeacher"
  9189. v-show="noteName == ''"
  9190. >{{lang.ssConfirmBtn}}</el-button
  9191. >
  9192. </span>
  9193. </el-dialog>
  9194. <el-dialog
  9195. :title="lang.ssViewRichText"
  9196. :visible.sync="dialogVisible1"
  9197. :append-to-body="true"
  9198. width="500px"
  9199. :before-close="handleClose"
  9200. class="dialog_diy textCss"
  9201. >
  9202. <el-form style="font-size: 20px">
  9203. <el-form-item :label="lang.ssTextTitle" class="textTitle">
  9204. <div style="font-size: 20px">{{ text.name }}</div>
  9205. </el-form-item>
  9206. <div>{{ lang.ssRichTextContent }}</div>
  9207. <div
  9208. v-html="text.url"
  9209. style="font-size: 18px; padding: 40px 0 0 0"
  9210. ></div>
  9211. </el-form>
  9212. <span slot="footer" class="dialog-footer">
  9213. <el-button type="primary" @click="dialogVisible1 = false"
  9214. >{{ lang.ssConfirmBtn }}</el-button
  9215. >
  9216. </span>
  9217. </el-dialog>
  9218. <el-dialog
  9219. :title="lang.ssFilePreview"
  9220. :visible.sync="dialogVisible3"
  9221. width="50%"
  9222. :before-close="handleClose"
  9223. class="dialog_diy"
  9224. :class="{ fullStyle: full }"
  9225. >
  9226. <div slot="title" class="header-title">
  9227. <div style="color: #fff">{{ lang.ssFilePreview }}</div>
  9228. <div style="position: absolute; top: 19px; right: 50px">
  9229. <img
  9230. src="../assets/full.png"
  9231. style="height: 16px; cursor: pointer"
  9232. alt=""
  9233. @click="fullTools"
  9234. />
  9235. </div>
  9236. </div>
  9237. <pdf
  9238. v-if="showPDF"
  9239. :pdfUrl="pptImgUrl"
  9240. style="width: 100%; height: 520px; overflow: auto"
  9241. :class="{ fullStyle: full }"
  9242. ></pdf>
  9243. <iframe
  9244. v-else
  9245. :src="pptImgUrl"
  9246. frameborder="0"
  9247. width="100%"
  9248. height="600"
  9249. :class="{ fullStyle: full }"
  9250. ></iframe>
  9251. </el-dialog>
  9252. <el-dialog
  9253. :title="lang.ssFilePreview"
  9254. :visible.sync="dialogVisible6"
  9255. width="50%"
  9256. :before-close="handleClose"
  9257. class="dialog_diy"
  9258. >
  9259. <iframe
  9260. :src="pptImgUrl1"
  9261. frameborder="0"
  9262. width="100%"
  9263. height="600"
  9264. ></iframe>
  9265. </el-dialog>
  9266. <el-dialog
  9267. :title="lang.ssTip"
  9268. :visible.sync="dialogVisible4"
  9269. :append-to-body="true"
  9270. width="800px"
  9271. :before-close="handleClose"
  9272. class="dialog_diy notice"
  9273. >
  9274. <div>{{ lang.ssFunctionNotOpen }}</div>
  9275. <el-button type="primary" @click="dialogVisible4 = false">{{ lang.ssConfirmBtn }}</el-button>
  9276. </el-dialog>
  9277. <el-dialog
  9278. :title="lang.ssQa"
  9279. :visible.sync="answerDialogVisible"
  9280. :append-to-body="true"
  9281. width="800px"
  9282. :before-close="handleClose"
  9283. class="dialog_diy"
  9284. >
  9285. <div>
  9286. <div
  9287. style="
  9288. display: flex;
  9289. flex-wrap: nowrap;
  9290. flex-direction: column;
  9291. position: relative;
  9292. "
  9293. >
  9294. <div class="queTop" style="padding: 20px 0 20px 0">
  9295. <div class="question">
  9296. <img src="../assets/icon/question.png" alt />
  9297. </div>
  9298. <div class="queTitle">
  9299. <div style="min-width: 60px">{{ lang.ssQuestionColon }}</div>
  9300. <div>{{ answerQ }}</div>
  9301. </div>
  9302. </div>
  9303. <div class="ediBottom">
  9304. <textarea
  9305. rows="6"
  9306. class="binfo_input"
  9307. cols
  9308. style="width: 95%; height: 120px"
  9309. v-model="questionAnswer"
  9310. ></textarea>
  9311. </div>
  9312. </div>
  9313. </div>
  9314. <div slot="footer">
  9315. <el-button @click="answerDialogVisible = false">{{lang.ssCancelBtn}}</el-button>
  9316. <el-button type="primary" @click="addQuestion">{{ lang.ssSubmit }}</el-button>
  9317. </div>
  9318. </el-dialog>
  9319. <el-dialog
  9320. :title="lang.ssQa"
  9321. :visible.sync="answerDialogVisibleTeacher"
  9322. :append-to-body="true"
  9323. width="800px"
  9324. :before-close="handleClose"
  9325. class="dialog_diy"
  9326. >
  9327. <div>
  9328. <div class="w_name">
  9329. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  9330. </div>
  9331. <div
  9332. style="
  9333. display: flex;
  9334. flex-wrap: nowrap;
  9335. flex-direction: column;
  9336. position: relative;
  9337. "
  9338. >
  9339. <div class="queTop" style="padding: 20px 0 20px 0">
  9340. <div class="question">
  9341. <img src="../assets/icon/question.png" alt />
  9342. </div>
  9343. <div class="queTitle">
  9344. <div style="min-width: 60px">{{ lang.ssQuestionColon }}</div>
  9345. <div>{{ answerQ }}</div>
  9346. </div>
  9347. </div>
  9348. <div class="ediBottom">
  9349. <textarea
  9350. rows="6"
  9351. class="binfo_input"
  9352. cols
  9353. style="width: 95%; height: 120px"
  9354. v-model="questionAnswer"
  9355. ></textarea>
  9356. </div>
  9357. </div>
  9358. </div>
  9359. <div slot="footer">
  9360. <el-button @click="answerDialogVisibleTeacher = false">{{lang.ssCancelBtn}}</el-button>
  9361. <el-button type="primary" @click="addQuestionTeacher">{{ lang.ssSubmit }}</el-button>
  9362. </div>
  9363. </el-dialog>
  9364. <el-dialog
  9365. :title="lang.ssCountdown"
  9366. :visible.sync="timeDialogVisible"
  9367. :append-to-body="true"
  9368. width="800px"
  9369. :before-close="handleClose"
  9370. class="dialog_diy"
  9371. >
  9372. <div>
  9373. <div style="margin-bottom: 20px; color: #999">
  9374. {{ lang.ssCountdownHint }}
  9375. </div>
  9376. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9377. </div>
  9378. <div slot="footer">
  9379. <el-button @click="timeDialogVisible = false">{{ lang.ssCloseBtn }}</el-button>
  9380. </div>
  9381. </el-dialog>
  9382. <el-dialog
  9383. :title="lang.ssPermissionSettings"
  9384. :visible.sync="juriVisible"
  9385. :append-to-body="true"
  9386. width="400px"
  9387. :before-close="handleClose"
  9388. class="dialog_diy"
  9389. >
  9390. <div>
  9391. <div class="open_box">
  9392. <div class="switch_box">
  9393. <span>{{ lang.ssAllowStudentViewAllWork }}</span>
  9394. <el-switch
  9395. v-model="sIsOpen"
  9396. active-text=""
  9397. class="switchCss"
  9398. @change="updateSLook"
  9399. ></el-switch>
  9400. </div>
  9401. <div
  9402. class="switch_box"
  9403. v-if="
  9404. (courseDetail.userid == userid ||
  9405. (courseDetail.course_teacher &&
  9406. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  9407. "
  9408. >
  9409. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9410. <span>{{ lang.ssProhibitStudentViewStage }}</span>
  9411. <el-switch
  9412. v-model="IsLookOpen"
  9413. active-text=""
  9414. class="switchCss"
  9415. @change="updateLookOpen"
  9416. ></el-switch>
  9417. </div>
  9418. <div class="switch_box" v-if="(courseDetail.userid == userid ||
  9419. (courseDetail.course_teacher &&
  9420. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen">
  9421. <span>{{ lang.ssEnableFollowMode }}</span>
  9422. <el-switch
  9423. v-model="IsFollow"
  9424. active-text=""
  9425. class="switchCss"
  9426. @change="updateFollow"
  9427. ></el-switch>
  9428. </div>
  9429. <div class="switch_box" v-if="courseDetail.userid == userid">
  9430. <span>{{ lang.ssAllowStudentViewContent }}</span>
  9431. <el-switch
  9432. v-model="IsStulook"
  9433. active-text=""
  9434. class="switchCss"
  9435. @change="updateIsStulook"
  9436. ></el-switch>
  9437. </div>
  9438. </div>
  9439. </div>
  9440. <div slot="footer">
  9441. <el-button
  9442. style="background: #409efe; color: #fff"
  9443. @click="juriVisible = false"
  9444. >{{ lang.ssCloseBtn }}</el-button
  9445. >
  9446. </div>
  9447. </el-dialog>
  9448. <el-dialog
  9449. :title="lang.ssViewVideo"
  9450. :visible.sync="videoVisible"
  9451. :append-to-body="true"
  9452. width="1000px"
  9453. :before-close="handleClose"
  9454. class="dialog_diy1"
  9455. >
  9456. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9457. <video-player
  9458. class="video-player vjs-custom-skin"
  9459. :playsinline="true"
  9460. :options="videoDetail"
  9461. @play="onPlayerPlay($event)"
  9462. style="width: 100%; height: 100%"
  9463. ></video-player>
  9464. </div>
  9465. <div slot="footer">
  9466. <el-button
  9467. style="background: #409efe; color: #fff"
  9468. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9469. >
  9470. {{ lang.ssCloseBtn }}</el-button
  9471. >
  9472. </div>
  9473. </el-dialog>
  9474. <el-dialog
  9475. :title="lang.ssViewDetails"
  9476. :visible.sync="commentDialogVisible"
  9477. :append-to-body="true"
  9478. width="800px"
  9479. :before-close="handleClose"
  9480. class="dialog_diy"
  9481. >
  9482. <div class="commentTop">
  9483. <div class="studentDetail">
  9484. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9485. <div class="nameAndTime">
  9486. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9487. <div>{{ commentDetail.time }}</div>
  9488. </div>
  9489. <div
  9490. class="returnBtn"
  9491. style="margin-left: auto; width: 80px"
  9492. v-if="
  9493. commentDetail.works &&
  9494. commentDetail.type == 0 &&
  9495. (tType == 1 || tType == 4)
  9496. "
  9497. @click="
  9498. showPicturePaint(
  9499. commentDetail.img ? commentDetail.img : commentDetail.works
  9500. )
  9501. "
  9502. >
  9503. {{ lang.ssTeacherComment }}
  9504. </div>
  9505. </div>
  9506. <div
  9507. class="worksAnswer"
  9508. v-if="commentDetail.works && commentDetail.type == 2"
  9509. >
  9510. {{ JSON.parse(commentDetail.works)[0].answer }}
  9511. </div>
  9512. <div
  9513. class="worksAnswer"
  9514. v-if="commentDetail.works && commentDetail.type == 1"
  9515. >
  9516. <img
  9517. src="../assets/teacherWork.png"
  9518. v-if="commentDetail.ateacher"
  9519. class="w_teachert"
  9520. />
  9521. <pdf
  9522. v-if="showPDF"
  9523. :pdfUrl="pptImgUrl"
  9524. style="width: 100%; height: 520px; overflow: auto"
  9525. :class="{ fullStyle: full }"
  9526. ></pdf>
  9527. <iframe
  9528. v-else
  9529. :src="pptImgUrl"
  9530. frameborder="0"
  9531. width="100%"
  9532. height="600"
  9533. :class="{ fullStyle: full }"
  9534. ></iframe>
  9535. </div>
  9536. <div
  9537. class="worksAnswer"
  9538. v-if="commentDetail.works && commentDetail.type == 0"
  9539. >
  9540. <img
  9541. src="../assets/teacherWork.png"
  9542. v-if="commentDetail.ateacher"
  9543. class="w_teachert"
  9544. style="right: 105px"
  9545. />
  9546. <img
  9547. :src="commentDetail.works"
  9548. alt=""
  9549. @click="previewImg(commentDetail.works)"
  9550. />
  9551. </div>
  9552. <div
  9553. class="worksAnswer"
  9554. v-if="commentDetail.works && commentDetail.type == 3"
  9555. >
  9556. <img
  9557. src="../assets/teacherWork.png"
  9558. v-if="commentDetail.ateacher"
  9559. class="w_teachert"
  9560. />
  9561. <video-player
  9562. class="video-player vjs-custom-skin"
  9563. :playsinline="true"
  9564. :options="videoDetail"
  9565. @play="onPlayerPlay($event)"
  9566. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9567. ></video-player>
  9568. </div>
  9569. <div
  9570. class="worksAnswer"
  9571. v-if="commentDetail.works && commentDetail.type == 10"
  9572. >
  9573. <div class="cont" v-html="commentDetail.works.text"></div>
  9574. </div>
  9575. <div
  9576. class="worksAnswer codeFileBox"
  9577. v-if="commentDetail.works && commentDetail.type == 12"
  9578. @click="downloadFile(commentDetail.works)"
  9579. >
  9580. <img src="../assets/icon/codeFile.png" />
  9581. <div>{{ lang.ssClickDownloadFile }}</div>
  9582. </div>
  9583. <div
  9584. class="worksAnswer codeFileBox"
  9585. v-if="commentDetail.works && commentDetail.type == 15"
  9586. @click="
  9587. openCocoPi(
  9588. 57,
  9589. commentIndexJson.toolIndex,
  9590. commentDetail.userid,
  9591. commentDetail.sName
  9592. )
  9593. "
  9594. >
  9595. <img src="../assets/icon/codeFile.png" />
  9596. <div>{{ lang.ssClickOpenCocoPi }}</div>
  9597. </div>
  9598. <div
  9599. class="worksAnswer"
  9600. v-if="commentDetail.works && commentDetail.type == 13"
  9601. >
  9602. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9603. </div>
  9604. <div
  9605. class="worksAnswer"
  9606. v-if="commentDetail.works && commentDetail.type == 4"
  9607. >
  9608. <div class="evalCss">
  9609. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  9610. <div class="middleBox" v-if="eScore.eStar">
  9611. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9612. <div class="nameAndrate">
  9613. <div>{{ e.value }}</div>
  9614. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9615. </div>
  9616. <div v-if="e.detail">{{ e.detail }}</div>
  9617. </div>
  9618. <div class="bz">
  9619. <textarea
  9620. disabled
  9621. rows="4"
  9622. class="pj"
  9623. style="
  9624. padding: 10px 5px;
  9625. width: 70%;
  9626. background: #f7f6f9;
  9627. font-size: 14px;
  9628. text-indent: 10px;
  9629. color: #000;
  9630. "
  9631. cols
  9632. v-model="eScore.eBzText"
  9633. :placeholder="lang.ssEnterEvalContent"
  9634. ></textarea>
  9635. </div>
  9636. </div>
  9637. </div>
  9638. </div>
  9639. <div class="comment">
  9640. <div class="commentList">
  9641. <div class="commentImg">
  9642. <img
  9643. @click="
  9644. isLikes(
  9645. commentDetail.wid,
  9646. userid,
  9647. 1,
  9648. null,
  9649. commentDetail.isLikes,
  9650. commentDetail.sName
  9651. )
  9652. "
  9653. :src="commentDetail.isLikes == true ? likes : noLikes"
  9654. alt=""
  9655. />
  9656. </div>
  9657. <div>{{ commentDetail.likesCount }}</div>
  9658. </div>
  9659. <div class="commentList">
  9660. <div class="commentImg">
  9661. <img src="../assets/icon/comment/comment.png" alt="" />
  9662. </div>
  9663. <div>{{ commentDetail.commentCount }}</div>
  9664. </div>
  9665. </div>
  9666. <div class="drawPBox" v-if="commentDetail.img">
  9667. <span>{{ lang.ssTeacherComment }}</span>
  9668. <img
  9669. :src="commentDetail.img"
  9670. alt=""
  9671. @click="previewImg(commentDetail.img)"
  9672. />
  9673. <span
  9674. class="deleteImg"
  9675. v-if="tType == 1 || tType == 4"
  9676. @click.stop="deletePicturePaint(commentDetail.wid)"
  9677. style="
  9678. font-size: 14px;
  9679. width: auto !important;
  9680. color: #b4b4b4;
  9681. top: unset;
  9682. bottom: 0;
  9683. border: none;
  9684. padding: 0;
  9685. height: auto !important;
  9686. margin: 0;
  9687. "
  9688. >{{ lang.ssDelete }}</span
  9689. >
  9690. </div>
  9691. </div>
  9692. <div class="commentBox">
  9693. <div class="pl">{{ lang.ssCommentColon }}</div>
  9694. <div style="max-height: 200px; overflow: auto">
  9695. <div
  9696. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9697. style="padding: 10px 0 0 0"
  9698. >
  9699. <div
  9700. class="studentDetail"
  9701. style="padding-top: 10px"
  9702. v-for="(co, coIndex) in commentDetail.commentJson"
  9703. :key="coIndex"
  9704. >
  9705. <div class="tx" style="min-width: 50px">
  9706. <img src="../assets/avatar.png" alt="" />
  9707. </div>
  9708. <div class="plPerson">
  9709. <div class="plName">
  9710. <div>{{ co.commentPeople }}</div>
  9711. <div style="margin-left: 5px">
  9712. {{ co.commentTime }}
  9713. </div>
  9714. <div
  9715. class="deleteComment"
  9716. v-if="userid == co.userid"
  9717. @click="deleteComment(co.wid)"
  9718. >
  9719. {{ lang.ssDelete }}
  9720. </div>
  9721. </div>
  9722. <div class="plContent">{{ co.commentText }}</div>
  9723. </div>
  9724. </div>
  9725. </div>
  9726. <div v-else style="padding: 10px 0 0 0">{{ lang.ssNoComments }}</div>
  9727. </div>
  9728. </div>
  9729. <div style="margin-top: 10px">
  9730. <div class="displayBox">
  9731. <div
  9732. style="
  9733. color: #556db4;
  9734. font-size: 14px;
  9735. font-weight: bold;
  9736. padding-bottom: 10px;
  9737. "
  9738. >
  9739. {{ lang.ssEvaluation }}
  9740. </div>
  9741. <div class="easy_comment" v-if="false">
  9742. <div
  9743. v-for="(p, pIndex) in PlTextList"
  9744. :key="pIndex"
  9745. @click="fastText(p, 1)"
  9746. >
  9747. {{ p }}
  9748. </div>
  9749. </div>
  9750. </div>
  9751. <div>
  9752. <textarea
  9753. rows="3"
  9754. class="pj"
  9755. style="padding: 10px 5px"
  9756. cols
  9757. v-model="commentText"
  9758. :placeholder="lang.ssEnterComment"
  9759. ></textarea>
  9760. </div>
  9761. </div>
  9762. <div slot="footer">
  9763. <el-button
  9764. @click="
  9765. (commentDialogVisible = false),
  9766. (commentIndexJson = {}),
  9767. videoDetail.sources && videoDetail.sources[0]
  9768. ? (videoDetail.sources[0].src = '')
  9769. : ''
  9770. "
  9771. >{{lang.ssCancelBtn}}</el-button
  9772. >
  9773. <el-button
  9774. type="primary"
  9775. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  9776. >{{lang.ssConfirmBtn}}</el-button
  9777. >
  9778. </div>
  9779. </el-dialog>
  9780. <el-dialog
  9781. :title="lang.ssViewDocument"
  9782. :visible.sync="fullDialogVisible"
  9783. :append-to-body="true"
  9784. width="100%"
  9785. :before-close="handleClose"
  9786. :show-close="false"
  9787. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  9788. >
  9789. <div slot="title" class="header-title">
  9790. <div v-if="fulltype == 4" style="color: #fff">{{ lang.ssAIApplication }}</div>
  9791. <div v-else style="color: #fff">{{ lang.ssViewDocument }}</div>
  9792. <div
  9793. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  9794. style="
  9795. cursor: pointer;
  9796. position: absolute;
  9797. top: 20px;
  9798. right: 20px;
  9799. color: #fff;
  9800. "
  9801. >
  9802. {{ lang.ssExitFullscreen }}
  9803. </div>
  9804. </div>
  9805. <div style="height: 100%;position: relative;">
  9806. <el-button
  9807. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  9808. size="medium"
  9809. type="primary"
  9810. @click="
  9811. () => {
  9812. (fullDialogVisible = false),
  9813. changeSplitScreenBehavior({ code: 99 });
  9814. }
  9815. "
  9816. style="
  9817. cursor: pointer;
  9818. position: absolute;
  9819. top: 10px;
  9820. right: 20px;
  9821. color: #fff;
  9822. "
  9823. >
  9824. {{ lang.ssExitFullscreen }}
  9825. </el-button>
  9826. <div
  9827. class="wheel"
  9828. v-if="fulltype == 1"
  9829. style="
  9830. box-shadow: 0 0 6px 1px #f2f2f2;
  9831. width: 100%;
  9832. height:100%;
  9833. background: #f1f1f1;
  9834. "
  9835. >
  9836. <div class="title" style="width: 100%; box-sizing: border-box">
  9837. {{ lang.ssViewDocument }}
  9838. </div>
  9839. <el-form class="textBox" style="height: 90%">
  9840. <el-form-item class="textTitle">
  9841. <div style="font-size: 22px">
  9842. {{ fullUrl.name }}
  9843. </div>
  9844. </el-form-item>
  9845. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9846. <div
  9847. v-html="fullUrl.url"
  9848. class="textContent"
  9849. style="height: auto"
  9850. ></div>
  9851. </el-form>
  9852. </div>
  9853. <div
  9854. class="wheel"
  9855. v-else-if="
  9856. (fulltype == 2 || fulltype == 4) &&
  9857. fullUrl.indexOf(
  9858. 'https://view.officeapps.live.com/op/view.aspx?src='
  9859. ) != -1
  9860. "
  9861. style="width: 100%;height:100%; margin: 0 auto"
  9862. >
  9863. <iframe
  9864. style="width: 100%; height: 100%; border: none"
  9865. :src="fullUrl"
  9866. ></iframe>
  9867. </div>
  9868. <!-- <iframe
  9869. v-else-if="fulltype == 2"
  9870. style="width: 100%; height: 100%; border: none"
  9871. :src="fullUrl"
  9872. security="restricted"
  9873. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9874. ></iframe> -->
  9875. <iframe
  9876. style="width: 100%; height: 100%; border: none"
  9877. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  9878. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo')!=-1)"
  9879. :src="fullUrl"
  9880. ></iframe>
  9881. <iframe
  9882. style="width: 100%; height: 100%; border: none"
  9883. security="restricted"
  9884. v-else-if="(fulltype == 2 || fulltype == 4)"
  9885. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9886. :src="fullUrl"
  9887. ></iframe>
  9888. <pdf
  9889. v-else-if="fulltype == 3"
  9890. :pdfUrl="fullUrl"
  9891. style="width: 100%; height: 100%; overflow: auto"
  9892. ></pdf>
  9893. <iframe
  9894. style="width: 100%; height: 100%; border: none"
  9895. security="restricted"
  9896. v-else-if="(fulltype == 16) && (fullUrl.indexOf('cocorobo')!=-1)"
  9897. :src="fullUrl"
  9898. ></iframe>
  9899. <iframe
  9900. style="width: 100%; height: 100%; border: none"
  9901. security="restricted"
  9902. v-else
  9903. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9904. :src="fullUrl"
  9905. ></iframe>
  9906. </div>
  9907. <!-- <div slot="footer">
  9908. <el-button @click="fullDialogVisible = false">{{ lang.ssCloseBtn }}</el-button>
  9909. </div> -->
  9910. </el-dialog>
  9911. <el-dialog
  9912. :title="lang.ssPersonalEval"
  9913. :visible.sync="studentEvalDialogVisible"
  9914. :append-to-body="true"
  9915. width="800px"
  9916. :before-close="handleClose"
  9917. class="dialog_diy"
  9918. >
  9919. <div class="evalCss">
  9920. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  9921. <div class="middleBox" v-if="eScore.eStar">
  9922. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9923. <div class="nameAndrate">
  9924. <div>{{ e.value }}</div>
  9925. <el-rate
  9926. v-model="eScore.eStar[eIndex]"
  9927. :disabled="isStar"
  9928. ></el-rate>
  9929. </div>
  9930. <div v-if="e.detail">{{ e.detail }}</div>
  9931. </div>
  9932. <div class="easy_comment" v-if="false">
  9933. <div
  9934. v-for="(p, pIndex) in PlTextList"
  9935. :key="pIndex"
  9936. @click="fastText(p, 2)"
  9937. >
  9938. {{ p }}
  9939. </div>
  9940. </div>
  9941. <div class="bz">
  9942. <textarea
  9943. :disabled="isStar"
  9944. rows="4"
  9945. class="pj"
  9946. style="
  9947. padding: 10px 5px;
  9948. width: 70%;
  9949. background: #f7f6f9;
  9950. font-size: 14px;
  9951. text-indent: 10px;
  9952. "
  9953. cols
  9954. v-model="eScore.eBzText"
  9955. :placeholder="lang.ssEnterEvalContent"
  9956. ></textarea>
  9957. </div>
  9958. </div>
  9959. </div>
  9960. <div slot="footer">
  9961. <el-button @click="studentEvalDialogVisible = false">{{lang.ssCancelBtn}}</el-button>
  9962. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9963. >{{lang.ssConfirmBtn}}</el-button
  9964. >
  9965. </div>
  9966. </el-dialog>
  9967. <el-dialog
  9968. :title="lang.ssPersonalEval"
  9969. :visible.sync="studentEvalDialogVisibleTeacher"
  9970. :append-to-body="true"
  9971. width="800px"
  9972. :before-close="handleClose"
  9973. class="dialog_diy"
  9974. >
  9975. <div class="w_name">
  9976. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  9977. </div>
  9978. <div class="evalCss">
  9979. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  9980. <div class="middleBox" v-if="eScore.eStar">
  9981. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9982. <div class="nameAndrate">
  9983. <div>{{ e.value }}</div>
  9984. <el-rate
  9985. v-model="eScore.eStar[eIndex]"
  9986. :disabled="isStar"
  9987. ></el-rate>
  9988. </div>
  9989. <div v-if="e.detail">{{ e.detail }}</div>
  9990. </div>
  9991. <div class="easy_comment" v-if="false">
  9992. <div
  9993. v-for="(p, pIndex) in PlTextList"
  9994. :key="pIndex"
  9995. @click="fastText(p, 2)"
  9996. >
  9997. {{ p }}
  9998. </div>
  9999. </div>
  10000. <div class="bz">
  10001. <textarea
  10002. :disabled="isStar"
  10003. rows="4"
  10004. class="pj"
  10005. style="
  10006. padding: 10px 5px;
  10007. width: 70%;
  10008. background: #f7f6f9;
  10009. font-size: 14px;
  10010. text-indent: 10px;
  10011. "
  10012. cols
  10013. v-model="eScore.eBzText"
  10014. :placeholder="lang.ssEnterEvalContent"
  10015. ></textarea>
  10016. </div>
  10017. </div>
  10018. </div>
  10019. <div slot="footer">
  10020. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10021. >{{lang.ssCancelBtn}}</el-button
  10022. >
  10023. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10024. >{{lang.ssConfirmBtn}}</el-button
  10025. >
  10026. </div>
  10027. </el-dialog>
  10028. <el-dialog
  10029. :title="lang.ssMatch"
  10030. :visible.sync="dialogVisibleSelect"
  10031. :append-to-body="true"
  10032. width="90%"
  10033. :before-close="handleClose"
  10034. class="dialog_diy dialog_diy3"
  10035. >
  10036. <div v-if="selectJson">
  10037. <div class="select_box2">
  10038. <div class="select_box2_title">
  10039. <div>{{ lang.ssMatch }}</div>
  10040. <div>{{ lang.ssSelectCorrespondingAnswer }}</div>
  10041. </div>
  10042. <div class="select_box2_box">
  10043. <div class="select_box2_img">
  10044. <img
  10045. :src="selectJson.url"
  10046. @click="previewImg(selectJson.url)"
  10047. alt=""
  10048. />
  10049. </div>
  10050. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10051. <div style="padding-top: 15px">
  10052. <div class="select_answer_title" v-if="isSelect">
  10053. {{ selectAnswer.stu }}
  10054. </div>
  10055. <div class="select_answer_title" v-else>
  10056. {{ lang.ssSelectAnswerByQuestion }}
  10057. </div>
  10058. <div
  10059. class="select_box2_answer_box"
  10060. v-for="(item2, checkIndex) in selectJson.select"
  10061. :key="checkIndex"
  10062. >
  10063. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10064. <el-select
  10065. :disabled="isSelect"
  10066. v-model="selectAnswer.answer[checkIndex]"
  10067. :placeholder="lang.ssSelectCorrectAnswer"
  10068. >
  10069. <el-option
  10070. v-for="(e, eIndex) in selectJson.select"
  10071. :key="eIndex"
  10072. :label="e"
  10073. :value="eIndex"
  10074. >
  10075. </el-option>
  10076. </el-select>
  10077. </div>
  10078. </div>
  10079. <div
  10080. class="rightAnswerCss"
  10081. v-if="isSelect && (tType == 1 || tType == 4)"
  10082. >
  10083. <div
  10084. v-for="(a, aIndex) in selectJson.answer"
  10085. :key="aIndex"
  10086. class="rightAnswer"
  10087. >
  10088. <div
  10089. v-if="selectAnswer.answer[aIndex] === a"
  10090. style="color: #767de1"
  10091. >
  10092. {{ lang.ssAnswerCorrect }}
  10093. </div>
  10094. <div v-else>{{ lang.ssAnswerWrong }}</div>
  10095. <div
  10096. style="margin-left: 10px"
  10097. v-if="selectAnswer.answer[aIndex] !== a"
  10098. >
  10099. {{ lang.ssCorrectAnswer }}
  10100. </div>
  10101. <div
  10102. :class="
  10103. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10104. "
  10105. >
  10106. {{ selectJson.select[a] }}
  10107. </div>
  10108. </div>
  10109. </div>
  10110. </div>
  10111. <div class="upAnswerCss">
  10112. <el-button
  10113. type="primary"
  10114. @click="addSelectAnswer"
  10115. v-if="!isSelect"
  10116. >{{ lang.ssSubmitAnswer }}</el-button
  10117. >
  10118. </div>
  10119. </div>
  10120. </div>
  10121. </div>
  10122. </el-dialog>
  10123. <el-dialog
  10124. :title="lang.ssMatch"
  10125. :visible.sync="dialogVisibleSelectTeacher"
  10126. :append-to-body="true"
  10127. width="90%"
  10128. :before-close="handleClose"
  10129. class="dialog_diy dialog_diy3"
  10130. >
  10131. <div v-if="selectJson">
  10132. <div class="w_name">
  10133. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  10134. </div>
  10135. <div class="select_box2">
  10136. <div class="select_box2_title">
  10137. <div>{{ lang.ssMatch }}</div>
  10138. <div>{{ lang.ssSelectCorrespondingAnswer }}</div>
  10139. </div>
  10140. <div class="select_box2_box">
  10141. <div class="select_box2_img">
  10142. <img
  10143. :src="selectJson.url"
  10144. @click="previewImg(selectJson.url)"
  10145. alt=""
  10146. />
  10147. </div>
  10148. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10149. <div style="padding-top: 15px">
  10150. <div class="select_answer_title" v-if="isSelect">
  10151. {{ selectAnswer.stu }}
  10152. </div>
  10153. <div class="select_answer_title" v-else>
  10154. {{ lang.ssSelectAnswerByQuestion }}
  10155. </div>
  10156. <div
  10157. class="select_box2_answer_box"
  10158. v-for="(item2, checkIndex) in selectJson.select"
  10159. :key="checkIndex"
  10160. >
  10161. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10162. <el-select
  10163. :disabled="isSelect"
  10164. v-model="selectAnswer.answer[checkIndex]"
  10165. :placeholder="lang.ssSelectCorrectAnswer"
  10166. >
  10167. <el-option
  10168. v-for="(e, eIndex) in selectJson.select"
  10169. :key="eIndex"
  10170. :label="e"
  10171. :value="eIndex"
  10172. >
  10173. </el-option>
  10174. </el-select>
  10175. </div>
  10176. </div>
  10177. <div
  10178. class="rightAnswerCss"
  10179. v-if="isSelect && (tType == 1 || tType == 4)"
  10180. >
  10181. <div
  10182. v-for="(a, aIndex) in selectJson.answer"
  10183. :key="aIndex"
  10184. class="rightAnswer"
  10185. >
  10186. <div
  10187. v-if="selectAnswer.answer[aIndex] === a"
  10188. style="color: #767de1"
  10189. >
  10190. {{ lang.ssAnswerCorrect }}
  10191. </div>
  10192. <div v-else>{{ lang.ssAnswerWrong }}</div>
  10193. <div
  10194. style="margin-left: 10px"
  10195. v-if="selectAnswer.answer[aIndex] !== a"
  10196. >
  10197. {{ lang.ssCorrectAnswer }}
  10198. </div>
  10199. <div
  10200. :class="
  10201. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10202. "
  10203. >
  10204. {{ selectJson.select[a] }}
  10205. </div>
  10206. </div>
  10207. </div>
  10208. </div>
  10209. <div class="upAnswerCss">
  10210. <el-button
  10211. type="primary"
  10212. @click="addSelectAnswerTeacher"
  10213. v-if="!isSelect"
  10214. >{{ lang.ssSubmitAnswer }}</el-button
  10215. >
  10216. </div>
  10217. </div>
  10218. </div>
  10219. </div>
  10220. </el-dialog>
  10221. <el-dialog
  10222. :title="lang.ssTeacherScoring"
  10223. :visible.sync="dialogVisibleScore"
  10224. :append-to-body="true"
  10225. width="800px"
  10226. :before-close="handleClose"
  10227. class="dialog_diy"
  10228. >
  10229. <div>
  10230. <div class="studentDetail">
  10231. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10232. <div class="nameAndTime">
  10233. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10234. <div>{{ commentDetail.time }}</div>
  10235. </div>
  10236. </div>
  10237. <div
  10238. class="worksAnswer"
  10239. v-if="commentDetail.works && commentDetail.type == 2"
  10240. >
  10241. {{ JSON.parse(commentDetail.works)[0].answer }}
  10242. </div>
  10243. <div
  10244. class="worksAnswer"
  10245. v-if="commentDetail.works && commentDetail.type == 1"
  10246. >
  10247. <pdf
  10248. v-if="showPDF"
  10249. :pdfUrl="pptImgUrl"
  10250. style="width: 100%; height: 520px; overflow: auto"
  10251. :class="{ fullStyle: full }"
  10252. ></pdf>
  10253. <iframe
  10254. v-else
  10255. :src="pptImgUrl"
  10256. frameborder="0"
  10257. width="100%"
  10258. height="600"
  10259. :class="{ fullStyle: full }"
  10260. ></iframe>
  10261. </div>
  10262. <div
  10263. class="worksAnswer"
  10264. v-if="commentDetail.works && commentDetail.type == 0"
  10265. >
  10266. <img
  10267. :src="commentDetail.works"
  10268. alt=""
  10269. @click="previewImg(commentDetail.works)"
  10270. />
  10271. </div>
  10272. <div
  10273. class="worksAnswer"
  10274. v-if="commentDetail.works && commentDetail.type == 3"
  10275. >
  10276. <video-player
  10277. class="video-player vjs-custom-skin"
  10278. :playsinline="true"
  10279. :options="videoDetail"
  10280. @play="onPlayerPlay($event)"
  10281. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10282. ></video-player>
  10283. </div>
  10284. <div
  10285. class="worksAnswer codeFileBox"
  10286. v-if="commentDetail.works && commentDetail.type == 12"
  10287. @click="downloadFile(commentDetail.works)"
  10288. >
  10289. <img src="../assets/icon/codeFile.png" />
  10290. <div>{{ lang.ssClickDownloadFile }}</div>
  10291. </div>
  10292. <div
  10293. class="worksAnswer codeFileBox"
  10294. v-if="commentDetail.works && commentDetail.type == 15"
  10295. @click="
  10296. openCocoPi(
  10297. 57,
  10298. commentIndexJson.toolIndex,
  10299. commentDetail.userid,
  10300. commentDetail.sName
  10301. )
  10302. "
  10303. >
  10304. <img src="../assets/icon/codeFile.png" />
  10305. <div>{{ lang.ssClickOpenCocoPi }}</div>
  10306. </div>
  10307. <div
  10308. class="worksAnswer"
  10309. v-if="commentDetail.works && commentDetail.type == 13"
  10310. >
  10311. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10312. </div>
  10313. <div class="scoreBox">
  10314. <span class="t">{{ lang.ssEnterScore }}</span>
  10315. <el-input-number
  10316. :disabled="courseDetail.userid != userid"
  10317. v-model="wScore"
  10318. :controls="false"
  10319. :min="0"
  10320. :max="100"
  10321. ></el-input-number>
  10322. </div>
  10323. <div class="scoreDetailBox">
  10324. <span class="t">{{ lang.ssScoringComment }}</span>
  10325. <el-input
  10326. type="textarea"
  10327. :rows="5"
  10328. :disabled="courseDetail.userid != userid"
  10329. resize="none"
  10330. v-model="scoreDetail"
  10331. :placeholder="lang.ssEnterStudentEvaluation"
  10332. >
  10333. </el-input>
  10334. </div>
  10335. </div>
  10336. <span slot="footer" class="dialog-footer">
  10337. <el-button
  10338. @click="
  10339. (dialogVisibleScore = false),
  10340. (commentIndexJson = {}),
  10341. videoDetail.sources && videoDetail.sources[0]
  10342. ? (videoDetail.sources[0].src = '')
  10343. : ''
  10344. "
  10345. >{{lang.ssCancelBtn}}</el-button
  10346. >
  10347. <el-button
  10348. type="primary"
  10349. v-if="courseDetail.userid == userid"
  10350. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10351. >{{lang.ssConfirmBtn}}
  10352. </el-button>
  10353. </span>
  10354. </el-dialog>
  10355. <el-dialog
  10356. :title="lang.ssSort"
  10357. :visible.sync="dialogVisibleSentence"
  10358. :append-to-body="true"
  10359. width="1000px"
  10360. :before-close="handleClose"
  10361. class="dialog_diy dialog_diy3"
  10362. >
  10363. <div>
  10364. <div class="sentenBox">
  10365. <div
  10366. v-for="(st, stIndex) in sentenceList"
  10367. :key="stIndex"
  10368. style="padding-bottom: 20px"
  10369. >
  10370. <div
  10371. style="padding: 15px 0 10px 20px"
  10372. class="sentenceTitle"
  10373. :index="stIndex + 1"
  10374. >
  10375. {{ lang.ssQuestionNum.replace(/\*/g, stIndex + 1) }}:{{ lang.ssSelectCorrectOrder }}
  10376. </div>
  10377. <div class="cardList" v-if="st.chooseSenList">
  10378. <div class="cardBox">
  10379. <div
  10380. v-for="(r, rIndex) in st.chooseSenList"
  10381. :key="rIndex"
  10382. @click="returnCard(r, stIndex, rIndex)"
  10383. >
  10384. <el-tooltip
  10385. class="item"
  10386. effect="light"
  10387. :content="r"
  10388. placement="top"
  10389. v-if="r != '' && r != undefined"
  10390. >
  10391. <div
  10392. :class="{
  10393. isCard: r,
  10394. isChooseCard: r == '' || r == undefined,
  10395. }"
  10396. >
  10397. <div>{{ r }}</div>
  10398. </div>
  10399. </el-tooltip>
  10400. <div
  10401. :class="{
  10402. isCard: r,
  10403. isChooseCard: r == '' || r == undefined,
  10404. }"
  10405. v-else
  10406. >
  10407. <div>{{ r }}</div>
  10408. </div>
  10409. </div>
  10410. </div>
  10411. </div>
  10412. <div class="cardList" v-if="st.addChangeSen">
  10413. <div class="cardBox">
  10414. <div
  10415. v-for="(s, sIndex) in st.addChangeSen"
  10416. :key="sIndex"
  10417. @click="setRightAnswer(s, stIndex, sIndex)"
  10418. >
  10419. <el-tooltip
  10420. class="item"
  10421. effect="light"
  10422. :content="s"
  10423. placement="top"
  10424. v-if="s != '' && s != undefined"
  10425. >
  10426. <div
  10427. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10428. >
  10429. <div>{{ s }}</div>
  10430. </div>
  10431. </el-tooltip>
  10432. <div
  10433. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10434. v-else
  10435. >
  10436. <div>{{ s }}</div>
  10437. </div>
  10438. </div>
  10439. </div>
  10440. </div>
  10441. </div>
  10442. </div>
  10443. </div>
  10444. <span slot="footer" class="dialog-footer">
  10445. <el-button @click="dialogVisibleSentence = false">{{lang.ssCancelBtn}}</el-button>
  10446. <el-button type="primary" @click="addSenWorks">{{lang.ssConfirmBtn}}</el-button>
  10447. </span>
  10448. </el-dialog>
  10449. <el-dialog
  10450. :title="lang.ssSort"
  10451. :visible.sync="dialogVisibleSentenceTeacher"
  10452. :append-to-body="true"
  10453. width="1000px"
  10454. :before-close="handleClose"
  10455. class="dialog_diy dialog_diy3"
  10456. >
  10457. <div>
  10458. <div class="w_name">
  10459. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  10460. </div>
  10461. <div class="sentenBox">
  10462. <div
  10463. v-for="(st, stIndex) in sentenceList"
  10464. :key="stIndex"
  10465. style="padding-bottom: 20px"
  10466. >
  10467. <div
  10468. style="padding: 15px 0 10px 20px"
  10469. class="sentenceTitle"
  10470. :index="stIndex + 1"
  10471. >
  10472. {{ lang.ssQuestionNum.replace(/\*/g, stIndex + 1) }}:{{ lang.ssSelectCorrectOrder }}
  10473. </div>
  10474. <div class="cardList" v-if="st.chooseSenList">
  10475. <div class="cardBox">
  10476. <div
  10477. v-for="(r, rIndex) in st.chooseSenList"
  10478. :key="rIndex"
  10479. @click="returnCard(r, stIndex, rIndex)"
  10480. >
  10481. <el-tooltip
  10482. class="item"
  10483. effect="light"
  10484. :content="r"
  10485. placement="top"
  10486. v-if="r != '' && r != undefined"
  10487. >
  10488. <div
  10489. :class="{
  10490. isCard: r,
  10491. isChooseCard: r == '' || r == undefined,
  10492. }"
  10493. >
  10494. <div>{{ r }}</div>
  10495. </div>
  10496. </el-tooltip>
  10497. <div
  10498. :class="{
  10499. isCard: r,
  10500. isChooseCard: r == '' || r == undefined,
  10501. }"
  10502. v-else
  10503. >
  10504. <div>{{ r }}</div>
  10505. </div>
  10506. </div>
  10507. </div>
  10508. </div>
  10509. <div class="cardList" v-if="st.addChangeSen">
  10510. <div class="cardBox">
  10511. <div
  10512. v-for="(s, sIndex) in st.addChangeSen"
  10513. :key="sIndex"
  10514. @click="setRightAnswer(s, stIndex, sIndex)"
  10515. >
  10516. <el-tooltip
  10517. class="item"
  10518. effect="light"
  10519. :content="s"
  10520. placement="top"
  10521. v-if="s != '' && s != undefined"
  10522. >
  10523. <div
  10524. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10525. >
  10526. <div>{{ s }}</div>
  10527. </div>
  10528. </el-tooltip>
  10529. <div
  10530. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10531. v-else
  10532. >
  10533. <div>{{ s }}</div>
  10534. </div>
  10535. </div>
  10536. </div>
  10537. </div>
  10538. </div>
  10539. </div>
  10540. </div>
  10541. <span slot="footer" class="dialog-footer">
  10542. <el-button @click="dialogVisibleSentenceTeacher = false"
  10543. >{{lang.ssCancelBtn}}</el-button
  10544. >
  10545. <el-button type="primary" @click="addSenWorksTeacher">{{lang.ssConfirmBtn}}</el-button>
  10546. </span>
  10547. </el-dialog>
  10548. <el-dialog
  10549. :title="lang.ssSort"
  10550. :visible.sync="dialogVisibleSentence1"
  10551. :append-to-body="true"
  10552. width="1000px"
  10553. :before-close="handleClose"
  10554. class="dialog_diy dialog_diy3"
  10555. >
  10556. <div>
  10557. <div class="sentenBox">
  10558. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10559. {{ sentenceList1.stuName }}{{ lang.ssHomeworkOf }}
  10560. </div>
  10561. <div
  10562. v-for="(st, stIndex) in sentenceList1"
  10563. :key="stIndex"
  10564. style="padding-bottom: 20px"
  10565. >
  10566. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10567. {{ lang.ssQuestionNum.replace(/\*/g, stIndex + 1) }}
  10568. </div>
  10569. <div class="isWrong">
  10570. <div class="cardList1" v-if="st.chooseSenList">
  10571. <div class="cardBox">
  10572. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10573. <el-tooltip
  10574. class="item"
  10575. effect="light"
  10576. :content="s"
  10577. placement="top"
  10578. >
  10579. <div class="isCard">
  10580. <div>{{ s }}</div>
  10581. </div>
  10582. </el-tooltip>
  10583. </div>
  10584. </div>
  10585. <div class="cardAnswerBox">
  10586. {{ lang.ssFormSentence }}{{ st.chooseSenList.join(" ") }}
  10587. </div>
  10588. </div>
  10589. <div v-if="tType == 2" class="isTj">
  10590. <div class="isTjImg">
  10591. <img src="../assets/icon/conSentences/right.png" alt="" />
  10592. </div>
  10593. <div>{{ lang.ssSubmitted }}</div>
  10594. </div>
  10595. <div
  10596. class="answerRight isTj"
  10597. v-if="
  10598. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10599. (tType == 1 || tType == 4)
  10600. "
  10601. >
  10602. <div class="isTjImg">
  10603. <img src="../assets/icon/conSentences/right.png" alt="" />
  10604. </div>
  10605. <div>{{ lang.ssAnswerCorrect }}</div>
  10606. </div>
  10607. <div
  10608. class="answerRight isTj"
  10609. v-if="
  10610. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10611. (tType == 1 || tType == 4)
  10612. "
  10613. >
  10614. <div class="isTjImg">
  10615. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10616. </div>
  10617. <div>{{ lang.ssAnswerWrong }}</div>
  10618. </div>
  10619. </div>
  10620. <div
  10621. v-if="
  10622. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10623. (tType == 1 || tType == 4)
  10624. "
  10625. >
  10626. <div style="padding: 15px 0 10px 20px">{{ lang.ssCorrectAnswerBelow }}</div>
  10627. <div
  10628. class="cardList"
  10629. v-if="st.rightAnswer"
  10630. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10631. >
  10632. <div class="cardBox">
  10633. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex"></div>
  10634. <el-tooltip
  10635. class="item"
  10636. effect="light"
  10637. :content="r"
  10638. placement="top"
  10639. >
  10640. <div class="isCard1">
  10641. <div>{{ r }}</div>
  10642. </div>
  10643. </el-tooltip>
  10644. </div>
  10645. </div>
  10646. <div class="cardAnswerBox">
  10647. {{ lang.ssFormSentence }}{{ st.rightAnswer.join(" ") }}
  10648. </div>
  10649. </div>
  10650. </div>
  10651. </div>
  10652. </div>
  10653. <span slot="footer" class="dialog-footer">
  10654. <el-button @click="dialogVisibleSentence1 = false">{{lang.ssCancelBtn}}</el-button>
  10655. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10656. >{{lang.ssConfirmBtn}}</el-button
  10657. >
  10658. </span>
  10659. </el-dialog>
  10660. <el-dialog
  10661. :title="lang.ssTeacherSubmitWork"
  10662. :visible.sync="dialogVisibleWorks"
  10663. :append-to-body="true"
  10664. width="500px"
  10665. :before-close="handleClose"
  10666. class="dialog_change"
  10667. >
  10668. <div class="marginT">
  10669. <div class="w_name">
  10670. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  10671. </div>
  10672. <div>{{ lang.ssUploadHomework }}</div>
  10673. <div style="display: flex; gap: 10px">
  10674. <div
  10675. class="chapter_add"
  10676. @click="addImg($event)"
  10677. v-if="studyJuri[0].cover.length == 0"
  10678. >
  10679. <div class="up_photo">
  10680. <img src="../assets/icon/uploadImg.png" alt />
  10681. </div>
  10682. <!-- <input
  10683. type="file"
  10684. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10685. style="display: none"
  10686. @change="beforeUpload1($event, 1)"
  10687. /> -->
  10688. <input
  10689. type="file"
  10690. accept="*"
  10691. style="display: none"
  10692. @change="beforeUpload1($event, 1)"
  10693. />
  10694. <!-- <input
  10695. type="file"
  10696. accept="image/*"
  10697. capture="camera"
  10698. style="display: none"
  10699. @change="beforeUpload1($event, 1)"
  10700. /> -->
  10701. </div>
  10702. <div
  10703. class="chapter_add"
  10704. @click="addImg($event)"
  10705. v-if="studyJuri[0].cover.length == 0"
  10706. >
  10707. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  10708. <img src="../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  10709. </div>
  10710. <input
  10711. type="file"
  10712. accept="image/*"
  10713. capture="camera"
  10714. style="display: none"
  10715. @change="beforeUpload1($event, 1)"
  10716. />
  10717. </div>
  10718. </div>
  10719. <!-- capture="camera" -->
  10720. <div
  10721. class="chapter_add"
  10722. style="
  10723. display: flex;
  10724. width: 100%;
  10725. flex-direction: row;
  10726. flex-wrap: wrap;
  10727. justify-content: flex-start;
  10728. padding: 15px 0;
  10729. "
  10730. v-if="studyJuri[0].cover.length > 0"
  10731. >
  10732. <div class="upCover">
  10733. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10734. <img :src="word" alt v-else-if="fileType == 1" />
  10735. <img :src="video" alt v-else-if="fileType == 2" />
  10736. <img :src="word2" alt v-else-if="fileType == 3" />
  10737. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10738. <div class="deleteWord" @click="clean(1)">
  10739. <img src="../assets/icon/deleteWorks.png" alt />
  10740. </div>
  10741. </div>
  10742. </div>
  10743. </div>
  10744. <div
  10745. class="upload_send"
  10746. @click="addCourseWorksTeacher(taskCount)"
  10747. v-if="!proVisible"
  10748. >
  10749. {{ lang.ssSubmit }}
  10750. </div>
  10751. </el-dialog>
  10752. <ImgDraw
  10753. :drawShow="drawShow"
  10754. @closeDraw="closeDraw"
  10755. @addImgDraw="addImgDraw"
  10756. :bg="bg"
  10757. ></ImgDraw>
  10758. <el-dialog
  10759. :title="lang.ssTable"
  10760. :visible.sync="dialogVisibleTable"
  10761. :append-to-body="true"
  10762. width="95%"
  10763. :before-close="handleClose"
  10764. class="dialog_diy"
  10765. >
  10766. <el-form>
  10767. <div
  10768. style="
  10769. display: flex;
  10770. align-items: center;
  10771. justify-content: space-between;
  10772. "
  10773. >
  10774. <span>{{ lang.ssTableContent }}</span>
  10775. <el-button type="primary" size="small" @click="returnTableText"
  10776. >{{ lang.ssRestoreTemplate }}</el-button
  10777. >
  10778. </div>
  10779. <Table
  10780. v-model="tableJson.text"
  10781. @change="change"
  10782. v-if="dialogVisibleTable"
  10783. ></Table>
  10784. </el-form>
  10785. <span slot="footer" class="dialog-footer">
  10786. <el-button @click="dialogVisibleTable = false">{{lang.ssCancelBtn}}</el-button>
  10787. <el-button type="primary" @click="addTableWorks">{{ lang.ssConfirmBtn }}</el-button>
  10788. </span>
  10789. </el-dialog>
  10790. <el-dialog
  10791. :title="lang.ssTable"
  10792. :visible.sync="dialogVisibleTableTeacher"
  10793. :append-to-body="true"
  10794. width="95%"
  10795. :before-close="handleClose"
  10796. class="dialog_diy"
  10797. >
  10798. <el-form>
  10799. <div class="w_name">
  10800. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  10801. </div>
  10802. <div>{{ lang.ssTableContent }}</div>
  10803. <Table
  10804. v-model="tableJson.text"
  10805. @change="change"
  10806. v-if="dialogVisibleTableTeacher"
  10807. ></Table>
  10808. </el-form>
  10809. <span slot="footer" class="dialog-footer">
  10810. <el-button @click="dialogVisibleTableTeacher = false">{{lang.ssCancelBtn}}</el-button>
  10811. <el-button type="primary" @click="addTableWorksTeacher">{{ lang.ssConfirmBtn }}</el-button>
  10812. </span>
  10813. </el-dialog>
  10814. <el-dialog
  10815. :title="lang.ssDocument"
  10816. :visible.sync="dialogVisibleWord"
  10817. :append-to-body="true"
  10818. width="95%"
  10819. :before-close="handleClose"
  10820. class="dialog_diy"
  10821. >
  10822. <el-form>
  10823. <div
  10824. style="
  10825. display: flex;
  10826. align-items: center;
  10827. justify-content: space-between;
  10828. "
  10829. >
  10830. <span>{{ lang.ssDocumentContent }}</span>
  10831. <el-button type="primary" size="small" @click="returnWordText"
  10832. >{{ lang.ssRestoreTemplate }}</el-button
  10833. >
  10834. </div>
  10835. <editor-bar
  10836. v-model="wordJson.text"
  10837. v-if="dialogVisibleWord"
  10838. ></editor-bar>
  10839. </el-form>
  10840. <span slot="footer" class="dialog-footer">
  10841. <el-button @click="dialogVisibleWord = false">{{lang.ssCancelBtn}}</el-button>
  10842. <el-button type="primary" @click="addWordWorks">{{ lang.ssConfirmBtn }}</el-button>
  10843. </span>
  10844. </el-dialog>
  10845. <el-dialog
  10846. :title="lang.ssDocument"
  10847. :visible.sync="dialogVisibleWordTeacher"
  10848. :append-to-body="true"
  10849. width="95%"
  10850. :before-close="handleClose"
  10851. class="dialog_diy"
  10852. >
  10853. <el-form>
  10854. <div class="w_name">
  10855. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  10856. </div>
  10857. <div>{{ lang.ssDocumentContent }}</div>
  10858. <editor-bar
  10859. v-model="wordJson.text"
  10860. v-if="dialogVisibleWordTeacher"
  10861. ></editor-bar>
  10862. </el-form>
  10863. <span slot="footer" class="dialog-footer">
  10864. <el-button @click="dialogVisibleWordTeacher = false">{{lang.ssCancelBtn}}</el-button>
  10865. <el-button type="primary" @click="addWordWorksTeacher">{{ lang.ssConfirmBtn }}</el-button>
  10866. </span>
  10867. </el-dialog>
  10868. <el-dialog
  10869. :title="lang.ssTable"
  10870. :visible.sync="dialogVisibleTable2"
  10871. :append-to-body="true"
  10872. width="95%"
  10873. :before-close="handleClose"
  10874. class="dialog_diy"
  10875. >
  10876. <el-form>
  10877. <div class="cont" v-html="tableJson.text"></div>
  10878. </el-form>
  10879. <span slot="footer" class="dialog-footer">
  10880. <el-button @click="dialogVisibleTable2 = false">{{ lang.ssCloseBtn }}</el-button>
  10881. </span>
  10882. </el-dialog>
  10883. <el-dialog
  10884. :title="lang.ssDocument"
  10885. :visible.sync="dialogVisibleTable3"
  10886. :append-to-body="true"
  10887. width="95%"
  10888. :before-close="handleClose"
  10889. class="dialog_diy"
  10890. >
  10891. <el-form>
  10892. <div class="cont" v-html="tableJson.text"></div>
  10893. </el-form>
  10894. <span slot="footer" class="dialog-footer">
  10895. <el-button @click="dialogVisibleTable3 = false">{{ lang.ssCloseBtn }}</el-button>
  10896. </span>
  10897. </el-dialog>
  10898. <el-dialog
  10899. :title="lang.ssGroupSetting"
  10900. :visible.sync="dialogVisibleGroup"
  10901. :append-to-body="true"
  10902. width="95%"
  10903. :before-close="handleClose"
  10904. class="dialog_diy"
  10905. >
  10906. <div v-if="dialogVisibleGroup">
  10907. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10908. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10909. {{ lang.ssOpenSeatTip }}
  10910. </div>
  10911. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10912. @click="lockChair">
  10913. {{ lang.ssLockPosition }}
  10914. </div>
  10915. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10916. {{ lang.ssUnlockPosition }}
  10917. </div> -->
  10918. <div class="group_switch">
  10919. <span>{{ lang.ssOpenSeat }}</span>
  10920. <el-switch
  10921. v-model="islock"
  10922. active-text=""
  10923. class="switchCss"
  10924. @change="lockChair"
  10925. ></el-switch>
  10926. </div>
  10927. <div
  10928. type="primary"
  10929. @click="updateGroup"
  10930. class="returnBtn"
  10931. style="background-color: #225bc7"
  10932. >
  10933. {{ lang.ssGroupSetting }}
  10934. </div>
  10935. </div>
  10936. <div>
  10937. <div
  10938. class="g_d_box"
  10939. v-if="groupJson.group && groupStudent[toolindex]"
  10940. >
  10941. <div
  10942. class="g_d_group"
  10943. v-for="(g, gindex) in groupJson.group"
  10944. :key="gindex"
  10945. >
  10946. <div class="g_d_group_chair">
  10947. <div v-if="groupJson.number > 1">
  10948. <span
  10949. :class="{
  10950. isChair:
  10951. groupStudent[toolindex][gindex] &&
  10952. groupStudent[toolindex][gindex][0],
  10953. updateChair:
  10954. courseDetail.userid == userid &&
  10955. groupStudent[toolindex][gindex] &&
  10956. groupStudent[toolindex][gindex][0] &&
  10957. groupJson.islock == 2,
  10958. }"
  10959. ><span
  10960. class="updateChairBtn"
  10961. @click="
  10962. updateGroupChair(
  10963. groupStudent[toolindex][gindex] &&
  10964. groupStudent[toolindex][gindex][0]
  10965. )
  10966. "
  10967. >{{ lang.ssModify }}</span
  10968. ></span
  10969. ><span>{{
  10970. groupStudent[toolindex][gindex] &&
  10971. groupStudent[toolindex][gindex][0]
  10972. ? groupStudent[toolindex][gindex] &&
  10973. groupStudent[toolindex][gindex][0].name
  10974. : lang.ssEmptyPosition
  10975. }}</span>
  10976. </div>
  10977. <div v-if="groupJson.number > 4">
  10978. <span
  10979. :class="{
  10980. isChair:
  10981. groupStudent[toolindex][gindex] &&
  10982. groupStudent[toolindex][gindex][4],
  10983. updateChair:
  10984. courseDetail.userid == userid &&
  10985. groupStudent[toolindex][gindex] &&
  10986. groupStudent[toolindex][gindex][4] &&
  10987. groupJson.islock == 2,
  10988. }"
  10989. ><span
  10990. class="updateChairBtn"
  10991. @click="
  10992. updateGroupChair(
  10993. groupStudent[toolindex][gindex] &&
  10994. groupStudent[toolindex][gindex][4]
  10995. )
  10996. "
  10997. >{{ lang.ssModify }}</span
  10998. ></span
  10999. ><span>{{
  11000. groupStudent[toolindex][gindex] &&
  11001. groupStudent[toolindex][gindex][4]
  11002. ? groupStudent[toolindex][gindex] &&
  11003. groupStudent[toolindex][gindex][4].name
  11004. : lang.ssEmptyPosition
  11005. }}</span>
  11006. </div>
  11007. <div v-if="groupJson.number > 8">
  11008. <span
  11009. :class="{
  11010. isChair:
  11011. groupStudent[toolindex][gindex] &&
  11012. groupStudent[toolindex][gindex][8],
  11013. updateChair:
  11014. courseDetail.userid == userid &&
  11015. groupStudent[toolindex][gindex] &&
  11016. groupStudent[toolindex][gindex][8] &&
  11017. groupJson.islock == 2,
  11018. }"
  11019. ><span
  11020. class="updateChairBtn"
  11021. @click="
  11022. updateGroupChair(
  11023. groupStudent[toolindex][gindex] &&
  11024. groupStudent[toolindex][gindex][8]
  11025. )
  11026. "
  11027. >{{ lang.ssModify }}</span
  11028. ></span
  11029. ><span>{{
  11030. groupStudent[toolindex][gindex] &&
  11031. groupStudent[toolindex][gindex][8]
  11032. ? groupStudent[toolindex][gindex] &&
  11033. groupStudent[toolindex][gindex][8].name
  11034. : lang.ssEmptyPosition
  11035. }}</span>
  11036. </div>
  11037. </div>
  11038. <div class="g_d_group_tableBox">
  11039. <div class="g_d_group_chair2">
  11040. <div v-if="groupJson.number > 2">
  11041. <span
  11042. :class="{
  11043. isChair:
  11044. groupStudent[toolindex][gindex] &&
  11045. groupStudent[toolindex][gindex][2],
  11046. updateChair:
  11047. courseDetail.userid == userid &&
  11048. groupStudent[toolindex][gindex] &&
  11049. groupStudent[toolindex][gindex][2] &&
  11050. groupJson.islock == 2,
  11051. }"
  11052. ><span
  11053. class="updateChairBtn"
  11054. @click="
  11055. updateGroupChair(
  11056. groupStudent[toolindex][gindex] &&
  11057. groupStudent[toolindex][gindex][2]
  11058. )
  11059. "
  11060. >{{ lang.ssModify }}</span
  11061. ></span
  11062. ><span>{{
  11063. groupStudent[toolindex][gindex] &&
  11064. groupStudent[toolindex][gindex][2]
  11065. ? groupStudent[toolindex][gindex] &&
  11066. groupStudent[toolindex][gindex][2].name
  11067. : lang.ssEmptyPosition
  11068. }}</span>
  11069. </div>
  11070. <div v-if="groupJson.number > 6">
  11071. <span
  11072. :class="{
  11073. isChair:
  11074. groupStudent[toolindex][gindex] &&
  11075. groupStudent[toolindex][gindex][6],
  11076. updateChair:
  11077. courseDetail.userid == userid &&
  11078. groupStudent[toolindex][gindex] &&
  11079. groupStudent[toolindex][gindex][6] &&
  11080. groupJson.islock == 2,
  11081. }"
  11082. ><span
  11083. class="updateChairBtn"
  11084. @click="
  11085. updateGroupChair(
  11086. groupStudent[toolindex][gindex] &&
  11087. groupStudent[toolindex][gindex][6]
  11088. )
  11089. "
  11090. >{{ lang.ssModify }}</span
  11091. ></span
  11092. ><span>{{
  11093. groupStudent[toolindex][gindex] &&
  11094. groupStudent[toolindex][gindex][6]
  11095. ? groupStudent[toolindex][gindex] &&
  11096. groupStudent[toolindex][gindex][6].name
  11097. : lang.ssEmptyPosition
  11098. }}</span>
  11099. </div>
  11100. </div>
  11101. <div class="g_d_group_table">
  11102. <div>
  11103. {{ g.name }}
  11104. </div>
  11105. <div>
  11106. <div
  11107. v-if="
  11108. courseDetail.userid == userid && groupJson.islock == 2
  11109. "
  11110. @click="deleteGroupChair(gindex)"
  11111. >
  11112. {{ lang.ssRemoveMember }}
  11113. </div>
  11114. <div
  11115. @click="selectGroup(gindex)"
  11116. v-else-if="
  11117. groupStudentUid[toolindex] &&
  11118. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11119. "
  11120. >
  11121. {{ lang.ssJoinGroup }}
  11122. </div>
  11123. <div
  11124. @click="
  11125. exitGroup(
  11126. groupStudent[toolindex][gindex] &&
  11127. groupStudent[toolindex][gindex][
  11128. groupStudentUid[toolindex][gindex].indexOf(userid)
  11129. ].id
  11130. )
  11131. "
  11132. v-else-if="
  11133. groupStudentUid[toolindex] &&
  11134. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11135. "
  11136. >
  11137. {{ lang.ssExitGroupBtn }}
  11138. </div>
  11139. </div>
  11140. </div>
  11141. <div class="g_d_group_chair2">
  11142. <div v-if="groupJson.number > 3">
  11143. <span
  11144. :class="{
  11145. isChair:
  11146. groupStudent[toolindex][gindex] &&
  11147. groupStudent[toolindex][gindex][3],
  11148. updateChair:
  11149. courseDetail.userid == userid &&
  11150. groupStudent[toolindex][gindex] &&
  11151. groupStudent[toolindex][gindex][3] &&
  11152. groupJson.islock == 2,
  11153. }"
  11154. ><span
  11155. class="updateChairBtn"
  11156. @click="
  11157. updateGroupChair(
  11158. groupStudent[toolindex][gindex] &&
  11159. groupStudent[toolindex][gindex][3]
  11160. )
  11161. "
  11162. >{{ lang.ssModify }}</span
  11163. ></span
  11164. ><span>{{
  11165. groupStudent[toolindex][gindex] &&
  11166. groupStudent[toolindex][gindex][3]
  11167. ? groupStudent[toolindex][gindex] &&
  11168. groupStudent[toolindex][gindex][3].name
  11169. : lang.ssEmptyPosition
  11170. }}</span>
  11171. </div>
  11172. <div v-if="groupJson.number > 7">
  11173. <span
  11174. :class="{
  11175. isChair:
  11176. groupStudent[toolindex][gindex] &&
  11177. groupStudent[toolindex][gindex][7],
  11178. updateChair:
  11179. courseDetail.userid == userid &&
  11180. groupStudent[toolindex][gindex] &&
  11181. groupStudent[toolindex][gindex][7] &&
  11182. groupJson.islock == 2,
  11183. }"
  11184. ><span
  11185. class="updateChairBtn"
  11186. @click="
  11187. updateGroupChair(
  11188. groupStudent[toolindex][gindex] &&
  11189. groupStudent[toolindex][gindex][7]
  11190. )
  11191. "
  11192. >{{ lang.ssModify }}</span
  11193. ></span
  11194. ><span>{{
  11195. groupStudent[toolindex][gindex] &&
  11196. groupStudent[toolindex][gindex][7]
  11197. ? groupStudent[toolindex][gindex] &&
  11198. groupStudent[toolindex][gindex][7].name
  11199. : lang.ssEmptyPosition
  11200. }}</span>
  11201. </div>
  11202. </div>
  11203. </div>
  11204. <div class="g_d_group_chair">
  11205. <div v-if="groupJson.number > 1">
  11206. <span
  11207. :class="{
  11208. isChair:
  11209. groupStudent[toolindex][gindex] &&
  11210. groupStudent[toolindex][gindex][1],
  11211. updateChair:
  11212. courseDetail.userid == userid &&
  11213. groupStudent[toolindex][gindex] &&
  11214. groupStudent[toolindex][gindex][1] &&
  11215. groupJson.islock == 2,
  11216. }"
  11217. ><span
  11218. class="updateChairBtn"
  11219. @click="
  11220. updateGroupChair(
  11221. groupStudent[toolindex][gindex] &&
  11222. groupStudent[toolindex][gindex][1]
  11223. )
  11224. "
  11225. >{{ lang.ssModify }}</span
  11226. ></span
  11227. ><span>{{
  11228. groupStudent[toolindex][gindex] &&
  11229. groupStudent[toolindex][gindex][1]
  11230. ? groupStudent[toolindex][gindex] &&
  11231. groupStudent[toolindex][gindex][1].name
  11232. : lang.ssEmptyPosition
  11233. }}</span>
  11234. </div>
  11235. <div v-if="groupJson.number > 5">
  11236. <span
  11237. :class="{
  11238. isChair:
  11239. groupStudent[toolindex][gindex] &&
  11240. groupStudent[toolindex][gindex][5],
  11241. updateChair:
  11242. courseDetail.userid == userid &&
  11243. groupStudent[toolindex][gindex] &&
  11244. groupStudent[toolindex][gindex][5] &&
  11245. groupJson.islock == 2,
  11246. }"
  11247. ><span
  11248. class="updateChairBtn"
  11249. @click="
  11250. updateGroupChair(
  11251. groupStudent[toolindex][gindex] &&
  11252. groupStudent[toolindex][gindex][5]
  11253. )
  11254. "
  11255. >{{ lang.ssModify }}</span
  11256. ></span
  11257. ><span>{{
  11258. groupStudent[toolindex][gindex] &&
  11259. groupStudent[toolindex][gindex][5]
  11260. ? groupStudent[toolindex][gindex] &&
  11261. groupStudent[toolindex][gindex][5].name
  11262. : lang.ssEmptyPosition
  11263. }}</span>
  11264. </div>
  11265. <div v-if="groupJson.number > 9">
  11266. <span
  11267. :class="{
  11268. isChair:
  11269. groupStudent[toolindex][gindex] &&
  11270. groupStudent[toolindex][gindex][9],
  11271. updateChair:
  11272. courseDetail.userid == userid &&
  11273. groupStudent[toolindex][gindex] &&
  11274. groupStudent[toolindex][gindex][9] &&
  11275. groupJson.islock == 2,
  11276. }"
  11277. ><span
  11278. class="updateChairBtn"
  11279. @click="
  11280. updateGroupChair(
  11281. groupStudent[toolindex][gindex] &&
  11282. groupStudent[toolindex][gindex][9]
  11283. )
  11284. "
  11285. >{{ lang.ssModify }}</span
  11286. ></span
  11287. ><span>{{
  11288. groupStudent[toolindex][gindex] &&
  11289. groupStudent[toolindex][gindex][9]
  11290. ? groupStudent[toolindex][gindex] &&
  11291. groupStudent[toolindex][gindex][9].name
  11292. : lang.ssEmptyPosition
  11293. }}</span>
  11294. </div>
  11295. </div>
  11296. </div>
  11297. </div>
  11298. </div>
  11299. </div>
  11300. <span slot="footer" class="dialog-footer">
  11301. <!-- <el-button @click="(dialogVisibleGroup = false)">{{ lang.ssCloseBtn }}</el-button> -->
  11302. </span>
  11303. </el-dialog>
  11304. <el-dialog
  11305. :title="lang.ssGroupSetting"
  11306. :visible.sync="dialogVisibleGroup2"
  11307. :append-to-body="true"
  11308. width="650px"
  11309. :before-close="handleClose"
  11310. class="dialog_diy"
  11311. >
  11312. <div class="groupBox">
  11313. <div v-if="groupJson2.group" class="groupContent">
  11314. <div class="groupTitle">{{ lang.ssSetGroupCountAndName }}</div>
  11315. <div
  11316. v-for="(item, index) in groupJson2.group"
  11317. :key="index"
  11318. class="groupName"
  11319. >
  11320. <span class="groupn">{{ lang.ssGroupNumName.replace(/\*/g, index + 1) }}</span>
  11321. <el-input
  11322. v-model="item.name"
  11323. :placeholder="lang.ssEnterName"
  11324. style="width: 250px"
  11325. ></el-input>
  11326. <!-- <div class="groupBtn">
  11327. <el-button type="primary" size="small" @click="addGroup(index)">
  11328. 添加</el-button>
  11329. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11330. v-if="groupJson2.group && groupJson2.group.length > 1">{{ lang.ssDeleteBtn }}</el-button>
  11331. </div> -->
  11332. </div>
  11333. </div>
  11334. <div class="groupContent">
  11335. <div class="groupTitle">{{ lang.ssSetGroupMemberCount }}</div>
  11336. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11337. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11338. <el-input
  11339. v-model="groupJson2.number"
  11340. style="width: 150px"
  11341. :placeholder="lang.ssEnterNumber2To10"
  11342. @change="numberPan"
  11343. ></el-input>
  11344. </div>
  11345. </div>
  11346. <span slot="footer" class="dialog-footer">
  11347. <el-button @click="dialogVisibleGroup2 = false">{{lang.ssCancelBtn}}</el-button>
  11348. <el-button type="primary" @click="updateGroupJson">{{ lang.ssConfirmBtn }}</el-button>
  11349. </span>
  11350. </el-dialog>
  11351. <el-dialog
  11352. :title=lang.ssHomework
  11353. :visible.sync="dialogVisibleGroupWork"
  11354. :append-to-body="true"
  11355. width="500px"
  11356. :before-close="handleClose"
  11357. class="dialog_change"
  11358. >
  11359. <div class="marginT">
  11360. <div>{{ lang.ssUploadHomework }}</div>
  11361. <div
  11362. class="chapter_add"
  11363. @click="addImg($event)"
  11364. v-if="studyJuri[0].cover.length == 0"
  11365. >
  11366. <div class="up_photo">
  11367. <img src="../assets/icon/uploadImg.png" alt />
  11368. </div>
  11369. <!-- <input
  11370. type="file"
  11371. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11372. style="display: none"
  11373. @change="beforeUpload1($event, 1)"
  11374. /> -->
  11375. <input
  11376. type="file"
  11377. accept="*"
  11378. style="display: none"
  11379. @change="beforeUpload1($event, 1)"
  11380. />
  11381. </div>
  11382. <!-- capture="camera" -->
  11383. <div
  11384. class="chapter_add"
  11385. style="
  11386. display: flex;
  11387. width: 100%;
  11388. flex-direction: row;
  11389. flex-wrap: wrap;
  11390. justify-content: flex-start;
  11391. padding: 15px 0;
  11392. "
  11393. v-if="studyJuri[0].cover.length > 0"
  11394. >
  11395. <div class="upCover">
  11396. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11397. <img :src="word" alt v-else-if="fileType == 1" />
  11398. <img :src="video" alt v-else-if="fileType == 2" />
  11399. <img :src="word2" alt v-else-if="fileType == 3" />
  11400. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11401. <div class="deleteWord" @click="clean(1)">
  11402. <img src="../assets/icon/deleteWorks.png" alt />
  11403. </div>
  11404. </div>
  11405. </div>
  11406. </div>
  11407. <div
  11408. class="upload_send"
  11409. @click="addCourseWorks2(taskCount)"
  11410. v-if="!proVisible"
  11411. >
  11412. {{ lang.ssSubmit }}
  11413. </div>
  11414. </el-dialog>
  11415. <el-dialog
  11416. :title=lang.ssModifyGroup
  11417. :visible.sync="dialogVisibleUpdateGroup"
  11418. :append-to-body="true"
  11419. width="350px"
  11420. :before-close="handleClose"
  11421. class="dialog_diy"
  11422. >
  11423. <div>
  11424. <h2>
  11425. {{ updateGroupUser.name }}
  11426. </h2>
  11427. <div style="color: rgb(171 171 171); margin-top: 10px">
  11428. {{ lang.ssSelectGroupPrompt }}
  11429. </div>
  11430. <el-radio-group v-model="checkChair">
  11431. <el-radio
  11432. style="display: block; margin-top: 20px"
  11433. v-for="(item, index) in updateGroupArray"
  11434. :label="item.label"
  11435. :key="index"
  11436. >{{ item.name }}</el-radio
  11437. >
  11438. </el-radio-group>
  11439. </div>
  11440. <span slot="footer" class="dialog-footer">
  11441. <el-button @click="dialogVisibleUpdateGroup = false">{{lang.ssCancelBtn}}</el-button>
  11442. <el-button type="primary" @click="updateChair">{{ lang.ssConfirmBtn }}</el-button>
  11443. </span>
  11444. </el-dialog>
  11445. <el-dialog
  11446. :title="lang.ssRemoveMember"
  11447. :visible.sync="dialogVisibleDeleteGroup"
  11448. :append-to-body="true"
  11449. width="350px"
  11450. :before-close="handleClose"
  11451. class="dialog_diy"
  11452. >
  11453. <div>
  11454. <h2>
  11455. {{ deleteGroupArray.name }}
  11456. </h2>
  11457. <div style="color: rgb(171 171 171); margin-top: 10px">
  11458. {{ lang.ssSelectMemberPrompt }}
  11459. </div>
  11460. <el-checkbox-group v-model="checkDeleteGroup">
  11461. <el-checkbox
  11462. style="display: flex; margin-top: 20px"
  11463. v-for="(item, index) in deleteGroupUser"
  11464. :label="item.userid"
  11465. :key="index"
  11466. >{{ item.name }}</el-checkbox
  11467. >
  11468. </el-checkbox-group>
  11469. </div>
  11470. <span slot="footer" class="dialog-footer">
  11471. <el-button @click="dialogVisibleDeleteGroup = false">{{lang.ssCancelBtn}}</el-button>
  11472. <el-button type="primary" @click="deleteChair">{{ lang.ssConfirmBtn }}</el-button>
  11473. </span>
  11474. </el-dialog>
  11475. <el-dialog
  11476. :title="lang.ssBatchUpload"
  11477. :visible.sync="dialogVisiblePl"
  11478. :append-to-body="true"
  11479. width="700px"
  11480. :before-close="handleClose"
  11481. class="dialog_change"
  11482. >
  11483. <div class="marginT">
  11484. <div class="plworkBox">
  11485. <div
  11486. class="chapter_add"
  11487. style="
  11488. display: flex;
  11489. width: 150px;
  11490. flex-direction: row;
  11491. flex-wrap: wrap;
  11492. justify-content: flex-start;
  11493. margin: 0 10px 10px 0;
  11494. "
  11495. v-for="(item, index) in plworkFile"
  11496. :key="index"
  11497. >
  11498. <div class="upCover2">
  11499. <img
  11500. :src="item.url"
  11501. alt
  11502. v-if="item.fileType == 1"
  11503. @click="previewImg(item.url)"
  11504. />
  11505. <img :src="word" alt v-else-if="item.fileType == 4" />
  11506. <img :src="video" alt v-else />
  11507. <!-- <span class="picName">{{ item.name }}</span> -->
  11508. <!-- <el-input
  11509. v-model="item.username"
  11510. :placeholder="this.lang.ssEnterStudentNamePlaceholder"
  11511. style="margin-top: 10px"
  11512. ></el-input> -->
  11513. <div
  11514. class="pl_select_box"
  11515. @click="
  11516. getUpdateMore(true, checkUpload(), item.username, index)
  11517. "
  11518. >
  11519. {{ getSName(item.username) }}
  11520. </div>
  11521. <!-- <el-select
  11522. style="margin-top: 10px"
  11523. v-model="item.username"
  11524. filterable
  11525. allow-create
  11526. :placeholder="this.lang.ssSelectStudentPlaceholder"
  11527. >
  11528. <el-option
  11529. v-for="item1 in checkUpload()"
  11530. :key="item1.userid"
  11531. :label="item1.name ? item1.name : item1.username"
  11532. :value="item1.userid"
  11533. >
  11534. </el-option>
  11535. </el-select> -->
  11536. <div class="deleteWord" @click="clean2(index)">
  11537. <img src="../assets/icon/deleteWorks.png" alt />
  11538. </div>
  11539. </div>
  11540. </div>
  11541. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11542. <div class="up_photo2">
  11543. <img src="../assets/icon/plwork.png" alt />
  11544. <span>{{ lang.ssClickUploadFile }}</span>
  11545. </div>
  11546. <input
  11547. type="file"
  11548. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11549. multiple="multiple"
  11550. style="display: none"
  11551. @change="beforeUpload3($event, 6)"
  11552. />
  11553. </div>
  11554. </div>
  11555. </div>
  11556. <!-- capture="camera" -->
  11557. <div
  11558. class="upload_send"
  11559. @click="addCourseWorksPl(taskCount)"
  11560. v-if="!proVisible2"
  11561. >
  11562. {{ lang.ssSubmit }}
  11563. </div>
  11564. </el-dialog>
  11565. <el-dialog
  11566. :title="lang.ssModifyName"
  11567. :visible.sync="dialogVisibleSname"
  11568. width="500px"
  11569. :before-close="handleClose"
  11570. class="dialog_diy"
  11571. center
  11572. >
  11573. <div
  11574. style="
  11575. text-align: center;
  11576. display: flex;
  11577. align-items: center;
  11578. justify-content: center;
  11579. "
  11580. >
  11581. <span class="tian1">{{ lang.ssName }}</span>
  11582. <div
  11583. class="pl_select_box"
  11584. style="margin-left: 10px; width: 200px"
  11585. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11586. >
  11587. {{ getSName(worksSName) }}
  11588. </div>
  11589. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11590. :placeholder="lang.ssSelectStudentPrompt"
  11591. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11592. :value="item.userid">
  11593. </el-option>
  11594. </el-select> -->
  11595. <!-- <el-input
  11596. v-model="worksSName"
  11597. style="width: 250px; margin: 15px 0px"
  11598. ></el-input> -->
  11599. </div>
  11600. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11601. <el-button @click="dialogVisibleSname = false">{{lang.ssCancelBtn}}</el-button>
  11602. <el-button type="primary" @click="updateName">{{lang.ssConfirmBtn}}</el-button>
  11603. </span>
  11604. </el-dialog>
  11605. <el-dialog
  11606. :title="lang.ssEnglishWrite"
  11607. :visible.sync="engDialogVisible"
  11608. :append-to-body="true"
  11609. width="800px"
  11610. :before-close="handleClose"
  11611. class="dialog_diy"
  11612. >
  11613. <onlineWrite
  11614. v-if="engDialogVisible"
  11615. :englishList="englishList"
  11616. :myAnswerList1="myAnswerList1"
  11617. :userid="userid"
  11618. ref="engJson"
  11619. ></onlineWrite>
  11620. <span slot="footer" class="dialog-footer">
  11621. <el-button @click="engDialogVisible = false">{{lang.ssCancelBtn}}</el-button>
  11622. <el-button type="primary" @click="addEnglishWork">{{lang.ssConfirmBtn}}</el-button>
  11623. </span>
  11624. </el-dialog>
  11625. <el-dialog
  11626. :title="lang.ssEnglishWrite"
  11627. :visible.sync="engUpdateDialogVisible"
  11628. :append-to-body="true"
  11629. width="800px"
  11630. :before-close="handleClose"
  11631. class="dialog_diy fullStyle"
  11632. >
  11633. <div class="engUpBox">
  11634. <div class="engUpTop">
  11635. <div class="engTitle">
  11636. <div>{{ lang.ssEssayTitle }}</div>
  11637. <div>{{ englishList1.engTitle }}</div>
  11638. </div>
  11639. <div class="engText">
  11640. <div>{{ lang.ssEssayContent }}</div>
  11641. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11642. </div>
  11643. </div>
  11644. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11645. <div class="oldBox">
  11646. <div class="oldMes">{{ lang.ssOriginalAuthor }}{{ noteName }} )</div>
  11647. <div class="oldText">
  11648. <div class="detailBox">
  11649. <div class="oldDetail">
  11650. <div>{{ lang.ssTitleColon }}</div>
  11651. <div>{{ oldEnglishJson.engTitle }} </div>
  11652. </div>
  11653. <div class="oldDetail1">
  11654. <div>{{ lang.ssContentColon }}</div>
  11655. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11656. </div>
  11657. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11658. <div>{{ lang.ssImageColon }}</div>
  11659. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11660. </div>
  11661. </div>
  11662. </div>
  11663. </div>
  11664. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11665. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11666. <div class="oldText">
  11667. <div class="detailBox" style="position: relative;">
  11668. <div class="oldDetail">
  11669. <div>{{ lang.ssTitleColon }}</div>
  11670. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11671. <div v-else v-html="newEnglishList.engTitle"></div>
  11672. </div>
  11673. <div class="oldDetail">
  11674. <div>{{ lang.ssContentColon }}</div>
  11675. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11676. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11677. </div>
  11678. <div style="position: absolute;bottom: -25px;">{{ lang.ssEditNoteText }}</div>
  11679. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11680. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">{{ lang.ssAIAnnotation }}</el-button>
  11681. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirmBtn }}</el-button>
  11682. </div>
  11683. </div>
  11684. </div>
  11685. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11686. <div class="oldMes" style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;" v-if="newEnglishList1.length > 0">
  11687. <div v-if="isNoUserid" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: newEngIndex == -1 ? '#aacaff' : ''}" @click="setEngText(-1)" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11688. <div v-for="(item,index) in newEnglishList1" :key="index" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: index == newEngIndex ? '#aacaff' : ''}" @click="setEngText(index)">{{ item.username }}</div>
  11689. </div>
  11690. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11691. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11692. <div class="detailBox" style="position: relative;">
  11693. <div class="oldDetail">
  11694. <div>{{ lang.ssTitleColon }}</div>
  11695. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11696. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11697. </div>
  11698. <div class="oldDetail">
  11699. <div>{{ lang.ssContentColon }}</div>
  11700. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11701. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11702. </div>
  11703. <div style="position: absolute;bottom: -25px;">{{ lang.ssEditNoteText }}</div>
  11704. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11705. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">{{ lang.ssAIAnnotation }}</el-button>
  11706. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirmBtn }}</el-button>
  11707. </div>
  11708. </div>
  11709. <div class="oldText" v-else-if="newEngIndex == -1">
  11710. <div class="detailBox" style="position: relative;">
  11711. <div class="oldDetail">
  11712. <div>{{ lang.ssTitleColon }}</div>
  11713. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11714. <div v-else v-html="newEnglishList.engTitle"></div>
  11715. </div>
  11716. <div class="oldDetail">
  11717. <div>{{ lang.ssContentColon }}</div>
  11718. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11719. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11720. </div>
  11721. <div style="position: absolute;bottom: -25px;">{{ lang.ssEditNoteText }}</div>
  11722. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11723. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">{{ lang.ssAIAnnotation }}</el-button>
  11724. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirmBtn }}</el-button>
  11725. </div>
  11726. </div>
  11727. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11728. <div class="detailBox" style="position: relative;">
  11729. <div class="oldDetail">
  11730. <div>{{ lang.ssTitleColon }}</div>
  11731. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11732. <div v-else>
  11733. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  11734. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11735. </div>
  11736. </div>
  11737. <div class="oldDetail">
  11738. <div>{{ lang.ssContentColon }}</div>
  11739. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11740. <div v-else>
  11741. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11742. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11743. </div>
  11744. </div>
  11745. <div style="position: absolute;bottom: -25px;">{{ lang.ssEditNoteText }}</div>
  11746. <el-button @click="isUpdateCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11747. <el-button @click="aiCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">{{ lang.ssAIAnnotation }}</el-button>
  11748. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirmBtn }}</el-button>
  11749. </div>
  11750. </div>
  11751. </div>
  11752. </div>
  11753. </div>
  11754. <span slot="footer" class="dialog-footer">
  11755. <el-button @click="engUpdateDialogVisible = false">{{lang.ssCancelBtn}}</el-button>
  11756. <el-button type="primary" @click="addCorrect">{{lang.ssConfirmBtn}}</el-button>
  11757. </span>
  11758. </el-dialog>
  11759. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11760. <interVideo
  11761. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11762. :videoJson="videoJson"
  11763. :userid="userid"
  11764. :id="id"
  11765. :courseType="courseType"
  11766. :taskCount="taskCount"
  11767. :toolindex="toolindex"
  11768. :videoType="videoType"
  11769. ></interVideo>
  11770. <UpdateMore
  11771. :dialogVisibleMember.sync="dialogVisibleMember"
  11772. :cList="uploadStudentJuri"
  11773. :userid="userid"
  11774. :searchTN="worksSName2"
  11775. @setPlname="setPlname"
  11776. ></UpdateMore>
  11777. <!-- <wordCloud
  11778. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11779. :data="wordCloudData"
  11780. ></wordCloud> -->
  11781. <el-dialog
  11782. :title="lang.ssWordCloudTitle"
  11783. :visible.sync="dialogVisibleWordCloud"
  11784. width="800px"
  11785. class="dialog_diy"
  11786. :before-close="handleClose">
  11787. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  11788. </el-dialog>
  11789. <el-dialog
  11790. :title="lang.ssPickPerson"
  11791. :visible.sync="dialogVisiblePickPeople"
  11792. width="650px"
  11793. :before-close="handleClose"
  11794. class="dialog_diy"
  11795. center
  11796. >
  11797. <div class="pick_box">
  11798. <div
  11799. class="noWorksName"
  11800. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11801. v-for="(item, index) in uploadStudentJuri"
  11802. :key="index"
  11803. @click="pickStudent(item)"
  11804. >
  11805. {{ item.name }}
  11806. </div>
  11807. </div>
  11808. </el-dialog>
  11809. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11810. :englishVoiceJson='englishVoiceJson'
  11811. :userid="userid"
  11812. :id="id"
  11813. :courseType="courseType"
  11814. :taskCount="taskCount"
  11815. :toolindex="toolindex"
  11816. @selectSWorks="selectSWorks"
  11817. @selectStudent="selectStudent"
  11818. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11819. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11820. :userid="userid"
  11821. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11822. :commentDetail="commentDetail"
  11823. :courseDetail="courseDetail"
  11824. :wScore="wScore"
  11825. :scoreDetail="scoreDetail"
  11826. @selectSWorks="selectSWorks"
  11827. @selectStudent="selectStudent"></checkEnglishVoice>
  11828. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  11829. <choseWorksDetailDialog
  11830. ref="choseWorksDetailDialogRef"
  11831. :worksStudentData="worksStudent"
  11832. :noWorksSData="noWorksS"
  11833. :chapInfoListData="chapInfoList"
  11834. :courseType="courseType"
  11835. :taskCount="taskCount"
  11836. :tType="tType"
  11837. :sIsOpen="sIsOpen"
  11838. :courseDetail="courseDetail"
  11839. :groupStudent2="groupStudent"
  11840. :groupStudentUid2="groupStudentUid"
  11841. :oid="oid"
  11842. :org="org"
  11843. @getCourseDetail="getCourseDetail"
  11844. @selectSLook="selectSLook"
  11845. @selectSWorks="selectSWorks"
  11846. @selectStudent="selectStudent"
  11847. @deleteWorks="deleteWorks"
  11848. @openTools="openTools"
  11849. @openWord="openWord"
  11850. @openScore="openScore"
  11851. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  11852. />
  11853. <el-dialog
  11854. :visible.sync="confirmOpenDig"
  11855. width="500px"
  11856. :modal="false"
  11857. class="confirmOpenDigCss dialog_diyCopy"
  11858. :before-close="handleClose">
  11859. <div style="display: flex;align-items: center;">
  11860. <img src="../assets/icon/course/confirmOpenDig.svg" alt="">
  11861. <span>{{ lang.ssCourseStartWithTitle.replace(/\*/g, courseDetail.title) }}</span>
  11862. </div>
  11863. <div style="margin: 20px 0 35px;">
  11864. <div style="margin-bottom: 10px;">{{ lang.ssFollowTeacherMsg }}</div>
  11865. <div>{{ lang.ssStudyHardMsg }}</div>
  11866. </div>
  11867. <div style="text-align: center;">
  11868. <el-button type="primary" style="width: 95%;" @click="confirmOpen">{{ lang.ssStartLearningBtn }}</el-button>
  11869. </div>
  11870. </el-dialog>
  11871. <appStoreC ref="appStoreC"
  11872. :sStudent="sStudent"
  11873. :courseType="courseType"
  11874. :taskCount="taskCount"
  11875. :toolindex="toolindex"
  11876. @selectSWorks="selectSWorks"
  11877. @selectStudent="selectStudent"
  11878. ></appStoreC>
  11879. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  11880. </div>
  11881. </template>
  11882. <script>
  11883. import "../common/aws-sdk-2.235.1.min.js";
  11884. // import pdf from "./components/pdf3";
  11885. import pdf from "./components/vpdf";
  11886. import AskStatic from "./components/askStatic";
  11887. import AskStatic2 from "./components/askStatic2";
  11888. import AnswerData2 from "./components/answerData2";
  11889. import AnswerData from "./components/answerData";
  11890. import sortToolWorkShow from "./components/sortToolWorkShow.vue";
  11891. import EditorBar from "./tools/wangEnduit.vue";
  11892. import Table from "./tools/table.vue";
  11893. import Time from "./tools/time.vue";
  11894. import Mind from "./tools/jsmind.vue";
  11895. import Sunburst from "./tools/sunburst";
  11896. import SeeBoard from "./tools/seeBoard";
  11897. import * as imageConversion from "image-conversion";
  11898. import Audio from "./components/audio.vue";
  11899. import ImgDraw from "./tools/imgDraw/imgDraw";
  11900. import { Empty } from "element-ui";
  11901. import RecordRTC from "recordrtc";
  11902. import interVideo from "./interVideo/index.vue";
  11903. import UpdateMore from "./updateMore/updateMore.vue";
  11904. import wordCloud from "./wordCloud/index.vue";
  11905. import axios from "axios";
  11906. import JSZip from "jszip";
  11907. import FileSaver from "file-saver";
  11908. import onlineWrite from "./components/onlineWrite";
  11909. import englishEva from "./components/englishEva";
  11910. import * as Diff from 'diff'
  11911. import EnglishVoice from './EnglishVoice2/index.vue'
  11912. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  11913. import correctText from './components/correctText.vue'
  11914. import scoreItem from './scoreList/scoreItem.vue'
  11915. import scoreZong from './scoreZong/index.vue'
  11916. import classRoomHelper from './classRoomHelper/index.vue'
  11917. import studentClassRoomHelper from './classRoomHelper/studentIndex.vue'
  11918. import statisticalAnalysis from "./components/statisticalAnalysis.vue";
  11919. import choseWorksDetailDialog from './components/choseWorksDetailDialog.vue';
  11920. import { v4 as uuidv4 } from "uuid";
  11921. var OpenCC = require("opencc-js");
  11922. import choseWordCloud from './components/choseWordCloud.vue'
  11923. import appStoreC from "./components/appStoreC.vue";
  11924. import cocoFlowDia from "./components/cocoFlowDia.vue";
  11925. import { myMixin } from "@/mixins/mixin.js"
  11926. import { tools as toolsList } from "@/common/tools2.js";
  11927. import katex from 'katex'
  11928. import 'katex/dist/katex.min.css'
  11929. let converter = OpenCC.Converter({
  11930. from: "hk",
  11931. to: "cn"
  11932. });
  11933. const getFile = (url) => {
  11934. return new Promise((resolve, reject) => {
  11935. var credentials = {
  11936. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11937. secretAccessKey: "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",
  11938. }; //秘钥形式的登录上传
  11939. window.AWS.config.update(credentials);
  11940. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11941. let url2 = url;
  11942. let _url2 = "";
  11943. if (
  11944. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11945. ) {
  11946. _url2 = url2.split(
  11947. "https://view.officeapps.live.com/op/view.aspx?src="
  11948. )[1];
  11949. } else {
  11950. _url2 = url2;
  11951. }
  11952. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11953. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11954. var params = {
  11955. Bucket: "ccrb",
  11956. Key: name
  11957. };
  11958. s3.getObject(params, function (err, data) {
  11959. if (err) {
  11960. console.log(err, err.stack)
  11961. resolve({ data: 1 });
  11962. }else {
  11963. resolve({ data: data.Body });
  11964. console.log(data);
  11965. } // sxuccessful response
  11966. });
  11967. // axios({
  11968. // method: "get",
  11969. // url,
  11970. // responseType: "blob",
  11971. // })
  11972. // .then((data) => {
  11973. // resolve({ data: data.data });
  11974. // })
  11975. // .catch((error) => {
  11976. // resolve({ data: 1 });
  11977. // // reject(error.toString());
  11978. // });
  11979. });
  11980. };
  11981. export default {
  11982. mixins: [ myMixin ],
  11983. components: {
  11984. choseWordCloud,
  11985. EditorBar,
  11986. Time,
  11987. pdf,
  11988. AskStatic,
  11989. AskStatic2,
  11990. Mind,
  11991. Sunburst,
  11992. SeeBoard,
  11993. AnswerData2,
  11994. AnswerData,
  11995. sortToolWorkShow,
  11996. Audio,
  11997. ImgDraw,
  11998. Table,
  11999. interVideo,
  12000. UpdateMore,
  12001. wordCloud,
  12002. onlineWrite,
  12003. englishEva,
  12004. EnglishVoice,
  12005. checkEnglishVoice,
  12006. correctText,
  12007. scoreItem,
  12008. classRoomHelper,
  12009. scoreZong,
  12010. statisticalAnalysis,
  12011. choseWorksDetailDialog,
  12012. appStoreC,
  12013. cocoFlowDia,
  12014. studentClassRoomHelper
  12015. },
  12016. data() {
  12017. return {
  12018. // 学校或者组织随机码
  12019. Code2:'',
  12020. startTime: "",
  12021. // 是否允许学生查看内容资料 2不可以 1可以
  12022. IsStulook:false,
  12023. homeWorkLoading:false,
  12024. wordCloudKey: 0,
  12025. bg: null,
  12026. drawShow: false,
  12027. dialogVisible: false,
  12028. dialogVisiblePl: false,
  12029. commentDialogVisible: false,
  12030. dialogVisibleMember: false,
  12031. dialogVisibleWordCloud: false,
  12032. videoVisible: false,
  12033. isStar: false,
  12034. studentEvalDialogVisible: false,
  12035. studentEvalDialogVisibleTeacher: false,
  12036. dialogVisibleSelect: false,
  12037. dialogVisibleSelectTeacher: false,
  12038. dialogVisibleScore: false,
  12039. dialogVisibleENScore: false,
  12040. dialogVisibleSentence: false,
  12041. dialogVisibleSentenceTeacher: false,
  12042. dialogVisibleSentence1: false,
  12043. dialogVisibleWorks: false,
  12044. dialogVisibleTable: false,
  12045. dialogVisibleTableTeacher: false,
  12046. dialogVisibleWord: false,
  12047. dialogVisibleWordTeacher: false,
  12048. dialogVisibleTable2: false,
  12049. dialogVisibleTable3: false,
  12050. dialogVisibleGroupWork: false,
  12051. dialogVisibleUpdateGroup: false,
  12052. dialogVisibleDeleteGroup: false,
  12053. dialogVisibleSname: false,
  12054. dialogVisibleVideo: false,
  12055. dialogVisiblePickPeople: false,
  12056. engDialogVisible: false,
  12057. engUpdateDialogVisible: false,
  12058. engEvaDialogVisible: false,
  12059. evaEngJson: {
  12060. teacherJson: {},
  12061. studentJson: {},
  12062. message: {},
  12063. },
  12064. isNoUserid:false,
  12065. engListLength:0,
  12066. engWid:"",
  12067. newEnglishList:{
  12068. engTitle:"",
  12069. engText:"",
  12070. },
  12071. newEnglishList1:[],
  12072. oldEnglishJson:{},
  12073. oldEnglishJson1:{},
  12074. englishList1:{},
  12075. englishList:{},
  12076. myAnswerList1:{},
  12077. topHeight:0,
  12078. newEngIndex:-1,
  12079. englishToolIndex:0,
  12080. worksSName: "",
  12081. classJuri: [],
  12082. uploadStudentJuri: [],
  12083. uploadCid: "",
  12084. snameWid: "",
  12085. sStudent: {},
  12086. sTool: "",
  12087. bzText: "",
  12088. commentDetail: [],
  12089. selectAnswer: [],
  12090. videoDetail: {},
  12091. selectJson: {},
  12092. eScore: { eBzText: "", eStar: [] },
  12093. id: this.$route.query.courseId,
  12094. userid: this.$route.query.userid,
  12095. classId: this.$route.query.cid,
  12096. role: this.$route.query.role,
  12097. // courseTypeLine: this.$route.query.type,
  12098. oid: this.$route.query.oid,
  12099. org: this.$route.query.org,
  12100. tType: this.$route.query.tType,
  12101. courseType: this.$route.query.type,
  12102. screenType: this.$route.query.screenType,
  12103. tcid2: this.$route.query.tcid,
  12104. tcid: "",
  12105. pptImgUrl: "",
  12106. pptImgUrl1: "",
  12107. commentText: "",
  12108. full: false,
  12109. sIsOpen: false,
  12110. IsLookOpen: false,
  12111. IsFollow: false,
  12112. pzDialog: false,
  12113. contentDialog: false,
  12114. mlDialog: false,
  12115. type: 1,
  12116. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12117. sentenceList1: [],
  12118. tableJson: [],
  12119. tableJsonO: [],
  12120. wordJson: [],
  12121. wordJsonO: [],
  12122. vedio: [],
  12123. text: [],
  12124. textList: [],
  12125. line: [],
  12126. lineList: [],
  12127. chapTools: [],
  12128. chapToolList: [],
  12129. file: [],
  12130. fileC: [],
  12131. vedioTime: [],
  12132. upToolImg: "",
  12133. preTime: 0,
  12134. rateList: {
  12135. ca: 0,
  12136. },
  12137. rateParams: [],
  12138. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12139. studyJuri: [
  12140. {
  12141. content: "",
  12142. cover: [],
  12143. upVedio: [],
  12144. upFile: [],
  12145. },
  12146. ],
  12147. isClose: 0,
  12148. plworkFile: [],
  12149. mr: require("../assets/vedioPic.png"),
  12150. word: require("../assets/icon/isWord.png"),
  12151. word2: require("../assets/icon/word2.png"),
  12152. video: require("../assets/icon/isVideo.png"),
  12153. noLikes: require("../assets/icon/comment/noLikes.png"),
  12154. likes: require("../assets/icon/comment/likes.png"),
  12155. scoreImg: require("../assets/score.png"),
  12156. courseDetail: {},
  12157. reply: "",
  12158. isSelect: false,
  12159. chapInfo: [],
  12160. chapInfoList: [],
  12161. taskCount: 0,
  12162. imgList: [],
  12163. noImgList: [],
  12164. pzList: [],
  12165. timeWorkList: [],
  12166. PlTextList: [
  12167. "Excellent!",
  12168. "nice!",
  12169. this.lang.ssVeryCreative,
  12170. this.lang.ssNotBad,
  12171. this.lang.ssKeepTrying,
  12172. ],
  12173. isClickNav: "",
  12174. navId: "",
  12175. playerOptions: {
  12176. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12177. autoplay: false, //如果true,浏览器准备好时开始回放。
  12178. muted: false, // 默认情况下将会消除任何音频。
  12179. loop: false, // 导致视频一结束就重新开始。
  12180. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12181. language: "zh-CN",
  12182. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12183. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12184. sources: [
  12185. {
  12186. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12187. src: "", //url地址require("../../assets/media/aaa.mp4")
  12188. },
  12189. ],
  12190. // poster: require("../../assets/tu31.png"), //你的封面地址
  12191. // poster: dataRes.imgUrl, //你的封面地址
  12192. notSupportedMessage: this.lang.ssVideoNotSupported, //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12193. controlBar: {
  12194. timeDivider: true, //当前时间和持续时间的分隔符
  12195. durationDisplay: true, //显示持续时间
  12196. remainingTimeDisplay: false, //是否显示剩余时间功能
  12197. fullscreenToggle: true, //全屏按钮
  12198. },
  12199. },
  12200. playerOptions1: {
  12201. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12202. autoplay: false, //如果true,浏览器准备好时开始回放。
  12203. muted: false, // 默认情况下将会消除任何音频。
  12204. loop: false, // 导致视频一结束就重新开始。
  12205. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12206. language: "zh-CN",
  12207. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12208. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12209. sources: [
  12210. {
  12211. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12212. src: "", //url地址require("../../assets/media/aaa.mp4")
  12213. },
  12214. ],
  12215. // poster: require("../../assets/tu31.png"), //你的封面地址
  12216. // poster: dataRes.imgUrl, //你的封面地址
  12217. notSupportedMessage: this.lang.ssVideoNotSupported, //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12218. controlBar: {
  12219. timeDivider: true, //当前时间和持续时间的分隔符
  12220. durationDisplay: true, //显示持续时间
  12221. remainingTimeDisplay: false, //是否显示剩余时间功能
  12222. fullscreenToggle: true, //全屏按钮
  12223. },
  12224. },
  12225. playerO: {},
  12226. noneBtnImg: false,
  12227. proVisible: false,
  12228. proVisible2: false,
  12229. progress: 0,
  12230. isFinishSize: 0,
  12231. isAllSize: 0,
  12232. questionAnswer: "",
  12233. answerQ: "", //问答标题
  12234. rateJson: [],
  12235. wbCount: 0,
  12236. wordCount: 0,
  12237. mindCount: 0,
  12238. askCount: 0,
  12239. noteCount: 0,
  12240. mindNetWorkCount: 0,
  12241. libraryCount: 0,
  12242. workCount: 0,
  12243. timeCount: 0,
  12244. answerCount: 0,
  12245. trainCount: 0,
  12246. evalCount: 0,
  12247. dialogImageUrl: "",
  12248. pictureDialog: false,
  12249. toolTypeList: [],
  12250. dialogVisible1: false,
  12251. dialogVisible2: false,
  12252. dialogVisible3: false,
  12253. dialogVisible6: false,
  12254. dialogVisible4: false,
  12255. isNoHomeWork: false,
  12256. dialogVisible5: false,
  12257. dialogVisible5Teacher: false,
  12258. dialogVisibleChoice: false,
  12259. dialogVisibleChoiceTeacher: false,
  12260. answerDialogVisible: false,
  12261. answerDialogVisibleTeacher: false,
  12262. juriVisible: false,
  12263. timeDialogVisible: false,
  12264. replyDialogVisible: false,
  12265. toolDialogVisible: false,
  12266. replyIndex: 0,
  12267. replyPid: "",
  12268. radio: [],
  12269. isAsk: false,
  12270. askJson: {
  12271. askCount: 1,
  12272. askTitle: "",
  12273. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12274. },
  12275. testJson: {},
  12276. videoType:0,
  12277. checkJson: [],
  12278. askList: [],
  12279. answerList: [],
  12280. navList: [],
  12281. addPzDialog: false,
  12282. pzConText: "",
  12283. worksStudent: [],
  12284. isCloseList: [],
  12285. workStudent: [],
  12286. groupStudent: [],
  12287. groupStudentUid: [],
  12288. noWorksS: [],
  12289. isWorksS: [],
  12290. noWorksStudent: [],
  12291. toolindex: 0,
  12292. toolDetailIndex: null,
  12293. groupIndex: 0,
  12294. workTypeB: false,
  12295. workTypeC: false,
  12296. isAnswer: false,
  12297. isHovered: false,
  12298. isHovered1: false,
  12299. isHovered2: false,
  12300. commentTagShow:0,
  12301. timer: null,
  12302. timer2: null,
  12303. opertimer: null,
  12304. showType: '',
  12305. fileType: 0,
  12306. showPDF: false,
  12307. noteName: "",
  12308. evaJuri: [],
  12309. evalua: "",
  12310. eTitle: "",
  12311. eName: "",
  12312. eJson: {},
  12313. fid: "", //一级
  12314. sid: "", //二级
  12315. tid: "", //二级
  12316. typeMode: 1,
  12317. eJSONNum: 0,
  12318. Etype: 1,
  12319. data: {
  12320. meta: {
  12321. name: "example",
  12322. author: "dd@163.com",
  12323. version: "0.2",
  12324. },
  12325. format: "node_array",
  12326. data: [{ id: "root", isroot: true, topic: "" }],
  12327. },
  12328. fullDialogVisible: false,
  12329. fulltype: "",
  12330. fullUrl: "",
  12331. commentIndexJson: {},
  12332. Stbodywidth: 0,
  12333. ispzType: 0,
  12334. pzType: 1,
  12335. wScore: 0,
  12336. scoreDetail: "",
  12337. videoStart: false,
  12338. recorder: null,
  12339. groupJson: {},
  12340. islock: false,
  12341. groupJson2: {},
  12342. dialogVisibleGroup: false,
  12343. dialogVisibleGroup2: false,
  12344. updateGroupArray: [],
  12345. updateGroupUser: {},
  12346. deleteGroupUser: [],
  12347. deleteGroupArray: {},
  12348. checkChair: "",
  12349. checkDeleteGroup: [],
  12350. inviteCode: "",
  12351. courseGroupStudent: [],
  12352. courseGroupStudentUid: [],
  12353. courseGroup: {},
  12354. isGroup: false,
  12355. // toolIndex: null,
  12356. tool: {},
  12357. isWorkTool: [
  12358. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12359. ], //, 40
  12360. videoJson: {},
  12361. toolType: 0,
  12362. checktoolArray: [],
  12363. vChapterData: [],
  12364. isUpdateToolDetail: false,
  12365. isUpdateToolDetail1: false,
  12366. updateToolDetailInner: "",
  12367. checkboxList: [],
  12368. plIndex: "",
  12369. worksSName2: "",
  12370. worksSid: "",
  12371. wordCloudData: [],
  12372. isPickStudent: [],
  12373. pzStype: 1,
  12374. myAnList: {},
  12375. userMes:{},
  12376. downLoading: false,
  12377. greyType: false,
  12378. correctWord: [],
  12379. isUpdateText: "",
  12380. EnglishVoiceDialog: false,
  12381. englishVoiceJson: {},
  12382. englishVoiceJsonWork:[],
  12383. scoreList:{
  12384. listdata:[],
  12385. isScoreList:[],
  12386. },
  12387. classRoomHelperWidth: this.$region != 'hk' ? '85px' : '15px',
  12388. orgArray:[],
  12389. oidArray:[],
  12390. toolsList: toolsList,
  12391. splitScreenData:{
  12392. isOpen:false,
  12393. userId:"",
  12394. uid:"",
  12395. myUid:"",
  12396. loading:false,
  12397. behavior:null,
  12398. },
  12399. confirmOpenDig:false,
  12400. confirmOpenDigData:'',
  12401. canUseCourseId: ['bfbe1913-2f87-11ef-bf55-005056b86db5','3a64b199-d2eb-11ef-a2d1-005056b86db5', 'bb0b1995-0207-11ef-b534-005056b86db5', 'f77921c8-d2f1-11ef-a2d1-005056b86db5'],
  12402. diffKey:"1",
  12403. getCourseGroupLoading: false,
  12404. selectSWorksLoading:false,
  12405. selectStudentLoading:false,
  12406. selectSLookLoading:false,
  12407. getPickLoading:false,
  12408. selectPzLoading:false,
  12409. getSplitScreenDataLoading:false,
  12410. timeoutPan: null,
  12411. isTimeOutPan: false,
  12412. };
  12413. },
  12414. methods: {
  12415. // 获取学校或组织随机码
  12416. getCode2(){
  12417. let params = {
  12418. oid: this.oid,
  12419. org: this.org
  12420. };
  12421. this.ajax
  12422. .get(this.$store.state.api + "getCode2", params)
  12423. .then(res => {
  12424. this.Code2 = res.data[0] && res.data[0][0] && res.data[0][0].code2 ? res.data[0][0].code2 : ''
  12425. })
  12426. .catch(err => {
  12427. console.error(err);
  12428. });
  12429. },
  12430. //查看应用中心作业
  12431. openCocoFlow(w){
  12432. this.$refs.cocoFlowDiaRef.openAppWork(w)
  12433. },
  12434. getAIJ(){
  12435. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12436. let oid = res.data[0];
  12437. let org = res.data[1];
  12438. let oidArray = [];
  12439. let orgArray = [];
  12440. oid.forEach(i=>oidArray.push(i.oid))
  12441. org.forEach(i=>orgArray.push(i.oid))
  12442. this.orgArray = orgArray;
  12443. this.oidArray = oidArray;
  12444. })
  12445. },
  12446. insertMemorandum(_html){//保存行为操作
  12447. //variable
  12448. //btn
  12449. let params = [{
  12450. uid:this.userid,
  12451. courseId:this.id+(this.tcid2?this.tcid2:''),
  12452. content:_html
  12453. }]
  12454. console.log("👇👇")
  12455. console.log(params)
  12456. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12457. if(res.data==1){
  12458. console.log('保存操作成功')
  12459. }else{
  12460. console.log('保存操作失败')
  12461. }
  12462. }).catch(e=>{
  12463. console.log('保存操作失败')
  12464. console.log(e)
  12465. })
  12466. },
  12467. gx(){
  12468. this.$forceUpdate();
  12469. },
  12470. isUpdateCorrect(t,p){
  12471. if(this.greyType == false){
  12472. this.isUpdateText = t;
  12473. this.greyType = true;
  12474. }else{
  12475. if(p == 1){
  12476. this.newEnglishList.engText = this.isUpdateText;
  12477. }else if(p == 2){
  12478. this.oldEnglishJson1.engText = this.isUpdateText;
  12479. }else if(p == 3){
  12480. this.newEnglishList.engText = this.isUpdateText;
  12481. }else{
  12482. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12483. }
  12484. this.greyType = false
  12485. }
  12486. },
  12487. aiCorrect(t,p){
  12488. let aiText = "";
  12489. const loading = this.$loading.service({
  12490. background: "rgba(255, 255, 255)",
  12491. target: document.querySelectorAll(".loadingText")[0],
  12492. });
  12493. let param = {
  12494. model: "gpt-3.5-turbo",
  12495. temperature: 0,
  12496. max_tokens: 2048,
  12497. top_p: 1,
  12498. frequency_penalty: 0,
  12499. presence_penalty: 0,
  12500. messages: [
  12501. {
  12502. role: "user",
  12503. content:
  12504. `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12505. },
  12506. ],
  12507. uid: this.userid,
  12508. stream: false,
  12509. };
  12510. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12511. (res) => {
  12512. if (
  12513. res.data.FunctionResponse &&
  12514. res.data.FunctionResponse.result &&
  12515. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12516. ) {
  12517. this.$message.error(this.lang.ssEssayTooLongForAI);
  12518. return;
  12519. }
  12520. aiText =
  12521. res.data.FunctionResponse.choices[0].message.content;
  12522. aiText = aiText.replace(/%/g,"%25");
  12523. // let w = "";
  12524. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12525. // for(var k = 0;k<a.length;k++){
  12526. // //diffWordsWithSpace
  12527. // if(a.length > 1){
  12528. // if(a[k].added == true){
  12529. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12530. // }else if(a[k].removed == true){
  12531. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12532. // }else{
  12533. // w += '<span>' + a[k].value + '</span>';
  12534. // }
  12535. // }else{
  12536. // if(p == 1){
  12537. // w = this.newEnglishList.engText;
  12538. // }else if(p == 2){
  12539. // w = this.oldEnglishJson1.engText;
  12540. // }else if(p == 3){
  12541. // w = this.newEnglishList.engText;
  12542. // }else{
  12543. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12544. // }
  12545. // }
  12546. // }
  12547. if(p == 1){
  12548. this.newEnglishList.engText = aiText;
  12549. }else if(p == 2){
  12550. this.oldEnglishJson1.engText = aiText;
  12551. }else if(p == 3){
  12552. this.newEnglishList.engText = aiText;
  12553. }else{
  12554. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12555. }
  12556. loading.close();
  12557. },
  12558. (err) => {
  12559. console.log(err);
  12560. loading.close();
  12561. }
  12562. );
  12563. },
  12564. addToolChoose() {
  12565. if (!this.checktoolArray.length) {
  12566. this.$message.error(this.lang.ssSelectTaskToAdd);
  12567. return;
  12568. }
  12569. if (
  12570. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12571. this.taskCount
  12572. ].toolChoose[0].tool.length
  12573. ) {
  12574. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12575. this.taskCount
  12576. ].toolChoose[0].tool = this.checktoolArray;
  12577. } else {
  12578. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12579. this.taskCount
  12580. ].toolChoose.push({
  12581. tool: this.checktoolArray,
  12582. toolDetail: "",
  12583. toolType: 0,
  12584. askCount: 1,
  12585. askTitle: "",
  12586. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12587. });
  12588. }
  12589. let params = [
  12590. {
  12591. cid: this.id,
  12592. chapters: JSON.stringify(this.chapInfoList),
  12593. uid: this.userid,
  12594. unitIndex: this.courseType,
  12595. },
  12596. ];
  12597. this.ajax
  12598. .post(this.$store.state.api + "updateWorkNew4", params)
  12599. .then((res) => {
  12600. this.$message({
  12601. message: this.lang.ssAddSuccess,
  12602. type: "success",
  12603. });
  12604. this.checktoolArray = [];
  12605. this.getCourseDetail(2);
  12606. this.checkBz(
  12607. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12608. this.taskCount
  12609. ].toolChoose.length - 1
  12610. );
  12611. this.toolDialogVisible = false;
  12612. this.refreshCourse();
  12613. this.$forceUpdate();
  12614. })
  12615. .catch((err) => {
  12616. console.error(err);
  12617. });
  12618. },
  12619. checkBz(index) {
  12620. this.isUpdateToolDetail = false;
  12621. this.$forceUpdate();
  12622. setTimeout(() => {
  12623. document.scrollingElement.scrollTop =
  12624. document.querySelectorAll(".filebox")[index].offsetTop +
  12625. document.querySelector(".student_body").offsetTop;
  12626. }, 500);
  12627. },
  12628. updateToolDetail(i, type) {
  12629. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12630. this.toolDetailIndex = i
  12631. this.isUpdateToolDetail1 = true;
  12632. setTimeout(() => {
  12633. this.updateToolDetailInner = JSON.parse(
  12634. JSON.stringify(
  12635. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12636. this.taskCount
  12637. ].toolChoose[i].toolDetail
  12638. )
  12639. );
  12640. document.querySelector(".checkTextArea").focus();
  12641. }, 0);
  12642. } else if((this.isUpdateToolDetail1 && type != 2)){
  12643. // this.toolDetailIndex = i;
  12644. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12645. this.taskCount
  12646. ].toolChoose[i].toolDetail = JSON.parse(
  12647. JSON.stringify(this.updateToolDetailInner)
  12648. );
  12649. let params = [
  12650. {
  12651. cid: this.id,
  12652. chapters: JSON.stringify(this.chapInfoList),
  12653. uid: this.userid,
  12654. unitIndex: this.courseType,
  12655. },
  12656. ];
  12657. this.ajax
  12658. .post(this.$store.state.api + "updateWorkNew4", params)
  12659. .then((res) => {
  12660. this.isUpdateToolDetail1 = false;
  12661. this.$message({
  12662. message: this.lang.ssModifySuccess,
  12663. type: "success",
  12664. });
  12665. this.toolDetailIndex = null;
  12666. this.updateToolDetailInner = "";
  12667. this.getCourseDetail(2);
  12668. this.$forceUpdate();
  12669. })
  12670. .catch((err) => {
  12671. console.error(err);
  12672. });
  12673. } else if((this.isUpdateToolDetail1 && type == 2)){
  12674. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12675. this.taskCount
  12676. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12677. JSON.stringify(this.updateToolDetailInner)
  12678. );
  12679. let params = [
  12680. {
  12681. cid: this.id,
  12682. chapters: JSON.stringify(this.chapInfoList),
  12683. uid: this.userid,
  12684. unitIndex: this.courseType,
  12685. },
  12686. ];
  12687. this.ajax
  12688. .post(this.$store.state.api + "updateWorkNew4", params)
  12689. .then((res) => {
  12690. this.$message({
  12691. message: this.lang.ssModifySuccess,
  12692. type: "success",
  12693. });
  12694. this.toolDetailIndex = i;
  12695. this.isUpdateToolDetail1 = true;
  12696. setTimeout(() => {
  12697. this.updateToolDetailInner = JSON.parse(
  12698. JSON.stringify(
  12699. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12700. this.taskCount
  12701. ].toolChoose[i].toolDetail
  12702. )
  12703. );
  12704. document.querySelector(".checkTextArea").focus();
  12705. }, 0);
  12706. this.getCourseDetail(2);
  12707. this.$forceUpdate();
  12708. })
  12709. .catch((err) => {
  12710. console.error(err);
  12711. });
  12712. }
  12713. },
  12714. jumpGj(i, j, k, l) {
  12715. for (var z = 0; z < this.navList.length; z++) {
  12716. for (var q = 0; q < this.navList[z].task.length; q++) {
  12717. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12718. this.navList[z].task[q].tool[w].isTool = false;
  12719. }
  12720. }
  12721. }
  12722. this.navList[i].task[j].tool[k].isTool =
  12723. !this.navList[i].task[j].tool[k].isTool;
  12724. var a = document.scrollingElement;
  12725. this.navId = ""
  12726. let target = document.querySelector(`#gj${k}`);
  12727. if (target) {
  12728. // target.scrollIntoView(true);
  12729. // setTimeout(() => {
  12730. // a.scrollTop = a.scrollTop - 150;
  12731. // }, 0);
  12732. target.scrollIntoView();
  12733. setTimeout(()=>{
  12734. let scrollBody = document.querySelector('.body_student').parentElement
  12735. scrollBody.scrollTop = scrollBody.scrollTop - 100
  12736. }, 0);
  12737. }
  12738. let flag = this.courseType == i;
  12739. let flag2 = this.taskCount == j
  12740. if (l) {
  12741. this.courseType = i;
  12742. // this.navId = l;
  12743. this.taskCount = j;
  12744. this.selectPz();
  12745. this.getHomeWork();
  12746. this.getCourseDetail(2);
  12747. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  12748. if(flag){
  12749. if(flag2){
  12750. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12751. }else{
  12752. this.insertMemorandum(`选择<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12753. }
  12754. }else{
  12755. this.insertMemorandum(`选择<span class="variable">阶段${i+1}${this.navList[i].dyName?':'+this.navList[i].dyName:''}</span>→<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12756. }
  12757. }
  12758. if ((this.courseDetail.userid == this.userid ||
  12759. (this.courseDetail.course_teacher &&
  12760. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
  12761. this.IsFollow) {
  12762. this.setCTask();
  12763. }
  12764. // var b = this.$refs["bz" + k][0];
  12765. // a.scrollTop = b.offsetTop;
  12766. },
  12767. addTools2(i) {
  12768. if (i == 4) {
  12769. // this.openTools2(4);
  12770. this.$message.error(this.lang.ssNotAvailable);
  12771. return;
  12772. }
  12773. if (i == 45) {
  12774. // this.openTools2(45);
  12775. this.$message.error(this.lang.ssNotAvailable);
  12776. return;
  12777. }
  12778. if (i == 47) {
  12779. // this.openTools2(47);
  12780. this.$message.error(this.lang.ssNotAvailable);
  12781. return;
  12782. }
  12783. if (i == 49) {
  12784. // this.openTools2(49);
  12785. this.$message.error(this.lang.ssNotAvailable);
  12786. return;
  12787. }
  12788. if (i == 62) {
  12789. // this.openTools(itemTaskIndex, 62, toolIndex);
  12790. this.$message.error(this.lang.ssNotAvailable);
  12791. return;
  12792. }
  12793. if (i == 15) {
  12794. // this.openTools(itemTaskIndex, 15, toolIndex);
  12795. this.$message.error(this.lang.ssNotAvailable);
  12796. return;
  12797. }
  12798. if (i == 40) {
  12799. // this.openTools(itemTaskIndex, 40, toolIndex);
  12800. this.$message.error(this.lang.ssNotAvailable);
  12801. return;
  12802. }
  12803. if (i == 41) {
  12804. // this.openTools(itemTaskIndex, 41, toolIndex);
  12805. this.$message.error(this.lang.ssNotAvailable);
  12806. return;
  12807. }
  12808. if (i == 42) {
  12809. // this.openTools(itemTaskIndex, 42, toolIndex);
  12810. this.$message.error(this.lang.ssNotAvailable);
  12811. return;
  12812. }
  12813. if (this.checktoolArray.length > 0) {
  12814. if (this.checktoolArray.indexOf(i) != -1) {
  12815. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12816. } else {
  12817. this.checktoolArray = [];
  12818. this.checktoolArray.push(i);
  12819. }
  12820. } else {
  12821. this.checktoolArray.push(i);
  12822. }
  12823. this.$forceUpdate();
  12824. },
  12825. jump() {
  12826. window.topU.postMessage({ tools: "43" }, "*");
  12827. },
  12828. getUpdateMore(f, checkboxList, searchTN, index) {
  12829. this.dialogVisibleMember = f;
  12830. this.checkboxList = checkboxList;
  12831. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12832. this.plIndex = index;
  12833. },
  12834. setPlname(a) {
  12835. if (this.plworkFile.length) {
  12836. this.plworkFile[this.plIndex].username = a;
  12837. } else {
  12838. this.worksSName = a;
  12839. }
  12840. this.dialogVisibleMember = false;
  12841. },
  12842. previewImg(url,w=null) {
  12843. this.$hevueImgPreview(url);
  12844. if(w){
  12845. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  12846. }
  12847. },
  12848. checkImg(list) {
  12849. if (!list.length) {
  12850. return;
  12851. }
  12852. this.$hevueImgPreview({
  12853. multiple: true, // 开启多图预览模式
  12854. imgList: list, // 需要预览的多图数组
  12855. });
  12856. },
  12857. change(val) {
  12858. console.log(val);
  12859. },
  12860. goTo(path) {
  12861. this.$router.push(path);
  12862. },
  12863. handlePictureCardPreview(url) {
  12864. this.dialogImageUrl = url;
  12865. this.pictureDialog = true;
  12866. },
  12867. clean(type) {
  12868. if (type == 1) {
  12869. this.studyJuri[0].cover.splice(0, 1);
  12870. } else if (type == 2) {
  12871. this.studyJuri[0].upVedio.splice(0, 1);
  12872. } else {
  12873. this.studyJuri[0].upFile.splice(0, 1);
  12874. }
  12875. },
  12876. clean2(index) {
  12877. this.plworkFile.splice(index, 1);
  12878. },
  12879. handleClose(done) {
  12880. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12881. this.videoDetail.sources[0].src = "";
  12882. }
  12883. this.commentIndexJson = {};
  12884. done();
  12885. },
  12886. fullTools() {
  12887. this.full = !this.full;
  12888. },
  12889. imgChange(file, fileList, type) {
  12890. if (type == 1) {
  12891. var _tmp = this.studyJuri[0].cover;
  12892. } else if (type == 2) {
  12893. var _tmp = this.studyJuri[0].upVedio;
  12894. } else {
  12895. var _tmp = this.studyJuri[0].upFile;
  12896. }
  12897. this.noneBtnImg = _tmp.length >= 1;
  12898. },
  12899. setContent(bool) {
  12900. this.contentDialog = bool;
  12901. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12902. document.querySelector(".workd_media").style.height = "650px";
  12903. } else if (document.querySelector(".workd_media")) {
  12904. document.querySelector(".workd_media").style.height = "auto";
  12905. }
  12906. },
  12907. setContent2(bool) {
  12908. this.mlDialog = bool;
  12909. if (
  12910. bool &&
  12911. this.contentDialog &&
  12912. document.querySelector(".workd_media")
  12913. ) {
  12914. document.querySelector(".workd_media").style.height = "650px";
  12915. } else if (document.querySelector(".workd_media")) {
  12916. document.querySelector(".workd_media").style.height = "auto";
  12917. }
  12918. this.$forceUpdate();
  12919. },
  12920. openToolAll() {
  12921. this.toolDialogVisible = true;
  12922. },
  12923. addImg(e) {
  12924. var el = e.currentTarget;
  12925. // this.$message.success('触发上传')
  12926. el.getElementsByTagName("input")[0].click();
  12927. e.target.value = "";
  12928. },
  12929. addSelectAnswer() {
  12930. let params = [
  12931. {
  12932. uid: this.userid,
  12933. cid: this.id,
  12934. stage: this.courseType,
  12935. task: this.taskCount,
  12936. tool: this.toolindex,
  12937. content: this.selectAnswer.answer,
  12938. type: 7,
  12939. },
  12940. ];
  12941. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  12942. this.homeWorkLoading = true
  12943. this.ajax
  12944. .post(this.$store.state.api + "addCourseWorks", params)
  12945. .then((res) => {
  12946. this.$message({
  12947. message: this.lang.ssSubmitSuccess,
  12948. type: "success",
  12949. });
  12950. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  12951. setTimeout(() => {
  12952. this.homeWorkLoading = false
  12953. }, 500);
  12954. this.dialogVisibleSelect = false;
  12955. // this.selectAnswer = {};
  12956. this.selectSWorks();
  12957. this.selectStudent();
  12958. })
  12959. .catch((err) => {
  12960. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  12961. setTimeout(() => {
  12962. this.homeWorkLoading = false
  12963. }, 500);
  12964. this.$message.error(this.lang.ssSubmitFailed);
  12965. console.error(err);
  12966. });
  12967. },
  12968. addSelectAnswerTeacher() {
  12969. let params = [
  12970. {
  12971. uid: this.sStudent.userid,
  12972. cid: this.id,
  12973. stage: this.courseType,
  12974. task: this.taskCount,
  12975. tool: this.toolindex,
  12976. content: this.selectAnswer.answer,
  12977. type: 7,
  12978. },
  12979. ];
  12980. this.ajax
  12981. .post(this.$store.state.api + "addCourseWorks", params)
  12982. .then((res) => {
  12983. this.$message({
  12984. message: this.lang.ssSubmitSuccess,
  12985. type: "success",
  12986. });
  12987. this.dialogVisibleSelectTeacher = false;
  12988. // this.selectAnswer = {};
  12989. this.selectSWorks();
  12990. this.selectStudent();
  12991. })
  12992. .catch((err) => {
  12993. this.$message.error(this.lang.ssSubmitFailed);
  12994. console.error(err);
  12995. });
  12996. },
  12997. addSenWorks() {
  12998. for (var i = 0; i < this.sentenceList.length; i++) {
  12999. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13000. if (
  13001. this.sentenceList[i].chooseSenList[j] == undefined ||
  13002. this.sentenceList[i].chooseSenList[j] == ""
  13003. ) {
  13004. this.$message.error(this.lang.ssFillAnswersComplete);
  13005. return;
  13006. }
  13007. }
  13008. }
  13009. let params = [
  13010. {
  13011. uid: this.userid,
  13012. cid: this.id,
  13013. stage: this.courseType,
  13014. task: this.taskCount,
  13015. tool: this.toolindex,
  13016. content: JSON.stringify(this.sentenceList),
  13017. type: 9,
  13018. },
  13019. ];
  13020. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13021. this.homeWorkLoading = true
  13022. this.ajax
  13023. .post(this.$store.state.api + "addCourseWorks", params)
  13024. .then((res) => {
  13025. this.$message({
  13026. message: this.lang.ssSubmitSuccess,
  13027. type: "success",
  13028. });
  13029. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13030. setTimeout(() => {
  13031. this.homeWorkLoading = false
  13032. }, 500);
  13033. this.dialogVisibleSentence = false;
  13034. // this.selectAnswer = {};
  13035. this.selectSWorks();
  13036. this.selectStudent();
  13037. })
  13038. .catch((err) => {
  13039. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13040. setTimeout(() => {
  13041. this.homeWorkLoading = false
  13042. }, 500);
  13043. this.$message.error(this.lang.ssSubmitFailed);
  13044. console.error(err);
  13045. });
  13046. },
  13047. addSenWorksTeacher() {
  13048. for (var i = 0; i < this.sentenceList.length; i++) {
  13049. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13050. if (
  13051. this.sentenceList[i].chooseSenList[j] == undefined ||
  13052. this.sentenceList[i].chooseSenList[j] == ""
  13053. ) {
  13054. this.$message.error(this.lang.ssFillAnswersComplete);
  13055. return;
  13056. }
  13057. }
  13058. }
  13059. let params = [
  13060. {
  13061. uid: this.sStudent.userid,
  13062. cid: this.id,
  13063. stage: this.courseType,
  13064. task: this.taskCount,
  13065. tool: this.toolindex,
  13066. content: JSON.stringify(this.sentenceList),
  13067. type: 9,
  13068. },
  13069. ];
  13070. this.ajax
  13071. .post(this.$store.state.api + "addCourseWorks", params)
  13072. .then((res) => {
  13073. this.$message({
  13074. message: this.lang.ssSubmitSuccess,
  13075. type: "success",
  13076. });
  13077. this.dialogVisibleSentenceTeacher = false;
  13078. // this.selectAnswer = {};
  13079. this.selectSWorks();
  13080. this.selectStudent();
  13081. })
  13082. .catch((err) => {
  13083. this.$message.error(this.lang.ssSubmitFailed);
  13084. console.error(err);
  13085. });
  13086. },
  13087. returnTableText() {
  13088. this.$confirm(this.lang.ssConfirmRestoreTemplate, this.lang.ssPrompt, {
  13089. confirmButtonText: this.lang.ssConfirm,
  13090. cancelButtonText: this.lang.ssCancel,
  13091. type: "warning",
  13092. })
  13093. .then(() => {
  13094. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13095. })
  13096. .catch(() => {});
  13097. },
  13098. addTableWorks() {
  13099. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13100. this.homeWorkLoading = true
  13101. let params = [
  13102. {
  13103. uid: this.userid,
  13104. cid: this.id,
  13105. stage: this.courseType,
  13106. task: this.taskCount,
  13107. tool: this.toolindex,
  13108. content: JSON.stringify(this.tableJson),
  13109. type: 10,
  13110. },
  13111. ];
  13112. this.ajax
  13113. .post(this.$store.state.api + "addCourseWorks", params)
  13114. .then((res) => {
  13115. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13116. this.$message({
  13117. message: this.lang.ssSubmitSuccess,
  13118. type: "success",
  13119. });
  13120. this.dialogVisibleTable = false;
  13121. setTimeout(() => {
  13122. this.homeWorkLoading = false
  13123. }, 500);
  13124. // this.selectAnswer = {};
  13125. this.selectSWorks();
  13126. this.selectStudent();
  13127. })
  13128. .catch((err) => {
  13129. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13130. setTimeout(() => {
  13131. this.homeWorkLoading = false
  13132. }, 500);
  13133. this.$message.error(this.lang.ssSubmitFailed);
  13134. console.error(err);
  13135. });
  13136. },
  13137. tableRowClassName({ row, rowIndex }) {
  13138. if ((rowIndex + 1) % 2 === 0) {
  13139. return "even_row";
  13140. } else {
  13141. return "";
  13142. }
  13143. },
  13144. addTableWorksTeacher() {
  13145. let params = [
  13146. {
  13147. uid: this.sStudent.userid,
  13148. cid: this.id,
  13149. stage: this.courseType,
  13150. task: this.taskCount,
  13151. tool: this.toolindex,
  13152. content: JSON.stringify(this.tableJson),
  13153. type: 10,
  13154. },
  13155. ];
  13156. this.ajax
  13157. .post(this.$store.state.api + "addCourseWorks", params)
  13158. .then((res) => {
  13159. this.$message({
  13160. message: this.lang.ssSubmitSuccess,
  13161. type: "success",
  13162. });
  13163. this.dialogVisibleTableTeacher = false;
  13164. // this.selectAnswer = {};
  13165. this.selectSWorks();
  13166. this.selectStudent();
  13167. })
  13168. .catch((err) => {
  13169. this.$message.error(this.lang.ssSubmitFailed);
  13170. console.error(err);
  13171. });
  13172. },
  13173. returnWordText() {
  13174. this.$confirm(this.lang.ssConfirmRestoreTemplate, this.lang.ssPrompt, {
  13175. confirmButtonText: this.lang.ssConfirm,
  13176. cancelButtonText: this.lang.ssCancel,
  13177. type: "warning",
  13178. })
  13179. .then(() => {
  13180. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13181. })
  13182. .catch(() => {});
  13183. },
  13184. addWordWorks() {
  13185. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13186. this.homeWorkLoading = true
  13187. let params = [
  13188. {
  13189. uid: this.userid,
  13190. cid: this.id,
  13191. stage: this.courseType,
  13192. task: this.taskCount,
  13193. tool: this.toolindex,
  13194. content: JSON.stringify(this.wordJson),
  13195. type: 13,
  13196. atool: 52,
  13197. },
  13198. ];
  13199. this.ajax
  13200. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13201. .then((res) => {
  13202. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13203. this.$message({
  13204. message: this.lang.ssSubmitSuccess,
  13205. type: "success",
  13206. });
  13207. this.dialogVisibleWord = false;
  13208. setTimeout(() => {
  13209. this.homeWorkLoading = false
  13210. }, 500);
  13211. // this.selectAnswer = {};
  13212. this.selectSWorks();
  13213. this.selectStudent();
  13214. })
  13215. .catch((err) => {
  13216. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13217. setTimeout(() => {
  13218. this.homeWorkLoading = false
  13219. }, 500);
  13220. this.$message.error(this.lang.ssSubmitFailed);
  13221. console.error(err);
  13222. });
  13223. },
  13224. addWordWorksTeacher() {
  13225. let params = [
  13226. {
  13227. uid: this.sStudent.userid,
  13228. cid: this.id,
  13229. stage: this.courseType,
  13230. task: this.taskCount,
  13231. tool: this.toolindex,
  13232. content: JSON.stringify(this.wordJson),
  13233. type: 13,
  13234. atool: 52,
  13235. },
  13236. ];
  13237. this.ajax
  13238. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13239. .then((res) => {
  13240. this.$message({
  13241. message: this.lang.ssSubmitSuccess,
  13242. type: "success",
  13243. });
  13244. this.dialogVisibleWordTeacher = false;
  13245. // this.selectAnswer = {};
  13246. this.selectSWorks();
  13247. this.selectStudent();
  13248. })
  13249. .catch((err) => {
  13250. this.$message.error(this.lang.ssSubmitFailed);
  13251. console.error(err);
  13252. });
  13253. },
  13254. addCourseWorks(i) {
  13255. var typesql;
  13256. if (this.fileType === 0) {
  13257. typesql = 1;
  13258. } else if (this.fileType === 1) {
  13259. typesql = 4;
  13260. } else if (this.fileType === 2) {
  13261. typesql = 5;
  13262. } else if (this.fileType === 3) {
  13263. typesql = 12;
  13264. }
  13265. if (!this.studyJuri[0].cover[0].url) {
  13266. this.$message.error(this.lang.ssUploadFileRequired);
  13267. return;
  13268. }
  13269. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13270. this.homeWorkLoading = true
  13271. let params = [
  13272. {
  13273. uid: this.userid,
  13274. cid: this.id,
  13275. stage: this.courseType,
  13276. task: i,
  13277. tool: this.toolindex,
  13278. content: this.studyJuri[0].cover[0].url,
  13279. type: typesql,
  13280. },
  13281. ];
  13282. this.ajax
  13283. .post(this.$store.state.api + "addCourseWorksR", params)
  13284. .then((res) => {
  13285. this.$message({
  13286. message: this.lang.ssSubmitSuccess,
  13287. type: "success",
  13288. });
  13289. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13290. setTimeout(() => {
  13291. this.homeWorkLoading = false
  13292. }, 500);
  13293. this.studyJuri[0].cover = [];
  13294. this.dialogVisible = false;
  13295. this.getCourseDetail(2);
  13296. })
  13297. .catch((err) => {
  13298. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13299. setTimeout(() => {
  13300. this.homeWorkLoading = false
  13301. }, 500);
  13302. this.$message.error(this.lang.ssSubmitFailed);
  13303. console.error(err);
  13304. });
  13305. },
  13306. addCourseWorksPl(i) {
  13307. let _files = this.plworkFile;
  13308. var c = 1;
  13309. for (var k = 0; k < _files.length; k++) {
  13310. if (!_files[k].username) {
  13311. c = 2;
  13312. }
  13313. }
  13314. if (c == 2) {
  13315. this.$message.error(this.lang.ssEnterStudentName);
  13316. return;
  13317. }
  13318. let params = [
  13319. {
  13320. ateacher: this.userid,
  13321. cid: this.id,
  13322. stage: this.courseType,
  13323. task: i,
  13324. tool: this.toolindex,
  13325. content: JSON.stringify(_files),
  13326. },
  13327. ];
  13328. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13329. this.homeWorkLoading = true
  13330. this.ajax
  13331. .post(this.$store.state.api + "addCourseWorksPl", params)
  13332. .then((res) => {
  13333. this.$message({
  13334. message: this.lang.ssSubmitSuccess,
  13335. type: "success",
  13336. });
  13337. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  13338. setTimeout(() => {
  13339. this.homeWorkLoading = false
  13340. }, 500);
  13341. this.plworkFile = [];
  13342. this.dialogVisiblePl = false;
  13343. this.getCourseDetail(2);
  13344. })
  13345. .catch((err) => {
  13346. this.$message.error(this.lang.ssSubmitFailed);
  13347. setTimeout(() => {
  13348. this.homeWorkLoading = false
  13349. }, 500);
  13350. console.error(err);
  13351. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  13352. });
  13353. },
  13354. addCourseWorks2(i) {
  13355. var typesql;
  13356. if (this.fileType === 0) {
  13357. typesql = 0;
  13358. } else if (this.fileType === 1) {
  13359. typesql = 1;
  13360. } else if (this.fileType === 2) {
  13361. typesql = 3;
  13362. } else if (this.fileType === 3) {
  13363. typesql = 12;
  13364. }
  13365. if (!this.studyJuri[0].cover[0].url) {
  13366. this.$message.error(this.lang.ssUploadFileRequired);
  13367. return;
  13368. }
  13369. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13370. this.homeWorkLoading = true
  13371. let params = [
  13372. {
  13373. uid: this.userid,
  13374. cid: this.id,
  13375. stage: this.courseType,
  13376. task: i,
  13377. tool: this.toolindex,
  13378. content: JSON.stringify({
  13379. type: typesql,
  13380. groupIndex: this.groupIndex,
  13381. url: this.studyJuri[0].cover[0].url,
  13382. }),
  13383. type: 11,
  13384. atool: 49,
  13385. text: "",
  13386. },
  13387. ];
  13388. this.ajax
  13389. .post(this.$store.state.api + "addCourseWorks5", params)
  13390. .then((res) => {
  13391. this.$message({
  13392. message: this.lang.ssSubmitSuccess,
  13393. type: "success",
  13394. });
  13395. setTimeout(() => {
  13396. this.homeWorkLoading = false
  13397. }, 500);
  13398. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13399. type: typesql,
  13400. groupIndex: this.groupIndex,
  13401. url: this.studyJuri[0].cover[0].url,
  13402. }),type: "course_tool_sub" }, "success")
  13403. this.studyJuri[0].cover = [];
  13404. this.dialogVisibleGroupWork = false;
  13405. this.getCourseDetail(2);
  13406. })
  13407. .catch((err) => {
  13408. this.$message.error(this.lang.ssSubmitFailed);
  13409. setTimeout(() => {
  13410. this.homeWorkLoading = false
  13411. }, 500);
  13412. console.error(err);
  13413. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13414. type: typesql,
  13415. groupIndex: this.groupIndex,
  13416. url: this.studyJuri[0].cover[0].url,
  13417. }),type: "course_tool_sub" }, err)
  13418. });
  13419. },
  13420. addEnglishWork() {
  13421. this.myAnList = this.$refs['engJson'].myAnswerList;
  13422. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13423. this.$message.error(this.lang.ssEnterEssayContent);
  13424. return;
  13425. }
  13426. let params = [
  13427. {
  13428. uid: this.userid,
  13429. cid: this.id,
  13430. stage: this.courseType,
  13431. task: this.taskCount,
  13432. tool: this.englishToolIndex,
  13433. content: JSON.stringify(this.myAnList),
  13434. type: 16,
  13435. atool: 69,
  13436. text: "",
  13437. },
  13438. ];
  13439. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13440. this.homeWorkLoading = true
  13441. this.ajax
  13442. .post(this.$store.state.api + "addCourseWorks5", params)
  13443. .then((res) => {
  13444. this.$message({
  13445. message: this.lang.ssSubmitSuccess,
  13446. type: "success",
  13447. });
  13448. setTimeout(() => {
  13449. this.homeWorkLoading = false
  13450. }, 500);
  13451. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  13452. data: JSON.stringify(this.myAnList),
  13453. type: "course_tool_sub" }, "success")
  13454. this.myAnList = {};
  13455. this.englishList = {};
  13456. this.englishToolIndex = 0;
  13457. this.engDialogVisible = false;
  13458. this.selectSWorks();
  13459. this.selectStudent();
  13460. })
  13461. .catch((err) => {
  13462. this.$message.error(this.lang.ssSubmitFailed);
  13463. console.error(err);
  13464. setTimeout(() => {
  13465. this.homeWorkLoading = false
  13466. }, 500);
  13467. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  13468. data: JSON.stringify(this.myAnList),
  13469. type: "course_tool_sub" }, err)
  13470. });
  13471. },
  13472. addCourseWorksGong(i, data, tool) {
  13473. let params = [
  13474. {
  13475. uid: this.userid,
  13476. cid: this.id,
  13477. stage: this.courseType,
  13478. task: this.taskCount,
  13479. tool: i,
  13480. content: data,
  13481. type: 12,
  13482. atool: tool,
  13483. text: "",
  13484. },
  13485. ];
  13486. this.ajax
  13487. .post(this.$store.state.api + "addCourseWorks5", params)
  13488. .then((res) => {
  13489. this.$message({
  13490. message: this.lang.ssSubmitSuccess,
  13491. type: "success",
  13492. });
  13493. this.studyJuri[0].cover = [];
  13494. this.selectSWorks();
  13495. this.selectStudent();
  13496. })
  13497. .catch((err) => {
  13498. this.$message.error(this.lang.ssSubmitFailed);
  13499. console.error(err);
  13500. });
  13501. },
  13502. addCourseWorksGongTeacher(i, data, tool) {
  13503. let params = [
  13504. {
  13505. uid: this.sStudent.userid,
  13506. cid: this.id,
  13507. stage: this.courseType,
  13508. task: this.taskCount,
  13509. tool: i,
  13510. content: data,
  13511. type: 12,
  13512. atool: tool,
  13513. text: "",
  13514. },
  13515. ];
  13516. this.ajax
  13517. .post(this.$store.state.api + "addCourseWorks5", params)
  13518. .then((res) => {
  13519. this.$message({
  13520. message: this.lang.ssSubmitSuccess,
  13521. type: "success",
  13522. });
  13523. this.studyJuri[0].cover = [];
  13524. this.dialogVisibleWorks = false;
  13525. this.selectSWorks();
  13526. this.selectStudent();
  13527. })
  13528. .catch((err) => {
  13529. this.$message.error(this.lang.ssSubmitFailed);
  13530. console.error(err);
  13531. });
  13532. },
  13533. addCourseWorksGongPl(i, data, tool, type) {
  13534. let params = [
  13535. {
  13536. uid: this.sStudent.userid,
  13537. cid: this.id,
  13538. stage: this.courseType,
  13539. task: this.taskCount,
  13540. tool: i,
  13541. content: data,
  13542. type: type,
  13543. atool: tool,
  13544. text: "",
  13545. },
  13546. ];
  13547. this.ajax
  13548. .post(this.$store.state.api + "addCourseWorks5", params)
  13549. .then((res) => {
  13550. this.$message({
  13551. message: this.lang.ssSubmitSuccess,
  13552. type: "success",
  13553. });
  13554. this.studyJuri[0].cover = [];
  13555. this.dialogVisibleWorks = false;
  13556. this.selectSWorks();
  13557. this.selectStudent();
  13558. })
  13559. .catch((err) => {
  13560. this.$message.error(this.lang.ssSubmitFailed);
  13561. console.error(err);
  13562. });
  13563. },
  13564. addCourseWorksTeacher(i) {
  13565. var typesql;
  13566. if (this.sTool == 32) {
  13567. this.addCourseWorksGongTeacher(
  13568. this.toolindex,
  13569. this.studyJuri[0].cover[0].url,
  13570. this.sTool
  13571. );
  13572. return;
  13573. }
  13574. if (this.fileType === 0) {
  13575. typesql = 1;
  13576. } else if (this.fileType === 1) {
  13577. typesql = 4;
  13578. } else if (this.fileType === 2) {
  13579. typesql = 5;
  13580. } else if (this.fileType === 3) {
  13581. typesql = 12;
  13582. }
  13583. if (this.sTool == 50) {
  13584. this.addCourseWorksGongPl(
  13585. this.toolindex,
  13586. this.studyJuri[0].cover[0].url,
  13587. this.sTool,
  13588. typesql
  13589. );
  13590. return;
  13591. }
  13592. if (!this.studyJuri[0].cover[0].url) {
  13593. this.$message.error(this.lang.ssUploadFileRequired);
  13594. return;
  13595. }
  13596. let params = [
  13597. {
  13598. uid: this.sStudent.userid,
  13599. cid: this.id,
  13600. stage: this.courseType,
  13601. task: i,
  13602. tool: this.toolindex,
  13603. content: this.studyJuri[0].cover[0].url,
  13604. type: typesql,
  13605. ateacher: this.userid,
  13606. },
  13607. ];
  13608. this.ajax
  13609. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13610. .then((res) => {
  13611. this.$message({
  13612. message: this.lang.ssSubmitSuccess,
  13613. type: "success",
  13614. });
  13615. this.studyJuri[0].cover = [];
  13616. this.dialogVisibleWorks = false;
  13617. this.getCourseDetail(2);
  13618. })
  13619. .catch((err) => {
  13620. this.$message.error(this.lang.ssSubmitFailed);
  13621. console.error(err);
  13622. });
  13623. },
  13624. selectUploadStudent(type) {
  13625. const loading = this.$loading.service({
  13626. background: "rgba(255, 255, 255, 0.7)",
  13627. target: document.body,
  13628. });
  13629. let params = {
  13630. cid: this.uploadCid,
  13631. oid: this.oid,
  13632. cn: "",
  13633. };
  13634. this.ajax
  13635. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13636. .then((res) => {
  13637. loading.close();
  13638. var studentK = [];
  13639. if (this.isWorksS[this.toolindex].length > 0) {
  13640. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13641. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13642. }
  13643. studentK = studentK.join(",");
  13644. }
  13645. this.uploadStudentJuri = res.data[0].filter((el) => {
  13646. return studentK.indexOf(el.userid) == -1;
  13647. });
  13648. if (this.worksSName && this.worksSid) {
  13649. this.uploadStudentJuri.push({
  13650. userid: this.worksSid,
  13651. name: this.worksSName,
  13652. });
  13653. }
  13654. if (type == 1) {
  13655. this.plworkFile = [];
  13656. this.dialogVisibleSname = true;
  13657. } else if (type == 2) {
  13658. this.dialogVisiblePl = true;
  13659. }
  13660. })
  13661. .catch((err) => {
  13662. loading.close();
  13663. console.error(err);
  13664. });
  13665. },
  13666. selectPickStudent() {
  13667. const loading = this.$loading.service({
  13668. background: "rgba(255, 255, 255, 0.7)",
  13669. target: document.body,
  13670. });
  13671. let params = {
  13672. cid: this.uploadCid,
  13673. oid: this.oid,
  13674. cn: "",
  13675. };
  13676. this.ajax
  13677. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13678. .then((res) => {
  13679. loading.close();
  13680. this.uploadStudentJuri = res.data[0];
  13681. this.dialogVisiblePickPeople = true;
  13682. })
  13683. .catch((err) => {
  13684. loading.close();
  13685. console.error(err);
  13686. });
  13687. },
  13688. arrayToArray(arrayo, arrayt) {
  13689. let array1 = arrayo;
  13690. let array2 = arrayt;
  13691. let commonElements = [];
  13692. for (let i = 0; i < array1.length; i++) {
  13693. for (let j = 0; j < array2.length; j++) {
  13694. if (array1[i] === array2[j]) {
  13695. commonElements.push(array1[i]);
  13696. }
  13697. }
  13698. }
  13699. return commonElements;
  13700. },
  13701. selectWorksStudent() {
  13702. let params = {
  13703. oid: this.oid,
  13704. cid: this.courseDetail.juri,
  13705. };
  13706. this.ajax
  13707. .get(this.$store.state.api + "selectWorksStudent", params)
  13708. .then((res) => {
  13709. var a = res.data[0];
  13710. for (var i = 0; i < this.isWorksS.length; i++) {
  13711. this.noWorksS[i] = [];
  13712. var studentK = [];
  13713. if (this.isWorksS[i].length > 0) {
  13714. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13715. studentK.push(this.isWorksS[i][z].uid);
  13716. }
  13717. studentK = studentK.join(",");
  13718. for (var j = 0; j < a.length; j++) {
  13719. if (studentK.indexOf(a[j].userid) == -1) {
  13720. if (this.tcid) {
  13721. // a[j].classid.indexOf(this.tcid) != -1
  13722. if (
  13723. this.arrayToArray(
  13724. a[j].classid.split(","),
  13725. this.tcid.split(",")
  13726. ).length
  13727. ) {
  13728. this.noWorksS[i].push({
  13729. student: a[j].name,
  13730. userid: a[j].userid,
  13731. });
  13732. }
  13733. } else {
  13734. this.noWorksS[i].push({
  13735. student: a[j].name,
  13736. userid: a[j].userid,
  13737. });
  13738. }
  13739. }
  13740. }
  13741. } else {
  13742. for (var k = 0; k < a.length; k++) {
  13743. if (this.tcid) {
  13744. if (
  13745. this.arrayToArray(
  13746. a[k].classid.split(","),
  13747. this.tcid.split(",")
  13748. ).length
  13749. ) {
  13750. this.noWorksS[i].push({
  13751. student: a[k].name,
  13752. userid: a[k].userid,
  13753. });
  13754. }
  13755. } else {
  13756. this.noWorksS[i].push({
  13757. student: a[k].name,
  13758. userid: a[k].userid,
  13759. });
  13760. }
  13761. }
  13762. }
  13763. }
  13764. this.$forceUpdate();
  13765. if (
  13766. Object.keys(this.commentDetail).length &&
  13767. Object.keys(this.commentIndexJson).length &&
  13768. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13769. ) {
  13770. let a = 1;
  13771. let c = this.commentIndexJson;
  13772. if (
  13773. this.commentIndexJson.gindex ||
  13774. this.commentIndexJson.gindex === 0
  13775. ) {
  13776. for (
  13777. var i = 0;
  13778. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13779. i++
  13780. ) {
  13781. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13782. groupA: for (var k = 0; k < _el.length; k++) {
  13783. let el = _el[k];
  13784. if (el.wid == this.commentDetail.wid) {
  13785. a = 2;
  13786. this.commentOther(
  13787. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13788. this.commentIndexJson.toolIndex,
  13789. k,
  13790. this.commentIndexJson.gindex
  13791. );
  13792. break groupA;
  13793. }
  13794. }
  13795. }
  13796. if (a === 1) {
  13797. this.commentDetail = [];
  13798. this.commentIndexJson = {};
  13799. this.commentDialogVisible = false;
  13800. this.$message(this.lang.ssHomeworkDeleted);
  13801. }
  13802. } else {
  13803. if (this.isGroup && this.commentIndexJson.gid) {
  13804. groupA: for (
  13805. var i = 0;
  13806. i < this.courseGroup.group.length;
  13807. i++
  13808. ) {
  13809. let _group = this.courseGroup.group[i];
  13810. if (_group.id == this.commentIndexJson.gid) {
  13811. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13812. for (var k = 0; k < _el2.length; k++) {
  13813. let el2 = _el2[k];
  13814. if (el2.wid == this.commentDetail.wid) {
  13815. a = 2;
  13816. this.commentOther(
  13817. _el2[k],
  13818. this.commentIndexJson.toolIndex,
  13819. k,
  13820. null,
  13821. this.commentIndexJson.gid
  13822. );
  13823. break groupA;
  13824. }
  13825. }
  13826. }
  13827. }
  13828. }
  13829. if (a == 1) {
  13830. for (
  13831. var i = 0;
  13832. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13833. i++
  13834. ) {
  13835. let el =
  13836. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13837. if (el.wid == this.commentDetail.wid) {
  13838. a = 2;
  13839. this.commentOther(
  13840. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13841. this.commentIndexJson.toolIndex,
  13842. i
  13843. );
  13844. break;
  13845. }
  13846. }
  13847. }
  13848. if (a === 1) {
  13849. this.commentDetail = [];
  13850. this.commentIndexJson = {};
  13851. this.commentDialogVisible = false;
  13852. this.$message(this.lang.ssHomeworkDeleted);
  13853. }
  13854. }
  13855. }
  13856. })
  13857. .catch((err) => {
  13858. console.error(err);
  13859. });
  13860. },
  13861. selectStudent() {
  13862. if(this.selectStudentLoading) return
  13863. this.selectStudentLoading = true
  13864. //学生查看自己作业
  13865. let params = {
  13866. uid: this.userid,
  13867. cid: this.id,
  13868. s: this.courseType,
  13869. t: this.taskCount,
  13870. };
  13871. this.ajax
  13872. .get(this.$store.state.api + "selectStudentWorks", params)
  13873. .then((res) => {
  13874. var a =
  13875. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13876. this.taskCount
  13877. ].toolChoose;
  13878. var b = res.data[0];
  13879. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13880. var y = [
  13881. "AVI",
  13882. "NAVI",
  13883. "MPEG",
  13884. "ASF",
  13885. "MOV",
  13886. "WMV",
  13887. "3GP",
  13888. "RM",
  13889. "RMVB",
  13890. "FLV",
  13891. "F4V",
  13892. "H.264",
  13893. "H.265",
  13894. "REAL VIDEO",
  13895. "MKV",
  13896. "WebM",
  13897. "HDDVD",
  13898. "MP4",
  13899. "MPG",
  13900. "M4V",
  13901. "MGV",
  13902. "OGV",
  13903. "QTM",
  13904. "STR",
  13905. "AMC",
  13906. "DVX",
  13907. "EVO",
  13908. "DAT",
  13909. "OGG",
  13910. "OGM",
  13911. ];
  13912. for (var i = 0; i < a.length; i++) {
  13913. this.workStudent[i] = [];
  13914. for (var j = 0; j < b.length; j++) {
  13915. if (i == b[j].tool) {
  13916. if (
  13917. (b[j].type == 1 ||
  13918. b[j].type == 4 ||
  13919. b[j].type == 5 ||
  13920. b[j].type == 6 ||
  13921. b[j].type == 12 ||
  13922. b[j].type == 7) &&
  13923. a[i].tool[0] != 15 &&
  13924. a[i].tool[0] != 4 &&
  13925. a[i].tool[0] != 45 &&
  13926. a[i].tool[0] != 50 &&
  13927. a[i].tool[0] != 32 &&
  13928. a[i].tool[0] != 57 &&
  13929. a[i].tool[0] != 52 &&
  13930. a[i].tool[0] != 69
  13931. ) {
  13932. if (
  13933. c.indexOf(
  13934. b[j].content
  13935. .split(".")
  13936. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13937. ) != -1 &&
  13938. a[i].tool[0] == 16 &&
  13939. b[j].atool != 50
  13940. ) {
  13941. this.workStudent[i].push({
  13942. works: b[j].content,
  13943. sName: b[j].name,
  13944. score: b[j].score,
  13945. img: b[j].img,
  13946. type: 1,
  13947. time: b[j].time,
  13948. userid: b[j].userid,
  13949. wid: b[j].id,
  13950. });
  13951. } else if (
  13952. y.indexOf(
  13953. b[j].content
  13954. .split(".")
  13955. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13956. ) != -1 &&
  13957. a[i].tool[0] == 16 &&
  13958. b[j].atool != 50
  13959. ) {
  13960. this.workStudent[i].push({
  13961. userid: b[j].userid,
  13962. wid: b[j].id,
  13963. works: b[j].content,
  13964. sName: b[j].name,
  13965. score: b[j].score,
  13966. img: b[j].img,
  13967. type: 3,
  13968. time: b[j].time,
  13969. });
  13970. } else if (b[j].type == 6 && b[j].atool != 50) {
  13971. this.workStudent[i].push({
  13972. userid: b[j].userid,
  13973. wid: b[j].id,
  13974. works: b[j].content,
  13975. sName: b[j].name,
  13976. score: b[j].score,
  13977. img: b[j].img,
  13978. type: 4,
  13979. time: b[j].time,
  13980. });
  13981. } else if (b[j].type == 7 && b[j].atool != 50) {
  13982. this.workStudent[i].push({
  13983. userid: b[j].userid,
  13984. wid: b[j].id,
  13985. works: b[j].content,
  13986. sName: b[j].name,
  13987. score: b[j].score,
  13988. img: b[j].img,
  13989. type: 5,
  13990. time: b[j].time,
  13991. });
  13992. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13993. this.workStudent[i].push({
  13994. works: b[j].content,
  13995. sName: b[j].name,
  13996. score: b[j].score,
  13997. img: b[j].img,
  13998. type: 12,
  13999. time: b[j].time,
  14000. userid: b[j].userid,
  14001. wid: b[j].id,
  14002. });
  14003. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14004. this.workStudent[i].push({
  14005. works: b[j].content,
  14006. sName: b[j].name,
  14007. score: b[j].score,
  14008. img: b[j].img,
  14009. type: 0,
  14010. time: b[j].time,
  14011. userid: b[j].userid,
  14012. wid: b[j].id,
  14013. });
  14014. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14015. this.workStudent[i].push({
  14016. works: b[j].content,
  14017. sName: b[j].name,
  14018. score: b[j].score,
  14019. img: b[j].img,
  14020. type: 0,
  14021. time: b[j].time,
  14022. userid: b[j].userid,
  14023. wid: b[j].id,
  14024. });
  14025. }
  14026. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14027. this.workStudent[i].push({
  14028. works: b[j].content,
  14029. sName: b[j].name,
  14030. score: b[j].score,
  14031. img: b[j].img,
  14032. type: 2,
  14033. time: b[j].time,
  14034. userid: b[j].userid,
  14035. wid: b[j].id,
  14036. });
  14037. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14038. this.workStudent[i].push({
  14039. works: b[j].content,
  14040. sName: b[j].name,
  14041. score: b[j].score,
  14042. img: b[j].img,
  14043. type: 20,
  14044. time: b[j].time,
  14045. userid: b[j].userid,
  14046. wid: b[j].id,
  14047. });
  14048. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14049. //问卷
  14050. this.workStudent[i].push({
  14051. works: b[j].content,
  14052. sName: b[j].name,
  14053. score: b[j].score,
  14054. img: b[j].img,
  14055. type: 2,
  14056. time: b[j].time,
  14057. userid: b[j].userid,
  14058. wid: b[j].id,
  14059. });
  14060. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14061. //选择题
  14062. this.workStudent[i].push({
  14063. works: b[j].content,
  14064. sName: b[j].name,
  14065. score: b[j].score,
  14066. img: b[j].img,
  14067. type: 8,
  14068. time: b[j].time,
  14069. userid: b[j].userid,
  14070. wid: b[j].id,
  14071. });
  14072. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14073. //选择题
  14074. this.workStudent[i].push({
  14075. works: b[j].content,
  14076. sName: b[j].name,
  14077. score: b[j].score,
  14078. img: b[j].img,
  14079. type: 9,
  14080. time: b[j].time,
  14081. userid: b[j].userid,
  14082. wid: b[j].id,
  14083. });
  14084. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14085. //选择题
  14086. this.workStudent[i].push({
  14087. works: b[j].content,
  14088. sName: b[j].name,
  14089. score: b[j].score,
  14090. img: b[j].img,
  14091. type: 10,
  14092. time: b[j].time,
  14093. userid: b[j].userid,
  14094. wid: b[j].id,
  14095. });
  14096. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14097. //选择题
  14098. this.workStudent[i].push({
  14099. works: b[j].content,
  14100. sName: b[j].name,
  14101. score: b[j].score,
  14102. img: b[j].img,
  14103. type: 13,
  14104. time: b[j].time,
  14105. userid: b[j].userid,
  14106. wid: b[j].id,
  14107. });
  14108. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14109. //选择题
  14110. this.workStudent[i].push({
  14111. works: b[j].content,
  14112. sName: b[j].name,
  14113. score: b[j].score,
  14114. img: b[j].img,
  14115. type: 12,
  14116. time: b[j].time,
  14117. userid: b[j].userid,
  14118. wid: b[j].id,
  14119. });
  14120. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14121. //选择题
  14122. this.workStudent[i].push({
  14123. works: b[j].content,
  14124. sName: b[j].name,
  14125. score: b[j].score,
  14126. img: b[j].img,
  14127. type: 12,
  14128. time: b[j].time,
  14129. userid: b[j].userid,
  14130. wid: b[j].id,
  14131. });
  14132. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14133. //选择题
  14134. this.workStudent[i].push({
  14135. works: b[j].content,
  14136. sName: b[j].name,
  14137. score: b[j].score,
  14138. img: b[j].img,
  14139. type: 15,
  14140. time: b[j].time,
  14141. userid: b[j].userid,
  14142. wid: b[j].id,
  14143. });
  14144. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14145. //英语写作
  14146. this.workStudent[i].push({
  14147. works: b[j].content,
  14148. sName: b[j].name,
  14149. score: b[j].score,
  14150. img: b[j].img,
  14151. type: 16,
  14152. time: b[j].time,
  14153. userid: b[j].userid,
  14154. wid: b[j].id,
  14155. aiCode: b[j].aiCode,
  14156. teacherCode: b[j].teacherCode
  14157. });
  14158. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14159. //英语口语
  14160. this.workStudent[i].push({
  14161. works: b[j].content,
  14162. sName: b[j].name,
  14163. score: b[j].score,
  14164. img: b[j].img,
  14165. type: 17,
  14166. time: b[j].time,
  14167. userid: b[j].userid,
  14168. wid: b[j].id,
  14169. });
  14170. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14171. //英语口语
  14172. this.workStudent[i].push({
  14173. works: b[j].content,
  14174. sName: b[j].name,
  14175. score: b[j].score,
  14176. img: b[j].img,
  14177. type: 14,
  14178. time: b[j].time,
  14179. userid: b[j].userid,
  14180. wid: b[j].id,
  14181. });
  14182. }
  14183. }
  14184. }
  14185. }
  14186. this.selectStudentLoading = false
  14187. })
  14188. .catch((err) => {
  14189. this.selectStudentLoading = false
  14190. console.error(err);
  14191. });
  14192. },
  14193. openVideo(w) {
  14194. this.videoDetail = {};
  14195. this.playerOptions1.sources[0].src = w.works;
  14196. this.videoDetail = this.playerOptions1;
  14197. this.videoVisible = true;
  14198. },
  14199. isLikes(wid, uid, t, c, isLikes,sName) {
  14200. if (isLikes == false) {
  14201. let params = [
  14202. {
  14203. wid: wid,
  14204. lid: uid,
  14205. t: t,
  14206. c: c,
  14207. },
  14208. ];
  14209. this.ajax
  14210. .post(this.$store.state.api + "insertComment", params)
  14211. .then((res) => {
  14212. this.$message({
  14213. message: this.lang.ssLikeSuccess,
  14214. type: "success",
  14215. });
  14216. this.selectSWorks();
  14217. this.selectStudent();
  14218. if(this.tType==1){
  14219. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14220. }
  14221. })
  14222. .catch((err) => {
  14223. this.$message.error(this.lang.ssLikeFailed);
  14224. console.error(err);
  14225. });
  14226. } else {
  14227. let params = {
  14228. wid: wid,
  14229. lid: uid,
  14230. type: t,
  14231. };
  14232. this.ajax
  14233. .get(this.$store.state.api + "deleteComment", params)
  14234. .then((res) => {
  14235. this.$message({
  14236. message: this.lang.ssCancelLikeSuccess,
  14237. type: "success",
  14238. });
  14239. this.selectSWorks();
  14240. this.selectStudent();
  14241. })
  14242. .catch((err) => {
  14243. console.error(err);
  14244. });
  14245. }
  14246. },
  14247. deleteComment(wid) {
  14248. this.$confirm(this.lang.ssConfirmDeleteComment, this.lang.ssPrompt, {
  14249. confirmButtonText: this.lang.ssConfirm,
  14250. cancelButtonText: this.lang.ssCancel,
  14251. type: "warning",
  14252. })
  14253. .then(() => {
  14254. let params = {
  14255. id: wid,
  14256. };
  14257. this.ajax
  14258. .get(this.$store.state.api + "deleteComment2", params)
  14259. .then((res) => {
  14260. this.$message({
  14261. message: this.lang.ssDeleteCommentSuccess,
  14262. type: "success",
  14263. });
  14264. this.selectSWorks();
  14265. this.selectStudent();
  14266. })
  14267. .catch((err) => {
  14268. console.error(err);
  14269. });
  14270. })
  14271. .catch(() => {});
  14272. },
  14273. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14274. this.commentIndexJson = {
  14275. toolIndex: toolIndex,
  14276. wIndex: wIndex,
  14277. gindex: gindex,
  14278. gid: gid,
  14279. };
  14280. this.commentDetail = [];
  14281. this.commentDialogVisible = true;
  14282. this.commentDetail = w;
  14283. if (w.works && w.type == 1) {
  14284. // this.pptImgUrl = "";
  14285. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14286. if (
  14287. a.indexOf(
  14288. w.works
  14289. .split(".")
  14290. [w.works.split(".").length - 1].toLocaleUpperCase()
  14291. ) != -1
  14292. ) {
  14293. let _uuurl = await this.checkLink(w.works);
  14294. this.pptImgUrl =
  14295. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14296. this.showPDF = false;
  14297. } else if (
  14298. w.works
  14299. .split(".")
  14300. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14301. ) {
  14302. this.pptImgUrl = w.works;
  14303. this.showPDF = true;
  14304. }
  14305. } else if (w.works && w.type == 3) {
  14306. this.videoDetail = {};
  14307. this.playerOptions1.sources[0].src = w.works;
  14308. this.videoDetail = this.playerOptions1;
  14309. // this.videoVisible = true;
  14310. } else if (w.works && w.type == 4) {
  14311. this.eScore = JSON.parse(w.works);
  14312. this.rateJson =
  14313. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14314. this.taskCount
  14315. ].toolChoose[toolIndex].rateJson;
  14316. } else if (w.works && w.type == 10) {
  14317. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14318. } else if (w.works && w.type == 13) {
  14319. this.wordJson =
  14320. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14321. this.taskCount
  14322. ].toolChoose[toolIndex].wordJson;
  14323. }
  14324. },
  14325. async openScore(w, index) {
  14326. this.wScore = 0;
  14327. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14328. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14329. this.commentDetail = [];
  14330. if(w.type == 17){
  14331. this.dialogVisibleENScore = true;
  14332. }else{
  14333. this.dialogVisibleScore = true;
  14334. }
  14335. this.commentDetail = w;
  14336. if (w.works && w.type == 1) {
  14337. this.pptImgUrl = "";
  14338. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14339. if (
  14340. a.indexOf(
  14341. w.works
  14342. .split(".")
  14343. [w.works.split(".").length - 1].toLocaleUpperCase()
  14344. ) != -1
  14345. ) {
  14346. let _uuurl = await this.checkLink(w.works);
  14347. this.pptImgUrl =
  14348. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14349. this.showPDF = false;
  14350. } else if (
  14351. w.works
  14352. .split(".")
  14353. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14354. ) {
  14355. this.pptImgUrl = w.works;
  14356. this.showPDF = true;
  14357. }
  14358. } else if (w.works && w.type == 3) {
  14359. this.videoDetail = {};
  14360. this.playerOptions1.sources[0].src = w.works;
  14361. this.videoDetail = this.playerOptions1;
  14362. }else if(w.type == 17){
  14363. let englishVoiceJson = {}
  14364. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14365. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14366. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14367. .toolChoose[index].englishVoiceJson
  14368. : {};
  14369. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14370. }
  14371. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14372. },
  14373. addComment(wid, uid, t,detail) {
  14374. if (this.commentText == "") {
  14375. this.$message.error(this.lang.ssEnterComment);
  14376. return;
  14377. }
  14378. let params2 = [
  14379. {
  14380. wid: wid,
  14381. lid: uid,
  14382. t: t,
  14383. },
  14384. ];
  14385. this.ajax
  14386. .post(this.$store.state.api + "getComment", params2)
  14387. .then((res) => {
  14388. if (res.data[0].length > 0) {
  14389. this.$message.error(this.lang.ssOnlyOneCommentPerHomework);
  14390. } else {
  14391. let params = [
  14392. {
  14393. wid: wid,
  14394. lid: uid,
  14395. t: t,
  14396. c: this.commentText,
  14397. },
  14398. ];
  14399. this.ajax
  14400. .post(this.$store.state.api + "insertComment", params)
  14401. .then((res) => {
  14402. this.$message({
  14403. message: this.lang.ssCommentSuccess,
  14404. type: "success",
  14405. });
  14406. this.commentText = "";
  14407. this.selectSWorks();
  14408. this.selectStudent();
  14409. if(this.tType!=2){
  14410. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14411. }
  14412. })
  14413. .catch((err) => {
  14414. this.$message.error(this.lang.ssCommentFailed);
  14415. console.error(err);
  14416. });
  14417. }
  14418. })
  14419. .catch((err) => {
  14420. // this.$message.error("评论失败");
  14421. console.error(err);
  14422. });
  14423. },
  14424. scoreWork(wid,sName) {
  14425. if (this.wScore == 0) {
  14426. this.$message.error(this.lang.ssPleaseRate);
  14427. return;
  14428. }
  14429. let params = [
  14430. {
  14431. wid: wid,
  14432. score: JSON.stringify({
  14433. wScore: this.wScore,
  14434. detail: this.scoreDetail,
  14435. }),
  14436. },
  14437. ];
  14438. this.ajax
  14439. .post(this.$store.state.api + "scoreWork", params)
  14440. .then((res) => {
  14441. this.$message({
  14442. message: this.lang.ssRatingSuccess,
  14443. type: "success",
  14444. });
  14445. this.wScore = 0;
  14446. this.scoreDetail = "";
  14447. this.dialogVisibleScore = false;
  14448. this.selectSWorks();
  14449. this.selectStudent();
  14450. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14451. })
  14452. .catch((err) => {
  14453. this.$message.error(this.lang.ssRatingFailed);
  14454. console.error(err);
  14455. });
  14456. },
  14457. openXz(w, i) {
  14458. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14459. .taskJson[this.taskCount].toolChoose[i].selectJson
  14460. ? JSON.parse(
  14461. JSON.stringify(
  14462. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14463. this.taskCount
  14464. ].toolChoose[i].selectJson
  14465. )
  14466. )
  14467. : { url: "", select: [], answer: [] };
  14468. var a = w.works.split(",");
  14469. for (var k = 0; k < a.length; k++) {
  14470. a[k] = parseInt(a[k]);
  14471. }
  14472. this.selectAnswer = { answer: a, stu: w.sName };
  14473. this.isSelect = true;
  14474. this.dialogVisibleSelect = true;
  14475. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14476. },
  14477. openSen(w, i) {
  14478. console.log("openSen")
  14479. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14480. this.sentenceList1 = JSON.parse(w.works);
  14481. this.sentenceList1.stuName = w.sName;
  14482. this.dialogVisibleSentence1 = true;
  14483. },
  14484. openPj(w, toolindex) {
  14485. console.log("openPJ")
  14486. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14487. this.isStar = true;
  14488. this.eScore = JSON.parse(w);
  14489. this.rateJson =
  14490. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14491. this.taskCount
  14492. ].toolChoose[toolindex].rateJson;
  14493. this.studentEvalDialogVisible = true;
  14494. },
  14495. openEnglishEva(id,i){
  14496. let params = {
  14497. wid: id
  14498. };
  14499. this.ajax
  14500. .get(this.$store.state.api + "selectEngWork", params)
  14501. .then((res) => {
  14502. this.evaEngJson.message = res.data[0][0];
  14503. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14504. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14505. .toolChoose[i].englishList;
  14506. this.engEvaDialogVisible = true;
  14507. })
  14508. .catch((err) => {
  14509. console.error(err);
  14510. });
  14511. },
  14512. deleteWorks(id) {
  14513. this.$confirm(this.lang.ssConfirmDeleteWork, this.lang.ssPrompt, {
  14514. confirmButtonText: this.lang.ssConfirm,
  14515. cancelButtonText: this.lang.ssCancel,
  14516. type: "warning",
  14517. })
  14518. .then(() => {
  14519. let params = [
  14520. {
  14521. id: id,
  14522. },
  14523. ];
  14524. this.ajax
  14525. .post(this.$store.state.api + "deleteCourseWork", params)
  14526. .then((res) => {
  14527. this.$message({
  14528. message: this.lang.ssDeleteSuccess,
  14529. type: "success",
  14530. });
  14531. this.selectStudent();
  14532. this.selectSWorks();
  14533. this.selectSLook();
  14534. })
  14535. .catch((err) => {
  14536. this.$message.error(this.lang.ssNetworkError);
  14537. console.error(err);
  14538. });
  14539. })
  14540. .catch(() => {});
  14541. },
  14542. selectSWorks(gindex) {
  14543. if(this.selectSWorksLoading) return
  14544. this.selectSWorksLoading = true
  14545. //教师查看全部作业
  14546. let params = {
  14547. cid: this.id,
  14548. s: this.courseType,
  14549. t: this.taskCount,
  14550. };
  14551. this.ajax
  14552. .get(this.$store.state.api + "selectSWorks", params)
  14553. .then((res) => {
  14554. var a =
  14555. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14556. this.taskCount
  14557. ].toolChoose;
  14558. var b = res.data[0];
  14559. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14560. var y = [
  14561. "AVI",
  14562. "NAVI",
  14563. "MPEG",
  14564. "ASF",
  14565. "MOV",
  14566. "WMV",
  14567. "3GP",
  14568. "RM",
  14569. "RMVB",
  14570. "FLV",
  14571. "F4V",
  14572. "H.264",
  14573. "H.265",
  14574. "REAL VIDEO",
  14575. "MKV",
  14576. "WebM",
  14577. "HDDVD",
  14578. "MP4",
  14579. "MPG",
  14580. "M4V",
  14581. "MGV",
  14582. "OGV",
  14583. "QTM",
  14584. "STR",
  14585. "AMC",
  14586. "DVX",
  14587. "EVO",
  14588. "DAT",
  14589. "OGG",
  14590. "OGM",
  14591. ];
  14592. var d = res.data[1];
  14593. var e = res.data[2];
  14594. var f = res.data[3];
  14595. let _worksStudent = [];
  14596. var _worksStudent2 = [];
  14597. for (var i = 0; i < a.length; i++) {
  14598. _worksStudent[i] = [];
  14599. _worksStudent2[i] = [];
  14600. if (
  14601. !this.isCloseList[i] ||
  14602. this.isCloseList[i].isClose == undefined
  14603. ) {
  14604. this.isCloseList[i] = { isClose: 0 };
  14605. }
  14606. this.groupStudent[i] = [];
  14607. this.groupStudentUid[i] = [];
  14608. if (this.isGroup) {
  14609. for (
  14610. var groupI = 0;
  14611. groupI < this.courseGroup.group.length;
  14612. groupI++
  14613. ) {
  14614. this.courseGroup.group[groupI].works[i] = [];
  14615. }
  14616. }
  14617. this.isWorksS[i] = [];
  14618. this.checkJson[i] = [];
  14619. if (a[i].tool[0] == 49) {
  14620. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14621. this.groupStudent[i][gA] = [];
  14622. this.groupStudentUid[i][gA] = [];
  14623. _worksStudent[i][gA] = [];
  14624. _worksStudent2[i][gA] = [];
  14625. this.isCloseList[i][gA] = [];
  14626. // debugger
  14627. for (var g = 0; g < f.length; g++) {
  14628. if (
  14629. f[g].ttype == 2 &&
  14630. this.tcid &&
  14631. this.arrayToArray(
  14632. (f[g].classid ? f[g].classid.split(",") : []),
  14633. this.tcid.split(",")
  14634. ).length == 0
  14635. ) {
  14636. continue;
  14637. }
  14638. let _classId = this.arrayToArray(
  14639. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14640. this.classId ? this.classId.split(",") : []
  14641. )
  14642. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14643. (f[g].classid ? f[g].classid.split(",") : []),
  14644. this.tcid.split(",")
  14645. ).length !== 0 || this.arrayToArray(
  14646. (f[g].classid ? f[g].classid.split(",") : []),
  14647. _classId
  14648. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14649. this.groupStudent[i][gA].push(f[g]);
  14650. this.groupStudentUid[i][gA].push(f[g].userid);
  14651. }
  14652. }
  14653. }
  14654. this.$forceUpdate();
  14655. }
  14656. for (var j = 0; j < b.length; j++) {
  14657. if (
  14658. b[j].ttype == 2 &&
  14659. this.tcid &&
  14660. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14661. .length == 0
  14662. ) {
  14663. continue;
  14664. }
  14665. var likesCount = 0;
  14666. var commentCount = 0;
  14667. var isLikes = false;
  14668. var commentJson = [];
  14669. var likeJson = [];
  14670. var data = b[j];
  14671. if (i == b[j].tool) {
  14672. if (data.type == 2 && a[i].tool[0] == 4) {
  14673. // if(JSON.parse(data.content)[0].anwer){
  14674. var checkL =
  14675. JSON.parse(data.content)[0].anwer instanceof Array
  14676. ? JSON.parse(data.content)[0].anwer
  14677. : JSON.parse(data.content)[0].anwer.split(",");
  14678. for (var z = 0; z < checkL.length; z++) {
  14679. if (!this.checkJson[i][z]) {
  14680. this.checkJson[i].push({
  14681. checkCount: [],
  14682. checkPerson: [],
  14683. rightPerson: [],
  14684. });
  14685. }
  14686. if (!this.checkJson[i][z].checkCount.length) {
  14687. this.checkJson[i][z].checkCount = [];
  14688. let _askItemCount = JSON.parse(data.content)[0].askJson
  14689. .askJson[z].askItem;
  14690. for (var aic = 0; aic < _askItemCount; aic++) {
  14691. this.checkJson[i][z].checkCount.push(0);
  14692. }
  14693. }
  14694. if (checkL[z] instanceof Array) {
  14695. if (
  14696. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14697. checkL[z].sort().join(",")
  14698. ) {
  14699. this.checkJson[i][z].rightPerson.push(data.name);
  14700. }
  14701. for (var q = 0; q < checkL[z].length; q++) {
  14702. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14703. ? this.checkJson[i][z].checkPerson[
  14704. parseInt(checkL[z][q])
  14705. ].push(data.name)
  14706. : (this.checkJson[i][z].checkPerson[
  14707. parseInt(checkL[z][q])
  14708. ] = [data.name]);
  14709. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14710. ? this.checkJson[i][z].checkCount[
  14711. parseInt(checkL[z][q])
  14712. ]++
  14713. : (this.checkJson[i][z].checkCount[
  14714. parseInt(checkL[z][q])
  14715. ] = 1);
  14716. }
  14717. } else {
  14718. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14719. this.checkJson[i][z].rightPerson.push(data.name);
  14720. }
  14721. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14722. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14723. ? this.checkJson[i][z].checkPerson[
  14724. parseInt(checkL[z])
  14725. ].push(data.name)
  14726. : (this.checkJson[i][z].checkPerson[
  14727. parseInt(checkL[z])
  14728. ] = [data.name]);
  14729. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14730. ? this.checkJson[i][z].checkCount[
  14731. parseInt(checkL[z])
  14732. ]++
  14733. : (this.checkJson[i][z].checkCount[
  14734. parseInt(checkL[z])
  14735. ] = 1);
  14736. }
  14737. }
  14738. }
  14739. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14740. var checkL = JSON.parse(data.content)[0].anwer;
  14741. if(a[i].testJson.testCount != JSON.parse(data.content)[0].testJson.testCount){
  14742. continue
  14743. }
  14744. // console.log('选择题')
  14745. for (var z = 0; z < checkL.length; z++) {
  14746. if (!this.checkJson[i][z]) {
  14747. this.checkJson[i].push({
  14748. checkCount: [],
  14749. checkPerson: [],
  14750. rightPerson: [],
  14751. });
  14752. }
  14753. if (!this.checkJson[i][z].checkCount.length) {
  14754. this.checkJson[i][z].checkCount = [];
  14755. let _askItemCount = JSON.parse(data.content)[0].testJson
  14756. .testJson[z].testItem;
  14757. for (var aic = 0; aic < _askItemCount; aic++) {
  14758. this.checkJson[i][z].checkCount.push(0);
  14759. }
  14760. }
  14761. if (checkL[z] instanceof Array) {
  14762. if (
  14763. JSON.parse(data.content)[0]
  14764. .testJson.testJson[z].answer.sort()
  14765. .join(",") == checkL[z].sort().join(",")
  14766. ) {
  14767. this.checkJson[i][z].rightPerson.push(data.name);
  14768. }
  14769. for (var q = 0; q < checkL[z].length; q++) {
  14770. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14771. ? this.checkJson[i][z].checkPerson[
  14772. parseInt(checkL[z][q])
  14773. ].push(data.name)
  14774. : (this.checkJson[i][z].checkPerson[
  14775. parseInt(checkL[z][q])
  14776. ] = [data.name]);
  14777. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14778. ? this.checkJson[i][z].checkCount[
  14779. parseInt(checkL[z][q])
  14780. ]++
  14781. : (this.checkJson[i][z].checkCount[
  14782. parseInt(checkL[z][q])
  14783. ] = 1);
  14784. }
  14785. } else {
  14786. if (
  14787. JSON.parse(data.content)[0].testJson.testJson[z]
  14788. .answer == checkL[z]
  14789. ) {
  14790. this.checkJson[i][z].rightPerson.push(data.name);
  14791. }
  14792. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14793. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14794. ? this.checkJson[i][z].checkPerson[
  14795. parseInt(checkL[z])
  14796. ].push(data.name)
  14797. : (this.checkJson[i][z].checkPerson[
  14798. parseInt(checkL[z])
  14799. ] = [data.name]);
  14800. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14801. ? this.checkJson[i][z].checkCount[
  14802. parseInt(checkL[z])
  14803. ]++
  14804. : (this.checkJson[i][z].checkCount[
  14805. parseInt(checkL[z])
  14806. ] = 1);
  14807. }
  14808. }
  14809. }
  14810. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14811. var checkL = JSON.parse(data.content);
  14812. for (var z = 0; z < checkL.length; z++) {
  14813. if (!this.checkJson[i][z]) {
  14814. this.checkJson[i].push({
  14815. checkCount: [],
  14816. checkPerson: [],
  14817. rightPerson: [],
  14818. });
  14819. }
  14820. this.checkJson[i][z].checkPerson.push(data.name);
  14821. if (
  14822. checkL[z].chooseSenList.toString() ==
  14823. checkL[z].rightAnswer.toString()
  14824. ) {
  14825. this.checkJson[i][z].rightPerson.push(data.name);
  14826. }
  14827. }
  14828. }
  14829. for (var k = 0; k < d.length; k++) {
  14830. //点赞
  14831. if (d[k].workId == b[j].id) {
  14832. likesCount++;
  14833. likeJson.push(d[k])
  14834. if (d[k].likesId == this.userid) {
  14835. isLikes = true;
  14836. }
  14837. }
  14838. }
  14839. for (var l = 0; l < e.length; l++) {
  14840. //评论
  14841. if (e[l].workId == b[j].id) {
  14842. if (e[l].comment != "") {
  14843. commentCount++;
  14844. commentJson.push({
  14845. commentText: e[l].comment,
  14846. commentTime: e[l].commentTime,
  14847. commentPeople: e[l].commentPeople,
  14848. userid: e[l].userid,
  14849. wid: e[l].id,
  14850. });
  14851. }
  14852. }
  14853. }
  14854. if (
  14855. (b[j].type == 1 ||
  14856. b[j].type == 4 ||
  14857. b[j].type == 5 ||
  14858. b[j].type == 6 ||
  14859. b[j].type == 12 ||
  14860. b[j].type == 7) &&
  14861. a[i].tool[0] != 15 &&
  14862. a[i].tool[0] != 4 &&
  14863. a[i].tool[0] != 45 &&
  14864. a[i].tool[0] != 50 &&
  14865. a[i].tool[0] != 32 &&
  14866. a[i].tool[0] != 57 &&
  14867. a[i].tool[0] != 52
  14868. ) {
  14869. if (
  14870. c.indexOf(
  14871. b[j].content
  14872. .split(".")
  14873. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14874. ) != -1 &&
  14875. a[i].tool[0] == 16 &&
  14876. b[j].atool != 50
  14877. ) {
  14878. let _works = {
  14879. userid: b[j].userid,
  14880. ateacher: b[j].ateacher,
  14881. wid: b[j].id,
  14882. works: b[j].content,
  14883. sName: b[j].name,
  14884. type: 1,
  14885. ttype:b[j].ttype,
  14886. time: b[j].time,
  14887. score: b[j].score,
  14888. img: b[j].img,
  14889. likesCount: likesCount,
  14890. commentCount: commentCount,
  14891. isLikes: isLikes,
  14892. commentJson: commentJson,
  14893. likeJson:likeJson
  14894. };
  14895. if (this.isGroup) {
  14896. let isGw = 1;
  14897. for (
  14898. var groupI = 0;
  14899. groupI < this.courseGroup.group.length;
  14900. groupI++
  14901. ) {
  14902. let gid = this.courseGroup.group[groupI].id;
  14903. if (
  14904. this.courseGroupStudentUid[gid].indexOf(
  14905. b[j].userid
  14906. ) != -1
  14907. ) {
  14908. isGw = 2;
  14909. this.courseGroup.group[groupI].works[i].push(_works);
  14910. break;
  14911. }
  14912. }
  14913. if (isGw == 1) {
  14914. _worksStudent[i].push(_works);
  14915. }
  14916. } else {
  14917. _worksStudent[i].push(_works);
  14918. }
  14919. _worksStudent2[i].push(_works);
  14920. this.isWorksS[i].push({
  14921. uid: b[j].userid,
  14922. sName: b[j].name,
  14923. });
  14924. } else if (
  14925. y.indexOf(
  14926. b[j].content
  14927. .split(".")
  14928. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14929. ) != -1 &&
  14930. a[i].tool[0] == 16 &&
  14931. b[j].atool != 50
  14932. ) {
  14933. let _works = {
  14934. userid: b[j].userid,
  14935. ateacher: b[j].ateacher,
  14936. wid: b[j].id,
  14937. works: b[j].content,
  14938. sName: b[j].name,
  14939. type: 3,
  14940. ttype:b[j].ttype,
  14941. time: b[j].time,
  14942. score: b[j].score,
  14943. img: b[j].img,
  14944. likesCount: likesCount,
  14945. commentCount: commentCount,
  14946. isLikes: isLikes,
  14947. commentJson: commentJson,
  14948. likeJson:likeJson
  14949. };
  14950. if (this.isGroup) {
  14951. let isGw = 1;
  14952. for (
  14953. var groupI = 0;
  14954. groupI < this.courseGroup.group.length;
  14955. groupI++
  14956. ) {
  14957. let gid = this.courseGroup.group[groupI].id;
  14958. if (
  14959. this.courseGroupStudentUid[gid].indexOf(
  14960. b[j].userid
  14961. ) != -1
  14962. ) {
  14963. isGw = 2;
  14964. this.courseGroup.group[groupI].works[i].push(_works);
  14965. break;
  14966. }
  14967. }
  14968. if (isGw == 1) {
  14969. _worksStudent[i].push(_works);
  14970. }
  14971. } else {
  14972. _worksStudent[i].push(_works);
  14973. }
  14974. _worksStudent2[i].push(_works);
  14975. this.isWorksS[i].push({
  14976. uid: b[j].userid,
  14977. sName: b[j].name,
  14978. });
  14979. } else if (b[j].type == 6 && b[j].atool != 50) {
  14980. let _works = {
  14981. userid: b[j].userid,
  14982. ateacher: b[j].ateacher,
  14983. wid: b[j].id,
  14984. works: b[j].content,
  14985. sName: b[j].name,
  14986. type: 4,
  14987. ttype:b[j].ttype,
  14988. time: b[j].time,
  14989. score: b[j].score,
  14990. img: b[j].img,
  14991. likesCount: likesCount,
  14992. commentCount: commentCount,
  14993. isLikes: isLikes,
  14994. commentJson: commentJson,
  14995. likeJson:likeJson
  14996. };
  14997. _worksStudent[i].push(_works);
  14998. _worksStudent2[i].push(_works);
  14999. this.isWorksS[i].push({
  15000. uid: b[j].userid,
  15001. sName: b[j].name,
  15002. });
  15003. } else if (b[j].type == 7 && b[j].atool != 50) {
  15004. let _work = {
  15005. userid: b[j].userid,
  15006. ateacher: b[j].ateacher,
  15007. wid: b[j].id,
  15008. works: b[j].content,
  15009. sName: b[j].name,
  15010. type: 5,
  15011. ttype:b[j].ttype,
  15012. time: b[j].time,
  15013. score: b[j].score,
  15014. img: b[j].img,
  15015. likesCount: likesCount,
  15016. commentCount: commentCount,
  15017. isLikes: isLikes,
  15018. commentJson: commentJson,
  15019. likeJson:likeJson
  15020. };
  15021. _worksStudent[i].push(_work);
  15022. _worksStudent2[i].push(_work);
  15023. this.isWorksS[i].push({
  15024. uid: b[j].userid,
  15025. sName: b[j].name,
  15026. });
  15027. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15028. let _works = {
  15029. userid: b[j].userid,
  15030. ateacher: b[j].ateacher,
  15031. wid: b[j].id,
  15032. works: b[j].content,
  15033. sName: b[j].name,
  15034. type: 12,
  15035. ttype:b[j].ttype,
  15036. time: b[j].time,
  15037. score: b[j].score,
  15038. img: b[j].img,
  15039. likesCount: likesCount,
  15040. commentCount: commentCount,
  15041. isLikes: isLikes,
  15042. commentJson: commentJson,
  15043. likeJson:likeJson
  15044. };
  15045. if (this.isGroup) {
  15046. let isGw = 1;
  15047. for (
  15048. var groupI = 0;
  15049. groupI < this.courseGroup.group.length;
  15050. groupI++
  15051. ) {
  15052. let gid = this.courseGroup.group[groupI].id;
  15053. if (
  15054. this.courseGroupStudentUid[gid].indexOf(
  15055. b[j].userid
  15056. ) != -1
  15057. ) {
  15058. isGw = 2;
  15059. this.courseGroup.group[groupI].works[i].push(_works);
  15060. break;
  15061. }
  15062. }
  15063. if (isGw == 1) {
  15064. _worksStudent[i].push(_works);
  15065. }
  15066. } else {
  15067. _worksStudent[i].push(_works);
  15068. }
  15069. _worksStudent2[i].push(_works);
  15070. this.isWorksS[i].push({
  15071. uid: b[j].userid,
  15072. sName: b[j].name,
  15073. });
  15074. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15075. let _works = {
  15076. userid: b[j].userid,
  15077. ateacher: b[j].ateacher,
  15078. wid: b[j].id,
  15079. works: b[j].content,
  15080. sName: b[j].name,
  15081. type: 0,
  15082. ttype:b[j].ttype,
  15083. time: b[j].time,
  15084. score: b[j].score,
  15085. img: b[j].img,
  15086. likesCount: likesCount,
  15087. commentCount: commentCount,
  15088. isLikes: isLikes,
  15089. commentJson: commentJson,
  15090. likeJson:likeJson
  15091. };
  15092. if (this.isGroup) {
  15093. let isGw = 1;
  15094. for (
  15095. var groupI = 0;
  15096. groupI < this.courseGroup.group.length;
  15097. groupI++
  15098. ) {
  15099. let gid = this.courseGroup.group[groupI].id;
  15100. if (
  15101. this.courseGroupStudentUid[gid].indexOf(
  15102. b[j].userid
  15103. ) != -1
  15104. ) {
  15105. isGw = 2;
  15106. this.courseGroup.group[groupI].works[i].push(_works);
  15107. break;
  15108. }
  15109. }
  15110. if (isGw == 1) {
  15111. _worksStudent[i].push(_works);
  15112. }
  15113. } else {
  15114. _worksStudent[i].push(_works);
  15115. }
  15116. _worksStudent2[i].push(_works);
  15117. this.isWorksS[i].push({
  15118. uid: b[j].userid,
  15119. sName: b[j].name,
  15120. });
  15121. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15122. let _works = {
  15123. userid: b[j].userid,
  15124. ateacher: b[j].ateacher,
  15125. wid: b[j].id,
  15126. works: b[j].content,
  15127. sName: b[j].name,
  15128. type: 0,
  15129. ttype:b[j].ttype,
  15130. time: b[j].time,
  15131. score: b[j].score,
  15132. img: b[j].img,
  15133. likesCount: likesCount,
  15134. commentCount: commentCount,
  15135. isLikes: isLikes,
  15136. commentJson: commentJson,
  15137. likeJson:likeJson
  15138. };
  15139. if (this.isGroup) {
  15140. let isGw = 1;
  15141. for (
  15142. var groupI = 0;
  15143. groupI < this.courseGroup.group.length;
  15144. groupI++
  15145. ) {
  15146. let gid = this.courseGroup.group[groupI].id;
  15147. if (
  15148. this.courseGroupStudentUid[gid].indexOf(
  15149. b[j].userid
  15150. ) != -1
  15151. ) {
  15152. isGw = 2;
  15153. this.courseGroup.group[groupI].works[i].push(_works);
  15154. break;
  15155. }
  15156. }
  15157. if (isGw == 1) {
  15158. _worksStudent[i].push(_works);
  15159. }
  15160. } else {
  15161. _worksStudent[i].push(_works);
  15162. }
  15163. _worksStudent2[i].push(_works);
  15164. this.isWorksS[i].push({
  15165. uid: b[j].userid,
  15166. sName: b[j].name,
  15167. });
  15168. }
  15169. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15170. let _works = {
  15171. userid: b[j].userid,
  15172. ateacher: b[j].ateacher,
  15173. wid: b[j].id,
  15174. works: b[j].content,
  15175. sName: b[j].name,
  15176. type: 2,
  15177. ttype:b[j].ttype,
  15178. time: b[j].time,
  15179. score: b[j].score,
  15180. img: b[j].img,
  15181. likesCount: likesCount,
  15182. commentCount: commentCount,
  15183. isLikes: isLikes,
  15184. commentJson: commentJson,
  15185. likeJson:likeJson
  15186. };
  15187. if (this.isGroup) {
  15188. let isGw = 1;
  15189. for (
  15190. var groupI = 0;
  15191. groupI < this.courseGroup.group.length;
  15192. groupI++
  15193. ) {
  15194. let gid = this.courseGroup.group[groupI].id;
  15195. if (
  15196. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15197. -1
  15198. ) {
  15199. isGw = 2;
  15200. this.courseGroup.group[groupI].works[i].push(_works);
  15201. break;
  15202. }
  15203. }
  15204. if (isGw == 1) {
  15205. _worksStudent[i].push(_works);
  15206. }
  15207. } else {
  15208. _worksStudent[i].push(_works);
  15209. }
  15210. _worksStudent2[i].push(_works);
  15211. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15212. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15213. let _works = {
  15214. userid: b[j].userid,
  15215. ateacher: b[j].ateacher,
  15216. wid: b[j].id,
  15217. works: b[j].content,
  15218. sName: b[j].name,
  15219. type: 20,
  15220. ttype:b[j].ttype,
  15221. time: b[j].time,
  15222. score: b[j].score,
  15223. img: b[j].img,
  15224. likesCount: likesCount,
  15225. commentCount: commentCount,
  15226. isLikes: isLikes,
  15227. commentJson: commentJson,
  15228. likeJson:likeJson
  15229. };
  15230. if (this.isGroup) {
  15231. let isGw = 1;
  15232. for (
  15233. var groupI = 0;
  15234. groupI < this.courseGroup.group.length;
  15235. groupI++
  15236. ) {
  15237. let gid = this.courseGroup.group[groupI].id;
  15238. if (
  15239. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15240. -1
  15241. ) {
  15242. isGw = 2;
  15243. this.courseGroup.group[groupI].works[i].push(_works);
  15244. break;
  15245. }
  15246. }
  15247. if (isGw == 1) {
  15248. _worksStudent[i].push(_works);
  15249. }
  15250. } else {
  15251. _worksStudent[i].push(_works);
  15252. }
  15253. _worksStudent2[i].push(_works);
  15254. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15255. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15256. //问卷
  15257. let _work = {
  15258. userid: b[j].userid,
  15259. ateacher: b[j].ateacher,
  15260. wid: b[j].id,
  15261. works: b[j].content,
  15262. sName: b[j].name,
  15263. type: 2,
  15264. ttype:b[j].ttype,
  15265. time: b[j].time,
  15266. score: b[j].score,
  15267. img: b[j].img,
  15268. likesCount: likesCount,
  15269. commentCount: commentCount,
  15270. isLikes: isLikes,
  15271. commentJson: commentJson,
  15272. likeJson:likeJson
  15273. };
  15274. _worksStudent[i].push(_work);
  15275. _worksStudent2[i].push(_work);
  15276. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15277. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15278. //选择题
  15279. let _work = {
  15280. userid: b[j].userid,
  15281. ateacher: b[j].ateacher,
  15282. wid: b[j].id,
  15283. works: b[j].content,
  15284. sName: b[j].name,
  15285. type: 8,
  15286. ttype:b[j].ttype,
  15287. time: b[j].time,
  15288. score: b[j].score,
  15289. img: b[j].img,
  15290. likesCount: likesCount,
  15291. commentCount: commentCount,
  15292. isLikes: isLikes,
  15293. commentJson: commentJson,
  15294. likeJson:likeJson
  15295. };
  15296. _worksStudent[i].push(_work);
  15297. _worksStudent2[i].push(_work);
  15298. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15299. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15300. //选择题
  15301. let _work = {
  15302. userid: b[j].userid,
  15303. ateacher: b[j].ateacher,
  15304. wid: b[j].id,
  15305. works: b[j].content,
  15306. sName: b[j].name,
  15307. type: 9,
  15308. ttype:b[j].ttype,
  15309. time: b[j].time,
  15310. score: b[j].score,
  15311. img: b[j].img,
  15312. likesCount: likesCount,
  15313. commentCount: commentCount,
  15314. isLikes: isLikes,
  15315. commentJson: commentJson,
  15316. likeJson:likeJson
  15317. };
  15318. _worksStudent[i].push(_work);
  15319. _worksStudent2[i].push(_work);
  15320. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15321. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15322. //选择题
  15323. let _work = {
  15324. userid: b[j].userid,
  15325. ateacher: b[j].ateacher,
  15326. wid: b[j].id,
  15327. works: b[j].content,
  15328. sName: b[j].name,
  15329. type: 10,
  15330. ttype:b[j].ttype,
  15331. time: b[j].time,
  15332. score: b[j].score,
  15333. img: b[j].img,
  15334. likesCount: likesCount,
  15335. commentCount: commentCount,
  15336. isLikes: isLikes,
  15337. commentJson: commentJson,
  15338. likeJson:likeJson
  15339. };
  15340. _worksStudent[i].push(_work);
  15341. _worksStudent2[i].push(_work);
  15342. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15343. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15344. //选择题
  15345. let _work = {
  15346. userid: b[j].userid,
  15347. ateacher: b[j].ateacher,
  15348. wid: b[j].id,
  15349. works: b[j].content,
  15350. sName: b[j].name,
  15351. type: 13,
  15352. ttype:b[j].ttype,
  15353. time: b[j].time,
  15354. score: b[j].score,
  15355. img: b[j].img,
  15356. likesCount: likesCount,
  15357. commentCount: commentCount,
  15358. isLikes: isLikes,
  15359. commentJson: commentJson,
  15360. likeJson:likeJson
  15361. };
  15362. _worksStudent[i].push(_work);
  15363. _worksStudent2[i].push(_work);
  15364. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15365. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15366. //选择题
  15367. let _work = {
  15368. userid: b[j].userid,
  15369. ateacher: b[j].ateacher,
  15370. wid: b[j].id,
  15371. works: b[j].content,
  15372. sName: b[j].name,
  15373. type: 16,
  15374. ttype:b[j].ttype,
  15375. time: b[j].time,
  15376. score: b[j].score,
  15377. img: b[j].img,
  15378. likesCount: likesCount,
  15379. commentCount: commentCount,
  15380. isLikes: isLikes,
  15381. commentJson: commentJson,
  15382. aiCode: b[j].aiCode,
  15383. teacherCode: b[j].teacherCode,
  15384. likeJson:likeJson
  15385. };
  15386. _worksStudent[i].push(_work);
  15387. _worksStudent2[i].push(_work);
  15388. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15389. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15390. //英语口语
  15391. let _work = {
  15392. userid: b[j].userid,
  15393. ateacher: b[j].ateacher,
  15394. wid: b[j].id,
  15395. works: b[j].content,
  15396. sName: b[j].name,
  15397. type: 17,
  15398. ttype:b[j].ttype,
  15399. time: b[j].time,
  15400. score: b[j].score,
  15401. img: b[j].img,
  15402. likesCount: likesCount,
  15403. commentCount: commentCount,
  15404. isLikes: isLikes,
  15405. commentJson: commentJson,
  15406. likeJson:likeJson
  15407. };
  15408. _worksStudent[i].push(_work);
  15409. _worksStudent2[i].push(_work);
  15410. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15411. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15412. //交互视频
  15413. let _work = {
  15414. userid: b[j].userid,
  15415. ateacher: b[j].ateacher,
  15416. wid: b[j].id,
  15417. works: b[j].content,
  15418. sName: b[j].name,
  15419. type: 14,
  15420. ttype:b[j].ttype,
  15421. time: b[j].time,
  15422. score: b[j].score,
  15423. img: b[j].img,
  15424. likesCount: likesCount,
  15425. commentCount: commentCount,
  15426. isLikes: isLikes,
  15427. commentJson: commentJson,
  15428. likeJson:likeJson
  15429. };
  15430. _worksStudent[i].push(_work);
  15431. _worksStudent2[i].push(_work);
  15432. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15433. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15434. let _gindex = JSON.parse(b[j].content);
  15435. if (
  15436. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15437. b[j].userid
  15438. ) != -1
  15439. ) {
  15440. let _work = {
  15441. userid: b[j].userid,
  15442. ateacher: b[j].ateacher,
  15443. wid: b[j].id,
  15444. works: _gindex.url,
  15445. sName: b[j].name,
  15446. type: _gindex.type,
  15447. ttype:b[j].ttype,
  15448. time: b[j].time,
  15449. score: b[j].score,
  15450. img: b[j].img,
  15451. likesCount: likesCount,
  15452. commentCount: commentCount,
  15453. isLikes: isLikes,
  15454. commentJson: commentJson,
  15455. likeJson:likeJson
  15456. };
  15457. _worksStudent[i][_gindex.groupIndex].push(_work);
  15458. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15459. }
  15460. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15461. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15462. let _work = {
  15463. userid: b[j].userid,
  15464. ateacher: b[j].ateacher,
  15465. wid: b[j].id,
  15466. works: b[j].content,
  15467. sName: b[j].name ? b[j].name : b[j].userid,
  15468. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15469. ttype:b[j].ttype,
  15470. time: b[j].time,
  15471. score: b[j].score,
  15472. img: b[j].img,
  15473. likesCount: likesCount,
  15474. commentCount: commentCount,
  15475. isLikes: isLikes,
  15476. commentJson: commentJson,
  15477. likeJson:likeJson
  15478. };
  15479. _worksStudent[i].push(_work);
  15480. _worksStudent2[i].push(_work);
  15481. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15482. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15483. let _work = {
  15484. userid: b[j].userid,
  15485. ateacher: b[j].ateacher,
  15486. wid: b[j].id,
  15487. works: b[j].content,
  15488. sName: b[j].name ? b[j].name : b[j].userid,
  15489. type: 12,
  15490. ttype:b[j].ttype,
  15491. time: b[j].time,
  15492. score: b[j].score,
  15493. img: b[j].img,
  15494. likesCount: likesCount,
  15495. commentCount: commentCount,
  15496. isLikes: isLikes,
  15497. commentJson: commentJson,
  15498. likeJson:likeJson
  15499. };
  15500. _worksStudent[i].push(_work);
  15501. _worksStudent2[i].push(_work);
  15502. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15503. } else if (
  15504. a[i].tool[0] == 57 &&
  15505. b[j].atool == 57 &&
  15506. b[j].type == 12
  15507. ) {
  15508. let _work = {
  15509. userid: b[j].userid,
  15510. ateacher: b[j].ateacher,
  15511. wid: b[j].id,
  15512. works: b[j].content,
  15513. sName: b[j].name ? b[j].name : b[j].userid,
  15514. type: 12,
  15515. ttype:b[j].ttype,
  15516. time: b[j].time,
  15517. score: b[j].score,
  15518. img: b[j].img,
  15519. likesCount: likesCount,
  15520. commentCount: commentCount,
  15521. isLikes: isLikes,
  15522. commentJson: commentJson,
  15523. likeJson:likeJson
  15524. };
  15525. _worksStudent[i].push(_work);
  15526. _worksStudent2[i].push(_work);
  15527. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15528. } else if (
  15529. a[i].tool[0] == 57 &&
  15530. b[j].atool == 57 &&
  15531. b[j].type == 15
  15532. ) {
  15533. let _work = {
  15534. userid: b[j].userid,
  15535. ateacher: b[j].ateacher,
  15536. wid: b[j].id,
  15537. works: b[j].content,
  15538. sName: b[j].name ? b[j].name : b[j].userid,
  15539. type: 15,
  15540. ttype:b[j].ttype,
  15541. time: b[j].time,
  15542. score: b[j].score,
  15543. img: b[j].img,
  15544. likesCount: likesCount,
  15545. commentCount: commentCount,
  15546. isLikes: isLikes,
  15547. commentJson: commentJson,
  15548. likeJson:likeJson
  15549. };
  15550. _worksStudent[i].push(_work);
  15551. _worksStudent2[i].push(_work);
  15552. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15553. }
  15554. }
  15555. }
  15556. if (_worksStudent[i] && _worksStudent[i].length) {
  15557. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15558. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15559. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15560. var scoreA = parseFloat(jscoreA);
  15561. var scoreB = parseFloat(jscoreB);
  15562. if (scoreA == scoreB) {
  15563. return b.likesCount - a.likesCount;
  15564. }
  15565. return scoreB - scoreA;
  15566. });
  15567. if (this.isGroup) {
  15568. for (
  15569. var groupI = 0;
  15570. groupI < this.courseGroup.group.length;
  15571. groupI++
  15572. ) {
  15573. this.courseGroup.group[groupI].works[i] =
  15574. this.courseGroup.group[groupI].works[i].sort(function (
  15575. a,
  15576. b
  15577. ) {
  15578. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15579. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15580. var scoreA = parseFloat(jscoreA);
  15581. var scoreB = parseFloat(jscoreB);
  15582. if (scoreA == scoreB) {
  15583. return b.likesCount - a.likesCount;
  15584. }
  15585. return scoreB - scoreA;
  15586. });
  15587. }
  15588. }
  15589. }
  15590. }
  15591. this.timeWorkList = _worksStudent2;
  15592. for (var i = 0; i < a.length; i++) {
  15593. for (var j = 0; j < b.length; j++) {
  15594. var data = b[j];
  15595. if (i == b[j].tool) {
  15596. if (data.type == 2 || data.type == 8) {
  15597. for (var z = 0; z < this.checkJson[i].length; z++) {
  15598. this.checkJson[i][z].checkPerent = [];
  15599. this.checkJson[i][z].right = Math.round(
  15600. (this.checkJson[i][z].rightPerson.length /
  15601. parseInt(_worksStudent[i].length)) *
  15602. 100
  15603. );
  15604. let aaaa = this.checkJson[i][z];
  15605. for (
  15606. var k = 0;
  15607. k < this.checkJson[i][z].checkCount.length;
  15608. k++
  15609. ) {
  15610. this.checkJson[i][z].checkPerent.push(
  15611. Math.round(
  15612. (this.checkJson[i][z].checkCount[k] /
  15613. parseInt(_worksStudent[i].length)) *
  15614. 100
  15615. )
  15616. );
  15617. }
  15618. }
  15619. } else if (data.type == 9) {
  15620. for (var z = 0; z < this.checkJson[i].length; z++) {
  15621. this.checkJson[i][z].checkPerent = [];
  15622. this.checkJson[i][z].right = Math.round(
  15623. (this.checkJson[i][z].rightPerson.length /
  15624. this.checkJson[i][z].checkPerson.length) *
  15625. 100
  15626. );
  15627. }
  15628. }
  15629. }
  15630. }
  15631. }
  15632. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15633. this.joinGroup(gindex);
  15634. }
  15635. this.worksStudent = _worksStudent;
  15636. this.selectWorksStudent();
  15637. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15638. this.$nextTick(()=>{
  15639. setTimeout(()=>{
  15640. setTimeout(()=>{
  15641. this.panToolHeight('tool-'+ci);
  15642. }, 500)
  15643. }, 0)
  15644. })
  15645. }
  15646. this.selectSWorksLoading = false
  15647. })
  15648. .catch((err) => {
  15649. this.selectSWorksLoading = false
  15650. console.error(err);
  15651. });
  15652. },
  15653. pngToWhiteBg(file) {
  15654. const _file = file;
  15655. let read = new FileReader();
  15656. read.readAsDataURL(file); // 文件转base64
  15657. return new Promise((resolve, reject) => {
  15658. read.onload = (e) => {
  15659. let img = new Image();
  15660. img.src = e.target.result;
  15661. img.onload = async () => {
  15662. // 生成canvas
  15663. let canvas = document.createElement("canvas");
  15664. let context = canvas.getContext("2d");
  15665. // 绘制图片到canvas上
  15666. canvas.width = img.width;
  15667. canvas.height = img.height;
  15668. // 在canvas绘制前填充白色背景
  15669. context.fillStyle = "#fff";
  15670. context.fillRect(0, 0, canvas.width, canvas.height);
  15671. context.drawImage(img, 0, 0);
  15672. let base64 = canvas.toDataURL(file["type"], 1);
  15673. let newFile = this.dataUrlToFile(base64, _file);
  15674. resolve(newFile);
  15675. };
  15676. };
  15677. });
  15678. },
  15679. dataUrlToFile(dataurl, file) {
  15680. let arr = dataurl.split(","),
  15681. mime = arr[0].match(/:(.*?);/)[1],
  15682. bstr = atob(arr[1]),
  15683. n = bstr.length,
  15684. u8arr = new Uint8Array(n);
  15685. while (n--) {
  15686. u8arr[n] = bstr.charCodeAt(n);
  15687. }
  15688. // return new Blob([u8arr], { type: mime });
  15689. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15690. type: mime,
  15691. });
  15692. },
  15693. async beforeUpload1(event, type, i) {
  15694. // this.$message.success('进入上传')
  15695. var file = "";
  15696. if (type == 5) {
  15697. file = event;
  15698. } else {
  15699. file = event.target.files[0];
  15700. }
  15701. var credentials = {
  15702. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15703. secretAccessKey: "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",
  15704. }; //秘钥形式的登录上传
  15705. window.AWS.config.update(credentials);
  15706. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15707. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15708. var _this = this;
  15709. _this.progress = 0;
  15710. _this.proVisible = true;
  15711. _this.isFinishSize = 0;
  15712. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15713. var b = [
  15714. "DOC",
  15715. "DOCX",
  15716. "DOCM",
  15717. "DOTM",
  15718. "DOTX",
  15719. "PPTX",
  15720. "PPSX",
  15721. "PPT",
  15722. "PPS",
  15723. "PPTM",
  15724. "POTM",
  15725. "PPAM",
  15726. "POTX",
  15727. "PPSM",
  15728. ];
  15729. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15730. var photoA = [
  15731. "BMP",
  15732. "GIF",
  15733. "PNG",
  15734. "JPEG",
  15735. "JPEG",
  15736. "JPG",
  15737. "TIF",
  15738. "PCX",
  15739. "TGA",
  15740. "EXIF",
  15741. "FPX",
  15742. "SVG",
  15743. "APNG",
  15744. ];
  15745. // if (
  15746. // b.indexOf(
  15747. // file.name
  15748. // .split(".")
  15749. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15750. // ) != -1
  15751. // ) {
  15752. // if (file.size / 1024 / 1024 > 10) {
  15753. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15754. // return;
  15755. // }
  15756. // } else if (
  15757. // excelA.indexOf(
  15758. // file.name
  15759. // .split(".")
  15760. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15761. // ) != "-1"
  15762. // ) {
  15763. // if (file.size / 1024 / 1024 > 5) {
  15764. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15765. // return;
  15766. // }
  15767. // }
  15768. if (
  15769. photoA.indexOf(
  15770. file.name
  15771. .split(".")
  15772. [file.name.split(".").length - 1].toLocaleUpperCase()
  15773. ) != -1 &&
  15774. type != 4
  15775. ) {
  15776. // const blob = await imageConversion.compress(file, 0.8)
  15777. file = await this.pngToWhiteBg(file);
  15778. const blob = await imageConversion.compressAccurately(file, 256);
  15779. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15780. file = new File([blob], file.name, { type: file.type });
  15781. }
  15782. if (file) {
  15783. var params = {
  15784. Key:
  15785. file.name.split(".")[0] +
  15786. new Date().getTime() +
  15787. "." +
  15788. file.name.split(".")[file.name.split(".").length - 1],
  15789. ContentType: file.type,
  15790. Body: file,
  15791. "Access-Control-Allow-Credentials": "*",
  15792. ACL: "public-read",
  15793. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15794. var options = {
  15795. // partSize: 2048 * 1024 * 1024,
  15796. partSize: 1024 * 1024 * 1024,
  15797. queueSize: 2,
  15798. leavePartsOnError: true,
  15799. };
  15800. bucket
  15801. .upload(params, options)
  15802. .on("httpUploadProgress", function (evt) {
  15803. //这里可以写进度条
  15804. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15805. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15806. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15807. })
  15808. .send(function (err, data) {
  15809. _this.progress = 100;
  15810. _this.isFinishSize = _this.isAllSize;
  15811. setTimeout(() => {
  15812. _this.proVisible = false;
  15813. }, 1000);
  15814. if (err) {
  15815. var a = _this.$refs.upload1.uploadFiles;
  15816. a.splice(a.length - 1, a.length);
  15817. _this.$message.error(this.lang.ssUploadFailed);
  15818. } else {
  15819. // _this.$message.success('上传成功')
  15820. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15821. var c = [
  15822. "AVI",
  15823. "NAVI",
  15824. "MPEG",
  15825. "ASF",
  15826. "MOV",
  15827. "WMV",
  15828. "3GP",
  15829. "RM",
  15830. "RMVB",
  15831. "FLV",
  15832. "F4V",
  15833. "H.264",
  15834. "H.265",
  15835. "REAL VIDEO",
  15836. "MKV",
  15837. "WebM",
  15838. "HDDVD",
  15839. "MP4",
  15840. "MPG",
  15841. "M4V",
  15842. "MGV",
  15843. "OGV",
  15844. "QTM",
  15845. "STR",
  15846. "AMC",
  15847. "DVX",
  15848. "EVO",
  15849. "DAT",
  15850. "OGG",
  15851. "OGM",
  15852. ];
  15853. if (type == 1) {
  15854. _this.studyJuri[0].cover.push({
  15855. name: file.name,
  15856. url: data.Location,
  15857. uid: file.uid,
  15858. });
  15859. if (
  15860. c.indexOf(
  15861. _this.studyJuri[0].cover[0].url
  15862. .split(".")
  15863. [
  15864. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15865. ].toLocaleUpperCase()
  15866. ) != -1
  15867. ) {
  15868. _this.fileType = 2;
  15869. } else if (
  15870. b.indexOf(
  15871. _this.studyJuri[0].cover[0].url
  15872. .split(".")
  15873. [
  15874. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15875. ].toLocaleUpperCase()
  15876. ) != -1
  15877. ) {
  15878. _this.fileType = 1;
  15879. } else if (
  15880. photoA.indexOf(
  15881. _this.studyJuri[0].cover[0].url
  15882. .split(".")
  15883. [
  15884. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15885. ].toLocaleUpperCase()
  15886. ) != -1
  15887. ) {
  15888. _this.fileType = 0;
  15889. } else {
  15890. _this.fileType = 3;
  15891. }
  15892. _this.imgChange(null, null, type);
  15893. } else if (type == 2) {
  15894. _this.upToolImg = data.Location;
  15895. _this.imgChange(null, null, type);
  15896. _this.addCourseWorks(i);
  15897. } else if (type == 4) {
  15898. _this.addPz("3", data.Location);
  15899. } else if (type == 5) {
  15900. _this.addImgDrawImG(data.Location);
  15901. } else if (type == 6) {
  15902. var _ftype = 1;
  15903. if (
  15904. c.indexOf(
  15905. data.Location.split(".")[
  15906. data.Location.split(".").length - 1
  15907. ].toLocaleUpperCase()
  15908. ) != -1
  15909. ) {
  15910. _ftype = 5;
  15911. } else if (
  15912. b.indexOf(
  15913. data.Location.split(".")[
  15914. data.Location.split(".").length - 1
  15915. ].toLocaleUpperCase()
  15916. ) != -1
  15917. ) {
  15918. _ftype = 4;
  15919. } else {
  15920. _ftype = 1;
  15921. }
  15922. _this.plworkFile.push({
  15923. name: file.name,
  15924. url: data.Location,
  15925. uid: file.uid,
  15926. fileType: _ftype,
  15927. username:
  15928. _this.plworkFile.length > 10
  15929. ? _this.plworkFile.length + 1
  15930. : "0" + (_this.plworkFile.length + 1),
  15931. });
  15932. } else if (type == 7) {
  15933. _this.addCourseWorksGong(i, data.Location, 32);
  15934. } else if (type == 8) {
  15935. _this.addCourseWorksGong(i, data.Location, 57);
  15936. }
  15937. _this.imgChange(null, null, type);
  15938. console.log(data.Location);
  15939. // _this.$message.success('上传成功'+data.Location)
  15940. }
  15941. });
  15942. }
  15943. },
  15944. async beforeUpload3(event, type, i) {
  15945. // this.$message.success('进入上传')
  15946. let file = "";
  15947. let cfindex2 = 0;
  15948. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15949. file = event.target.files[cfindex];
  15950. var credentials = {
  15951. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15952. secretAccessKey: "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",
  15953. }; //秘钥形式的登录上传
  15954. window.AWS.config.update(credentials);
  15955. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15956. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15957. var _this = this;
  15958. // _this.progress = 0;
  15959. _this.proVisible2 = true;
  15960. var b = [
  15961. "DOC",
  15962. "DOCX",
  15963. "DOCM",
  15964. "DOTM",
  15965. "DOTX",
  15966. "PPTX",
  15967. "PPSX",
  15968. "PPT",
  15969. "PPS",
  15970. "PPTM",
  15971. "POTM",
  15972. "PPAM",
  15973. "POTX",
  15974. "PPSM",
  15975. ];
  15976. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15977. var photoA = [
  15978. "BMP",
  15979. "GIF",
  15980. "PNG",
  15981. "JPEG",
  15982. "JPG",
  15983. "TIF",
  15984. "PCX",
  15985. "TGA",
  15986. "EXIF",
  15987. "FPX",
  15988. "SVG",
  15989. "APNG",
  15990. ];
  15991. if (
  15992. photoA.indexOf(
  15993. file.name
  15994. .split(".")
  15995. [file.name.split(".").length - 1].toLocaleUpperCase()
  15996. ) != -1 &&
  15997. type != 4
  15998. ) {
  15999. // const blob = await imageConversion.compress(file, 0.8)
  16000. file = await this.pngToWhiteBg(file);
  16001. const blob = await imageConversion.compressAccurately(file, 256);
  16002. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16003. file = new File([blob], file.name, { type: file.type });
  16004. }
  16005. if (file) {
  16006. var params = {
  16007. Key:
  16008. file.name.split(".")[0] +
  16009. new Date().getTime() +
  16010. "." +
  16011. file.name.split(".")[file.name.split(".").length - 1],
  16012. ContentType: file.type,
  16013. Body: file,
  16014. "Access-Control-Allow-Credentials": "*",
  16015. ACL: "public-read",
  16016. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16017. var options = {
  16018. // partSize: 2048 * 1024 * 1024,
  16019. partSize: 1024 * 1024 * 1024,
  16020. queueSize: 2,
  16021. leavePartsOnError: true,
  16022. };
  16023. bucket
  16024. .upload(params, options)
  16025. .on("httpUploadProgress", function (evt) {
  16026. //这里可以写进度条
  16027. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16028. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16029. })
  16030. .send(function (err, data) {
  16031. // _this.progress = 100;
  16032. cfindex2++;
  16033. setTimeout(() => {
  16034. if (
  16035. cfindex2 == event.target.files.length - 1 ||
  16036. cfindex2 > event.target.files.length - 1
  16037. ) {
  16038. _this.proVisible2 = false;
  16039. }
  16040. }, 1000);
  16041. if (err) {
  16042. var a = _this.$refs.upload1.uploadFiles;
  16043. a.splice(a.length - 1, a.length);
  16044. _this.$message.error(this.lang.ssUploadFailed);
  16045. } else {
  16046. // _this.$message.success('上传成功')
  16047. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16048. var c = [
  16049. "AVI",
  16050. "NAVI",
  16051. "MPEG",
  16052. "ASF",
  16053. "MOV",
  16054. "WMV",
  16055. "3GP",
  16056. "RM",
  16057. "RMVB",
  16058. "FLV",
  16059. "F4V",
  16060. "H.264",
  16061. "H.265",
  16062. "REAL VIDEO",
  16063. "MKV",
  16064. "WebM",
  16065. "HDDVD",
  16066. "MP4",
  16067. "MPG",
  16068. "M4V",
  16069. "MGV",
  16070. "OGV",
  16071. "QTM",
  16072. "STR",
  16073. "AMC",
  16074. "DVX",
  16075. "EVO",
  16076. "DAT",
  16077. "OGG",
  16078. "OGM",
  16079. ];
  16080. if (type == 1) {
  16081. _this.studyJuri[0].cover.push({
  16082. name: file.name,
  16083. url: data.Location,
  16084. uid: file.uid,
  16085. });
  16086. if (
  16087. c.indexOf(
  16088. _this.studyJuri[0].cover[0].url
  16089. .split(".")
  16090. [
  16091. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16092. ].toLocaleUpperCase()
  16093. ) != -1
  16094. ) {
  16095. _this.fileType = 2;
  16096. } else if (
  16097. b.indexOf(
  16098. _this.studyJuri[0].cover[0].url
  16099. .split(".")
  16100. [
  16101. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16102. ].toLocaleUpperCase()
  16103. ) != -1
  16104. ) {
  16105. _this.fileType = 1;
  16106. } else {
  16107. _this.fileType = 0;
  16108. }
  16109. _this.imgChange(null, null, type);
  16110. } else if (type == 2) {
  16111. _this.upToolImg = data.Location;
  16112. _this.imgChange(null, null, type);
  16113. _this.addCourseWorks(i);
  16114. } else if (type == 4) {
  16115. _this.addPz("3", data.Location);
  16116. } else if (type == 5) {
  16117. _this.addImgDrawImG(data.Location);
  16118. } else if (type == 6) {
  16119. var _ftype = 1;
  16120. if (
  16121. c.indexOf(
  16122. data.Location.split(".")[
  16123. data.Location.split(".").length - 1
  16124. ].toLocaleUpperCase()
  16125. ) != -1
  16126. ) {
  16127. _ftype = 5;
  16128. } else if (
  16129. b.indexOf(
  16130. data.Location.split(".")[
  16131. data.Location.split(".").length - 1
  16132. ].toLocaleUpperCase()
  16133. ) != -1
  16134. ) {
  16135. _ftype = 4;
  16136. } else {
  16137. _ftype = 1;
  16138. }
  16139. _this.plworkFile.push({
  16140. name: file.name,
  16141. url: data.Location,
  16142. uid: file.uid,
  16143. fileType: _ftype,
  16144. username:
  16145. _this.plworkFile.length + 1 > 9
  16146. ? _this.plworkFile.length + 1
  16147. : "0" + (_this.plworkFile.length + 1),
  16148. });
  16149. }
  16150. _this.imgChange(null, null, type);
  16151. console.log(data.Location);
  16152. // _this.$message.success('上传成功'+data.Location)
  16153. }
  16154. });
  16155. }
  16156. }
  16157. },
  16158. beforeUpload2(event, type) {
  16159. var file = event.target.files[0];
  16160. var credentials = {
  16161. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16162. secretAccessKey: "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",
  16163. }; //秘钥形式的登录上传
  16164. window.AWS.config.update(credentials);
  16165. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16166. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16167. var _this = this;
  16168. _this.progress = 0;
  16169. _this.proVisible = true;
  16170. if (file) {
  16171. var params = {
  16172. Key:
  16173. file.name.split(".")[0] +
  16174. new Date().getTime() +
  16175. "." +
  16176. file.name.split(".")[file.name.split(".").length - 1],
  16177. ContentType: file.type,
  16178. Body: file,
  16179. "Access-Control-Allow-Credentials": "*",
  16180. ACL: "public-read",
  16181. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16182. var options = {
  16183. partSize: 2048 * 1024 * 1024,
  16184. queueSize: 2,
  16185. leavePartsOnError: true,
  16186. };
  16187. bucket
  16188. .upload(params, options)
  16189. .on("httpUploadProgress", function (evt) {
  16190. //这里可以写进度条
  16191. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16192. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16193. })
  16194. .send(function (err, data) {
  16195. _this.progress = 100;
  16196. setTimeout(() => {
  16197. _this.proVisible = false;
  16198. }, 1000);
  16199. if (err) {
  16200. var a = _this.$refs.upload1.uploadFiles;
  16201. a.splice(a.length - 1, a.length);
  16202. _this.$message.error(this.lang.ssUploadFailed);
  16203. } else {
  16204. if (type == 2) {
  16205. _this.studyJuri[0].upVedio.push({
  16206. name: file.name,
  16207. url: data.Location,
  16208. uid: file.uid,
  16209. });
  16210. _this.imgChange(null, null, type);
  16211. } else if (type == 3) {
  16212. _this.studyJuri[0].upFile.push({
  16213. name: file.name,
  16214. url: data.Location,
  16215. uid: file.uid,
  16216. });
  16217. _this.imgChange(null, null, type);
  16218. }
  16219. console.log(data.Location);
  16220. }
  16221. });
  16222. }
  16223. },
  16224. allScrell() {
  16225. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16226. },
  16227. nextOrpreSteps(t) {
  16228. if (this.IsFollow && this.tType == 2) {
  16229. this.$message.error(this.lang.ssFollowModeOn);
  16230. return;
  16231. }
  16232. var b = this.chapInfoList.length - 1;
  16233. if (t == 0) {
  16234. if (this.courseType == 0) {
  16235. if (this.taskCount == 0) {
  16236. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16237. if (this.IsLookOpen) {
  16238. if (
  16239. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16240. ) {
  16241. if (
  16242. this.courseDetail.userid != this.userid &&
  16243. (!this.courseDetail.course_teacher ||
  16244. (this.courseDetail.course_teacher &&
  16245. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16246. ) {
  16247. this.$message.error(this.lang.ssTaskLocked);
  16248. } else {
  16249. this.$message.error(this.lang.ssPrevTaskLocked);
  16250. }
  16251. return;
  16252. }
  16253. }
  16254. this.navList[this.courseType].isOpen = false;
  16255. this.courseType = b;
  16256. this.taskCount =
  16257. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16258. .length - 1;
  16259. this.navList[this.courseType].isOpen = true;
  16260. } else {
  16261. this.taskCount--;
  16262. }
  16263. } else {
  16264. if (this.taskCount == 0) {
  16265. this.navList[this.courseType].isOpen = false;
  16266. this.courseType--;
  16267. this.taskCount =
  16268. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16269. .length - 1;
  16270. this.navList[this.courseType].isOpen = true;
  16271. } else {
  16272. this.taskCount--;
  16273. }
  16274. }
  16275. } else {
  16276. if (this.courseType == b) {
  16277. if (
  16278. this.taskCount ==
  16279. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16280. 1
  16281. ) {
  16282. this.navList[this.courseType].isOpen = false;
  16283. this.courseType = 0;
  16284. this.taskCount = 0;
  16285. this.navList[this.courseType].isOpen = true;
  16286. } else {
  16287. var bbb = parseInt(this.taskCount) + 1;
  16288. if (
  16289. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16290. .isLook &&
  16291. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  16292. (this.courseDetail.course_teacher &&
  16293. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16294. this.IsLookOpen
  16295. ) {
  16296. this.$message.error(this.lang.ssTaskLocked);
  16297. return;
  16298. }
  16299. this.taskCount++;
  16300. if (this.IsLookOpen) {
  16301. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16302. this.taskCount
  16303. ].isLook = true;
  16304. this.addCourseState(3);
  16305. }
  16306. }
  16307. } else {
  16308. if (
  16309. this.taskCount ==
  16310. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16311. 1
  16312. ) {
  16313. var bbb = parseInt(this.courseType) + 1;
  16314. if (
  16315. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16316. this.courseDetail.userid != this.userid &&
  16317. (!this.courseDetail.course_teacher ||
  16318. (this.courseDetail.course_teacher &&
  16319. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16320. this.IsLookOpen
  16321. ) {
  16322. this.$message.error(this.lang.ssTaskLocked);
  16323. return;
  16324. }
  16325. this.navList[this.courseType].isOpen = false;
  16326. this.courseType++;
  16327. this.taskCount = 0;
  16328. this.navList[this.courseType].isOpen = true;
  16329. } else {
  16330. var bbb = parseInt(this.taskCount) + 1;
  16331. if (
  16332. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16333. .isLook &&
  16334. this.courseDetail.userid != this.userid &&
  16335. (!this.courseDetail.course_teacher ||
  16336. (this.courseDetail.course_teacher &&
  16337. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16338. this.IsLookOpen
  16339. ) {
  16340. this.$message.error(this.lang.ssTaskLocked);
  16341. return;
  16342. }
  16343. this.taskCount++;
  16344. }
  16345. if (this.IsLookOpen) {
  16346. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16347. this.taskCount
  16348. ].isLook = true;
  16349. this.addCourseState(3);
  16350. }
  16351. }
  16352. // if (
  16353. // this.taskCount ==
  16354. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16355. // ) {
  16356. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16357. // } else {
  16358. // this.taskCount++;
  16359. // }
  16360. }
  16361. document.scrollingElement.scrollTop = 0;
  16362. this.showType = 7;
  16363. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16364. // if (this.vedio[this.taskCount].length > 0) {
  16365. // var a =
  16366. // document.getElementsByClassName("box_course")[this.taskCount]
  16367. // .offsetHeight;
  16368. // document.getElementsByClassName("vedioList")[
  16369. // this.taskCount
  16370. // ].style.height = a + "px";
  16371. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16372. // a - 40 + "px";
  16373. // }
  16374. this.isNoHomeWork = false;
  16375. (this.studyJuri = [
  16376. {
  16377. content: "",
  16378. cover: [],
  16379. upVedio: [],
  16380. upFile: [],
  16381. },
  16382. ]),
  16383. (this.radio = []);
  16384. this.isClickNav = "";
  16385. this.selectPz();
  16386. this.getHomeWork();
  16387. this.getCourseDetail(2);
  16388. this.$forceUpdate();
  16389. if ((this.courseDetail.userid == this.userid ||
  16390. (this.courseDetail.course_teacher &&
  16391. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  16392. this.setCTask();
  16393. }
  16394. },
  16395. openTask(s, n, i,ctype) {
  16396. // 这段代码没用开启了跟随学生侧边栏会隐藏掉
  16397. if (this.IsFollow && this.tType == 2) {
  16398. this.$message.error(this.lang.ssFollowModeOn);
  16399. return;
  16400. }
  16401. if (this.IsLookOpen &&
  16402. this.courseDetail.userid != this.userid &&
  16403. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  16404. if (
  16405. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16406. this.courseDetail.userid != this.userid &&
  16407. (!this.courseDetail.course_teacher ||
  16408. (this.courseDetail.course_teacher &&
  16409. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16410. ) {
  16411. this.$message.error(this.lang.ssTaskLocked);
  16412. return;
  16413. }
  16414. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16415. if (
  16416. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16417. .isLook
  16418. ) {
  16419. this.$message.error(this.lang.ssPrevTaskLocked);
  16420. return;
  16421. }
  16422. } else if (s > this.courseType) {
  16423. if (n > 0) {
  16424. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16425. this.$message.error(this.lang.ssPrevTaskLocked);
  16426. return;
  16427. }
  16428. } else {
  16429. if (
  16430. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16431. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16432. ].isLook
  16433. ) {
  16434. this.$message.error(this.lang.ssPrevTaskLocked);
  16435. return;
  16436. }
  16437. }
  16438. }
  16439. }
  16440. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  16441. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16442. return;
  16443. }
  16444. let flag = this.courseType==s;
  16445. this.courseType = s;
  16446. this.navId = i;
  16447. this.taskCount = n;
  16448. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  16449. if(ctype == 2){
  16450. this.navList[s].task[n].isOpen = true
  16451. }else{
  16452. this.navList[this.courseType].task[this.taskCount].isOpen =
  16453. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16454. }
  16455. if (this.IsLookOpen) {
  16456. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16457. this.taskCount
  16458. ].isLook = true;
  16459. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  16460. this.addCourseState(3,yym);
  16461. }
  16462. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16463. this.isCloseList[ci].isClose = 0;
  16464. this.isCloseList[ci].isCloseBoolean = false;
  16465. this.$nextTick(()=>{
  16466. setTimeout(()=>{
  16467. setTimeout(()=>{
  16468. this.panToolHeight('tool-'+ci);
  16469. }, 0)
  16470. }, 0)
  16471. })
  16472. }
  16473. this.showType = 0;
  16474. this.isNoHomeWork = false;
  16475. (this.studyJuri = [
  16476. {
  16477. content: "",
  16478. cover: [],
  16479. upVedio: [],
  16480. upFile: [],
  16481. },
  16482. ]),
  16483. (this.radio = []);
  16484. document.scrollingElement.scrollTop = 0;
  16485. // setTimeout(() => {
  16486. // let a = document.getElementById(i);
  16487. // if (a.offsetTop - 110 == 0) {
  16488. // window.scrollTo(0, 0);
  16489. // } else {
  16490. // window.scrollTo(0, a.offsetTop);
  16491. // }
  16492. // }, 0);
  16493. for (var z = 0; z < this.navList.length; z++) {
  16494. for (var q = 0; q < this.navList[z].task.length; q++) {
  16495. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16496. this.navList[z].task[q].tool[w].isTool = false;
  16497. }
  16498. }
  16499. }
  16500. this.selectPz();
  16501. this.getHomeWork();
  16502. this.getCourseDetail(2);
  16503. if ((this.courseDetail.userid == this.userid ||
  16504. (this.courseDetail.course_teacher &&
  16505. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  16506. this.setCTask();
  16507. }
  16508. if(flag){
  16509. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16510. }else{
  16511. this.insertMemorandum(`进入<span class="variable">阶段${s+1}${this.navList[s].dyName?':'+this.navList[s].dyName:''}</span>→<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16512. }
  16513. },
  16514. get(i) {
  16515. if (this.IsFollow && this.tType == 2) {
  16516. this.$message.error(this.lang.ssFollowModeOn);
  16517. return;
  16518. }
  16519. // for(var k=0;k<this.navList.length;k++){
  16520. // this.navList[k].isOpen = false;
  16521. // }
  16522. // this.navList[i].isOpen = true;
  16523. let a = this.navList[i].isOpen
  16524. this.navList[i].isOpen = !this.navList[i].isOpen;
  16525. this.$forceUpdate()
  16526. if (this.navList[i].isOpen) {
  16527. this.openTask(i, 0, (i + "-0"),2);
  16528. }
  16529. },
  16530. addQuestion() {
  16531. this.answerList.push({
  16532. answerTitle: this.answerQ,
  16533. answer: this.questionAnswer,
  16534. });
  16535. let params = [
  16536. {
  16537. uid: this.userid,
  16538. cid: this.id,
  16539. stage: this.courseType,
  16540. task: this.taskCount,
  16541. tool: this.toolindex,
  16542. content: JSON.stringify(this.answerList),
  16543. type: 3,
  16544. },
  16545. ];
  16546. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  16547. this.homeWorkLoading = true
  16548. this.ajax
  16549. .post(this.$store.state.api + "addCourseWorks", params)
  16550. .then((res) => {
  16551. this.$message({
  16552. message: this.lang.ssSubmitSuccess,
  16553. type: "success",
  16554. });
  16555. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  16556. setTimeout(() => {
  16557. this.homeWorkLoading = false
  16558. }, 500);
  16559. this.answerList = [];
  16560. this.answerDialogVisible = false;
  16561. this.selectStudent();
  16562. this.selectSWorks();
  16563. this.selectSLook();
  16564. })
  16565. .catch((err) => {
  16566. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  16567. setTimeout(() => {
  16568. this.homeWorkLoading = false
  16569. }, 500);
  16570. this.$message.error(this.lang.ssSubmitFailed);
  16571. console.error(err);
  16572. });
  16573. },
  16574. addQuestionTeacher() {
  16575. this.answerList.push({
  16576. answerTitle: this.answerQ,
  16577. answer: this.questionAnswer,
  16578. });
  16579. let params = [
  16580. {
  16581. uid: this.sStudent.userid,
  16582. cid: this.id,
  16583. stage: this.courseType,
  16584. task: this.taskCount,
  16585. tool: this.toolindex,
  16586. content: JSON.stringify(this.answerList),
  16587. type: 3,
  16588. ateacher: this.userid,
  16589. },
  16590. ];
  16591. this.ajax
  16592. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16593. .then((res) => {
  16594. this.$message({
  16595. message: this.lang.ssSubmitSuccess,
  16596. type: "success",
  16597. });
  16598. this.answerList = [];
  16599. this.questionAnswer = "";
  16600. this.answerDialogVisibleTeacher = false;
  16601. this.selectStudent();
  16602. this.selectSWorks();
  16603. this.selectSLook();
  16604. })
  16605. .catch((err) => {
  16606. this.$message.error(this.lang.ssSubmitFailed);
  16607. console.error(err);
  16608. });
  16609. },
  16610. refreshCourse() {
  16611. // window.location.reload();
  16612. this.navList = [];
  16613. this.getCourseDetail(1);
  16614. },
  16615. getCourseDetail(type, gindex) {
  16616. let loading;
  16617. if (type != 2) {
  16618. loading = this.$loading.service({
  16619. background: "rgba(255, 255, 255, 0.7)",
  16620. target: document.querySelector(".student_table"),
  16621. });
  16622. }
  16623. this.downLoading = false
  16624. // this.navList[0].isOpen = false;
  16625. // this.navList[this.courseType].isOpen = true;
  16626. // this.courseType = this.courseTypeLine;
  16627. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16628. let params = {
  16629. courseId: this.id,
  16630. };
  16631. this.ajax
  16632. .get(this.$store.state.api + "selectCourseDetail3", params)
  16633. .then((res) => {
  16634. if ((this.courseDetail.userid == this.userid ||
  16635. (this.courseDetail.course_teacher &&
  16636. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  16637. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  16638. }
  16639. if (type != 2) {
  16640. loading.close();
  16641. if (
  16642. this.courseType >
  16643. JSON.parse(res.data[0][0].chapters).length - 1
  16644. ) {
  16645. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16646. }
  16647. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16648. .chapterInfo[0].taskJson;
  16649. var b = [
  16650. "AVI",
  16651. "NAVI",
  16652. "MPEG",
  16653. "ASF",
  16654. "MOV",
  16655. "WMV",
  16656. "3GP",
  16657. "RM",
  16658. "RMVB",
  16659. "FLV",
  16660. "F4V",
  16661. "H.264",
  16662. "H.265",
  16663. "REAL VIDEO",
  16664. "MKV",
  16665. "WebM",
  16666. "HDDVD",
  16667. "MP4",
  16668. "MPG",
  16669. "M4V",
  16670. "MGV",
  16671. "OGV",
  16672. "QTM",
  16673. "STR",
  16674. "AMC",
  16675. "DVX",
  16676. "EVO",
  16677. "DAT",
  16678. "OGG",
  16679. "OGM",
  16680. "MP3",
  16681. ];
  16682. let _chapterData = [];
  16683. for (var i = 0; i < a.length; i++) {
  16684. var c = a[i].chapterData;
  16685. this.vedio[i] = [];
  16686. this.textList[i] = [];
  16687. this.lineList[i] = [];
  16688. this.chapToolList[i] = [];
  16689. this.file[i] = [];
  16690. this.fileC[i] = [];
  16691. _chapterData[i] = c.filter((el) => {
  16692. return el.type != 12;
  16693. });
  16694. this.fileC[i] = c.filter((el) => {
  16695. return el.type == 12;
  16696. });
  16697. if (this.tType == 2) {
  16698. if (this.fileC[i].length) {
  16699. let yym1 = this.fileC[i].filter(e=>{
  16700. if(!converter(e.name).includes(converter(this.lang.ssTeachingPlan))){
  16701. return e
  16702. }
  16703. })
  16704. this.fileC[i] = yym1
  16705. }
  16706. }
  16707. // else if (c[j].type == 12) {
  16708. // this.fileC[i].push(c[j]);
  16709. // }
  16710. for (var j = 0; j < c.length; j++) {
  16711. if (c[j].type == 7) {
  16712. this.chapToolList[i].push(c[j]);
  16713. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  16714. this.lineList[i].push(c[j]);
  16715. } else if (c[j].type == 6) {
  16716. this.textList[i].push(c[j]);
  16717. } else {
  16718. if (
  16719. b.indexOf(
  16720. c[j].url
  16721. .split(".")
  16722. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16723. ) != -1
  16724. ) {
  16725. this.vedio[i].push(c[j]);
  16726. } else {
  16727. this.file[i].push(c[j]);
  16728. }
  16729. }
  16730. }
  16731. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16732. d.sources[0].src =
  16733. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16734. this.playerO[i] = d;
  16735. }
  16736. this.courseDetail = res.data[0][0];
  16737. if(this.tType == 2){
  16738. this.tcid = this.arrayToArray(
  16739. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16740. this.classId ? this.classId.split(",") : []
  16741. ).join(",");
  16742. }else{
  16743. this.tcid = this.arrayToArray(
  16744. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16745. this.tcid2 ? this.tcid2.split(",") : []
  16746. ).join(",");
  16747. }
  16748. this.evalua = res.data[0][0].evaId;
  16749. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16750. this.courseType
  16751. ];
  16752. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16753. if (this.tcid && res.data[1].length) {
  16754. let _inviteA = [];
  16755. for (var ik = 0; ik < res.data[1].length; ik++) {
  16756. _inviteA.push({
  16757. cid: res.data[1][ik].classid,
  16758. ic: res.data[1][ik].code,
  16759. });
  16760. }
  16761. for (var ik = 0; ik < _inviteA.length; ik++) {
  16762. if (
  16763. this.arrayToArray(
  16764. _inviteA[ik].cid.split(","),
  16765. this.tcid.split(",")
  16766. ).length
  16767. ) {
  16768. this.inviteCode = _inviteA[ik].ic;
  16769. break;
  16770. }
  16771. }
  16772. }
  16773. for (var l = 0; l < this.chapInfoList.length; l++) {
  16774. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16775. for (var m = 0; m < w.length; m++) {
  16776. w[m].id = l + "-" + m;
  16777. }
  16778. }
  16779. if (
  16780. _chapterData[this.taskCount].length &&
  16781. _chapterData[this.taskCount][0].type == 2
  16782. ) {
  16783. this.showType = 0;
  16784. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16785. } else {
  16786. if (_chapterData[this.taskCount].length > 0) {
  16787. let _url = _chapterData[this.taskCount][0].url;
  16788. if (
  16789. _chapterData[this.taskCount][0].type == 8 ||
  16790. _chapterData[this.taskCount][0].type == 14 ||
  16791. _chapterData[this.taskCount][0].type == 15
  16792. ) {
  16793. this.showType = 2;
  16794. if (
  16795. _url.indexOf("https://") == -1 &&
  16796. _url.indexOf("http://") == -1
  16797. ) {
  16798. _url = "https://" + _url;
  16799. }
  16800. this.pptImgUrl1 = _url;
  16801. } else if (_chapterData[this.taskCount][0].type == 3) {
  16802. if (
  16803. _url
  16804. .split(".")
  16805. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16806. ) {
  16807. this.showType = 3;
  16808. this.pptImgUrl1 = _url;
  16809. } else if (
  16810. this.isAssetTypeAnImage(
  16811. _url
  16812. .split(".")
  16813. [_url.split(".").length - 1].toLocaleLowerCase()
  16814. )
  16815. ) {
  16816. this.showType = 4;
  16817. this.pptImgUrl1 = _url;
  16818. } else {
  16819. this.showType = 2;
  16820. this.pptImgUrl1 =
  16821. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16822. encodeURIComponent(_url);
  16823. }
  16824. } else if (_chapterData[this.taskCount][0].type == 13) {
  16825. this.showType = 4;
  16826. this.pptImgUrl1 = _url;
  16827. } else if (_chapterData[this.taskCount][0].type == 6) {
  16828. this.showType = 1;
  16829. this.text = this.textList[this.taskCount][0];
  16830. } else if (_chapterData[this.taskCount][0].type == 16) {
  16831. this.showType = 16;
  16832. this.pptImgUrl1 = _url;
  16833. } else if (_chapterData[this.taskCount][0].type == 17) {
  16834. this.showType = 16;
  16835. this.pptImgUrl1 = _url;
  16836. }
  16837. }
  16838. }
  16839. this.isClickNav = 0;
  16840. if (
  16841. !_chapterData[this.taskCount].length ||
  16842. _chapterData[this.taskCount][0].type == 12
  16843. ) {
  16844. this.isClickNav = "";
  16845. this.showType = "";
  16846. }
  16847. if (this.tType == 2) {
  16848. _chapterData.forEach((e,i)=>{
  16849. if (e.length) {
  16850. let yym = e.filter(k=>{
  16851. if(!converter(k.name).includes(converter(this.lang.ssTeachingPlan))){
  16852. return k
  16853. }
  16854. })
  16855. _chapterData[i] = yym
  16856. }
  16857. })
  16858. }
  16859. this.vChapterData = _chapterData;
  16860. } else {
  16861. this.showType = 0;
  16862. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16863. .chapterInfo[0].taskJson;
  16864. var b = [
  16865. "AVI",
  16866. "NAVI",
  16867. "MPEG",
  16868. "ASF",
  16869. "MOV",
  16870. "WMV",
  16871. "3GP",
  16872. "RM",
  16873. "RMVB",
  16874. "FLV",
  16875. "F4V",
  16876. "H.264",
  16877. "H.265",
  16878. "REAL VIDEO",
  16879. "MKV",
  16880. "WebM",
  16881. "HDDVD",
  16882. "MP4",
  16883. "MPG",
  16884. "M4V",
  16885. "MGV",
  16886. "OGV",
  16887. "QTM",
  16888. "STR",
  16889. "AMC",
  16890. "DVX",
  16891. "EVO",
  16892. "DAT",
  16893. "OGG",
  16894. "OGM",
  16895. "MP3",
  16896. ];
  16897. let _chapterData = [];
  16898. for (var i = 0; i < a.length; i++) {
  16899. var c = a[i].chapterData;
  16900. this.vedio[i] = [];
  16901. this.textList[i] = [];
  16902. this.lineList[i] = [];
  16903. this.chapToolList[i] = [];
  16904. this.file[i] = [];
  16905. this.fileC[i] = [];
  16906. _chapterData[i] = c.filter((el) => {
  16907. return el.type != 12;
  16908. });
  16909. this.fileC[i] = c.filter((el) => {
  16910. return el.type == 12;
  16911. });
  16912. if (this.tType == 2) {
  16913. if (this.fileC[i].length) {
  16914. let yym1 = this.fileC[i].filter(e=>{
  16915. if(!converter(e.name).includes(converter(this.lang.ssTeachingPlan))){
  16916. return e
  16917. }
  16918. })
  16919. this.fileC[i] = yym1
  16920. }
  16921. }
  16922. for (var j = 0; j < c.length; j++) {
  16923. if (c[j].type == 7) {
  16924. this.chapToolList[i].push(c[j]);
  16925. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  16926. this.lineList[i].push(c[j]);
  16927. } else if (c[j].type == 6) {
  16928. this.textList[i].push(c[j]);
  16929. } else {
  16930. if (
  16931. b.indexOf(
  16932. c[j].url
  16933. .split(".")
  16934. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16935. ) != -1
  16936. ) {
  16937. this.vedio[i].push(c[j]);
  16938. } else {
  16939. this.file[i].push(c[j]);
  16940. }
  16941. }
  16942. }
  16943. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16944. d.sources[0].src =
  16945. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16946. this.playerO[i] = d;
  16947. }
  16948. if (
  16949. _chapterData[this.taskCount].length &&
  16950. _chapterData[this.taskCount][0].type == 2
  16951. ) {
  16952. this.showType = 0;
  16953. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16954. } else {
  16955. if (_chapterData[this.taskCount].length > 0) {
  16956. let _url = _chapterData[this.taskCount][0].url;
  16957. if (
  16958. _chapterData[this.taskCount][0].type == 8 ||
  16959. _chapterData[this.taskCount][0].type == 14 ||
  16960. _chapterData[this.taskCount][0].type == 15
  16961. ) {
  16962. this.showType = 2;
  16963. if (
  16964. _url.indexOf("https://") == -1 &&
  16965. _url.indexOf("http://") == -1
  16966. ) {
  16967. _url = "https://" + _url;
  16968. }
  16969. this.pptImgUrl1 = _url;
  16970. } else if (_chapterData[this.taskCount][0].type == 3) {
  16971. if (
  16972. _url
  16973. .split(".")
  16974. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16975. ) {
  16976. this.showType = 3;
  16977. this.pptImgUrl1 = _url;
  16978. } else if (
  16979. this.isAssetTypeAnImage(
  16980. _url
  16981. .split(".")
  16982. [_url.split(".").length - 1].toLocaleLowerCase()
  16983. )
  16984. ) {
  16985. this.showType = 4;
  16986. this.pptImgUrl1 = _url;
  16987. } else {
  16988. this.showType = 2;
  16989. this.pptImgUrl1 =
  16990. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16991. encodeURIComponent(_url);
  16992. }
  16993. } else if (_chapterData[this.taskCount][0].type == 13) {
  16994. this.showType = 4;
  16995. this.pptImgUrl1 = _url;
  16996. } else if (_chapterData[this.taskCount][0].type == 6) {
  16997. this.showType = 1;
  16998. this.text = this.textList[this.taskCount][0];
  16999. } else if (_chapterData[this.taskCount][0].type == 16) {
  17000. this.showType = 16;
  17001. this.pptImgUrl1 = _url;
  17002. } else if (_chapterData[this.taskCount][0].type == 17) {
  17003. this.showType = 16;
  17004. this.pptImgUrl1 = _url;
  17005. }
  17006. }
  17007. }
  17008. this.isClickNav = 0;
  17009. if (
  17010. !_chapterData[this.taskCount].length ||
  17011. _chapterData[this.taskCount][0].type == 12
  17012. ) {
  17013. this.isClickNav = "";
  17014. this.showType = "";
  17015. }
  17016. console.log('_chapterData66666',_chapterData);
  17017. if (this.tType == 2) {
  17018. _chapterData.forEach((e,i)=>{
  17019. if (e.length) {
  17020. let yym = e.filter(k=>{
  17021. if(!converter(k.name).includes(converter(this.lang.ssTeachingPlan))){
  17022. return k
  17023. }
  17024. })
  17025. _chapterData[i] = yym
  17026. }
  17027. })
  17028. }
  17029. this.vChapterData = _chapterData;
  17030. this.$forceUpdate();
  17031. }
  17032. // else {
  17033. // this.courseDetail = res.data[0][0];
  17034. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17035. // }
  17036. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  17037. if (type == 10) {
  17038. console.log('this.courseDetail.userid',this.courseDetail.userid);
  17039. console.log('this.userid',this.userid);
  17040. if (this.courseDetail.userid == this.userid) {
  17041. // 开局关闭学生查看内容
  17042. this.StulookMode(true)
  17043. // 开局打开跟随模式
  17044. this.followingMode(true)
  17045. }
  17046. }
  17047. let _this = this;
  17048. if (_this.timer) {
  17049. clearInterval(_this.timer);
  17050. _this.timer = null;
  17051. }
  17052. if (_this.tcid) {
  17053. _this.getCourseGroup(gindex);
  17054. } else {
  17055. _this.selectSWorks(gindex);
  17056. }
  17057. _this.selectStudent();
  17058. _this.selectSLook();
  17059. _this.getPick();
  17060. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17061. // _this.setCTask();
  17062. // }
  17063. if (_this.dialogVisibleGroup) {
  17064. _this.groupJson =
  17065. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17066. _this.taskCount
  17067. ].toolChoose[_this.toolindex].groupJson;
  17068. }
  17069. _this.$nextTick(() => {
  17070. setTimeout(() => {
  17071. _this.checkEva();
  17072. }, 1000);
  17073. });
  17074. _this.timer = setInterval(function () {
  17075. // _this.getCourseDetail(2);
  17076. if (_this.tcid) {
  17077. _this.getCourseGroup();
  17078. } else {
  17079. _this.selectSWorks();
  17080. }
  17081. _this.selectStudent();
  17082. _this.selectSLook();
  17083. _this.getPick();
  17084. // _this.getSplitScreenData();
  17085. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17086. // _this.setCTask();
  17087. // }
  17088. if (_this.dialogVisibleGroup) {
  17089. _this.groupJson =
  17090. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17091. _this.taskCount
  17092. ].toolChoose[_this.toolindex].groupJson;
  17093. }
  17094. if (_this.tType == 4 || _this.ispzType == 4) {
  17095. _this.selectPz();
  17096. }
  17097. }, 5000);
  17098. if (_this.timer2 == null) {
  17099. _this.timer2 = setInterval(()=> {
  17100. if (_this.$region != 'hk') {
  17101. _this.getSplitScreenData();//获取分屏数据
  17102. }
  17103. }, 5000);
  17104. }
  17105. _this.$nextTick(function () {
  17106. setTimeout(() => {
  17107. const element = document.getElementsByClassName("pb_body")[0];
  17108. if (element) {
  17109. element.style.minHeight = 'unset'
  17110. // 或者:element.style.removeProperty("min-height");
  17111. }
  17112. // var a =
  17113. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17114. // document.getElementsByClassName("vedioList")[0].style.height =
  17115. // a + "px";
  17116. // document.getElementsByClassName("navBox")[0].style.height =
  17117. // a - 40 + "px";
  17118. // if (_this.vedio[_this.taskCount].length > 0) {
  17119. // _this.vedioTime = [];
  17120. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17121. // _this.vedioTime[i] = document.getElementsByClassName(
  17122. // "vjs-duration-display"
  17123. // )[i].textContent;
  17124. // }
  17125. // }
  17126. }, 1000);
  17127. });
  17128. })
  17129. .catch((err) => {
  17130. loading.close();
  17131. console.error(err);
  17132. });
  17133. },
  17134. getCourseGroup(gindex) {
  17135. if(this.getCourseGroupLoading) return
  17136. this.getCourseGroupLoading = true
  17137. let params = {
  17138. cid: this.id,
  17139. classid: this.tcid ? this.tcid : "1",
  17140. };
  17141. this.ajax
  17142. .get(this.$store.state.api + "getCourseGroup", params)
  17143. .then((res) => {
  17144. if (res.data && res.data[0].length) {
  17145. if (!this.isGroup) {
  17146. let courseGroup = JSON.parse(res.data[0][0].group);
  17147. courseGroup.group = courseGroup.group.filter((el) => {
  17148. el.works = [];
  17149. return el;
  17150. });
  17151. if (courseGroup.isopen == 2) {
  17152. this.isGroup = false;
  17153. this.selectSWorks(gindex);
  17154. return;
  17155. }
  17156. this.courseGroup = courseGroup;
  17157. let groupPerson = res.data[1];
  17158. let group = JSON.parse(res.data[0][0].group).group;
  17159. let courseGroupStudent = {};
  17160. let courseGroupStudentUid = {};
  17161. for (var i = 0; i < group.length; i++) {
  17162. courseGroupStudent[group[i].id] = [];
  17163. courseGroupStudentUid[group[i].id] = [];
  17164. for (var j = 0; j < groupPerson.length; j++) {
  17165. if (groupPerson[j].groupCid == group[i].id) {
  17166. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17167. courseGroupStudentUid[group[i].id].push(
  17168. groupPerson[j].userid
  17169. );
  17170. }
  17171. }
  17172. }
  17173. this.courseGroupStudent = courseGroupStudent;
  17174. this.courseGroupStudentUid = courseGroupStudentUid;
  17175. }
  17176. if (this.courseGroup.isopen == 2) {
  17177. this.isGroup = false;
  17178. } else {
  17179. this.isGroup = true;
  17180. }
  17181. this.selectSWorks(gindex);
  17182. } else {
  17183. this.selectSWorks(gindex);
  17184. this.isGroup = false;
  17185. }
  17186. this.getCourseGroupLoading = false
  17187. })
  17188. .catch((err) => {
  17189. this.getCourseGroupLoading = false
  17190. // this.$message.error(this.lang.ssNetworkPoor);
  17191. console.error(err);
  17192. });
  17193. },
  17194. setOperationTime() {
  17195. let _this = this;
  17196. if (_this.opertimer) {
  17197. clearInterval(_this.opertimer);
  17198. _this.opertimer = null;
  17199. }
  17200. _this.opertimer = setInterval(() => {
  17201. _this.setoTime("600");
  17202. }, 600000);
  17203. },
  17204. async setoTime(time) {
  17205. this.startTime = await this.getServerTime()
  17206. this.doSyncClassData();
  17207. let params = [
  17208. {
  17209. uid: this.userid,
  17210. cid: this.id + (this.tcid2 || ''),
  17211. type: "2",
  17212. time: time,
  17213. },
  17214. ];
  17215. this.ajax
  17216. .post(this.$store.state.api + "addOperationTimeT2", params)
  17217. .then((res) => {})
  17218. .catch((err) => {
  17219. console.error(err);
  17220. });
  17221. },
  17222. addPz(type, content) {
  17223. if (type == "1" && this.pzConText == "") {
  17224. this.$message.error(this.lang.ssCommentEmpty);
  17225. return;
  17226. }
  17227. let params = [
  17228. {
  17229. cid: this.id,
  17230. uid: this.userid,
  17231. s: this.courseType,
  17232. t: this.taskCount,
  17233. c: type == "1" ? this.pzConText : content,
  17234. type: type,
  17235. },
  17236. ];
  17237. this.ajax
  17238. .post(this.$store.state.api + "addPz2", params)
  17239. .then((res) => {
  17240. this.$message({
  17241. message: this.lang.ssAddSuccess,
  17242. type: "success",
  17243. });
  17244. this.pzConText = "";
  17245. this.addPzDialog = false;
  17246. this.selectPz();
  17247. if(this.tType!=2){
  17248. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17249. }
  17250. })
  17251. .catch((err) => {
  17252. this.$message.error(this.lang.ssAddFailed);
  17253. console.error(err);
  17254. });
  17255. },
  17256. setReplyIndex(id, i) {
  17257. this.replyIndex = i;
  17258. this.replyPid = id;
  17259. this.replyDialogVisible = true;
  17260. },
  17261. addHf() {
  17262. if (this.reply == "") {
  17263. this.$message.error(this.lang.ssReplyEmpty);
  17264. return;
  17265. }
  17266. let params = [
  17267. {
  17268. cid: this.id,
  17269. uid: this.userid,
  17270. s: this.courseType,
  17271. t: this.taskCount,
  17272. type: "1",
  17273. ct: 2,
  17274. pid: this.replyPid,
  17275. c: this.reply,
  17276. },
  17277. ];
  17278. this.ajax
  17279. .post(this.$store.state.api + "addHf", params)
  17280. .then((res) => {
  17281. this.reply = "";
  17282. this.$message({
  17283. message: this.lang.ssReplySuccess,
  17284. type: "success",
  17285. });
  17286. this.replyDialogVisible = false;
  17287. this.selectPz();
  17288. })
  17289. .catch((err) => {
  17290. this.$message.error(this.lang.ssReplyFailed);
  17291. console.error(err);
  17292. });
  17293. },
  17294. deletePz(id) {
  17295. this.$confirm(this.lang.ssConfirmDeleteComment, this.lang.ssPrompt, {
  17296. confirmButtonText: this.lang.ssConfirm,
  17297. cancelButtonText: this.lang.ssCancel,
  17298. type: "warning",
  17299. })
  17300. .then(() => {
  17301. let params = [
  17302. {
  17303. id: id,
  17304. },
  17305. ];
  17306. this.ajax
  17307. .post(this.$store.state.api + "deletePz", params)
  17308. .then((res) => {
  17309. this.$message({
  17310. message: this.lang.ssDeleteSuccess,
  17311. type: "success",
  17312. });
  17313. this.selectPz();
  17314. })
  17315. .catch((err) => {
  17316. this.$message.error(this.lang.ssNetworkError);
  17317. console.error(err);
  17318. });
  17319. })
  17320. .catch(() => {});
  17321. },
  17322. deleteReply(id) {
  17323. this.$confirm(this.lang.ssConfirmDeleteReply, this.lang.ssPrompt, {
  17324. confirmButtonText: this.lang.ssConfirm,
  17325. cancelButtonText: this.lang.ssCancel,
  17326. type: "warning",
  17327. })
  17328. .then(() => {
  17329. let params = [
  17330. {
  17331. id: id,
  17332. },
  17333. ];
  17334. this.ajax
  17335. .post(this.$store.state.api + "deleteReply", params)
  17336. .then((res) => {
  17337. this.$message({
  17338. message: this.lang.ssDeleteSuccess,
  17339. type: "success",
  17340. });
  17341. this.selectPz();
  17342. })
  17343. .catch((err) => {
  17344. this.$message.error(this.lang.ssNetworkError);
  17345. console.error(err);
  17346. });
  17347. })
  17348. .catch(() => {});
  17349. },
  17350. setPz() {
  17351. if (this.ispzType == 4) {
  17352. this.ispzType = 0;
  17353. this.pzDialog = false;
  17354. return;
  17355. }
  17356. this.ispzType = 4;
  17357. this.pzDialog = true;
  17358. this.selectPz();
  17359. },
  17360. selectPz() {
  17361. if(this.selectPzLoading) return
  17362. this.selectPzLoading = true
  17363. let params = {
  17364. cid: this.id,
  17365. s: this.courseType,
  17366. t: this.taskCount,
  17367. type: this.pzStype,
  17368. uid: this.userid,
  17369. };
  17370. this.ajax
  17371. .get(this.$store.state.api + "selectPzListType", params)
  17372. .then((res) => {
  17373. this.pzList = res.data[0];
  17374. var a = res.data[1];
  17375. for (var i = 0; i < a.length; i++) {
  17376. for (var j = 0; j < this.pzList.length; j++) {
  17377. if (!this.pzList[j].hfList) {
  17378. this.pzList[j].hfList = [];
  17379. }
  17380. if (a[i].pid == this.pzList[j].id) {
  17381. this.pzList[j].hfList.push(a[i]);
  17382. }
  17383. }
  17384. }
  17385. this.selectPzLoading = false
  17386. })
  17387. .catch((err) => {
  17388. this.selectPzLoading = false
  17389. console.error(err);
  17390. });
  17391. },
  17392. // selectHf() {
  17393. // let params = {
  17394. // cid: this.id,
  17395. // s: this.courseType,
  17396. // t: this.taskCount,
  17397. // };
  17398. // this.ajax
  17399. // .get(this.$store.state.api + "selectHfList", params)
  17400. // .then((res) => {
  17401. // var a = res.data[0];
  17402. // for (var i = 0; i < a.length; i++) {
  17403. // for (var j = 0; j < this.pzList.length; j++) {
  17404. // if (!this.pzList[i].hfList) {
  17405. // this.pzList[i].hfList = [];
  17406. // }
  17407. // if (a[i].pid == this.pzList[j].id) {
  17408. // this.pzList[i].hfList.push(a[i]);
  17409. // }
  17410. // }
  17411. // }
  17412. // })
  17413. // .catch((err) => {
  17414. // console.error(err);
  17415. // });
  17416. // },
  17417. updateSLook() {
  17418. let params = {
  17419. sopen: this.sIsOpen == false ? 1 : 2,
  17420. cid: this.id,
  17421. };
  17422. this.ajax
  17423. .get(this.$store.state.api + "updateCourseSLook", params)
  17424. .then((res) => {
  17425. if (this.sIsOpen == true) {
  17426. this.$message({
  17427. message: this.lang.ssPermSetSuccess,
  17428. type: "success",
  17429. });
  17430. } else {
  17431. this.$message({
  17432. message: this.lang.ssPermClosedOk,
  17433. type: "success",
  17434. });
  17435. }
  17436. })
  17437. .catch((err) => {
  17438. console.error(err);
  17439. });
  17440. },
  17441. updateIsStulook(){
  17442. let params = [
  17443. {
  17444. sopen: this.IsStulook == false ? 2 : 1,
  17445. cid: this.id
  17446. }
  17447. ];
  17448. this.ajax
  17449. .post(this.$store.state.api + "updateCourseStulook", params)
  17450. .then(res => {
  17451. if (this.IsStulook == true) {
  17452. this.$message({
  17453. message: this.lang.ssStuViewPermOn,
  17454. type: "success"
  17455. });
  17456. } else {
  17457. this.$message({
  17458. message: this.lang.ssStuViewPermOff,
  17459. type: "success"
  17460. });
  17461. }
  17462. // this.setCTask();
  17463. })
  17464. .catch(err => {
  17465. console.error(err);
  17466. });
  17467. },
  17468. updateFollow() {
  17469. let params = [
  17470. {
  17471. sopen: this.IsFollow == false ? 1 : 2,
  17472. cid: this.id,
  17473. },
  17474. ];
  17475. this.ajax
  17476. .post(this.$store.state.api + "updateCourseFollow", params)
  17477. .then((res) => {
  17478. if (this.IsFollow == true) {
  17479. this.$message({
  17480. message: this.lang.ssFollowModeOn2,
  17481. type: "success",
  17482. });
  17483. } else {
  17484. this.$message({
  17485. message: this.lang.ssFollowModeOff,
  17486. type: "success",
  17487. });
  17488. }
  17489. this.setCTask();
  17490. })
  17491. .catch((err) => {
  17492. console.error(err);
  17493. });
  17494. },
  17495. setCTask() {
  17496. let params = [
  17497. {
  17498. sopen: this.courseType + "-" + this.taskCount,
  17499. cid: this.id,
  17500. },
  17501. ];
  17502. this.ajax
  17503. .post(this.$store.state.api + "updateCourseFollowC", params)
  17504. .then((res) => {})
  17505. .catch((err) => {
  17506. console.error(err);
  17507. });
  17508. },
  17509. updateLookOpen() {
  17510. let params = [
  17511. {
  17512. sopen: this.IsLookOpen == false ? 1 : 2,
  17513. cid: this.id,
  17514. },
  17515. ];
  17516. this.ajax
  17517. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17518. .then((res) => {
  17519. if (this.IsLookOpen == true) {
  17520. // if (this.courseType != 0 && this.taskCount != 0) {
  17521. // this.openTask(0, 0, "0-0");
  17522. // }
  17523. this.$message({
  17524. message: this.lang.ssPermSetSuccess,
  17525. type: "success",
  17526. });
  17527. } else {
  17528. this.$message({
  17529. message: this.lang.ssPermClosedOk,
  17530. type: "success",
  17531. });
  17532. }
  17533. this.getCourseState(2);
  17534. })
  17535. .catch((err) => {
  17536. console.error(err);
  17537. });
  17538. },
  17539. selectSLook() {
  17540. if(this.selectSLookLoading) return
  17541. this.selectSLookLoading = true
  17542. let params = {
  17543. cid: this.id,
  17544. };
  17545. this.ajax
  17546. .get(this.$store.state.api + "selectCourseSLook", params)
  17547. .then((res) => {
  17548. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17549. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17550. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17551. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  17552. if (!this.IsLookOpen) {
  17553. this.setNavList();
  17554. }else {
  17555. this.getCourseState(1);
  17556. }
  17557. if ((this.IsFollow && this.tType == 2)) {
  17558. this.setContent2(false);
  17559. let _followC = res.data[0][0].followC.split("-");
  17560. if (
  17561. this.courseType != _followC[0] ||
  17562. this.taskCount != _followC[1]
  17563. ) {
  17564. this.navList[this.courseType].isOpen = false;
  17565. this.courseType = _followC[0];
  17566. this.navList[this.courseType].isOpen = true;
  17567. this.taskCount = parseInt(_followC[1]);
  17568. this.navId = res.data[0][0].followC;
  17569. document.scrollingElement.scrollTop = 0;
  17570. this.getCourseDetail(2);
  17571. }
  17572. }
  17573. this.selectSLookLoading = false
  17574. })
  17575. .catch((err) => {
  17576. this.selectSLookLoading = false
  17577. console.error(err);
  17578. });
  17579. },
  17580. setNavList() {
  17581. if (this.navList.length == 0) {
  17582. this.navList = [];
  17583. var copyList = [];
  17584. for (var l = 0; l < this.chapInfoList.length; l++) {
  17585. var q = this.chapInfoList[l].dyName;
  17586. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17587. var e;
  17588. copyList.push({
  17589. dyName: q,
  17590. isOpen: l === 0 ? true : false,
  17591. task: [],
  17592. });
  17593. for (var r = 0; r < w.length; r++) {
  17594. e = w[r].task;
  17595. if (this.chapInfoList[l].easy == 1) {
  17596. copyList[l].task.push({
  17597. taskName: q,
  17598. id: l + "-" + r,
  17599. isLook: w[r].isLook,
  17600. isOpen: r === 0 ? true : false,
  17601. tool: [],
  17602. });
  17603. } else {
  17604. copyList[l].task.push({
  17605. taskName: e,
  17606. id: l + "-" + r,
  17607. isLook: w[r].isLook,
  17608. isOpen: r === 0 ? true : false,
  17609. tool: [],
  17610. });
  17611. }
  17612. var t = w[r].toolChoose;
  17613. for (var k = 0; k < t.length; k++) {
  17614. var tool = t[k].tool[0];
  17615. copyList[l].task[r].tool.push({
  17616. tool: tool,
  17617. isTool: false,
  17618. });
  17619. }
  17620. // this.navId = this.navId ? this.navId : l + "-" + r;
  17621. // this.navId = l + "-" + r;
  17622. }
  17623. }
  17624. this.navList = copyList;
  17625. this.navList[0].isOpen = false;
  17626. this.navList[this.courseType].isOpen = true;
  17627. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17628. } else {
  17629. this.setNavList2();
  17630. }
  17631. },
  17632. setNavList2() {
  17633. for (var l = 0; l < this.chapInfoList.length; l++) {
  17634. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17635. for (var r = 0; r < w.length; r++) {
  17636. this.navList[l].task[r].isLook = w[r].isLook;
  17637. }
  17638. }
  17639. if (
  17640. this.IsLookOpen &&
  17641. !this.navList[this.courseType].task[this.taskCount].isLook
  17642. ) {
  17643. this.openTask(0, 0, "0-0");
  17644. }
  17645. this.$forceUpdate();
  17646. },
  17647. getCourseState(type) {
  17648. let params = {
  17649. cid: this.id,
  17650. };
  17651. this.ajax
  17652. .get(this.$store.state.api + "getCourseState", params)
  17653. .then((res) => {
  17654. // if (res.data[0].length > 0) {
  17655. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  17656. // }
  17657. if (res.data[0].length > 0 && type == 1) {
  17658. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17659. this.setNavList();
  17660. this.$forceUpdate();
  17661. } else if (res.data[0].length > 0 && type == 2) {
  17662. this.addCourseState(2);
  17663. } else {
  17664. // this.addCourseState(1);
  17665. }
  17666. })
  17667. .catch((err) => {
  17668. console.error(err);
  17669. });
  17670. },
  17671. addCourseState(type,val = '') {
  17672. let _state = val ? val : this.chapInfoList;
  17673. // this.courseType this.taskCount
  17674. if (type == 1 || type == 2) {
  17675. for (var i = 0; i < _state.length; i++) {
  17676. let el = _state[i].chapterInfo[0].taskJson;
  17677. for (var j = 0; j < el.length; j++) {
  17678. // if (i == 0 && j == 0) {
  17679. // el[j].isLook = true;
  17680. // } else {
  17681. // el[j].isLook = false;
  17682. // }
  17683. if (
  17684. this.courseType > i ||
  17685. (this.courseType == i && this.taskCount + 1 > j)
  17686. ) {
  17687. el[j].isLook = true;
  17688. } else {
  17689. el[j].isLook = false;
  17690. }
  17691. }
  17692. }
  17693. }
  17694. let params = [
  17695. {
  17696. cid: this.id,
  17697. state: JSON.stringify(_state),
  17698. },
  17699. ];
  17700. // 这两个接口是一样的type无所谓了
  17701. this.ajax
  17702. .post(
  17703. this.$store.state.api +
  17704. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17705. params
  17706. )
  17707. .then((res) => {
  17708. if (this.IsLookOpen) {
  17709. this.setNavList();
  17710. }
  17711. if (type == 3 && type == 2) {
  17712. this.getCourseState(1);
  17713. }
  17714. })
  17715. .catch((err) => {
  17716. console.error(err);
  17717. });
  17718. },
  17719. getHomeWork() {
  17720. let params = {
  17721. cid: this.id,
  17722. stage: this.courseType,
  17723. task: this.taskCount,
  17724. uid: this.userid,
  17725. };
  17726. this.ajax
  17727. .get(this.$store.state.api + "selectWork", params)
  17728. .then((res) => {
  17729. if (res.data[0].length > 0) {
  17730. this.studyJuri = JSON.parse(res.data[0][0].content);
  17731. this.isNoHomeWork = true;
  17732. }
  17733. })
  17734. .catch((err) => {
  17735. console.error(err);
  17736. });
  17737. },
  17738. isAssetTypeAnImage(ext) {
  17739. return (
  17740. [
  17741. "png",
  17742. "jpg",
  17743. "jpeg",
  17744. "bmp",
  17745. "gif",
  17746. "webp",
  17747. "psd",
  17748. "svg",
  17749. "tiff",
  17750. ].indexOf(ext) !== -1
  17751. );
  17752. },
  17753. switchVideo(media) {
  17754. this.playerO = {};
  17755. this.playerOptions.poster = "";
  17756. this.playerOptions.sources[0].src = media;
  17757. this.playerO = this.playerOptions;
  17758. },
  17759. onPlayerPlay() {},
  17760. onPlayerTimeupdate(player) {
  17761. let gklog = player.cache_.currentTime; //当前播放的秒数
  17762. let a = player.cache_.duration; //视频的总时长
  17763. let gklog2 = parseInt(gklog);
  17764. // if(gklog2 == '3'){
  17765. // player.pause()
  17766. // setTimeout(()=>{
  17767. // player.currentTime(gklog2+1)
  17768. // player.play()
  17769. // },1000)
  17770. // }
  17771. console.log(" onPlayerTimeupdate!", gklog);
  17772. console.log(" onPlayerTimeupdate!", gklog2);
  17773. },
  17774. lookVedio(u, i) {
  17775. this.isClickNav = "";
  17776. // this.playerOptions.sources[0].src = u;
  17777. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17778. d.sources[0].src = u;
  17779. this.playerO[this.taskCount] = d;
  17780. this.showType = 0;
  17781. // this.isClickNav = "video" + i;
  17782. this.isClickNav = i;
  17783. this.$forceUpdate();
  17784. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17785. },
  17786. lookText(i, t) {
  17787. this.isClickNav = "";
  17788. // this.text = this.textList[i][t];
  17789. this.text = this.vChapterData[i][t];
  17790. // this.dialogVisible1 = true;
  17791. this.showType = 1;
  17792. // this.isClickNav = "text" + t;
  17793. this.isClickNav = t;
  17794. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17795. },
  17796. lookTools(i, t) {
  17797. this.chapTools = this.chapToolList[i][t];
  17798. this.dialogVisible2 = true;
  17799. },
  17800. async openFile(f,w) {
  17801. this.pptImgUrl = "";
  17802. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17803. if (
  17804. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17805. -1
  17806. ) {
  17807. let _uuurl = await this.checkLink(f);
  17808. this.pptImgUrl =
  17809. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17810. this.showPDF = false;
  17811. this.dialogVisible3 = true;
  17812. } else if (
  17813. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17814. ) {
  17815. this.pptImgUrl = f;
  17816. this.showPDF = true;
  17817. this.dialogVisible3 = true;
  17818. }
  17819. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17820. },
  17821. openTable(f) {
  17822. this.tableJson = JSON.parse(f.works);
  17823. this.dialogVisibleTable2 = true;
  17824. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17825. },
  17826. openWord(f) {
  17827. this.tableJson = JSON.parse(f.works);
  17828. this.dialogVisibleTable3 = true;
  17829. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17830. },
  17831. doUrl(url, i) {
  17832. this.isClickNav = "";
  17833. this.pptImgUrl1 = "";
  17834. this.showType = 2;
  17835. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17836. url = "https://" + url;
  17837. }
  17838. this.pptImgUrl1 = "";
  17839. this.diffKey = new Date().getTime();
  17840. setTimeout(() => {
  17841. this.pptImgUrl1 = url;
  17842. }, 500);
  17843. // this.isClickNav = "line" + i;
  17844. this.isClickNav = i;
  17845. this.$forceUpdate();
  17846. },
  17847. checkPhoto(f, i) {
  17848. this.showType = 4;
  17849. this.pptImgUrl1 = f.url;
  17850. this.isClickNav = i;
  17851. this.$forceUpdate();
  17852. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17853. },
  17854. checkHtml(f, i){
  17855. this.showType = 16;
  17856. this.pptImgUrl1 = f.url;
  17857. this.isClickNav = i;
  17858. this.$forceUpdate();
  17859. },
  17860. async downFile(f, i) {
  17861. this.isClickNav = "";
  17862. this.pptImgUrl1 = "";
  17863. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17864. if (
  17865. a.indexOf(
  17866. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17867. ) != -1
  17868. ) {
  17869. let _uuurl = await this.checkLink(f.url);
  17870. this.pptImgUrl1 =
  17871. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17872. // this.dialogVisible3 = true;
  17873. this.showType = 2;
  17874. } else if (
  17875. this.isAssetTypeAnImage(
  17876. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17877. )
  17878. ) {
  17879. this.showType = 4;
  17880. this.pptImgUrl1 = f.url;
  17881. } else if (
  17882. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17883. "PDF"
  17884. ) {
  17885. this.pptImgUrl1 = f.url;
  17886. // this.dialogVisible3 = true;
  17887. this.showType = 3;
  17888. } else {
  17889. window.open(this.file[i].url);
  17890. }
  17891. // this.isClickNav = "word" + i;
  17892. this.isClickNav = i;
  17893. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17894. },
  17895. downFileList(i) {
  17896. window.open(this.noImgList[i].url);
  17897. },
  17898. openAddWork() {
  17899. this.dialogVisible = true;
  17900. },
  17901. addBzWorks() {
  17902. let params = [
  17903. {
  17904. uid: this.userid,
  17905. cid: this.id,
  17906. stage: this.courseType,
  17907. task: this.taskCount,
  17908. tool: this.toolindex,
  17909. content: JSON.stringify(this.eScore),
  17910. type: 6,
  17911. },
  17912. ];
  17913. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17914. this.homeWorkLoading = true
  17915. this.ajax
  17916. .post(this.$store.state.api + "addCourseWorks", params)
  17917. .then((res) => {
  17918. this.$message({
  17919. message: this.lang.ssSubmitSuccess,
  17920. type: "success",
  17921. });
  17922. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  17923. setTimeout(() => {
  17924. this.homeWorkLoading = false
  17925. }, 500);
  17926. this.eScore = { eBzText: "", eStar: [] };
  17927. this.studentEvalDialogVisible = false;
  17928. this.selectSWorks();
  17929. })
  17930. .catch((err) => {
  17931. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  17932. setTimeout(() => {
  17933. this.homeWorkLoading = false
  17934. }, 500);
  17935. this.$message.error(this.lang.ssSubmitFailed);
  17936. console.error(err);
  17937. });
  17938. },
  17939. addBzWorksTeacher() {
  17940. let params = [
  17941. {
  17942. uid: this.sStudent.userid,
  17943. cid: this.id,
  17944. stage: this.courseType,
  17945. task: this.taskCount,
  17946. tool: this.toolindex,
  17947. content: JSON.stringify(this.eScore),
  17948. type: 6,
  17949. },
  17950. ];
  17951. this.ajax
  17952. .post(this.$store.state.api + "addCourseWorks", params)
  17953. .then((res) => {
  17954. this.$message({
  17955. message: this.lang.ssSubmitSuccess,
  17956. type: "success",
  17957. });
  17958. this.eScore = { eBzText: "", eStar: [] };
  17959. this.studentEvalDialogVisibleTeacher = false;
  17960. this.selectSWorks();
  17961. })
  17962. .catch((err) => {
  17963. this.$message.error(this.lang.ssSubmitFailed);
  17964. console.error(err);
  17965. });
  17966. },
  17967. addStudentAsk() {
  17968. if (!this.radio.length) {
  17969. this.$message.error(this.lang.ssPleaseSelectOption);
  17970. return;
  17971. }
  17972. for (var i = 0; i < this.askJson.askCount; i++) {
  17973. if (
  17974. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17975. (this.radio[i] !== 0 && !this.radio[i])
  17976. ) {
  17977. this.$message.error(this.lang.ssPleaseSelectOption);
  17978. return;
  17979. }
  17980. }
  17981. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17982. let params = [
  17983. {
  17984. uid: this.userid,
  17985. cid: this.id,
  17986. stage: this.courseType,
  17987. task: this.taskCount,
  17988. tool: this.toolindex,
  17989. content: JSON.stringify(this.askList),
  17990. type: 2,
  17991. },
  17992. ];
  17993. // console.log('params',params);
  17994. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17995. this.homeWorkLoading = true
  17996. this.ajax
  17997. .post(this.$store.state.api + "addCourseWorks", params)
  17998. .then((res) => {
  17999. this.$message({
  18000. message: this.lang.ssSubmitSuccess,
  18001. type: "success",
  18002. });
  18003. setTimeout(() => {
  18004. this.homeWorkLoading = false
  18005. }, 500);
  18006. this.askList = [];
  18007. this.dialogVisible5 = false;
  18008. this.selectStudent();
  18009. this.selectSWorks();
  18010. this.selectSLook();
  18011. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18012. })
  18013. .catch((err) => {
  18014. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18015. setTimeout(() => {
  18016. this.homeWorkLoading = false
  18017. }, 500);
  18018. this.$message.error(this.lang.ssSubmitFailed);
  18019. console.error(err);
  18020. });
  18021. },
  18022. addStudentAskTeacher() {
  18023. if (!this.radio.length) {
  18024. this.$message.error(this.lang.ssPleaseSelectOption);
  18025. return;
  18026. }
  18027. for (var i = 0; i < this.askJson.askCount; i++) {
  18028. if (
  18029. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18030. (this.radio[i] !== 0 && !this.radio[i])
  18031. ) {
  18032. this.$message.error(this.lang.ssPleaseSelectOption);
  18033. return;
  18034. }
  18035. }
  18036. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18037. let params = [
  18038. {
  18039. uid: this.sStudent.userid,
  18040. cid: this.id,
  18041. stage: this.courseType,
  18042. task: this.taskCount,
  18043. tool: this.toolindex,
  18044. content: JSON.stringify(this.askList),
  18045. type: 2,
  18046. },
  18047. ];
  18048. this.ajax
  18049. .post(this.$store.state.api + "addCourseWorks", params)
  18050. .then((res) => {
  18051. this.$message({
  18052. message: this.lang.ssSubmitSuccess,
  18053. type: "success",
  18054. });
  18055. this.askList = [];
  18056. this.dialogVisible5Teacher = false;
  18057. this.selectStudent();
  18058. this.selectSWorks();
  18059. this.selectSLook();
  18060. })
  18061. .catch((err) => {
  18062. this.$message.error(this.lang.ssSubmitFailed);
  18063. console.error(err);
  18064. });
  18065. },
  18066. addStudentTest() {
  18067. if (!this.radio.length) {
  18068. this.$message.error(this.lang.ssPleaseSelectOption);
  18069. return;
  18070. }
  18071. for (var i = 0; i < this.testJson.testCount; i++) {
  18072. if (
  18073. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18074. (this.radio[i] !== 0 && !this.radio[i])
  18075. ) {
  18076. this.$message.error(this.lang.ssPleaseSelectOption);
  18077. return;
  18078. }
  18079. }
  18080. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18081. let params = [
  18082. {
  18083. uid: this.userid,
  18084. cid: this.id,
  18085. stage: this.courseType,
  18086. task: this.taskCount,
  18087. tool: this.toolindex,
  18088. content: JSON.stringify(this.askList),
  18089. type: 8,
  18090. },
  18091. ];
  18092. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  18093. this.homeWorkLoading = true
  18094. this.ajax
  18095. .post(this.$store.state.api + "addCourseWorks", params)
  18096. .then((res) => {
  18097. this.$message({
  18098. message: this.lang.ssSubmitSuccess,
  18099. type: "success",
  18100. });
  18101. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18102. setTimeout(() => {
  18103. this.homeWorkLoading = false
  18104. }, 500);
  18105. this.askList = [];
  18106. this.dialogVisibleChoice = false;
  18107. this.selectStudent();
  18108. this.selectSWorks();
  18109. this.selectSLook();
  18110. })
  18111. .catch((err) => {
  18112. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18113. setTimeout(() => {
  18114. this.homeWorkLoading = false
  18115. }, 500);
  18116. this.$message.error(this.lang.ssSubmitFailed);
  18117. console.error(err);
  18118. });
  18119. },
  18120. addStudentTestTeacher() {
  18121. if (!this.radio.length) {
  18122. this.$message.error(this.lang.ssPleaseSelectOption);
  18123. return;
  18124. }
  18125. for (var i = 0; i < this.testJson.testCount; i++) {
  18126. if (
  18127. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18128. (this.radio[i] !== 0 && !this.radio[i])
  18129. ) {
  18130. this.$message.error(this.lang.ssPleaseSelectOption);
  18131. return;
  18132. }
  18133. }
  18134. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18135. let params = [
  18136. {
  18137. uid: this.sStudent.userid,
  18138. cid: this.id,
  18139. stage: this.courseType,
  18140. task: this.taskCount,
  18141. tool: this.toolindex,
  18142. content: JSON.stringify(this.askList),
  18143. type: 8,
  18144. },
  18145. ];
  18146. this.ajax
  18147. .post(this.$store.state.api + "addCourseWorks", params)
  18148. .then((res) => {
  18149. this.$message({
  18150. message: this.lang.ssSubmitSuccess,
  18151. type: "success",
  18152. });
  18153. this.askList = [];
  18154. this.dialogVisibleChoiceTeacher = false;
  18155. this.selectStudent();
  18156. this.selectSWorks();
  18157. this.selectSLook();
  18158. })
  18159. .catch((err) => {
  18160. this.$message.error(this.lang.ssSubmitFailed);
  18161. console.error(err);
  18162. });
  18163. },
  18164. addWork() {
  18165. if (this.studyJuri[0].content == "") {
  18166. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18167. return;
  18168. } else if (this.studyJuri[0].cover.length == 0) {
  18169. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18170. return;
  18171. } else if (this.studyJuri[0].upVedio.length == 0) {
  18172. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18173. return;
  18174. }
  18175. if (this.isNoHomeWork) {
  18176. this.$confirm(
  18177. this.lang.ssAlreadySubmittedHomework,
  18178. this.lang.ssPrompt,
  18179. {
  18180. confirmButtonText: this.lang.ssConfirm,
  18181. cancelButtonText: this.lang.ssCancel,
  18182. type: "warning",
  18183. }
  18184. )
  18185. .then(() => {
  18186. let params = [
  18187. {
  18188. uid: this.userid,
  18189. cid: this.id,
  18190. stage: this.courseType,
  18191. task: this.taskCount,
  18192. content: JSON.stringify(this.studyJuri),
  18193. },
  18194. ];
  18195. this.ajax
  18196. .post(this.$store.state.api + "addWorks", params)
  18197. .then((res) => {
  18198. this.$message({
  18199. message: this.lang.ssSubmitSuccess,
  18200. type: "success",
  18201. });
  18202. this.isNoHomeWork = true;
  18203. this.dialogVisible = false;
  18204. })
  18205. .catch((err) => {
  18206. this.$message.error(this.lang.ssSubmitFailed);
  18207. console.error(err);
  18208. });
  18209. })
  18210. .catch(() => {});
  18211. } else {
  18212. let params = [
  18213. {
  18214. uid: this.userid,
  18215. cid: this.id,
  18216. stage: this.courseType,
  18217. task: this.taskCount,
  18218. content: JSON.stringify(this.studyJuri),
  18219. },
  18220. ];
  18221. this.ajax
  18222. .post(this.$store.state.api + "addWorks", params)
  18223. .then((res) => {
  18224. this.$message({
  18225. message: this.lang.ssSubmitSuccess,
  18226. type: "success",
  18227. });
  18228. this.isNoHomeWork = true;
  18229. this.dialogVisible = false;
  18230. })
  18231. .catch((err) => {
  18232. this.$message.error(this.lang.ssSubmitFailed);
  18233. console.error(err);
  18234. });
  18235. }
  18236. },
  18237. selectCount() {
  18238. let params = {
  18239. cid: this.id,
  18240. chid: this.courseType,
  18241. uid: this.userid,
  18242. };
  18243. this.ajax
  18244. .get(this.$store.state.api + "selectToolsCount", params)
  18245. .then((res) => {
  18246. for (var i = 0; i < res.data[0].length; i++) {
  18247. if (res.data[0][i].tools == 1) {
  18248. this.wbCount = res.data[0][i].count;
  18249. } else if (res.data[0][i].tools == 2) {
  18250. this.wordCount = res.data[0][i].count;
  18251. } else if (res.data[0][i].tools == 3) {
  18252. this.mindCount = res.data[0][i].count;
  18253. } else if (res.data[0][i].tools == 4) {
  18254. this.askCount = res.data[0][i].count;
  18255. } else if (res.data[0][i].tools == 6) {
  18256. this.noteCount = res.data[0][i].count;
  18257. } else if (res.data[0][i].tools == 7) {
  18258. this.mindNetWorkCount = res.data[0][i].count;
  18259. } else if (res.data[0][i].tools == 8) {
  18260. this.libraryCount = res.data[0][i].count;
  18261. } else if (res.data[0][i].tools == 16) {
  18262. this.workCount = res.data[0][i].count;
  18263. } else if (res.data[0][i].tools == 10) {
  18264. this.timeCount = res.data[0][i].count;
  18265. } else if (res.data[0][i].tools == 15) {
  18266. this.answerCount = res.data[0][i].count;
  18267. } else if (res.data[0][i].tools == 18) {
  18268. this.trainCount = res.data[0][i].count;
  18269. }
  18270. }
  18271. })
  18272. .catch((err) => {
  18273. console.error(err);
  18274. });
  18275. },
  18276. openTools(t, i, index, c, sName,id) {
  18277. var z = JSON.parse(c);
  18278. this.noteName = sName;
  18279. if (t == 4) {
  18280. this.radio = [];
  18281. this.isAnswer = false;
  18282. let b = z[0].anwer;
  18283. this.radio = b;
  18284. this.askJson = z[0].askJson;
  18285. this.isAnswer = true;
  18286. this.dialogVisible5 = true;
  18287. } else if (t == 45) {
  18288. this.radio = [];
  18289. this.isAnswer = false;
  18290. let b = z[0].anwer;
  18291. this.radio = b;
  18292. this.testJson = z[0].testJson;
  18293. this.isAnswer = true;
  18294. this.dialogVisibleChoice = true;
  18295. }else if(t == 69){
  18296. this.oldEnglishJson1 = {}
  18297. this.oldEnglishJson = {}
  18298. this.englishList1 = {}
  18299. this.newEngIndex = -1;
  18300. this.isNoUserid = false;
  18301. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18302. .toolChoose[i].englishList;
  18303. this.oldEnglishJson = z;
  18304. this.engWid = id;
  18305. this.newEnglishList = { engTitle:"",engText:"" }
  18306. this.newEnglishList1 = []
  18307. this.selectEngC(id,z);
  18308. }else if(t == 62){
  18309. this.videoType = 1;
  18310. this.videoJson = {};
  18311. this.videoJson = JSON.parse(c);
  18312. // this.videoJson =
  18313. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18314. // index
  18315. // ].toolChoose[i].videoJson;
  18316. this.dialogVisibleVideo = true;
  18317. //this.dialog
  18318. }
  18319. // else if (t == 15) {
  18320. // this.answerQ = "";
  18321. // this.questionAnswer = "";
  18322. // this.answerQ = z[0].answerTitle;
  18323. // this.questionAnswer = z[0].answer;
  18324. // this.answerDialogVisible = true;
  18325. // }
  18326. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18327. },
  18328. fastText(p, t) {
  18329. if (t == 1) {
  18330. this.commentText += p;
  18331. } else {
  18332. this.eScore.eBzText += p;
  18333. }
  18334. },
  18335. addTools(t, i, index) {
  18336. var a = 0;
  18337. // this.taskCount = index;
  18338. this.toolindex = i;
  18339. if (t == 1) {
  18340. if (this.wbCount > 0) {
  18341. this.updateCount(this.wbCount, t);
  18342. } else {
  18343. this.wbCount++;
  18344. a = this.wbCount;
  18345. this.toolsCount(a, t);
  18346. }
  18347. window.topU.postMessage(
  18348. {
  18349. tools: "1",
  18350. cid: this.id,
  18351. stage: this.courseType,
  18352. task: this.taskCount,
  18353. tool: i,
  18354. },
  18355. "*"
  18356. );
  18357. } else if (t == 2) {
  18358. if (this.wordCount > 0) {
  18359. this.updateCount(this.wordCount, t);
  18360. } else {
  18361. this.wordCount++;
  18362. a = this.wordCount;
  18363. this.toolsCount(a, t);
  18364. }
  18365. window.topU.postMessage({ tools: "2" }, "*");
  18366. } else if (t == 3) {
  18367. if (this.mindCount > 0) {
  18368. this.updateCount(this.mindCount, t);
  18369. } else {
  18370. this.mindCount++;
  18371. a = this.mindCount;
  18372. this.toolsCount(a, t);
  18373. }
  18374. window.topU.postMessage(
  18375. {
  18376. tools: "3",
  18377. cid: this.id,
  18378. stage: this.courseType,
  18379. task: this.taskCount,
  18380. tool: i,
  18381. },
  18382. "*"
  18383. );
  18384. } else if (t == 4) {
  18385. this.radio = [];
  18386. this.noteName = "";
  18387. this.isAnswer = false;
  18388. if (this.askCount > 0) {
  18389. this.updateCount(this.askCount, t);
  18390. } else {
  18391. this.askCount++;
  18392. a = this.askCount;
  18393. this.toolsCount(a, t);
  18394. }
  18395. if (!this.dialogVisible2) {
  18396. this.askJson.askJson =
  18397. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18398. index
  18399. ].toolChoose[i].askJson;
  18400. this.askJson.askTitle =
  18401. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18402. index
  18403. ].toolChoose[i].askTitle;
  18404. this.askJson.askCount =
  18405. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18406. index
  18407. ].toolChoose[i].askCount;
  18408. } else {
  18409. this.askJson.askJson = this.chapTools.askJson.askJson;
  18410. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18411. this.askJson.askCount = this.chapTools.askJson.askCount;
  18412. }
  18413. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18414. if (this.askJson.askJson[k].type == "2") {
  18415. this.radio.push([]);
  18416. } else {
  18417. this.radio.push("");
  18418. }
  18419. }
  18420. this.dialogVisible5 = true;
  18421. // window.topU.postMessage({ tools: "4" }, "*");
  18422. } else if (t == 45) {
  18423. this.noteName = "";
  18424. this.radio = [];
  18425. this.isAnswer = false;
  18426. if (this.askCount > 0) {
  18427. this.updateCount(this.askCount, t);
  18428. } else {
  18429. this.askCount++;
  18430. a = this.askCount;
  18431. this.toolsCount(a, t);
  18432. }
  18433. this.testJson =
  18434. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18435. index
  18436. ].toolChoose[i].testJson;
  18437. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18438. if (this.testJson.testJson[k].type == "2") {
  18439. this.radio.push([]);
  18440. } else {
  18441. this.radio.push("");
  18442. }
  18443. }
  18444. this.dialogVisibleChoice = true;
  18445. // window.topU.postMessage({ tools: "4" }, "*");
  18446. } else if (t == 5) {
  18447. if (this.scoreCount > 0) {
  18448. this.updateCount(this.scoreCount, t);
  18449. } else {
  18450. this.scoreCount++;
  18451. a = this.scoreCount;
  18452. this.toolsCount(a, t);
  18453. }
  18454. this.dialogVisible4 = true;
  18455. // window.topU.postMessage({ tools: "5" }, "*");
  18456. } else if (t == 6) {
  18457. if (this.noteCount > 0) {
  18458. this.updateCount(this.noteCount, t);
  18459. } else {
  18460. this.noteCount++;
  18461. a = this.noteCount;
  18462. this.toolsCount(a, t);
  18463. }
  18464. window.topU.postMessage(
  18465. {
  18466. tools: "6",
  18467. cid: this.id,
  18468. stage: this.courseType,
  18469. task: this.taskCount,
  18470. tool: i,
  18471. },
  18472. "*"
  18473. );
  18474. } else if (t == 7) {
  18475. if (this.mindNetWorkCount > 0) {
  18476. this.updateCount(this.mindNetWorkCount, t);
  18477. } else {
  18478. this.mindNetWorkCount++;
  18479. a = this.mindNetWorkCount;
  18480. this.toolsCount(a, t);
  18481. }
  18482. window.topU.postMessage(
  18483. {
  18484. tools: "7",
  18485. cid: this.id,
  18486. stage: this.courseType,
  18487. task: this.taskCount,
  18488. tool: i,
  18489. },
  18490. "*"
  18491. );
  18492. } else if (t == 16) {
  18493. if (this.workCount > 0) {
  18494. this.updateCount(this.workCount, t);
  18495. } else {
  18496. this.workCount++;
  18497. a = this.workCount;
  18498. this.toolsCount(a, t);
  18499. }
  18500. this.dialogVisible = true;
  18501. } else if (t == 50) {
  18502. if (this.tType == 2) {
  18503. this.$message.error(this.lang.ssNotSupportedForStudents);
  18504. return;
  18505. }
  18506. this.plworkFile = [];
  18507. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18508. if (!this.uploadCid) {
  18509. this.$message.error(
  18510. this.lang.ssBatchUploadNoClassPermission
  18511. );
  18512. return;
  18513. }
  18514. // this.uploadCid =
  18515. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18516. // index
  18517. // ].toolChoose[i].uploadJson[0];
  18518. this.selectUploadStudent(2);
  18519. } else if (t == 8) {
  18520. if (this.libraryCount > 0) {
  18521. this.updateCount(this.libraryCount, t);
  18522. } else {
  18523. this.libraryCount++;
  18524. a = this.libraryCount;
  18525. this.toolsCount(a, t);
  18526. }
  18527. window.topU.postMessage({ tools: "8" }, "*");
  18528. } else if (t == 17) {
  18529. if (this.libraryCount > 0) {
  18530. this.updateCount(this.libraryCount, t);
  18531. } else {
  18532. this.libraryCount++;
  18533. a = this.libraryCount;
  18534. this.toolsCount(a, t);
  18535. }
  18536. window.topU.postMessage({ tools: "17" }, "*");
  18537. } else if (t == 18) {
  18538. if (this.trainCount > 0) {
  18539. this.updateCount(this.trainCount, t);
  18540. } else {
  18541. this.trainCount++;
  18542. a = this.trainCount;
  18543. this.toolsCount(a, t);
  18544. }
  18545. window.topU.postMessage({ tools: "18" }, "*");
  18546. } else if (t == 10) {
  18547. if (this.timeCount > 0) {
  18548. this.updateCount(this.timeCount, t);
  18549. } else {
  18550. this.timeCount++;
  18551. a = this.timeCount;
  18552. this.toolsCount(a, t);
  18553. }
  18554. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18555. .taskJson[index].toolChoose[i].preTime
  18556. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18557. .toolChoose[i].preTime
  18558. : "";
  18559. this.timeDialogVisible = true;
  18560. } else if (t == 15) {
  18561. this.answerQ = "";
  18562. this.questionAnswer = "";
  18563. if (this.answerCount > 0) {
  18564. this.updateCount(this.answerCount, t);
  18565. } else {
  18566. this.answerCount++;
  18567. a = this.answerCount;
  18568. this.toolsCount(a, t);
  18569. }
  18570. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18571. .taskJson[index].toolChoose[i].answerQ
  18572. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18573. .toolChoose[i].answerQ
  18574. : "";
  18575. this.answerDialogVisible = true;
  18576. } else if (t == 21) {
  18577. window.topU.postMessage({ tools: "21" }, "*");
  18578. } else if (t == 22) {
  18579. window.topU.postMessage({ tools: "22" }, "*");
  18580. } else if (t == 23) {
  18581. window.topU.postMessage({ tools: "23" }, "*");
  18582. } else if (t == 24) {
  18583. window.topU.postMessage({ tools: "24" }, "*");
  18584. } else if (t == 25) {
  18585. window.topU.postMessage({ tools: "25" }, "*");
  18586. } else if (t == 31) {
  18587. window.topU.postMessage({ tools: "31" }, "*");
  18588. } else if (t == 28) {
  18589. window.topU.postMessage({ tools: "28" }, "*");
  18590. } else if (t == 37) {
  18591. window.topU.postMessage({ tools: "37" }, "*");
  18592. } else if (t == 38) {
  18593. window.topU.postMessage({ tools: "38" }, "*");
  18594. } else if (t == 39) {
  18595. window.topU.postMessage({ tools: "39" }, "*");
  18596. } else if (t == 32) {
  18597. window.topU.postMessage({ tools: "32" }, "*");
  18598. } else if (t == 66) {
  18599. window.topU.postMessage({ tools: "66" }, "*");
  18600. } else if (t == 67) {
  18601. window.topU.postMessage({ tools: "67" }, "*");
  18602. } else if (t == 68) {
  18603. window.topU.postMessage({ tools: "68" }, "*");
  18604. } else if (t == 57) {
  18605. // window.topU.postMessage({ tools: "57" }, "*");
  18606. window.topU.postMessage(
  18607. {
  18608. tools: "57u",
  18609. cid: this.id,
  18610. stage: this.courseType,
  18611. task: this.taskCount,
  18612. tool: i,
  18613. },
  18614. "*"
  18615. );
  18616. } else if (t == 58) {
  18617. window.topU.postMessage({ tools: "58" }, "*");
  18618. } else if (t == 59) {
  18619. window.topU.postMessage({ tools: "59" }, "*");
  18620. } else if (t == 60) {
  18621. window.topU.postMessage({ tools: "60" }, "*");
  18622. } else if (t == 61) {
  18623. window.topU.postMessage({ tools: "61" }, "*");
  18624. } else if (t == 63) {
  18625. window.topU.postMessage({ tools: "63" }, "*");
  18626. } else if (t == 71) {
  18627. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  18628. // this.$message.error("该工具不可使用");
  18629. // return
  18630. // }
  18631. window.topU.postMessage({ tools: "71" }, "*");
  18632. } else if (t == 72) {
  18633. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  18634. .taskJson[index].toolChoose[i].appJson
  18635. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18636. .toolChoose[i].appJson
  18637. : "";
  18638. if(!item || !item.url){
  18639. this.$message.error(this.lang.ssAppConnectionEmpty);
  18640. return;
  18641. }
  18642. if (!document.fullscreenElement) {
  18643. this.enterFullScreen();
  18644. }
  18645. this.$refs.appStoreC.getData(item.url,this.userid)
  18646. // window.open(item.url, "_blank");
  18647. // window.topU.postMessage({ tools: "72", data: item }, "*");
  18648. } else if (t == 69) {
  18649. if (this.worksStudent[i].length) {
  18650. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18651. if (this.userid == this.worksStudent[i][k].userid) {
  18652. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18653. break;
  18654. } else {
  18655. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18656. }
  18657. }
  18658. } else {
  18659. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18660. }
  18661. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18662. .taskJson[index].toolChoose[i].englishList
  18663. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18664. .toolChoose[i].englishList
  18665. : {};
  18666. this.englishToolIndex = i;
  18667. this.myAnList = this.myAnswerList1;
  18668. this.engDialogVisible = true;
  18669. } else if (t == 70) {
  18670. if (this.worksStudent[i].length) {
  18671. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18672. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18673. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18674. break;
  18675. } else {
  18676. this.englishVoiceJsonWork = [];
  18677. }
  18678. }
  18679. } else {
  18680. this.englishVoiceJsonWork = [];
  18681. }
  18682. let englishVoiceJson = {}
  18683. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18684. .taskJson[index].toolChoose[i].englishVoiceJson
  18685. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18686. .toolChoose[i].englishVoiceJson
  18687. : {};
  18688. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18689. this.EnglishVoiceDialog = true;
  18690. } else if (t == 65) {
  18691. if (this.tType == 2) {
  18692. this.$message.error(this.lang.ssNotSupportedForStudents);
  18693. return;
  18694. }
  18695. this.uploadCid = this.tcid;
  18696. if (!this.uploadCid) {
  18697. this.$message.error(
  18698. this.lang.ssNoClassPermission
  18699. );
  18700. return;
  18701. }
  18702. this.selectPickStudent();
  18703. } else if (t == 26) {
  18704. window.topU.postMessage(
  18705. {
  18706. tools: "26",
  18707. cid: this.id,
  18708. stage: this.courseType,
  18709. task: this.taskCount,
  18710. tool: i,
  18711. },
  18712. "*"
  18713. );
  18714. } else if (t == 40) {
  18715. if (this.evalCount > 0) {
  18716. this.updateCount(this.evalCount, t);
  18717. } else {
  18718. this.evalCount++;
  18719. a = this.evalCount;
  18720. this.toolsCount(a, t);
  18721. }
  18722. this.eScore = { eBzText: "", eStar: [] };
  18723. if (this.worksStudent[i].length) {
  18724. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18725. if (this.userid == this.worksStudent[i][k].userid) {
  18726. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18727. this.rateJson =
  18728. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18729. index
  18730. ].toolChoose[i].rateJson;
  18731. break;
  18732. } else {
  18733. this.rateJson =
  18734. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18735. index
  18736. ].toolChoose[i].rateJson;
  18737. }
  18738. }
  18739. } else {
  18740. this.rateJson =
  18741. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18742. index
  18743. ].toolChoose[i].rateJson;
  18744. }
  18745. this.isStar = false;
  18746. this.studentEvalDialogVisible = true;
  18747. } else if (t == 41) {
  18748. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18749. .taskJson[index].toolChoose[i].selectJson
  18750. ? JSON.parse(
  18751. JSON.stringify(
  18752. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18753. index
  18754. ].toolChoose[i].selectJson
  18755. )
  18756. )
  18757. : { url: "", select: [], answer: [] };
  18758. if (this.worksStudent[i].length) {
  18759. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18760. if (this.userid == this.worksStudent[i][k].userid) {
  18761. var a = this.worksStudent[i][k].works.split(",");
  18762. for (var ki = 0; ki < a.length; ki++) {
  18763. a[ki] = parseInt(a[ki]);
  18764. }
  18765. this.selectAnswer = {
  18766. answer: a,
  18767. stu: this.worksStudent[i][k].sName,
  18768. };
  18769. break;
  18770. } else {
  18771. this.selectAnswer = { answer: [], stu: "" };
  18772. }
  18773. }
  18774. } else {
  18775. this.selectAnswer = { answer: [], stu: "" };
  18776. }
  18777. this.isSelect = false;
  18778. this.dialogVisibleSelect = true;
  18779. } else if (t == 44) {
  18780. window.topU.postMessage({ tools: "44" }, "*");
  18781. } else if (t == 47) {
  18782. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18783. .taskJson[index].toolChoose[i].sentenceList
  18784. ? JSON.parse(
  18785. JSON.stringify(
  18786. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18787. index
  18788. ].toolChoose[i].sentenceList
  18789. )
  18790. )
  18791. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18792. for (var q = 0; q < this.sentenceList.length; q++) {
  18793. this.sentenceList[q].chooseSenList = [];
  18794. this.sentenceList[q].addChangeSen = [];
  18795. this.sentenceList[q].addChangeSen = JSON.parse(
  18796. JSON.stringify(this.sentenceList[q].addSentence)
  18797. );
  18798. this.sentenceList[q].chooseSenList.length =
  18799. this.sentenceList[q].rightAnswer.length;
  18800. }
  18801. this.dialogVisibleSentence = true;
  18802. } else if (t == 48) {
  18803. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18804. .taskJson[index].toolChoose[i].tableJson
  18805. ? JSON.parse(
  18806. JSON.stringify(
  18807. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18808. index
  18809. ].toolChoose[i].tableJson
  18810. )
  18811. )
  18812. : { text: "" };
  18813. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18814. if (this.worksStudent[i].length) {
  18815. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18816. if (this.userid == this.worksStudent[i][k].userid) {
  18817. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18818. break;
  18819. }
  18820. }
  18821. }
  18822. this.dialogVisibleTable = true;
  18823. } else if (t == 52) {
  18824. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18825. .taskJson[index].toolChoose[i].wordJson
  18826. ? JSON.parse(
  18827. JSON.stringify(
  18828. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18829. index
  18830. ].toolChoose[i].wordJson
  18831. )
  18832. )
  18833. : { text: "" };
  18834. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18835. if (this.worksStudent[i].length) {
  18836. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18837. if (this.userid == this.worksStudent[i][k].userid) {
  18838. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18839. break;
  18840. }
  18841. }
  18842. }
  18843. this.dialogVisibleWord = true;
  18844. } else if (t == 49) {
  18845. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18846. return
  18847. }
  18848. this.groupJson =
  18849. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18850. index
  18851. ].toolChoose[i].groupJson;
  18852. this.islock = this.groupJson.islock == 1 ? true : false;
  18853. this.dialogVisibleGroup = true;
  18854. } else if (t == 62) {
  18855. this.videoType = 0;
  18856. this.videoJson = {};
  18857. this.videoJson =
  18858. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18859. index
  18860. ].toolChoose[i].videoJson;
  18861. this.dialogVisibleVideo = true;
  18862. }
  18863. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  18864. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18865. },
  18866. teacherWorkSubmit(t, i, index, s) {
  18867. console.log('t',t);
  18868. if(t == 72) return
  18869. this.sStudent = s;
  18870. this.toolindex = i;
  18871. this.sTool = t;
  18872. if (this.tType !== "1" && this.tType !== "4") {
  18873. return;
  18874. }
  18875. if (t == 16 || t == 32 || t == 50) {
  18876. this.dialogVisibleWorks = true;
  18877. } else if (t == 15) {
  18878. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18879. .taskJson[index].toolChoose[i].answerQ
  18880. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18881. .toolChoose[i].answerQ
  18882. : "";
  18883. this.questionAnswer = "";
  18884. this.answerDialogVisibleTeacher = true; //问答
  18885. } else if (t == 52) {
  18886. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18887. .taskJson[index].toolChoose[i].wordJson
  18888. ? JSON.parse(
  18889. JSON.stringify(
  18890. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18891. index
  18892. ].toolChoose[i].wordJson
  18893. )
  18894. )
  18895. : { text: "" };
  18896. if (this.worksStudent[i].length) {
  18897. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18898. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18899. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18900. break;
  18901. }
  18902. }
  18903. }
  18904. this.dialogVisibleWordTeacher = true; //文档
  18905. } else if (t == 4) {
  18906. this.radio = [];
  18907. this.noteName = "";
  18908. this.isAnswer = false;
  18909. if (this.askCount > 0) {
  18910. this.updateCount(this.askCount, t);
  18911. } else {
  18912. this.askCount++;
  18913. a = this.askCount;
  18914. this.toolsCount(a, t);
  18915. }
  18916. if (!this.dialogVisible2) {
  18917. this.askJson.askJson =
  18918. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18919. index
  18920. ].toolChoose[i].askJson;
  18921. this.askJson.askTitle =
  18922. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18923. index
  18924. ].toolChoose[i].askTitle;
  18925. this.askJson.askCount =
  18926. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18927. index
  18928. ].toolChoose[i].askCount;
  18929. } else {
  18930. this.askJson.askJson = this.chapTools.askJson.askJson;
  18931. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18932. this.askJson.askCount = this.chapTools.askJson.askCount;
  18933. }
  18934. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18935. if (this.askJson.askJson[k].type == "2") {
  18936. this.radio.push([]);
  18937. } else {
  18938. this.radio.push("");
  18939. }
  18940. }
  18941. this.dialogVisible5Teacher = true;
  18942. } else if (t == 45) {
  18943. this.noteName = "";
  18944. this.radio = [];
  18945. this.isAnswer = false;
  18946. if (this.askCount > 0) {
  18947. this.updateCount(this.askCount, t);
  18948. } else {
  18949. this.askCount++;
  18950. a = this.askCount;
  18951. this.toolsCount(a, t);
  18952. }
  18953. this.testJson =
  18954. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18955. index
  18956. ].toolChoose[i].testJson;
  18957. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18958. if (this.testJson.testJson[k].type == "2") {
  18959. this.radio.push([]);
  18960. } else {
  18961. this.radio.push("");
  18962. }
  18963. }
  18964. this.dialogVisibleChoiceTeacher = true;
  18965. } else if (t == 41) {
  18966. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18967. .taskJson[index].toolChoose[i].selectJson
  18968. ? JSON.parse(
  18969. JSON.stringify(
  18970. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18971. index
  18972. ].toolChoose[i].selectJson
  18973. )
  18974. )
  18975. : { url: "", select: [], answer: [] };
  18976. if (this.worksStudent[i].length) {
  18977. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18978. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18979. var a = this.worksStudent[i][k].works.split(",");
  18980. for (var ki = 0; ki < a.length; ki++) {
  18981. a[ki] = parseInt(a[ki]);
  18982. }
  18983. this.selectAnswer = {
  18984. answer: a,
  18985. stu: this.worksStudent[i][k].sName,
  18986. };
  18987. break;
  18988. } else {
  18989. this.selectAnswer = { answer: [], stu: "" };
  18990. }
  18991. }
  18992. } else {
  18993. this.selectAnswer = { answer: [], stu: "" };
  18994. }
  18995. this.isSelect = false;
  18996. this.dialogVisibleSelectTeacher = true;
  18997. } else if (t == 47) {
  18998. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18999. .taskJson[index].toolChoose[i].sentenceList
  19000. ? JSON.parse(
  19001. JSON.stringify(
  19002. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19003. index
  19004. ].toolChoose[i].sentenceList
  19005. )
  19006. )
  19007. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19008. for (var q = 0; q < this.sentenceList.length; q++) {
  19009. this.sentenceList[q].chooseSenList = [];
  19010. this.sentenceList[q].addChangeSen = [];
  19011. this.sentenceList[q].addChangeSen = JSON.parse(
  19012. JSON.stringify(this.sentenceList[q].addSentence)
  19013. );
  19014. this.sentenceList[q].chooseSenList.length =
  19015. this.sentenceList[q].rightAnswer.length;
  19016. }
  19017. this.dialogVisibleSentenceTeacher = true;
  19018. } else if (t == 48) {
  19019. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19020. .taskJson[index].toolChoose[i].tableJson
  19021. ? JSON.parse(
  19022. JSON.stringify(
  19023. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19024. index
  19025. ].toolChoose[i].tableJson
  19026. )
  19027. )
  19028. : { text: "" };
  19029. if (this.worksStudent[i].length) {
  19030. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19031. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19032. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19033. break;
  19034. }
  19035. }
  19036. }
  19037. this.dialogVisibleTableTeacher = true;
  19038. } else if (t == 40) {
  19039. if (this.evalCount > 0) {
  19040. this.updateCount(this.evalCount, t);
  19041. } else {
  19042. this.evalCount++;
  19043. a = this.evalCount;
  19044. this.toolsCount(a, t);
  19045. }
  19046. this.eScore = { eBzText: "", eStar: [] };
  19047. if (this.worksStudent[i].length) {
  19048. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19049. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19050. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19051. this.rateJson =
  19052. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19053. index
  19054. ].toolChoose[i].rateJson;
  19055. break;
  19056. } else {
  19057. this.rateJson =
  19058. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19059. index
  19060. ].toolChoose[i].rateJson;
  19061. }
  19062. }
  19063. } else {
  19064. this.rateJson =
  19065. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19066. index
  19067. ].toolChoose[i].rateJson;
  19068. }
  19069. this.isStar = false;
  19070. this.studentEvalDialogVisibleTeacher = true;
  19071. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19072. window.topU.postMessage(
  19073. {
  19074. tools: t + "teacher",
  19075. cid: this.id,
  19076. stage: this.courseType,
  19077. task: this.taskCount,
  19078. tool: i,
  19079. student: this.sStudent,
  19080. },
  19081. "*"
  19082. );
  19083. }else if (t == 72) {
  19084. if (!document.fullscreenElement) {
  19085. this.enterFullScreen();
  19086. }
  19087. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19088. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19089. }
  19090. },
  19091. openCocoPi(tool, i, uid, uname) {
  19092. let student = {
  19093. userid: uid,
  19094. student: uname,
  19095. };
  19096. if (tool == 57) {
  19097. window.topU.postMessage(
  19098. {
  19099. tools: tool + "teacher",
  19100. cid: this.id,
  19101. stage: this.courseType,
  19102. task: this.taskCount,
  19103. tool: i,
  19104. student: student,
  19105. },
  19106. "*"
  19107. );
  19108. }
  19109. },
  19110. setRightAnswer(s, i, j) {
  19111. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19112. if (
  19113. this.sentenceList[i].chooseSenList[q] == undefined ||
  19114. this.sentenceList[i].chooseSenList[q] == ""
  19115. ) {
  19116. this.sentenceList[i].chooseSenList[q] = s;
  19117. this.sentenceList[i].addChangeSen[j] = "";
  19118. break;
  19119. }
  19120. }
  19121. this.$forceUpdate();
  19122. },
  19123. returnCard(r, i, j) {
  19124. var a = this.sentenceList[i].addSentence.indexOf(r);
  19125. this.sentenceList[i].chooseSenList[j] = "";
  19126. this.sentenceList[i].addChangeSen[a] = r;
  19127. this.$forceUpdate();
  19128. },
  19129. // addSentenceTool() {
  19130. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19131. // this.taskCount
  19132. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19133. // this.sentenceList = [
  19134. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19135. // ];
  19136. // this.dialogVisibleSentence = false;
  19137. // },
  19138. toolsCount(a, t) {
  19139. let params = {
  19140. cid: this.id,
  19141. chid: this.courseType,
  19142. uid: this.userid,
  19143. tid: t,
  19144. count: a,
  19145. };
  19146. this.ajax
  19147. .get(this.$store.state.api + "insertToolsCount", params)
  19148. .then((res) => {
  19149. this.selectCount();
  19150. })
  19151. .catch((err) => {
  19152. console.error(err);
  19153. });
  19154. },
  19155. updateCount(c, t) {
  19156. c++;
  19157. let params = {
  19158. cid: this.id,
  19159. chid: this.courseType,
  19160. uid: this.userid,
  19161. tid: t,
  19162. count: c,
  19163. };
  19164. this.ajax
  19165. .get(this.$store.state.api + "updateToolsCount", params)
  19166. .then((res) => {
  19167. this.selectCount();
  19168. })
  19169. .catch((err) => {
  19170. console.error(err);
  19171. });
  19172. },
  19173. checkEva() {
  19174. if (this.evalua != "") {
  19175. for (var i = 0; i < this.evaJuri.length; i++) {
  19176. if (this.evalua == this.evaJuri[i].id) {
  19177. this.eTitle = this.evaJuri[i].title;
  19178. this.eJson = JSON.parse(this.evaJuri[i].content);
  19179. }
  19180. }
  19181. this.$forceUpdate();
  19182. setTimeout(() => {
  19183. this.setMindData();
  19184. }, 0);
  19185. }
  19186. },
  19187. selectEva() {
  19188. let params = {
  19189. oid: this.oid,
  19190. };
  19191. this.ajax
  19192. .get(this.$store.state.api + "selectAllEvaluation", params)
  19193. .then((res) => {
  19194. this.evaJuri = res.data[0];
  19195. })
  19196. .catch((err) => {
  19197. console.error(err);
  19198. });
  19199. },
  19200. setMindData() {
  19201. this.data.data = [];
  19202. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19203. let _eJson = Object.keys(this.eJson);
  19204. let _e = this.eJson;
  19205. for (let i = 0; i < _eJson.length; i++) {
  19206. let element = _e[_eJson[i]];
  19207. this.data.data.push({
  19208. id: element.id,
  19209. parentid: "root",
  19210. topic: element.name,
  19211. });
  19212. let _eJsonc = Object.keys(element.child);
  19213. let _e2 = element.child;
  19214. for (let j = 0; j < _eJsonc.length; j++) {
  19215. let _ec = _e2[_eJsonc[j]];
  19216. this.data.data.push({
  19217. id: _ec.id,
  19218. parentid: element.id,
  19219. topic: _ec.name,
  19220. });
  19221. let _eJsonz = Object.keys(_ec.child);
  19222. let _e3 = _ec.child;
  19223. for (let z = 0; z < _eJsonz.length; z++) {
  19224. let _ez = _e3[_eJsonz[z]];
  19225. this.data.data.push({
  19226. id: _ez.id,
  19227. parentid: _ec.id,
  19228. topic: _ez.name,
  19229. });
  19230. }
  19231. }
  19232. }
  19233. this.$forceUpdate();
  19234. },
  19235. checkFileFull(type, url) {
  19236. this.fullDialogVisible = true;
  19237. this.fulltype = type;
  19238. this.fullUrl = url;
  19239. },
  19240. async checkFileFull1(t, f) {
  19241. this.fullDialogVisible = true;
  19242. if (t == 6) {
  19243. this.fulltype = 1;
  19244. this.fullUrl = JSON.parse(JSON.stringify(f));
  19245. } else if (t == 8 ) {
  19246. this.fulltype = 2;
  19247. this.fullUrl = f.url;
  19248. }else if (t == 15) {
  19249. this.diffKey = new Date().getTime();
  19250. this.fulltype = 4;
  19251. this.fullUrl = f.url;
  19252. } else if (t == 16) {
  19253. this.fulltype = 16;
  19254. this.fullUrl = f.url;
  19255. } else if (
  19256. t == 3 &&
  19257. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19258. "PDF"
  19259. ) {
  19260. this.fulltype = 3;
  19261. this.fullUrl = f.url;
  19262. } else if (t == 3) {
  19263. this.fulltype = 2;
  19264. let _uuurl = await this.checkLink(f.url);
  19265. this.fullUrl =
  19266. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19267. }
  19268. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19269. },
  19270. openSname(n, id, i, uid) {
  19271. this.snameWid = id;
  19272. this.worksSName = n;
  19273. this.worksSid = uid == n ? "" : uid;
  19274. this.toolindex = i;
  19275. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19276. if (!this.uploadCid) {
  19277. this.$message.error(
  19278. this.lang.ssBatchUploadNoClassPermission
  19279. );
  19280. return;
  19281. }
  19282. this.selectUploadStudent(1);
  19283. },
  19284. updateName() {
  19285. let params = {
  19286. n: this.worksSName,
  19287. cid: this.snameWid,
  19288. };
  19289. this.ajax
  19290. .get(this.$store.state.api + "updateCourseWorksName", params)
  19291. .then((res) => {
  19292. this.$message({
  19293. message: "修改成功",
  19294. type: "success",
  19295. });
  19296. this.dialogVisibleSname = false;
  19297. this.getCourseDetail(2);
  19298. this.snameWid = "";
  19299. this.worksSName = "";
  19300. })
  19301. .catch((err) => {
  19302. console.error(err);
  19303. });
  19304. },
  19305. downloadimg(img,val){
  19306. console.log('img',img)
  19307. fetch(img)
  19308. .then((response) => {
  19309. if (!response.ok) throw new Error('download failed')
  19310. return response.blob()
  19311. })
  19312. .then((blob) => {
  19313. const blobUrl = URL.createObjectURL(blob)
  19314. const a = document.createElement('a')
  19315. a.href = blobUrl
  19316. a.download = val + '.jpg'
  19317. document.body.appendChild(a)
  19318. a.click()
  19319. document.body.removeChild(a)
  19320. URL.revokeObjectURL(blobUrl)
  19321. })
  19322. .catch(() => {
  19323. fallbackDownload()
  19324. })
  19325. },
  19326. downloadFile2(f) {
  19327. // const loading = this.$loading.service({
  19328. // background: "rgba(255, 255, 255, 0.7)",
  19329. // target: document.body,
  19330. // text: "文件加载中...",
  19331. // });
  19332. // let url2 = f.url;
  19333. // let _url2 = "";
  19334. // if (
  19335. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19336. // ) {
  19337. // _url2 = url2.split(
  19338. // "https://view.officeapps.live.com/op/view.aspx?src="
  19339. // )[1];
  19340. // } else {
  19341. // _url2 = url2;
  19342. // }
  19343. // let params = {
  19344. // url: _url2,
  19345. // name: f.name,
  19346. // };
  19347. // this.ajax
  19348. // .get(this.$store.state.api + "download", params)
  19349. // .then((res) => {
  19350. // loading.close();
  19351. // let content = res.data.data.data;
  19352. // let ab = new ArrayBuffer(content.length);
  19353. // let view = new Uint8Array(ab);
  19354. // for (var i = 0; i < content.length; ++i) {
  19355. // view[i] = content[i];
  19356. // }
  19357. // let elink = document.createElement("a");
  19358. // elink.download = f.name;
  19359. // elink.style.display = "none";
  19360. // let blob = new Blob([ab], {
  19361. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19362. // });
  19363. // elink.href = URL.createObjectURL(blob);
  19364. // document.body.appendChild(elink);
  19365. // elink.click();
  19366. // document.body.removeChild(elink);
  19367. // })
  19368. // .catch((err) => {
  19369. // loading.close();
  19370. // console.error(err);
  19371. // });
  19372. var credentials = {
  19373. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19374. secretAccessKey: "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",
  19375. }; //秘钥形式的登录上传
  19376. window.AWS.config.update(credentials);
  19377. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19378. let url2 = f.url;
  19379. let _url2 = "";
  19380. if (
  19381. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19382. ) {
  19383. _url2 = url2.split(
  19384. "https://view.officeapps.live.com/op/view.aspx?src="
  19385. )[1];
  19386. } else {
  19387. _url2 = url2;
  19388. }
  19389. let _this = this;
  19390. _this.downLoading = true
  19391. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19392. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19393. var params = {
  19394. Bucket: "ccrb",
  19395. Key: name
  19396. };
  19397. s3.getObject(params, function (err, data) {
  19398. _this.downLoading = false
  19399. if (err) console.log(err, err.stack); // an error occurred
  19400. else {
  19401. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19402. let a = document.createElement("a");
  19403. a.name = f.name;
  19404. a.href = url;
  19405. a.download = f.name;
  19406. a.click();
  19407. console.log(data);
  19408. } // sxuccessful response
  19409. });
  19410. return;
  19411. let url = f.url;
  19412. let _url = "";
  19413. if (
  19414. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19415. ) {
  19416. _url = url.split(
  19417. "https://view.officeapps.live.com/op/view.aspx?src="
  19418. )[1];
  19419. } else {
  19420. _url = url;
  19421. }
  19422. _this.downLoading = true
  19423. let x = new XMLHttpRequest();
  19424. x.open("GET", _url, true);
  19425. x.responseType = "blob";
  19426. x.onload = function () {
  19427. _this.downLoading = false
  19428. let url = window.URL.createObjectURL(new Blob([x.response]));
  19429. let a = document.createElement("a");
  19430. a.name = f.name;
  19431. a.href = url;
  19432. a.download = f.name;
  19433. a.click();
  19434. };
  19435. x.send();
  19436. },
  19437. downloadFile(url,uid) {
  19438. if (this.tType == 1 || this.userid == uid) {
  19439. // this.$message.info("查看作业-下载文件")
  19440. var credentials = {
  19441. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19442. secretAccessKey: "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",
  19443. }; //秘钥形式的登录上传
  19444. window.AWS.config.update(credentials);
  19445. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19446. let url2 = url;
  19447. let _url2 = "";
  19448. if (
  19449. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19450. ) {
  19451. _url2 = url2.split(
  19452. "https://view.officeapps.live.com/op/view.aspx?src="
  19453. )[1];
  19454. } else {
  19455. _url2 = url2;
  19456. }
  19457. const loading2 = this.$loading.service({
  19458. background: "rgba(255, 255, 255, 0.7)",
  19459. target: document.body,
  19460. text: this.lang.ssFileLoading,
  19461. });
  19462. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19463. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19464. var params = {
  19465. Bucket: "ccrb",
  19466. Key: name
  19467. };
  19468. s3.getObject(params, function (err, data) {
  19469. loading2.close();
  19470. if (err) console.log(err, err.stack); // an error occurred
  19471. else {
  19472. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19473. let a = document.createElement("a");
  19474. a.name = name;
  19475. a.href = url;
  19476. a.download = name;
  19477. a.click();
  19478. console.log(data);
  19479. } // sxuccessful response
  19480. });
  19481. }
  19482. return;
  19483. // let _this = this;
  19484. // let _url = "";
  19485. // if (
  19486. // url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19487. // ) {
  19488. // _url = url.split(
  19489. // "https://view.officeapps.live.com/op/view.aspx?src="
  19490. // )[1];
  19491. // } else {
  19492. // _url = url;
  19493. // }
  19494. // const x = new XMLHttpRequest();
  19495. // x.open("GET", _url, true);
  19496. // x.responseType = "blob";
  19497. // // this.downLoading = true
  19498. // const loading = _this.$loading.service({
  19499. // background: "rgba(255, 255, 255, 0.7)",
  19500. // target: document.body,
  19501. // text: "文件加载中...",
  19502. // });
  19503. // // _this.$message.success("文件下载中...");
  19504. // x.onload = function (e) {
  19505. // loading.close();
  19506. // let content = x.response;
  19507. // let elink = document.createElement("a");
  19508. // elink.download = decodeURI(
  19509. // _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19510. // );
  19511. // elink.style.display = "none";
  19512. // let blob = new Blob([content]);
  19513. // elink.href = URL.createObjectURL(blob);
  19514. // document.body.appendChild(elink);
  19515. // elink.click();
  19516. // document.body.removeChild(elink);
  19517. // };
  19518. // x.send();
  19519. },
  19520. openLine(url) {
  19521. window.open(url);
  19522. },
  19523. resize() {
  19524. if (document.getElementsByClassName("box_course").length) {
  19525. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19526. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19527. if (this.showType == 2 || this.showType == 3) {
  19528. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  19529. document.getElementsByClassName("navBox")[0].style.height =
  19530. a - 40 + 0+ "px";
  19531. }
  19532. } else {
  19533. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  19534. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  19535. }
  19536. }
  19537. }
  19538. this.Stbodywidth =
  19539. document.getElementsByClassName("student_body").length &&
  19540. document.getElementsByClassName("student_body")[0].offsetWidth;
  19541. },
  19542. closeDraw() {
  19543. this.bg = null;
  19544. this.drawShow = false;
  19545. },
  19546. showPicturePaint(url) {
  19547. let params = {
  19548. img: url,
  19549. };
  19550. this.ajax
  19551. .get(this.$store.state.api + "imgToBase64", params)
  19552. .then((res) => {
  19553. this.drawShow = true;
  19554. this.bg = res.data[0].img;
  19555. })
  19556. .catch((err) => {
  19557. console.error(err);
  19558. });
  19559. },
  19560. addImgDraw(base64) {
  19561. let file = { name: this.lang.ssAnnotationImage };
  19562. let img = this.dataUrlToFile(base64, file);
  19563. this.beforeUpload1(img, 5);
  19564. },
  19565. addImgDrawImG(url) {
  19566. // console.log(url);
  19567. let params = [
  19568. {
  19569. wid: this.commentDetail.wid,
  19570. img: url,
  19571. },
  19572. ];
  19573. this.ajax
  19574. .post(this.$store.state.api + "updateCourseWorks", params)
  19575. .then((res) => {
  19576. this.$message({
  19577. message: this.lang.ssSubmitSuccess,
  19578. type: "success",
  19579. });
  19580. this.drawShow = false;
  19581. this.bg = "";
  19582. this.selectSWorks();
  19583. this.selectStudent();
  19584. })
  19585. .catch((err) => {
  19586. this.$message.error(this.lang.ssSubmitFailed);
  19587. console.error(err);
  19588. });
  19589. },
  19590. deletePicturePaint() {
  19591. this.$confirm(this.lang.ssConfirmDeleteAnnotation, this.lang.ssPrompt, {
  19592. confirmButtonText: this.lang.ssConfirm,
  19593. cancelButtonText: this.lang.ssCancel,
  19594. type: "warning",
  19595. })
  19596. .then(() => {
  19597. let params = [
  19598. {
  19599. wid: this.commentDetail.wid,
  19600. img: "",
  19601. },
  19602. ];
  19603. this.ajax
  19604. .post(this.$store.state.api + "updateCourseWorks", params)
  19605. .then((res) => {
  19606. this.$message({
  19607. message: this.lang.ssDeleteSuccess,
  19608. type: "success",
  19609. });
  19610. this.selectSWorks();
  19611. this.selectStudent();
  19612. })
  19613. .catch((err) => {
  19614. this.$message.error(this.lang.ssDeleteFailed);
  19615. console.error(err);
  19616. });
  19617. })
  19618. .catch(() => {});
  19619. },
  19620. getAudioVideo(constraintsData) {
  19621. if (navigator.mediaDevices === undefined) {
  19622. navigator.mediaDevices = {};
  19623. }
  19624. if (navigator.mediaDevices.getUserMedia === undefined) {
  19625. navigator.mediaDevices.getUserMedia = function (constraints) {
  19626. // 首先,如果有getUserMedia的话,就获得它
  19627. var getUserMedia =
  19628. navigator.getUserMedia ||
  19629. navigator.webkitGetUserMedia ||
  19630. navigator.mozGetUserMedia ||
  19631. navigator.msGetUserMedia;
  19632. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19633. if (!getUserMedia) {
  19634. return Promise.reject({ code: 404 });
  19635. }
  19636. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19637. return new Promise(function (resolve, reject) {
  19638. getUserMedia.call(navigator, constraints, resolve, reject);
  19639. });
  19640. };
  19641. }
  19642. return navigator.mediaDevices.getUserMedia(constraintsData);
  19643. },
  19644. /**
  19645. * 开始录制
  19646. */
  19647. startRecording(callback) {
  19648. let _function = (screenStream) => {
  19649. this.addStreamStopListener(screenStream, () => {
  19650. console.log("流停止监听");
  19651. this.stopRecording();
  19652. this.$emit("streamStop", {});
  19653. // this.stopRecording();
  19654. });
  19655. var options = {
  19656. type: "video",
  19657. mimeType: "video/webm",
  19658. disableLogs: false,
  19659. getNativeBlob: false, // enable it for longer recordings
  19660. ignoreMutedMedia: false,
  19661. };
  19662. // this.video.srcObject = screenStream;
  19663. this.recorder = RecordRTC(screenStream, options);
  19664. this.recorder.startRecording();
  19665. this.recorder.screen = screenStream;
  19666. this.videoStart = true;
  19667. // callback(true);
  19668. };
  19669. this.getAudioVideo({ audio: true })
  19670. .then((res) => {
  19671. this.captureScreen(_function, true);
  19672. console.log("已点击允许,开启成功");
  19673. })
  19674. .catch((err) => {
  19675. // console.log('浏览器不支持,请更换浏览器')
  19676. // } else {
  19677. this.captureScreen(_function, false);
  19678. console.log("请检查是否存在麦克风");
  19679. });
  19680. },
  19681. /**
  19682. * 停止录制
  19683. */
  19684. stopRecording(callback) {
  19685. this.recorder.stopRecording(() => {
  19686. // this.video.src = this.video.srcObject = null;
  19687. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19688. const url = URL.createObjectURL(this.recorder.getBlob());
  19689. const a = document.createElement("a"); //this.fileName+
  19690. let videoFile = new File(
  19691. [this.recorder.getBlob()],
  19692. this.courseDetail.title + this.lang.ssScreenRecording + ".mp4",
  19693. {
  19694. type: "video/mp4",
  19695. }
  19696. );
  19697. let downloadUrl = URL.createObjectURL(videoFile);
  19698. if(this.$refs.classRoomHelperRef){
  19699. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19700. }
  19701. document.body.appendChild(a);
  19702. a.style.display = "none";
  19703. a.href = url;
  19704. a.download = this.courseDetail.title + this.lang.ssScreenRecording + ".mp4"; //this.fileName +
  19705. a.click();
  19706. this.recorder.screen.stop();
  19707. this.recorder.destroy();
  19708. this.recorder = null;
  19709. this.videoStart = false;
  19710. // callback(false);
  19711. });
  19712. },
  19713. //初始化
  19714. captureScreen(callback, type) {
  19715. if (navigator.getDisplayMedia) {
  19716. //录制结束,文件下载
  19717. navigator
  19718. .getDisplayMedia({
  19719. video: true,
  19720. })
  19721. .then((screenStream) => {
  19722. if (type) {
  19723. navigator.mediaDevices
  19724. .getUserMedia({ audio: true })
  19725. .then((mic) => {
  19726. screenStream.addTrack(mic.getTracks()[0]);
  19727. callback(screenStream);
  19728. });
  19729. } else {
  19730. callback(screenStream);
  19731. }
  19732. })
  19733. .catch(function (error) {
  19734. console.log("error", error);
  19735. });
  19736. } else if (navigator.mediaDevices.getDisplayMedia) {
  19737. navigator.mediaDevices
  19738. .getDisplayMedia({
  19739. video: true,
  19740. })
  19741. .then((screenStream) => {
  19742. if (type) {
  19743. navigator.mediaDevices
  19744. .getUserMedia({ audio: true })
  19745. .then((mic) => {
  19746. screenStream.addTrack(mic.getTracks()[0]);
  19747. callback(screenStream);
  19748. });
  19749. } else {
  19750. callback(screenStream);
  19751. }
  19752. })
  19753. .catch(function (error) {
  19754. console.log("error", error);
  19755. });
  19756. } else {
  19757. var error = "getDisplayMedia API are not supported in this browser.";
  19758. console.log("error", error);
  19759. alert(error);
  19760. }
  19761. },
  19762. //流监听
  19763. addStreamStopListener(stream, callback) {
  19764. stream.addEventListener(
  19765. "ended",
  19766. function () {
  19767. callback();
  19768. callback = function () {};
  19769. },
  19770. false
  19771. );
  19772. stream.addEventListener(
  19773. "inactive",
  19774. function () {
  19775. callback();
  19776. callback = function () {};
  19777. },
  19778. false
  19779. );
  19780. stream.getTracks().forEach(function (track) {
  19781. track.addEventListener(
  19782. "ended",
  19783. function () {
  19784. callback();
  19785. callback = function () {};
  19786. },
  19787. false
  19788. );
  19789. track.addEventListener(
  19790. "inactive",
  19791. function () {
  19792. callback();
  19793. callback = function () {};
  19794. },
  19795. false
  19796. );
  19797. });
  19798. },
  19799. updateGroup() {
  19800. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19801. this.dialogVisibleGroup2 = true;
  19802. },
  19803. numberPan() {
  19804. if (
  19805. /[^\d]/.test(this.groupJson.number) ||
  19806. this.groupJson.number < 2 ||
  19807. this.groupJson.number > 10
  19808. ) {
  19809. this.$message.error(this.lang.ssEnterNumber2To10);
  19810. this.groupJson.number = "";
  19811. }
  19812. },
  19813. updateGroupJson() {
  19814. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19815. if (
  19816. this.groupStudentUid[this.toolindex][i].length >
  19817. this.groupJson2.number
  19818. ) {
  19819. this.$message.error(this.lang.ssGroupLargerThanSet);
  19820. return;
  19821. }
  19822. }
  19823. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19824. this.islock = this.groupJson.islock == 1 ? true : false;
  19825. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19826. this.taskCount
  19827. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19828. let params = [
  19829. {
  19830. cid: this.id,
  19831. chapters: JSON.stringify(this.chapInfoList),
  19832. uid: this.userid,
  19833. unitIndex: this.courseType,
  19834. },
  19835. ];
  19836. this.ajax
  19837. .post(this.$store.state.api + "updateWorkNew4", params)
  19838. .then((res) => {
  19839. this.$message.success(this.lang.ssSettingSuccess);
  19840. this.getCourseDetail(2);
  19841. this.dialogVisibleGroup2 = false;
  19842. this.groupJson2 = {};
  19843. this.$forceUpdate();
  19844. })
  19845. .catch((err) => {
  19846. this.$message.error(this.lang.ssNetworkPoor);
  19847. console.error(err);
  19848. });
  19849. },
  19850. lockChair() {
  19851. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19852. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19853. this.updateGroupJson();
  19854. },
  19855. selectGroup(index) {
  19856. this.getCourseDetail(2, index);
  19857. },
  19858. joinGroup(index) {
  19859. if (this.groupJson.islock == 2) {
  19860. this.$message.error(this.lang.ssPositionLockedCannotJoin);
  19861. return;
  19862. }
  19863. if (
  19864. this.groupStudent[this.toolindex][index].length >
  19865. this.groupJson.number ||
  19866. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19867. ) {
  19868. this.$message.error(this.lang.ssPositionFullCannotJoin);
  19869. return;
  19870. }
  19871. let params = [
  19872. {
  19873. cid: this.id,
  19874. stage: this.courseType,
  19875. task: this.taskCount,
  19876. tool: this.toolindex,
  19877. g: index,
  19878. uid: this.userid,
  19879. },
  19880. ];
  19881. this.ajax
  19882. .post(this.$store.state.api + "joinGroup", params)
  19883. .then((res) => {
  19884. this.$message.success(this.lang.ssJoinSuccess);
  19885. this.getCourseDetail(2);
  19886. })
  19887. .catch((err) => {
  19888. this.$message.error(this.lang.ssNetworkPoor);
  19889. console.error(err);
  19890. });
  19891. },
  19892. exitGroup(id) {
  19893. if (this.groupJson.islock == 2) {
  19894. this.$message.error(this.lang.ssPositionLockedCannotExit);
  19895. return;
  19896. }
  19897. let params = [
  19898. {
  19899. gid: id,
  19900. },
  19901. ];
  19902. this.ajax
  19903. .post(this.$store.state.api + "exitGroup", params)
  19904. .then((res) => {
  19905. this.$message.success(this.lang.ssExitSuccess);
  19906. this.getCourseDetail(2);
  19907. })
  19908. .catch((err) => {
  19909. this.$message.error(this.lang.ssNetworkPoor);
  19910. console.error(err);
  19911. });
  19912. },
  19913. groupUpload(index, task, gindex) {
  19914. this.taskCount = task;
  19915. this.toolindex = index;
  19916. this.groupIndex = gindex;
  19917. this.dialogVisibleGroupWork = true;
  19918. },
  19919. updateGroupChair(user) {
  19920. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19921. el.label = index;
  19922. return index != user.group;
  19923. });
  19924. this.updateGroupUser = user;
  19925. this.dialogVisibleUpdateGroup = true;
  19926. },
  19927. updateChair() {
  19928. if (
  19929. this.groupStudent[this.toolindex][this.checkChair].length >
  19930. this.groupJson.number ||
  19931. this.groupStudent[this.toolindex][this.checkChair].length ==
  19932. 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: this.checkChair,
  19944. uid: this.updateGroupUser.userid,
  19945. },
  19946. ];
  19947. this.ajax
  19948. .post(this.$store.state.api + "joinGroup", params)
  19949. .then((res) => {
  19950. this.$message.success(this.lang.ssModifySuccess);
  19951. this.updateGroupUser = {};
  19952. this.checkChair = "";
  19953. this.updateGroupArray = {};
  19954. this.dialogVisibleUpdateGroup = false;
  19955. this.getCourseDetail(2);
  19956. })
  19957. .catch((err) => {
  19958. this.$message.error(this.lang.ssNetworkPoor);
  19959. console.error(err);
  19960. });
  19961. },
  19962. deleteGroupChair(gindex) {
  19963. this.checkDeleteGroup = [];
  19964. this.deleteGroupUser = JSON.parse(
  19965. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19966. );
  19967. this.deleteGroupArray = this.groupJson.group[gindex];
  19968. this.groupIndex = gindex;
  19969. this.dialogVisibleDeleteGroup = true;
  19970. },
  19971. async deleteChair() {
  19972. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19973. const gid =
  19974. this.groupStudent[this.toolindex][this.groupIndex][
  19975. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19976. this.checkDeleteGroup[i]
  19977. )
  19978. ];
  19979. let params = [
  19980. {
  19981. gid: gid.id,
  19982. },
  19983. ];
  19984. var a = await this.deleteChairA(params);
  19985. if (i == this.checkDeleteGroup.length - 1) {
  19986. this.$message.success(this.lang.ssExitSuccess);
  19987. this.dialogVisibleDeleteGroup = false;
  19988. this.deleteGroupUser = [];
  19989. this.deleteGroupArray = {};
  19990. this.groupIndex = "";
  19991. this.checkDeleteGroup = [];
  19992. this.getCourseDetail(2);
  19993. }
  19994. }
  19995. },
  19996. deleteChairA(params) {
  19997. return new Promise((resolve, reject) => {
  19998. this.ajax
  19999. .post(this.$store.state.api + "exitGroup", params)
  20000. .then((res) => {
  20001. resolve(1);
  20002. })
  20003. .catch((err) => {
  20004. this.$message.error(this.lang.ssNetworkPoor);
  20005. console.error(err);
  20006. });
  20007. });
  20008. },
  20009. contract(i) {
  20010. if (this.isCloseList[i].isClose == 0) {
  20011. this.isCloseList[i].isClose = 1;
  20012. } else {
  20013. this.isCloseList[i].isClose = 0;
  20014. }
  20015. this.$forceUpdate();
  20016. },
  20017. openWordCloud(toolindex) {
  20018. this.wordCloudData = '';
  20019. let array = [];
  20020. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20021. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20022. array.push({ name: works });
  20023. }
  20024. if (this.isGroup) {
  20025. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20026. let works = this.courseGroup.group[i].works[toolindex];
  20027. for (var j = 0; j < works.length; j++) {
  20028. let answer = JSON.parse(works[j].works)[0].answer;
  20029. array.push({ name: answer });
  20030. }
  20031. }
  20032. }
  20033. let _result = ''
  20034. array.forEach(e=>{
  20035. _result +=e.name+','
  20036. })
  20037. this.wordCloudData = _result;
  20038. this.dialogVisibleWordCloud = true;
  20039. this.wordCloudKey += 1;
  20040. },
  20041. uploadWorks(i) {
  20042. this.$confirm(this.lang.ssConfirmExportHomework, this.lang.ssPrompt, {
  20043. confirmButtonText: this.lang.ssConfirm,
  20044. cancelButtonText: this.lang.ssCancel,
  20045. type: "warning",
  20046. })
  20047. .then(() => {
  20048. const loading = this.$loading.service({
  20049. background: "rgba(255, 255, 255, 0.7)",
  20050. target: document.body,
  20051. text: this.lang.ssFileLoading,
  20052. });
  20053. const _worksStudent = this.worksStudent;
  20054. let url = [];
  20055. var counts = {};
  20056. for (var l = 0; l < _worksStudent[i].length; l++) {
  20057. var item = _worksStudent[i][l];
  20058. var name = item.sName;
  20059. if (!counts.hasOwnProperty(name)) {
  20060. counts[name] = 0;
  20061. } else {
  20062. counts[name]++;
  20063. }
  20064. if (counts[name] > 0) {
  20065. item.sName += " (" + counts[name] + ")";
  20066. }
  20067. }
  20068. for (var l = 0; l < _worksStudent[i].length; l++) {
  20069. var item = _worksStudent[i][l];
  20070. if (
  20071. item.works.indexOf(
  20072. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20073. ) !== -1 &&
  20074. item.works.indexOf("img") === -1
  20075. ) {
  20076. url.push({ name: item.sName, url: item.works });
  20077. }
  20078. }
  20079. // var toolList = [
  20080. // { name: "电子白板", tool: 1 },
  20081. // { name: "思维导图", tool: 3 },
  20082. // { name: "协同文档", tool: 6 },
  20083. // { name: "思维网格", tool: 7 },
  20084. // { name: "素材库", tool: 8 },
  20085. // { name: "学习资料", tool: 17 },
  20086. // { name: "便签", tool: 2 },
  20087. // { name: "问卷调查", tool: 4 },
  20088. // { name: "选择题", tool: 45 },
  20089. // { name: "倒计时", tool: 10 },
  20090. // { name: "问答", tool: 15 },
  20091. // { name: "课程设计", tool: 26 },
  20092. // { name: "训练服务器", tool: 18 },
  20093. // { name: "作业提交", tool: 16 },
  20094. // { name: "批量上传", tool: 50 },
  20095. // { name: "AIoT Blockly", tool: 21 },
  20096. // { name: "AI Python", tool: 23 },
  20097. // { name: "AI Blockly", tool: 24 },
  20098. // { name: "目标管理", tool: 25 },
  20099. // { name: this.lang.ssMathBoard, tool: 31 },
  20100. // { name: "翻译", tool: 28 },
  20101. // { name: this.lang.ssMohe, tool: 37 },
  20102. // { name: this.lang.ssMathBoard, tool: 31 },
  20103. // { name: "24点", tool: 38 },
  20104. // { name: "GeoGebra", tool: 39 },
  20105. // { name: "源码编辑", tool: 32 },
  20106. // { name: "个人评价", tool: 40 },
  20107. // { name: "选择匹配", tool: 41 },
  20108. // { name: this.lang.ssHanziPalace, tool: 44 },
  20109. // { name: "排序", tool: 47 },
  20110. // { name: "表格", tool: 48 },
  20111. // { name: "文档", tool: 52 },
  20112. // { name: "学生分组", tool: 49 },
  20113. // { name: "CocoPi", tool: 57 },
  20114. // { name: "模拟驾驶", tool: 58 },
  20115. // { name: "路径搜索", tool: 59 },
  20116. // { name: "深度学习", tool: 60 },
  20117. // { name: "全历史", tool: 61 },
  20118. // { name: "交互视频", tool: 62 },
  20119. // { name: "海龟编程", tool: 63 },
  20120. // { name: "挑人", tool: 65 },
  20121. // { name: "公式编辑", tool: 66 },
  20122. // { name: "分子结构", tool: 67 },
  20123. // { name: "时间轴", tool: 68 },
  20124. // ];
  20125. // var toolName = "";
  20126. // for(var w = 0;w<toolList.length;w++){
  20127. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20128. // toolName = toolList[w].name;
  20129. // }
  20130. // }
  20131. console.log(url);
  20132. this.downLoadAll(url, loading);
  20133. })
  20134. .catch(() => {});
  20135. },
  20136. downLoadAll(url, loading) {
  20137. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20138. const zip = new JSZip();
  20139. const cache = {};
  20140. const promises = [];
  20141. data.forEach((item) => {
  20142. const promise = getFile(item.url).then((data) => {
  20143. if (data.data != 1) {
  20144. // 下载文件, 并存成ArrayBuffer对象
  20145. const file_name =
  20146. item.name +
  20147. "." +
  20148. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20149. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20150. cache[file_name] = data.data;
  20151. }
  20152. });
  20153. promises.push(promise);
  20154. });
  20155. Promise.all(promises).then(() => {
  20156. zip.generateAsync({ type: "blob" }).then((content) => {
  20157. // 生成二进制流
  20158. FileSaver.saveAs(
  20159. content,
  20160. this.courseDetail.title + "-" + this.lang.ssHomeworkSubmissionTool + ".zip"
  20161. ); // 利用file-saver保存文件 自定义文件名
  20162. setTimeout(() => {
  20163. loading.close();
  20164. }, 2000);
  20165. });
  20166. });
  20167. },
  20168. pickStudent(stu) {
  20169. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20170. return;
  20171. }
  20172. this.$confirm(this.lang.ssAskStudentToAnswer.replace(/\*/g, stu.name), this.lang.ssPrompt, {
  20173. confirmButtonText: this.lang.ssConfirm,
  20174. cancelButtonText: this.lang.ssCancel,
  20175. type: "warning",
  20176. })
  20177. .then(() => {
  20178. let params = [
  20179. {
  20180. uid: stu.userid,
  20181. cid: this.id,
  20182. stage: this.courseType,
  20183. task: this.taskCount,
  20184. tool: this.toolindex,
  20185. },
  20186. ];
  20187. this.ajax
  20188. .post(this.$store.state.api + "updateCoursePick", params)
  20189. .then((res) => {
  20190. this.$message.success(this.lang.ssOperationSuccess);
  20191. this.getPick();
  20192. })
  20193. .catch((err) => {
  20194. this.$message.error(this.lang.ssNetworkPoor);
  20195. console.error(err);
  20196. });
  20197. })
  20198. .catch(() => {});
  20199. },
  20200. selectUser(){
  20201. let params = {
  20202. userid: this.userid,
  20203. };
  20204. this.ajax
  20205. .get(this.$store.state.api + "selectUser", params)
  20206. .then((res) => {
  20207. this.userMes = res.data[0];
  20208. })
  20209. .catch((err) => {
  20210. console.error(err);
  20211. });
  20212. },
  20213. setEngText(i){
  20214. this.newEngIndex = i;
  20215. this.$forceUpdate();
  20216. },
  20217. addCorrect(){
  20218. this.$confirm(this.lang.ssConfirmSubmitCorrection, this.lang.ssPrompt, {
  20219. confirmButtonText: this.lang.ssConfirm,
  20220. showCancelButton: false,
  20221. closeOnClickModal: false,
  20222. type: "warning",
  20223. })
  20224. .then(() => {
  20225. let params = {
  20226. cid: this.id,
  20227. s: parseInt(this.courseType),
  20228. t: this.taskCount,
  20229. tool: this.toolindex,
  20230. wid: this.engWid,
  20231. c: this.userid,
  20232. 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) : "",
  20233. };
  20234. this.ajax
  20235. .get(this.$store.state.api + "addEngC", params)
  20236. .then((res) => {
  20237. this.$message.success(this.lang.ssSubmitSuccess);
  20238. this.engUpdateDialogVisible = false;
  20239. })
  20240. .catch((err) => {
  20241. console.error(err);
  20242. });
  20243. })
  20244. .catch(() => {});
  20245. },
  20246. selectEngC(id,z){
  20247. let params = {
  20248. workid: id,
  20249. };
  20250. this.ajax
  20251. .get(this.$store.state.api + "selectEngC", params)
  20252. .then((res) => {
  20253. if(res.data[0].length == 0){
  20254. this.newEnglishList.engTitle = z.engTitle;
  20255. this.newEnglishList.engText = z.engText;
  20256. }else{
  20257. var a = res.data[0];
  20258. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20259. if(this.userMes[0].type == 2){
  20260. var snum = 0;
  20261. for(var i = 0;i<a.length;i++){
  20262. if(this.userMes[0].userid == a[i].correct){
  20263. this.newEnglishList = JSON.parse(a[i].cWork);
  20264. snum = 1;
  20265. }
  20266. }
  20267. if(snum == 0){
  20268. this.newEnglishList = { engTitle:"",engText:"" };
  20269. this.newEnglishList.engTitle = z.engTitle;
  20270. this.newEnglishList.engText = z.engText;
  20271. }
  20272. }else if(this.userMes[0].type == 1){
  20273. var num = 0;
  20274. for(var w= 0;w<a.length;w++){
  20275. if(this.userMes[0].userid == a[w].correct){
  20276. num = 1;
  20277. }
  20278. }
  20279. if(num == 0){
  20280. this.isNoUserid = true;
  20281. var c = JSON.parse(JSON.stringify(z));
  20282. this.oldEnglishJson1 = c;
  20283. }else{
  20284. this.isNoUserid = false;
  20285. }
  20286. var b = a.sort((item, index) => {
  20287. console.log(item)
  20288. if (item.correct === this.userMes[0].userid) {
  20289. return -1; // 将a移到前面
  20290. } else if (index.correct === this.userMes[0].userid) {
  20291. return 1; // 将b移到前面
  20292. } else {
  20293. return 0; // 保持默认顺序
  20294. }
  20295. });
  20296. for(var p = 0;p<b.length;p++){
  20297. for(var y = 0;y<ppp.length;y++){
  20298. if(b[p].id == ppp[y].id){
  20299. b[p].cWork = JSON.parse(ppp[y].cWork);
  20300. break
  20301. }
  20302. }
  20303. }
  20304. this.newEnglishList1 = b;
  20305. }
  20306. }
  20307. this.greyType = false;
  20308. setTimeout(() => {
  20309. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20310. if(this.newEnglishList1.length > 0){
  20311. if(this.isNoUserid == true){
  20312. this.engListLength = this.newEnglishList1.length + 1;
  20313. this.newEngIndex = -1;
  20314. }else{
  20315. this.engListLength = this.newEnglishList1.length;
  20316. this.newEngIndex = 0;
  20317. }
  20318. }
  20319. if(this.userMes[0].type == 2){
  20320. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20321. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20322. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20323. }else if(this.newEngIndex == -1){
  20324. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20325. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20326. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20327. }
  20328. }, 500);
  20329. this.engUpdateDialogVisible = true;
  20330. this.$forceUpdate();
  20331. })
  20332. .catch((err) => {
  20333. console.error(err);
  20334. });
  20335. },
  20336. getPick() {
  20337. if(this.getPickLoading) return
  20338. this.getPickLoading = true
  20339. let params = {
  20340. cid: this.id,
  20341. };
  20342. this.ajax
  20343. .get(this.$store.state.api + "getPick", params)
  20344. .then((res) => {
  20345. let array = [];
  20346. for (var i = 0; i < res.data[0].length; i++) {
  20347. array.push(res.data[0][i].userid);
  20348. }
  20349. this.isPickStudent = array;
  20350. if (array.indexOf(this.userid) !== -1) {
  20351. this.$confirm(this.lang.ssSelectedByTeacher, this.lang.ssPrompt, {
  20352. confirmButtonText: this.lang.ssConfirm,
  20353. showCancelButton: false,
  20354. closeOnClickModal: false,
  20355. type: "warning",
  20356. })
  20357. .then(() => {
  20358. let pa = [
  20359. {
  20360. uid: this.userid,
  20361. cid: this.id,
  20362. },
  20363. ];
  20364. this.ajax
  20365. .post(this.$store.state.api + "deletePick", pa)
  20366. .then((res) => {
  20367. this.getPick();
  20368. })
  20369. .catch((err) => {
  20370. this.$message.error(this.lang.ssNetworkPoor);
  20371. console.error(err);
  20372. });
  20373. })
  20374. .catch(() => {});
  20375. }
  20376. this.getPickLoading = false
  20377. })
  20378. .catch((err) => {
  20379. this.getPickLoading = false
  20380. this.$message.error(this.lang.ssNetworkPoor);
  20381. console.error(err);
  20382. });
  20383. },
  20384. foldEva() {
  20385. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20386. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20387. } else {
  20388. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20389. setTimeout(() => {
  20390. this.checkEva();
  20391. setTimeout(() => {
  20392. this.checkEva();
  20393. }, 500);
  20394. }, 0);
  20395. }
  20396. this.$forceUpdate();
  20397. },
  20398. panToolHeight(tool) {
  20399. var _tool = document.querySelectorAll('#'+tool)[0]
  20400. var _toolA = _tool ? _tool.offsetHeight : 0
  20401. var _toolC = 0
  20402. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20403. let boolean2 = (_toolA > _toolC) ? true : false
  20404. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20405. this.$forceUpdate();
  20406. },
  20407. async checkLink(url) {
  20408. console.log(url)
  20409. let _url = url
  20410. try {
  20411. const response = await fetch(url);
  20412. if(!response.ok){
  20413. _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]))
  20414. }
  20415. console.log(response.ok)
  20416. } catch (error) {
  20417. console.error('Error checking link:', error);
  20418. // console.log(false)
  20419. _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]))
  20420. }
  20421. // console.log(_url)
  20422. return _url
  20423. },
  20424. getScoreList(){
  20425. let params = {
  20426. cid: this.id,
  20427. };
  20428. this.ajax
  20429. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20430. .then((res) => {
  20431. let result = res.data;
  20432. this.scoreList.datalist = result[0];
  20433. this.scoreList.isScoreList = result[1];
  20434. })
  20435. .catch((err) => {
  20436. console.error(err);
  20437. });
  20438. },
  20439. setClassRoomHelperWidth(width){
  20440. this.classRoomHelperWidth = width
  20441. },
  20442. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20443. this.$refs.choseWorksDetailDialogRef.open({
  20444. toolType:tooc,
  20445. tType: this.tType,
  20446. toolIndex: toolIndex
  20447. });
  20448. this.changeSplitScreenBehavior({
  20449. code: 1,
  20450. form: {
  20451. toolType:tooc,
  20452. toolIndex: toolIndex,
  20453. courseType: this.courseType,
  20454. taskCount: this.taskCount,
  20455. type: 0
  20456. }
  20457. });
  20458. },
  20459. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20460. this.$refs.statisticalAnalysisRef.open({
  20461. worksStudent: this.worksStudent[toolIndex],
  20462. tType: this.tType,
  20463. toolIndex: toolIndex
  20464. });
  20465. this.changeSplitScreenBehavior({
  20466. code: 2,
  20467. form: {
  20468. toolType:4,
  20469. courseType: this.courseType,
  20470. taskCount: this.taskCount,
  20471. toolIndex: toolIndex,
  20472. type: 0
  20473. }
  20474. });
  20475. },
  20476. statisticalAnalysisRefresh(toolIndex) {
  20477. this.$refs.statisticalAnalysisRef.refreshData({
  20478. worksStudent: this.worksStudent[toolIndex],
  20479. tType: this.tType,
  20480. toolIndex: toolIndex
  20481. });
  20482. },
  20483. async splitScreenBehavior(type = 0) {
  20484. // return;
  20485. if (this.splitScreenData.loading)
  20486. return this.$message.info(this.lang.ssOperationTooFast);
  20487. if (type == 0) {
  20488. //关闭分屏
  20489. this.splitScreenData.isOpen = false;
  20490. // this.splitScreenData.userId = "";
  20491. // this.splitScreenData.uid = "";
  20492. this.splitScreenData.behavior = null;
  20493. await this.updateSplitScreenData(1);
  20494. this.$message.success(this.lang.ssSplitScreenClosed);
  20495. this.studentFreePreview(false);
  20496. this.OpenJobPreview(false);
  20497. // this.followingMode(false);
  20498. } else if (type == 1) {
  20499. //开启分屏
  20500. this.splitScreenData.isOpen = true;
  20501. this.splitScreenData.userId = this.userid;
  20502. this.splitScreenData.uid = this.splitScreenData.myUid;
  20503. this.splitScreenData.behavior = null;
  20504. let status = await this.updateSplitScreenData(0);
  20505. this.changeSplitScreenBehavior({form:{}})
  20506. if (status == 1) {
  20507. this.$message.success(this.lang.ssSplitScreenOpened);
  20508. this.studentFreePreview(false);
  20509. this.OpenJobPreview(true);
  20510. // this.followingMode(true);
  20511. } else {
  20512. this.splitScreenData.isOpen = false;
  20513. this.splitScreenData.userId = "";
  20514. this.splitScreenData.uid = "";
  20515. this.splitScreenData.behavior = null;
  20516. this.$message.success(this.lang.ssSplitScreenOpenFailed);
  20517. }
  20518. }
  20519. },
  20520. enterFullScreen() {
  20521. let element = document.documentElement;
  20522. if (element.requestFullscreen) {
  20523. element.requestFullscreen();
  20524. } else if (element.mozRequestFullScreen) { /* Firefox */
  20525. element.mozRequestFullScreen();
  20526. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  20527. element.webkitRequestFullscreen();
  20528. } else if (element.msRequestFullscreen) { /* IE/Edge */
  20529. element.msRequestFullscreen();
  20530. }
  20531. },
  20532. exitFullScreen() {
  20533. if (document.exitFullscreen) {
  20534. document.exitFullscreen();
  20535. } else if (document.mozCancelFullScreen) { /* Firefox */
  20536. document.mozCancelFullScreen();
  20537. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  20538. document.webkitExitFullscreen();
  20539. } else if (document.msExitFullscreen) { /* IE/Edge */
  20540. document.msExitFullscreen();
  20541. }
  20542. },
  20543. confirmOpen(){
  20544. this.splitScreenData.isOpen = true;
  20545. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  20546. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  20547. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  20548. this.confirmOpenDig = false
  20549. if (!document.fullscreenElement) {
  20550. this.enterFullScreen();
  20551. }
  20552. // if (this.timer2) {
  20553. // clearInterval(this.timer2);
  20554. // this.timer2 = null;
  20555. // }
  20556. // this.timer2 = setInterval(()=> {
  20557. // this.getSplitScreenData();//获取分屏数据
  20558. // }, 5000);
  20559. this.$message.success(this.lang.ssSplitScreenEnabled);
  20560. },
  20561. // 获取分屏数据
  20562. getSplitScreenData() {
  20563. // return;
  20564. // if (this.tType != 1) return;
  20565. if(this.getSplitScreenDataLoading) return
  20566. this.getSplitScreenDataLoading = true
  20567. let params = {
  20568. cid: this.id
  20569. };
  20570. this.ajax
  20571. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20572. .then(async res => {
  20573. let data = res.data[0][0]["splitScreenData"];
  20574. console.log("获取了分屏数:", data);
  20575. if (data) {
  20576. data = JSON.parse(data);
  20577. if (
  20578. !this.splitScreenData.isOpen &&
  20579. data.isOpen &&
  20580. this.splitScreenData.myUid == data.uid
  20581. ) {
  20582. this.splitScreenData.isOpen = false;
  20583. this.splitScreenData.userId = "";
  20584. this.splitScreenData.uid = "";
  20585. this.splitScreenData.behavior = null;
  20586. await this.updateSplitScreenData(1);
  20587. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20588. this.confirmOpenDig = true
  20589. this.confirmOpenDigData = data
  20590. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20591. this.splitScreenData.isOpen = false;
  20592. this.splitScreenData.userId = "";
  20593. this.splitScreenData.uid = "";
  20594. this.splitScreenData.behavior = null;
  20595. this.$message.error(this.lang.ssSplitScreenEnded);
  20596. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20597. this.splitScreenData.isOpen = true;
  20598. this.splitScreenData.uid = data.uid;
  20599. this.splitScreenData.userId = data.userId;
  20600. this.splitScreenData.behavior = data.behavior;
  20601. }
  20602. this.doSplitScreenBehavior();
  20603. } else {
  20604. if (this.splitScreenData.isOpen) {
  20605. this.splitScreenData.isOpen = false;
  20606. this.splitScreenData.userId = "";
  20607. this.splitScreenData.uid = "";
  20608. this.splitScreenData.behavior = null;
  20609. this.$message.error(this.lang.ssSplitScreenEnded);
  20610. // if (this.timer2) {
  20611. // clearInterval(this.timer2);
  20612. // this.timer2 = null;
  20613. // }
  20614. // this.timer2 = setInterval(()=> {
  20615. // this.getSplitScreenData();//获取分屏数据
  20616. // }, 5000);
  20617. this.$confirm(this.lang.ssTeacherEndedSplitScreen, this.lang.ssPrompt, {
  20618. confirmButtonText: '确定', //确认按钮的文字
  20619. showCancelButton: false, //是否显示取消按钮
  20620. showClose: false, //是否显示关闭按钮
  20621. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  20622. type: "warning",
  20623. })
  20624. .then(() => {
  20625. if (document.fullscreenElement) {
  20626. this.exitFullScreen();
  20627. }
  20628. })
  20629. .catch(() => {});
  20630. }
  20631. }
  20632. this.getSplitScreenDataLoading = false
  20633. })
  20634. .catch(e => {
  20635. this.getSplitScreenDataLoading = false
  20636. console.log("获取分屏数出错:", e);
  20637. });
  20638. },
  20639. // 操作
  20640. doSplitScreenBehavior() {
  20641. if (
  20642. this.splitScreenData.isOpen &&
  20643. this.splitScreenData.uid != this.splitScreenData.myUid
  20644. ) {
  20645. let behavior = this.splitScreenData.behavior;
  20646. if (behavior) {
  20647. // console.log('behavior',behavior);
  20648. // this.toolindex = behavior.form.toolType
  20649. // 初始状态
  20650. if (behavior.code === 99) {
  20651. //初始化
  20652. this.fullDialogVisible = false;
  20653. if(this.$refs.choseWorksDetailDialogRef.show){
  20654. this.$refs.choseWorksDetailDialogRef.close();
  20655. }
  20656. if(this.$refs.statisticalAnalysisRef.show){
  20657. this.$refs.statisticalAnalysisRef.close();
  20658. }
  20659. }
  20660. // 文件列表
  20661. if (behavior.code === 0) {
  20662. //开启内容列表弹窗
  20663. this.checkFileFull1(behavior.form.t, behavior.form.f);
  20664. }else{
  20665. this.fullDialogVisible = false;
  20666. }
  20667. // 打开工具
  20668. if (behavior.code === 1) {
  20669. //关于选择题的作业详细的操作
  20670. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20671. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20672. this.courseType = behavior.form.courseType;
  20673. this.taskCount = behavior.form.taskCount;
  20674. }
  20675. this.$nextTick(() => {
  20676. if (this.$refs.choseWorksDetailDialogRef.show) {
  20677. //已经打开了
  20678. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  20679. } else {
  20680. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  20681. }
  20682. });
  20683. }else{
  20684. this.$refs.choseWorksDetailDialogRef.close()
  20685. }
  20686. // 问卷调查
  20687. if(behavior.code === 2){
  20688. if(this.$refs.statisticalAnalysisRef.show){
  20689. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20690. }else{
  20691. this.$refs.statisticalAnalysisRef.open({
  20692. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20693. tType: this.tType,
  20694. toolIndex: behavior.form.toolIndex
  20695. });
  20696. }
  20697. }else{
  20698. this.$refs.statisticalAnalysisRef.close();
  20699. }
  20700. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  20701. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  20702. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  20703. // console.log('behavior.form',behavior.form.courseType,behavior.form.taskCount,behavior.form.toolType);
  20704. // console.log('666666',this.courseType,this.taskCount,this.toolindex);
  20705. if (behavior.form.courseType != this.courseType ||
  20706. behavior.form.taskCount != this.taskCount ||
  20707. behavior.form.toolType != this.toolindex
  20708. ) {
  20709. var a = document.scrollingElement;
  20710. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  20711. if (target) {
  20712. target.scrollIntoView(true);
  20713. setTimeout(()=>{
  20714. let scrollBody = document.querySelector('.body_student').parentElement
  20715. scrollBody.scrollTop = scrollBody.scrollTop - 100
  20716. }, 0);
  20717. // setTimeout(() => {
  20718. // a.scrollTop = 0
  20719. // }, 0);
  20720. }
  20721. }
  20722. if(this.courseType !=behavior.form.courseType){
  20723. this.courseType = behavior.form.courseType;
  20724. }
  20725. if(this.taskCount !=behavior.form.taskCount){
  20726. this.taskCount = behavior.form.taskCount;
  20727. }
  20728. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  20729. this.toolindex = behavior.form.toolType;
  20730. }
  20731. // if(behavior.form.navId){
  20732. // this.navId = behavior.form.navId
  20733. // }
  20734. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  20735. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  20736. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  20737. this.getCourseDetail()
  20738. }
  20739. this.setContent2(false)
  20740. }
  20741. } else {
  20742. }
  20743. }
  20744. },
  20745. // 修改分屏数据
  20746. updateSplitScreenData(empty = 0) {
  20747. return new Promise(resolve => {
  20748. if(this.userid!==this.courseDetail.userid){
  20749. if(!this.courseDetail.userid){
  20750. return setTimeout(()=>{
  20751. this.updateSplitScreenData(empty)
  20752. },2000)
  20753. }
  20754. return;
  20755. };
  20756. if (
  20757. this.splitScreenData.uid == this.splitScreenData.myUid &&
  20758. this.splitScreenData.userId == this.userid
  20759. ) {
  20760. this.splitScreenData.loading = true;
  20761. let params = [
  20762. {
  20763. cid: this.id,
  20764. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  20765. }
  20766. ];
  20767. this.ajax
  20768. .post(
  20769. this.$store.state.api + "update_courseSplitScreenData",
  20770. params
  20771. )
  20772. .then(res => {
  20773. this.splitScreenData.loading = false;
  20774. if (res.data == 1) {
  20775. resolve(1);
  20776. console.log("修改分屏数据成功");
  20777. }
  20778. })
  20779. .catch(e => {
  20780. this.splitScreenData.loading = false;
  20781. console.log("修改分屏数据失败", e);
  20782. resoleve(0);
  20783. });
  20784. } else if (empty == 2 && this.tType == 1) {
  20785. console.log("清空清空清空清空")
  20786. let params = [
  20787. {
  20788. cid: this.id,
  20789. nData: ""
  20790. }
  20791. ];
  20792. return this.ajax
  20793. .post(
  20794. this.$store.state.api + "update_courseSplitScreenData",
  20795. params
  20796. )
  20797. .then(_ => resolve(1))
  20798. .catch(_ => resolve(0));
  20799. } else {
  20800. return resolve(0);
  20801. }
  20802. });
  20803. },
  20804. // 修改分屏数据
  20805. changeSplitScreenBehavior(newValue) {
  20806. if (
  20807. this.splitScreenData.isOpen &&
  20808. this.splitScreenData.uid == this.splitScreenData.myUid
  20809. ) {
  20810. let _behavior = null;
  20811. if(!newValue){
  20812. _behavior = {}
  20813. }else{
  20814. _behavior = newValue
  20815. }
  20816. if(_behavior.form){
  20817. _behavior.form.taskCount = this.taskCount;
  20818. _behavior.form.courseType = this.courseType
  20819. }else{
  20820. _behavior.form = {
  20821. taskCount:this.taskCount,
  20822. courseType:this.courseType,
  20823. }
  20824. }
  20825. this.splitScreenData.behavior = _behavior;
  20826. this.updateSplitScreenData(0);
  20827. }
  20828. },
  20829. studentFreePreview(flag) {
  20830. this.IsLookOpen = flag;
  20831. this.updateLookOpen();
  20832. this.followingMode(flag)
  20833. },
  20834. OpenJobPreview(flag) {
  20835. this.sIsOpen = flag;
  20836. this.updateSLook();
  20837. },
  20838. followingMode(flag) {
  20839. this.IsFollow = flag;
  20840. this.updateFollow();
  20841. },
  20842. StulookMode(flag) {
  20843. this.IsStulook = flag;
  20844. this.updateIsStulook();
  20845. },
  20846. async doSyncClassData(){
  20847. let userArray = ['6fbc6471-1d48-11ed-8c78-005056b86db5','333d0dfc-1cd9-11ef-bee5-005056b86db5','6fbce5ef-1d48-11ed-8c78-005056b86db5','66feffcc-ad35-11ed-b13d-005056b86db5']
  20848. if (this.courseDetail.userid == this.userid && (this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840' || userArray.includes(this.userid))) {
  20849. let endTime = await this.getServerTime()
  20850. let courseTime = Math.max(1, Math.ceil((new Date(endTime) - new Date(this.startTime)) / (1000 * 60)))
  20851. this.syncClassData({
  20852. courseId: this.id,
  20853. title: this.courseDetail.title,
  20854. ctitle: this.courseDetail.copyTitle || this.courseDetail.title,
  20855. courseGrade: this.tcid2 ? this.tcid2 : '',
  20856. courseTime: courseTime,
  20857. startTime: this.startTime,
  20858. endTime: endTime,
  20859. })
  20860. console.log('同步数据')
  20861. }
  20862. },
  20863. resetIdleOp(){
  20864. this.$message({
  20865. message: this.lang.ssLongTimeNoOperation,
  20866. type: "warning",
  20867. });
  20868. this.goTo(
  20869. '/courseDetail?userid=' +
  20870. this.userid +
  20871. '&oid=' +
  20872. this.oid +
  20873. '&org=' +
  20874. this.org +
  20875. '&cid=' +
  20876. this.id +
  20877. '&courseId=' +
  20878. this.id +
  20879. '&tType=' +
  20880. this.tType +
  20881. '&screenType=' +
  20882. this.screenType
  20883. )
  20884. }
  20885. },
  20886. directives: {
  20887. // 使用局部注册指令的方式
  20888. resize: {
  20889. // 指令的名称
  20890. bind(el, binding) {
  20891. // el为绑定的元素,binding为绑定给指令的对象
  20892. let width = "",
  20893. height = "";
  20894. function isReize() {
  20895. const style = document.defaultView.getComputedStyle(el);
  20896. if (width !== style.width || height !== style.height) {
  20897. binding.value(); // 关键
  20898. }
  20899. width = style.width;
  20900. height = style.height;
  20901. }
  20902. el.__vueSetInterval__ = setInterval(isReize, 300);
  20903. },
  20904. unbind(el) {
  20905. clearInterval(el.__vueSetInterval__);
  20906. },
  20907. },
  20908. autoHeight: {
  20909. update(el, binding) {
  20910. const { value } = binding
  20911. if (value && typeof value === 'number') {
  20912. el.style.height = `${value}px`
  20913. } else {
  20914. el.style.height = 'auto'
  20915. }
  20916. },
  20917. componentUpdated(el) {
  20918. el.style.height = `${el.scrollHeight}px`
  20919. },
  20920. },
  20921. },
  20922. beforeDestroy() {
  20923. window.onresize = null;
  20924. clearInterval(this.timer);
  20925. this.timer = null;
  20926. clearInterval(this.timer2);
  20927. this.timer2 = null;
  20928. clearInterval(this.opertimer);
  20929. this.opertimer = null;
  20930. this.updateSplitScreenData(1);
  20931. this.doSyncClassData();
  20932. clearTimeout(this.timeoutPan);
  20933. this.timeoutPan = null;
  20934. this.stopIdleDetection(this.resetIdleOp);
  20935. },
  20936. computed: {
  20937. renderedFormula2() {
  20938. return function(val){
  20939. if (this.lang.lang == 'com') {
  20940. return val;
  20941. }
  20942. // 处理换行符和HTML实体
  20943. const normalized = val
  20944. .replace(/&amp;/g, '&')
  20945. .replace(/<br\/?>/g, '\n');
  20946. // 匹配行内公式($...$)和块级公式($$...$$)
  20947. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  20948. try {
  20949. return katex.renderToString(expr.trim(), {
  20950. displayMode: false,
  20951. throwOnError: false,
  20952. macros: {
  20953. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  20954. }
  20955. });
  20956. } catch (e) {
  20957. console.warn('KaTeX渲染失败:', e);
  20958. return `<span style="color:red">${expr}</span>`;
  20959. }
  20960. })
  20961. }
  20962. },
  20963. renderedFormula() {
  20964. return function(val){
  20965. if (this.lang.lang == 'com') {
  20966. return val;
  20967. }
  20968. try {
  20969. // 判断是否含有HTML标签,<tag ...>...</tag>
  20970. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  20971. if (!hasTag) {
  20972. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  20973. // 纯文本,整体渲染
  20974. try {
  20975. return katex.renderToString(val.trim(), {
  20976. throwOnError: false,
  20977. strict: false,
  20978. output: "htmlAndMathml"
  20979. });
  20980. } catch (e) {
  20981. return val; // 渲染失败原样输出
  20982. }
  20983. } else {
  20984. // 有标签,对每个标签内容渲染
  20985. return val.replace(
  20986. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  20987. (match, tag, attrs, inner) => {
  20988. let html;
  20989. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  20990. try {
  20991. html = katex.renderToString(inner.trim(), {
  20992. throwOnError: false,
  20993. strict: false,
  20994. output: "htmlAndMathml"
  20995. });
  20996. } catch (e) {
  20997. html = inner;
  20998. }
  20999. return `<${tag}${attrs}>${html}</${tag}>`;
  21000. }
  21001. );
  21002. }
  21003. } catch (e) {
  21004. console.error('KaTeX渲染错误:', e);
  21005. return val;
  21006. }
  21007. }
  21008. },
  21009. isAndroid() {
  21010. return /Android/i.test(navigator.userAgent);
  21011. },
  21012. contentConvent() {
  21013. return function (c) {
  21014. return c
  21015. ? c
  21016. .replaceAll(/\r\n/g, "<br/>")
  21017. .replaceAll(/\n/g, "<br/>")
  21018. .replaceAll(/\s/g, "&nbsp")
  21019. : "";
  21020. };
  21021. },
  21022. commentRight(){
  21023. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21024. return "35px";
  21025. }
  21026. return `calc(${this.classRoomHelperWidth} + 5px)`
  21027. // if(this.$refs["classRoomHelperRef"].type==0){
  21028. // return "100px";
  21029. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21030. // return "502px"
  21031. // }else{
  21032. // return "0px"
  21033. // }
  21034. },
  21035. checkUpload() {
  21036. return function () {
  21037. var studentK = [];
  21038. if (this.plworkFile.length > 0) {
  21039. for (var z = 0; z < this.plworkFile.length; z++) {
  21040. studentK.push(this.plworkFile[z].username);
  21041. }
  21042. studentK = studentK.join(",");
  21043. }
  21044. var a = this.uploadStudentJuri.filter((el) => {
  21045. return studentK.indexOf(el.userid) == -1;
  21046. });
  21047. return a;
  21048. };
  21049. },
  21050. getSName() {
  21051. return function (name) {
  21052. var check = name;
  21053. this.uploadStudentJuri.forEach((el) => {
  21054. if (el.userid == check) {
  21055. check = el.name ? el.name : el.username;
  21056. }
  21057. });
  21058. return check;
  21059. };
  21060. },
  21061. getImgList() {
  21062. return function (val) {
  21063. let srcList = []; // 定义一个数组用来接收后面的img地址
  21064. val.replace(
  21065. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21066. function (match, capture) {
  21067. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21068. srcList.push(capture);
  21069. }
  21070. );
  21071. return srcList;
  21072. };
  21073. },
  21074. retrnToolHeight(){
  21075. return function (tool) {
  21076. var _tool = document.querySelectorAll('#'+tool)[0]
  21077. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21078. };
  21079. },
  21080. Correct() {
  21081. return function (c) {
  21082. let w = "";
  21083. let a = this.correctWord;
  21084. for(var k = 0;k<a.length;k++){
  21085. //diffWordsWithSpace
  21086. if(a.length > 1){
  21087. if(a[k].added == true){
  21088. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21089. }else if(a[k].removed == true){
  21090. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21091. }else{
  21092. w += '<span>' + a[k].value + '</span>';
  21093. }
  21094. }else{
  21095. w = c
  21096. }
  21097. //diffChars方法
  21098. // if(a.length > 1){
  21099. // if(w == ""){
  21100. // if(a[k].added == true){
  21101. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21102. // }else if(a[k].removed == true){
  21103. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21104. // }
  21105. // }else{
  21106. // if(k == a.length - 1){
  21107. // if(a[k].added == true){
  21108. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21109. // }else if(a[k].removed == true){
  21110. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21111. // }
  21112. // }else{
  21113. // if(a[k].added == true){
  21114. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21115. // }else if(a[k].removed == true){
  21116. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21117. // }
  21118. // }
  21119. // }
  21120. // }else{
  21121. // w = c
  21122. // }
  21123. }
  21124. c = w;
  21125. return c;
  21126. };
  21127. },
  21128. },
  21129. async mounted() {
  21130. // this.setoTime("1");
  21131. this.startTime = await this.getServerTime()
  21132. this.timeoutPan = setTimeout(() => {
  21133. this.startIdleDetection(this.resetIdleOp);
  21134. }, 40 * 60 * 1000)
  21135. // if (this.tType == 1) {
  21136. // // 开局关闭学生查看内容
  21137. // this.StulookMode(false)
  21138. // // 开局打开跟随模式
  21139. // this.followingMode(true)
  21140. // }
  21141. document.body.addEventListener("click", (e) => {
  21142. if (this.isUpdateToolDetail1) {
  21143. this.updateToolDetail(this.toolDetailIndex);
  21144. }
  21145. });
  21146. setTimeout(() => {
  21147. this.doSyncClassData();
  21148. }, 1000);
  21149. this.getCode2()
  21150. this.setOperationTime();
  21151. this.selectEva();
  21152. this.getCourseDetail(10);
  21153. this.selectCount();
  21154. this.getHomeWork();
  21155. this.selectUser();
  21156. this.getAIJ();
  21157. this.updateSplitScreenData(2);
  21158. this.splitScreenData.myUid = uuidv4();
  21159. this.contentDialog = false;
  21160. this.setContent2(true);
  21161. if (this.tType == 4) {
  21162. this.pzDialog = true;
  21163. this.selectPz();
  21164. }
  21165. // 获取评分列表
  21166. this.getScoreList()
  21167. document.scrollingElement.scrollTop = 0;
  21168. window.addEventListener("resize", () => {
  21169. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21170. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21171. if (this.showType == 2 || this.showType == 3) {
  21172. document.getElementsByClassName("navBox")[0].style.height =
  21173. a - 40 + 0+ "px";
  21174. } else {
  21175. document.getElementsByClassName("navBox")[0].style.height =
  21176. a - 40 + "px";
  21177. }
  21178. });
  21179. // let _this = this;
  21180. // setTimeout(() => {
  21181. // _this.vedioTime = [];
  21182. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21183. // _this.vedioTime[i] = document.getElementsByClassName(
  21184. // "vjs-duration-display"
  21185. // )[i].textContent;
  21186. // }
  21187. // }, 1000);
  21188. try{
  21189. if (this.screenType == 2) {
  21190. window.topU.postMessage({ allScreen: 4 }, "*");
  21191. } else if (this.screenType == 3) {
  21192. window.topU.postMessage({ allScreen: 5 }, "*");
  21193. } else if (this.screenType == 1) {
  21194. window.topU.postMessage({ allScreen: 6 }, "*");
  21195. }
  21196. }catch(e){
  21197. console.log(e)
  21198. }
  21199. },
  21200. };
  21201. </script>
  21202. <style scoped>
  21203. @media screen and (max-width: 1280px) {
  21204. /* .courseIndex > div:first-child(2) {
  21205. width: 15% !important;
  21206. } */
  21207. /* .navText {
  21208. width: 120px !important;
  21209. } */
  21210. .evaCss {
  21211. flex-direction: column !important;
  21212. align-items: center !important;
  21213. }
  21214. .elist_input {
  21215. width: 90% !important;
  21216. }
  21217. .dialog_diy1 >>> .el-dialog {
  21218. width: 100% !important;
  21219. }
  21220. .rightWidthCss {
  21221. width: 100% !important;
  21222. }
  21223. .dialog_diy3 >>> .el-dialog {
  21224. width: 100% !important;
  21225. }
  21226. .addToolCss {
  21227. right: 0 !important;
  21228. width: 100% !important;
  21229. min-width: unset !important;
  21230. }
  21231. }
  21232. .evaCssMax {
  21233. flex-direction: column !important;
  21234. align-items: center !important;
  21235. }
  21236. .dialog_diy >>> .el-dialog {
  21237. margin-top: 10vh !important;
  21238. }
  21239. .body_student {
  21240. width: 77%;
  21241. height: 100%;
  21242. position: absolute;
  21243. left: 22%;
  21244. top: 0;
  21245. }
  21246. .student_head {
  21247. width: 100%;
  21248. margin: 20px auto 0;
  21249. padding-bottom: 20px;
  21250. display: flex;
  21251. flex-direction: column;
  21252. flex-wrap: nowrap;
  21253. align-items: flex-start;
  21254. justify-content: flex-start;
  21255. }
  21256. .pb_left {
  21257. width: 15%;
  21258. margin-right: 10px;
  21259. background: rgb(255, 255, 255);
  21260. position: fixed;
  21261. height: calc(100% - 40px);
  21262. border-radius: 20px;
  21263. padding-bottom: 15px;
  21264. box-sizing: border-box;
  21265. }
  21266. .wheel > img,
  21267. .project > img,
  21268. .star > img,
  21269. .evaluate > img,
  21270. .up_photo > img,
  21271. .chapter_add > img,
  21272. .deleteWord > img,
  21273. .question > img,
  21274. .homework > img {
  21275. width: 100%;
  21276. height: 100%;
  21277. }
  21278. .upCover > img {
  21279. width: 131px;
  21280. height: 69px;
  21281. object-fit: cover;
  21282. }
  21283. .upCover {
  21284. width: calc(100% / 3.5);
  21285. position: relative;
  21286. margin: 0 15px 10px 0;
  21287. display: flex;
  21288. flex-direction: column;
  21289. flex-wrap: nowrap;
  21290. justify-content: center;
  21291. align-content: center;
  21292. align-items: center;
  21293. height: fit-content;
  21294. }
  21295. .upCover2 {
  21296. width: 100%;
  21297. position: relative;
  21298. margin: 0 15px 10px 0;
  21299. display: flex;
  21300. flex-direction: column;
  21301. flex-wrap: nowrap;
  21302. justify-content: center;
  21303. align-content: center;
  21304. align-items: center;
  21305. }
  21306. .upCover2 > img {
  21307. width: 100%;
  21308. height: 90px;
  21309. object-fit: contain;
  21310. }
  21311. .chapter_add {
  21312. width: 120px;
  21313. position: relative;
  21314. text-align: center;
  21315. }
  21316. .isAddThings {
  21317. margin-top: 20px;
  21318. position: relative;
  21319. text-align: center;
  21320. background: #f7f8fa;
  21321. height: 90px;
  21322. width: 90px;
  21323. display: flex;
  21324. flex-direction: column;
  21325. justify-content: center;
  21326. }
  21327. .deleteWord {
  21328. width: 22px;
  21329. height: 22px;
  21330. position: absolute;
  21331. right: -5px;
  21332. top: -5px;
  21333. cursor: pointer;
  21334. }
  21335. .box_course {
  21336. /* width: 60%; */
  21337. width: calc(100% - 300px);
  21338. }
  21339. .wheel {
  21340. width: 100%;
  21341. /* height: 100%; */
  21342. height: 650px;
  21343. }
  21344. .right_box {
  21345. display: flex;
  21346. flex-direction: column;
  21347. margin-left: 30px;
  21348. justify-content: space-around;
  21349. }
  21350. .right_box_title {
  21351. font-size: 23px;
  21352. }
  21353. .people {
  21354. display: flex;
  21355. }
  21356. .student_body {
  21357. width: 100%;
  21358. margin: 0 auto;
  21359. margin-top: 10px;
  21360. padding: 0 0 20px;
  21361. }
  21362. .study_top {
  21363. margin-top: 100px;
  21364. width: 100%;
  21365. height: auto;
  21366. padding-bottom: 20px;
  21367. margin-left: 2px;
  21368. min-height: 90%;
  21369. }
  21370. .study_top .checkbox {
  21371. display: flex;
  21372. align-items: center;
  21373. padding: 15px 0 15px 30px;
  21374. flex: 0 0 auto;
  21375. font-weight: bold;
  21376. border-bottom: 1px solid #eee;
  21377. }
  21378. .study_top .check {
  21379. padding-bottom: 5px;
  21380. text-align: center;
  21381. cursor: pointer;
  21382. height: 30px;
  21383. box-sizing: border-box;
  21384. display: flex;
  21385. }
  21386. .study_top .checked {
  21387. border-bottom: 4px solid #3fc6a0;
  21388. padding-bottom: 5px;
  21389. color: #3fc6a0;
  21390. display: flex;
  21391. height: 35px;
  21392. }
  21393. .study_top .checked > div,
  21394. .study_top .check > div {
  21395. margin-right: 5px;
  21396. }
  21397. .videoTop {
  21398. display: flex;
  21399. flex-direction: row;
  21400. justify-content: space-between;
  21401. background: #fff;
  21402. align-items: center;
  21403. width: 95%;
  21404. padding: 20px;
  21405. }
  21406. .filebox {
  21407. display: flex;
  21408. flex-wrap: wrap;
  21409. flex-direction: column;
  21410. padding: 0 0 5px;
  21411. position: relative;
  21412. }
  21413. .filebox:before {
  21414. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21415. position: absolute;
  21416. top: 20px;
  21417. left: 13px;
  21418. border-left: 2px dotted #cad1dc;
  21419. height: calc(100% - 15px);
  21420. }
  21421. .toolHeng2 > div:last-child::before {
  21422. height: calc(100% - 43px);
  21423. }
  21424. .filebox .tooldetail {
  21425. width: calc(100%);
  21426. margin: 0px 12px;
  21427. padding: 12px;
  21428. line-height: 30px;
  21429. word-break: break-word;
  21430. background: #ffffff;
  21431. border-radius: 8px 8px 8px 8px;
  21432. opacity: 1;
  21433. border: 1px solid #cad1dc;
  21434. overflow:hidden;
  21435. box-sizing:border-box;
  21436. }
  21437. .file {
  21438. display: flex;
  21439. flex-direction: column;
  21440. align-items: center;
  21441. justify-content: center;
  21442. cursor: pointer;
  21443. width: 200px;
  21444. }
  21445. .file div {
  21446. margin-top: 10px;
  21447. width: 150px;
  21448. text-align: center;
  21449. overflow: hidden;
  21450. white-space: nowrap;
  21451. text-overflow: ellipsis;
  21452. }
  21453. .media {
  21454. display: flex;
  21455. flex-direction: column;
  21456. align-items: center;
  21457. justify-content: center;
  21458. margin: 0 20px 20px 0;
  21459. cursor: pointer;
  21460. margin: 12px 0 5px 15px;
  21461. overflow: hidden;
  21462. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21463. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21464. box-sizing: border-box;
  21465. }
  21466. .media img {
  21467. height: 90px;
  21468. width: 160px;
  21469. object-fit: cover;
  21470. }
  21471. .media .title {
  21472. padding: 5px;
  21473. text-align: left;
  21474. width: 100%;
  21475. box-sizing: border-box;
  21476. }
  21477. .media .btn {
  21478. width: 100%;
  21479. height: 35px;
  21480. line-height: 35px;
  21481. color: #fff;
  21482. background: #606060;
  21483. text-align: center;
  21484. overflow: hidden;
  21485. white-space: nowrap;
  21486. text-overflow: ellipsis;
  21487. }
  21488. .detail_content_top {
  21489. width: 100%;
  21490. padding: 25px 0 25px 0;
  21491. }
  21492. .detail_title {
  21493. text-align: center;
  21494. font-size: 24px;
  21495. }
  21496. .detail_time {
  21497. font-size: 13px;
  21498. padding: 15px 0 0 40px;
  21499. }
  21500. .detail_content {
  21501. line-height: 2pc;
  21502. width: 90%;
  21503. margin: 0 auto;
  21504. padding-top: 30px;
  21505. text-indent: 30px;
  21506. overflow: auto;
  21507. height: 200px;
  21508. }
  21509. .score_box >>> .el-rate {
  21510. margin-left: 10px;
  21511. }
  21512. .dialog_change >>> .el-dialog {
  21513. border-radius: 5px;
  21514. }
  21515. .dialog_change >>> .el-dialog__header {
  21516. background: #f2f2f2;
  21517. text-align: center;
  21518. }
  21519. .dialog_change >>> .el-dialog__title {
  21520. line-height: 5px;
  21521. }
  21522. .dialog_change >>> .el-dialog__body {
  21523. background: #fff;
  21524. padding: 10px 20px;
  21525. }
  21526. .score_box {
  21527. display: flex;
  21528. align-items: center;
  21529. margin-bottom: 18px;
  21530. margin-top: 20px;
  21531. }
  21532. .up_photo {
  21533. width: 120px;
  21534. cursor: pointer;
  21535. margin-top: 10px;
  21536. }
  21537. .up_photo2 {
  21538. width: 180px;
  21539. box-sizing: border-box;
  21540. min-width: 180px;
  21541. height: 180px;
  21542. max-height: 180px;
  21543. min-height: 180px;
  21544. cursor: pointer;
  21545. display: flex;
  21546. flex-direction: column;
  21547. align-items: center;
  21548. justify-content: center;
  21549. background: rgb(242, 246, 255);
  21550. /* padding: 25px; */
  21551. margin-bottom: 10px;
  21552. }
  21553. .up_photo2 img {
  21554. width: 50%;
  21555. height: auto;
  21556. }
  21557. .up_photo2 span {
  21558. color: #898989;
  21559. }
  21560. .plworkBox {
  21561. display: flex;
  21562. align-items: center;
  21563. margin-top: 10px;
  21564. flex-wrap: wrap;
  21565. }
  21566. .upload_send {
  21567. margin: 30px auto 30px;
  21568. width: 60%;
  21569. background: #3681fc;
  21570. text-align: center;
  21571. height: 35px;
  21572. line-height: 35px;
  21573. color: #fff;
  21574. border-radius: 5px;
  21575. cursor: pointer;
  21576. }
  21577. .marginT {
  21578. margin-top: 20px;
  21579. }
  21580. .cd_content_steps {
  21581. display: flex;
  21582. width: 90%;
  21583. justify-content: space-around;
  21584. border-top: 1px solid #eeeeee;
  21585. }
  21586. .cd_steps_box {
  21587. display: flex;
  21588. justify-content: center;
  21589. align-items: center;
  21590. flex-direction: column;
  21591. cursor: pointer;
  21592. }
  21593. .first {
  21594. display: flex;
  21595. align-items: center;
  21596. margin: 15px 0 20px 0;
  21597. font-size: 20px;
  21598. }
  21599. .first > div:nth-child(2) {
  21600. font-size: 16px !important;
  21601. padding-left: 10px;
  21602. line-height: 26px;
  21603. box-sizing: border-box;
  21604. }
  21605. .blue_box_one {
  21606. text-align: center;
  21607. color: #fff;
  21608. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  21609. border-radius: 7px;
  21610. margin: 10px;
  21611. cursor: pointer;
  21612. width: 95%;
  21613. height: 45px;
  21614. display: flex;
  21615. flex-direction: row;
  21616. justify-content: flex-start;
  21617. align-items: center;
  21618. }
  21619. .blue_box_one > div:nth-child(1) {
  21620. line-height: 30px;
  21621. margin: 0 5px 0 10px;
  21622. width: 30%;
  21623. min-width: 70px;
  21624. border-radius: 4px;
  21625. }
  21626. .blue_box_one > div:nth-child(2) {
  21627. white-space: nowrap;
  21628. text-overflow: ellipsis;
  21629. overflow: hidden;
  21630. word-break: break-all;
  21631. width: 70%;
  21632. text-align: left;
  21633. margin-right: 10px;
  21634. max-width: calc(100% - 85px);
  21635. }
  21636. .blue_box_one > div:nth-child(2):hover {
  21637. overflow: hidden;
  21638. text-overflow: ellipsis;
  21639. white-space: nowrap;
  21640. cursor: pointer;
  21641. }
  21642. .upFile {
  21643. margin: 0 auto;
  21644. width: 120px;
  21645. background: #3681fc;
  21646. color: #fff;
  21647. height: 30px;
  21648. text-align: center;
  21649. line-height: 30px;
  21650. border-radius: 5px;
  21651. font-size: 14px;
  21652. cursor: pointer;
  21653. }
  21654. .courseTitle {
  21655. width: 85%;
  21656. margin: 10px auto 26px auto;
  21657. display: flex;
  21658. flex-direction: row;
  21659. align-items: center;
  21660. justify-content: space-between;
  21661. text-align: center;
  21662. }
  21663. .courseTitle .ctitle {
  21664. font-size: 20px;
  21665. font-weight: bold;
  21666. color: #0e1e33;
  21667. white-space: nowrap;
  21668. overflow: hidden;
  21669. text-overflow: ellipsis;
  21670. }
  21671. .inviteBox {
  21672. font-size: 14px;
  21673. /* margin-top: 5px; */
  21674. color: #00000099;
  21675. text-align: center;
  21676. }
  21677. .courseTitle >>> .el-tooltip {
  21678. width: 100%;
  21679. white-space: nowrap;
  21680. overflow: hidden;
  21681. text-overflow: ellipsis;
  21682. word-break: break-word;
  21683. }
  21684. .ml {
  21685. margin-left: 20px;
  21686. color: #5b7dba;
  21687. border-left: 3px solid #5b7dba;
  21688. padding-left: 5px;
  21689. font-weight: bold;
  21690. }
  21691. .return {
  21692. width: 2rem;
  21693. height: 2rem;
  21694. cursor: pointer;
  21695. }
  21696. .return > img {
  21697. width: 100%;
  21698. height: 100%;
  21699. }
  21700. .returnBtn {
  21701. /* width: 86px;
  21702. height: 36px; */
  21703. background: #3681fc;
  21704. border-radius: 4px;
  21705. color: #fff;
  21706. text-align: center;
  21707. padding: 8px 10px;
  21708. /* line-height: 36px; */
  21709. margin-right: 20px;
  21710. cursor: pointer;
  21711. font-size: 14px;
  21712. font-weight: 400;
  21713. display: flex;
  21714. flex-direction: row;
  21715. flex-wrap: nowrap;
  21716. align-items: center;
  21717. justify-content: center;
  21718. }
  21719. .reBtnIcon,
  21720. .commentIcon,
  21721. .vedioIcon,
  21722. .vedioIcon1 {
  21723. /* width: 36px; */
  21724. height: 36px;
  21725. border-radius: 4px;
  21726. position: relative;
  21727. /* background: #e0eafb; */
  21728. background: #0061ff;
  21729. cursor: pointer;
  21730. margin-right: 12px;
  21731. display: flex;
  21732. align-items: center;
  21733. padding: 0 10px;
  21734. box-sizing: border-box;
  21735. font-size: 14px;
  21736. color: #fff;
  21737. }
  21738. .reBtnIcon::before,
  21739. .commentIcon::before,
  21740. .vedioIcon::before,
  21741. .vedioIcon1::before {
  21742. content: "";
  21743. display: block;
  21744. background-size: 100% 100%;
  21745. background-repeat: no-repeat;
  21746. width: 20px;
  21747. height: 20px;
  21748. margin-right: 5px;
  21749. /* position: absolute; */
  21750. /* top: 8px;
  21751. left: 8px; */
  21752. }
  21753. .vedioIcon1 {
  21754. background: #f63564;
  21755. }
  21756. .reBtnIcon::before {
  21757. background-image: url("../assets/icon/newIcons/refresh.png");
  21758. }
  21759. .commentIcon::before {
  21760. background-image: url("../assets/icon/newIcons/comment.png");
  21761. }
  21762. .vedioIcon::before {
  21763. background-image: url("../assets/icon/newIcons/transcribe.png");
  21764. }
  21765. .vedioIcon1::before {
  21766. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  21767. background-image: url("../assets/icon/newIcons/transcribe.png");
  21768. }
  21769. .tool {
  21770. display: flex;
  21771. flex-direction: column;
  21772. flex-wrap: nowrap;
  21773. width: 13%;
  21774. margin: 0 30px;
  21775. align-items: center;
  21776. position: relative;
  21777. padding: 10px 25px;
  21778. cursor: pointer;
  21779. }
  21780. .whiteBIcon {
  21781. width: 150px;
  21782. }
  21783. .whiteBIcon > img {
  21784. width: 100%;
  21785. height: 100%;
  21786. }
  21787. .mask {
  21788. background-color: rgba(0, 0, 0, 0);
  21789. position: fixed;
  21790. top: 0;
  21791. left: 0;
  21792. width: 100%;
  21793. height: 100%;
  21794. z-index: 20000;
  21795. display: flex;
  21796. align-items: center;
  21797. justify-content: center;
  21798. }
  21799. .progressBox {
  21800. width: 500px;
  21801. height: 180px;
  21802. background: #fff;
  21803. border-radius: 10px;
  21804. box-shadow: 0 0 6px 1px #bfbfbf;
  21805. display: flex;
  21806. align-items: center;
  21807. justify-content: center;
  21808. flex-direction: column;
  21809. position: relative;
  21810. color: #6c6c6c;
  21811. }
  21812. .progressBox >>> .el-progress-bar__outer {
  21813. background-color: #d1dfff !important;
  21814. }
  21815. .progressBox .lbox {
  21816. height: 50px;
  21817. font-size: 19px;
  21818. display: flex;
  21819. align-items: center;
  21820. color: #747474;
  21821. }
  21822. .progressBox .lbox img {
  21823. width: 40px;
  21824. margin-right: 20px;
  21825. }
  21826. .closeCss {
  21827. position: absolute;
  21828. top: 8px;
  21829. right: 8px;
  21830. cursor: pointer;
  21831. width: 20px;
  21832. height: 20px;
  21833. }
  21834. .closeCss > img {
  21835. width: 100%;
  21836. height: 100%;
  21837. }
  21838. .uploadVedio {
  21839. display: flex;
  21840. flex-direction: column;
  21841. flex-wrap: nowrap;
  21842. justify-content: center;
  21843. align-items: center;
  21844. margin: 0 15px 10px 0;
  21845. }
  21846. .uploadVedio > img {
  21847. width: 30px;
  21848. height: 30px;
  21849. }
  21850. .uploadVedio > span {
  21851. white-space: nowrap;
  21852. overflow: hidden;
  21853. text-overflow: ellipsis;
  21854. width: 75px;
  21855. margin-top: 7px;
  21856. }
  21857. .picName {
  21858. white-space: nowrap;
  21859. overflow: hidden;
  21860. text-overflow: ellipsis;
  21861. width: 75px;
  21862. margin-top: 7px;
  21863. }
  21864. .new_top {
  21865. display: flex;
  21866. background: #fff;
  21867. flex-direction: row;
  21868. justify-content: flex-start;
  21869. align-items: center;
  21870. height: 60px;
  21871. position: fixed;
  21872. top: 20px;
  21873. left: 22%;
  21874. width: 77%;
  21875. z-index: 999;
  21876. border-radius: 12px 12px 0 0;
  21877. border-bottom: 1px solid #cad1dc;
  21878. padding: 10px 0;
  21879. }
  21880. .new_topFixed {
  21881. width: 100%;
  21882. height: 40px;
  21883. position: fixed;
  21884. top: 0px;
  21885. display: block;
  21886. background: #f2f2f2;
  21887. z-index: 998;
  21888. }
  21889. .before {
  21890. position: absolute;
  21891. background: #c3dad4;
  21892. width: 6px;
  21893. height: 100%;
  21894. }
  21895. .courseIndex {
  21896. display: flex;
  21897. flex-direction: row;
  21898. align-items: center;
  21899. width: calc(100% - 745px);
  21900. }
  21901. .courseIndex > div:nth-child(1) {
  21902. margin: 0 0 0 10px;
  21903. font-size: 20px;
  21904. min-width: 100px;
  21905. font-weight: bold;
  21906. border-left: 4px solid #3363b9;
  21907. height: 32px;
  21908. text-align: center;
  21909. line-height: 35px;
  21910. }
  21911. .courseIndex > div:nth-child(2) {
  21912. font-size: 20px;
  21913. /* width: 300px; */
  21914. max-width: calc(100% - 105px);
  21915. white-space: nowrap;
  21916. overflow: hidden;
  21917. text-overflow: ellipsis;
  21918. }
  21919. .courseIndex > div:nth-child(3) {
  21920. border-bottom: 1px solid #d7d7d7;
  21921. padding-bottom: 5px;
  21922. background: #3681fc;
  21923. width: 55px;
  21924. min-width: 55px;
  21925. border-radius: 5px;
  21926. color: #fff;
  21927. text-align: center;
  21928. height: 20px;
  21929. line-height: 26px;
  21930. font-size: 14px;
  21931. margin: 0 0 0 10px;
  21932. }
  21933. .course_text {
  21934. padding: 20px 0 0 15px;
  21935. text-indent: 30px;
  21936. width: 80%;
  21937. min-height: 20px;
  21938. }
  21939. .vedioList {
  21940. background: #f2f2f2;
  21941. border: 1px solid #ececec;
  21942. /* width: 38.8%; */
  21943. /* width: 300px; */
  21944. width: 100%;
  21945. height: 445px;
  21946. border-radius: 10px;
  21947. overflow: hidden;
  21948. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  21949. }
  21950. .vedioNav {
  21951. margin: 10px 0 0 15px;
  21952. border-bottom: 1px solid #d7d7d7;
  21953. padding-bottom: 5px;
  21954. background: #3681fc;
  21955. width: 55px;
  21956. min-width: 55px;
  21957. border-radius: 5px;
  21958. color: #fff;
  21959. text-align: center;
  21960. height: 20px;
  21961. line-height: 26px;
  21962. font-size: 14px;
  21963. }
  21964. .queTop {
  21965. display: flex;
  21966. padding: 20px 0 20px 30px;
  21967. width: 100%;
  21968. flex-direction: row;
  21969. justify-content: flex-start;
  21970. align-items: self-start;
  21971. box-sizing: border-box;
  21972. }
  21973. .queTopTitle {
  21974. display: flex;
  21975. flex-direction: row;
  21976. flex-wrap: nowrap;
  21977. align-items: center;
  21978. font-weight: bold;
  21979. font-size: 20px;
  21980. color: rgb(14, 30, 51);
  21981. }
  21982. .queTopTitle::before {
  21983. content: "";
  21984. width: 2px;
  21985. height: 22px;
  21986. background: #3681fc;
  21987. border-radius: 3px;
  21988. display: block;
  21989. margin: 2px 6px 0 0;
  21990. }
  21991. .queTopRight {
  21992. display: flex;
  21993. flex-direction: row;
  21994. flex-wrap: nowrap;
  21995. align-items: center;
  21996. }
  21997. .queTopClose {
  21998. margin-right: 20px;
  21999. cursor: pointer;
  22000. position: relative;
  22001. display: flex;
  22002. }
  22003. .closeImg,
  22004. .openImg {
  22005. width: 25px;
  22006. height: 25px;
  22007. position: absolute;
  22008. left: -20px;
  22009. top: -1px;
  22010. }
  22011. .closeImg > img,
  22012. .openImg > img {
  22013. width: 100%;
  22014. height: 100%;
  22015. }
  22016. .question {
  22017. width: 40px;
  22018. margin-right: 10px;
  22019. margin-top: 7px;
  22020. flex-shrink: 0;
  22021. }
  22022. .queTitle {
  22023. margin-left: 5px;
  22024. font-size: 25px;
  22025. display: flex;
  22026. /* align-items: center; */
  22027. }
  22028. .queTitle > div:nth-child(1){
  22029. width: 120px;
  22030. flex-shrink: 0;
  22031. }
  22032. .addEditor {
  22033. width: 100px;
  22034. height: 30px;
  22035. background: #42cda6;
  22036. color: #fff;
  22037. border-radius: 5px;
  22038. text-align: center;
  22039. line-height: 30px;
  22040. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22041. cursor: pointer;
  22042. }
  22043. /* .vedioName {
  22044. cursor: pointer;
  22045. margin: 0px 0px 10px 5px;
  22046. white-space: nowrap;
  22047. overflow: hidden;
  22048. text-overflow: ellipsis;
  22049. width: 100%;
  22050. } */
  22051. .vedioTime {
  22052. width: 35px;
  22053. position: absolute;
  22054. color: #fff;
  22055. bottom: 0px;
  22056. right: 0px;
  22057. text-align: center;
  22058. background: #46411f;
  22059. height: 20px;
  22060. font-size: 14px;
  22061. line-height: 20px;
  22062. }
  22063. .homework {
  22064. width: 200px;
  22065. display: flex;
  22066. flex-direction: column;
  22067. flex-wrap: nowrap;
  22068. align-items: center;
  22069. cursor: pointer;
  22070. }
  22071. .homebox {
  22072. display: flex;
  22073. flex-wrap: wrap;
  22074. flex-direction: row;
  22075. justify-content: flex-start;
  22076. align-items: center;
  22077. padding: 15px 0;
  22078. }
  22079. .isChooseActive {
  22080. color: #3681fc !important;
  22081. font-weight: bold !important;
  22082. }
  22083. .chooseWho {
  22084. display: flex;
  22085. width: 100%;
  22086. flex-direction: row;
  22087. flex-wrap: nowrap;
  22088. justify-content: flex-start;
  22089. padding-bottom: 10px;
  22090. }
  22091. .chooseWho > div {
  22092. cursor: pointer;
  22093. padding-bottom: 10px;
  22094. margin: 0 30px 0 0;
  22095. font-weight: 400;
  22096. color: #0e1e33;
  22097. }
  22098. .addPoint > div > img {
  22099. cursor: pointer;
  22100. width: 85px;
  22101. border-radius: 15px;
  22102. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22103. }
  22104. .addPoint > div {
  22105. display: flex;
  22106. flex-direction: column;
  22107. flex-wrap: nowrap;
  22108. align-items: center;
  22109. }
  22110. .isBorder > div {
  22111. margin: 0 0 10px 0;
  22112. align-items: flex-start !important;
  22113. }
  22114. .noiframeBox {
  22115. display: flex;
  22116. flex-wrap: wrap;
  22117. }
  22118. .iframeBox iframe {
  22119. width: 100%;
  22120. height: 800px;
  22121. border: none;
  22122. margin-bottom: 20px;
  22123. border: 1px solid #ccc;
  22124. }
  22125. .upload_toolBtn {
  22126. background: #3681fc;
  22127. color: #fff;
  22128. width: 110px;
  22129. text-align: center;
  22130. height: 35px;
  22131. line-height: 35px;
  22132. font-size: 14px;
  22133. border-radius: 5px;
  22134. cursor: pointer;
  22135. position: absolute;
  22136. right: 10px;
  22137. bottom: 0;
  22138. }
  22139. .binfo_input,
  22140. .pj {
  22141. font: inherit;
  22142. color: currentColor;
  22143. width: 100%;
  22144. margin: 0;
  22145. padding: 15px 14px;
  22146. display: block;
  22147. min-width: 0;
  22148. outline: none;
  22149. box-sizing: content-box;
  22150. background: none;
  22151. -webkit-tap-highlight-color: transparent;
  22152. border: 1px solid rgba(0, 0, 0, 0.23);
  22153. border-radius: 4px;
  22154. box-sizing: border-box;
  22155. resize: none;
  22156. }
  22157. .binfo_input:focus-visible {
  22158. border: 1px solid rgba(61, 103, 188);
  22159. }
  22160. .dialog_diy >>> .el-dialog__header,
  22161. .dialog_diy1 >>> .el-dialog__header {
  22162. background: #454545 !important;
  22163. padding: 15px 20px;
  22164. }
  22165. .dialog_diy >>> .el-dialog__title,
  22166. .dialog_diy1 >>> .el-dialog__title {
  22167. color: #fff;
  22168. }
  22169. .dialog_diy >>> .el-dialog__headerbtn,
  22170. .dialog_diy1 >>> .el-dialog__headerbtn {
  22171. top: 19px;
  22172. }
  22173. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22174. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22175. color: #fff;
  22176. }
  22177. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22178. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22179. color: #fff;
  22180. }
  22181. .dialog_diy1 >>> .el-dialog__body {
  22182. padding: 0;
  22183. }
  22184. .dialog_diy >>> .el-dialog__body,
  22185. .dialog_diy >>> .el-dialog__footer,
  22186. .dialog_diy1 >>> .el-dialog__footer {
  22187. background: #fafafa;
  22188. }
  22189. .a_addBox {
  22190. padding: 0 0 0 15px;
  22191. }
  22192. .a_add_box {
  22193. padding: 10px;
  22194. background: #fff;
  22195. margin-bottom: 10px;
  22196. border-radius: 5px;
  22197. box-shadow: 0 0 5px 0 #d5d5d5;
  22198. }
  22199. .a_add_head {
  22200. display: flex;
  22201. align-items: flex-start;
  22202. /* justify-content: space-between; */
  22203. flex-direction: column;
  22204. /* flex-direction: row; */
  22205. margin: 10px 0 20px 0;
  22206. font-size: 18px;
  22207. width: 100%;
  22208. }
  22209. .askIndex {
  22210. background: #3681fc;
  22211. border-radius: 50%;
  22212. color: #fff;
  22213. width: 25px;
  22214. height: 25px;
  22215. min-width: 25px;
  22216. min-height: 25px;
  22217. text-align: center;
  22218. line-height: 25px;
  22219. margin-right: 5px;
  22220. }
  22221. .a_add_head .a_add_head_input {
  22222. width: 300px;
  22223. }
  22224. .a_add_head .a_add_head_div {
  22225. display: flex;
  22226. align-items: center;
  22227. justify-content: space-between;
  22228. }
  22229. .a_add_body {
  22230. display: flex;
  22231. align-items: center;
  22232. }
  22233. .a_add_input {
  22234. display: flex;
  22235. align-items: center;
  22236. flex-wrap: wrap;
  22237. width: 100%;
  22238. }
  22239. .a_add_input >>> .el-radio-group,
  22240. .a_add_input >>> .el-checkbox-group {
  22241. width: 100%;
  22242. }
  22243. .a_add_input >>> .el-radio,
  22244. .a_add_input >>> .el-checkbox {
  22245. display: flex;
  22246. flex-direction: row;
  22247. flex-wrap: nowrap;
  22248. align-items: center;
  22249. padding: 15px 0;
  22250. }
  22251. .a_add_input >>> .el-radio:not(:last-child),
  22252. .a_add_input >>> .el-checkbox:not(:last-child) {
  22253. width: 100%;
  22254. border-bottom: 1px solid #efefef;
  22255. }
  22256. .redioStyle >>> .el-radio__label {
  22257. font-size: 18px;
  22258. }
  22259. .redioStyle >>> .el-radio__label > span,
  22260. .redioStyle >>> .el-checkbox__label > span {
  22261. word-break: break-all;
  22262. white-space: normal;
  22263. }
  22264. .redioStyle >>> .el-checkbox__label {
  22265. font-size: 18px;
  22266. }
  22267. .toolHeng2 {
  22268. width: 100%;
  22269. padding-left: 15px;
  22270. box-sizing: border-box;
  22271. }
  22272. .workNav {
  22273. font-size: 20px;
  22274. font-weight: bold;
  22275. color: #0e1e33;
  22276. display: flex;
  22277. flex-direction: row;
  22278. flex-wrap: nowrap;
  22279. align-items: center;
  22280. padding: 15px 0 15px 0;
  22281. }
  22282. .workNav::before {
  22283. content: "";
  22284. width: 2px;
  22285. height: 22px;
  22286. background: #3681fc;
  22287. border-radius: 3px;
  22288. display: block;
  22289. margin: 2px 6px 0 0;
  22290. }
  22291. .toolHeng {
  22292. display: flex;
  22293. flex-direction: row;
  22294. flex-wrap: wrap;
  22295. justify-content: flex-start;
  22296. align-items: center;
  22297. width: 100%;
  22298. }
  22299. .toolHeng > div {
  22300. padding-left: 20px;
  22301. }
  22302. .isWidth {
  22303. width: 20%;
  22304. }
  22305. .textTitle {
  22306. display: flex;
  22307. flex-direction: row;
  22308. flex-wrap: nowrap;
  22309. align-items: center;
  22310. width: 95%;
  22311. }
  22312. .textTitle >>> .el-form-item__label {
  22313. font-size: 22px;
  22314. color: #918f8f;
  22315. width: 100px;
  22316. }
  22317. .textTitle >>> .el-form-item__content {
  22318. width: calc(100% - 100px);
  22319. }
  22320. .textCss >>> .el-dialog {
  22321. width: 800px !important;
  22322. height: 400px;
  22323. background: #fafafa;
  22324. }
  22325. .textCss >>> .el-dialog__body {
  22326. margin: 55px 8% 0 8%;
  22327. padding: 0 !important;
  22328. }
  22329. .textCss >>> .el-dialog__footer {
  22330. padding-top: 38px;
  22331. }
  22332. .toolsCss >>> .el-dialog__body {
  22333. padding: 20px;
  22334. }
  22335. .lineCss >>> .el-dialog__body {
  22336. display: flex;
  22337. flex-direction: row;
  22338. align-items: center;
  22339. justify-content: center;
  22340. }
  22341. .newNav {
  22342. display: flex;
  22343. flex-direction: row;
  22344. align-items: baseline;
  22345. justify-content: flex-start;
  22346. }
  22347. .navListItem {
  22348. width: calc(100% - 20px);
  22349. height: 50px;
  22350. margin: 0px auto 10px;
  22351. display: flex;
  22352. flex-direction: row;
  22353. flex-wrap: nowrap;
  22354. align-items: center;
  22355. justify-content: space-between;
  22356. background: #f0f4fa;
  22357. border-radius: 6px 6px 6px 6px;
  22358. }
  22359. .navText {
  22360. cursor: pointer;
  22361. white-space: nowrap;
  22362. overflow: hidden;
  22363. text-overflow: ellipsis;
  22364. width: 220px;
  22365. padding: 0 10px;
  22366. font-weight: 400;
  22367. color: #0e1e33;
  22368. }
  22369. .downIcon {
  22370. width: 20px;
  22371. min-width: 20px;
  22372. height: 20px;
  22373. margin-right: 15px;
  22374. cursor: pointer;
  22375. }
  22376. .downIcon > img {
  22377. width: 100%;
  22378. height: 100%;
  22379. }
  22380. .noVedio {
  22381. display: flex;
  22382. flex-direction: row;
  22383. justify-content: center;
  22384. align-content: center;
  22385. }
  22386. .noNavText {
  22387. cursor: pointer;
  22388. margin: 0px 0px 10px 5px;
  22389. width: 112px;
  22390. }
  22391. .listNoVedio {
  22392. margin: 0 0 0 30px;
  22393. width: 97%;
  22394. }
  22395. .video-player >>> .video-js {
  22396. height: 100%;
  22397. }
  22398. .hangVedioList {
  22399. width: 90% !important;
  22400. height: 150px !important;
  22401. margin: 20px 0 0 30px;
  22402. }
  22403. .hangVedio {
  22404. width: 100%;
  22405. height: 170px !important;
  22406. align-items: flex-start !important;
  22407. }
  22408. .hangHand {
  22409. height: 150px !important;
  22410. }
  22411. .twoChild {
  22412. width: 95%;
  22413. margin: 10px;
  22414. border-radius: 5px;
  22415. background: #f2f2f2;
  22416. display: flex;
  22417. flex-direction: column;
  22418. flex-wrap: nowrap;
  22419. justify-content: flex-start;
  22420. align-items: flex-start;
  22421. transition: all 0.5s;
  22422. overflow: hidden;
  22423. height: 0;
  22424. background: #e7f3ff;
  22425. }
  22426. .twoChild > div:nth-child(1) {
  22427. margin-top: 5px;
  22428. }
  22429. .navChild {
  22430. width: 100%;
  22431. cursor: pointer;
  22432. margin-bottom: 10px;
  22433. position: relative;
  22434. }
  22435. .navChild img {
  22436. position: absolute;
  22437. right: 11px;
  22438. width: 15px;
  22439. top: 50%;
  22440. transform: translateY(-50%);
  22441. }
  22442. .navActive,
  22443. .toolActive {
  22444. height: auto !important;
  22445. overflow: auto !important;
  22446. /* padding-bottom: 16px; */
  22447. }
  22448. .toolActive {
  22449. padding: 0;
  22450. }
  22451. .navTask {
  22452. display: flex;
  22453. flex-direction: row;
  22454. flex-wrap: nowrap;
  22455. align-items: center;
  22456. align-content: flex-start;
  22457. height: 40px;
  22458. justify-content: flex-start;
  22459. padding: 0 10px;
  22460. width: 100%;
  22461. box-sizing: border-box;
  22462. }
  22463. .navTaskname {
  22464. white-space: nowrap;
  22465. text-overflow: ellipsis;
  22466. overflow: hidden;
  22467. word-break: break-all;
  22468. padding-left: 5px;
  22469. }
  22470. .openTaskActive {
  22471. /* background-color: #e0eafb !important;
  22472. color: #0061ff; */
  22473. color:#fff;
  22474. background: rgb(55, 129, 252) !important;
  22475. }
  22476. .iframeName {
  22477. margin: 5px 0;
  22478. border-left: 4px solid #41c4a4;
  22479. padding-left: 4px;
  22480. }
  22481. .toolTitle {
  22482. margin: 0px 0px 20px;
  22483. font-size: 20px;
  22484. font-weight: 500;
  22485. border-left: 4px solid #41c4a4;
  22486. padding-left: 4px;
  22487. }
  22488. .cru_selectBox {
  22489. overflow: auto;
  22490. width: 95%;
  22491. margin: 17px auto 0;
  22492. height: calc(100% - 40px - 21px - 20px - 17px);
  22493. background: #fff;
  22494. border-radius: 8px;
  22495. }
  22496. .cru_selectBox::-webkit-scrollbar,
  22497. .study_top::-webkit-scrollbar,
  22498. .textContent::-webkit-scrollbar {
  22499. /*滚动条整体样式*/
  22500. width: 6px;
  22501. /*高宽分别对应横竖滚动条的尺寸*/
  22502. height: 6px;
  22503. }
  22504. /*定义滚动条轨道 内阴影+圆角*/
  22505. .cru_selectBox::-webkit-scrollbar-track,
  22506. .study_top::-webkit-scrollbar-track,
  22507. .textContent::-webkit-scrollbar {
  22508. border-radius: 10px;
  22509. background-color: #b8bdc9;
  22510. }
  22511. /*定义滑块 内阴影+圆角*/
  22512. .cru_selectBox::-webkit-scrollbar-thumb,
  22513. .study_top::-webkit-scrollbar-thumb,
  22514. .textContent::-webkit-scrollbar-thumb {
  22515. border-radius: 10px;
  22516. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22517. background-color: #2c5ab3;
  22518. }
  22519. .vedioBox {
  22520. border-radius: 0 0 20px 20px;
  22521. background: #fff;
  22522. overflow: auto;
  22523. }
  22524. .taskBox {
  22525. width: 98%;
  22526. background: #f0f4fa;
  22527. margin: 10px auto;
  22528. padding: 0 10px;
  22529. border-radius: 4px;
  22530. box-sizing: border-box;
  22531. }
  22532. .vedioTaskBox {
  22533. width: 100%;
  22534. display: flex;
  22535. flex-direction: row;
  22536. flex-wrap: nowrap;
  22537. align-items: flex-start;
  22538. position: relative;
  22539. }
  22540. .toolBox {
  22541. margin: 15px 0 0 25px;
  22542. display: flex;
  22543. position: relative;
  22544. padding: 18px 20px;
  22545. border-top-left-radius: 5px;
  22546. border-top-right-radius: 5px;
  22547. width: 90%;
  22548. }
  22549. .btnAll {
  22550. position: absolute;
  22551. right: 0;
  22552. display: flex;
  22553. flex-direction: row;
  22554. flex-wrap: nowrap;
  22555. align-items: center;
  22556. }
  22557. .btnLeft,
  22558. .btnRight {
  22559. display: flex;
  22560. flex-direction: row;
  22561. flex-wrap: nowrap;
  22562. align-items: center;
  22563. padding: 5px 0;
  22564. }
  22565. .btnLeft {
  22566. border-right: 1px solid #cad1dc;
  22567. }
  22568. .btnLeft > .custom-tooltip {
  22569. background: #3681fc;
  22570. color: #fff;
  22571. }
  22572. .last:hover {
  22573. background: #3383fa !important;
  22574. color: #fff;
  22575. border: 1px solid #3383fa !important;
  22576. }
  22577. .last,
  22578. .returnBtn1 {
  22579. width: 90px;
  22580. height: 36px;
  22581. background: #ffffff;
  22582. border-radius: 4px;
  22583. border: 1px solid #0061ff;
  22584. color: #0061ff;
  22585. cursor: pointer;
  22586. display: flex;
  22587. flex-direction: row;
  22588. flex-wrap: nowrap;
  22589. align-items: center;
  22590. justify-content: center;
  22591. margin-left: 12px;
  22592. }
  22593. .returnBtn1 {
  22594. background: #f0f4fa;
  22595. border-radius: 4px;
  22596. border: 1px solid #cad1dc;
  22597. margin: 0 12px;
  22598. }
  22599. .lastImg {
  22600. min-width: 15px;
  22601. width: 15px;
  22602. height: 15px;
  22603. display: flex;
  22604. }
  22605. .lastText {
  22606. padding: 0 5px 0 5px;
  22607. box-sizing: border-box;
  22608. font-size: 14px;
  22609. }
  22610. .lastImg > img {
  22611. width: 100%;
  22612. height: 100%;
  22613. }
  22614. /* .vedioTimeBox {
  22615. display: flex;
  22616. flex-direction: row;
  22617. align-items: center;
  22618. flex-wrap: nowrap;
  22619. position: relative;
  22620. } */
  22621. .navBox {
  22622. background: #fff;
  22623. height: calc(100% - 40px);
  22624. overflow-y: auto;
  22625. overflow-x: hidden;
  22626. }
  22627. .worksBox {
  22628. margin: 0 0 10px 25px;
  22629. border-bottom: 1px solid #eeeeee;
  22630. padding: 18px 20px;
  22631. border-radius: 4px;
  22632. width: 90%;
  22633. }
  22634. .worksBTitle {
  22635. font-size: 20px;
  22636. padding-bottom: 15px;
  22637. border-bottom: 1px solid #eeeeee;
  22638. display: flex;
  22639. align-items: center;
  22640. }
  22641. .greenBox {
  22642. width: 5px;
  22643. height: 30px;
  22644. background: #63b6fa;
  22645. margin-right: 5px;
  22646. }
  22647. .worksDetailBox {
  22648. display: flex;
  22649. width: 100%;
  22650. flex-direction: row;
  22651. flex-wrap: wrap;
  22652. align-items: flex-end;
  22653. justify-content: flex-start;
  22654. padding: 15px 5px;
  22655. box-sizing: border-box;
  22656. }
  22657. .works {
  22658. display: flex;
  22659. flex-direction: column;
  22660. flex-wrap: nowrap;
  22661. align-items: flex-start;
  22662. justify-content: flex-start;
  22663. align-content: center;
  22664. max-width: 240px;
  22665. width: calc(100% / 3 - 10px);
  22666. height: auto;
  22667. margin-right: 10px;
  22668. margin-bottom: 10px;
  22669. overflow: hidden;
  22670. height: 140px;
  22671. box-shadow: 0 0 6px 1px #dfdada;
  22672. border-radius: 15px;
  22673. }
  22674. .workImg {
  22675. width: 100%;
  22676. /* height: calc(100% - 40px); */
  22677. height: 105px;
  22678. position: relative;
  22679. }
  22680. .workImg > img {
  22681. width: 100%;
  22682. height: 100%;
  22683. object-fit: contain;
  22684. cursor: pointer;
  22685. }
  22686. .worksName {
  22687. height: 40px;
  22688. line-height: 40px;
  22689. display: flex;
  22690. width: 100%;
  22691. flex-direction: row;
  22692. flex-wrap: nowrap;
  22693. justify-content: space-between;
  22694. align-items: center;
  22695. margin: 0 0 0 10px;
  22696. }
  22697. .worksName > div:nth-child(1) {
  22698. width: 110px;
  22699. white-space: nowrap;
  22700. overflow: hidden;
  22701. text-overflow: ellipsis;
  22702. }
  22703. .worksName > div:nth-child(2) {
  22704. color: #b7b4b5;
  22705. }
  22706. .noWorksS {
  22707. padding: 15px 0;
  22708. display: flex;
  22709. flex-direction: row;
  22710. flex-wrap: wrap;
  22711. align-items: center;
  22712. justify-content: flex-start;
  22713. }
  22714. .noWorksName,
  22715. .isWorksName,
  22716. .isWorksName2 {
  22717. background: #ddebf8;
  22718. color: #000;
  22719. width: 90px;
  22720. height: 25px;
  22721. text-align: center;
  22722. line-height: 25px;
  22723. border-radius: 4px;
  22724. margin: 10px 15px 10px 0;
  22725. white-space: nowrap;
  22726. overflow: hidden;
  22727. padding: 5px;
  22728. text-overflow: ellipsis;
  22729. cursor: pointer;
  22730. border: 1px solid #ddebf8;
  22731. }
  22732. .noWorksName {
  22733. background: #fff;
  22734. color: #0061ff;
  22735. border: 1px solid #0061ff;
  22736. }
  22737. .noWorksName > span{
  22738. max-width: 100%;
  22739. display: block;
  22740. overflow: hidden;
  22741. text-overflow: ellipsis;
  22742. white-space: nowrap;
  22743. }
  22744. .noWorksName2 {
  22745. background: #fff;
  22746. color: #0061ff;
  22747. width: 90px;
  22748. height: 25px;
  22749. text-align: center;
  22750. line-height: 25px;
  22751. border-radius: 4px;
  22752. margin: 10px 15px 10px 0;
  22753. white-space: nowrap;
  22754. overflow: hidden;
  22755. padding: 5px;
  22756. text-overflow: ellipsis;
  22757. cursor: pointer;
  22758. border: 1px solid #0061ff;
  22759. }
  22760. .noWorksName2 > span {
  22761. max-width: 100%;
  22762. display: block;
  22763. overflow: hidden;
  22764. text-overflow: ellipsis;
  22765. white-space: nowrap;
  22766. }
  22767. .isWorksName2 {
  22768. width: 100px;
  22769. height: 40px;
  22770. line-height: 40px;
  22771. position: relative;
  22772. background: #dae6f9;
  22773. }
  22774. .isWorksName {
  22775. background: #e7ebf1 !important;
  22776. width: 100px;
  22777. height: 40px;
  22778. line-height: 40px;
  22779. position: relative;
  22780. color: #acb4bf;
  22781. border: 1px solid #cad1dc !important;
  22782. }
  22783. .isSelectName,
  22784. .noWorksName:hover {
  22785. background: #3383fa !important;
  22786. color: #fff !important;
  22787. border: 1px solid #3383fa !important;
  22788. }
  22789. .title {
  22790. background: #1e5cc9;
  22791. /* width: 98%; */
  22792. height: 45px;
  22793. color: #fff;
  22794. line-height: 45px;
  22795. padding-left: 20px;
  22796. box-sizing: border-box;
  22797. }
  22798. .textBox {
  22799. font-size: 20px;
  22800. width: 90%;
  22801. display: flex;
  22802. flex-direction: column;
  22803. align-items: center;
  22804. margin: 20px auto 0;
  22805. max-height: calc(100% - 75px);
  22806. overflow: auto;
  22807. }
  22808. .textContent {
  22809. font-size: 18px;
  22810. width: 95%;
  22811. max-width: 95%;
  22812. }
  22813. .answerBg {
  22814. background: url("../assets/icon/answerBgNew.png") no-repeat;
  22815. background-size: 100% 100%;
  22816. width: 100%;
  22817. height: 100%;
  22818. color: #fff;
  22819. text-align: center;
  22820. display: flex;
  22821. flex-direction: column;
  22822. flex-wrap: nowrap;
  22823. align-items: center;
  22824. position: relative;
  22825. justify-content: center;
  22826. }
  22827. /* .answerBg > div:nth-child(1) { */
  22828. /* font-size: 22px;
  22829. padding: 25px 0 10px; */
  22830. /* } */
  22831. .answerContent {
  22832. width: 215px;
  22833. max-height: 60px;
  22834. word-break: break-all;
  22835. text-align: center;
  22836. /* white-space: nowrap; */
  22837. overflow: hidden;
  22838. text-overflow: ellipsis;
  22839. /* padding: 23px 0 0; */
  22840. -webkit-line-clamp: 3;
  22841. -webkit-box-orient: vertical;
  22842. display: -webkit-box;
  22843. font-size: 15px;
  22844. cursor: pointer;
  22845. }
  22846. .elist_input_box {
  22847. display: flex;
  22848. align-items: flex-start;
  22849. flex-wrap: nowrap;
  22850. padding: 10px 0 15px 30px;
  22851. flex-direction: column;
  22852. }
  22853. .elist_input {
  22854. /* width: 40%; */
  22855. width: 45%;
  22856. margin: 20px;
  22857. }
  22858. .elist_input .elist_input_box input {
  22859. font: inherit;
  22860. color: currentColor;
  22861. width: 200px;
  22862. padding: 8px 14px;
  22863. display: block;
  22864. min-width: 0;
  22865. outline: none;
  22866. border: 1px solid rgba(0, 0, 0, 0.23);
  22867. border-radius: 4px;
  22868. box-sizing: border-box;
  22869. background: #fff;
  22870. margin: 0 20px 0 0;
  22871. }
  22872. .elist_input .elist_input_box span {
  22873. height: 36px;
  22874. line-height: 36px;
  22875. color: rgb(82, 82, 82);
  22876. }
  22877. .elist_input .elist_input_box .remove {
  22878. height: 20px;
  22879. width: 20px;
  22880. background-size: 100% 100%;
  22881. background-position: unset;
  22882. margin-left: 5px;
  22883. }
  22884. .elist_input_box >>> .el-rate {
  22885. display: flex;
  22886. height: 36px;
  22887. align-items: center;
  22888. }
  22889. .elist_input_box .elist_inptu_text {
  22890. min-height: 50px;
  22891. /* width: 500px;
  22892. max-height: 150px; */
  22893. width: 100%;
  22894. line-height: 50px;
  22895. color: rgb(82, 82, 82);
  22896. overflow: auto;
  22897. text-indent: 5px;
  22898. background: #f7f6f9;
  22899. border-radius: 10px;
  22900. }
  22901. .elist_input_box .elist_inptu_text input {
  22902. width: 500px;
  22903. }
  22904. .elist_input_box >>> .el-rate__icon {
  22905. font-size: 24px;
  22906. }
  22907. .isClick {
  22908. background: #4d9def;
  22909. }
  22910. .bzBox {
  22911. display: flex;
  22912. flex-direction: row;
  22913. align-items: center;
  22914. }
  22915. .bzBox .yCss {
  22916. width: 7px;
  22917. height: 7px;
  22918. background: #fff;
  22919. margin: 0 16px 0 6px;
  22920. border-radius: 50%;
  22921. border: 5px solid #3681fc;
  22922. z-index: 99;
  22923. }
  22924. .bzBox > div:nth-child(2) {
  22925. font-size: 18px;
  22926. font-weight: bold;
  22927. color: #0e1e33;
  22928. }
  22929. .navTitile {
  22930. padding: 0 0px 0 15px;
  22931. font-size: 16px;
  22932. font-weight: bold;
  22933. color: #0e1e33;
  22934. height: 40px;
  22935. line-height: 40px;
  22936. }
  22937. .isTypeOne {
  22938. width: 240px;
  22939. height: 170px;
  22940. /* border: 1px solid #f8f8f8; */
  22941. border-radius: 10px;
  22942. box-shadow: 0 0 6px 1px #dfdada;
  22943. }
  22944. .e_add_top {
  22945. display: flex;
  22946. justify-content: space-between;
  22947. padding: 10px 20px;
  22948. border-radius: 3px;
  22949. background: #fff;
  22950. }
  22951. .e_add_title2 {
  22952. display: flex;
  22953. align-items: center;
  22954. }
  22955. .e_add_title2 span {
  22956. width: 40px;
  22957. }
  22958. .e_add_title {
  22959. display: flex;
  22960. align-items: center;
  22961. color: #b8b8b8;
  22962. font-size: 18px;
  22963. position: relative;
  22964. height: 40px;
  22965. width: 100%;
  22966. }
  22967. .e_add_title span {
  22968. margin-right: 10px;
  22969. }
  22970. .e_add_title .el_input {
  22971. width: 300px;
  22972. }
  22973. .e_add_title >>> .el-input__inner {
  22974. width: 400px;
  22975. }
  22976. /* .e_add_btn {
  22977. } */
  22978. .e_add_content {
  22979. display: flex;
  22980. width: 100%;
  22981. max-width: 650px;
  22982. height: 550px;
  22983. }
  22984. .e_add_list {
  22985. background: #fff;
  22986. height: 500px;
  22987. width: 210px;
  22988. position: relative;
  22989. margin: 15px 5px 0 0;
  22990. flex-shrink: 0;
  22991. display: flex;
  22992. flex-direction: column;
  22993. }
  22994. .e_add_list_title {
  22995. font-size: 20px;
  22996. width: 100%;
  22997. box-sizing: border-box;
  22998. padding: 15px 40px;
  22999. text-align: center;
  23000. border-bottom: 1px solid #eaeaea;
  23001. position: relative;
  23002. display: flex;
  23003. align-items: center;
  23004. justify-content: center;
  23005. height: 57px;
  23006. background: #f6f6f6;
  23007. }
  23008. .e_add_list_title span {
  23009. overflow: hidden;
  23010. white-space: nowrap;
  23011. text-overflow: ellipsis;
  23012. }
  23013. .e_add_list_title img {
  23014. position: absolute;
  23015. right: 15px;
  23016. width: 25px;
  23017. cursor: pointer;
  23018. top: 50%;
  23019. transform: translateY(-50%);
  23020. }
  23021. .e_add_list_body {
  23022. height: calc(100% - 187px);
  23023. overflow: auto;
  23024. }
  23025. .e_add_list_child {
  23026. width: 100%;
  23027. display: flex;
  23028. align-items: center;
  23029. justify-content: center;
  23030. position: relative;
  23031. box-sizing: border-box;
  23032. padding: 15px 40px;
  23033. text-align: center;
  23034. }
  23035. .e_add_list_child span {
  23036. overflow: hidden;
  23037. white-space: nowrap;
  23038. text-overflow: ellipsis;
  23039. cursor: pointer;
  23040. }
  23041. .e_add_list_child img {
  23042. position: absolute;
  23043. right: 10px;
  23044. width: 21px;
  23045. cursor: pointer;
  23046. top: 50%;
  23047. transform: translateY(-50%);
  23048. }
  23049. .e_add_list_child + .e_add_list_child {
  23050. border-top: 1px solid #eaeaea;
  23051. }
  23052. .e_add_list_child .active {
  23053. color: #409eff;
  23054. }
  23055. .e_add_list_btn {
  23056. position: absolute;
  23057. bottom: 0;
  23058. height: 50px;
  23059. background: rgb(120, 120, 254);
  23060. width: 100%;
  23061. color: #fff;
  23062. font-size: 16px;
  23063. text-align: center;
  23064. line-height: 50px;
  23065. cursor: pointer;
  23066. }
  23067. .e_add_list_detail {
  23068. position: absolute;
  23069. bottom: 0;
  23070. height: 130px;
  23071. background: rgb(120, 120, 254);
  23072. width: 100%;
  23073. color: #fff;
  23074. font-size: 16px;
  23075. display: flex;
  23076. align-items: center;
  23077. justify-content: center;
  23078. }
  23079. .e_add_list_detail textarea {
  23080. height: 90%;
  23081. width: 95%;
  23082. border: none;
  23083. resize: none;
  23084. outline: none;
  23085. padding: 5px;
  23086. box-sizing: border-box;
  23087. }
  23088. .e_add_list_pbox {
  23089. width: 100%;
  23090. max-width: 650px;
  23091. /* height: 600px; */
  23092. }
  23093. .e_add_list_pbox_title {
  23094. height: 50px;
  23095. background: #fff;
  23096. display: flex;
  23097. align-items: center;
  23098. width: 100%;
  23099. box-sizing: border-box;
  23100. padding: 0 20px;
  23101. }
  23102. .type_title {
  23103. font-size: 18px;
  23104. font-weight: 700;
  23105. }
  23106. .type_content {
  23107. font-size: 16px;
  23108. /* margin-left: 30px; */
  23109. }
  23110. .type_content span + span {
  23111. margin-left: 20px;
  23112. }
  23113. .type_content span {
  23114. cursor: pointer;
  23115. padding-bottom: 5px;
  23116. box-sizing: border-box;
  23117. }
  23118. .type_content .active {
  23119. color: #409eff;
  23120. border-bottom: 2px solid #409eff;
  23121. }
  23122. .e_add_list_pbox_content {
  23123. height: calc(100% - 50px);
  23124. display: flex;
  23125. align-items: center;
  23126. width: 100%;
  23127. background: #fff;
  23128. }
  23129. .evaCss {
  23130. display: flex;
  23131. flex-direction: row;
  23132. flex-wrap: nowrap;
  23133. align-items: flex-start;
  23134. padding: 0 0 20px;
  23135. }
  23136. .cru_line {
  23137. position: absolute;
  23138. bottom: 0px;
  23139. transition: all 0.5s;
  23140. left: 0px;
  23141. width: 125px;
  23142. margin-left: -25px;
  23143. }
  23144. .isNoMessage {
  23145. width: 20%;
  23146. margin: 25% auto 0;
  23147. }
  23148. .isNoMessage > img {
  23149. width: 100%;
  23150. height: 100%;
  23151. }
  23152. .fullStyle >>> .el-dialog__body {
  23153. height: 100% !important;
  23154. }
  23155. .fullStyle >>> .el-dialog,
  23156. .fullStyle {
  23157. width: 100% !important;
  23158. max-width: 100% !important;
  23159. height: 100% !important;
  23160. margin: 0 !important;
  23161. }
  23162. .full_diy >>> .el-dialog {
  23163. margin: 0 !important;
  23164. height: 100%;
  23165. padding: 4px;
  23166. }
  23167. .full_diy >>> .el-dialog__body {
  23168. height: calc(100% - 100px);
  23169. }
  23170. .full_diy2 >>> .el-dialog__body {
  23171. height: calc(100% - 50px);
  23172. padding: 0;
  23173. }
  23174. .switchCss {
  23175. /* width: 100%; */
  23176. display: flex;
  23177. flex-direction: row;
  23178. flex-wrap: nowrap;
  23179. align-items: center;
  23180. /* justify-content: center; */
  23181. }
  23182. .isClickNav {
  23183. /* color: #499eef; */
  23184. color: #000;
  23185. }
  23186. .commentImg {
  23187. width: 25px;
  23188. height: 25px;
  23189. cursor: pointer;
  23190. }
  23191. .commentImg > img {
  23192. width: 100%;
  23193. height: 100%;
  23194. }
  23195. .comment {
  23196. background: #f9f9f9;
  23197. border-radius: 0 0 4px 4px;
  23198. display: flex;
  23199. flex-direction: row;
  23200. flex-wrap: nowrap;
  23201. align-items: center;
  23202. justify-content: flex-end;
  23203. height: 35px;
  23204. }
  23205. .commentList {
  23206. display: flex;
  23207. flex-direction: row;
  23208. flex-wrap: nowrap;
  23209. align-items: center;
  23210. justify-content: center;
  23211. align-content: center;
  23212. /* margin-left: 15px; */
  23213. /* margin-left: 8px; */
  23214. }
  23215. .scoreImg {
  23216. width: 17px;
  23217. height: 17px;
  23218. }
  23219. .studentDetail {
  23220. display: flex;
  23221. flex-direction: row;
  23222. flex-wrap: nowrap;
  23223. /* align-items: center; */
  23224. align-items: flex-start;
  23225. }
  23226. .tx {
  23227. width: 50px;
  23228. }
  23229. .tx > img {
  23230. width: 100%;
  23231. height: 100%;
  23232. }
  23233. .nameAndTime {
  23234. display: flex;
  23235. flex-direction: column;
  23236. flex-wrap: nowrap;
  23237. align-items: flex-start;
  23238. margin-left: 10px;
  23239. }
  23240. .worksAnswer {
  23241. color: #4078dd;
  23242. margin: 10px 0;
  23243. font-size: 16px;
  23244. position: relative;
  23245. }
  23246. .worksAnswer > img {
  23247. width: 500px;
  23248. height: 300px;
  23249. object-fit: contain;
  23250. margin: 0 auto;
  23251. display: block;
  23252. }
  23253. .commentTop {
  23254. border-bottom: 1px solid #eaeaea;
  23255. padding-bottom: 10px;
  23256. }
  23257. .commentBox {
  23258. padding-top: 15px;
  23259. }
  23260. .pl {
  23261. font-size: 18px;
  23262. }
  23263. .plPerson {
  23264. width: 100%;
  23265. }
  23266. .plName {
  23267. display: flex;
  23268. flex-direction: row;
  23269. flex-wrap: nowrap;
  23270. align-items: baseline;
  23271. color: #78787a;
  23272. width: 100%;
  23273. }
  23274. .deleteComment {
  23275. cursor: pointer;
  23276. margin-left: auto;
  23277. color: #237ade;
  23278. }
  23279. .plContent {
  23280. margin-top: 5px;
  23281. }
  23282. .evalCss {
  23283. background: #fff;
  23284. font-size: 18px;
  23285. }
  23286. .nav {
  23287. color: #9d9d9d;
  23288. padding: 5px 0 15px 20px;
  23289. }
  23290. .middleBox {
  23291. padding: 5px 0 15px 20px;
  23292. }
  23293. .pfBox {
  23294. padding-bottom: 30px;
  23295. }
  23296. .nameAndrate {
  23297. display: flex;
  23298. flex-direction: row;
  23299. flex-wrap: nowrap;
  23300. align-items: center;
  23301. padding-bottom: 10px;
  23302. height: 30px;
  23303. line-height: 30px;
  23304. }
  23305. .nameAndrate > div {
  23306. margin-left: 10px;
  23307. color: #000;
  23308. height: 30px;
  23309. }
  23310. .nameAndrate >>> .el-rate__icon {
  23311. font-size: 28px !important;
  23312. }
  23313. .pfBox > div:nth-child(2) {
  23314. background: #f7f6f9;
  23315. width: 400px;
  23316. min-height: 45px;
  23317. border-radius: 10px;
  23318. font-size: 16px;
  23319. display: flex;
  23320. flex-wrap: wrap;
  23321. align-items: center;
  23322. padding: 10px 20px;
  23323. box-sizing: border-box;
  23324. color: #000;
  23325. }
  23326. .bz {
  23327. display: flex;
  23328. flex-direction: row;
  23329. flex-wrap: nowrap;
  23330. align-items: flex-start;
  23331. }
  23332. .bz > div {
  23333. padding: 0 10px;
  23334. }
  23335. .select_box2_title {
  23336. background: #fff;
  23337. border-radius: 5px;
  23338. padding: 15px 10px;
  23339. box-sizing: border-box;
  23340. margin-bottom: 10px;
  23341. display: flex;
  23342. flex-direction: row;
  23343. flex-wrap: nowrap;
  23344. align-items: center;
  23345. }
  23346. .select_box2_title > div:nth-child(2) {
  23347. margin-left: 10px;
  23348. color: #c4c4c4;
  23349. }
  23350. .select_box2_box {
  23351. display: flex;
  23352. height: 500px;
  23353. }
  23354. .select_box2_img {
  23355. width: calc(100% - 310px);
  23356. height: 100%;
  23357. overflow: auto;
  23358. background: #fff;
  23359. border-radius: 5px;
  23360. }
  23361. .select_box2_img img {
  23362. width: 100%;
  23363. }
  23364. .select_box2_answer {
  23365. background: #fff;
  23366. margin-left: 10px;
  23367. border-radius: 5px;
  23368. width: 300px;
  23369. overflow: auto;
  23370. height: 90%;
  23371. display: flex;
  23372. flex-direction: column;
  23373. align-items: flex-start;
  23374. padding-top: 10px;
  23375. box-sizing: border-box;
  23376. position: relative;
  23377. }
  23378. .select_answer_title {
  23379. padding: 0 0 15px 20px;
  23380. color: #c4c4c4;
  23381. }
  23382. .select_box2_answer_box {
  23383. margin: 0 0 10px 20px;
  23384. width: 85%;
  23385. display: flex;
  23386. flex-direction: row;
  23387. flex-wrap: nowrap;
  23388. align-items: center;
  23389. }
  23390. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23391. color: #000;
  23392. }
  23393. .upAnswerCss {
  23394. position: absolute;
  23395. bottom: 15px;
  23396. right: 15px;
  23397. }
  23398. .upAnswerCss >>> .el-button {
  23399. width: 95px;
  23400. height: 35px;
  23401. line-height: 35px;
  23402. padding: 0;
  23403. }
  23404. .rightWidthCss {
  23405. width: 60%;
  23406. display: flex;
  23407. flex-direction: row;
  23408. align-items: flex-start;
  23409. }
  23410. .rightAnswer {
  23411. display: flex;
  23412. flex-direction: row;
  23413. flex-wrap: nowrap;
  23414. align-items: center;
  23415. color: red;
  23416. margin-bottom: 31px;
  23417. }
  23418. .rightAnswerCss {
  23419. display: flex;
  23420. flex-direction: column;
  23421. flex-wrap: nowrap;
  23422. padding-top: 60px;
  23423. }
  23424. .blueCss {
  23425. color: #767de1;
  23426. margin-left: 10px;
  23427. }
  23428. .redCss {
  23429. color: red;
  23430. }
  23431. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23432. color: rgb(0 123 255) !important;
  23433. }
  23434. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23435. color: rgb(0 123 255) !important;
  23436. }
  23437. .zuoyeYulan {
  23438. padding-top: 0;
  23439. font-size: 18px;
  23440. display: flex;
  23441. align-items: flex-end;
  23442. }
  23443. .buttonA {
  23444. margin-left: 10px;
  23445. padding: 0;
  23446. }
  23447. .displayBox {
  23448. margin-bottom: 10px;
  23449. display: block;
  23450. border-bottom: 3px solid #eee;
  23451. display: flex;
  23452. align-items: center;
  23453. }
  23454. .easy_comment {
  23455. width: calc(100% - 90px);
  23456. margin-left: 10px;
  23457. display: flex;
  23458. flex-wrap: wrap;
  23459. }
  23460. .easy_comment > div {
  23461. border: 1px solid #4a4a4a;
  23462. color: #666;
  23463. border-radius: 15px;
  23464. padding: 5px 10px;
  23465. font-size: 16px;
  23466. margin-bottom: 10px;
  23467. margin-right: 5px;
  23468. cursor: pointer;
  23469. }
  23470. .easy_comment div:hover {
  23471. border: 1px solid #f7ba2a;
  23472. color: #c69217;
  23473. }
  23474. .xuan_right_box {
  23475. padding: 10px 0;
  23476. background: #f0f4fa;
  23477. margin: 0 15px 0 25px;
  23478. border-bottom-left-radius: 5px;
  23479. border-bottom-right-radius: 5px;
  23480. width: 91.5%;
  23481. }
  23482. .tool_right_box {
  23483. display: flex;
  23484. align-items: center;
  23485. }
  23486. .tool_right_box >>> .katex {
  23487. font-size: 16px;
  23488. }
  23489. .tool_right_box + .tool_right_box {
  23490. margin-top: 10px;
  23491. }
  23492. .right_box_xuan {
  23493. border-radius: 5px;
  23494. padding: 5px;
  23495. margin-left: 10px;
  23496. min-width: 95px;
  23497. background: #fff;
  23498. color: #0061ff;
  23499. border: 1px solid #0061ff;
  23500. font-size: 14px;
  23501. }
  23502. .pButton:hover {
  23503. opacity: 1 !important;
  23504. }
  23505. .pButton {
  23506. position: fixed;
  23507. text-align: center;
  23508. cursor: pointer;
  23509. z-index: 999;
  23510. right: 20px;
  23511. top: 110px;
  23512. width: 50px;
  23513. height: 50px;
  23514. display: flex;
  23515. align-items: center;
  23516. justify-content: center;
  23517. border-radius: 5px;
  23518. }
  23519. .pzClass {
  23520. width: calc(100% - 340px);
  23521. }
  23522. .newDialogCss {
  23523. /* position: fixed;
  23524. right: 5%;
  23525. top: 50%;
  23526. width: 340px;
  23527. transform: translateY(-50%);
  23528. height: 60%;
  23529. box-shadow: 0px 0 8px 0px #555555;
  23530. border-radius: 15px;
  23531. z-index: 999; */
  23532. position: fixed;
  23533. right: 20px;
  23534. top: 101px;
  23535. width: 330px;
  23536. height: calc(100% - 80px);
  23537. z-index: 999;
  23538. background: #fff;
  23539. border-top-right-radius: 0px;
  23540. border-bottom-right-radius: 0px;
  23541. overflow: hidden;
  23542. }
  23543. .newDialogCss>.scoreList{
  23544. width:100%;
  23545. height:100%;
  23546. box-sizing:border-box;
  23547. padding:10px 15px;
  23548. overflow:auto;
  23549. padding-bottom:80px;
  23550. }
  23551. .pzTop {
  23552. color: #fff;
  23553. background: #000;
  23554. display: flex;
  23555. flex-direction: row;
  23556. flex-wrap: nowrap;
  23557. align-items: center;
  23558. justify-content: space-between;
  23559. height: 40px;
  23560. border-radius: 15px 15px 0 0;
  23561. user-select: none;
  23562. }
  23563. .pzTop2 .checkbox {
  23564. display: flex;
  23565. align-items: center;
  23566. padding: 5px 10px;
  23567. flex: 0 0 auto;
  23568. font-weight: bold;
  23569. border-bottom: 1px solid #eee;
  23570. justify-content: space-between;
  23571. }
  23572. .checkbox>.cb-tabList{
  23573. display:flex;
  23574. align-items:center;
  23575. }
  23576. .cb-tabList>div{
  23577. margin-right:20px;
  23578. font-weight:400;
  23579. cursor:pointer;
  23580. }
  23581. .cb-tabList>.cb-tabItem{
  23582. color:#1684FC;
  23583. position:relative;
  23584. }
  23585. .cb-tabItem::after{
  23586. content:"";
  23587. width:100%;
  23588. height:2px;
  23589. background:#1684FC;
  23590. position:absolute;
  23591. bottom:-5px;
  23592. left:0
  23593. }
  23594. .pzTop2 .check {
  23595. text-align: center;
  23596. cursor: pointer;
  23597. box-sizing: border-box;
  23598. display: flex;
  23599. }
  23600. .pzTop2 img {
  23601. width: 25px;
  23602. cursor: pointer;
  23603. }
  23604. .pzTop > div:nth-child(1) {
  23605. padding-left: 10px;
  23606. }
  23607. .pzTop > div:nth-child(2) {
  23608. width: 15px;
  23609. height: 15px;
  23610. padding-right: 10px;
  23611. cursor: pointer;
  23612. }
  23613. .pzTop > div:nth-child(2) > img {
  23614. width: 100%;
  23615. height: 100%;
  23616. }
  23617. .pzBox,
  23618. .noPzBox {
  23619. height: calc(100% - 60px);
  23620. /* background: #ededed; */
  23621. background: #fff;
  23622. /* border-radius: 0 0 15px 15px; */
  23623. }
  23624. .noPzBox {
  23625. display: flex;
  23626. flex-direction: column;
  23627. flex-wrap: nowrap;
  23628. justify-content: center;
  23629. align-items: center;
  23630. }
  23631. .pzList {
  23632. background: #f7f7f7;
  23633. width: 90%;
  23634. margin: 0 auto 15px;
  23635. border-radius: 5px;
  23636. }
  23637. .pzNavTop {
  23638. display: flex;
  23639. flex-direction: row;
  23640. flex-wrap: nowrap;
  23641. padding: 10px 10px 0 10px;
  23642. align-items: center;
  23643. }
  23644. .pzDelete {
  23645. cursor: pointer;
  23646. margin-left: auto;
  23647. font-size: 14px;
  23648. color: #afafaf;
  23649. }
  23650. .pzNavTop > div:nth-child(1) {
  23651. background: #3760af;
  23652. width: 35px;
  23653. height: 35px;
  23654. color: #fff;
  23655. text-align: center;
  23656. line-height: 35px;
  23657. border-radius: 50%;
  23658. font-size: 14px;
  23659. }
  23660. .pzNavTop > div:nth-child(2) {
  23661. font-size: 18px;
  23662. color: #959595;
  23663. margin-left: 5px;
  23664. }
  23665. .pzContent {
  23666. padding: 10px;
  23667. word-break: break-word;
  23668. }
  23669. .pzContent audio {
  23670. width: 100%;
  23671. }
  23672. .pzContent audio::-webkit-media-controls-panel {
  23673. background: #fff;
  23674. }
  23675. .pzContent >>> img {
  23676. max-width: 100%;
  23677. }
  23678. .pzListBox {
  23679. padding-top: 15px;
  23680. height: calc(100% - 110px);
  23681. overflow: auto;
  23682. }
  23683. .addPzButton {
  23684. position: relative;
  23685. margin-top: 3px;
  23686. width: 100%;
  23687. }
  23688. .addPzButton .img1 {
  23689. position: absolute;
  23690. top: 50%;
  23691. right: 25px;
  23692. transform: translateY(-50%);
  23693. height: 100%;
  23694. display: flex;
  23695. align-items: center;
  23696. }
  23697. .addPzButton .img1 div {
  23698. display: flex;
  23699. }
  23700. .addPzButton .img1 div img {
  23701. width: 28px;
  23702. margin-left: 10px;
  23703. cursor: pointer;
  23704. }
  23705. .addPzButton .img1 div span {
  23706. font-size: 14px;
  23707. margin: 4px 0 0 3px;
  23708. color: #afafaf;
  23709. }
  23710. .addPz {
  23711. background: #4b79ce;
  23712. width: 100px;
  23713. color: #fff;
  23714. font-size: 12px;
  23715. height: 30px;
  23716. margin: 0 auto;
  23717. text-align: center;
  23718. line-height: 30px;
  23719. border-radius: 10px;
  23720. cursor: pointer;
  23721. }
  23722. .addDialogCss {
  23723. position: fixed;
  23724. width: 600px;
  23725. height: 70%;
  23726. min-height: 450px;
  23727. box-shadow: 0px 0 8px 0px #555555;
  23728. border-radius: 15px;
  23729. z-index: 999;
  23730. left: 50%;
  23731. top: 50%;
  23732. margin: -18% 0 0 -300px;
  23733. }
  23734. .teacherPz {
  23735. display: flex;
  23736. flex-direction: row;
  23737. align-items: center;
  23738. flex-wrap: nowrap;
  23739. }
  23740. .teacherPzImg {
  23741. width: 30px;
  23742. height: 30px;
  23743. }
  23744. .teacherPzImg > img {
  23745. width: 100%;
  23746. height: 100%;
  23747. }
  23748. .addPzBox {
  23749. height: calc(100% - 40px);
  23750. background: #ededed;
  23751. border-bottom-left-radius: 15px;
  23752. border-bottom-right-radius: 15px;
  23753. }
  23754. .pzAudioClass {
  23755. margin: 15px 14px;
  23756. background: #fff;
  23757. height: 100%;
  23758. display: flex;
  23759. justify-content: center;
  23760. align-items: center;
  23761. }
  23762. .pzConText {
  23763. width: 95%;
  23764. height: 100%;
  23765. margin: 10px auto 0;
  23766. border: none;
  23767. background: #fff;
  23768. border-radius: 0px;
  23769. }
  23770. .pzConText >>> .text {
  23771. height: calc(100% - 82px);
  23772. }
  23773. .addTextCss {
  23774. background: #4b79ce;
  23775. width: 80px;
  23776. height: 30px;
  23777. text-align: center;
  23778. color: #fff;
  23779. line-height: 30px;
  23780. border-radius: 10px;
  23781. margin: 10px auto 0;
  23782. cursor: pointer;
  23783. }
  23784. .pzConText:focus-visible {
  23785. border: none !important;
  23786. }
  23787. .maxWidth {
  23788. width: 1000px;
  23789. }
  23790. .noPz {
  23791. width: 150px;
  23792. margin: 0 auto 20%;
  23793. }
  23794. .noPz > img {
  23795. width: 100%;
  23796. height: 100%;
  23797. }
  23798. .timeAndReply {
  23799. display: flex;
  23800. flex-direction: row;
  23801. flex-wrap: nowrap;
  23802. justify-content: space-between;
  23803. align-items: center;
  23804. font-size: 14px;
  23805. box-sizing: border-box;
  23806. padding: 0 10px 10px 0px;
  23807. }
  23808. .timeAndReply .time {
  23809. color: #bfbfbf;
  23810. padding: 0 0 0 10px;
  23811. box-sizing: border-box;
  23812. }
  23813. .timeAndReply > div:last-child {
  23814. cursor: pointer;
  23815. color: #777;
  23816. }
  23817. /* table 样式 */
  23818. .cont >>> table {
  23819. border-top: 1px solid #ccc;
  23820. border-left: 1px solid #ccc;
  23821. }
  23822. .cont >>> table td,
  23823. .cont >>> table th {
  23824. border-bottom: 1px solid #ccc;
  23825. border-right: 1px solid #ccc;
  23826. /* padding: 20px 5px; */
  23827. padding: 5px 10px;
  23828. max-width: 0px;
  23829. height: 30px;
  23830. vertical-align: baseline;
  23831. box-sizing: border-box;
  23832. }
  23833. .cont >>> table th {
  23834. border-bottom: 2px solid #ccc;
  23835. text-align: center;
  23836. }
  23837. /* blockquote 样式 */
  23838. .cont >>> blockquote {
  23839. display: block;
  23840. border-left: 8px solid #d0e5f2;
  23841. padding: 5px 10px;
  23842. margin: 10px 0;
  23843. line-height: 1.4;
  23844. font-size: 100%;
  23845. background-color: #f1f1f1;
  23846. }
  23847. /* code 样式 */
  23848. .cont >>> code {
  23849. display: inline-block;
  23850. /* *display: inline; */
  23851. zoom: 1;
  23852. background-color: #f1f1f1;
  23853. border-radius: 3px;
  23854. padding: 3px 5px;
  23855. margin: 0 3px;
  23856. }
  23857. .cont >>> pre code {
  23858. display: block;
  23859. }
  23860. /* ul ol 样式 */
  23861. .cont >>> ul,
  23862. ol {
  23863. margin: 10px 0 10px 20px;
  23864. }
  23865. .addPzCheck {
  23866. display: flex;
  23867. flex-direction: row;
  23868. flex-wrap: nowrap;
  23869. padding: 10px 15px 0;
  23870. }
  23871. .addPzCheck span {
  23872. cursor: pointer;
  23873. padding-bottom: 5px;
  23874. font-weight: bold;
  23875. }
  23876. .addPzCheck span + span {
  23877. margin-left: 10px;
  23878. }
  23879. .addPzCheck .isChooseActive {
  23880. color: #3e88f4;
  23881. border-bottom: 2px solid #2f80f3;
  23882. }
  23883. /* code 样式 */
  23884. .cont {
  23885. /* -webkit-user-modify: read-write; */
  23886. overflow-wrap: break-word;
  23887. -webkit-line-break: after-white-space;
  23888. word-break: break-word;
  23889. white-space: pre-line;
  23890. }
  23891. .scoreBox,
  23892. .scoreDetailBox {
  23893. display: flex;
  23894. align-items: center;
  23895. justify-content: flex-start;
  23896. margin-top: 20px;
  23897. font-size: 18px;
  23898. width: 100%;
  23899. }
  23900. .scoreBox .t,
  23901. .scoreDetailBox .t {
  23902. margin-right: 10px;
  23903. min-width: 100px;
  23904. text-align: right;
  23905. }
  23906. .scoreDetailBox {
  23907. align-items: flex-start;
  23908. }
  23909. .scoreDetailBox >>> .el-textarea {
  23910. width: calc(100% - 200px);
  23911. }
  23912. .scoreBox >>> .el-input {
  23913. width: 130px;
  23914. font-size: 38px;
  23915. }
  23916. .scoreBox >>> .el-input__inner {
  23917. height: 60px;
  23918. }
  23919. .answerScore {
  23920. position: absolute;
  23921. top: 10px;
  23922. right: 10px;
  23923. background: #0000008f;
  23924. border-radius: 5px;
  23925. padding: 3px 5px;
  23926. font-size: 14px;
  23927. color: #fff;
  23928. cursor: pointer;
  23929. }
  23930. .open_box .switch_box {
  23931. width: 100%;
  23932. margin: 0 auto;
  23933. display: flex;
  23934. justify-content: space-between;
  23935. }
  23936. .open_box .switch_box + .switch_box {
  23937. margin-top: 10px;
  23938. }
  23939. .deleteImg,.deleteImg1 {
  23940. width: 25px !important;
  23941. height: 25px !important;
  23942. cursor: pointer;
  23943. position: absolute;
  23944. top: 10px;
  23945. right: 10px;
  23946. }
  23947. .deleteImg2 {
  23948. width: 23px !important;
  23949. height: 23px !important;
  23950. top: 5px;
  23951. right: 5px;
  23952. }
  23953. .deleteImg1{
  23954. width: 23px !important;
  23955. height: 23px !important;
  23956. top: 5px !important;
  23957. right: 30px !important;
  23958. }
  23959. .rightW {
  23960. right: 40px;
  23961. }
  23962. .drawPBox {
  23963. display: flex;
  23964. flex-direction: column;
  23965. position: relative;
  23966. }
  23967. .drawPBox span {
  23968. font-size: 18px;
  23969. color: #606266;
  23970. padding-bottom: 10px;
  23971. margin: 10px 0;
  23972. border-bottom: 1px solid #eaeaea;
  23973. }
  23974. .drawPBox img {
  23975. width: 500px;
  23976. height: 300px;
  23977. object-fit: contain;
  23978. cursor: pointer;
  23979. margin: 0 auto;
  23980. }
  23981. .sentenBox {
  23982. background: #fff;
  23983. height: 450px;
  23984. overflow: auto;
  23985. background-image: url("../assets/icon/conSentences/stuBg.png");
  23986. background-position: 102%;
  23987. background-repeat: no-repeat;
  23988. background-size: 60%;
  23989. }
  23990. .addSen {
  23991. background: #409efe;
  23992. width: 90px;
  23993. color: #fff;
  23994. height: 35px;
  23995. text-align: center;
  23996. line-height: 35px;
  23997. border-radius: 5px;
  23998. float: right;
  23999. margin: 10px 20px 0 0;
  24000. cursor: pointer;
  24001. }
  24002. .sentenTop {
  24003. display: flex;
  24004. flex-direction: row;
  24005. flex-wrap: nowrap;
  24006. align-items: center;
  24007. padding: 55px 0 0 20px;
  24008. box-sizing: border-box;
  24009. }
  24010. .sentenTop > div:nth-child(2) {
  24011. width: 300px;
  24012. margin: 0 15px;
  24013. }
  24014. .sentenTop > div:nth-child(3) {
  24015. background: #409efe;
  24016. color: #fff;
  24017. width: 65px;
  24018. height: 35px;
  24019. text-align: center;
  24020. line-height: 35px;
  24021. border-radius: 5px;
  24022. cursor: pointer;
  24023. }
  24024. .cardList,
  24025. .cardList1 {
  24026. padding: 10px 0 10px 0;
  24027. display: flex;
  24028. flex-direction: row;
  24029. flex-wrap: wrap;
  24030. align-items: center;
  24031. box-sizing: border-box;
  24032. border-bottom: 1px solid #f4f4f4;
  24033. width: 98%;
  24034. margin: 0 auto;
  24035. min-width: 60%;
  24036. max-width: 85%;
  24037. }
  24038. .cardList1 {
  24039. padding: 10px 0 10px 10px !important;
  24040. margin: 0 !important;
  24041. }
  24042. .cardBox {
  24043. display: flex;
  24044. flex-direction: row;
  24045. flex-wrap: wrap;
  24046. align-items: center;
  24047. align-content: center;
  24048. }
  24049. .cardBox > div {
  24050. margin-bottom: 10px;
  24051. }
  24052. .isCard,
  24053. .isChooseCard,
  24054. .noCard,
  24055. .isCard1 {
  24056. min-width: 130px;
  24057. width: auto;
  24058. height: 60px;
  24059. text-align: center;
  24060. line-height: 60px;
  24061. font-size: 20px;
  24062. cursor: pointer;
  24063. background-image: url("../assets/icon/conSentences/titleBorder.png");
  24064. background-size: cover;
  24065. transition: all 2s;
  24066. margin-right: 20px;
  24067. background-size: 100% 100%;
  24068. padding: 0 20px;
  24069. box-sizing: border-box;
  24070. }
  24071. .isCard > div,
  24072. .noCard > div,
  24073. .isCard1 > div {
  24074. white-space: nowrap;
  24075. overflow: hidden;
  24076. text-overflow: ellipsis;
  24077. width: 100%;
  24078. margin: 0 auto;
  24079. }
  24080. .noCard {
  24081. background-image: none;
  24082. }
  24083. .isCard1 {
  24084. background-image: url("../assets/icon/conSentences/answerBorder.png");
  24085. }
  24086. .isChooseCard {
  24087. background-image: none;
  24088. border: 1px dashed #b9b9b9;
  24089. border-radius: 10px;
  24090. }
  24091. .card {
  24092. width: 130px;
  24093. height: 60px;
  24094. }
  24095. .card > img {
  24096. width: 100%;
  24097. height: 100%;
  24098. }
  24099. .rightCardBox {
  24100. margin: 10px 0 0 10px;
  24101. }
  24102. .rightCardBox > div:nth-child(1) {
  24103. margin-bottom: 10px;
  24104. }
  24105. .cardCss {
  24106. display: flex;
  24107. flex-direction: column;
  24108. flex-wrap: nowrap;
  24109. align-items: center;
  24110. border-bottom: 3px solid #b4c3d3;
  24111. padding: 0 0 5px 0;
  24112. margin-right: 10px;
  24113. }
  24114. .cardCss > div:nth-child(2) {
  24115. background: #5b7b9d;
  24116. color: #fff;
  24117. width: 20px;
  24118. height: 20px;
  24119. border-radius: 50%;
  24120. text-align: center;
  24121. line-height: 20px;
  24122. }
  24123. .isWrong {
  24124. display: flex;
  24125. flex-direction: row;
  24126. flex-wrap: nowrap;
  24127. align-content: center;
  24128. align-items: center;
  24129. }
  24130. .answerRight {
  24131. width: 25%;
  24132. }
  24133. .isTj {
  24134. display: flex;
  24135. flex-direction: row;
  24136. flex-wrap: nowrap;
  24137. align-items: center;
  24138. }
  24139. .isTj > div:nth-child(2) {
  24140. color: #727070;
  24141. margin-left: 10px;
  24142. }
  24143. .isTjImg {
  24144. width: 30px;
  24145. height: 30px;
  24146. }
  24147. .isTjImg > img {
  24148. width: 100%;
  24149. height: 100%;
  24150. }
  24151. .cardAnswerBox {
  24152. font-size: 18px;
  24153. width: 97%;
  24154. border: 5px;
  24155. padding: 0;
  24156. border-radius: 5px;
  24157. margin: 10px auto;
  24158. word-break: break-word;
  24159. }
  24160. .w_name {
  24161. margin-bottom: 10px;
  24162. }
  24163. .w_name span {
  24164. font-size: 16px;
  24165. }
  24166. .w_teachert {
  24167. width: 50px !important;
  24168. position: absolute;
  24169. height: auto !important;
  24170. z-index: 10;
  24171. right: 25px;
  24172. top: -25px;
  24173. }
  24174. /* .group_workBox {
  24175. } */
  24176. .group_workBox + .group_workBox {
  24177. margin-top: 20px;
  24178. }
  24179. .group_box {
  24180. padding-bottom: 20px;
  24181. border-bottom: 2px solid #f0f0f0;
  24182. margin-top: 10px;
  24183. }
  24184. .group_title {
  24185. display: flex;
  24186. align-items: center;
  24187. justify-content: space-between;
  24188. width: 95%;
  24189. }
  24190. .group_name {
  24191. background-image: url(../assets/icon/groupN.png);
  24192. width: 220px;
  24193. background-size: 100% 100%;
  24194. height: 67px;
  24195. padding: 0 20px 0 43px;
  24196. box-sizing: border-box;
  24197. line-height: 63px;
  24198. color: #fff;
  24199. overflow: hidden;
  24200. white-space: nowrap;
  24201. text-overflow: ellipsis;
  24202. }
  24203. .group_work {
  24204. width: 100%;
  24205. padding: 0 10px;
  24206. box-sizing: border-box;
  24207. display: flex;
  24208. flex-wrap: wrap;
  24209. }
  24210. .g_d_box {
  24211. display: flex;
  24212. flex-flow: wrap;
  24213. justify-content: space-around;
  24214. }
  24215. .g_d_box .isChair {
  24216. background-image: url(../assets/avatar.png) !important;
  24217. }
  24218. .g_d_group {
  24219. width: 500px;
  24220. margin-bottom: 80px;
  24221. }
  24222. .g_d_group_chair {
  24223. display: flex;
  24224. align-items: center;
  24225. justify-content: center;
  24226. }
  24227. .g_d_group_chair > div + div {
  24228. margin-left: 30px;
  24229. }
  24230. .g_d_group_chair > div,
  24231. .g_d_group_chair2 > div {
  24232. display: flex;
  24233. flex-direction: column;
  24234. align-items: center;
  24235. }
  24236. .g_d_group_chair > div > span:nth-child(1),
  24237. .g_d_group_chair2 > div > span:nth-child(1) {
  24238. background-image: url(../assets/icon/chair.png);
  24239. width: 50px;
  24240. height: 50px;
  24241. display: block;
  24242. background-size: 100% 100%;
  24243. }
  24244. .g_d_group_tableBox {
  24245. display: flex;
  24246. align-items: center;
  24247. justify-content: center;
  24248. }
  24249. .g_d_group_chair2 {
  24250. display: flex;
  24251. flex-direction: column;
  24252. align-items: center;
  24253. justify-content: center;
  24254. }
  24255. .g_d_group_chair2 > div + div {
  24256. margin-top: 10px;
  24257. }
  24258. .g_d_group_table {
  24259. background-image: url(../assets/icon/groupBg.png);
  24260. width: 354px;
  24261. height: 196px;
  24262. background-size: 100% 100%;
  24263. display: flex;
  24264. align-items: center;
  24265. justify-content: center;
  24266. flex-direction: column;
  24267. color: #fff;
  24268. }
  24269. .g_d_group_table > div:nth-child(1) {
  24270. font-size: 24px;
  24271. margin-bottom: 5px;
  24272. }
  24273. .g_d_group_table > div:nth-child(2) div {
  24274. cursor: pointer;
  24275. background: #2e77bf;
  24276. padding: 4px 10px;
  24277. border-radius: 5px;
  24278. }
  24279. /* .groupBox {
  24280. } */
  24281. .groupContent + .groupContent {
  24282. margin-top: 30px;
  24283. }
  24284. .groupTitle {
  24285. font-size: 24px;
  24286. color: rgb(80, 80, 80);
  24287. margin-bottom: 20px;
  24288. }
  24289. .groupName {
  24290. display: flex;
  24291. align-items: center;
  24292. }
  24293. .groupn {
  24294. font-size: 15px;
  24295. margin-right: 10px;
  24296. }
  24297. .groupName + .groupName {
  24298. margin-top: 15px;
  24299. }
  24300. .groupBtn {
  24301. margin-left: 10px;
  24302. }
  24303. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24304. text-align: left;
  24305. }
  24306. .g_d_btnBox {
  24307. display: flex;
  24308. justify-content: flex-end;
  24309. align-items: center;
  24310. margin-bottom: 20px;
  24311. }
  24312. .updateChair {
  24313. position: relative;
  24314. }
  24315. .updateChairBtn {
  24316. position: absolute;
  24317. width: 50px;
  24318. height: 50px;
  24319. overflow: hidden;
  24320. /* display: flex; */
  24321. align-items: center;
  24322. justify-content: center;
  24323. background: #00000087;
  24324. color: #fff;
  24325. border-radius: 50px;
  24326. display: none;
  24327. cursor: pointer;
  24328. }
  24329. .updateChair:hover .updateChairBtn {
  24330. display: flex;
  24331. }
  24332. .group_staic_box {
  24333. display: flex;
  24334. padding: 30px 40px 10px;
  24335. flex-wrap: wrap;
  24336. }
  24337. .group_staic {
  24338. /* width: 50%; */
  24339. margin-bottom: 20px;
  24340. display: flex;
  24341. align-items: center;
  24342. }
  24343. .group_staic span:nth-child(1) {
  24344. width: 150px;
  24345. text-align: right;
  24346. margin-right: 15px;
  24347. }
  24348. .group_staic span:nth-child(2) {
  24349. background: rgb(0 123 255);
  24350. color: #fff;
  24351. border-radius: 5px;
  24352. padding: 5px;
  24353. }
  24354. .codeFileBox {
  24355. height: 300px;
  24356. background: #fff;
  24357. display: flex;
  24358. align-items: center;
  24359. justify-content: center;
  24360. }
  24361. .codeFileBox img {
  24362. width: 200px;
  24363. margin: 0;
  24364. height: auto;
  24365. }
  24366. .codeFileBox div {
  24367. background: rgb(80, 142, 226);
  24368. color: #fff;
  24369. padding: 10px 20px;
  24370. border-radius: 25px;
  24371. cursor: pointer;
  24372. margin-left: 15px;
  24373. }
  24374. .radioBox {
  24375. display: flex;
  24376. flex-direction: column;
  24377. flex-wrap: nowrap;
  24378. align-items: flex-start;
  24379. }
  24380. .radioBox > div {
  24381. margin: 10px 0 0 10px;
  24382. }
  24383. /* .radioBox >>> .el-radio__input,
  24384. .radioBox >>> .el-checkbox__inner {
  24385. margin-left: 10px;
  24386. } */
  24387. .radioBox >>> .el-radio__label,
  24388. .radioBox >>> .el-checkbox__label {
  24389. display: flex;
  24390. align-items: center;
  24391. width: 100%;
  24392. }
  24393. .radioBox >>> .el-radio__label > span {
  24394. width: 100%;
  24395. display: -webkit-box;
  24396. overflow: hidden;
  24397. white-space: normal !important;
  24398. text-overflow: ellipsis;
  24399. word-wrap: break-word;
  24400. }
  24401. .inImg {
  24402. width: 100px;
  24403. cursor: pointer;
  24404. }
  24405. .inImg > img {
  24406. width: 100%;
  24407. height: 100%;
  24408. object-fit: cover;
  24409. }
  24410. .timuImgBox {
  24411. margin: 10px 0;
  24412. display: flex;
  24413. flex-direction: column;
  24414. flex-wrap: wrap;
  24415. align-items: flex-start;
  24416. }
  24417. .timuImg {
  24418. width: 150px;
  24419. margin: 5px 0;
  24420. cursor: pointer;
  24421. }
  24422. .timuImg > img {
  24423. width: 100%;
  24424. height: 100%;
  24425. object-fit: cover;
  24426. }
  24427. .worksTop {
  24428. display: flex;
  24429. flex-direction: row;
  24430. align-items: flex-end;
  24431. }
  24432. .worksTitle{
  24433. display: flex;
  24434. flex-direction: row;
  24435. flex-wrap: nowrap;
  24436. align-items: center;
  24437. }
  24438. .worksTitle::before,.worksTop::before{
  24439. content: '';
  24440. display: block;
  24441. width: 3px;
  24442. height: 20px;
  24443. background: #0061FF;
  24444. border-radius: 3px;
  24445. margin: 0 5px 0 0;
  24446. }
  24447. .corOpen {
  24448. margin: 0 0 0 10px;
  24449. font-size: 14px;
  24450. cursor: pointer;
  24451. color: #505050;
  24452. }
  24453. .corOpen:hover {
  24454. color: #499eef;
  24455. }
  24456. .navCorOpenBox {
  24457. display: flex;
  24458. flex-direction: row;
  24459. align-items: center;
  24460. justify-content: space-between;
  24461. height: 55px;
  24462. background: #ffffff;
  24463. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24464. border-radius: 8px 8px 0px 0px;
  24465. z-index: 9;
  24466. position: relative;
  24467. }
  24468. .navCorOpen {
  24469. padding-right: 15px;
  24470. cursor: pointer;
  24471. width: 45px;
  24472. display: flex;
  24473. }
  24474. .navCorOpen > img {
  24475. width: 100%;
  24476. height: 100%;
  24477. }
  24478. .mlImg {
  24479. width: 40px !important;
  24480. min-width: 40px;
  24481. cursor: pointer;
  24482. transform: rotate(180deg);
  24483. }
  24484. .mlImg > img {
  24485. width: 100%;
  24486. height: 100%;
  24487. }
  24488. .navLeftCss {
  24489. width: 100% !important;
  24490. left: 0 !important;
  24491. }
  24492. .isContentCss {
  24493. width: 100% !important;
  24494. }
  24495. .isAllWidth {
  24496. width: 100% !important;
  24497. }
  24498. .group_switch {
  24499. margin-right: 10px;
  24500. height: 30px;
  24501. display: flex;
  24502. align-items: center;
  24503. }
  24504. .group_switch > span {
  24505. margin-right: 5px;
  24506. }
  24507. .fileC_box {
  24508. padding-top: 15px;
  24509. }
  24510. .fileC_box > .fileC_title {
  24511. padding: 10px 5px 14px 10px;
  24512. border-top: 1px solid #cad1dc;
  24513. font-size: 14px;
  24514. font-weight: 400;
  24515. color: #cad1dc;
  24516. width: calc(100% - 20px);
  24517. margin: 0 auto;
  24518. box-sizing: border-box;
  24519. }
  24520. .pl_select_box {
  24521. height: 40px;
  24522. line-height: 40px;
  24523. width: 100%;
  24524. cursor: pointer;
  24525. padding: 0 20px;
  24526. box-sizing: border-box;
  24527. border-radius: 5px;
  24528. border: 1px solid #d6d6d6;
  24529. white-space: nowrap;
  24530. overflow: hidden;
  24531. text-overflow: ellipsis;
  24532. background: #fff;
  24533. text-align: left;
  24534. }
  24535. .newButton {
  24536. width: 102px;
  24537. height: 36px;
  24538. background: #e7ebf1;
  24539. border-radius: 4px;
  24540. color: #0e1e33;
  24541. font-weight: 400;
  24542. font-size: 14px;
  24543. border: none;
  24544. float: right;
  24545. margin-left: 10px;
  24546. }
  24547. .el-table >>> .even_row {
  24548. background-color: #f0f4fa;
  24549. }
  24550. .stageBoxCss,
  24551. .stageBoxIsCss {
  24552. display: flex;
  24553. flex-direction: row;
  24554. flex-wrap: nowrap;
  24555. align-items: center;
  24556. height: 50px;
  24557. border-bottom: 1px solid #e2f5fc;
  24558. cursor: pointer;
  24559. width: 100%;
  24560. }
  24561. .stageBoxIsCss {
  24562. background: #0061ff;
  24563. color: #fff;
  24564. border-radius: 8px;
  24565. }
  24566. .stageItemTitle {
  24567. display: flex;
  24568. flex-direction: row;
  24569. flex-wrap: nowrap;
  24570. align-items: center;
  24571. margin-left: 15px;
  24572. width: calc(100% - 50px);
  24573. }
  24574. /* .stageNav{ */
  24575. /* font-weight: bold; */
  24576. /* } */
  24577. .stageItemTitle > div:first-child {
  24578. min-width: 55px;
  24579. }
  24580. .stageItemTitle > div:last-child {
  24581. max-width: 242px;
  24582. white-space: nowrap;
  24583. overflow: hidden;
  24584. text-overflow: ellipsis;
  24585. word-break: break-word;
  24586. width: calc(100% - 55px);
  24587. }
  24588. .closeTri,
  24589. .closeTri1 {
  24590. min-width: 15px;
  24591. width: 15px;
  24592. height: 15px;
  24593. transition: all .5s;
  24594. }
  24595. .closeTri1 {
  24596. padding-left: 10px;
  24597. cursor: pointer;
  24598. }
  24599. .closeTri > img,
  24600. .closeTri1 > img {
  24601. width: 100%;
  24602. height: 100%;
  24603. /* transition: all .5s; */
  24604. }
  24605. .noToolBlue {
  24606. min-width: 10px;
  24607. width: 10px;
  24608. height: 10px;
  24609. background: #0061ff;
  24610. border-radius: 50%;
  24611. margin-left: 13px;
  24612. }
  24613. .stageChild,
  24614. .toolChild {
  24615. height: 0;
  24616. overflow: hidden;
  24617. transition: all 0.5s;
  24618. }
  24619. /* .toolChild { */
  24620. /* margin: 0 0 0 17px;
  24621. padding: 0 0 0 20px;
  24622. border-left: 1px solid #d7d7d7; */
  24623. /* } */
  24624. .toolChild > div + div{
  24625. margin-top:5px;
  24626. }
  24627. .gjCss {
  24628. display: flex;
  24629. flex-direction: row;
  24630. flex-wrap: nowrap;
  24631. align-items: center;
  24632. padding: 10px 0 10px 25px;
  24633. box-sizing: border-box;
  24634. font-size: 14px;
  24635. cursor: pointer;
  24636. border-radius:5px;
  24637. }
  24638. .gjCss > div:nth-child(1){
  24639. flex-shrink: 0;
  24640. }
  24641. .toolChild > div {
  24642. position: relative;
  24643. width:100%;
  24644. }
  24645. /* .toolChild > div::before { */
  24646. /* content: "";
  24647. width: 15px;
  24648. height: 1px;
  24649. background: #cad1dc;
  24650. position: absolute;
  24651. top: 24px;
  24652. left: -20px;
  24653. display: block; */
  24654. /* } */
  24655. .isGjCss {
  24656. /* color: #0061ff; */
  24657. color:#fff;
  24658. background: rgb(55, 129, 252);
  24659. /* background-color: #e0eafb !important;
  24660. color: #0061ff !important; */
  24661. }
  24662. .navItem {
  24663. background: #ffffff;
  24664. border-radius: 4px;
  24665. width: 100%;
  24666. margin: 10px auto;
  24667. position: relative;
  24668. height: 40px;
  24669. display: flex;
  24670. flex-direction: row;
  24671. flex-wrap: nowrap;
  24672. align-items: center;
  24673. }
  24674. .navItemList {
  24675. display: flex;
  24676. flex-direction: row;
  24677. flex-wrap: nowrap;
  24678. align-items: center;
  24679. padding: 0 13px;
  24680. cursor: pointer;
  24681. width: calc(100% - 60px);
  24682. height: 100%;
  24683. }
  24684. .navItemList > div:first-child {
  24685. /* min-width: 60px; */
  24686. min-width:fit-content;
  24687. }
  24688. .navItemList > div:last-child {
  24689. width: calc(100% - 80px);
  24690. white-space: nowrap;
  24691. overflow: hidden;
  24692. text-overflow: ellipsis;
  24693. word-break: break-word;
  24694. }
  24695. /* .isItemList > div {
  24696. color: #fff !important;
  24697. } */
  24698. .tool_work_box {
  24699. width: 100%;
  24700. padding: 0 37px 0;
  24701. box-sizing: border-box;
  24702. }
  24703. .tool_box {
  24704. width: 100%;
  24705. padding: 0 0 0 20px;
  24706. }
  24707. .tool_type_box {
  24708. display: flex;
  24709. flex-direction: row;
  24710. align-items: baseline;
  24711. flex-wrap: nowrap;
  24712. justify-content: flex-start;
  24713. position: relative;
  24714. }
  24715. .toolSort {
  24716. display: flex;
  24717. flex-direction: row;
  24718. flex-wrap: wrap;
  24719. justify-content: flex-start;
  24720. align-items: flex-start;
  24721. padding: 0 0 15px 0;
  24722. }
  24723. .toolSort > div {
  24724. margin: 0 10px 0 0;
  24725. width: 135px;
  24726. box-sizing: border-box;
  24727. border: 2px solid transparent;
  24728. }
  24729. .tools {
  24730. width: 100%;
  24731. display: flex;
  24732. flex-direction: column;
  24733. flex-wrap: nowrap;
  24734. align-items: flex-start;
  24735. }
  24736. .whiteBIcon {
  24737. width: fit-content;
  24738. cursor: pointer;
  24739. display: flex;
  24740. flex-direction: column;
  24741. flex-wrap: nowrap;
  24742. align-items: center;
  24743. font-size: 14px;
  24744. }
  24745. .tool:hover {
  24746. border: 2px solid #a5c7ff;
  24747. border-radius: 5px;
  24748. }
  24749. .whiteBIcon > img {
  24750. width: 65px;
  24751. height: 100%;
  24752. }
  24753. .whiteBIcon > img {
  24754. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  24755. border-radius: 15px;
  24756. }
  24757. .check {
  24758. /* width: 20px;
  24759. height: 20px; */
  24760. cursor: pointer;
  24761. margin: 10px 0;
  24762. position: absolute;
  24763. right: 2px;
  24764. top: -5px;
  24765. }
  24766. .noChoose,
  24767. .isChoose {
  24768. width: 15px;
  24769. height: 15px;
  24770. border-radius: 50%;
  24771. border: 1px solid #adadad;
  24772. }
  24773. .isChoose {
  24774. border: 4px solid #0363ff !important;
  24775. width: 10px;
  24776. height: 10px;
  24777. }
  24778. .isToolChoose {
  24779. border: 2px solid #5394ff !important;
  24780. border-radius: 5px;
  24781. box-shadow: 0 0 6px 0px #5394ff;
  24782. }
  24783. .checkDiv {
  24784. display: flex;
  24785. align-items: center;
  24786. }
  24787. .checkDiv span {
  24788. margin-left: 5px;
  24789. color: #858585;
  24790. }
  24791. .check img {
  24792. width: 20px;
  24793. height: 20px;
  24794. }
  24795. .lockTaskIcon {
  24796. width: 20px;
  24797. height: 20px;
  24798. position: absolute;
  24799. right: 10px;
  24800. top: 5px;
  24801. }
  24802. .lockTaskIcon > img {
  24803. width: 100%;
  24804. height: 100%;
  24805. }
  24806. .pick_box {
  24807. display: flex;
  24808. align-items: flex-start;
  24809. flex-wrap: wrap;
  24810. }
  24811. .selectBox {
  24812. width: 110px;
  24813. margin-left: 10px;
  24814. margin: 0 10px 0 auto;
  24815. }
  24816. .selectBox >>> .el-input__inner {
  24817. height: 30px;
  24818. line-height: 30px;
  24819. }
  24820. .selectBox >>> .el-input__icon {
  24821. line-height: 30px;
  24822. }
  24823. .sentenceTitle {
  24824. display: flex;
  24825. flex-direction: row;
  24826. flex-wrap: nowrap;
  24827. align-items: center;
  24828. }
  24829. .sentenceTitle::before {
  24830. content: attr(index);
  24831. background: #3681fc;
  24832. border-radius: 50%;
  24833. color: #fff;
  24834. width: 25px;
  24835. height: 25px;
  24836. min-width: 25px;
  24837. min-height: 25px;
  24838. text-align: center;
  24839. line-height: 25px;
  24840. margin-right: 5px;
  24841. }
  24842. .hfBox {
  24843. padding: 10px;
  24844. box-sizing: border-box;
  24845. }
  24846. .whoReplyWho {
  24847. display: flex;
  24848. flex-direction: row;
  24849. flex-wrap: nowrap;
  24850. align-items: baseline;
  24851. justify-content: flex-start;
  24852. }
  24853. .hfBottom {
  24854. display: flex;
  24855. flex-direction: row;
  24856. flex-wrap: nowrap;
  24857. align-items: center;
  24858. justify-content: space-between;
  24859. font-size: 14px;
  24860. }
  24861. .deleteHfItem {
  24862. cursor: pointer;
  24863. width: 20px;
  24864. height: 20px;
  24865. }
  24866. .deleteHfItem > img {
  24867. width: 100%;
  24868. height: 100%;
  24869. }
  24870. .whoReplyWho > .hfImg {
  24871. width: 12px;
  24872. height: 12px;
  24873. margin: 0 5px;
  24874. }
  24875. .whoReplyWho > .hfImg > img {
  24876. width: 100%;
  24877. height: 100%;
  24878. }
  24879. .hfContent {
  24880. padding-top: 10px;
  24881. box-sizing: border-box;
  24882. display: -webkit-box;
  24883. overflow: hidden;
  24884. white-space: normal !important;
  24885. text-overflow: ellipsis;
  24886. word-wrap: break-word;
  24887. -webkit-box-orient: vertical;
  24888. }
  24889. .hfTime {
  24890. text-align: left;
  24891. box-sizing: border-box;
  24892. padding: 10px 0 10px 0px;
  24893. color: #bfbfbf;
  24894. font-size: 14px;
  24895. }
  24896. .btnAllNT {
  24897. position: fixed;
  24898. bottom: 100px;
  24899. right: 40px;
  24900. z-index: 999;
  24901. display: flex;
  24902. flex-direction: row;
  24903. }
  24904. .btnAllNT > img {
  24905. cursor: pointer;
  24906. width: 80px;
  24907. }
  24908. .toolMask {
  24909. position: fixed;
  24910. width: 100%;
  24911. height: 100%;
  24912. background: #3f3c3c;
  24913. opacity: 0.5;
  24914. top: 0;
  24915. left: 0;
  24916. z-index: 999;
  24917. }
  24918. .addToolCss {
  24919. position: fixed;
  24920. z-index: 999;
  24921. background: #fff;
  24922. right: 5%;
  24923. bottom: 18%;
  24924. min-width: 1035px;
  24925. min-height: 300px;
  24926. border-radius: 10px;
  24927. box-shadow: 0 0 8px 1px #b2b2b2;
  24928. }
  24929. .toolTop {
  24930. display: flex;
  24931. flex-direction: row;
  24932. flex-wrap: nowrap;
  24933. justify-content: space-between;
  24934. align-items: center;
  24935. padding: 20px;
  24936. }
  24937. .toolTop > div:nth-child(2) {
  24938. width: 15px;
  24939. height: 15px;
  24940. padding-right: 10px;
  24941. cursor: pointer;
  24942. }
  24943. .toolTop > div:nth-child(2) > img {
  24944. width: 100%;
  24945. height: 100%;
  24946. }
  24947. .fullStyle>>>.el-dialog__body {
  24948. height: calc(100% - 125px) !important;
  24949. box-sizing: border-box;
  24950. padding: 30px 0 !important;
  24951. background: #fff !important;
  24952. }
  24953. .fullStyle>>>.el-dialog {
  24954. width: 100% !important;
  24955. max-width: 100% !important;
  24956. height: 100% !important;
  24957. margin: 0 !important;
  24958. }
  24959. .fullStyle {
  24960. width: 100% !important;
  24961. max-width: 100% !important;
  24962. height: 100% !important;
  24963. margin: 0 auto !important;
  24964. }
  24965. .fullStyle>>>.el-dialog__footer{
  24966. background: #fff !important;
  24967. }
  24968. .engUpBox {
  24969. width: 100%;
  24970. height: 100%;
  24971. }
  24972. .engTitle,
  24973. .engText {
  24974. display: flex;
  24975. flex-direction: row;
  24976. flex-wrap: nowrap;
  24977. align-items: flex-start;
  24978. padding: 0 20px 20px 20px;
  24979. box-sizing: border-box;
  24980. }
  24981. .engTitle > .div:first-child,
  24982. .engText > div:first-child {
  24983. min-width: 75px;
  24984. }
  24985. .correctBox{
  24986. width: 100%;
  24987. display: flex;
  24988. flex-direction: row;
  24989. flex-wrap: nowrap;
  24990. align-items: flex-start;
  24991. }
  24992. .oldBox{
  24993. width: 50%;
  24994. height: 100%;
  24995. display: flex;
  24996. flex-direction: column;
  24997. flex-wrap: nowrap;
  24998. align-items: center;
  24999. border-top: 1px solid #d9d9d9;
  25000. border-left: 1px solid #d9d9d9;
  25001. border-right: 1px solid #d9d9d9;
  25002. }
  25003. .oldBox>div:first-child{
  25004. width: 100%;
  25005. text-align: center;
  25006. background: #d9d9d9;
  25007. height: 35px;
  25008. line-height: 35px;
  25009. font-weight: bold;
  25010. }
  25011. .oldText{
  25012. width: 100%;
  25013. height: calc(100% - 35px);
  25014. overflow: auto;
  25015. margin: 10px 0;
  25016. display: flex;
  25017. flex-direction: column;
  25018. flex-wrap: nowrap;
  25019. align-content: center;
  25020. align-items: center;
  25021. }
  25022. .detailBox{
  25023. width: 50%;
  25024. padding: 10px;
  25025. background: #f6f6f6;
  25026. border-radius: 5px;
  25027. }
  25028. .oldDetail,.oldDetail1{
  25029. padding-bottom: 30px;
  25030. }
  25031. .oldImg{
  25032. width:30px;
  25033. height: 30px;
  25034. }
  25035. .oldImg>img{
  25036. width: 100%;
  25037. height: 100%;
  25038. }
  25039. .allName{
  25040. min-width: 200px;
  25041. white-space: nowrap;
  25042. overflow: hidden;
  25043. text-overflow: ellipsis;
  25044. word-break: break-word;
  25045. cursor: pointer;
  25046. text-align: center;
  25047. border: 1px solid #bcc2cc;
  25048. box-sizing: border-box;
  25049. }
  25050. .engUpTop{
  25051. max-height: 300px;
  25052. overflow: auto;
  25053. }
  25054. .isUpdateToolDetailClass{
  25055. padding: 0 !important;
  25056. }
  25057. .isUpdateToolDetailClass textarea{
  25058. padding:12px;
  25059. font-size: 16px;
  25060. min-height:100%;
  25061. width: 100%;
  25062. box-sizing:border-box;
  25063. outline: none;
  25064. border:none;
  25065. line-height: 30px;
  25066. resize: none;
  25067. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25068. color: #838383;
  25069. }
  25070. .show_taskD {
  25071. min-width: fit-content;
  25072. margin-left: 10px;
  25073. display: flex;
  25074. align-items: center;
  25075. font-size: 14px;
  25076. cursor: pointer;
  25077. color: #717c8d;
  25078. }
  25079. .show_taskD > img {
  25080. width: 15px;
  25081. margin-right: 5px;
  25082. transition: 0.2s all;
  25083. transform: rotate(-90deg);
  25084. }
  25085. .show_taskD.show > img {
  25086. transform: rotate(0deg);
  25087. }
  25088. .correctCss{
  25089. position: absolute;
  25090. bottom: -70px;
  25091. background: #409eff;
  25092. color: #fff;
  25093. }
  25094. .dialog_diyCopy >>> .el-dialog__header {
  25095. display: none !important;
  25096. }
  25097. .dialog_diyCopy >>> .el-dialog__body {
  25098. padding: 0 !important;
  25099. height: 100% !important;
  25100. }
  25101. .confirmOpenDigCss > div{
  25102. font-size: 14px;
  25103. color: rgba(0, 0, 0, 0.6);
  25104. }
  25105. .confirmOpenDigCss >>> .el-dialog{
  25106. border-radius: 6px;
  25107. }
  25108. .confirmOpenDigCss >>> .el-dialog__body{
  25109. padding: 25px !important;
  25110. }
  25111. .confirmOpenDigCss > span{
  25112. font-size: 16px;
  25113. font-weight: 600;
  25114. color: rgba(0, 0, 0, 0.8);
  25115. }
  25116. div::-webkit-scrollbar {
  25117. width: 10px;
  25118. height: 6px;
  25119. }
  25120. .Ovh{
  25121. margin: 5px 0;
  25122. width: 4em;
  25123. -webkit-line-clamp: 2;
  25124. display: -webkit-box;
  25125. -webkit-box-orient: vertical;
  25126. overflow: hidden;
  25127. text-overflow: ellipsis;
  25128. }
  25129. .renderedFor >>> .katex {
  25130. font-size: 18px;
  25131. width: 100%;
  25132. white-space: normal;
  25133. font-family: '黑体' !important;
  25134. }
  25135. .renderedFor >>> .katex .base{
  25136. display: inline !important;
  25137. display: contents !important;
  25138. }
  25139. .renderedFor>>> .katex .base .cjk_fallback{
  25140. white-space: normal !important;
  25141. display: inline !important;
  25142. }
  25143. .notop >>> .vjs-fluid{
  25144. padding-top: 0 !important;
  25145. }
  25146. .xiaz{
  25147. position: absolute;
  25148. right: 40px;
  25149. top: 10px;
  25150. width: 24px !important;
  25151. padding: 4px;
  25152. box-sizing: border-box;
  25153. background: #243052;
  25154. border-radius: 8px;
  25155. height: 24px !important;
  25156. }
  25157. </style>