studyStudent.vue 872 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849
  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.ssStage.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)"><!--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" v-if="w.type == 0">
  7313. <img
  7314. :src="w.works"
  7315. @click="previewImg(w.works,w)"
  7316. alt
  7317. />
  7318. <div
  7319. class="answerScore"
  7320. v-if="w.score"
  7321. @click.stop="openScore(w)"
  7322. :class="{
  7323. rightW:
  7324. w.userid == userid ||
  7325. tType == 1 ||
  7326. tType == 4 ||
  7327. w.ateacher == userid,
  7328. }"
  7329. >
  7330. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7331. </div>
  7332. <div
  7333. class="answerScore"
  7334. @click.stop="openScore(w)"
  7335. v-else-if="courseDetail.userid == userid"
  7336. :class="{
  7337. rightW:
  7338. w.userid == userid ||
  7339. tType == 1 ||
  7340. tType == 4 ||
  7341. w.ateacher == userid,
  7342. }"
  7343. >
  7344. {{ lang.ssMarkScore }}
  7345. </div>
  7346. <img
  7347. class="deleteImg"
  7348. src="../assets/deleteworks.png"
  7349. v-if="
  7350. w.userid == userid ||
  7351. tType == 1 ||
  7352. tType == 4
  7353. "
  7354. @click.stop="deleteWorks(w.wid)"
  7355. alt
  7356. />
  7357. </div>
  7358. <div class="workImg" v-if="w.type == 1">
  7359. <img
  7360. :src="word"
  7361. @click="openFile(w.works,w)"
  7362. alt
  7363. />
  7364. <!-- @click="openFile(w.works)" -->
  7365. <div
  7366. class="answerScore"
  7367. v-if="w.score"
  7368. @click.stop="openScore(w)"
  7369. :class="{
  7370. rightW:
  7371. w.userid == userid ||
  7372. tType == 1 ||
  7373. tType == 4 ||
  7374. w.ateacher == userid,
  7375. }"
  7376. >
  7377. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7378. </div>
  7379. <div
  7380. class="answerScore"
  7381. @click.stop="openScore(w)"
  7382. v-else-if="courseDetail.userid == userid"
  7383. :class="{
  7384. rightW:
  7385. w.userid == userid ||
  7386. tType == 1 ||
  7387. tType == 4 ||
  7388. w.ateacher == userid,
  7389. }"
  7390. >
  7391. {{ lang.ssMarkScore }}
  7392. </div>
  7393. <img
  7394. class="deleteImg"
  7395. src="../assets/deleteworks.png"
  7396. v-if="
  7397. w.userid == userid ||
  7398. tType == 1 ||
  7399. tType == 4
  7400. "
  7401. @click.stop="deleteWorks(w.wid)"
  7402. alt
  7403. />
  7404. </div>
  7405. <div class="workImg" v-if="w.type == 3">
  7406. <img
  7407. style="cursor: pointer"
  7408. :src="video"
  7409. @click="openVideo(w)"
  7410. alt
  7411. />
  7412. <!-- @click="openVideo(w.works)" -->
  7413. <div
  7414. class="answerScore"
  7415. v-if="w.score"
  7416. @click.stop="openScore(w)"
  7417. :class="{
  7418. rightW:
  7419. w.userid == userid ||
  7420. tType == 1 ||
  7421. tType == 4 ||
  7422. w.ateacher == userid,
  7423. }"
  7424. >
  7425. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7426. </div>
  7427. <div
  7428. class="answerScore"
  7429. @click.stop="openScore(w)"
  7430. v-else-if="courseDetail.userid == userid"
  7431. :class="{
  7432. rightW:
  7433. w.userid == userid ||
  7434. tType == 1 ||
  7435. tType == 4 ||
  7436. w.ateacher == userid,
  7437. }"
  7438. >
  7439. {{ lang.ssMarkScore }}
  7440. </div>
  7441. <img
  7442. class="deleteImg"
  7443. src="../assets/deleteworks.png"
  7444. v-if="
  7445. w.userid == userid ||
  7446. tType == 1 ||
  7447. tType == 4
  7448. "
  7449. @click.stop="deleteWorks(w.wid)"
  7450. alt
  7451. />
  7452. </div>
  7453. <div class="workImg" v-if="w.type == 12">
  7454. <img
  7455. style="cursor: pointer"
  7456. :src="word2"
  7457. @click="downloadFile(w.works,w.userid)"
  7458. alt
  7459. />
  7460. <!-- @click="openVideo(w.works)" -->
  7461. <div
  7462. class="answerScore"
  7463. v-if="w.score"
  7464. @click.stop="openScore(w)"
  7465. :class="{
  7466. rightW:
  7467. w.userid == userid ||
  7468. tType == 1 ||
  7469. tType == 4 ||
  7470. w.ateacher == userid,
  7471. }"
  7472. >
  7473. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7474. </div>
  7475. <div
  7476. class="answerScore"
  7477. @click.stop="openScore(w)"
  7478. v-else-if="courseDetail.userid == userid"
  7479. :class="{
  7480. rightW:
  7481. w.userid == userid ||
  7482. tType == 1 ||
  7483. tType == 4 ||
  7484. w.ateacher == userid,
  7485. }"
  7486. >
  7487. {{ lang.ssMarkScore }}
  7488. </div>
  7489. <img
  7490. class="deleteImg"
  7491. src="../assets/deleteworks.png"
  7492. v-if="
  7493. w.userid == userid ||
  7494. tType == 1 ||
  7495. tType == 4
  7496. "
  7497. @click.stop="deleteWorks(w.wid)"
  7498. alt
  7499. />
  7500. </div>
  7501. <div class="comment" style="min-width: 200px">
  7502. <div class="worksName">
  7503. <div>{{ w.sName }}</div>
  7504. </div>
  7505. <div class="commentList">
  7506. <div class="commentList">
  7507. <div
  7508. class="commentImg"
  7509. @click="
  7510. isLikes(
  7511. w.wid,
  7512. userid,
  7513. 1,
  7514. null,
  7515. w.isLikes,
  7516. w.sName
  7517. )
  7518. "
  7519. >
  7520. <img
  7521. :src="
  7522. w.isLikes == true ? likes : noLikes
  7523. "
  7524. alt=""
  7525. />
  7526. </div>
  7527. <div>{{ w.likesCount }}</div>
  7528. </div>
  7529. <div
  7530. class="commentList"
  7531. style="margin-right: 15px"
  7532. >
  7533. <div
  7534. class="commentImg"
  7535. @click="
  7536. commentOther(
  7537. w,
  7538. toolIndex,
  7539. wIndex,
  7540. gindex
  7541. )
  7542. "
  7543. >
  7544. <img
  7545. src="../assets/icon/comment/comment.png"
  7546. alt=""
  7547. />
  7548. </div>
  7549. <div>{{ w.commentCount }}</div>
  7550. </div>
  7551. </div>
  7552. </div>
  7553. </div>
  7554. </div>
  7555. </div>
  7556. </div>
  7557. </div>
  7558. </div>
  7559. </div>
  7560. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7561. 上传文件
  7562. <input
  7563. type="file"
  7564. accept="image/png, image/gif, image/jpeg"
  7565. style="display: none"
  7566. @change="beforeUpload1($event, 2, index)"
  7567. />
  7568. </div>-->
  7569. </div>
  7570. </div>
  7571. <div
  7572. class="vedioBox"
  7573. style="margin-top: 10px; border-radius: 20px"
  7574. v-if="
  7575. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7576. .eList &&
  7577. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7578. .eList.length &&
  7579. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7580. .eList.length > 0 &&
  7581. tType != 2
  7582. "
  7583. >
  7584. <div
  7585. class="queTop"
  7586. style="
  7587. font-size: 20px;
  7588. padding: 15px 0 15px 37px;
  7589. font-weight: bold;
  7590. "
  7591. >
  7592. <!-- <div class="question" style="width: 30px">
  7593. <img src="../assets/icon/toolIcon.png" alt />
  7594. </div>
  7595. <div class="queTitle">
  7596. <div>工具</div>
  7597. </div>-->
  7598. {{ lang.ssEvaluate }}
  7599. </div>
  7600. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7601. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7602. <el-table
  7603. :data="
  7604. chapInfoList[courseType].chapterInfo[0].taskJson[
  7605. taskCount
  7606. ].eList
  7607. "
  7608. :header-cell-style="{ background: '#F0F4FA' }"
  7609. :row-class-name="tableRowClassName"
  7610. border
  7611. stripe
  7612. style="width: 100%"
  7613. >
  7614. <el-table-column
  7615. :label="lang.ssEvalName"
  7616. align="center"
  7617. >
  7618. <template slot-scope="scope"
  7619. ><div>{{ scope.row.value }}</div></template
  7620. >
  7621. </el-table-column>
  7622. <el-table-column
  7623. :label="lang.ssEvalDimensionDesc"
  7624. align="center"
  7625. >
  7626. <template slot-scope="scope"
  7627. ><div>
  7628. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7629. </div></template
  7630. >
  7631. </el-table-column>
  7632. <el-table-column :label="lang.ssTarget" align="center">
  7633. <template slot-scope="scope"
  7634. ><div>
  7635. {{
  7636. scope.row.target
  7637. ? scope.row.target[scope.row.target.length - 1]
  7638. : "-"
  7639. }}
  7640. </div></template
  7641. ></el-table-column
  7642. >
  7643. </el-table>
  7644. <!-- <div
  7645. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7646. .chapterInfo[0].taskJson[taskCount].eList"
  7647. :key="eIndex"
  7648. class="elist_input_box"
  7649. >
  7650. <div style="width: 95%">
  7651. <div
  7652. style="
  7653. display: flex;
  7654. flex-direction: row;
  7655. flex-wrap: nowrap;
  7656. align-items: center;
  7657. "
  7658. >
  7659. <div style="max-width: calc(100% - 285px)">
  7660. <span>{{ eItem.value }}</span>
  7661. </div>
  7662. <div
  7663. style="
  7664. padding-left: 25px;
  7665. display: flex;
  7666. flex-direction: row;
  7667. align-items: center;
  7668. "
  7669. >
  7670. <el-rate
  7671. v-model="eItem.score"
  7672. :colors="colors"
  7673. disabled
  7674. ></el-rate>
  7675. </div>
  7676. </div>
  7677. <div class="elist_inptu_text" style="padding-left: 10px">
  7678. <span v-if="eItem.detail != ''">{{
  7679. eItem.detail
  7680. }}</span>
  7681. <span v-else style="color: #b2b1b3; font-size: 14px"
  7682. >{{ lang.ssNoDesc }}</span
  7683. >
  7684. </div>
  7685. </div>
  7686. </div> -->
  7687. </div>
  7688. <div
  7689. v-if="evalua"
  7690. style="
  7691. border: 1px solid #e5e5e5;
  7692. max-width: 650px;
  7693. width: 100%;
  7694. margin-top: 20px;
  7695. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7696. "
  7697. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7698. >
  7699. <div class="e_add_top">
  7700. <div class="e_add_title" style="width: 100%">
  7701. <!-- <span>目标管理名称</span> -->
  7702. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7703. <img
  7704. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7705. src="../assets/line.png"
  7706. class="cru_line"
  7707. style="
  7708. width: 125px;
  7709. height: 20px;
  7710. bottom: -10px;
  7711. left: 5px;
  7712. "
  7713. />
  7714. <!-- <el-input
  7715. v-model="eTitle"
  7716. :placeholder="this.lang.ssEnterName"
  7717. @change="setMindData"
  7718. ></el-input>-->
  7719. <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>
  7720. <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>
  7721. </div>
  7722. </div>
  7723. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7724. <div class="e_add_list_pbox">
  7725. <div class="e_add_list_pbox_title">
  7726. <!-- <span class="type_title">切换模式</span> -->
  7727. <div class="type_content">
  7728. <span
  7729. :class="{ active: typeMode == 1 }"
  7730. @click="typeMode = 1"
  7731. >{{lang.ssTargetTree}}</span
  7732. >
  7733. <span
  7734. :class="{ active: typeMode == 2 }"
  7735. @click="typeMode = 2"
  7736. >{{lang.ssTargetCompass}}</span
  7737. >
  7738. <!-- <span
  7739. :class="{ active: typeMode == 3 }"
  7740. @click="typeMode = 3"
  7741. >目标看板</span
  7742. > -->
  7743. </div>
  7744. </div>
  7745. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7746. <Mind
  7747. :showBar="false"
  7748. :mindData="data"
  7749. style="width: 100%"
  7750. v-show="typeMode == 1"
  7751. ></Mind>
  7752. <Sunburst
  7753. :Josn="eJson"
  7754. :num="eJSONNum"
  7755. style="width: 100%"
  7756. v-if="typeMode == 2"
  7757. ></Sunburst>
  7758. <SeeBoard
  7759. :Josn="eJson"
  7760. :num="eJSONNum"
  7761. :ename="eTitle"
  7762. style="width: 100%"
  7763. v-if="typeMode == 3"
  7764. >
  7765. </SeeBoard>
  7766. </div>
  7767. </div>
  7768. </div>
  7769. </div>
  7770. </div>
  7771. </div>
  7772. <!-- <div
  7773. class="project_box"
  7774. style="margin-top: 15px; padding-bottom: 30px"
  7775. >
  7776. <div
  7777. style="
  7778. display: flex;
  7779. flex-wrap: nowrap;
  7780. flex-direction: column;
  7781. position: relative;
  7782. "
  7783. >
  7784. <div class="queTop">
  7785. <div class="question">
  7786. <img src="../assets/icon/homeWork.png" alt="" />
  7787. </div>
  7788. <div class="queTitle">
  7789. <div>{{ lang.ssHomeworkSubmit }}<span>{{ lang.ssSubmitDescText }}</span></div>
  7790. <div>{{ lang.ssTaskColon }}{{ task.task }}</div>
  7791. </div>
  7792. </div>
  7793. <div class="ediBottom">
  7794. <div
  7795. class="addEditor"
  7796. style="margin-top: 23px"
  7797. @click="openAddWork"
  7798. v-if="!isNoHomeWork"
  7799. >
  7800. {{ lang.ssSelectFile }}
  7801. </div>
  7802. <div
  7803. class="addEditor"
  7804. style="margin-top: 23px"
  7805. @click="openAddWork"
  7806. v-else
  7807. >
  7808. {{ lang.ssSubmitted }}
  7809. </div>
  7810. </div>
  7811. </div>
  7812. </div>-->
  7813. </div>
  7814. </div>
  7815. <el-dialog
  7816. :title="lang.ssHomeworkSubmit"
  7817. :visible.sync="dialogVisible"
  7818. :append-to-body="true"
  7819. width="500px"
  7820. :before-close="handleClose"
  7821. class="dialog_change"
  7822. >
  7823. <div class="marginT">
  7824. <div>{{ lang.ssUploadHomework }}</div>
  7825. <div style="display: flex; gap: 10px">
  7826. <div
  7827. class="chapter_add"
  7828. @click="addImg($event)"
  7829. v-if="studyJuri[0].cover.length == 0"
  7830. >
  7831. <div class="up_photo">
  7832. <img src="../assets/icon/uploadImg.png" alt />
  7833. </div>
  7834. <!-- <input
  7835. type="file"
  7836. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7837. style="display: none"
  7838. @change="beforeUpload1($event, 1)"
  7839. /> -->
  7840. <input
  7841. type="file"
  7842. accept="*"
  7843. style="display: none"
  7844. @change="beforeUpload1($event, 1)"
  7845. />
  7846. <!-- <input
  7847. type="file"
  7848. accept="image/*"
  7849. capture="camera"
  7850. style="display: none"
  7851. @change="beforeUpload1($event, 1)"
  7852. /> -->
  7853. </div>
  7854. <div
  7855. class="chapter_add"
  7856. @click="addImg($event)"
  7857. v-if="studyJuri[0].cover.length == 0"
  7858. >
  7859. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  7860. <img src="../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  7861. </div>
  7862. <input
  7863. type="file"
  7864. accept="image/*"
  7865. capture="camera"
  7866. style="display: none"
  7867. @change="beforeUpload1($event, 1)"
  7868. />
  7869. </div>
  7870. </div>
  7871. <div
  7872. class="chapter_add"
  7873. style="
  7874. display: flex;
  7875. width: 100%;
  7876. flex-direction: row;
  7877. flex-wrap: wrap;
  7878. justify-content: flex-start;
  7879. padding: 15px 0;
  7880. "
  7881. v-if="studyJuri[0].cover.length > 0"
  7882. >
  7883. <div class="upCover">
  7884. <img
  7885. :src="studyJuri[0].cover[0].url"
  7886. alt
  7887. v-if="fileType == 0"
  7888. />
  7889. <img :src="word" alt v-else-if="fileType == 1" />
  7890. <img :src="video" alt v-else-if="fileType == 2" />
  7891. <img :src="word2" alt v-else-if="fileType == 3" />
  7892. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7893. <div class="deleteWord" @click="clean(1)">
  7894. <img src="../assets/icon/deleteWorks.png" alt />
  7895. </div>
  7896. </div>
  7897. </div>
  7898. </div>
  7899. <div
  7900. class="upload_send"
  7901. @click="addCourseWorks(taskCount)"
  7902. v-if="!proVisible"
  7903. >
  7904. {{ lang.ssSubmit }}
  7905. </div>
  7906. </el-dialog>
  7907. </div>
  7908. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  7909. <classRoomHelper v-if="!['2'].includes(tType) || canUseCourseId.includes(id)" @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(
  7910. '/courseDetail?userid=' +
  7911. userid +
  7912. '&oid=' +
  7913. oid +
  7914. '&org=' +
  7915. org +
  7916. '&cid=' +
  7917. classId +
  7918. '&courseId=' +
  7919. id +
  7920. '&tType=' +
  7921. tType +
  7922. '&screenType=' +
  7923. screenType+
  7924. '&role=' +
  7925. role
  7926. )"></classRoomHelper>
  7927. <studentClassRoomHelper v-else-if="['2'].includes(tType)" @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(
  7928. '/courseDetail?userid=' +
  7929. userid +
  7930. '&oid=' +
  7931. oid +
  7932. '&org=' +
  7933. org +
  7934. '&cid=' +
  7935. classId +
  7936. '&courseId=' +
  7937. id +
  7938. '&tType=' +
  7939. tType +
  7940. '&screenType=' +
  7941. screenType+
  7942. '&role=' +
  7943. role
  7944. )"></studentClassRoomHelper>
  7945. </div>
  7946. <div
  7947. class="pButton"
  7948. @click="(pzDialog = true), selectPz()"
  7949. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7950. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  7951. >
  7952. <!-- 批 -->
  7953. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  7954. </div>
  7955. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  7956. <div class="pzTop2">
  7957. <!-- <div>评论</div>
  7958. <div @click="pzDialog = false">
  7959. <img src="../assets/close1.png" alt="" />
  7960. </div> -->
  7961. <div class="checkbox">
  7962. <!-- <div class="check" style="font-size: 25px; position: unset">
  7963. 评论
  7964. </div> -->
  7965. <div class="cb-tabList">
  7966. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">{{ lang.ssComment }}</div>
  7967. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  7968. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  7969. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">{{ lang.ssTotalEval }}</div>
  7970. </div>
  7971. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  7972. <el-option :label="lang.ssTimeDesc" :value="1"></el-option>
  7973. <el-option :label="lang.ssTimeAsc" :value="2"></el-option>
  7974. <el-option :label="lang.ssMyComment" :value="3"></el-option>
  7975. </el-select>
  7976. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7977. </div>
  7978. </div>
  7979. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  7980. <div class="pzListBox" v-if="pzList && pzList.length">
  7981. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7982. <div class="pzNavTop">
  7983. <div>{{ lang.ssEval }}</div>
  7984. <div>
  7985. {{
  7986. pz.username && pz.username.length > 5
  7987. ? pz.username.substring(0, 5) + "..."
  7988. : pz.username
  7989. }}{{ lang.ssCommentOf.replace(/\*/g, pz.username) }}
  7990. </div>
  7991. <div
  7992. class="pzDelete"
  7993. v-if="pz.userid == userid"
  7994. @click="deletePz(pz.id)"
  7995. >
  7996. {{ lang.ssDelete }}
  7997. </div>
  7998. </div>
  7999. <div
  8000. @click="checkImg(getImgList(pz.content))"
  8001. class="pzContent cont"
  8002. v-html="pz.content"
  8003. v-if="pz.type == '1'"
  8004. ></div>
  8005. <div class="pzContent" v-if="pz.type == '2'">
  8006. <audio :src="pz.content" controls="controls" ref="audio">
  8007. Your browser does not support the audio element.
  8008. </audio>
  8009. </div>
  8010. <div class="pzContent" v-if="pz.type == '3'">
  8011. <img
  8012. :src="pz.content"
  8013. style="width: 90%; margin: 0 auto; display: block"
  8014. @click="previewImg(pz.content)"
  8015. />
  8016. </div>
  8017. <div class="timeAndReply">
  8018. <div class="time">
  8019. {{ pz.time }}
  8020. </div>
  8021. <div @click="setReplyIndex(pz.id, pzIndex)">{{ lang.ssReply }}</div>
  8022. </div>
  8023. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8024. <div
  8025. v-for="(h, hIndex) in pz.hfList"
  8026. :key="hIndex"
  8027. class="hfItem"
  8028. >
  8029. <div class="whoReplyWho">
  8030. <div class="hfName">{{ h.username }}</div>
  8031. <div class="hfImg">
  8032. <img src="../assets/icon/newIcons/right.png" alt="" />
  8033. </div>
  8034. <div class="hfName">{{ pz.username }}</div>
  8035. </div>
  8036. <div class="hfContent" v-html="h.content"></div>
  8037. <div class="hfBottom">
  8038. <div class="hfTime">{{ h.time }}</div>
  8039. <div
  8040. class="deleteHfItem"
  8041. @click="deleteReply(h.id)"
  8042. v-if="userid == h.userid"
  8043. >
  8044. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8045. </div>
  8046. </div>
  8047. </div>
  8048. </div>
  8049. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8050. <div class="replyInput">
  8051. <el-input v-model="reply[pzIndex]"></el-input>
  8052. </div>
  8053. <el-button @click="addHf(pz.id, pzIndex)">{{ lang.ssReply }}</el-button>
  8054. </div> -->
  8055. </div>
  8056. </div>
  8057. <div class="noPz" v-else>
  8058. <img src="../assets/icon/noPz.png" alt="" />
  8059. </div>
  8060. <div class="addPzButton">
  8061. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8062. {{ lang.ssAddComment }}
  8063. </div>
  8064. <!-- <div class="img1">
  8065. <div @click="(addPzDialog = true), (pzType = 2)">
  8066. <img src="../assets/audio.png" /><span>{{ lang.ssAudio }}</span>
  8067. </div>
  8068. </div> -->
  8069. </div>
  8070. </div>
  8071. <div class="scoreList" v-if="commentTagShow==1">
  8072. <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"/>
  8073. </div>
  8074. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8075. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8076. </div>
  8077. </div>
  8078. <div
  8079. v-if="toolDialogVisible == true"
  8080. class="toolMask"
  8081. @click="toolDialogVisible = false"
  8082. ></div>
  8083. <div v-if="toolDialogVisible == true" class="addToolCss">
  8084. <div class="toolTop">
  8085. <div style="font-weight: bold">{{ lang.ssNewTool }}</div>
  8086. <div @click="toolDialogVisible = false">
  8087. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8088. </div>
  8089. </div>
  8090. <div class="tool_box">
  8091. <div class="tool_type_box">
  8092. <div class="chooseWho">
  8093. <div
  8094. :class="toolType == 0 ? 'isChooseActive' : ''"
  8095. @click="(toolType = 0), $forceUpdate()"
  8096. >
  8097. {{ lang.ssInteract }}
  8098. </div>
  8099. <div
  8100. :class="toolType == 1 ? 'isChooseActive' : ''"
  8101. @click="(toolType = 1), $forceUpdate()"
  8102. >
  8103. {{ lang.ssThinking }}
  8104. </div>
  8105. <div
  8106. :class="toolType == 2 ? 'isChooseActive' : ''"
  8107. @click="(toolType = 2), $forceUpdate()"
  8108. >
  8109. {{ lang.ssEvalType }}
  8110. </div>
  8111. <div
  8112. :class="toolType == 3 ? 'isChooseActive' : ''"
  8113. @click="(toolType = 3), $forceUpdate()"
  8114. >
  8115. {{ lang.ssProgram }}
  8116. </div>
  8117. <div
  8118. :class="toolType == 5 ? 'isChooseActive' : ''"
  8119. @click="(toolType = 5), $forceUpdate()"
  8120. >
  8121. {{ lang.ssSubject }}
  8122. </div>
  8123. </div>
  8124. </div>
  8125. <div>
  8126. <div class="toolSort" v-if="toolType == 0">
  8127. <div
  8128. class="tool"
  8129. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8130. @click="addTools2(10)"
  8131. >
  8132. <div class="whiteBIcon">
  8133. <img src="../assets/icon/thirdToolList/time.png" alt />
  8134. <div style="margin: 5px 0">{{ lang.ssCountdown }}</div>
  8135. </div>
  8136. <div class="check">
  8137. <div
  8138. v-if="checktoolArray.indexOf(10) == -1"
  8139. class="noChoose"
  8140. ></div>
  8141. <div v-else class="isChoose"></div>
  8142. </div>
  8143. </div>
  8144. <div
  8145. class="tool"
  8146. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8147. @click="addTools2(65)"
  8148. >
  8149. <div class="whiteBIcon">
  8150. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8151. <div style="margin: 5px 0">{{ lang.ssPickPerson }}</div>
  8152. </div>
  8153. <div class="check">
  8154. <div
  8155. v-if="checktoolArray.indexOf(65) == -1"
  8156. class="noChoose"
  8157. ></div>
  8158. <div v-else class="isChoose"></div>
  8159. </div>
  8160. </div>
  8161. </div>
  8162. <div class="toolSort" v-if="toolType == 1">
  8163. <div
  8164. class="tool"
  8165. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8166. @click="addTools2(7)"
  8167. >
  8168. <div class="whiteBIcon">
  8169. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8170. <div style="margin: 5px 0">{{ lang.ssMindGrid }}</div>
  8171. </div>
  8172. <div class="check">
  8173. <div
  8174. v-if="checktoolArray.indexOf(7) == -1"
  8175. class="noChoose"
  8176. ></div>
  8177. <div v-else class="isChoose"></div>
  8178. </div>
  8179. </div>
  8180. <div
  8181. class="tool"
  8182. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8183. @click="addTools2(1)"
  8184. >
  8185. <div class="whiteBIcon">
  8186. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8187. <div style="margin: 5px 0">{{ lang.ssWhiteboard }}</div>
  8188. </div>
  8189. <div class="check">
  8190. <div
  8191. v-if="checktoolArray.indexOf(1) == -1"
  8192. class="noChoose"
  8193. ></div>
  8194. <div v-else class="isChoose"></div>
  8195. </div>
  8196. </div>
  8197. <div
  8198. class="tool"
  8199. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8200. @click="addTools2(52)"
  8201. >
  8202. <div class="whiteBIcon">
  8203. <img src="../assets/icon/fourthToolList/text.png" alt />
  8204. <div style="margin: 5px 0">{{ lang.ssDocument }}</div>
  8205. </div>
  8206. <div class="check">
  8207. <div
  8208. v-if="checktoolArray.indexOf(52) == -1"
  8209. class="noChoose"
  8210. ></div>
  8211. <div v-else class="isChoose"></div>
  8212. </div>
  8213. </div>
  8214. <div
  8215. class="tool"
  8216. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8217. @click="addTools2(3)"
  8218. >
  8219. <div class="whiteBIcon">
  8220. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8221. <div style="margin: 5px 0">{{ lang.ssMindMap }}</div>
  8222. </div>
  8223. <div class="check">
  8224. <div
  8225. v-if="checktoolArray.indexOf(3) == -1"
  8226. class="noChoose"
  8227. ></div>
  8228. <div v-else class="isChoose"></div>
  8229. </div>
  8230. </div>
  8231. <div
  8232. class="tool"
  8233. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8234. @click="addTools2(48)"
  8235. >
  8236. <div class="whiteBIcon">
  8237. <img src="../assets/icon/fourthToolList/table.png" alt />
  8238. <div style="margin: 5px 0">{{ lang.ssTable }}</div>
  8239. </div>
  8240. <div class="check">
  8241. <div
  8242. v-if="checktoolArray.indexOf(48) == -1"
  8243. class="noChoose"
  8244. ></div>
  8245. <div v-else class="isChoose"></div>
  8246. </div>
  8247. </div>
  8248. </div>
  8249. <div class="toolSort" v-if="toolType == 6">
  8250. <div v-show="tooC == 49">
  8251. <img
  8252. @click="addTools(tooC, toolIndex, taskCount)"
  8253. src="../assets/icon/fourthToolList/group.png"
  8254. alt
  8255. />
  8256. <div style="margin: 5px 0">{{ lang.ssStudentGroup }}</div>
  8257. </div>
  8258. </div>
  8259. <div class="toolSort" v-if="toolType == 2">
  8260. <div
  8261. class="tool"
  8262. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8263. @click="addTools2(16)"
  8264. >
  8265. <div class="whiteBIcon">
  8266. <img src="../assets/icon/thirdToolList/work.png" alt />
  8267. <div style="margin: 5px 0">{{ lang.ssHomework }}</div>
  8268. </div>
  8269. <div class="check">
  8270. <div
  8271. v-if="checktoolArray.indexOf(16) == -1"
  8272. class="noChoose"
  8273. ></div>
  8274. <div v-else class="isChoose"></div>
  8275. </div>
  8276. </div>
  8277. <div
  8278. class="tool"
  8279. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8280. @click="addTools2(50)"
  8281. >
  8282. <div class="whiteBIcon">
  8283. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8284. <div style="margin: 5px 0">{{ lang.ssBatchUpload }}</div>
  8285. </div>
  8286. <div class="check">
  8287. <div
  8288. v-if="checktoolArray.indexOf(50) == -1"
  8289. class="noChoose"
  8290. ></div>
  8291. <div v-else class="isChoose"></div>
  8292. </div>
  8293. </div>
  8294. </div>
  8295. <div class="toolSort" v-if="toolType == 3">
  8296. <div
  8297. class="tool"
  8298. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8299. @click="addTools2(18)"
  8300. >
  8301. <div class="whiteBIcon">
  8302. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8303. <div style="margin: 5px 0">{{ lang.ssTraining }}</div>
  8304. </div>
  8305. <div class="check">
  8306. <div
  8307. v-if="checktoolArray.indexOf(18) == -1"
  8308. class="noChoose"
  8309. ></div>
  8310. <div v-else class="isChoose"></div>
  8311. </div>
  8312. </div>
  8313. <div
  8314. class="tool"
  8315. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8316. @click="addTools2(21)"
  8317. >
  8318. <div class="whiteBIcon">
  8319. <img src="../assets/icon/fourthToolList/program.png" alt />
  8320. <div style="margin: 5px 0">{{ lang.ssAiotBlockly }}</div>
  8321. </div>
  8322. <div class="check">
  8323. <div
  8324. v-if="checktoolArray.indexOf(21) == -1"
  8325. class="noChoose"
  8326. ></div>
  8327. <div v-else class="isChoose"></div>
  8328. </div>
  8329. </div>
  8330. <div
  8331. class="tool"
  8332. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8333. @click="addTools2(23)"
  8334. >
  8335. <div class="whiteBIcon">
  8336. <img
  8337. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8338. alt
  8339. />
  8340. <div style="margin: 5px 0">{{ lang.ssAiPython }}</div>
  8341. </div>
  8342. <div class="check">
  8343. <div
  8344. v-if="checktoolArray.indexOf(23) == -1"
  8345. class="noChoose"
  8346. ></div>
  8347. <div v-else class="isChoose"></div>
  8348. </div>
  8349. </div>
  8350. <div
  8351. class="tool"
  8352. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8353. @click="addTools2(24)"
  8354. >
  8355. <div class="whiteBIcon">
  8356. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8357. <div style="margin: 5px 0">{{ lang.ssAiBlockly }}</div>
  8358. </div>
  8359. <div class="check">
  8360. <div
  8361. v-if="checktoolArray.indexOf(24) == -1"
  8362. class="noChoose"
  8363. ></div>
  8364. <div v-else class="isChoose"></div>
  8365. </div>
  8366. </div>
  8367. <div
  8368. class="tool"
  8369. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8370. @click="addTools2(32)"
  8371. >
  8372. <div class="whiteBIcon">
  8373. <img src="../assets/icon/thirdToolList/code.png" alt />
  8374. <div style="margin: 5px 0">{{ lang.ssCodeEdit }}</div>
  8375. </div>
  8376. <div class="check">
  8377. <div
  8378. v-if="checktoolArray.indexOf(32) == -1"
  8379. class="noChoose"
  8380. ></div>
  8381. <div v-else class="isChoose"></div>
  8382. </div>
  8383. </div>
  8384. <div
  8385. class="tool"
  8386. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8387. @click="addTools2(57)"
  8388. >
  8389. <div class="whiteBIcon">
  8390. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8391. <div style="margin: 5px 0">{{ lang.ssCocoPi }}</div>
  8392. </div>
  8393. <div class="check">
  8394. <div
  8395. v-if="checktoolArray.indexOf(57) == -1"
  8396. class="noChoose"
  8397. ></div>
  8398. <div v-else class="isChoose"></div>
  8399. </div>
  8400. </div>
  8401. <div
  8402. class="tool"
  8403. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8404. @click="addTools2(63)"
  8405. >
  8406. <div class="whiteBIcon">
  8407. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8408. <div style="margin: 5px 0">{{ lang.ssTurtle }}</div>
  8409. </div>
  8410. <div class="check">
  8411. <div
  8412. v-if="checktoolArray.indexOf(63) == -1"
  8413. class="noChoose"
  8414. ></div>
  8415. <div v-else class="isChoose"></div>
  8416. </div>
  8417. </div>
  8418. <div
  8419. class="tool"
  8420. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8421. @click="addTools2(71)"
  8422. >
  8423. <div class="whiteBIcon">
  8424. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  8425. <div style="margin: 5px 0">{{ lang.ssAiAgent }}</div>
  8426. </div>
  8427. <div class="check">
  8428. <div
  8429. v-if="checktoolArray.indexOf(71) == -1"
  8430. class="noChoose"
  8431. ></div>
  8432. <div v-else class="isChoose"></div>
  8433. </div>
  8434. </div>
  8435. </div>
  8436. <div class="toolSort" v-if="toolType == 7">
  8437. <div
  8438. class="tool"
  8439. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8440. @click="addTools2(40)"
  8441. >
  8442. <div class="whiteBIcon">
  8443. <img src="../assets/icon/secondToolList/eval.png" alt />
  8444. <div style="margin: 5px 0">{{ lang.ssPersonalEval }}</div>
  8445. </div>
  8446. <div class="check">
  8447. <div
  8448. v-if="checktoolArray.indexOf(40) == -1"
  8449. class="noChoose"
  8450. ></div>
  8451. <div v-else class="isChoose"></div>
  8452. </div>
  8453. </div>
  8454. </div>
  8455. <div class="toolSort" v-if="toolType == 5">
  8456. <div
  8457. class="tool"
  8458. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8459. @click="addTools2(28)"
  8460. >
  8461. <div class="whiteBIcon">
  8462. <img src="../assets/icon/secondToolList/translation.png" alt />
  8463. <div style="margin: 5px 0">{{ lang.ssTranslate }}</div>
  8464. </div>
  8465. <div class="check">
  8466. <div
  8467. v-if="checktoolArray.indexOf(28) == -1"
  8468. class="noChoose"
  8469. ></div>
  8470. <div v-else class="isChoose"></div>
  8471. </div>
  8472. </div>
  8473. <div
  8474. class="tool"
  8475. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8476. @click="addTools2(31)"
  8477. >
  8478. <div class="whiteBIcon">
  8479. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8480. <div style="margin: 5px 0">{{ lang.ssDigitalBoard }}</div>
  8481. </div>
  8482. <div class="check">
  8483. <div
  8484. v-if="checktoolArray.indexOf(31) == -1"
  8485. class="noChoose"
  8486. ></div>
  8487. <div v-else class="isChoose"></div>
  8488. </div>
  8489. </div>
  8490. <div
  8491. class="tool"
  8492. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8493. @click="addTools2(39)"
  8494. >
  8495. <div class="whiteBIcon">
  8496. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8497. <div style="margin: 5px 0">GeoGebra</div>
  8498. </div>
  8499. <div class="check">
  8500. <div
  8501. v-if="checktoolArray.indexOf(39) == -1"
  8502. class="noChoose"
  8503. ></div>
  8504. <div v-else class="isChoose"></div>
  8505. </div>
  8506. </div>
  8507. <div
  8508. class="tool"
  8509. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8510. @click="addTools2(66)"
  8511. >
  8512. <div class="whiteBIcon">
  8513. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8514. <div style="margin: 5px 0">{{ lang.ssFormula }}</div>
  8515. </div>
  8516. <div class="check">
  8517. <div
  8518. v-if="checktoolArray.indexOf(66) == -1"
  8519. class="noChoose"
  8520. ></div>
  8521. <div v-else class="isChoose"></div>
  8522. </div>
  8523. </div>
  8524. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8525. <div class="whiteBIcon" @click="addTools2(67)">
  8526. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8527. <div style="margin: 5px 0">分子结构</div>
  8528. </div>
  8529. <div class="check" @click="addTools2(67)">
  8530. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8531. <div v-else class="isChoose"></div>
  8532. </div>
  8533. </div> -->
  8534. <div
  8535. class="tool"
  8536. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8537. @click="addTools2(68)"
  8538. >
  8539. <div class="whiteBIcon">
  8540. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8541. <div style="margin: 5px 0">{{ lang.ssTimeline }}</div>
  8542. </div>
  8543. <div class="check">
  8544. <div
  8545. v-if="checktoolArray.indexOf(68) == -1"
  8546. class="noChoose"
  8547. ></div>
  8548. <div v-else class="isChoose"></div>
  8549. </div>
  8550. </div>
  8551. <!-- <div
  8552. class="tool"
  8553. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8554. @click="addTools2(69)"
  8555. >
  8556. <div class="whiteBIcon">
  8557. <img src="../assets/icon/secondToolList/english.png" alt />
  8558. <div style="margin: 5px 0">{{ lang.ssEnglishWrite }}</div>
  8559. </div>
  8560. <div class="check">
  8561. <div
  8562. v-if="checktoolArray.indexOf(69) == -1"
  8563. class="noChoose"
  8564. ></div>
  8565. <div v-else class="isChoose"></div>
  8566. </div>
  8567. </div> -->
  8568. </div>
  8569. <div class="toolSort" v-if="toolType == 4">
  8570. <div
  8571. class="tool"
  8572. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8573. @click="addTools2(26)"
  8574. >
  8575. <div class="whiteBIcon">
  8576. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8577. <div style="margin: 5px 0">{{ lang.ssCourseDesignLabel }}</div>
  8578. </div>
  8579. <div class="check">
  8580. <div
  8581. v-if="checktoolArray.indexOf(26) == -1"
  8582. class="noChoose"
  8583. ></div>
  8584. <div v-else class="isChoose"></div>
  8585. </div>
  8586. </div>
  8587. <div
  8588. class="tool"
  8589. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8590. @click="addTools2(25)"
  8591. >
  8592. <div class="whiteBIcon">
  8593. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8594. <div style="margin: 5px 0">{{ lang.ssGoalManageLabel }}</div>
  8595. </div>
  8596. <div class="check">
  8597. <div
  8598. v-if="checktoolArray.indexOf(25) == -1"
  8599. class="noChoose"
  8600. ></div>
  8601. <div v-else class="isChoose"></div>
  8602. </div>
  8603. </div>
  8604. </div>
  8605. </div>
  8606. </div>
  8607. <span
  8608. slot="footer"
  8609. class="dialog-footer"
  8610. style="display: block; text-align: center; padding: 0 0 10px 0"
  8611. >
  8612. <el-button @click="toolDialogVisible = false">{{ lang.ssCancel }}</el-button>
  8613. <el-button type="primary" @click.stop="addToolChoose">{{ lang.ssConfirm }}</el-button>
  8614. </span>
  8615. </div>
  8616. <div
  8617. v-if="replyDialogVisible == true"
  8618. class="addDialogCss"
  8619. v-el-drag-dialog
  8620. >
  8621. <div class="pzTop">
  8622. <div class="teacherPz">
  8623. <div class="teacherPzImg">
  8624. <img src="../assets/icon/teacherPz.png" alt="" />
  8625. </div>
  8626. <div style="margin-left: 10px; height: 25px">{{ lang.ssAddReply }}</div>
  8627. </div>
  8628. <div @click="replyDialogVisible = false">
  8629. <img src="../assets/close1.png" class="pzClose" alt="" />
  8630. </div>
  8631. </div>
  8632. <div class="addPzBox">
  8633. <!-- <div class="addPzCheck">
  8634. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8635. >{{ lang.ssText }}</span
  8636. >
  8637. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8638. >{{ lang.ssAudio }}</span
  8639. >
  8640. </div> -->
  8641. <div style="height: calc(100% - 50px)">
  8642. <editor-bar
  8643. class="binfo_input pzConText"
  8644. style="width: 100% !important; margin: 0 auto"
  8645. :placeholder="lang.ssEnterReply"
  8646. v-model="reply"
  8647. @change="change"
  8648. ></editor-bar>
  8649. </div>
  8650. <div class="addTextCss" @click="addHf">{{ lang.ssConfirm }}</div>
  8651. </div>
  8652. </div>
  8653. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8654. <div class="pzTop">
  8655. <div class="teacherPz">
  8656. <div class="teacherPzImg">
  8657. <img src="../assets/icon/teacherPz.png" alt="" />
  8658. </div>
  8659. <div style="margin-left: 10px; height: 25px">{{ lang.ssTeacherComment }}</div>
  8660. </div>
  8661. <div @click="addPzDialog = false">
  8662. <img src="../assets/close1.png" class="pzClose" alt="" />
  8663. </div>
  8664. </div>
  8665. <div class="addPzBox">
  8666. <div class="addPzCheck">
  8667. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8668. >{{ lang.ssText }}</span
  8669. >
  8670. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8671. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8672. >{{ lang.ssAudio }}</span
  8673. >
  8674. </div>
  8675. <div style="height: calc(100% - 95px)">
  8676. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8677. v-if="pzType == 1"></textarea> -->
  8678. <editor-bar
  8679. class="binfo_input pzConText"
  8680. style="width: 100% !important"
  8681. :placeholder="lang.ssEnterTaskDesc"
  8682. v-model="pzConText"
  8683. @change="change"
  8684. v-if="pzType == 1"
  8685. ></editor-bar>
  8686. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8687. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8688. <div @click="addImg($event)">
  8689. <el-button type="primary">{{ lang.ssUploadImage }}</el-button>
  8690. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8691. @change="beforeUpload1($event, 4)" />
  8692. </div>
  8693. </div> -->
  8694. </div>
  8695. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8696. {{ lang.ssConfirm }}
  8697. </div>
  8698. </div>
  8699. </div>
  8700. <div v-if="proVisible" class="mask">
  8701. <div class="progressBox">
  8702. <!-- <div id="closePro" class="closeCss">
  8703. <img src="../assets/icon/close.png" alt />
  8704. </div> -->
  8705. <div class="lbox">
  8706. <img src="../assets/loading.gif" />{{ lang.ssUploading }}
  8707. </div>
  8708. <div style="margin-bottom: 10px">
  8709. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8710. </div>
  8711. <el-progress
  8712. :text-inside="true"
  8713. :stroke-width="20"
  8714. :percentage="progress"
  8715. style="width: 80%"
  8716. ></el-progress>
  8717. </div>
  8718. </div>
  8719. <div v-if="proVisible2" class="mask">
  8720. <div class="progressBox">
  8721. <div class="lbox">
  8722. <img src="../assets/loading.gif" />{{ lang.ssUploading }}
  8723. </div>
  8724. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8725. </div>
  8726. </div>
  8727. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8728. <img width="100%" :src="dialogImageUrl" alt />
  8729. </el-dialog>
  8730. <el-dialog
  8731. :title="noteName != '' ? noteName : lang.ssViewSurvey"
  8732. :visible.sync="dialogVisible5"
  8733. :append-to-body="true"
  8734. width="1000px"
  8735. :before-close="handleClose"
  8736. class="dialog_diy dialog_diy3"
  8737. >
  8738. <div>
  8739. <div
  8740. class="a_add_title"
  8741. style="
  8742. display: flex;
  8743. flex-direction: row;
  8744. align-items: center;
  8745. justify-content: center;
  8746. "
  8747. >
  8748. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitleColon }}</div>
  8749. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8750. </div>
  8751. <div class="a_addBox">
  8752. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8753. {{ lang.ssQuestionContent }}
  8754. </div>
  8755. <div
  8756. class="a_add_box"
  8757. v-for="(item1, index1) in askJson.askCount"
  8758. :key="index1"
  8759. >
  8760. <div class="a_add_head">
  8761. <div style="display: flex">
  8762. <span class="askIndex"> {{ index1 + 1 }}</span>
  8763. <div>{{ lang.ssQuestionColon }}{{ askJson.askJson[index1].askstitle }}</div>
  8764. </div>
  8765. <img
  8766. v-if="askJson.askJson[index1].img"
  8767. :src="askJson.askJson[index1].img"
  8768. style="height: 300px; margin-top: 10px; max-width: 100%"
  8769. />
  8770. </div>
  8771. <div class="a_add_body">
  8772. <div class="a_add_input">
  8773. <el-radio-group
  8774. v-model="radio[index1]"
  8775. v-if="
  8776. askJson.askJson[index1].type == '1' ||
  8777. !askJson.askJson[index1].type
  8778. "
  8779. >
  8780. <el-radio
  8781. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8782. .checkList"
  8783. :key="checkIndex"
  8784. :label="checkIndex"
  8785. :disabled="isAnswer"
  8786. class="redioStyle"
  8787. ><span v-html="item2"></span
  8788. ></el-radio>
  8789. </el-radio-group>
  8790. <el-checkbox-group
  8791. v-model="radio[index1]"
  8792. v-if="askJson.askJson[index1].type == '2'"
  8793. >
  8794. <el-checkbox
  8795. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8796. .checkList"
  8797. :key="checkIndex1"
  8798. :label="checkIndex1"
  8799. :disabled="isAnswer"
  8800. class="redioStyle"
  8801. ><span v-html="item2"></span>
  8802. </el-checkbox>
  8803. </el-checkbox-group>
  8804. </div>
  8805. </div>
  8806. </div>
  8807. </div>
  8808. </div>
  8809. <span slot="footer" class="dialog-footer">
  8810. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8811. >{{lang.ssCancelBtn}}</el-button
  8812. >
  8813. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8814. >{{lang.ssConfirmBtn}}</el-button
  8815. >
  8816. </span>
  8817. </el-dialog>
  8818. <el-dialog
  8819. :title="noteName != '' ? noteName : lang.ssViewSurvey"
  8820. :visible.sync="dialogVisible5Teacher"
  8821. :append-to-body="true"
  8822. width="1000px"
  8823. :before-close="handleClose"
  8824. class="dialog_diy dialog_diy3"
  8825. >
  8826. <div>
  8827. <div class="w_name">
  8828. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  8829. </div>
  8830. <div
  8831. class="a_add_title"
  8832. style="
  8833. display: flex;
  8834. flex-direction: row;
  8835. align-items: center;
  8836. justify-content: center;
  8837. "
  8838. >
  8839. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitleColon }}</div>
  8840. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8841. </div>
  8842. <div class="a_addBox">
  8843. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8844. {{ lang.ssQuestionContent }}
  8845. </div>
  8846. <div
  8847. class="a_add_box"
  8848. v-for="(item1, index1) in askJson.askCount"
  8849. :key="index1"
  8850. >
  8851. <div class="a_add_head">
  8852. <div style="display: flex">
  8853. <span class="askIndex">{{ index1 + 1 }}</span>
  8854. <div>{{ lang.ssQuestionColon }}{{ askJson.askJson[index1].askstitle }}</div>
  8855. </div>
  8856. <img
  8857. v-if="askJson.askJson[index1].img"
  8858. :src="askJson.askJson[index1].img"
  8859. style="height: 300px; margin-top: 10px; max-width: 100%"
  8860. />
  8861. </div>
  8862. <div class="a_add_body">
  8863. <div class="a_add_input">
  8864. <el-radio-group
  8865. v-model="radio[index1]"
  8866. v-if="
  8867. askJson.askJson[index1].type == '1' ||
  8868. !askJson.askJson[index1].type
  8869. "
  8870. >
  8871. <el-radio
  8872. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8873. .checkList"
  8874. :key="checkIndex"
  8875. :label="checkIndex"
  8876. :disabled="isAnswer"
  8877. class="redioStyle"
  8878. ><span v-html="item2"></span
  8879. ></el-radio>
  8880. </el-radio-group>
  8881. <el-checkbox-group
  8882. v-model="radio[index1]"
  8883. v-if="askJson.askJson[index1].type == '2'"
  8884. >
  8885. <el-checkbox
  8886. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8887. .checkList"
  8888. :key="checkIndex1"
  8889. :label="checkIndex1"
  8890. :disabled="isAnswer"
  8891. class="redioStyle"
  8892. ><span v-html="item2"></span>
  8893. </el-checkbox>
  8894. </el-checkbox-group>
  8895. </div>
  8896. </div>
  8897. </div>
  8898. </div>
  8899. </div>
  8900. <span slot="footer" class="dialog-footer">
  8901. <el-button
  8902. @click="dialogVisible5Teacher = false"
  8903. v-show="noteName == ''"
  8904. >{{lang.ssCancelBtn}}</el-button
  8905. >
  8906. <el-button
  8907. type="primary"
  8908. @click="addStudentAskTeacher"
  8909. v-show="noteName == ''"
  8910. >{{lang.ssConfirmBtn}}</el-button
  8911. >
  8912. </span>
  8913. </el-dialog>
  8914. <el-dialog
  8915. :title="noteName != '' ? noteName : lang.ssViewChoice"
  8916. :visible.sync="dialogVisibleChoice"
  8917. :append-to-body="true"
  8918. width="1000px"
  8919. :before-close="handleClose"
  8920. class="dialog_diy dialog_diy3"
  8921. >
  8922. <div>
  8923. <!-- <div class="a_add_title" style="
  8924. display: flex;
  8925. flex-direction: row;
  8926. align-items: center;
  8927. justify-content: center;
  8928. ">
  8929. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitleColon }}</div>
  8930. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  8931. </div> -->
  8932. <div class="a_addBox">
  8933. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8934. {{ lang.ssQuestionContent }}
  8935. </div>
  8936. <div
  8937. class="a_add_box"
  8938. v-for="(item1, index1) in testJson.testCount"
  8939. :key="index1"
  8940. >
  8941. <div class="a_add_head">
  8942. <div style="display: flex;">
  8943. <span class="askIndex">{{ index1 + 1 }}</span>
  8944. <div
  8945. v-if="testJson.testJson[index1].type == '1'"
  8946. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  8947. >
  8948. {{ lang.ssSingleChoice }}
  8949. </div>
  8950. <div
  8951. v-if="testJson.testJson[index1].type == '2'"
  8952. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  8953. >
  8954. {{ lang.ssMultiChoice }}
  8955. </div>
  8956. <div class="renderedFor"><span>{{lang.ssQuestionColon}}</span> <span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  8957. </div>
  8958. <img
  8959. v-if="testJson.testJson[index1].img"
  8960. :src="testJson.testJson[index1].img"
  8961. style="height: 300px; margin-top: 10px; max-width: 100%"
  8962. />
  8963. </div>
  8964. <div
  8965. class="timuImgBox"
  8966. v-if="
  8967. testJson.testJson[index1].timuList &&
  8968. testJson.testJson[index1].timuList.length
  8969. "
  8970. >
  8971. <div
  8972. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8973. :key="tIndex"
  8974. class="timuImg"
  8975. @click.stop="previewImg(timg.src)"
  8976. >
  8977. <img :src="timg.src" alt="" />
  8978. </div>
  8979. </div>
  8980. <div class="a_add_body">
  8981. <div class="a_add_input">
  8982. <el-radio-group
  8983. v-model="radio[index1]"
  8984. v-if="testJson.testJson[index1].type == '1'"
  8985. >
  8986. <div class="radioBox">
  8987. <el-radio
  8988. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8989. .checkList"
  8990. :key="checkIndex"
  8991. :label="checkIndex"
  8992. :disabled="isAnswer"
  8993. class="redioStyle"
  8994. >
  8995. <div
  8996. style="margin-right: 10px"
  8997. v-if="item2 && item2.imgType && item2.imgType == 1"
  8998. >
  8999. <div class="inImg" @click.stop="previewImg(item2.src)">
  9000. <img :src="item2.src" alt="" />
  9001. </div>
  9002. </div>
  9003. <span v-else v-html="item2"></span>
  9004. </el-radio>
  9005. </div>
  9006. </el-radio-group>
  9007. <el-checkbox-group
  9008. v-model="radio[index1]"
  9009. v-if="testJson.testJson[index1].type == '2'"
  9010. >
  9011. <div class="radioBox">
  9012. <el-checkbox
  9013. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9014. .checkList"
  9015. :key="checkIndex"
  9016. :label="checkIndex"
  9017. :disabled="isAnswer"
  9018. class="redioStyle"
  9019. >
  9020. <div
  9021. style="margin-right: 10px"
  9022. v-if="item2 && item2.imgType && item2.imgType == 1"
  9023. >
  9024. <div class="inImg" @click.stop="previewImg(item2.src)">
  9025. <img :src="item2.src" alt="" />
  9026. </div>
  9027. </div>
  9028. <span v-else v-html="item2"></span>
  9029. </el-checkbox>
  9030. </div>
  9031. </el-checkbox-group>
  9032. </div>
  9033. </div>
  9034. </div>
  9035. </div>
  9036. </div>
  9037. <span slot="footer" class="dialog-footer">
  9038. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9039. >{{lang.ssCancelBtn}}</el-button
  9040. >
  9041. <el-button
  9042. type="primary"
  9043. @click="addStudentTest"
  9044. v-show="noteName == ''"
  9045. >{{lang.ssConfirmBtn}}</el-button
  9046. >
  9047. </span>
  9048. </el-dialog>
  9049. <el-dialog
  9050. :title="noteName != '' ? noteName : lang.ssViewChoice"
  9051. :visible.sync="dialogVisibleChoiceTeacher"
  9052. :append-to-body="true"
  9053. width="1000px"
  9054. :before-close="handleClose"
  9055. class="dialog_diy dialog_diy3"
  9056. >
  9057. <div>
  9058. <div class="w_name">
  9059. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  9060. </div>
  9061. <div class="a_addBox">
  9062. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9063. {{ lang.ssQuestionContent }}
  9064. </div>
  9065. <div
  9066. class="a_add_box"
  9067. v-for="(item1, index1) in testJson.testCount"
  9068. :key="index1"
  9069. >
  9070. <div class="a_add_head">
  9071. <div style="display: flex">
  9072. <span class="askIndex">{{ index1 + 1 }}</span>
  9073. <div
  9074. v-if="testJson.testJson[index1].type == '1'"
  9075. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9076. >
  9077. {{ lang.ssSingleChoice }}
  9078. </div>
  9079. <div
  9080. v-if="testJson.testJson[index1].type == '2'"
  9081. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  9082. >
  9083. {{ lang.ssMultiChoice }}
  9084. </div>
  9085. <div>{{ lang.ssQuestionColon }}{{ testJson.testJson[index1].teststitle }}</div>
  9086. </div>
  9087. <img
  9088. v-if="testJson.testJson[index1].img"
  9089. :src="testJson.testJson[index1].img"
  9090. style="height: 300px; margin-top: 10px; max-width: 100%"
  9091. />
  9092. </div>
  9093. <div
  9094. class="timuImgBox"
  9095. v-if="
  9096. testJson.testJson[index1].timuList &&
  9097. testJson.testJson[index1].timuList.length
  9098. "
  9099. >
  9100. <div
  9101. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9102. :key="tIndex"
  9103. class="timuImg"
  9104. @click.stop="previewImg(timg.src)"
  9105. >
  9106. <img :src="timg.src" alt="" />
  9107. </div>
  9108. </div>
  9109. <div class="a_add_body">
  9110. <div class="a_add_input">
  9111. <el-radio-group
  9112. v-model="radio[index1]"
  9113. v-if="testJson.testJson[index1].type == '1'"
  9114. >
  9115. <div class="radioBox">
  9116. <el-radio
  9117. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9118. .checkList"
  9119. :key="checkIndex"
  9120. :label="checkIndex"
  9121. :disabled="isAnswer"
  9122. class="redioStyle"
  9123. >
  9124. <div
  9125. style="margin-right: 10px"
  9126. v-if="item2 && item2.imgType && item2.imgType == 1"
  9127. >
  9128. <div class="inImg" @click.stop="previewImg(item2.src)">
  9129. <img :src="item2.src" alt="" />
  9130. </div>
  9131. </div>
  9132. <span v-else v-html="item2"></span>
  9133. </el-radio>
  9134. </div>
  9135. </el-radio-group>
  9136. <el-checkbox-group
  9137. v-model="radio[index1]"
  9138. v-if="testJson.testJson[index1].type == '2'"
  9139. >
  9140. <div class="radioBox">
  9141. <el-checkbox
  9142. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9143. .checkList"
  9144. :key="checkIndex"
  9145. :label="checkIndex"
  9146. :disabled="isAnswer"
  9147. class="redioStyle"
  9148. >
  9149. <div
  9150. style="margin-right: 10px"
  9151. v-if="item2 && item2.imgType && item2.imgType == 1"
  9152. >
  9153. <div class="inImg" @click.stop="previewImg(item2.src)">
  9154. <img :src="item2.src" alt="" />
  9155. </div>
  9156. </div>
  9157. <span v-else v-html="item2"></span>
  9158. </el-checkbox>
  9159. </div>
  9160. </el-checkbox-group>
  9161. </div>
  9162. </div>
  9163. </div>
  9164. </div>
  9165. </div>
  9166. <span slot="footer" class="dialog-footer">
  9167. <el-button
  9168. @click="dialogVisibleChoiceTeacher = false"
  9169. v-show="noteName == ''"
  9170. >{{lang.ssCancelBtn}}</el-button
  9171. >
  9172. <el-button
  9173. type="primary"
  9174. @click="addStudentTestTeacher"
  9175. v-show="noteName == ''"
  9176. >{{lang.ssConfirmBtn}}</el-button
  9177. >
  9178. </span>
  9179. </el-dialog>
  9180. <el-dialog
  9181. :title="lang.ssViewRichText"
  9182. :visible.sync="dialogVisible1"
  9183. :append-to-body="true"
  9184. width="500px"
  9185. :before-close="handleClose"
  9186. class="dialog_diy textCss"
  9187. >
  9188. <el-form style="font-size: 20px">
  9189. <el-form-item :label="lang.ssTextTitle" class="textTitle">
  9190. <div style="font-size: 20px">{{ text.name }}</div>
  9191. </el-form-item>
  9192. <div>{{ lang.ssRichTextContent }}</div>
  9193. <div
  9194. v-html="text.url"
  9195. style="font-size: 18px; padding: 40px 0 0 0"
  9196. ></div>
  9197. </el-form>
  9198. <span slot="footer" class="dialog-footer">
  9199. <el-button type="primary" @click="dialogVisible1 = false"
  9200. >{{ lang.ssConfirmBtn }}</el-button
  9201. >
  9202. </span>
  9203. </el-dialog>
  9204. <el-dialog
  9205. :title="lang.ssFilePreview"
  9206. :visible.sync="dialogVisible3"
  9207. width="50%"
  9208. :before-close="handleClose"
  9209. class="dialog_diy"
  9210. :class="{ fullStyle: full }"
  9211. >
  9212. <div slot="title" class="header-title">
  9213. <div style="color: #fff">{{ lang.ssFilePreview }}</div>
  9214. <div style="position: absolute; top: 19px; right: 50px">
  9215. <img
  9216. src="../assets/full.png"
  9217. style="height: 16px; cursor: pointer"
  9218. alt=""
  9219. @click="fullTools"
  9220. />
  9221. </div>
  9222. </div>
  9223. <pdf
  9224. v-if="showPDF"
  9225. :pdfUrl="pptImgUrl"
  9226. style="width: 100%; height: 520px; overflow: auto"
  9227. :class="{ fullStyle: full }"
  9228. ></pdf>
  9229. <iframe
  9230. v-else
  9231. :src="pptImgUrl"
  9232. frameborder="0"
  9233. width="100%"
  9234. height="600"
  9235. :class="{ fullStyle: full }"
  9236. ></iframe>
  9237. </el-dialog>
  9238. <el-dialog
  9239. :title="lang.ssFilePreview"
  9240. :visible.sync="dialogVisible6"
  9241. width="50%"
  9242. :before-close="handleClose"
  9243. class="dialog_diy"
  9244. >
  9245. <iframe
  9246. :src="pptImgUrl1"
  9247. frameborder="0"
  9248. width="100%"
  9249. height="600"
  9250. ></iframe>
  9251. </el-dialog>
  9252. <el-dialog
  9253. :title="lang.ssTip"
  9254. :visible.sync="dialogVisible4"
  9255. :append-to-body="true"
  9256. width="800px"
  9257. :before-close="handleClose"
  9258. class="dialog_diy notice"
  9259. >
  9260. <div>{{ lang.ssFunctionNotOpen }}</div>
  9261. <el-button type="primary" @click="dialogVisible4 = false">{{ lang.ssConfirmBtn }}</el-button>
  9262. </el-dialog>
  9263. <el-dialog
  9264. :title="lang.ssQa"
  9265. :visible.sync="answerDialogVisible"
  9266. :append-to-body="true"
  9267. width="800px"
  9268. :before-close="handleClose"
  9269. class="dialog_diy"
  9270. >
  9271. <div>
  9272. <div
  9273. style="
  9274. display: flex;
  9275. flex-wrap: nowrap;
  9276. flex-direction: column;
  9277. position: relative;
  9278. "
  9279. >
  9280. <div class="queTop" style="padding: 20px 0 20px 0">
  9281. <div class="question">
  9282. <img src="../assets/icon/question.png" alt />
  9283. </div>
  9284. <div class="queTitle">
  9285. <div style="min-width: 90px">{{ lang.ssQuestionColon }}</div>
  9286. <div>{{ answerQ }}</div>
  9287. </div>
  9288. </div>
  9289. <div class="ediBottom">
  9290. <textarea
  9291. rows="6"
  9292. class="binfo_input"
  9293. cols
  9294. style="width: 95%; height: 120px"
  9295. v-model="questionAnswer"
  9296. ></textarea>
  9297. </div>
  9298. </div>
  9299. </div>
  9300. <div slot="footer">
  9301. <el-button @click="answerDialogVisible = false">{{lang.ssCancelBtn}}</el-button>
  9302. <el-button type="primary" @click="addQuestion">{{ lang.ssSubmit }}</el-button>
  9303. </div>
  9304. </el-dialog>
  9305. <el-dialog
  9306. :title="lang.ssQa"
  9307. :visible.sync="answerDialogVisibleTeacher"
  9308. :append-to-body="true"
  9309. width="800px"
  9310. :before-close="handleClose"
  9311. class="dialog_diy"
  9312. >
  9313. <div>
  9314. <div class="w_name">
  9315. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  9316. </div>
  9317. <div
  9318. style="
  9319. display: flex;
  9320. flex-wrap: nowrap;
  9321. flex-direction: column;
  9322. position: relative;
  9323. "
  9324. >
  9325. <div class="queTop" style="padding: 20px 0 20px 0">
  9326. <div class="question">
  9327. <img src="../assets/icon/question.png" alt />
  9328. </div>
  9329. <div class="queTitle">
  9330. <div style="min-width: 90px">{{ lang.ssQuestionColon }}</div>
  9331. <div>{{ answerQ }}</div>
  9332. </div>
  9333. </div>
  9334. <div class="ediBottom">
  9335. <textarea
  9336. rows="6"
  9337. class="binfo_input"
  9338. cols
  9339. style="width: 95%; height: 120px"
  9340. v-model="questionAnswer"
  9341. ></textarea>
  9342. </div>
  9343. </div>
  9344. </div>
  9345. <div slot="footer">
  9346. <el-button @click="answerDialogVisibleTeacher = false">{{lang.ssCancelBtn}}</el-button>
  9347. <el-button type="primary" @click="addQuestionTeacher">{{ lang.ssSubmit }}</el-button>
  9348. </div>
  9349. </el-dialog>
  9350. <el-dialog
  9351. :title="lang.ssCountdown"
  9352. :visible.sync="timeDialogVisible"
  9353. :append-to-body="true"
  9354. width="800px"
  9355. :before-close="handleClose"
  9356. class="dialog_diy"
  9357. >
  9358. <div>
  9359. <div style="margin-bottom: 20px; color: #999">
  9360. {{ lang.ssCountdownHint }}
  9361. </div>
  9362. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9363. </div>
  9364. <div slot="footer">
  9365. <el-button @click="timeDialogVisible = false">{{ lang.ssCloseBtn }}</el-button>
  9366. </div>
  9367. </el-dialog>
  9368. <el-dialog
  9369. :title="lang.ssPermissionSettings"
  9370. :visible.sync="juriVisible"
  9371. :append-to-body="true"
  9372. width="400px"
  9373. :before-close="handleClose"
  9374. class="dialog_diy"
  9375. >
  9376. <div>
  9377. <div class="open_box">
  9378. <div class="switch_box">
  9379. <span>{{ lang.ssAllowStudentViewAllWork }}</span>
  9380. <el-switch
  9381. v-model="sIsOpen"
  9382. active-text=""
  9383. class="switchCss"
  9384. @change="updateSLook"
  9385. ></el-switch>
  9386. </div>
  9387. <div
  9388. class="switch_box"
  9389. v-if="
  9390. (courseDetail.userid == userid ||
  9391. (courseDetail.course_teacher &&
  9392. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  9393. "
  9394. >
  9395. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9396. <span>{{ lang.ssProhibitStudentViewStage }}</span>
  9397. <el-switch
  9398. v-model="IsLookOpen"
  9399. active-text=""
  9400. class="switchCss"
  9401. @change="updateLookOpen"
  9402. ></el-switch>
  9403. </div>
  9404. <div class="switch_box" v-if="(courseDetail.userid == userid ||
  9405. (courseDetail.course_teacher &&
  9406. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen">
  9407. <span>{{ lang.ssEnableFollowMode }}</span>
  9408. <el-switch
  9409. v-model="IsFollow"
  9410. active-text=""
  9411. class="switchCss"
  9412. @change="updateFollow"
  9413. ></el-switch>
  9414. </div>
  9415. <div class="switch_box" v-if="courseDetail.userid == userid">
  9416. <span>{{ lang.ssAllowStudentViewContent }}</span>
  9417. <el-switch
  9418. v-model="IsStulook"
  9419. active-text=""
  9420. class="switchCss"
  9421. @change="updateIsStulook"
  9422. ></el-switch>
  9423. </div>
  9424. </div>
  9425. </div>
  9426. <div slot="footer">
  9427. <el-button
  9428. style="background: #409efe; color: #fff"
  9429. @click="juriVisible = false"
  9430. >{{ lang.ssCloseBtn }}</el-button
  9431. >
  9432. </div>
  9433. </el-dialog>
  9434. <el-dialog
  9435. :title="lang.ssViewVideo"
  9436. :visible.sync="videoVisible"
  9437. :append-to-body="true"
  9438. width="1000px"
  9439. :before-close="handleClose"
  9440. class="dialog_diy1"
  9441. >
  9442. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9443. <video-player
  9444. class="video-player vjs-custom-skin"
  9445. :playsinline="true"
  9446. :options="videoDetail"
  9447. @play="onPlayerPlay($event)"
  9448. style="width: 100%; height: 100%"
  9449. ></video-player>
  9450. </div>
  9451. <div slot="footer">
  9452. <el-button
  9453. style="background: #409efe; color: #fff"
  9454. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9455. >
  9456. {{ lang.ssCloseBtn }}</el-button
  9457. >
  9458. </div>
  9459. </el-dialog>
  9460. <el-dialog
  9461. :title="lang.ssViewDetails"
  9462. :visible.sync="commentDialogVisible"
  9463. :append-to-body="true"
  9464. width="800px"
  9465. :before-close="handleClose"
  9466. class="dialog_diy"
  9467. >
  9468. <div class="commentTop">
  9469. <div class="studentDetail">
  9470. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9471. <div class="nameAndTime">
  9472. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9473. <div>{{ commentDetail.time }}</div>
  9474. </div>
  9475. <div
  9476. class="returnBtn"
  9477. style="margin-left: auto; width: 80px"
  9478. v-if="
  9479. commentDetail.works &&
  9480. commentDetail.type == 0 &&
  9481. (tType == 1 || tType == 4)
  9482. "
  9483. @click="
  9484. showPicturePaint(
  9485. commentDetail.img ? commentDetail.img : commentDetail.works
  9486. )
  9487. "
  9488. >
  9489. {{ lang.ssTeacherComment }}
  9490. </div>
  9491. </div>
  9492. <div
  9493. class="worksAnswer"
  9494. v-if="commentDetail.works && commentDetail.type == 2"
  9495. >
  9496. {{ JSON.parse(commentDetail.works)[0].answer }}
  9497. </div>
  9498. <div
  9499. class="worksAnswer"
  9500. v-if="commentDetail.works && commentDetail.type == 1"
  9501. >
  9502. <img
  9503. src="../assets/teacherWork.png"
  9504. v-if="commentDetail.ateacher"
  9505. class="w_teachert"
  9506. />
  9507. <pdf
  9508. v-if="showPDF"
  9509. :pdfUrl="pptImgUrl"
  9510. style="width: 100%; height: 520px; overflow: auto"
  9511. :class="{ fullStyle: full }"
  9512. ></pdf>
  9513. <iframe
  9514. v-else
  9515. :src="pptImgUrl"
  9516. frameborder="0"
  9517. width="100%"
  9518. height="600"
  9519. :class="{ fullStyle: full }"
  9520. ></iframe>
  9521. </div>
  9522. <div
  9523. class="worksAnswer"
  9524. v-if="commentDetail.works && commentDetail.type == 0"
  9525. >
  9526. <img
  9527. src="../assets/teacherWork.png"
  9528. v-if="commentDetail.ateacher"
  9529. class="w_teachert"
  9530. style="right: 105px"
  9531. />
  9532. <img
  9533. :src="commentDetail.works"
  9534. alt=""
  9535. @click="previewImg(commentDetail.works)"
  9536. />
  9537. </div>
  9538. <div
  9539. class="worksAnswer"
  9540. v-if="commentDetail.works && commentDetail.type == 3"
  9541. >
  9542. <img
  9543. src="../assets/teacherWork.png"
  9544. v-if="commentDetail.ateacher"
  9545. class="w_teachert"
  9546. />
  9547. <video-player
  9548. class="video-player vjs-custom-skin"
  9549. :playsinline="true"
  9550. :options="videoDetail"
  9551. @play="onPlayerPlay($event)"
  9552. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9553. ></video-player>
  9554. </div>
  9555. <div
  9556. class="worksAnswer"
  9557. v-if="commentDetail.works && commentDetail.type == 10"
  9558. >
  9559. <div class="cont" v-html="commentDetail.works.text"></div>
  9560. </div>
  9561. <div
  9562. class="worksAnswer codeFileBox"
  9563. v-if="commentDetail.works && commentDetail.type == 12"
  9564. @click="downloadFile(commentDetail.works)"
  9565. >
  9566. <img src="../assets/icon/codeFile.png" />
  9567. <div>{{ lang.ssClickDownloadFile }}</div>
  9568. </div>
  9569. <div
  9570. class="worksAnswer codeFileBox"
  9571. v-if="commentDetail.works && commentDetail.type == 15"
  9572. @click="
  9573. openCocoPi(
  9574. 57,
  9575. commentIndexJson.toolIndex,
  9576. commentDetail.userid,
  9577. commentDetail.sName
  9578. )
  9579. "
  9580. >
  9581. <img src="../assets/icon/codeFile.png" />
  9582. <div>{{ lang.ssClickOpenCocoPi }}</div>
  9583. </div>
  9584. <div
  9585. class="worksAnswer"
  9586. v-if="commentDetail.works && commentDetail.type == 13"
  9587. >
  9588. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9589. </div>
  9590. <div
  9591. class="worksAnswer"
  9592. v-if="commentDetail.works && commentDetail.type == 4"
  9593. >
  9594. <div class="evalCss">
  9595. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  9596. <div class="middleBox" v-if="eScore.eStar">
  9597. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9598. <div class="nameAndrate">
  9599. <div>{{ e.value }}</div>
  9600. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9601. </div>
  9602. <div v-if="e.detail">{{ e.detail }}</div>
  9603. </div>
  9604. <div class="bz">
  9605. <textarea
  9606. disabled
  9607. rows="4"
  9608. class="pj"
  9609. style="
  9610. padding: 10px 5px;
  9611. width: 70%;
  9612. background: #f7f6f9;
  9613. font-size: 14px;
  9614. text-indent: 10px;
  9615. color: #000;
  9616. "
  9617. cols
  9618. v-model="eScore.eBzText"
  9619. :placeholder="lang.ssEnterEvalContent"
  9620. ></textarea>
  9621. </div>
  9622. </div>
  9623. </div>
  9624. </div>
  9625. <div class="comment">
  9626. <div class="commentList">
  9627. <div class="commentImg">
  9628. <img
  9629. @click="
  9630. isLikes(
  9631. commentDetail.wid,
  9632. userid,
  9633. 1,
  9634. null,
  9635. commentDetail.isLikes,
  9636. commentDetail.sName
  9637. )
  9638. "
  9639. :src="commentDetail.isLikes == true ? likes : noLikes"
  9640. alt=""
  9641. />
  9642. </div>
  9643. <div>{{ commentDetail.likesCount }}</div>
  9644. </div>
  9645. <div class="commentList">
  9646. <div class="commentImg">
  9647. <img src="../assets/icon/comment/comment.png" alt="" />
  9648. </div>
  9649. <div>{{ commentDetail.commentCount }}</div>
  9650. </div>
  9651. </div>
  9652. <div class="drawPBox" v-if="commentDetail.img">
  9653. <span>{{ lang.ssTeacherComment }}</span>
  9654. <img
  9655. :src="commentDetail.img"
  9656. alt=""
  9657. @click="previewImg(commentDetail.img)"
  9658. />
  9659. <span
  9660. class="deleteImg"
  9661. v-if="tType == 1 || tType == 4"
  9662. @click.stop="deletePicturePaint(commentDetail.wid)"
  9663. style="
  9664. font-size: 14px;
  9665. width: auto !important;
  9666. color: #b4b4b4;
  9667. top: unset;
  9668. bottom: 0;
  9669. border: none;
  9670. padding: 0;
  9671. height: auto !important;
  9672. margin: 0;
  9673. "
  9674. >{{ lang.ssDelete }}</span
  9675. >
  9676. </div>
  9677. </div>
  9678. <div class="commentBox">
  9679. <div class="pl">{{ lang.ssCommentColon }}</div>
  9680. <div style="max-height: 200px; overflow: auto">
  9681. <div
  9682. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9683. style="padding: 10px 0 0 0"
  9684. >
  9685. <div
  9686. class="studentDetail"
  9687. style="padding-top: 10px"
  9688. v-for="(co, coIndex) in commentDetail.commentJson"
  9689. :key="coIndex"
  9690. >
  9691. <div class="tx" style="min-width: 50px">
  9692. <img src="../assets/avatar.png" alt="" />
  9693. </div>
  9694. <div class="plPerson">
  9695. <div class="plName">
  9696. <div>{{ co.commentPeople }}</div>
  9697. <div style="margin-left: 5px">
  9698. {{ co.commentTime }}
  9699. </div>
  9700. <div
  9701. class="deleteComment"
  9702. v-if="userid == co.userid"
  9703. @click="deleteComment(co.wid)"
  9704. >
  9705. {{ lang.ssDelete }}
  9706. </div>
  9707. </div>
  9708. <div class="plContent">{{ co.commentText }}</div>
  9709. </div>
  9710. </div>
  9711. </div>
  9712. <div v-else style="padding: 10px 0 0 0">{{ lang.ssNoComments }}</div>
  9713. </div>
  9714. </div>
  9715. <div style="margin-top: 10px">
  9716. <div class="displayBox">
  9717. <div
  9718. style="
  9719. color: #556db4;
  9720. font-size: 14px;
  9721. font-weight: bold;
  9722. padding-bottom: 10px;
  9723. "
  9724. >
  9725. {{ lang.ssEvaluation }}
  9726. </div>
  9727. <div class="easy_comment" v-if="false">
  9728. <div
  9729. v-for="(p, pIndex) in PlTextList"
  9730. :key="pIndex"
  9731. @click="fastText(p, 1)"
  9732. >
  9733. {{ p }}
  9734. </div>
  9735. </div>
  9736. </div>
  9737. <div>
  9738. <textarea
  9739. rows="3"
  9740. class="pj"
  9741. style="padding: 10px 5px"
  9742. cols
  9743. v-model="commentText"
  9744. :placeholder="lang.ssEnterComment"
  9745. ></textarea>
  9746. </div>
  9747. </div>
  9748. <div slot="footer">
  9749. <el-button
  9750. @click="
  9751. (commentDialogVisible = false),
  9752. (commentIndexJson = {}),
  9753. videoDetail.sources && videoDetail.sources[0]
  9754. ? (videoDetail.sources[0].src = '')
  9755. : ''
  9756. "
  9757. >{{lang.ssCancelBtn}}</el-button
  9758. >
  9759. <el-button
  9760. type="primary"
  9761. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  9762. >{{lang.ssConfirmBtn}}</el-button
  9763. >
  9764. </div>
  9765. </el-dialog>
  9766. <el-dialog
  9767. :title="lang.ssViewDocument"
  9768. :visible.sync="fullDialogVisible"
  9769. :append-to-body="true"
  9770. width="100%"
  9771. :before-close="handleClose"
  9772. :show-close="false"
  9773. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  9774. >
  9775. <div slot="title" class="header-title">
  9776. <div v-if="fulltype == 4" style="color: #fff">{{ lang.ssAIApplication }}</div>
  9777. <div v-else style="color: #fff">{{ lang.ssViewDocument }}</div>
  9778. <div
  9779. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  9780. style="
  9781. cursor: pointer;
  9782. position: absolute;
  9783. top: 20px;
  9784. right: 20px;
  9785. color: #fff;
  9786. "
  9787. >
  9788. {{ lang.ssExitFullscreen }}
  9789. </div>
  9790. </div>
  9791. <div style="height: 100%;position: relative;">
  9792. <el-button
  9793. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  9794. size="medium"
  9795. type="primary"
  9796. @click="
  9797. () => {
  9798. (fullDialogVisible = false),
  9799. changeSplitScreenBehavior({ code: 99 });
  9800. }
  9801. "
  9802. style="
  9803. cursor: pointer;
  9804. position: absolute;
  9805. top: 10px;
  9806. right: 20px;
  9807. color: #fff;
  9808. "
  9809. >
  9810. {{ lang.ssExitFullscreen }}
  9811. </el-button>
  9812. <div
  9813. class="wheel"
  9814. v-if="fulltype == 1"
  9815. style="
  9816. box-shadow: 0 0 6px 1px #f2f2f2;
  9817. width: 100%;
  9818. height:100%;
  9819. background: #f1f1f1;
  9820. "
  9821. >
  9822. <div class="title" style="width: 100%; box-sizing: border-box">
  9823. {{ lang.ssViewDocument }}
  9824. </div>
  9825. <el-form class="textBox" style="height: 90%">
  9826. <el-form-item class="textTitle">
  9827. <div style="font-size: 22px">
  9828. {{ fullUrl.name }}
  9829. </div>
  9830. </el-form-item>
  9831. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9832. <div
  9833. v-html="fullUrl.url"
  9834. class="textContent"
  9835. style="height: auto"
  9836. ></div>
  9837. </el-form>
  9838. </div>
  9839. <div
  9840. class="wheel"
  9841. v-else-if="
  9842. (fulltype == 2 || fulltype == 4) &&
  9843. fullUrl.indexOf(
  9844. 'https://view.officeapps.live.com/op/view.aspx?src='
  9845. ) != -1
  9846. "
  9847. style="width: 100%;height:100%; margin: 0 auto"
  9848. >
  9849. <iframe
  9850. style="width: 100%; height: 100%; border: none"
  9851. :src="fullUrl"
  9852. ></iframe>
  9853. </div>
  9854. <!-- <iframe
  9855. v-else-if="fulltype == 2"
  9856. style="width: 100%; height: 100%; border: none"
  9857. :src="fullUrl"
  9858. security="restricted"
  9859. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9860. ></iframe> -->
  9861. <iframe
  9862. style="width: 100%; height: 100%; border: none"
  9863. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  9864. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo')!=-1)"
  9865. :src="fullUrl"
  9866. ></iframe>
  9867. <iframe
  9868. style="width: 100%; height: 100%; border: none"
  9869. security="restricted"
  9870. v-else-if="(fulltype == 2 || fulltype == 4)"
  9871. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9872. :src="fullUrl"
  9873. ></iframe>
  9874. <pdf
  9875. v-else-if="fulltype == 3"
  9876. :pdfUrl="fullUrl"
  9877. style="width: 100%; height: 100%; overflow: auto"
  9878. ></pdf>
  9879. <iframe
  9880. style="width: 100%; height: 100%; border: none"
  9881. security="restricted"
  9882. v-if="(fulltype == 16) && (fullUrl.indexOf('cocorobo')!=-1)"
  9883. :src="fullUrl"
  9884. ></iframe>
  9885. <iframe
  9886. style="width: 100%; height: 100%; border: none"
  9887. security="restricted"
  9888. v-else
  9889. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9890. :src="fullUrl"
  9891. ></iframe>
  9892. </div>
  9893. <!-- <div slot="footer">
  9894. <el-button @click="fullDialogVisible = false">{{ lang.ssCloseBtn }}</el-button>
  9895. </div> -->
  9896. </el-dialog>
  9897. <el-dialog
  9898. :title="lang.ssPersonalEval"
  9899. :visible.sync="studentEvalDialogVisible"
  9900. :append-to-body="true"
  9901. width="800px"
  9902. :before-close="handleClose"
  9903. class="dialog_diy"
  9904. >
  9905. <div class="evalCss">
  9906. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  9907. <div class="middleBox" v-if="eScore.eStar">
  9908. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9909. <div class="nameAndrate">
  9910. <div>{{ e.value }}</div>
  9911. <el-rate
  9912. v-model="eScore.eStar[eIndex]"
  9913. :disabled="isStar"
  9914. ></el-rate>
  9915. </div>
  9916. <div v-if="e.detail">{{ e.detail }}</div>
  9917. </div>
  9918. <div class="easy_comment" v-if="false">
  9919. <div
  9920. v-for="(p, pIndex) in PlTextList"
  9921. :key="pIndex"
  9922. @click="fastText(p, 2)"
  9923. >
  9924. {{ p }}
  9925. </div>
  9926. </div>
  9927. <div class="bz">
  9928. <textarea
  9929. :disabled="isStar"
  9930. rows="4"
  9931. class="pj"
  9932. style="
  9933. padding: 10px 5px;
  9934. width: 70%;
  9935. background: #f7f6f9;
  9936. font-size: 14px;
  9937. text-indent: 10px;
  9938. "
  9939. cols
  9940. v-model="eScore.eBzText"
  9941. :placeholder="lang.ssEnterEvalContent"
  9942. ></textarea>
  9943. </div>
  9944. </div>
  9945. </div>
  9946. <div slot="footer">
  9947. <el-button @click="studentEvalDialogVisible = false">{{lang.ssCancelBtn}}</el-button>
  9948. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9949. >{{lang.ssConfirmBtn}}</el-button
  9950. >
  9951. </div>
  9952. </el-dialog>
  9953. <el-dialog
  9954. :title="lang.ssPersonalEval"
  9955. :visible.sync="studentEvalDialogVisibleTeacher"
  9956. :append-to-body="true"
  9957. width="800px"
  9958. :before-close="handleClose"
  9959. class="dialog_diy"
  9960. >
  9961. <div class="w_name">
  9962. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  9963. </div>
  9964. <div class="evalCss">
  9965. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  9966. <div class="middleBox" v-if="eScore.eStar">
  9967. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9968. <div class="nameAndrate">
  9969. <div>{{ e.value }}</div>
  9970. <el-rate
  9971. v-model="eScore.eStar[eIndex]"
  9972. :disabled="isStar"
  9973. ></el-rate>
  9974. </div>
  9975. <div v-if="e.detail">{{ e.detail }}</div>
  9976. </div>
  9977. <div class="easy_comment" v-if="false">
  9978. <div
  9979. v-for="(p, pIndex) in PlTextList"
  9980. :key="pIndex"
  9981. @click="fastText(p, 2)"
  9982. >
  9983. {{ p }}
  9984. </div>
  9985. </div>
  9986. <div class="bz">
  9987. <textarea
  9988. :disabled="isStar"
  9989. rows="4"
  9990. class="pj"
  9991. style="
  9992. padding: 10px 5px;
  9993. width: 70%;
  9994. background: #f7f6f9;
  9995. font-size: 14px;
  9996. text-indent: 10px;
  9997. "
  9998. cols
  9999. v-model="eScore.eBzText"
  10000. :placeholder="lang.ssEnterEvalContent"
  10001. ></textarea>
  10002. </div>
  10003. </div>
  10004. </div>
  10005. <div slot="footer">
  10006. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10007. >{{lang.ssCancelBtn}}</el-button
  10008. >
  10009. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10010. >{{lang.ssConfirmBtn}}</el-button
  10011. >
  10012. </div>
  10013. </el-dialog>
  10014. <el-dialog
  10015. :title="lang.ssMatch"
  10016. :visible.sync="dialogVisibleSelect"
  10017. :append-to-body="true"
  10018. width="90%"
  10019. :before-close="handleClose"
  10020. class="dialog_diy dialog_diy3"
  10021. >
  10022. <div v-if="selectJson">
  10023. <div class="select_box2">
  10024. <div class="select_box2_title">
  10025. <div>{{ lang.ssMatch }}</div>
  10026. <div>{{ lang.ssSelectCorrespondingAnswer }}</div>
  10027. </div>
  10028. <div class="select_box2_box">
  10029. <div class="select_box2_img">
  10030. <img
  10031. :src="selectJson.url"
  10032. @click="previewImg(selectJson.url)"
  10033. alt=""
  10034. />
  10035. </div>
  10036. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10037. <div style="padding-top: 15px">
  10038. <div class="select_answer_title" v-if="isSelect">
  10039. {{ selectAnswer.stu }}
  10040. </div>
  10041. <div class="select_answer_title" v-else>
  10042. {{ lang.ssSelectAnswerByQuestion }}
  10043. </div>
  10044. <div
  10045. class="select_box2_answer_box"
  10046. v-for="(item2, checkIndex) in selectJson.select"
  10047. :key="checkIndex"
  10048. >
  10049. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10050. <el-select
  10051. :disabled="isSelect"
  10052. v-model="selectAnswer.answer[checkIndex]"
  10053. :placeholder="lang.ssSelectCorrectAnswer"
  10054. >
  10055. <el-option
  10056. v-for="(e, eIndex) in selectJson.select"
  10057. :key="eIndex"
  10058. :label="e"
  10059. :value="eIndex"
  10060. >
  10061. </el-option>
  10062. </el-select>
  10063. </div>
  10064. </div>
  10065. <div
  10066. class="rightAnswerCss"
  10067. v-if="isSelect && (tType == 1 || tType == 4)"
  10068. >
  10069. <div
  10070. v-for="(a, aIndex) in selectJson.answer"
  10071. :key="aIndex"
  10072. class="rightAnswer"
  10073. >
  10074. <div
  10075. v-if="selectAnswer.answer[aIndex] === a"
  10076. style="color: #767de1"
  10077. >
  10078. {{ lang.ssAnswerCorrect }}
  10079. </div>
  10080. <div v-else>{{ lang.ssAnswerWrong }}</div>
  10081. <div
  10082. style="margin-left: 10px"
  10083. v-if="selectAnswer.answer[aIndex] !== a"
  10084. >
  10085. {{ lang.ssCorrectAnswer }}
  10086. </div>
  10087. <div
  10088. :class="
  10089. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10090. "
  10091. >
  10092. {{ selectJson.select[a] }}
  10093. </div>
  10094. </div>
  10095. </div>
  10096. </div>
  10097. <div class="upAnswerCss">
  10098. <el-button
  10099. type="primary"
  10100. @click="addSelectAnswer"
  10101. v-if="!isSelect"
  10102. >{{ lang.ssSubmitAnswer }}</el-button
  10103. >
  10104. </div>
  10105. </div>
  10106. </div>
  10107. </div>
  10108. </el-dialog>
  10109. <el-dialog
  10110. :title="lang.ssMatch"
  10111. :visible.sync="dialogVisibleSelectTeacher"
  10112. :append-to-body="true"
  10113. width="90%"
  10114. :before-close="handleClose"
  10115. class="dialog_diy dialog_diy3"
  10116. >
  10117. <div v-if="selectJson">
  10118. <div class="w_name">
  10119. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  10120. </div>
  10121. <div class="select_box2">
  10122. <div class="select_box2_title">
  10123. <div>{{ lang.ssMatch }}</div>
  10124. <div>{{ lang.ssSelectCorrespondingAnswer }}</div>
  10125. </div>
  10126. <div class="select_box2_box">
  10127. <div class="select_box2_img">
  10128. <img
  10129. :src="selectJson.url"
  10130. @click="previewImg(selectJson.url)"
  10131. alt=""
  10132. />
  10133. </div>
  10134. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10135. <div style="padding-top: 15px">
  10136. <div class="select_answer_title" v-if="isSelect">
  10137. {{ selectAnswer.stu }}
  10138. </div>
  10139. <div class="select_answer_title" v-else>
  10140. {{ lang.ssSelectAnswerByQuestion }}
  10141. </div>
  10142. <div
  10143. class="select_box2_answer_box"
  10144. v-for="(item2, checkIndex) in selectJson.select"
  10145. :key="checkIndex"
  10146. >
  10147. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10148. <el-select
  10149. :disabled="isSelect"
  10150. v-model="selectAnswer.answer[checkIndex]"
  10151. :placeholder="lang.ssSelectCorrectAnswer"
  10152. >
  10153. <el-option
  10154. v-for="(e, eIndex) in selectJson.select"
  10155. :key="eIndex"
  10156. :label="e"
  10157. :value="eIndex"
  10158. >
  10159. </el-option>
  10160. </el-select>
  10161. </div>
  10162. </div>
  10163. <div
  10164. class="rightAnswerCss"
  10165. v-if="isSelect && (tType == 1 || tType == 4)"
  10166. >
  10167. <div
  10168. v-for="(a, aIndex) in selectJson.answer"
  10169. :key="aIndex"
  10170. class="rightAnswer"
  10171. >
  10172. <div
  10173. v-if="selectAnswer.answer[aIndex] === a"
  10174. style="color: #767de1"
  10175. >
  10176. {{ lang.ssAnswerCorrect }}
  10177. </div>
  10178. <div v-else>{{ lang.ssAnswerWrong }}</div>
  10179. <div
  10180. style="margin-left: 10px"
  10181. v-if="selectAnswer.answer[aIndex] !== a"
  10182. >
  10183. {{ lang.ssCorrectAnswer }}
  10184. </div>
  10185. <div
  10186. :class="
  10187. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10188. "
  10189. >
  10190. {{ selectJson.select[a] }}
  10191. </div>
  10192. </div>
  10193. </div>
  10194. </div>
  10195. <div class="upAnswerCss">
  10196. <el-button
  10197. type="primary"
  10198. @click="addSelectAnswerTeacher"
  10199. v-if="!isSelect"
  10200. >{{ lang.ssSubmitAnswer }}</el-button
  10201. >
  10202. </div>
  10203. </div>
  10204. </div>
  10205. </div>
  10206. </el-dialog>
  10207. <el-dialog
  10208. :title="lang.ssTeacherScoring"
  10209. :visible.sync="dialogVisibleScore"
  10210. :append-to-body="true"
  10211. width="800px"
  10212. :before-close="handleClose"
  10213. class="dialog_diy"
  10214. >
  10215. <div>
  10216. <div class="studentDetail">
  10217. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10218. <div class="nameAndTime">
  10219. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10220. <div>{{ commentDetail.time }}</div>
  10221. </div>
  10222. </div>
  10223. <div
  10224. class="worksAnswer"
  10225. v-if="commentDetail.works && commentDetail.type == 2"
  10226. >
  10227. {{ JSON.parse(commentDetail.works)[0].answer }}
  10228. </div>
  10229. <div
  10230. class="worksAnswer"
  10231. v-if="commentDetail.works && commentDetail.type == 1"
  10232. >
  10233. <pdf
  10234. v-if="showPDF"
  10235. :pdfUrl="pptImgUrl"
  10236. style="width: 100%; height: 520px; overflow: auto"
  10237. :class="{ fullStyle: full }"
  10238. ></pdf>
  10239. <iframe
  10240. v-else
  10241. :src="pptImgUrl"
  10242. frameborder="0"
  10243. width="100%"
  10244. height="600"
  10245. :class="{ fullStyle: full }"
  10246. ></iframe>
  10247. </div>
  10248. <div
  10249. class="worksAnswer"
  10250. v-if="commentDetail.works && commentDetail.type == 0"
  10251. >
  10252. <img
  10253. :src="commentDetail.works"
  10254. alt=""
  10255. @click="previewImg(commentDetail.works)"
  10256. />
  10257. </div>
  10258. <div
  10259. class="worksAnswer"
  10260. v-if="commentDetail.works && commentDetail.type == 3"
  10261. >
  10262. <video-player
  10263. class="video-player vjs-custom-skin"
  10264. :playsinline="true"
  10265. :options="videoDetail"
  10266. @play="onPlayerPlay($event)"
  10267. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10268. ></video-player>
  10269. </div>
  10270. <div
  10271. class="worksAnswer codeFileBox"
  10272. v-if="commentDetail.works && commentDetail.type == 12"
  10273. @click="downloadFile(commentDetail.works)"
  10274. >
  10275. <img src="../assets/icon/codeFile.png" />
  10276. <div>{{ lang.ssClickDownloadFile }}</div>
  10277. </div>
  10278. <div
  10279. class="worksAnswer codeFileBox"
  10280. v-if="commentDetail.works && commentDetail.type == 15"
  10281. @click="
  10282. openCocoPi(
  10283. 57,
  10284. commentIndexJson.toolIndex,
  10285. commentDetail.userid,
  10286. commentDetail.sName
  10287. )
  10288. "
  10289. >
  10290. <img src="../assets/icon/codeFile.png" />
  10291. <div>{{ lang.ssClickOpenCocoPi }}</div>
  10292. </div>
  10293. <div
  10294. class="worksAnswer"
  10295. v-if="commentDetail.works && commentDetail.type == 13"
  10296. >
  10297. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10298. </div>
  10299. <div class="scoreBox">
  10300. <span class="t">{{ lang.ssEnterScore }}</span>
  10301. <el-input-number
  10302. :disabled="courseDetail.userid != userid"
  10303. v-model="wScore"
  10304. :controls="false"
  10305. :min="0"
  10306. :max="100"
  10307. ></el-input-number>
  10308. </div>
  10309. <div class="scoreDetailBox">
  10310. <span class="t">{{ lang.ssScoringComment }}</span>
  10311. <el-input
  10312. type="textarea"
  10313. :rows="5"
  10314. :disabled="courseDetail.userid != userid"
  10315. resize="none"
  10316. v-model="scoreDetail"
  10317. :placeholder="lang.ssEnterStudentEvaluation"
  10318. >
  10319. </el-input>
  10320. </div>
  10321. </div>
  10322. <span slot="footer" class="dialog-footer">
  10323. <el-button
  10324. @click="
  10325. (dialogVisibleScore = false),
  10326. (commentIndexJson = {}),
  10327. videoDetail.sources && videoDetail.sources[0]
  10328. ? (videoDetail.sources[0].src = '')
  10329. : ''
  10330. "
  10331. >{{lang.ssCancelBtn}}</el-button
  10332. >
  10333. <el-button
  10334. type="primary"
  10335. v-if="courseDetail.userid == userid"
  10336. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10337. >{{lang.ssConfirmBtn}}
  10338. </el-button>
  10339. </span>
  10340. </el-dialog>
  10341. <el-dialog
  10342. :title="lang.ssSort"
  10343. :visible.sync="dialogVisibleSentence"
  10344. :append-to-body="true"
  10345. width="1000px"
  10346. :before-close="handleClose"
  10347. class="dialog_diy dialog_diy3"
  10348. >
  10349. <div>
  10350. <div class="sentenBox">
  10351. <div
  10352. v-for="(st, stIndex) in sentenceList"
  10353. :key="stIndex"
  10354. style="padding-bottom: 20px"
  10355. >
  10356. <div
  10357. style="padding: 15px 0 10px 20px"
  10358. class="sentenceTitle"
  10359. :index="stIndex + 1"
  10360. >
  10361. {{ lang.ssQuestionNum.replace(/\*/g, stIndex + 1) }}:{{ lang.ssSelectCorrectOrder }}
  10362. </div>
  10363. <div class="cardList" v-if="st.chooseSenList">
  10364. <div class="cardBox">
  10365. <div
  10366. v-for="(r, rIndex) in st.chooseSenList"
  10367. :key="rIndex"
  10368. @click="returnCard(r, stIndex, rIndex)"
  10369. >
  10370. <el-tooltip
  10371. class="item"
  10372. effect="light"
  10373. :content="r"
  10374. placement="top"
  10375. v-if="r != '' && r != undefined"
  10376. >
  10377. <div
  10378. :class="{
  10379. isCard: r,
  10380. isChooseCard: r == '' || r == undefined,
  10381. }"
  10382. >
  10383. <div>{{ r }}</div>
  10384. </div>
  10385. </el-tooltip>
  10386. <div
  10387. :class="{
  10388. isCard: r,
  10389. isChooseCard: r == '' || r == undefined,
  10390. }"
  10391. v-else
  10392. >
  10393. <div>{{ r }}</div>
  10394. </div>
  10395. </div>
  10396. </div>
  10397. </div>
  10398. <div class="cardList" v-if="st.addChangeSen">
  10399. <div class="cardBox">
  10400. <div
  10401. v-for="(s, sIndex) in st.addChangeSen"
  10402. :key="sIndex"
  10403. @click="setRightAnswer(s, stIndex, sIndex)"
  10404. >
  10405. <el-tooltip
  10406. class="item"
  10407. effect="light"
  10408. :content="s"
  10409. placement="top"
  10410. v-if="s != '' && s != undefined"
  10411. >
  10412. <div
  10413. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10414. >
  10415. <div>{{ s }}</div>
  10416. </div>
  10417. </el-tooltip>
  10418. <div
  10419. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10420. v-else
  10421. >
  10422. <div>{{ s }}</div>
  10423. </div>
  10424. </div>
  10425. </div>
  10426. </div>
  10427. </div>
  10428. </div>
  10429. </div>
  10430. <span slot="footer" class="dialog-footer">
  10431. <el-button @click="dialogVisibleSentence = false">{{lang.ssCancelBtn}}</el-button>
  10432. <el-button type="primary" @click="addSenWorks">{{lang.ssConfirmBtn}}</el-button>
  10433. </span>
  10434. </el-dialog>
  10435. <el-dialog
  10436. :title="lang.ssSort"
  10437. :visible.sync="dialogVisibleSentenceTeacher"
  10438. :append-to-body="true"
  10439. width="1000px"
  10440. :before-close="handleClose"
  10441. class="dialog_diy dialog_diy3"
  10442. >
  10443. <div>
  10444. <div class="w_name">
  10445. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  10446. </div>
  10447. <div class="sentenBox">
  10448. <div
  10449. v-for="(st, stIndex) in sentenceList"
  10450. :key="stIndex"
  10451. style="padding-bottom: 20px"
  10452. >
  10453. <div
  10454. style="padding: 15px 0 10px 20px"
  10455. class="sentenceTitle"
  10456. :index="stIndex + 1"
  10457. >
  10458. {{ lang.ssQuestionNum.replace(/\*/g, stIndex + 1) }}:{{ lang.ssSelectCorrectOrder }}
  10459. </div>
  10460. <div class="cardList" v-if="st.chooseSenList">
  10461. <div class="cardBox">
  10462. <div
  10463. v-for="(r, rIndex) in st.chooseSenList"
  10464. :key="rIndex"
  10465. @click="returnCard(r, stIndex, rIndex)"
  10466. >
  10467. <el-tooltip
  10468. class="item"
  10469. effect="light"
  10470. :content="r"
  10471. placement="top"
  10472. v-if="r != '' && r != undefined"
  10473. >
  10474. <div
  10475. :class="{
  10476. isCard: r,
  10477. isChooseCard: r == '' || r == undefined,
  10478. }"
  10479. >
  10480. <div>{{ r }}</div>
  10481. </div>
  10482. </el-tooltip>
  10483. <div
  10484. :class="{
  10485. isCard: r,
  10486. isChooseCard: r == '' || r == undefined,
  10487. }"
  10488. v-else
  10489. >
  10490. <div>{{ r }}</div>
  10491. </div>
  10492. </div>
  10493. </div>
  10494. </div>
  10495. <div class="cardList" v-if="st.addChangeSen">
  10496. <div class="cardBox">
  10497. <div
  10498. v-for="(s, sIndex) in st.addChangeSen"
  10499. :key="sIndex"
  10500. @click="setRightAnswer(s, stIndex, sIndex)"
  10501. >
  10502. <el-tooltip
  10503. class="item"
  10504. effect="light"
  10505. :content="s"
  10506. placement="top"
  10507. v-if="s != '' && s != undefined"
  10508. >
  10509. <div
  10510. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10511. >
  10512. <div>{{ s }}</div>
  10513. </div>
  10514. </el-tooltip>
  10515. <div
  10516. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10517. v-else
  10518. >
  10519. <div>{{ s }}</div>
  10520. </div>
  10521. </div>
  10522. </div>
  10523. </div>
  10524. </div>
  10525. </div>
  10526. </div>
  10527. <span slot="footer" class="dialog-footer">
  10528. <el-button @click="dialogVisibleSentenceTeacher = false"
  10529. >{{lang.ssCancelBtn}}</el-button
  10530. >
  10531. <el-button type="primary" @click="addSenWorksTeacher">{{lang.ssConfirmBtn}}</el-button>
  10532. </span>
  10533. </el-dialog>
  10534. <el-dialog
  10535. :title="lang.ssSort"
  10536. :visible.sync="dialogVisibleSentence1"
  10537. :append-to-body="true"
  10538. width="1000px"
  10539. :before-close="handleClose"
  10540. class="dialog_diy dialog_diy3"
  10541. >
  10542. <div>
  10543. <div class="sentenBox">
  10544. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10545. {{ sentenceList1.stuName }}{{ lang.ssHomeworkOf }}
  10546. </div>
  10547. <div
  10548. v-for="(st, stIndex) in sentenceList1"
  10549. :key="stIndex"
  10550. style="padding-bottom: 20px"
  10551. >
  10552. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10553. {{ lang.ssQuestionNum.replace(/\*/g, stIndex + 1) }}
  10554. </div>
  10555. <div class="isWrong">
  10556. <div class="cardList1" v-if="st.chooseSenList">
  10557. <div class="cardBox">
  10558. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10559. <el-tooltip
  10560. class="item"
  10561. effect="light"
  10562. :content="s"
  10563. placement="top"
  10564. >
  10565. <div class="isCard">
  10566. <div>{{ s }}</div>
  10567. </div>
  10568. </el-tooltip>
  10569. </div>
  10570. </div>
  10571. <div class="cardAnswerBox">
  10572. {{ lang.ssFormSentence }}{{ st.chooseSenList.join(" ") }}
  10573. </div>
  10574. </div>
  10575. <div v-if="tType == 2" class="isTj">
  10576. <div class="isTjImg">
  10577. <img src="../assets/icon/conSentences/right.png" alt="" />
  10578. </div>
  10579. <div>{{ lang.ssSubmitted }}</div>
  10580. </div>
  10581. <div
  10582. class="answerRight isTj"
  10583. v-if="
  10584. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10585. (tType == 1 || tType == 4)
  10586. "
  10587. >
  10588. <div class="isTjImg">
  10589. <img src="../assets/icon/conSentences/right.png" alt="" />
  10590. </div>
  10591. <div>{{ lang.ssAnswerCorrect }}</div>
  10592. </div>
  10593. <div
  10594. class="answerRight isTj"
  10595. v-if="
  10596. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10597. (tType == 1 || tType == 4)
  10598. "
  10599. >
  10600. <div class="isTjImg">
  10601. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10602. </div>
  10603. <div>{{ lang.ssAnswerWrong }}</div>
  10604. </div>
  10605. </div>
  10606. <div
  10607. v-if="
  10608. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10609. (tType == 1 || tType == 4)
  10610. "
  10611. >
  10612. <div style="padding: 15px 0 10px 20px">{{ lang.ssCorrectAnswerBelow }}</div>
  10613. <div
  10614. class="cardList"
  10615. v-if="st.rightAnswer"
  10616. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10617. >
  10618. <div class="cardBox">
  10619. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex"></div>
  10620. <el-tooltip
  10621. class="item"
  10622. effect="light"
  10623. :content="r"
  10624. placement="top"
  10625. >
  10626. <div class="isCard1">
  10627. <div>{{ r }}</div>
  10628. </div>
  10629. </el-tooltip>
  10630. </div>
  10631. </div>
  10632. <div class="cardAnswerBox">
  10633. {{ lang.ssFormSentence }}{{ st.rightAnswer.join(" ") }}
  10634. </div>
  10635. </div>
  10636. </div>
  10637. </div>
  10638. </div>
  10639. <span slot="footer" class="dialog-footer">
  10640. <el-button @click="dialogVisibleSentence1 = false">{{lang.ssCancelBtn}}</el-button>
  10641. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10642. >{{lang.ssConfirmBtn}}</el-button
  10643. >
  10644. </span>
  10645. </el-dialog>
  10646. <el-dialog
  10647. :title="lang.ssTeacherSubmitWork"
  10648. :visible.sync="dialogVisibleWorks"
  10649. :append-to-body="true"
  10650. width="500px"
  10651. :before-close="handleClose"
  10652. class="dialog_change"
  10653. >
  10654. <div class="marginT">
  10655. <div class="w_name">
  10656. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  10657. </div>
  10658. <div>{{ lang.ssUploadHomework }}</div>
  10659. <div style="display: flex; gap: 10px">
  10660. <div
  10661. class="chapter_add"
  10662. @click="addImg($event)"
  10663. v-if="studyJuri[0].cover.length == 0"
  10664. >
  10665. <div class="up_photo">
  10666. <img src="../assets/icon/uploadImg.png" alt />
  10667. </div>
  10668. <!-- <input
  10669. type="file"
  10670. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10671. style="display: none"
  10672. @change="beforeUpload1($event, 1)"
  10673. /> -->
  10674. <input
  10675. type="file"
  10676. accept="*"
  10677. style="display: none"
  10678. @change="beforeUpload1($event, 1)"
  10679. />
  10680. <!-- <input
  10681. type="file"
  10682. accept="image/*"
  10683. capture="camera"
  10684. style="display: none"
  10685. @change="beforeUpload1($event, 1)"
  10686. /> -->
  10687. </div>
  10688. <div
  10689. class="chapter_add"
  10690. @click="addImg($event)"
  10691. v-if="studyJuri[0].cover.length == 0"
  10692. >
  10693. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  10694. <img src="../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  10695. </div>
  10696. <input
  10697. type="file"
  10698. accept="image/*"
  10699. capture="camera"
  10700. style="display: none"
  10701. @change="beforeUpload1($event, 1)"
  10702. />
  10703. </div>
  10704. </div>
  10705. <!-- capture="camera" -->
  10706. <div
  10707. class="chapter_add"
  10708. style="
  10709. display: flex;
  10710. width: 100%;
  10711. flex-direction: row;
  10712. flex-wrap: wrap;
  10713. justify-content: flex-start;
  10714. padding: 15px 0;
  10715. "
  10716. v-if="studyJuri[0].cover.length > 0"
  10717. >
  10718. <div class="upCover">
  10719. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10720. <img :src="word" alt v-else-if="fileType == 1" />
  10721. <img :src="video" alt v-else-if="fileType == 2" />
  10722. <img :src="word2" alt v-else-if="fileType == 3" />
  10723. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10724. <div class="deleteWord" @click="clean(1)">
  10725. <img src="../assets/icon/deleteWorks.png" alt />
  10726. </div>
  10727. </div>
  10728. </div>
  10729. </div>
  10730. <div
  10731. class="upload_send"
  10732. @click="addCourseWorksTeacher(taskCount)"
  10733. v-if="!proVisible"
  10734. >
  10735. {{ lang.ssSubmit }}
  10736. </div>
  10737. </el-dialog>
  10738. <ImgDraw
  10739. :drawShow="drawShow"
  10740. @closeDraw="closeDraw"
  10741. @addImgDraw="addImgDraw"
  10742. :bg="bg"
  10743. ></ImgDraw>
  10744. <el-dialog
  10745. :title="lang.ssTable"
  10746. :visible.sync="dialogVisibleTable"
  10747. :append-to-body="true"
  10748. width="95%"
  10749. :before-close="handleClose"
  10750. class="dialog_diy"
  10751. >
  10752. <el-form>
  10753. <div
  10754. style="
  10755. display: flex;
  10756. align-items: center;
  10757. justify-content: space-between;
  10758. "
  10759. >
  10760. <span>{{ lang.ssTableContent }}</span>
  10761. <el-button type="primary" size="small" @click="returnTableText"
  10762. >{{ lang.ssRestoreTemplate }}</el-button
  10763. >
  10764. </div>
  10765. <Table
  10766. v-model="tableJson.text"
  10767. @change="change"
  10768. v-if="dialogVisibleTable"
  10769. ></Table>
  10770. </el-form>
  10771. <span slot="footer" class="dialog-footer">
  10772. <el-button @click="dialogVisibleTable = false">{{lang.ssCancelBtn}}</el-button>
  10773. <el-button type="primary" @click="addTableWorks">{{ lang.ssConfirmBtn }}</el-button>
  10774. </span>
  10775. </el-dialog>
  10776. <el-dialog
  10777. :title="lang.ssTable"
  10778. :visible.sync="dialogVisibleTableTeacher"
  10779. :append-to-body="true"
  10780. width="95%"
  10781. :before-close="handleClose"
  10782. class="dialog_diy"
  10783. >
  10784. <el-form>
  10785. <div class="w_name">
  10786. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  10787. </div>
  10788. <div>{{ lang.ssTableContent }}</div>
  10789. <Table
  10790. v-model="tableJson.text"
  10791. @change="change"
  10792. v-if="dialogVisibleTableTeacher"
  10793. ></Table>
  10794. </el-form>
  10795. <span slot="footer" class="dialog-footer">
  10796. <el-button @click="dialogVisibleTableTeacher = false">{{lang.ssCancelBtn}}</el-button>
  10797. <el-button type="primary" @click="addTableWorksTeacher">{{ lang.ssConfirmBtn }}</el-button>
  10798. </span>
  10799. </el-dialog>
  10800. <el-dialog
  10801. :title="lang.ssDocument"
  10802. :visible.sync="dialogVisibleWord"
  10803. :append-to-body="true"
  10804. width="95%"
  10805. :before-close="handleClose"
  10806. class="dialog_diy"
  10807. >
  10808. <el-form>
  10809. <div
  10810. style="
  10811. display: flex;
  10812. align-items: center;
  10813. justify-content: space-between;
  10814. "
  10815. >
  10816. <span>{{ lang.ssDocumentContent }}</span>
  10817. <el-button type="primary" size="small" @click="returnWordText"
  10818. >{{ lang.ssRestoreTemplate }}</el-button
  10819. >
  10820. </div>
  10821. <editor-bar
  10822. v-model="wordJson.text"
  10823. v-if="dialogVisibleWord"
  10824. ></editor-bar>
  10825. </el-form>
  10826. <span slot="footer" class="dialog-footer">
  10827. <el-button @click="dialogVisibleWord = false">{{lang.ssCancelBtn}}</el-button>
  10828. <el-button type="primary" @click="addWordWorks">{{ lang.ssConfirmBtn }}</el-button>
  10829. </span>
  10830. </el-dialog>
  10831. <el-dialog
  10832. :title="lang.ssDocument"
  10833. :visible.sync="dialogVisibleWordTeacher"
  10834. :append-to-body="true"
  10835. width="95%"
  10836. :before-close="handleClose"
  10837. class="dialog_diy"
  10838. >
  10839. <el-form>
  10840. <div class="w_name">
  10841. {{ lang.ssStudentNameColon }}<span>{{ sStudent.student }}</span>
  10842. </div>
  10843. <div>{{ lang.ssDocumentContent }}</div>
  10844. <editor-bar
  10845. v-model="wordJson.text"
  10846. v-if="dialogVisibleWordTeacher"
  10847. ></editor-bar>
  10848. </el-form>
  10849. <span slot="footer" class="dialog-footer">
  10850. <el-button @click="dialogVisibleWordTeacher = false">{{lang.ssCancelBtn}}</el-button>
  10851. <el-button type="primary" @click="addWordWorksTeacher">{{ lang.ssConfirmBtn }}</el-button>
  10852. </span>
  10853. </el-dialog>
  10854. <el-dialog
  10855. :title="lang.ssTable"
  10856. :visible.sync="dialogVisibleTable2"
  10857. :append-to-body="true"
  10858. width="95%"
  10859. :before-close="handleClose"
  10860. class="dialog_diy"
  10861. >
  10862. <el-form>
  10863. <div class="cont" v-html="tableJson.text"></div>
  10864. </el-form>
  10865. <span slot="footer" class="dialog-footer">
  10866. <el-button @click="dialogVisibleTable2 = false">{{ lang.ssCloseBtn }}</el-button>
  10867. </span>
  10868. </el-dialog>
  10869. <el-dialog
  10870. :title="lang.ssDocument"
  10871. :visible.sync="dialogVisibleTable3"
  10872. :append-to-body="true"
  10873. width="95%"
  10874. :before-close="handleClose"
  10875. class="dialog_diy"
  10876. >
  10877. <el-form>
  10878. <div class="cont" v-html="tableJson.text"></div>
  10879. </el-form>
  10880. <span slot="footer" class="dialog-footer">
  10881. <el-button @click="dialogVisibleTable3 = false">{{ lang.ssCloseBtn }}</el-button>
  10882. </span>
  10883. </el-dialog>
  10884. <el-dialog
  10885. :title="lang.ssGroupSetting"
  10886. :visible.sync="dialogVisibleGroup"
  10887. :append-to-body="true"
  10888. width="95%"
  10889. :before-close="handleClose"
  10890. class="dialog_diy"
  10891. >
  10892. <div v-if="dialogVisibleGroup">
  10893. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10894. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10895. {{ lang.ssOpenSeatTip }}
  10896. </div>
  10897. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10898. @click="lockChair">
  10899. {{ lang.ssLockPosition }}
  10900. </div>
  10901. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10902. {{ lang.ssUnlockPosition }}
  10903. </div> -->
  10904. <div class="group_switch">
  10905. <span>{{ lang.ssOpenSeat }}</span>
  10906. <el-switch
  10907. v-model="islock"
  10908. active-text=""
  10909. class="switchCss"
  10910. @change="lockChair"
  10911. ></el-switch>
  10912. </div>
  10913. <div
  10914. type="primary"
  10915. @click="updateGroup"
  10916. class="returnBtn"
  10917. style="background-color: #225bc7"
  10918. >
  10919. {{ lang.ssGroupSetting }}
  10920. </div>
  10921. </div>
  10922. <div>
  10923. <div
  10924. class="g_d_box"
  10925. v-if="groupJson.group && groupStudent[toolindex]"
  10926. >
  10927. <div
  10928. class="g_d_group"
  10929. v-for="(g, gindex) in groupJson.group"
  10930. :key="gindex"
  10931. >
  10932. <div class="g_d_group_chair">
  10933. <div v-if="groupJson.number > 1">
  10934. <span
  10935. :class="{
  10936. isChair:
  10937. groupStudent[toolindex][gindex] &&
  10938. groupStudent[toolindex][gindex][0],
  10939. updateChair:
  10940. courseDetail.userid == userid &&
  10941. groupStudent[toolindex][gindex] &&
  10942. groupStudent[toolindex][gindex][0] &&
  10943. groupJson.islock == 2,
  10944. }"
  10945. ><span
  10946. class="updateChairBtn"
  10947. @click="
  10948. updateGroupChair(
  10949. groupStudent[toolindex][gindex] &&
  10950. groupStudent[toolindex][gindex][0]
  10951. )
  10952. "
  10953. >{{ lang.ssModify }}</span
  10954. ></span
  10955. ><span>{{
  10956. groupStudent[toolindex][gindex] &&
  10957. groupStudent[toolindex][gindex][0]
  10958. ? groupStudent[toolindex][gindex] &&
  10959. groupStudent[toolindex][gindex][0].name
  10960. : lang.ssEmptyPosition
  10961. }}</span>
  10962. </div>
  10963. <div v-if="groupJson.number > 4">
  10964. <span
  10965. :class="{
  10966. isChair:
  10967. groupStudent[toolindex][gindex] &&
  10968. groupStudent[toolindex][gindex][4],
  10969. updateChair:
  10970. courseDetail.userid == userid &&
  10971. groupStudent[toolindex][gindex] &&
  10972. groupStudent[toolindex][gindex][4] &&
  10973. groupJson.islock == 2,
  10974. }"
  10975. ><span
  10976. class="updateChairBtn"
  10977. @click="
  10978. updateGroupChair(
  10979. groupStudent[toolindex][gindex] &&
  10980. groupStudent[toolindex][gindex][4]
  10981. )
  10982. "
  10983. >{{ lang.ssModify }}</span
  10984. ></span
  10985. ><span>{{
  10986. groupStudent[toolindex][gindex] &&
  10987. groupStudent[toolindex][gindex][4]
  10988. ? groupStudent[toolindex][gindex] &&
  10989. groupStudent[toolindex][gindex][4].name
  10990. : lang.ssEmptyPosition
  10991. }}</span>
  10992. </div>
  10993. <div v-if="groupJson.number > 8">
  10994. <span
  10995. :class="{
  10996. isChair:
  10997. groupStudent[toolindex][gindex] &&
  10998. groupStudent[toolindex][gindex][8],
  10999. updateChair:
  11000. courseDetail.userid == userid &&
  11001. groupStudent[toolindex][gindex] &&
  11002. groupStudent[toolindex][gindex][8] &&
  11003. groupJson.islock == 2,
  11004. }"
  11005. ><span
  11006. class="updateChairBtn"
  11007. @click="
  11008. updateGroupChair(
  11009. groupStudent[toolindex][gindex] &&
  11010. groupStudent[toolindex][gindex][8]
  11011. )
  11012. "
  11013. >{{ lang.ssModify }}</span
  11014. ></span
  11015. ><span>{{
  11016. groupStudent[toolindex][gindex] &&
  11017. groupStudent[toolindex][gindex][8]
  11018. ? groupStudent[toolindex][gindex] &&
  11019. groupStudent[toolindex][gindex][8].name
  11020. : lang.ssEmptyPosition
  11021. }}</span>
  11022. </div>
  11023. </div>
  11024. <div class="g_d_group_tableBox">
  11025. <div class="g_d_group_chair2">
  11026. <div v-if="groupJson.number > 2">
  11027. <span
  11028. :class="{
  11029. isChair:
  11030. groupStudent[toolindex][gindex] &&
  11031. groupStudent[toolindex][gindex][2],
  11032. updateChair:
  11033. courseDetail.userid == userid &&
  11034. groupStudent[toolindex][gindex] &&
  11035. groupStudent[toolindex][gindex][2] &&
  11036. groupJson.islock == 2,
  11037. }"
  11038. ><span
  11039. class="updateChairBtn"
  11040. @click="
  11041. updateGroupChair(
  11042. groupStudent[toolindex][gindex] &&
  11043. groupStudent[toolindex][gindex][2]
  11044. )
  11045. "
  11046. >{{ lang.ssModify }}</span
  11047. ></span
  11048. ><span>{{
  11049. groupStudent[toolindex][gindex] &&
  11050. groupStudent[toolindex][gindex][2]
  11051. ? groupStudent[toolindex][gindex] &&
  11052. groupStudent[toolindex][gindex][2].name
  11053. : lang.ssEmptyPosition
  11054. }}</span>
  11055. </div>
  11056. <div v-if="groupJson.number > 6">
  11057. <span
  11058. :class="{
  11059. isChair:
  11060. groupStudent[toolindex][gindex] &&
  11061. groupStudent[toolindex][gindex][6],
  11062. updateChair:
  11063. courseDetail.userid == userid &&
  11064. groupStudent[toolindex][gindex] &&
  11065. groupStudent[toolindex][gindex][6] &&
  11066. groupJson.islock == 2,
  11067. }"
  11068. ><span
  11069. class="updateChairBtn"
  11070. @click="
  11071. updateGroupChair(
  11072. groupStudent[toolindex][gindex] &&
  11073. groupStudent[toolindex][gindex][6]
  11074. )
  11075. "
  11076. >{{ lang.ssModify }}</span
  11077. ></span
  11078. ><span>{{
  11079. groupStudent[toolindex][gindex] &&
  11080. groupStudent[toolindex][gindex][6]
  11081. ? groupStudent[toolindex][gindex] &&
  11082. groupStudent[toolindex][gindex][6].name
  11083. : lang.ssEmptyPosition
  11084. }}</span>
  11085. </div>
  11086. </div>
  11087. <div class="g_d_group_table">
  11088. <div>
  11089. {{ g.name }}
  11090. </div>
  11091. <div>
  11092. <div
  11093. v-if="
  11094. courseDetail.userid == userid && groupJson.islock == 2
  11095. "
  11096. @click="deleteGroupChair(gindex)"
  11097. >
  11098. {{ lang.ssRemoveMember }}
  11099. </div>
  11100. <div
  11101. @click="selectGroup(gindex)"
  11102. v-else-if="
  11103. groupStudentUid[toolindex] &&
  11104. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11105. "
  11106. >
  11107. {{ lang.ssJoinGroup }}
  11108. </div>
  11109. <div
  11110. @click="
  11111. exitGroup(
  11112. groupStudent[toolindex][gindex] &&
  11113. groupStudent[toolindex][gindex][
  11114. groupStudentUid[toolindex][gindex].indexOf(userid)
  11115. ].id
  11116. )
  11117. "
  11118. v-else-if="
  11119. groupStudentUid[toolindex] &&
  11120. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11121. "
  11122. >
  11123. {{ lang.ssExitGroupBtn }}
  11124. </div>
  11125. </div>
  11126. </div>
  11127. <div class="g_d_group_chair2">
  11128. <div v-if="groupJson.number > 3">
  11129. <span
  11130. :class="{
  11131. isChair:
  11132. groupStudent[toolindex][gindex] &&
  11133. groupStudent[toolindex][gindex][3],
  11134. updateChair:
  11135. courseDetail.userid == userid &&
  11136. groupStudent[toolindex][gindex] &&
  11137. groupStudent[toolindex][gindex][3] &&
  11138. groupJson.islock == 2,
  11139. }"
  11140. ><span
  11141. class="updateChairBtn"
  11142. @click="
  11143. updateGroupChair(
  11144. groupStudent[toolindex][gindex] &&
  11145. groupStudent[toolindex][gindex][3]
  11146. )
  11147. "
  11148. >{{ lang.ssModify }}</span
  11149. ></span
  11150. ><span>{{
  11151. groupStudent[toolindex][gindex] &&
  11152. groupStudent[toolindex][gindex][3]
  11153. ? groupStudent[toolindex][gindex] &&
  11154. groupStudent[toolindex][gindex][3].name
  11155. : lang.ssEmptyPosition
  11156. }}</span>
  11157. </div>
  11158. <div v-if="groupJson.number > 7">
  11159. <span
  11160. :class="{
  11161. isChair:
  11162. groupStudent[toolindex][gindex] &&
  11163. groupStudent[toolindex][gindex][7],
  11164. updateChair:
  11165. courseDetail.userid == userid &&
  11166. groupStudent[toolindex][gindex] &&
  11167. groupStudent[toolindex][gindex][7] &&
  11168. groupJson.islock == 2,
  11169. }"
  11170. ><span
  11171. class="updateChairBtn"
  11172. @click="
  11173. updateGroupChair(
  11174. groupStudent[toolindex][gindex] &&
  11175. groupStudent[toolindex][gindex][7]
  11176. )
  11177. "
  11178. >{{ lang.ssModify }}</span
  11179. ></span
  11180. ><span>{{
  11181. groupStudent[toolindex][gindex] &&
  11182. groupStudent[toolindex][gindex][7]
  11183. ? groupStudent[toolindex][gindex] &&
  11184. groupStudent[toolindex][gindex][7].name
  11185. : lang.ssEmptyPosition
  11186. }}</span>
  11187. </div>
  11188. </div>
  11189. </div>
  11190. <div class="g_d_group_chair">
  11191. <div v-if="groupJson.number > 1">
  11192. <span
  11193. :class="{
  11194. isChair:
  11195. groupStudent[toolindex][gindex] &&
  11196. groupStudent[toolindex][gindex][1],
  11197. updateChair:
  11198. courseDetail.userid == userid &&
  11199. groupStudent[toolindex][gindex] &&
  11200. groupStudent[toolindex][gindex][1] &&
  11201. groupJson.islock == 2,
  11202. }"
  11203. ><span
  11204. class="updateChairBtn"
  11205. @click="
  11206. updateGroupChair(
  11207. groupStudent[toolindex][gindex] &&
  11208. groupStudent[toolindex][gindex][1]
  11209. )
  11210. "
  11211. >{{ lang.ssModify }}</span
  11212. ></span
  11213. ><span>{{
  11214. groupStudent[toolindex][gindex] &&
  11215. groupStudent[toolindex][gindex][1]
  11216. ? groupStudent[toolindex][gindex] &&
  11217. groupStudent[toolindex][gindex][1].name
  11218. : lang.ssEmptyPosition
  11219. }}</span>
  11220. </div>
  11221. <div v-if="groupJson.number > 5">
  11222. <span
  11223. :class="{
  11224. isChair:
  11225. groupStudent[toolindex][gindex] &&
  11226. groupStudent[toolindex][gindex][5],
  11227. updateChair:
  11228. courseDetail.userid == userid &&
  11229. groupStudent[toolindex][gindex] &&
  11230. groupStudent[toolindex][gindex][5] &&
  11231. groupJson.islock == 2,
  11232. }"
  11233. ><span
  11234. class="updateChairBtn"
  11235. @click="
  11236. updateGroupChair(
  11237. groupStudent[toolindex][gindex] &&
  11238. groupStudent[toolindex][gindex][5]
  11239. )
  11240. "
  11241. >{{ lang.ssModify }}</span
  11242. ></span
  11243. ><span>{{
  11244. groupStudent[toolindex][gindex] &&
  11245. groupStudent[toolindex][gindex][5]
  11246. ? groupStudent[toolindex][gindex] &&
  11247. groupStudent[toolindex][gindex][5].name
  11248. : lang.ssEmptyPosition
  11249. }}</span>
  11250. </div>
  11251. <div v-if="groupJson.number > 9">
  11252. <span
  11253. :class="{
  11254. isChair:
  11255. groupStudent[toolindex][gindex] &&
  11256. groupStudent[toolindex][gindex][9],
  11257. updateChair:
  11258. courseDetail.userid == userid &&
  11259. groupStudent[toolindex][gindex] &&
  11260. groupStudent[toolindex][gindex][9] &&
  11261. groupJson.islock == 2,
  11262. }"
  11263. ><span
  11264. class="updateChairBtn"
  11265. @click="
  11266. updateGroupChair(
  11267. groupStudent[toolindex][gindex] &&
  11268. groupStudent[toolindex][gindex][9]
  11269. )
  11270. "
  11271. >{{ lang.ssModify }}</span
  11272. ></span
  11273. ><span>{{
  11274. groupStudent[toolindex][gindex] &&
  11275. groupStudent[toolindex][gindex][9]
  11276. ? groupStudent[toolindex][gindex] &&
  11277. groupStudent[toolindex][gindex][9].name
  11278. : lang.ssEmptyPosition
  11279. }}</span>
  11280. </div>
  11281. </div>
  11282. </div>
  11283. </div>
  11284. </div>
  11285. </div>
  11286. <span slot="footer" class="dialog-footer">
  11287. <!-- <el-button @click="(dialogVisibleGroup = false)">{{ lang.ssCloseBtn }}</el-button> -->
  11288. </span>
  11289. </el-dialog>
  11290. <el-dialog
  11291. :title="lang.ssGroupSetting"
  11292. :visible.sync="dialogVisibleGroup2"
  11293. :append-to-body="true"
  11294. width="650px"
  11295. :before-close="handleClose"
  11296. class="dialog_diy"
  11297. >
  11298. <div class="groupBox">
  11299. <div v-if="groupJson2.group" class="groupContent">
  11300. <div class="groupTitle">{{ lang.ssSetGroupCountAndName }}</div>
  11301. <div
  11302. v-for="(item, index) in groupJson2.group"
  11303. :key="index"
  11304. class="groupName"
  11305. >
  11306. <span class="groupn">{{ lang.ssGroupNumName.replace(/\*/g, index + 1) }}</span>
  11307. <el-input
  11308. v-model="item.name"
  11309. :placeholder="lang.ssEnterName"
  11310. style="width: 250px"
  11311. ></el-input>
  11312. <!-- <div class="groupBtn">
  11313. <el-button type="primary" size="small" @click="addGroup(index)">
  11314. 添加</el-button>
  11315. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11316. v-if="groupJson2.group && groupJson2.group.length > 1">{{ lang.ssDeleteBtn }}</el-button>
  11317. </div> -->
  11318. </div>
  11319. </div>
  11320. <div class="groupContent">
  11321. <div class="groupTitle">{{ lang.ssSetGroupMemberCount }}</div>
  11322. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11323. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11324. <el-input
  11325. v-model="groupJson2.number"
  11326. style="width: 150px"
  11327. :placeholder="lang.ssEnterNumber2To10"
  11328. @change="numberPan"
  11329. ></el-input>
  11330. </div>
  11331. </div>
  11332. <span slot="footer" class="dialog-footer">
  11333. <el-button @click="dialogVisibleGroup2 = false">{{lang.ssCancelBtn}}</el-button>
  11334. <el-button type="primary" @click="updateGroupJson">{{ lang.ssConfirmBtn }}</el-button>
  11335. </span>
  11336. </el-dialog>
  11337. <el-dialog
  11338. :title=lang.ssHomework
  11339. :visible.sync="dialogVisibleGroupWork"
  11340. :append-to-body="true"
  11341. width="500px"
  11342. :before-close="handleClose"
  11343. class="dialog_change"
  11344. >
  11345. <div class="marginT">
  11346. <div>{{ lang.ssUploadHomework }}</div>
  11347. <div
  11348. class="chapter_add"
  11349. @click="addImg($event)"
  11350. v-if="studyJuri[0].cover.length == 0"
  11351. >
  11352. <div class="up_photo">
  11353. <img src="../assets/icon/uploadImg.png" alt />
  11354. </div>
  11355. <!-- <input
  11356. type="file"
  11357. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11358. style="display: none"
  11359. @change="beforeUpload1($event, 1)"
  11360. /> -->
  11361. <input
  11362. type="file"
  11363. accept="*"
  11364. style="display: none"
  11365. @change="beforeUpload1($event, 1)"
  11366. />
  11367. </div>
  11368. <!-- capture="camera" -->
  11369. <div
  11370. class="chapter_add"
  11371. style="
  11372. display: flex;
  11373. width: 100%;
  11374. flex-direction: row;
  11375. flex-wrap: wrap;
  11376. justify-content: flex-start;
  11377. padding: 15px 0;
  11378. "
  11379. v-if="studyJuri[0].cover.length > 0"
  11380. >
  11381. <div class="upCover">
  11382. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11383. <img :src="word" alt v-else-if="fileType == 1" />
  11384. <img :src="video" alt v-else-if="fileType == 2" />
  11385. <img :src="word2" alt v-else-if="fileType == 3" />
  11386. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11387. <div class="deleteWord" @click="clean(1)">
  11388. <img src="../assets/icon/deleteWorks.png" alt />
  11389. </div>
  11390. </div>
  11391. </div>
  11392. </div>
  11393. <div
  11394. class="upload_send"
  11395. @click="addCourseWorks2(taskCount)"
  11396. v-if="!proVisible"
  11397. >
  11398. {{ lang.ssSubmit }}
  11399. </div>
  11400. </el-dialog>
  11401. <el-dialog
  11402. :title=lang.ssModifyGroup
  11403. :visible.sync="dialogVisibleUpdateGroup"
  11404. :append-to-body="true"
  11405. width="350px"
  11406. :before-close="handleClose"
  11407. class="dialog_diy"
  11408. >
  11409. <div>
  11410. <h2>
  11411. {{ updateGroupUser.name }}
  11412. </h2>
  11413. <div style="color: rgb(171 171 171); margin-top: 10px">
  11414. {{ lang.ssSelectGroupPrompt }}
  11415. </div>
  11416. <el-radio-group v-model="checkChair">
  11417. <el-radio
  11418. style="display: block; margin-top: 20px"
  11419. v-for="(item, index) in updateGroupArray"
  11420. :label="item.label"
  11421. :key="index"
  11422. >{{ item.name }}</el-radio
  11423. >
  11424. </el-radio-group>
  11425. </div>
  11426. <span slot="footer" class="dialog-footer">
  11427. <el-button @click="dialogVisibleUpdateGroup = false">{{lang.ssCancelBtn}}</el-button>
  11428. <el-button type="primary" @click="updateChair">{{ lang.ssConfirmBtn }}</el-button>
  11429. </span>
  11430. </el-dialog>
  11431. <el-dialog
  11432. :title="lang.ssRemoveMember"
  11433. :visible.sync="dialogVisibleDeleteGroup"
  11434. :append-to-body="true"
  11435. width="350px"
  11436. :before-close="handleClose"
  11437. class="dialog_diy"
  11438. >
  11439. <div>
  11440. <h2>
  11441. {{ deleteGroupArray.name }}
  11442. </h2>
  11443. <div style="color: rgb(171 171 171); margin-top: 10px">
  11444. {{ lang.ssSelectMemberPrompt }}
  11445. </div>
  11446. <el-checkbox-group v-model="checkDeleteGroup">
  11447. <el-checkbox
  11448. style="display: flex; margin-top: 20px"
  11449. v-for="(item, index) in deleteGroupUser"
  11450. :label="item.userid"
  11451. :key="index"
  11452. >{{ item.name }}</el-checkbox
  11453. >
  11454. </el-checkbox-group>
  11455. </div>
  11456. <span slot="footer" class="dialog-footer">
  11457. <el-button @click="dialogVisibleDeleteGroup = false">{{lang.ssCancelBtn}}</el-button>
  11458. <el-button type="primary" @click="deleteChair">{{ lang.ssConfirmBtn }}</el-button>
  11459. </span>
  11460. </el-dialog>
  11461. <el-dialog
  11462. :title="lang.ssBatchUpload"
  11463. :visible.sync="dialogVisiblePl"
  11464. :append-to-body="true"
  11465. width="700px"
  11466. :before-close="handleClose"
  11467. class="dialog_change"
  11468. >
  11469. <div class="marginT">
  11470. <div class="plworkBox">
  11471. <div
  11472. class="chapter_add"
  11473. style="
  11474. display: flex;
  11475. width: 150px;
  11476. flex-direction: row;
  11477. flex-wrap: wrap;
  11478. justify-content: flex-start;
  11479. margin: 0 10px 10px 0;
  11480. "
  11481. v-for="(item, index) in plworkFile"
  11482. :key="index"
  11483. >
  11484. <div class="upCover2">
  11485. <img
  11486. :src="item.url"
  11487. alt
  11488. v-if="item.fileType == 1"
  11489. @click="previewImg(item.url)"
  11490. />
  11491. <img :src="word" alt v-else-if="item.fileType == 4" />
  11492. <img :src="video" alt v-else />
  11493. <!-- <span class="picName">{{ item.name }}</span> -->
  11494. <!-- <el-input
  11495. v-model="item.username"
  11496. :placeholder="this.lang.ssEnterStudentNamePlaceholder"
  11497. style="margin-top: 10px"
  11498. ></el-input> -->
  11499. <div
  11500. class="pl_select_box"
  11501. @click="
  11502. getUpdateMore(true, checkUpload(), item.username, index)
  11503. "
  11504. >
  11505. {{ getSName(item.username) }}
  11506. </div>
  11507. <!-- <el-select
  11508. style="margin-top: 10px"
  11509. v-model="item.username"
  11510. filterable
  11511. allow-create
  11512. :placeholder="this.lang.ssSelectStudentPlaceholder"
  11513. >
  11514. <el-option
  11515. v-for="item1 in checkUpload()"
  11516. :key="item1.userid"
  11517. :label="item1.name ? item1.name : item1.username"
  11518. :value="item1.userid"
  11519. >
  11520. </el-option>
  11521. </el-select> -->
  11522. <div class="deleteWord" @click="clean2(index)">
  11523. <img src="../assets/icon/deleteWorks.png" alt />
  11524. </div>
  11525. </div>
  11526. </div>
  11527. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11528. <div class="up_photo2">
  11529. <img src="../assets/icon/plwork.png" alt />
  11530. <span>{{ lang.ssClickUploadFile }}</span>
  11531. </div>
  11532. <input
  11533. type="file"
  11534. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11535. multiple="multiple"
  11536. style="display: none"
  11537. @change="beforeUpload3($event, 6)"
  11538. />
  11539. </div>
  11540. </div>
  11541. </div>
  11542. <!-- capture="camera" -->
  11543. <div
  11544. class="upload_send"
  11545. @click="addCourseWorksPl(taskCount)"
  11546. v-if="!proVisible2"
  11547. >
  11548. {{ lang.ssSubmit }}
  11549. </div>
  11550. </el-dialog>
  11551. <el-dialog
  11552. :title="lang.ssModifyName"
  11553. :visible.sync="dialogVisibleSname"
  11554. width="500px"
  11555. :before-close="handleClose"
  11556. class="dialog_diy"
  11557. center
  11558. >
  11559. <div
  11560. style="
  11561. text-align: center;
  11562. display: flex;
  11563. align-items: center;
  11564. justify-content: center;
  11565. "
  11566. >
  11567. <span class="tian1">{{ lang.ssName }}</span>
  11568. <div
  11569. class="pl_select_box"
  11570. style="margin-left: 10px; width: 200px"
  11571. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11572. >
  11573. {{ getSName(worksSName) }}
  11574. </div>
  11575. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11576. :placeholder="lang.ssSelectStudentPrompt"
  11577. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11578. :value="item.userid">
  11579. </el-option>
  11580. </el-select> -->
  11581. <!-- <el-input
  11582. v-model="worksSName"
  11583. style="width: 250px; margin: 15px 0px"
  11584. ></el-input> -->
  11585. </div>
  11586. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11587. <el-button @click="dialogVisibleSname = false">{{lang.ssCancelBtn}}</el-button>
  11588. <el-button type="primary" @click="updateName">{{lang.ssConfirmBtn}}</el-button>
  11589. </span>
  11590. </el-dialog>
  11591. <el-dialog
  11592. :title="lang.ssEnglishWrite"
  11593. :visible.sync="engDialogVisible"
  11594. :append-to-body="true"
  11595. width="800px"
  11596. :before-close="handleClose"
  11597. class="dialog_diy"
  11598. >
  11599. <onlineWrite
  11600. v-if="engDialogVisible"
  11601. :englishList="englishList"
  11602. :myAnswerList1="myAnswerList1"
  11603. :userid="userid"
  11604. ref="engJson"
  11605. ></onlineWrite>
  11606. <span slot="footer" class="dialog-footer">
  11607. <el-button @click="engDialogVisible = false">{{lang.ssCancelBtn}}</el-button>
  11608. <el-button type="primary" @click="addEnglishWork">{{lang.ssConfirmBtn}}</el-button>
  11609. </span>
  11610. </el-dialog>
  11611. <el-dialog
  11612. :title="lang.ssEnglishWrite"
  11613. :visible.sync="engUpdateDialogVisible"
  11614. :append-to-body="true"
  11615. width="800px"
  11616. :before-close="handleClose"
  11617. class="dialog_diy fullStyle"
  11618. >
  11619. <div class="engUpBox">
  11620. <div class="engUpTop">
  11621. <div class="engTitle">
  11622. <div>{{ lang.ssEssayTitle }}</div>
  11623. <div>{{ englishList1.engTitle }}</div>
  11624. </div>
  11625. <div class="engText">
  11626. <div>{{ lang.ssEssayContent }}</div>
  11627. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11628. </div>
  11629. </div>
  11630. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11631. <div class="oldBox">
  11632. <div class="oldMes">{{ lang.ssOriginalAuthor }}{{ noteName }} )</div>
  11633. <div class="oldText">
  11634. <div class="detailBox">
  11635. <div class="oldDetail">
  11636. <div>{{ lang.ssTitleColon }}</div>
  11637. <div>{{ oldEnglishJson.engTitle }} </div>
  11638. </div>
  11639. <div class="oldDetail1">
  11640. <div>{{ lang.ssContentColon }}</div>
  11641. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11642. </div>
  11643. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11644. <div>{{ lang.ssImageColon }}</div>
  11645. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11646. </div>
  11647. </div>
  11648. </div>
  11649. </div>
  11650. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11651. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11652. <div class="oldText">
  11653. <div class="detailBox" style="position: relative;">
  11654. <div class="oldDetail">
  11655. <div>{{ lang.ssTitleColon }}</div>
  11656. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11657. <div v-else v-html="newEnglishList.engTitle"></div>
  11658. </div>
  11659. <div class="oldDetail">
  11660. <div>{{ lang.ssContentColon }}</div>
  11661. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11662. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11663. </div>
  11664. <div style="position: absolute;bottom: -25px;">{{ lang.ssEditNoteText }}</div>
  11665. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11666. <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>
  11667. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirmBtn }}</el-button>
  11668. </div>
  11669. </div>
  11670. </div>
  11671. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11672. <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">
  11673. <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>
  11674. <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>
  11675. </div>
  11676. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11677. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11678. <div class="detailBox" style="position: relative;">
  11679. <div class="oldDetail">
  11680. <div>{{ lang.ssTitleColon }}</div>
  11681. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11682. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11683. </div>
  11684. <div class="oldDetail">
  11685. <div>{{ lang.ssContentColon }}</div>
  11686. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11687. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11688. </div>
  11689. <div style="position: absolute;bottom: -25px;">{{ lang.ssEditNoteText }}</div>
  11690. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11691. <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>
  11692. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirmBtn }}</el-button>
  11693. </div>
  11694. </div>
  11695. <div class="oldText" v-else-if="newEngIndex == -1">
  11696. <div class="detailBox" style="position: relative;">
  11697. <div class="oldDetail">
  11698. <div>{{ lang.ssTitleColon }}</div>
  11699. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11700. <div v-else v-html="newEnglishList.engTitle"></div>
  11701. </div>
  11702. <div class="oldDetail">
  11703. <div>{{ lang.ssContentColon }}</div>
  11704. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11705. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11706. </div>
  11707. <div style="position: absolute;bottom: -25px;">{{ lang.ssEditNoteText }}</div>
  11708. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  11709. <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>
  11710. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirmBtn }}</el-button>
  11711. </div>
  11712. </div>
  11713. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11714. <div class="detailBox" style="position: relative;">
  11715. <div class="oldDetail">
  11716. <div>{{ lang.ssTitleColon }}</div>
  11717. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11718. <div v-else>
  11719. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  11720. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11721. </div>
  11722. </div>
  11723. <div class="oldDetail">
  11724. <div>{{ lang.ssContentColon }}</div>
  11725. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11726. <div v-else>
  11727. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11728. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11729. </div>
  11730. </div>
  11731. <div style="position: absolute;bottom: -25px;">{{ lang.ssEditNoteText }}</div>
  11732. <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>
  11733. <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>
  11734. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirmBtn }}</el-button>
  11735. </div>
  11736. </div>
  11737. </div>
  11738. </div>
  11739. </div>
  11740. <span slot="footer" class="dialog-footer">
  11741. <el-button @click="engUpdateDialogVisible = false">{{lang.ssCancelBtn}}</el-button>
  11742. <el-button type="primary" @click="addCorrect">{{lang.ssConfirmBtn}}</el-button>
  11743. </span>
  11744. </el-dialog>
  11745. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11746. <interVideo
  11747. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11748. :videoJson="videoJson"
  11749. :userid="userid"
  11750. :id="id"
  11751. :courseType="courseType"
  11752. :taskCount="taskCount"
  11753. :toolindex="toolindex"
  11754. :videoType="videoType"
  11755. ></interVideo>
  11756. <UpdateMore
  11757. :dialogVisibleMember.sync="dialogVisibleMember"
  11758. :cList="uploadStudentJuri"
  11759. :userid="userid"
  11760. :searchTN="worksSName2"
  11761. @setPlname="setPlname"
  11762. ></UpdateMore>
  11763. <!-- <wordCloud
  11764. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11765. :data="wordCloudData"
  11766. ></wordCloud> -->
  11767. <el-dialog
  11768. :title="lang.ssWordCloudTitle"
  11769. :visible.sync="dialogVisibleWordCloud"
  11770. width="30%"
  11771. class="dialog_diy"
  11772. :before-close="handleClose">
  11773. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  11774. </el-dialog>
  11775. <el-dialog
  11776. :title="lang.ssPickPerson"
  11777. :visible.sync="dialogVisiblePickPeople"
  11778. width="650px"
  11779. :before-close="handleClose"
  11780. class="dialog_diy"
  11781. center
  11782. >
  11783. <div class="pick_box">
  11784. <div
  11785. class="noWorksName"
  11786. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11787. v-for="(item, index) in uploadStudentJuri"
  11788. :key="index"
  11789. @click="pickStudent(item)"
  11790. >
  11791. {{ item.name }}
  11792. </div>
  11793. </div>
  11794. </el-dialog>
  11795. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11796. :englishVoiceJson='englishVoiceJson'
  11797. :userid="userid"
  11798. :id="id"
  11799. :courseType="courseType"
  11800. :taskCount="taskCount"
  11801. :toolindex="toolindex"
  11802. @selectSWorks="selectSWorks"
  11803. @selectStudent="selectStudent"
  11804. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11805. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11806. :userid="userid"
  11807. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11808. :commentDetail="commentDetail"
  11809. :courseDetail="courseDetail"
  11810. :wScore="wScore"
  11811. :scoreDetail="scoreDetail"
  11812. @selectSWorks="selectSWorks"
  11813. @selectStudent="selectStudent"></checkEnglishVoice>
  11814. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  11815. <choseWorksDetailDialog
  11816. ref="choseWorksDetailDialogRef"
  11817. :worksStudentData="worksStudent"
  11818. :noWorksSData="noWorksS"
  11819. :chapInfoListData="chapInfoList"
  11820. :courseType="courseType"
  11821. :taskCount="taskCount"
  11822. :tType="tType"
  11823. :sIsOpen="sIsOpen"
  11824. :courseDetail="courseDetail"
  11825. :groupStudent2="groupStudent"
  11826. :groupStudentUid2="groupStudentUid"
  11827. :oid="oid"
  11828. :org="org"
  11829. @getCourseDetail="getCourseDetail"
  11830. @selectSLook="selectSLook"
  11831. @selectSWorks="selectSWorks"
  11832. @selectStudent="selectStudent"
  11833. @deleteWorks="deleteWorks"
  11834. @openTools="openTools"
  11835. @openWord="openWord"
  11836. @openScore="openScore"
  11837. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  11838. />
  11839. <el-dialog
  11840. :visible.sync="confirmOpenDig"
  11841. width="500px"
  11842. :modal="false"
  11843. class="confirmOpenDigCss dialog_diyCopy"
  11844. :before-close="handleClose">
  11845. <div style="display: flex;align-items: center;">
  11846. <img src="../assets/icon/course/confirmOpenDig.svg" alt="">
  11847. <span>{{ lang.ssCourseStartWithTitle.replace(/\*/g, courseDetail.title) }}</span>
  11848. </div>
  11849. <div style="margin: 20px 0 35px;">
  11850. <div style="margin-bottom: 10px;">{{ lang.ssFollowTeacherMsg }}</div>
  11851. <div>{{ lang.ssStudyHardMsg }}</div>
  11852. </div>
  11853. <div style="text-align: center;">
  11854. <el-button type="primary" style="width: 95%;" @click="confirmOpen">{{ lang.ssStartLearningBtn }}</el-button>
  11855. </div>
  11856. </el-dialog>
  11857. <appStoreC ref="appStoreC"
  11858. :sStudent="sStudent"
  11859. :courseType="courseType"
  11860. :taskCount="taskCount"
  11861. :toolindex="toolindex"
  11862. @selectSWorks="selectSWorks"
  11863. @selectStudent="selectStudent"
  11864. ></appStoreC>
  11865. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  11866. </div>
  11867. </template>
  11868. <script>
  11869. import "../common/aws-sdk-2.235.1.min.js";
  11870. // import pdf from "./components/pdf3";
  11871. import pdf from "./components/vpdf";
  11872. import AskStatic from "./components/askStatic";
  11873. import AskStatic2 from "./components/askStatic2";
  11874. import AnswerData2 from "./components/answerData2";
  11875. import AnswerData from "./components/answerData";
  11876. import sortToolWorkShow from "./components/sortToolWorkShow.vue";
  11877. import EditorBar from "./tools/wangEnduit.vue";
  11878. import Table from "./tools/table.vue";
  11879. import Time from "./tools/time.vue";
  11880. import Mind from "./tools/jsmind.vue";
  11881. import Sunburst from "./tools/sunburst";
  11882. import SeeBoard from "./tools/seeBoard";
  11883. import * as imageConversion from "image-conversion";
  11884. import Audio from "./components/audio.vue";
  11885. import ImgDraw from "./tools/imgDraw/imgDraw";
  11886. import { Empty } from "element-ui";
  11887. import RecordRTC from "recordrtc";
  11888. import interVideo from "./interVideo/index.vue";
  11889. import UpdateMore from "./updateMore/updateMore.vue";
  11890. import wordCloud from "./wordCloud/index.vue";
  11891. import axios from "axios";
  11892. import JSZip from "jszip";
  11893. import FileSaver from "file-saver";
  11894. import onlineWrite from "./components/onlineWrite";
  11895. import englishEva from "./components/englishEva";
  11896. import * as Diff from 'diff'
  11897. import EnglishVoice from './EnglishVoice2/index.vue'
  11898. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  11899. import correctText from './components/correctText.vue'
  11900. import scoreItem from './scoreList/scoreItem.vue'
  11901. import scoreZong from './scoreZong/index.vue'
  11902. import classRoomHelper from './classRoomHelper/index.vue'
  11903. import studentClassRoomHelper from './classRoomHelper/studentIndex.vue'
  11904. import statisticalAnalysis from "./components/statisticalAnalysis.vue";
  11905. import choseWorksDetailDialog from './components/choseWorksDetailDialog.vue';
  11906. import { v4 as uuidv4 } from "uuid";
  11907. var OpenCC = require("opencc-js");
  11908. import choseWordCloud from './components/choseWordCloud.vue'
  11909. import appStoreC from "./components/appStoreC.vue";
  11910. import cocoFlowDia from "./components/cocoFlowDia.vue";
  11911. import { myMixin } from "@/mixins/mixin.js"
  11912. import { tools as toolsList } from "@/common/tools2.js";
  11913. import katex from 'katex'
  11914. import 'katex/dist/katex.min.css'
  11915. let converter = OpenCC.Converter({
  11916. from: "hk",
  11917. to: "cn"
  11918. });
  11919. const getFile = (url) => {
  11920. return new Promise((resolve, reject) => {
  11921. var credentials = {
  11922. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11923. secretAccessKey: "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",
  11924. }; //秘钥形式的登录上传
  11925. window.AWS.config.update(credentials);
  11926. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11927. let url2 = url;
  11928. let _url2 = "";
  11929. if (
  11930. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11931. ) {
  11932. _url2 = url2.split(
  11933. "https://view.officeapps.live.com/op/view.aspx?src="
  11934. )[1];
  11935. } else {
  11936. _url2 = url2;
  11937. }
  11938. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11939. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11940. var params = {
  11941. Bucket: "ccrb",
  11942. Key: name
  11943. };
  11944. s3.getObject(params, function (err, data) {
  11945. if (err) {
  11946. console.log(err, err.stack)
  11947. resolve({ data: 1 });
  11948. }else {
  11949. resolve({ data: data.Body });
  11950. console.log(data);
  11951. } // sxuccessful response
  11952. });
  11953. // axios({
  11954. // method: "get",
  11955. // url,
  11956. // responseType: "blob",
  11957. // })
  11958. // .then((data) => {
  11959. // resolve({ data: data.data });
  11960. // })
  11961. // .catch((error) => {
  11962. // resolve({ data: 1 });
  11963. // // reject(error.toString());
  11964. // });
  11965. });
  11966. };
  11967. export default {
  11968. mixins: [ myMixin ],
  11969. components: {
  11970. choseWordCloud,
  11971. EditorBar,
  11972. Time,
  11973. pdf,
  11974. AskStatic,
  11975. AskStatic2,
  11976. Mind,
  11977. Sunburst,
  11978. SeeBoard,
  11979. AnswerData2,
  11980. AnswerData,
  11981. sortToolWorkShow,
  11982. Audio,
  11983. ImgDraw,
  11984. Table,
  11985. interVideo,
  11986. UpdateMore,
  11987. wordCloud,
  11988. onlineWrite,
  11989. englishEva,
  11990. EnglishVoice,
  11991. checkEnglishVoice,
  11992. correctText,
  11993. scoreItem,
  11994. classRoomHelper,
  11995. scoreZong,
  11996. statisticalAnalysis,
  11997. choseWorksDetailDialog,
  11998. appStoreC,
  11999. cocoFlowDia,
  12000. studentClassRoomHelper
  12001. },
  12002. data() {
  12003. return {
  12004. // 学校或者组织随机码
  12005. Code2:'',
  12006. startTime: "",
  12007. // 是否允许学生查看内容资料 2不可以 1可以
  12008. IsStulook:false,
  12009. homeWorkLoading:false,
  12010. wordCloudKey: 0,
  12011. bg: null,
  12012. drawShow: false,
  12013. dialogVisible: false,
  12014. dialogVisiblePl: false,
  12015. commentDialogVisible: false,
  12016. dialogVisibleMember: false,
  12017. dialogVisibleWordCloud: false,
  12018. videoVisible: false,
  12019. isStar: false,
  12020. studentEvalDialogVisible: false,
  12021. studentEvalDialogVisibleTeacher: false,
  12022. dialogVisibleSelect: false,
  12023. dialogVisibleSelectTeacher: false,
  12024. dialogVisibleScore: false,
  12025. dialogVisibleENScore: false,
  12026. dialogVisibleSentence: false,
  12027. dialogVisibleSentenceTeacher: false,
  12028. dialogVisibleSentence1: false,
  12029. dialogVisibleWorks: false,
  12030. dialogVisibleTable: false,
  12031. dialogVisibleTableTeacher: false,
  12032. dialogVisibleWord: false,
  12033. dialogVisibleWordTeacher: false,
  12034. dialogVisibleTable2: false,
  12035. dialogVisibleTable3: false,
  12036. dialogVisibleGroupWork: false,
  12037. dialogVisibleUpdateGroup: false,
  12038. dialogVisibleDeleteGroup: false,
  12039. dialogVisibleSname: false,
  12040. dialogVisibleVideo: false,
  12041. dialogVisiblePickPeople: false,
  12042. engDialogVisible: false,
  12043. engUpdateDialogVisible: false,
  12044. engEvaDialogVisible: false,
  12045. evaEngJson: {
  12046. teacherJson: {},
  12047. studentJson: {},
  12048. message: {},
  12049. },
  12050. isNoUserid:false,
  12051. engListLength:0,
  12052. engWid:"",
  12053. newEnglishList:{
  12054. engTitle:"",
  12055. engText:"",
  12056. },
  12057. newEnglishList1:[],
  12058. oldEnglishJson:{},
  12059. oldEnglishJson1:{},
  12060. englishList1:{},
  12061. englishList:{},
  12062. myAnswerList1:{},
  12063. topHeight:0,
  12064. newEngIndex:-1,
  12065. englishToolIndex:0,
  12066. worksSName: "",
  12067. classJuri: [],
  12068. uploadStudentJuri: [],
  12069. uploadCid: "",
  12070. snameWid: "",
  12071. sStudent: {},
  12072. sTool: "",
  12073. bzText: "",
  12074. commentDetail: [],
  12075. selectAnswer: [],
  12076. videoDetail: {},
  12077. selectJson: {},
  12078. eScore: { eBzText: "", eStar: [] },
  12079. id: this.$route.query.courseId,
  12080. userid: this.$route.query.userid,
  12081. classId: this.$route.query.cid,
  12082. role: this.$route.query.role,
  12083. // courseTypeLine: this.$route.query.type,
  12084. oid: this.$route.query.oid,
  12085. org: this.$route.query.org,
  12086. tType: this.$route.query.tType,
  12087. courseType: this.$route.query.type,
  12088. screenType: this.$route.query.screenType,
  12089. tcid2: this.$route.query.tcid,
  12090. tcid: "",
  12091. pptImgUrl: "",
  12092. pptImgUrl1: "",
  12093. commentText: "",
  12094. full: false,
  12095. sIsOpen: false,
  12096. IsLookOpen: false,
  12097. IsFollow: false,
  12098. pzDialog: false,
  12099. contentDialog: false,
  12100. mlDialog: false,
  12101. type: 1,
  12102. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12103. sentenceList1: [],
  12104. tableJson: [],
  12105. tableJsonO: [],
  12106. wordJson: [],
  12107. wordJsonO: [],
  12108. vedio: [],
  12109. text: [],
  12110. textList: [],
  12111. line: [],
  12112. lineList: [],
  12113. chapTools: [],
  12114. chapToolList: [],
  12115. file: [],
  12116. fileC: [],
  12117. vedioTime: [],
  12118. upToolImg: "",
  12119. preTime: 0,
  12120. rateList: {
  12121. ca: 0,
  12122. },
  12123. rateParams: [],
  12124. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12125. studyJuri: [
  12126. {
  12127. content: "",
  12128. cover: [],
  12129. upVedio: [],
  12130. upFile: [],
  12131. },
  12132. ],
  12133. isClose: 0,
  12134. plworkFile: [],
  12135. mr: require("../assets/vedioPic.png"),
  12136. word: require("../assets/icon/isWord.png"),
  12137. word2: require("../assets/icon/word2.png"),
  12138. video: require("../assets/icon/isVideo.png"),
  12139. noLikes: require("../assets/icon/comment/noLikes.png"),
  12140. likes: require("../assets/icon/comment/likes.png"),
  12141. scoreImg: require("../assets/score.png"),
  12142. courseDetail: {},
  12143. reply: "",
  12144. isSelect: false,
  12145. chapInfo: [],
  12146. chapInfoList: [],
  12147. taskCount: 0,
  12148. imgList: [],
  12149. noImgList: [],
  12150. pzList: [],
  12151. timeWorkList: [],
  12152. PlTextList: [
  12153. "Excellent!",
  12154. "nice!",
  12155. this.lang.ssVeryCreative,
  12156. this.lang.ssNotBad,
  12157. this.lang.ssKeepTrying,
  12158. ],
  12159. isClickNav: "",
  12160. navId: "",
  12161. playerOptions: {
  12162. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12163. autoplay: false, //如果true,浏览器准备好时开始回放。
  12164. muted: false, // 默认情况下将会消除任何音频。
  12165. loop: false, // 导致视频一结束就重新开始。
  12166. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12167. language: "zh-CN",
  12168. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12169. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12170. sources: [
  12171. {
  12172. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12173. src: "", //url地址require("../../assets/media/aaa.mp4")
  12174. },
  12175. ],
  12176. // poster: require("../../assets/tu31.png"), //你的封面地址
  12177. // poster: dataRes.imgUrl, //你的封面地址
  12178. notSupportedMessage: this.lang.ssVideoNotSupported, //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12179. controlBar: {
  12180. timeDivider: true, //当前时间和持续时间的分隔符
  12181. durationDisplay: true, //显示持续时间
  12182. remainingTimeDisplay: false, //是否显示剩余时间功能
  12183. fullscreenToggle: true, //全屏按钮
  12184. },
  12185. },
  12186. playerOptions1: {
  12187. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12188. autoplay: false, //如果true,浏览器准备好时开始回放。
  12189. muted: false, // 默认情况下将会消除任何音频。
  12190. loop: false, // 导致视频一结束就重新开始。
  12191. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12192. language: "zh-CN",
  12193. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12194. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12195. sources: [
  12196. {
  12197. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12198. src: "", //url地址require("../../assets/media/aaa.mp4")
  12199. },
  12200. ],
  12201. // poster: require("../../assets/tu31.png"), //你的封面地址
  12202. // poster: dataRes.imgUrl, //你的封面地址
  12203. notSupportedMessage: this.lang.ssVideoNotSupported, //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12204. controlBar: {
  12205. timeDivider: true, //当前时间和持续时间的分隔符
  12206. durationDisplay: true, //显示持续时间
  12207. remainingTimeDisplay: false, //是否显示剩余时间功能
  12208. fullscreenToggle: true, //全屏按钮
  12209. },
  12210. },
  12211. playerO: {},
  12212. noneBtnImg: false,
  12213. proVisible: false,
  12214. proVisible2: false,
  12215. progress: 0,
  12216. isFinishSize: 0,
  12217. isAllSize: 0,
  12218. questionAnswer: "",
  12219. answerQ: "", //问答标题
  12220. rateJson: [],
  12221. wbCount: 0,
  12222. wordCount: 0,
  12223. mindCount: 0,
  12224. askCount: 0,
  12225. noteCount: 0,
  12226. mindNetWorkCount: 0,
  12227. libraryCount: 0,
  12228. workCount: 0,
  12229. timeCount: 0,
  12230. answerCount: 0,
  12231. trainCount: 0,
  12232. evalCount: 0,
  12233. dialogImageUrl: "",
  12234. pictureDialog: false,
  12235. toolTypeList: [],
  12236. dialogVisible1: false,
  12237. dialogVisible2: false,
  12238. dialogVisible3: false,
  12239. dialogVisible6: false,
  12240. dialogVisible4: false,
  12241. isNoHomeWork: false,
  12242. dialogVisible5: false,
  12243. dialogVisible5Teacher: false,
  12244. dialogVisibleChoice: false,
  12245. dialogVisibleChoiceTeacher: false,
  12246. answerDialogVisible: false,
  12247. answerDialogVisibleTeacher: false,
  12248. juriVisible: false,
  12249. timeDialogVisible: false,
  12250. replyDialogVisible: false,
  12251. toolDialogVisible: false,
  12252. replyIndex: 0,
  12253. replyPid: "",
  12254. radio: [],
  12255. isAsk: false,
  12256. askJson: {
  12257. askCount: 1,
  12258. askTitle: "",
  12259. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12260. },
  12261. testJson: {},
  12262. videoType:0,
  12263. checkJson: [],
  12264. askList: [],
  12265. answerList: [],
  12266. navList: [],
  12267. addPzDialog: false,
  12268. pzConText: "",
  12269. worksStudent: [],
  12270. isCloseList: [],
  12271. workStudent: [],
  12272. groupStudent: [],
  12273. groupStudentUid: [],
  12274. noWorksS: [],
  12275. isWorksS: [],
  12276. noWorksStudent: [],
  12277. toolindex: 0,
  12278. toolDetailIndex: null,
  12279. groupIndex: 0,
  12280. workTypeB: false,
  12281. workTypeC: false,
  12282. isAnswer: false,
  12283. isHovered: false,
  12284. isHovered1: false,
  12285. isHovered2: false,
  12286. commentTagShow:0,
  12287. timer: null,
  12288. timer2: null,
  12289. opertimer: null,
  12290. showType: '',
  12291. fileType: 0,
  12292. showPDF: false,
  12293. noteName: "",
  12294. evaJuri: [],
  12295. evalua: "",
  12296. eTitle: "",
  12297. eName: "",
  12298. eJson: {},
  12299. fid: "", //一级
  12300. sid: "", //二级
  12301. tid: "", //二级
  12302. typeMode: 1,
  12303. eJSONNum: 0,
  12304. Etype: 1,
  12305. data: {
  12306. meta: {
  12307. name: "example",
  12308. author: "dd@163.com",
  12309. version: "0.2",
  12310. },
  12311. format: "node_array",
  12312. data: [{ id: "root", isroot: true, topic: "" }],
  12313. },
  12314. fullDialogVisible: false,
  12315. fulltype: "",
  12316. fullUrl: "",
  12317. commentIndexJson: {},
  12318. Stbodywidth: 0,
  12319. ispzType: 0,
  12320. pzType: 1,
  12321. wScore: 0,
  12322. scoreDetail: "",
  12323. videoStart: false,
  12324. recorder: null,
  12325. groupJson: {},
  12326. islock: false,
  12327. groupJson2: {},
  12328. dialogVisibleGroup: false,
  12329. dialogVisibleGroup2: false,
  12330. updateGroupArray: [],
  12331. updateGroupUser: {},
  12332. deleteGroupUser: [],
  12333. deleteGroupArray: {},
  12334. checkChair: "",
  12335. checkDeleteGroup: [],
  12336. inviteCode: "",
  12337. courseGroupStudent: [],
  12338. courseGroupStudentUid: [],
  12339. courseGroup: {},
  12340. isGroup: false,
  12341. // toolIndex: null,
  12342. tool: {},
  12343. isWorkTool: [
  12344. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12345. ], //, 40
  12346. videoJson: {},
  12347. toolType: 0,
  12348. checktoolArray: [],
  12349. vChapterData: [],
  12350. isUpdateToolDetail: false,
  12351. isUpdateToolDetail1: false,
  12352. updateToolDetailInner: "",
  12353. checkboxList: [],
  12354. plIndex: "",
  12355. worksSName2: "",
  12356. worksSid: "",
  12357. wordCloudData: [],
  12358. isPickStudent: [],
  12359. pzStype: 1,
  12360. myAnList: {},
  12361. userMes:{},
  12362. downLoading: false,
  12363. greyType: false,
  12364. correctWord: [],
  12365. isUpdateText: "",
  12366. EnglishVoiceDialog: false,
  12367. englishVoiceJson: {},
  12368. englishVoiceJsonWork:[],
  12369. scoreList:{
  12370. listdata:[],
  12371. isScoreList:[],
  12372. },
  12373. classRoomHelperWidth: '85px',
  12374. orgArray:[],
  12375. oidArray:[],
  12376. toolsList: toolsList,
  12377. splitScreenData:{
  12378. isOpen:false,
  12379. userId:"",
  12380. uid:"",
  12381. myUid:"",
  12382. loading:false,
  12383. behavior:null,
  12384. },
  12385. confirmOpenDig:false,
  12386. confirmOpenDigData:'',
  12387. canUseCourseId: ['bfbe1913-2f87-11ef-bf55-005056b86db5','3a64b199-d2eb-11ef-a2d1-005056b86db5', 'bb0b1995-0207-11ef-b534-005056b86db5', 'f77921c8-d2f1-11ef-a2d1-005056b86db5'],
  12388. diffKey:"1",
  12389. getCourseGroupLoading: false,
  12390. selectSWorksLoading:false,
  12391. selectStudentLoading:false,
  12392. selectSLookLoading:false,
  12393. getPickLoading:false,
  12394. selectPzLoading:false,
  12395. getSplitScreenDataLoading:false,
  12396. };
  12397. },
  12398. methods: {
  12399. // 获取学校或组织随机码
  12400. getCode2(){
  12401. let params = {
  12402. oid: this.oid,
  12403. org: this.org
  12404. };
  12405. this.ajax
  12406. .get(this.$store.state.api + "getCode2", params)
  12407. .then(res => {
  12408. this.Code2 = res.data[0] && res.data[0][0] && res.data[0][0].code2 ? res.data[0][0].code2 : ''
  12409. })
  12410. .catch(err => {
  12411. console.error(err);
  12412. });
  12413. },
  12414. //查看应用中心作业
  12415. openCocoFlow(w){
  12416. this.$refs.cocoFlowDiaRef.openAppWork(w)
  12417. },
  12418. getAIJ(){
  12419. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12420. let oid = res.data[0];
  12421. let org = res.data[1];
  12422. let oidArray = [];
  12423. let orgArray = [];
  12424. oid.forEach(i=>oidArray.push(i.oid))
  12425. org.forEach(i=>orgArray.push(i.oid))
  12426. this.orgArray = orgArray;
  12427. this.oidArray = oidArray;
  12428. })
  12429. },
  12430. insertMemorandum(_html){//保存行为操作
  12431. //variable
  12432. //btn
  12433. let params = [{
  12434. uid:this.userid,
  12435. courseId:this.id+(this.tcid2?this.tcid2:''),
  12436. content:_html
  12437. }]
  12438. console.log("👇👇")
  12439. console.log(params)
  12440. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12441. if(res.data==1){
  12442. console.log('保存操作成功')
  12443. }else{
  12444. console.log('保存操作失败')
  12445. }
  12446. }).catch(e=>{
  12447. console.log('保存操作失败')
  12448. console.log(e)
  12449. })
  12450. },
  12451. gx(){
  12452. this.$forceUpdate();
  12453. },
  12454. isUpdateCorrect(t,p){
  12455. if(this.greyType == false){
  12456. this.isUpdateText = t;
  12457. this.greyType = true;
  12458. }else{
  12459. if(p == 1){
  12460. this.newEnglishList.engText = this.isUpdateText;
  12461. }else if(p == 2){
  12462. this.oldEnglishJson1.engText = this.isUpdateText;
  12463. }else if(p == 3){
  12464. this.newEnglishList.engText = this.isUpdateText;
  12465. }else{
  12466. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12467. }
  12468. this.greyType = false
  12469. }
  12470. },
  12471. aiCorrect(t,p){
  12472. let aiText = "";
  12473. const loading = this.$loading.service({
  12474. background: "rgba(255, 255, 255)",
  12475. target: document.querySelectorAll(".loadingText")[0],
  12476. });
  12477. let param = {
  12478. model: "gpt-3.5-turbo",
  12479. temperature: 0,
  12480. max_tokens: 2048,
  12481. top_p: 1,
  12482. frequency_penalty: 0,
  12483. presence_penalty: 0,
  12484. messages: [
  12485. {
  12486. role: "user",
  12487. content:
  12488. `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12489. },
  12490. ],
  12491. uid: this.userid,
  12492. stream: false,
  12493. };
  12494. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12495. (res) => {
  12496. if (
  12497. res.data.FunctionResponse &&
  12498. res.data.FunctionResponse.result &&
  12499. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12500. ) {
  12501. this.$message.error(this.lang.ssEssayTooLongForAI);
  12502. return;
  12503. }
  12504. aiText =
  12505. res.data.FunctionResponse.choices[0].message.content;
  12506. aiText = aiText.replace(/%/g,"%25");
  12507. // let w = "";
  12508. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12509. // for(var k = 0;k<a.length;k++){
  12510. // //diffWordsWithSpace
  12511. // if(a.length > 1){
  12512. // if(a[k].added == true){
  12513. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12514. // }else if(a[k].removed == true){
  12515. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12516. // }else{
  12517. // w += '<span>' + a[k].value + '</span>';
  12518. // }
  12519. // }else{
  12520. // if(p == 1){
  12521. // w = this.newEnglishList.engText;
  12522. // }else if(p == 2){
  12523. // w = this.oldEnglishJson1.engText;
  12524. // }else if(p == 3){
  12525. // w = this.newEnglishList.engText;
  12526. // }else{
  12527. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12528. // }
  12529. // }
  12530. // }
  12531. if(p == 1){
  12532. this.newEnglishList.engText = aiText;
  12533. }else if(p == 2){
  12534. this.oldEnglishJson1.engText = aiText;
  12535. }else if(p == 3){
  12536. this.newEnglishList.engText = aiText;
  12537. }else{
  12538. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12539. }
  12540. loading.close();
  12541. },
  12542. (err) => {
  12543. console.log(err);
  12544. loading.close();
  12545. }
  12546. );
  12547. },
  12548. addToolChoose() {
  12549. if (!this.checktoolArray.length) {
  12550. this.$message.error(this.lang.ssSelectTaskToAdd);
  12551. return;
  12552. }
  12553. if (
  12554. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12555. this.taskCount
  12556. ].toolChoose[0].tool.length
  12557. ) {
  12558. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12559. this.taskCount
  12560. ].toolChoose[0].tool = this.checktoolArray;
  12561. } else {
  12562. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12563. this.taskCount
  12564. ].toolChoose.push({
  12565. tool: this.checktoolArray,
  12566. toolDetail: "",
  12567. toolType: 0,
  12568. askCount: 1,
  12569. askTitle: "",
  12570. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12571. });
  12572. }
  12573. let params = [
  12574. {
  12575. cid: this.id,
  12576. chapters: JSON.stringify(this.chapInfoList),
  12577. uid: this.userid,
  12578. unitIndex: this.courseType,
  12579. },
  12580. ];
  12581. this.ajax
  12582. .post(this.$store.state.api + "updateWorkNew4", params)
  12583. .then((res) => {
  12584. this.$message({
  12585. message: this.lang.ssAddSuccess,
  12586. type: "success",
  12587. });
  12588. this.checktoolArray = [];
  12589. this.getCourseDetail(2);
  12590. this.checkBz(
  12591. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12592. this.taskCount
  12593. ].toolChoose.length - 1
  12594. );
  12595. this.toolDialogVisible = false;
  12596. this.refreshCourse();
  12597. this.$forceUpdate();
  12598. })
  12599. .catch((err) => {
  12600. console.error(err);
  12601. });
  12602. },
  12603. checkBz(index) {
  12604. this.isUpdateToolDetail = false;
  12605. this.$forceUpdate();
  12606. setTimeout(() => {
  12607. document.scrollingElement.scrollTop =
  12608. document.querySelectorAll(".filebox")[index].offsetTop +
  12609. document.querySelector(".student_body").offsetTop;
  12610. }, 500);
  12611. },
  12612. updateToolDetail(i, type) {
  12613. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12614. this.toolDetailIndex = i
  12615. this.isUpdateToolDetail1 = true;
  12616. setTimeout(() => {
  12617. this.updateToolDetailInner = JSON.parse(
  12618. JSON.stringify(
  12619. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12620. this.taskCount
  12621. ].toolChoose[i].toolDetail
  12622. )
  12623. );
  12624. document.querySelector(".checkTextArea").focus();
  12625. }, 0);
  12626. } else if((this.isUpdateToolDetail1 && type != 2)){
  12627. // this.toolDetailIndex = i;
  12628. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12629. this.taskCount
  12630. ].toolChoose[i].toolDetail = JSON.parse(
  12631. JSON.stringify(this.updateToolDetailInner)
  12632. );
  12633. let params = [
  12634. {
  12635. cid: this.id,
  12636. chapters: JSON.stringify(this.chapInfoList),
  12637. uid: this.userid,
  12638. unitIndex: this.courseType,
  12639. },
  12640. ];
  12641. this.ajax
  12642. .post(this.$store.state.api + "updateWorkNew4", params)
  12643. .then((res) => {
  12644. this.isUpdateToolDetail1 = false;
  12645. this.$message({
  12646. message: this.lang.ssModifySuccess,
  12647. type: "success",
  12648. });
  12649. this.toolDetailIndex = null;
  12650. this.updateToolDetailInner = "";
  12651. this.getCourseDetail(2);
  12652. this.$forceUpdate();
  12653. })
  12654. .catch((err) => {
  12655. console.error(err);
  12656. });
  12657. } else if((this.isUpdateToolDetail1 && type == 2)){
  12658. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12659. this.taskCount
  12660. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12661. JSON.stringify(this.updateToolDetailInner)
  12662. );
  12663. let params = [
  12664. {
  12665. cid: this.id,
  12666. chapters: JSON.stringify(this.chapInfoList),
  12667. uid: this.userid,
  12668. unitIndex: this.courseType,
  12669. },
  12670. ];
  12671. this.ajax
  12672. .post(this.$store.state.api + "updateWorkNew4", params)
  12673. .then((res) => {
  12674. this.$message({
  12675. message: this.lang.ssModifySuccess,
  12676. type: "success",
  12677. });
  12678. this.toolDetailIndex = i;
  12679. this.isUpdateToolDetail1 = true;
  12680. setTimeout(() => {
  12681. this.updateToolDetailInner = JSON.parse(
  12682. JSON.stringify(
  12683. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12684. this.taskCount
  12685. ].toolChoose[i].toolDetail
  12686. )
  12687. );
  12688. document.querySelector(".checkTextArea").focus();
  12689. }, 0);
  12690. this.getCourseDetail(2);
  12691. this.$forceUpdate();
  12692. })
  12693. .catch((err) => {
  12694. console.error(err);
  12695. });
  12696. }
  12697. },
  12698. jumpGj(i, j, k, l) {
  12699. for (var z = 0; z < this.navList.length; z++) {
  12700. for (var q = 0; q < this.navList[z].task.length; q++) {
  12701. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12702. this.navList[z].task[q].tool[w].isTool = false;
  12703. }
  12704. }
  12705. }
  12706. this.navList[i].task[j].tool[k].isTool =
  12707. !this.navList[i].task[j].tool[k].isTool;
  12708. var a = document.scrollingElement;
  12709. this.navId = ""
  12710. let target = document.querySelector(`#gj${k}`);
  12711. if (target) {
  12712. // target.scrollIntoView(true);
  12713. // setTimeout(() => {
  12714. // a.scrollTop = a.scrollTop - 150;
  12715. // }, 0);
  12716. target.scrollIntoView();
  12717. setTimeout(()=>{
  12718. let scrollBody = document.querySelector('.body_student').parentElement
  12719. scrollBody.scrollTop = scrollBody.scrollTop - 100
  12720. }, 0);
  12721. }
  12722. let flag = this.courseType == i;
  12723. let flag2 = this.taskCount == j
  12724. if (l) {
  12725. this.courseType = i;
  12726. // this.navId = l;
  12727. this.taskCount = j;
  12728. this.selectPz();
  12729. this.getHomeWork();
  12730. this.getCourseDetail(2);
  12731. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  12732. if(flag){
  12733. if(flag2){
  12734. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12735. }else{
  12736. 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>`)
  12737. }
  12738. }else{
  12739. 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>`)
  12740. }
  12741. }
  12742. if ((this.courseDetail.userid == this.userid ||
  12743. (this.courseDetail.course_teacher &&
  12744. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
  12745. this.IsFollow) {
  12746. this.setCTask();
  12747. }
  12748. // var b = this.$refs["bz" + k][0];
  12749. // a.scrollTop = b.offsetTop;
  12750. },
  12751. addTools2(i) {
  12752. if (i == 4) {
  12753. // this.openTools2(4);
  12754. this.$message.error(this.lang.ssNotAvailable);
  12755. return;
  12756. }
  12757. if (i == 45) {
  12758. // this.openTools2(45);
  12759. this.$message.error(this.lang.ssNotAvailable);
  12760. return;
  12761. }
  12762. if (i == 47) {
  12763. // this.openTools2(47);
  12764. this.$message.error(this.lang.ssNotAvailable);
  12765. return;
  12766. }
  12767. if (i == 49) {
  12768. // this.openTools2(49);
  12769. this.$message.error(this.lang.ssNotAvailable);
  12770. return;
  12771. }
  12772. if (i == 62) {
  12773. // this.openTools(itemTaskIndex, 62, toolIndex);
  12774. this.$message.error(this.lang.ssNotAvailable);
  12775. return;
  12776. }
  12777. if (i == 15) {
  12778. // this.openTools(itemTaskIndex, 15, toolIndex);
  12779. this.$message.error(this.lang.ssNotAvailable);
  12780. return;
  12781. }
  12782. if (i == 40) {
  12783. // this.openTools(itemTaskIndex, 40, toolIndex);
  12784. this.$message.error(this.lang.ssNotAvailable);
  12785. return;
  12786. }
  12787. if (i == 41) {
  12788. // this.openTools(itemTaskIndex, 41, toolIndex);
  12789. this.$message.error(this.lang.ssNotAvailable);
  12790. return;
  12791. }
  12792. if (i == 42) {
  12793. // this.openTools(itemTaskIndex, 42, toolIndex);
  12794. this.$message.error(this.lang.ssNotAvailable);
  12795. return;
  12796. }
  12797. if (this.checktoolArray.length > 0) {
  12798. if (this.checktoolArray.indexOf(i) != -1) {
  12799. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12800. } else {
  12801. this.checktoolArray = [];
  12802. this.checktoolArray.push(i);
  12803. }
  12804. } else {
  12805. this.checktoolArray.push(i);
  12806. }
  12807. this.$forceUpdate();
  12808. },
  12809. jump() {
  12810. window.topU.postMessage({ tools: "43" }, "*");
  12811. },
  12812. getUpdateMore(f, checkboxList, searchTN, index) {
  12813. this.dialogVisibleMember = f;
  12814. this.checkboxList = checkboxList;
  12815. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12816. this.plIndex = index;
  12817. },
  12818. setPlname(a) {
  12819. if (this.plworkFile.length) {
  12820. this.plworkFile[this.plIndex].username = a;
  12821. } else {
  12822. this.worksSName = a;
  12823. }
  12824. this.dialogVisibleMember = false;
  12825. },
  12826. previewImg(url,w=null) {
  12827. this.$hevueImgPreview(url);
  12828. if(w){
  12829. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  12830. }
  12831. },
  12832. checkImg(list) {
  12833. if (!list.length) {
  12834. return;
  12835. }
  12836. this.$hevueImgPreview({
  12837. multiple: true, // 开启多图预览模式
  12838. imgList: list, // 需要预览的多图数组
  12839. });
  12840. },
  12841. change(val) {
  12842. console.log(val);
  12843. },
  12844. goTo(path) {
  12845. this.$router.push(path);
  12846. },
  12847. handlePictureCardPreview(url) {
  12848. this.dialogImageUrl = url;
  12849. this.pictureDialog = true;
  12850. },
  12851. clean(type) {
  12852. if (type == 1) {
  12853. this.studyJuri[0].cover.splice(0, 1);
  12854. } else if (type == 2) {
  12855. this.studyJuri[0].upVedio.splice(0, 1);
  12856. } else {
  12857. this.studyJuri[0].upFile.splice(0, 1);
  12858. }
  12859. },
  12860. clean2(index) {
  12861. this.plworkFile.splice(index, 1);
  12862. },
  12863. handleClose(done) {
  12864. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12865. this.videoDetail.sources[0].src = "";
  12866. }
  12867. this.commentIndexJson = {};
  12868. done();
  12869. },
  12870. fullTools() {
  12871. this.full = !this.full;
  12872. },
  12873. imgChange(file, fileList, type) {
  12874. if (type == 1) {
  12875. var _tmp = this.studyJuri[0].cover;
  12876. } else if (type == 2) {
  12877. var _tmp = this.studyJuri[0].upVedio;
  12878. } else {
  12879. var _tmp = this.studyJuri[0].upFile;
  12880. }
  12881. this.noneBtnImg = _tmp.length >= 1;
  12882. },
  12883. setContent(bool) {
  12884. this.contentDialog = bool;
  12885. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12886. document.querySelector(".workd_media").style.height = "650px";
  12887. } else if (document.querySelector(".workd_media")) {
  12888. document.querySelector(".workd_media").style.height = "auto";
  12889. }
  12890. },
  12891. setContent2(bool) {
  12892. this.mlDialog = bool;
  12893. if (
  12894. bool &&
  12895. this.contentDialog &&
  12896. document.querySelector(".workd_media")
  12897. ) {
  12898. document.querySelector(".workd_media").style.height = "650px";
  12899. } else if (document.querySelector(".workd_media")) {
  12900. document.querySelector(".workd_media").style.height = "auto";
  12901. }
  12902. this.$forceUpdate();
  12903. },
  12904. openToolAll() {
  12905. this.toolDialogVisible = true;
  12906. },
  12907. addImg(e) {
  12908. var el = e.currentTarget;
  12909. // this.$message.success('触发上传')
  12910. el.getElementsByTagName("input")[0].click();
  12911. e.target.value = "";
  12912. },
  12913. addSelectAnswer() {
  12914. let params = [
  12915. {
  12916. uid: this.userid,
  12917. cid: this.id,
  12918. stage: this.courseType,
  12919. task: this.taskCount,
  12920. tool: this.toolindex,
  12921. content: this.selectAnswer.answer,
  12922. type: 7,
  12923. },
  12924. ];
  12925. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  12926. this.homeWorkLoading = true
  12927. this.ajax
  12928. .post(this.$store.state.api + "addCourseWorks", params)
  12929. .then((res) => {
  12930. this.$message({
  12931. message: this.lang.ssSubmitSuccess,
  12932. type: "success",
  12933. });
  12934. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  12935. setTimeout(() => {
  12936. this.homeWorkLoading = false
  12937. }, 500);
  12938. this.dialogVisibleSelect = false;
  12939. // this.selectAnswer = {};
  12940. this.selectSWorks();
  12941. this.selectStudent();
  12942. })
  12943. .catch((err) => {
  12944. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  12945. setTimeout(() => {
  12946. this.homeWorkLoading = false
  12947. }, 500);
  12948. this.$message.error(this.lang.ssSubmitFailed);
  12949. console.error(err);
  12950. });
  12951. },
  12952. addSelectAnswerTeacher() {
  12953. let params = [
  12954. {
  12955. uid: this.sStudent.userid,
  12956. cid: this.id,
  12957. stage: this.courseType,
  12958. task: this.taskCount,
  12959. tool: this.toolindex,
  12960. content: this.selectAnswer.answer,
  12961. type: 7,
  12962. },
  12963. ];
  12964. this.ajax
  12965. .post(this.$store.state.api + "addCourseWorks", params)
  12966. .then((res) => {
  12967. this.$message({
  12968. message: this.lang.ssSubmitSuccess,
  12969. type: "success",
  12970. });
  12971. this.dialogVisibleSelectTeacher = false;
  12972. // this.selectAnswer = {};
  12973. this.selectSWorks();
  12974. this.selectStudent();
  12975. })
  12976. .catch((err) => {
  12977. this.$message.error(this.lang.ssSubmitFailed);
  12978. console.error(err);
  12979. });
  12980. },
  12981. addSenWorks() {
  12982. for (var i = 0; i < this.sentenceList.length; i++) {
  12983. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12984. if (
  12985. this.sentenceList[i].chooseSenList[j] == undefined ||
  12986. this.sentenceList[i].chooseSenList[j] == ""
  12987. ) {
  12988. this.$message.error(this.lang.ssFillAnswersComplete);
  12989. return;
  12990. }
  12991. }
  12992. }
  12993. let params = [
  12994. {
  12995. uid: this.userid,
  12996. cid: this.id,
  12997. stage: this.courseType,
  12998. task: this.taskCount,
  12999. tool: this.toolindex,
  13000. content: JSON.stringify(this.sentenceList),
  13001. type: 9,
  13002. },
  13003. ];
  13004. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13005. this.homeWorkLoading = true
  13006. this.ajax
  13007. .post(this.$store.state.api + "addCourseWorks", params)
  13008. .then((res) => {
  13009. this.$message({
  13010. message: this.lang.ssSubmitSuccess,
  13011. type: "success",
  13012. });
  13013. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13014. setTimeout(() => {
  13015. this.homeWorkLoading = false
  13016. }, 500);
  13017. this.dialogVisibleSentence = false;
  13018. // this.selectAnswer = {};
  13019. this.selectSWorks();
  13020. this.selectStudent();
  13021. })
  13022. .catch((err) => {
  13023. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13024. setTimeout(() => {
  13025. this.homeWorkLoading = false
  13026. }, 500);
  13027. this.$message.error(this.lang.ssSubmitFailed);
  13028. console.error(err);
  13029. });
  13030. },
  13031. addSenWorksTeacher() {
  13032. for (var i = 0; i < this.sentenceList.length; i++) {
  13033. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13034. if (
  13035. this.sentenceList[i].chooseSenList[j] == undefined ||
  13036. this.sentenceList[i].chooseSenList[j] == ""
  13037. ) {
  13038. this.$message.error(this.lang.ssFillAnswersComplete);
  13039. return;
  13040. }
  13041. }
  13042. }
  13043. let params = [
  13044. {
  13045. uid: this.sStudent.userid,
  13046. cid: this.id,
  13047. stage: this.courseType,
  13048. task: this.taskCount,
  13049. tool: this.toolindex,
  13050. content: JSON.stringify(this.sentenceList),
  13051. type: 9,
  13052. },
  13053. ];
  13054. this.ajax
  13055. .post(this.$store.state.api + "addCourseWorks", params)
  13056. .then((res) => {
  13057. this.$message({
  13058. message: this.lang.ssSubmitSuccess,
  13059. type: "success",
  13060. });
  13061. this.dialogVisibleSentenceTeacher = false;
  13062. // this.selectAnswer = {};
  13063. this.selectSWorks();
  13064. this.selectStudent();
  13065. })
  13066. .catch((err) => {
  13067. this.$message.error(this.lang.ssSubmitFailed);
  13068. console.error(err);
  13069. });
  13070. },
  13071. returnTableText() {
  13072. this.$confirm(this.lang.ssConfirmRestoreTemplate, this.lang.ssPrompt, {
  13073. confirmButtonText: this.lang.ssConfirm,
  13074. cancelButtonText: this.lang.ssCancel,
  13075. type: "warning",
  13076. })
  13077. .then(() => {
  13078. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13079. })
  13080. .catch(() => {});
  13081. },
  13082. addTableWorks() {
  13083. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13084. this.homeWorkLoading = true
  13085. let params = [
  13086. {
  13087. uid: this.userid,
  13088. cid: this.id,
  13089. stage: this.courseType,
  13090. task: this.taskCount,
  13091. tool: this.toolindex,
  13092. content: JSON.stringify(this.tableJson),
  13093. type: 10,
  13094. },
  13095. ];
  13096. this.ajax
  13097. .post(this.$store.state.api + "addCourseWorks", params)
  13098. .then((res) => {
  13099. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13100. this.$message({
  13101. message: this.lang.ssSubmitSuccess,
  13102. type: "success",
  13103. });
  13104. this.dialogVisibleTable = false;
  13105. setTimeout(() => {
  13106. this.homeWorkLoading = false
  13107. }, 500);
  13108. // this.selectAnswer = {};
  13109. this.selectSWorks();
  13110. this.selectStudent();
  13111. })
  13112. .catch((err) => {
  13113. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13114. setTimeout(() => {
  13115. this.homeWorkLoading = false
  13116. }, 500);
  13117. this.$message.error(this.lang.ssSubmitFailed);
  13118. console.error(err);
  13119. });
  13120. },
  13121. tableRowClassName({ row, rowIndex }) {
  13122. if ((rowIndex + 1) % 2 === 0) {
  13123. return "even_row";
  13124. } else {
  13125. return "";
  13126. }
  13127. },
  13128. addTableWorksTeacher() {
  13129. let params = [
  13130. {
  13131. uid: this.sStudent.userid,
  13132. cid: this.id,
  13133. stage: this.courseType,
  13134. task: this.taskCount,
  13135. tool: this.toolindex,
  13136. content: JSON.stringify(this.tableJson),
  13137. type: 10,
  13138. },
  13139. ];
  13140. this.ajax
  13141. .post(this.$store.state.api + "addCourseWorks", params)
  13142. .then((res) => {
  13143. this.$message({
  13144. message: this.lang.ssSubmitSuccess,
  13145. type: "success",
  13146. });
  13147. this.dialogVisibleTableTeacher = false;
  13148. // this.selectAnswer = {};
  13149. this.selectSWorks();
  13150. this.selectStudent();
  13151. })
  13152. .catch((err) => {
  13153. this.$message.error(this.lang.ssSubmitFailed);
  13154. console.error(err);
  13155. });
  13156. },
  13157. returnWordText() {
  13158. this.$confirm(this.lang.ssConfirmRestoreTemplate, this.lang.ssPrompt, {
  13159. confirmButtonText: this.lang.ssConfirm,
  13160. cancelButtonText: this.lang.ssCancel,
  13161. type: "warning",
  13162. })
  13163. .then(() => {
  13164. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13165. })
  13166. .catch(() => {});
  13167. },
  13168. addWordWorks() {
  13169. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13170. this.homeWorkLoading = true
  13171. let params = [
  13172. {
  13173. uid: this.userid,
  13174. cid: this.id,
  13175. stage: this.courseType,
  13176. task: this.taskCount,
  13177. tool: this.toolindex,
  13178. content: JSON.stringify(this.wordJson),
  13179. type: 13,
  13180. atool: 52,
  13181. },
  13182. ];
  13183. this.ajax
  13184. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13185. .then((res) => {
  13186. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13187. this.$message({
  13188. message: this.lang.ssSubmitSuccess,
  13189. type: "success",
  13190. });
  13191. this.dialogVisibleWord = false;
  13192. setTimeout(() => {
  13193. this.homeWorkLoading = false
  13194. }, 500);
  13195. // this.selectAnswer = {};
  13196. this.selectSWorks();
  13197. this.selectStudent();
  13198. })
  13199. .catch((err) => {
  13200. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13201. setTimeout(() => {
  13202. this.homeWorkLoading = false
  13203. }, 500);
  13204. this.$message.error(this.lang.ssSubmitFailed);
  13205. console.error(err);
  13206. });
  13207. },
  13208. addWordWorksTeacher() {
  13209. let params = [
  13210. {
  13211. uid: this.sStudent.userid,
  13212. cid: this.id,
  13213. stage: this.courseType,
  13214. task: this.taskCount,
  13215. tool: this.toolindex,
  13216. content: JSON.stringify(this.wordJson),
  13217. type: 13,
  13218. atool: 52,
  13219. },
  13220. ];
  13221. this.ajax
  13222. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13223. .then((res) => {
  13224. this.$message({
  13225. message: this.lang.ssSubmitSuccess,
  13226. type: "success",
  13227. });
  13228. this.dialogVisibleWordTeacher = false;
  13229. // this.selectAnswer = {};
  13230. this.selectSWorks();
  13231. this.selectStudent();
  13232. })
  13233. .catch((err) => {
  13234. this.$message.error(this.lang.ssSubmitFailed);
  13235. console.error(err);
  13236. });
  13237. },
  13238. addCourseWorks(i) {
  13239. var typesql;
  13240. if (this.fileType === 0) {
  13241. typesql = 1;
  13242. } else if (this.fileType === 1) {
  13243. typesql = 4;
  13244. } else if (this.fileType === 2) {
  13245. typesql = 5;
  13246. } else if (this.fileType === 3) {
  13247. typesql = 12;
  13248. }
  13249. if (!this.studyJuri[0].cover[0].url) {
  13250. this.$message.error(this.lang.ssUploadFileRequired);
  13251. return;
  13252. }
  13253. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13254. this.homeWorkLoading = true
  13255. let params = [
  13256. {
  13257. uid: this.userid,
  13258. cid: this.id,
  13259. stage: this.courseType,
  13260. task: i,
  13261. tool: this.toolindex,
  13262. content: this.studyJuri[0].cover[0].url,
  13263. type: typesql,
  13264. },
  13265. ];
  13266. this.ajax
  13267. .post(this.$store.state.api + "addCourseWorksR", params)
  13268. .then((res) => {
  13269. this.$message({
  13270. message: this.lang.ssSubmitSuccess,
  13271. type: "success",
  13272. });
  13273. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13274. setTimeout(() => {
  13275. this.homeWorkLoading = false
  13276. }, 500);
  13277. this.studyJuri[0].cover = [];
  13278. this.dialogVisible = false;
  13279. this.getCourseDetail(2);
  13280. })
  13281. .catch((err) => {
  13282. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13283. setTimeout(() => {
  13284. this.homeWorkLoading = false
  13285. }, 500);
  13286. this.$message.error(this.lang.ssSubmitFailed);
  13287. console.error(err);
  13288. });
  13289. },
  13290. addCourseWorksPl(i) {
  13291. let _files = this.plworkFile;
  13292. var c = 1;
  13293. for (var k = 0; k < _files.length; k++) {
  13294. if (!_files[k].username) {
  13295. c = 2;
  13296. }
  13297. }
  13298. if (c == 2) {
  13299. this.$message.error(this.lang.ssEnterStudentName);
  13300. return;
  13301. }
  13302. let params = [
  13303. {
  13304. ateacher: this.userid,
  13305. cid: this.id,
  13306. stage: this.courseType,
  13307. task: i,
  13308. tool: this.toolindex,
  13309. content: JSON.stringify(_files),
  13310. },
  13311. ];
  13312. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13313. this.homeWorkLoading = true
  13314. this.ajax
  13315. .post(this.$store.state.api + "addCourseWorksPl", params)
  13316. .then((res) => {
  13317. this.$message({
  13318. message: this.lang.ssSubmitSuccess,
  13319. type: "success",
  13320. });
  13321. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  13322. setTimeout(() => {
  13323. this.homeWorkLoading = false
  13324. }, 500);
  13325. this.plworkFile = [];
  13326. this.dialogVisiblePl = false;
  13327. this.getCourseDetail(2);
  13328. })
  13329. .catch((err) => {
  13330. this.$message.error(this.lang.ssSubmitFailed);
  13331. setTimeout(() => {
  13332. this.homeWorkLoading = false
  13333. }, 500);
  13334. console.error(err);
  13335. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  13336. });
  13337. },
  13338. addCourseWorks2(i) {
  13339. var typesql;
  13340. if (this.fileType === 0) {
  13341. typesql = 0;
  13342. } else if (this.fileType === 1) {
  13343. typesql = 1;
  13344. } else if (this.fileType === 2) {
  13345. typesql = 3;
  13346. } else if (this.fileType === 3) {
  13347. typesql = 12;
  13348. }
  13349. if (!this.studyJuri[0].cover[0].url) {
  13350. this.$message.error(this.lang.ssUploadFileRequired);
  13351. return;
  13352. }
  13353. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13354. this.homeWorkLoading = true
  13355. let params = [
  13356. {
  13357. uid: this.userid,
  13358. cid: this.id,
  13359. stage: this.courseType,
  13360. task: i,
  13361. tool: this.toolindex,
  13362. content: JSON.stringify({
  13363. type: typesql,
  13364. groupIndex: this.groupIndex,
  13365. url: this.studyJuri[0].cover[0].url,
  13366. }),
  13367. type: 11,
  13368. atool: 49,
  13369. text: "",
  13370. },
  13371. ];
  13372. this.ajax
  13373. .post(this.$store.state.api + "addCourseWorks5", params)
  13374. .then((res) => {
  13375. this.$message({
  13376. message: this.lang.ssSubmitSuccess,
  13377. type: "success",
  13378. });
  13379. setTimeout(() => {
  13380. this.homeWorkLoading = false
  13381. }, 500);
  13382. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13383. type: typesql,
  13384. groupIndex: this.groupIndex,
  13385. url: this.studyJuri[0].cover[0].url,
  13386. }),type: "course_tool_sub" }, "success")
  13387. this.studyJuri[0].cover = [];
  13388. this.dialogVisibleGroupWork = false;
  13389. this.getCourseDetail(2);
  13390. })
  13391. .catch((err) => {
  13392. this.$message.error(this.lang.ssSubmitFailed);
  13393. setTimeout(() => {
  13394. this.homeWorkLoading = false
  13395. }, 500);
  13396. console.error(err);
  13397. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13398. type: typesql,
  13399. groupIndex: this.groupIndex,
  13400. url: this.studyJuri[0].cover[0].url,
  13401. }),type: "course_tool_sub" }, err)
  13402. });
  13403. },
  13404. addEnglishWork() {
  13405. this.myAnList = this.$refs['engJson'].myAnswerList;
  13406. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13407. this.$message.error(this.lang.ssEnterEssayContent);
  13408. return;
  13409. }
  13410. let params = [
  13411. {
  13412. uid: this.userid,
  13413. cid: this.id,
  13414. stage: this.courseType,
  13415. task: this.taskCount,
  13416. tool: this.englishToolIndex,
  13417. content: JSON.stringify(this.myAnList),
  13418. type: 16,
  13419. atool: 69,
  13420. text: "",
  13421. },
  13422. ];
  13423. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  13424. this.homeWorkLoading = true
  13425. this.ajax
  13426. .post(this.$store.state.api + "addCourseWorks5", params)
  13427. .then((res) => {
  13428. this.$message({
  13429. message: this.lang.ssSubmitSuccess,
  13430. type: "success",
  13431. });
  13432. setTimeout(() => {
  13433. this.homeWorkLoading = false
  13434. }, 500);
  13435. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  13436. data: JSON.stringify(this.myAnList),
  13437. type: "course_tool_sub" }, "success")
  13438. this.myAnList = {};
  13439. this.englishList = {};
  13440. this.englishToolIndex = 0;
  13441. this.engDialogVisible = false;
  13442. this.selectSWorks();
  13443. this.selectStudent();
  13444. })
  13445. .catch((err) => {
  13446. this.$message.error(this.lang.ssSubmitFailed);
  13447. console.error(err);
  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" }, err)
  13454. });
  13455. },
  13456. addCourseWorksGong(i, data, tool) {
  13457. let params = [
  13458. {
  13459. uid: this.userid,
  13460. cid: this.id,
  13461. stage: this.courseType,
  13462. task: this.taskCount,
  13463. tool: i,
  13464. content: data,
  13465. type: 12,
  13466. atool: tool,
  13467. text: "",
  13468. },
  13469. ];
  13470. this.ajax
  13471. .post(this.$store.state.api + "addCourseWorks5", params)
  13472. .then((res) => {
  13473. this.$message({
  13474. message: this.lang.ssSubmitSuccess,
  13475. type: "success",
  13476. });
  13477. this.studyJuri[0].cover = [];
  13478. this.selectSWorks();
  13479. this.selectStudent();
  13480. })
  13481. .catch((err) => {
  13482. this.$message.error(this.lang.ssSubmitFailed);
  13483. console.error(err);
  13484. });
  13485. },
  13486. addCourseWorksGongTeacher(i, data, tool) {
  13487. let params = [
  13488. {
  13489. uid: this.sStudent.userid,
  13490. cid: this.id,
  13491. stage: this.courseType,
  13492. task: this.taskCount,
  13493. tool: i,
  13494. content: data,
  13495. type: 12,
  13496. atool: tool,
  13497. text: "",
  13498. },
  13499. ];
  13500. this.ajax
  13501. .post(this.$store.state.api + "addCourseWorks5", params)
  13502. .then((res) => {
  13503. this.$message({
  13504. message: this.lang.ssSubmitSuccess,
  13505. type: "success",
  13506. });
  13507. this.studyJuri[0].cover = [];
  13508. this.dialogVisibleWorks = false;
  13509. this.selectSWorks();
  13510. this.selectStudent();
  13511. })
  13512. .catch((err) => {
  13513. this.$message.error(this.lang.ssSubmitFailed);
  13514. console.error(err);
  13515. });
  13516. },
  13517. addCourseWorksGongPl(i, data, tool, type) {
  13518. let params = [
  13519. {
  13520. uid: this.sStudent.userid,
  13521. cid: this.id,
  13522. stage: this.courseType,
  13523. task: this.taskCount,
  13524. tool: i,
  13525. content: data,
  13526. type: type,
  13527. atool: tool,
  13528. text: "",
  13529. },
  13530. ];
  13531. this.ajax
  13532. .post(this.$store.state.api + "addCourseWorks5", params)
  13533. .then((res) => {
  13534. this.$message({
  13535. message: this.lang.ssSubmitSuccess,
  13536. type: "success",
  13537. });
  13538. this.studyJuri[0].cover = [];
  13539. this.dialogVisibleWorks = false;
  13540. this.selectSWorks();
  13541. this.selectStudent();
  13542. })
  13543. .catch((err) => {
  13544. this.$message.error(this.lang.ssSubmitFailed);
  13545. console.error(err);
  13546. });
  13547. },
  13548. addCourseWorksTeacher(i) {
  13549. var typesql;
  13550. if (this.sTool == 32) {
  13551. this.addCourseWorksGongTeacher(
  13552. this.toolindex,
  13553. this.studyJuri[0].cover[0].url,
  13554. this.sTool
  13555. );
  13556. return;
  13557. }
  13558. if (this.fileType === 0) {
  13559. typesql = 1;
  13560. } else if (this.fileType === 1) {
  13561. typesql = 4;
  13562. } else if (this.fileType === 2) {
  13563. typesql = 5;
  13564. } else if (this.fileType === 3) {
  13565. typesql = 12;
  13566. }
  13567. if (this.sTool == 50) {
  13568. this.addCourseWorksGongPl(
  13569. this.toolindex,
  13570. this.studyJuri[0].cover[0].url,
  13571. this.sTool,
  13572. typesql
  13573. );
  13574. return;
  13575. }
  13576. if (!this.studyJuri[0].cover[0].url) {
  13577. this.$message.error(this.lang.ssUploadFileRequired);
  13578. return;
  13579. }
  13580. let params = [
  13581. {
  13582. uid: this.sStudent.userid,
  13583. cid: this.id,
  13584. stage: this.courseType,
  13585. task: i,
  13586. tool: this.toolindex,
  13587. content: this.studyJuri[0].cover[0].url,
  13588. type: typesql,
  13589. ateacher: this.userid,
  13590. },
  13591. ];
  13592. this.ajax
  13593. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13594. .then((res) => {
  13595. this.$message({
  13596. message: this.lang.ssSubmitSuccess,
  13597. type: "success",
  13598. });
  13599. this.studyJuri[0].cover = [];
  13600. this.dialogVisibleWorks = false;
  13601. this.getCourseDetail(2);
  13602. })
  13603. .catch((err) => {
  13604. this.$message.error(this.lang.ssSubmitFailed);
  13605. console.error(err);
  13606. });
  13607. },
  13608. selectUploadStudent(type) {
  13609. const loading = this.$loading.service({
  13610. background: "rgba(255, 255, 255, 0.7)",
  13611. target: document.body,
  13612. });
  13613. let params = {
  13614. cid: this.uploadCid,
  13615. oid: this.oid,
  13616. cn: "",
  13617. };
  13618. this.ajax
  13619. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13620. .then((res) => {
  13621. loading.close();
  13622. var studentK = [];
  13623. if (this.isWorksS[this.toolindex].length > 0) {
  13624. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13625. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13626. }
  13627. studentK = studentK.join(",");
  13628. }
  13629. this.uploadStudentJuri = res.data[0].filter((el) => {
  13630. return studentK.indexOf(el.userid) == -1;
  13631. });
  13632. if (this.worksSName && this.worksSid) {
  13633. this.uploadStudentJuri.push({
  13634. userid: this.worksSid,
  13635. name: this.worksSName,
  13636. });
  13637. }
  13638. if (type == 1) {
  13639. this.plworkFile = [];
  13640. this.dialogVisibleSname = true;
  13641. } else if (type == 2) {
  13642. this.dialogVisiblePl = true;
  13643. }
  13644. })
  13645. .catch((err) => {
  13646. loading.close();
  13647. console.error(err);
  13648. });
  13649. },
  13650. selectPickStudent() {
  13651. const loading = this.$loading.service({
  13652. background: "rgba(255, 255, 255, 0.7)",
  13653. target: document.body,
  13654. });
  13655. let params = {
  13656. cid: this.uploadCid,
  13657. oid: this.oid,
  13658. cn: "",
  13659. };
  13660. this.ajax
  13661. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13662. .then((res) => {
  13663. loading.close();
  13664. this.uploadStudentJuri = res.data[0];
  13665. this.dialogVisiblePickPeople = true;
  13666. })
  13667. .catch((err) => {
  13668. loading.close();
  13669. console.error(err);
  13670. });
  13671. },
  13672. arrayToArray(arrayo, arrayt) {
  13673. let array1 = arrayo;
  13674. let array2 = arrayt;
  13675. let commonElements = [];
  13676. for (let i = 0; i < array1.length; i++) {
  13677. for (let j = 0; j < array2.length; j++) {
  13678. if (array1[i] === array2[j]) {
  13679. commonElements.push(array1[i]);
  13680. }
  13681. }
  13682. }
  13683. return commonElements;
  13684. },
  13685. selectWorksStudent() {
  13686. let params = {
  13687. oid: this.oid,
  13688. cid: this.courseDetail.juri,
  13689. };
  13690. this.ajax
  13691. .get(this.$store.state.api + "selectWorksStudent", params)
  13692. .then((res) => {
  13693. var a = res.data[0];
  13694. for (var i = 0; i < this.isWorksS.length; i++) {
  13695. this.noWorksS[i] = [];
  13696. var studentK = [];
  13697. if (this.isWorksS[i].length > 0) {
  13698. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13699. studentK.push(this.isWorksS[i][z].uid);
  13700. }
  13701. studentK = studentK.join(",");
  13702. for (var j = 0; j < a.length; j++) {
  13703. if (studentK.indexOf(a[j].userid) == -1) {
  13704. if (this.tcid) {
  13705. // a[j].classid.indexOf(this.tcid) != -1
  13706. if (
  13707. this.arrayToArray(
  13708. a[j].classid.split(","),
  13709. this.tcid.split(",")
  13710. ).length
  13711. ) {
  13712. this.noWorksS[i].push({
  13713. student: a[j].name,
  13714. userid: a[j].userid,
  13715. });
  13716. }
  13717. } else {
  13718. this.noWorksS[i].push({
  13719. student: a[j].name,
  13720. userid: a[j].userid,
  13721. });
  13722. }
  13723. }
  13724. }
  13725. } else {
  13726. for (var k = 0; k < a.length; k++) {
  13727. if (this.tcid) {
  13728. if (
  13729. this.arrayToArray(
  13730. a[k].classid.split(","),
  13731. this.tcid.split(",")
  13732. ).length
  13733. ) {
  13734. this.noWorksS[i].push({
  13735. student: a[k].name,
  13736. userid: a[k].userid,
  13737. });
  13738. }
  13739. } else {
  13740. this.noWorksS[i].push({
  13741. student: a[k].name,
  13742. userid: a[k].userid,
  13743. });
  13744. }
  13745. }
  13746. }
  13747. }
  13748. this.$forceUpdate();
  13749. if (
  13750. Object.keys(this.commentDetail).length &&
  13751. Object.keys(this.commentIndexJson).length &&
  13752. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13753. ) {
  13754. let a = 1;
  13755. let c = this.commentIndexJson;
  13756. if (
  13757. this.commentIndexJson.gindex ||
  13758. this.commentIndexJson.gindex === 0
  13759. ) {
  13760. for (
  13761. var i = 0;
  13762. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13763. i++
  13764. ) {
  13765. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13766. groupA: for (var k = 0; k < _el.length; k++) {
  13767. let el = _el[k];
  13768. if (el.wid == this.commentDetail.wid) {
  13769. a = 2;
  13770. this.commentOther(
  13771. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13772. this.commentIndexJson.toolIndex,
  13773. k,
  13774. this.commentIndexJson.gindex
  13775. );
  13776. break groupA;
  13777. }
  13778. }
  13779. }
  13780. if (a === 1) {
  13781. this.commentDetail = [];
  13782. this.commentIndexJson = {};
  13783. this.commentDialogVisible = false;
  13784. this.$message(this.lang.ssHomeworkDeleted);
  13785. }
  13786. } else {
  13787. if (this.isGroup && this.commentIndexJson.gid) {
  13788. groupA: for (
  13789. var i = 0;
  13790. i < this.courseGroup.group.length;
  13791. i++
  13792. ) {
  13793. let _group = this.courseGroup.group[i];
  13794. if (_group.id == this.commentIndexJson.gid) {
  13795. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13796. for (var k = 0; k < _el2.length; k++) {
  13797. let el2 = _el2[k];
  13798. if (el2.wid == this.commentDetail.wid) {
  13799. a = 2;
  13800. this.commentOther(
  13801. _el2[k],
  13802. this.commentIndexJson.toolIndex,
  13803. k,
  13804. null,
  13805. this.commentIndexJson.gid
  13806. );
  13807. break groupA;
  13808. }
  13809. }
  13810. }
  13811. }
  13812. }
  13813. if (a == 1) {
  13814. for (
  13815. var i = 0;
  13816. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13817. i++
  13818. ) {
  13819. let el =
  13820. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13821. if (el.wid == this.commentDetail.wid) {
  13822. a = 2;
  13823. this.commentOther(
  13824. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13825. this.commentIndexJson.toolIndex,
  13826. i
  13827. );
  13828. break;
  13829. }
  13830. }
  13831. }
  13832. if (a === 1) {
  13833. this.commentDetail = [];
  13834. this.commentIndexJson = {};
  13835. this.commentDialogVisible = false;
  13836. this.$message(this.lang.ssHomeworkDeleted);
  13837. }
  13838. }
  13839. }
  13840. })
  13841. .catch((err) => {
  13842. console.error(err);
  13843. });
  13844. },
  13845. selectStudent() {
  13846. if(this.selectStudentLoading) return
  13847. this.selectStudentLoading = true
  13848. //学生查看自己作业
  13849. let params = {
  13850. uid: this.userid,
  13851. cid: this.id,
  13852. s: this.courseType,
  13853. t: this.taskCount,
  13854. };
  13855. this.ajax
  13856. .get(this.$store.state.api + "selectStudentWorks", params)
  13857. .then((res) => {
  13858. var a =
  13859. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13860. this.taskCount
  13861. ].toolChoose;
  13862. var b = res.data[0];
  13863. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13864. var y = [
  13865. "AVI",
  13866. "NAVI",
  13867. "MPEG",
  13868. "ASF",
  13869. "MOV",
  13870. "WMV",
  13871. "3GP",
  13872. "RM",
  13873. "RMVB",
  13874. "FLV",
  13875. "F4V",
  13876. "H.264",
  13877. "H.265",
  13878. "REAL VIDEO",
  13879. "MKV",
  13880. "WebM",
  13881. "HDDVD",
  13882. "MP4",
  13883. "MPG",
  13884. "M4V",
  13885. "MGV",
  13886. "OGV",
  13887. "QTM",
  13888. "STR",
  13889. "AMC",
  13890. "DVX",
  13891. "EVO",
  13892. "DAT",
  13893. "OGG",
  13894. "OGM",
  13895. ];
  13896. for (var i = 0; i < a.length; i++) {
  13897. this.workStudent[i] = [];
  13898. for (var j = 0; j < b.length; j++) {
  13899. if (i == b[j].tool) {
  13900. if (
  13901. (b[j].type == 1 ||
  13902. b[j].type == 4 ||
  13903. b[j].type == 5 ||
  13904. b[j].type == 6 ||
  13905. b[j].type == 12 ||
  13906. b[j].type == 7) &&
  13907. a[i].tool[0] != 15 &&
  13908. a[i].tool[0] != 4 &&
  13909. a[i].tool[0] != 45 &&
  13910. a[i].tool[0] != 50 &&
  13911. a[i].tool[0] != 32 &&
  13912. a[i].tool[0] != 57 &&
  13913. a[i].tool[0] != 52 &&
  13914. a[i].tool[0] != 69
  13915. ) {
  13916. if (
  13917. c.indexOf(
  13918. b[j].content
  13919. .split(".")
  13920. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13921. ) != -1 &&
  13922. a[i].tool[0] == 16 &&
  13923. b[j].atool != 50
  13924. ) {
  13925. this.workStudent[i].push({
  13926. works: b[j].content,
  13927. sName: b[j].name,
  13928. score: b[j].score,
  13929. img: b[j].img,
  13930. type: 1,
  13931. time: b[j].time,
  13932. userid: b[j].userid,
  13933. wid: b[j].id,
  13934. });
  13935. } else if (
  13936. y.indexOf(
  13937. b[j].content
  13938. .split(".")
  13939. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13940. ) != -1 &&
  13941. a[i].tool[0] == 16 &&
  13942. b[j].atool != 50
  13943. ) {
  13944. this.workStudent[i].push({
  13945. userid: b[j].userid,
  13946. wid: b[j].id,
  13947. works: b[j].content,
  13948. sName: b[j].name,
  13949. score: b[j].score,
  13950. img: b[j].img,
  13951. type: 3,
  13952. time: b[j].time,
  13953. });
  13954. } else if (b[j].type == 6 && b[j].atool != 50) {
  13955. this.workStudent[i].push({
  13956. userid: b[j].userid,
  13957. wid: b[j].id,
  13958. works: b[j].content,
  13959. sName: b[j].name,
  13960. score: b[j].score,
  13961. img: b[j].img,
  13962. type: 4,
  13963. time: b[j].time,
  13964. });
  13965. } else if (b[j].type == 7 && b[j].atool != 50) {
  13966. this.workStudent[i].push({
  13967. userid: b[j].userid,
  13968. wid: b[j].id,
  13969. works: b[j].content,
  13970. sName: b[j].name,
  13971. score: b[j].score,
  13972. img: b[j].img,
  13973. type: 5,
  13974. time: b[j].time,
  13975. });
  13976. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13977. this.workStudent[i].push({
  13978. works: b[j].content,
  13979. sName: b[j].name,
  13980. score: b[j].score,
  13981. img: b[j].img,
  13982. type: 12,
  13983. time: b[j].time,
  13984. userid: b[j].userid,
  13985. wid: b[j].id,
  13986. });
  13987. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13988. this.workStudent[i].push({
  13989. works: b[j].content,
  13990. sName: b[j].name,
  13991. score: b[j].score,
  13992. img: b[j].img,
  13993. type: 0,
  13994. time: b[j].time,
  13995. userid: b[j].userid,
  13996. wid: b[j].id,
  13997. });
  13998. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13999. this.workStudent[i].push({
  14000. works: b[j].content,
  14001. sName: b[j].name,
  14002. score: b[j].score,
  14003. img: b[j].img,
  14004. type: 0,
  14005. time: b[j].time,
  14006. userid: b[j].userid,
  14007. wid: b[j].id,
  14008. });
  14009. }
  14010. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14011. this.workStudent[i].push({
  14012. works: b[j].content,
  14013. sName: b[j].name,
  14014. score: b[j].score,
  14015. img: b[j].img,
  14016. type: 2,
  14017. time: b[j].time,
  14018. userid: b[j].userid,
  14019. wid: b[j].id,
  14020. });
  14021. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14022. this.workStudent[i].push({
  14023. works: b[j].content,
  14024. sName: b[j].name,
  14025. score: b[j].score,
  14026. img: b[j].img,
  14027. type: 20,
  14028. time: b[j].time,
  14029. userid: b[j].userid,
  14030. wid: b[j].id,
  14031. });
  14032. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14033. //问卷
  14034. this.workStudent[i].push({
  14035. works: b[j].content,
  14036. sName: b[j].name,
  14037. score: b[j].score,
  14038. img: b[j].img,
  14039. type: 2,
  14040. time: b[j].time,
  14041. userid: b[j].userid,
  14042. wid: b[j].id,
  14043. });
  14044. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14045. //选择题
  14046. this.workStudent[i].push({
  14047. works: b[j].content,
  14048. sName: b[j].name,
  14049. score: b[j].score,
  14050. img: b[j].img,
  14051. type: 8,
  14052. time: b[j].time,
  14053. userid: b[j].userid,
  14054. wid: b[j].id,
  14055. });
  14056. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14057. //选择题
  14058. this.workStudent[i].push({
  14059. works: b[j].content,
  14060. sName: b[j].name,
  14061. score: b[j].score,
  14062. img: b[j].img,
  14063. type: 9,
  14064. time: b[j].time,
  14065. userid: b[j].userid,
  14066. wid: b[j].id,
  14067. });
  14068. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14069. //选择题
  14070. this.workStudent[i].push({
  14071. works: b[j].content,
  14072. sName: b[j].name,
  14073. score: b[j].score,
  14074. img: b[j].img,
  14075. type: 10,
  14076. time: b[j].time,
  14077. userid: b[j].userid,
  14078. wid: b[j].id,
  14079. });
  14080. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14081. //选择题
  14082. this.workStudent[i].push({
  14083. works: b[j].content,
  14084. sName: b[j].name,
  14085. score: b[j].score,
  14086. img: b[j].img,
  14087. type: 13,
  14088. time: b[j].time,
  14089. userid: b[j].userid,
  14090. wid: b[j].id,
  14091. });
  14092. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14093. //选择题
  14094. this.workStudent[i].push({
  14095. works: b[j].content,
  14096. sName: b[j].name,
  14097. score: b[j].score,
  14098. img: b[j].img,
  14099. type: 12,
  14100. time: b[j].time,
  14101. userid: b[j].userid,
  14102. wid: b[j].id,
  14103. });
  14104. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14105. //选择题
  14106. this.workStudent[i].push({
  14107. works: b[j].content,
  14108. sName: b[j].name,
  14109. score: b[j].score,
  14110. img: b[j].img,
  14111. type: 12,
  14112. time: b[j].time,
  14113. userid: b[j].userid,
  14114. wid: b[j].id,
  14115. });
  14116. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14117. //选择题
  14118. this.workStudent[i].push({
  14119. works: b[j].content,
  14120. sName: b[j].name,
  14121. score: b[j].score,
  14122. img: b[j].img,
  14123. type: 15,
  14124. time: b[j].time,
  14125. userid: b[j].userid,
  14126. wid: b[j].id,
  14127. });
  14128. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14129. //英语写作
  14130. this.workStudent[i].push({
  14131. works: b[j].content,
  14132. sName: b[j].name,
  14133. score: b[j].score,
  14134. img: b[j].img,
  14135. type: 16,
  14136. time: b[j].time,
  14137. userid: b[j].userid,
  14138. wid: b[j].id,
  14139. aiCode: b[j].aiCode,
  14140. teacherCode: b[j].teacherCode
  14141. });
  14142. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14143. //英语口语
  14144. this.workStudent[i].push({
  14145. works: b[j].content,
  14146. sName: b[j].name,
  14147. score: b[j].score,
  14148. img: b[j].img,
  14149. type: 17,
  14150. time: b[j].time,
  14151. userid: b[j].userid,
  14152. wid: b[j].id,
  14153. });
  14154. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14155. //英语口语
  14156. this.workStudent[i].push({
  14157. works: b[j].content,
  14158. sName: b[j].name,
  14159. score: b[j].score,
  14160. img: b[j].img,
  14161. type: 14,
  14162. time: b[j].time,
  14163. userid: b[j].userid,
  14164. wid: b[j].id,
  14165. });
  14166. }
  14167. }
  14168. }
  14169. }
  14170. this.selectStudentLoading = false
  14171. })
  14172. .catch((err) => {
  14173. this.selectStudentLoading = false
  14174. console.error(err);
  14175. });
  14176. },
  14177. openVideo(w) {
  14178. this.videoDetail = {};
  14179. this.playerOptions1.sources[0].src = w.works;
  14180. this.videoDetail = this.playerOptions1;
  14181. this.videoVisible = true;
  14182. },
  14183. isLikes(wid, uid, t, c, isLikes,sName) {
  14184. if (isLikes == false) {
  14185. let params = [
  14186. {
  14187. wid: wid,
  14188. lid: uid,
  14189. t: t,
  14190. c: c,
  14191. },
  14192. ];
  14193. this.ajax
  14194. .post(this.$store.state.api + "insertComment", params)
  14195. .then((res) => {
  14196. this.$message({
  14197. message: this.lang.ssLikeSuccess,
  14198. type: "success",
  14199. });
  14200. this.selectSWorks();
  14201. this.selectStudent();
  14202. if(this.tType==1){
  14203. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14204. }
  14205. })
  14206. .catch((err) => {
  14207. this.$message.error(this.lang.ssLikeFailed);
  14208. console.error(err);
  14209. });
  14210. } else {
  14211. let params = {
  14212. wid: wid,
  14213. lid: uid,
  14214. type: t,
  14215. };
  14216. this.ajax
  14217. .get(this.$store.state.api + "deleteComment", params)
  14218. .then((res) => {
  14219. this.$message({
  14220. message: this.lang.ssCancelLikeSuccess,
  14221. type: "success",
  14222. });
  14223. this.selectSWorks();
  14224. this.selectStudent();
  14225. })
  14226. .catch((err) => {
  14227. console.error(err);
  14228. });
  14229. }
  14230. },
  14231. deleteComment(wid) {
  14232. this.$confirm(this.lang.ssConfirmDeleteComment, this.lang.ssPrompt, {
  14233. confirmButtonText: this.lang.ssConfirm,
  14234. cancelButtonText: this.lang.ssCancel,
  14235. type: "warning",
  14236. })
  14237. .then(() => {
  14238. let params = {
  14239. id: wid,
  14240. };
  14241. this.ajax
  14242. .get(this.$store.state.api + "deleteComment2", params)
  14243. .then((res) => {
  14244. this.$message({
  14245. message: this.lang.ssDeleteCommentSuccess,
  14246. type: "success",
  14247. });
  14248. this.selectSWorks();
  14249. this.selectStudent();
  14250. })
  14251. .catch((err) => {
  14252. console.error(err);
  14253. });
  14254. })
  14255. .catch(() => {});
  14256. },
  14257. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14258. this.commentIndexJson = {
  14259. toolIndex: toolIndex,
  14260. wIndex: wIndex,
  14261. gindex: gindex,
  14262. gid: gid,
  14263. };
  14264. this.commentDetail = [];
  14265. this.commentDialogVisible = true;
  14266. this.commentDetail = w;
  14267. if (w.works && w.type == 1) {
  14268. // this.pptImgUrl = "";
  14269. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14270. if (
  14271. a.indexOf(
  14272. w.works
  14273. .split(".")
  14274. [w.works.split(".").length - 1].toLocaleUpperCase()
  14275. ) != -1
  14276. ) {
  14277. let _uuurl = await this.checkLink(w.works);
  14278. this.pptImgUrl =
  14279. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14280. this.showPDF = false;
  14281. } else if (
  14282. w.works
  14283. .split(".")
  14284. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14285. ) {
  14286. this.pptImgUrl = w.works;
  14287. this.showPDF = true;
  14288. }
  14289. } else if (w.works && w.type == 3) {
  14290. this.videoDetail = {};
  14291. this.playerOptions1.sources[0].src = w.works;
  14292. this.videoDetail = this.playerOptions1;
  14293. // this.videoVisible = true;
  14294. } else if (w.works && w.type == 4) {
  14295. this.eScore = JSON.parse(w.works);
  14296. this.rateJson =
  14297. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14298. this.taskCount
  14299. ].toolChoose[toolIndex].rateJson;
  14300. } else if (w.works && w.type == 10) {
  14301. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14302. } else if (w.works && w.type == 13) {
  14303. this.wordJson =
  14304. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14305. this.taskCount
  14306. ].toolChoose[toolIndex].wordJson;
  14307. }
  14308. },
  14309. async openScore(w, index) {
  14310. this.wScore = 0;
  14311. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14312. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14313. this.commentDetail = [];
  14314. if(w.type == 17){
  14315. this.dialogVisibleENScore = true;
  14316. }else{
  14317. this.dialogVisibleScore = true;
  14318. }
  14319. this.commentDetail = w;
  14320. if (w.works && w.type == 1) {
  14321. this.pptImgUrl = "";
  14322. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14323. if (
  14324. a.indexOf(
  14325. w.works
  14326. .split(".")
  14327. [w.works.split(".").length - 1].toLocaleUpperCase()
  14328. ) != -1
  14329. ) {
  14330. let _uuurl = await this.checkLink(w.works);
  14331. this.pptImgUrl =
  14332. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14333. this.showPDF = false;
  14334. } else if (
  14335. w.works
  14336. .split(".")
  14337. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14338. ) {
  14339. this.pptImgUrl = w.works;
  14340. this.showPDF = true;
  14341. }
  14342. } else if (w.works && w.type == 3) {
  14343. this.videoDetail = {};
  14344. this.playerOptions1.sources[0].src = w.works;
  14345. this.videoDetail = this.playerOptions1;
  14346. }else if(w.type == 17){
  14347. let englishVoiceJson = {}
  14348. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14349. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14350. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14351. .toolChoose[index].englishVoiceJson
  14352. : {};
  14353. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14354. }
  14355. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14356. },
  14357. addComment(wid, uid, t,detail) {
  14358. if (this.commentText == "") {
  14359. this.$message.error(this.lang.ssEnterComment);
  14360. return;
  14361. }
  14362. let params2 = [
  14363. {
  14364. wid: wid,
  14365. lid: uid,
  14366. t: t,
  14367. },
  14368. ];
  14369. this.ajax
  14370. .post(this.$store.state.api + "getComment", params2)
  14371. .then((res) => {
  14372. if (res.data[0].length > 0) {
  14373. this.$message.error(this.lang.ssOnlyOneCommentPerHomework);
  14374. } else {
  14375. let params = [
  14376. {
  14377. wid: wid,
  14378. lid: uid,
  14379. t: t,
  14380. c: this.commentText,
  14381. },
  14382. ];
  14383. this.ajax
  14384. .post(this.$store.state.api + "insertComment", params)
  14385. .then((res) => {
  14386. this.$message({
  14387. message: this.lang.ssCommentSuccess,
  14388. type: "success",
  14389. });
  14390. this.commentText = "";
  14391. this.selectSWorks();
  14392. this.selectStudent();
  14393. if(this.tType!=2){
  14394. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14395. }
  14396. })
  14397. .catch((err) => {
  14398. this.$message.error(this.lang.ssCommentFailed);
  14399. console.error(err);
  14400. });
  14401. }
  14402. })
  14403. .catch((err) => {
  14404. // this.$message.error("评论失败");
  14405. console.error(err);
  14406. });
  14407. },
  14408. scoreWork(wid,sName) {
  14409. if (this.wScore == 0) {
  14410. this.$message.error(this.lang.ssPleaseRate);
  14411. return;
  14412. }
  14413. let params = [
  14414. {
  14415. wid: wid,
  14416. score: JSON.stringify({
  14417. wScore: this.wScore,
  14418. detail: this.scoreDetail,
  14419. }),
  14420. },
  14421. ];
  14422. this.ajax
  14423. .post(this.$store.state.api + "scoreWork", params)
  14424. .then((res) => {
  14425. this.$message({
  14426. message: this.lang.ssRatingSuccess,
  14427. type: "success",
  14428. });
  14429. this.wScore = 0;
  14430. this.scoreDetail = "";
  14431. this.dialogVisibleScore = false;
  14432. this.selectSWorks();
  14433. this.selectStudent();
  14434. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14435. })
  14436. .catch((err) => {
  14437. this.$message.error(this.lang.ssRatingFailed);
  14438. console.error(err);
  14439. });
  14440. },
  14441. openXz(w, i) {
  14442. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14443. .taskJson[this.taskCount].toolChoose[i].selectJson
  14444. ? JSON.parse(
  14445. JSON.stringify(
  14446. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14447. this.taskCount
  14448. ].toolChoose[i].selectJson
  14449. )
  14450. )
  14451. : { url: "", select: [], answer: [] };
  14452. var a = w.works.split(",");
  14453. for (var k = 0; k < a.length; k++) {
  14454. a[k] = parseInt(a[k]);
  14455. }
  14456. this.selectAnswer = { answer: a, stu: w.sName };
  14457. this.isSelect = true;
  14458. this.dialogVisibleSelect = true;
  14459. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14460. },
  14461. openSen(w, i) {
  14462. console.log("openSen")
  14463. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14464. this.sentenceList1 = JSON.parse(w.works);
  14465. this.sentenceList1.stuName = w.sName;
  14466. this.dialogVisibleSentence1 = true;
  14467. },
  14468. openPj(w, toolindex) {
  14469. console.log("openPJ")
  14470. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14471. this.isStar = true;
  14472. this.eScore = JSON.parse(w);
  14473. this.rateJson =
  14474. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14475. this.taskCount
  14476. ].toolChoose[toolindex].rateJson;
  14477. this.studentEvalDialogVisible = true;
  14478. },
  14479. openEnglishEva(id,i){
  14480. let params = {
  14481. wid: id
  14482. };
  14483. this.ajax
  14484. .get(this.$store.state.api + "selectEngWork", params)
  14485. .then((res) => {
  14486. this.evaEngJson.message = res.data[0][0];
  14487. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14488. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14489. .toolChoose[i].englishList;
  14490. this.engEvaDialogVisible = true;
  14491. })
  14492. .catch((err) => {
  14493. console.error(err);
  14494. });
  14495. },
  14496. deleteWorks(id) {
  14497. this.$confirm(this.lang.ssConfirmDeleteWork, this.lang.ssPrompt, {
  14498. confirmButtonText: this.lang.ssConfirm,
  14499. cancelButtonText: this.lang.ssCancel,
  14500. type: "warning",
  14501. })
  14502. .then(() => {
  14503. let params = [
  14504. {
  14505. id: id,
  14506. },
  14507. ];
  14508. this.ajax
  14509. .post(this.$store.state.api + "deleteCourseWork", params)
  14510. .then((res) => {
  14511. this.$message({
  14512. message: this.lang.ssDeleteSuccess,
  14513. type: "success",
  14514. });
  14515. this.selectStudent();
  14516. this.selectSWorks();
  14517. this.selectSLook();
  14518. })
  14519. .catch((err) => {
  14520. this.$message.error(this.lang.ssNetworkError);
  14521. console.error(err);
  14522. });
  14523. })
  14524. .catch(() => {});
  14525. },
  14526. selectSWorks(gindex) {
  14527. if(this.selectSWorksLoading) return
  14528. this.selectSWorksLoading = true
  14529. //教师查看全部作业
  14530. let params = {
  14531. cid: this.id,
  14532. s: this.courseType,
  14533. t: this.taskCount,
  14534. };
  14535. this.ajax
  14536. .get(this.$store.state.api + "selectSWorks", params)
  14537. .then((res) => {
  14538. var a =
  14539. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14540. this.taskCount
  14541. ].toolChoose;
  14542. var b = res.data[0];
  14543. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14544. var y = [
  14545. "AVI",
  14546. "NAVI",
  14547. "MPEG",
  14548. "ASF",
  14549. "MOV",
  14550. "WMV",
  14551. "3GP",
  14552. "RM",
  14553. "RMVB",
  14554. "FLV",
  14555. "F4V",
  14556. "H.264",
  14557. "H.265",
  14558. "REAL VIDEO",
  14559. "MKV",
  14560. "WebM",
  14561. "HDDVD",
  14562. "MP4",
  14563. "MPG",
  14564. "M4V",
  14565. "MGV",
  14566. "OGV",
  14567. "QTM",
  14568. "STR",
  14569. "AMC",
  14570. "DVX",
  14571. "EVO",
  14572. "DAT",
  14573. "OGG",
  14574. "OGM",
  14575. ];
  14576. var d = res.data[1];
  14577. var e = res.data[2];
  14578. var f = res.data[3];
  14579. let _worksStudent = [];
  14580. var _worksStudent2 = [];
  14581. for (var i = 0; i < a.length; i++) {
  14582. _worksStudent[i] = [];
  14583. _worksStudent2[i] = [];
  14584. if (
  14585. !this.isCloseList[i] ||
  14586. this.isCloseList[i].isClose == undefined
  14587. ) {
  14588. this.isCloseList[i] = { isClose: 0 };
  14589. }
  14590. this.groupStudent[i] = [];
  14591. this.groupStudentUid[i] = [];
  14592. if (this.isGroup) {
  14593. for (
  14594. var groupI = 0;
  14595. groupI < this.courseGroup.group.length;
  14596. groupI++
  14597. ) {
  14598. this.courseGroup.group[groupI].works[i] = [];
  14599. }
  14600. }
  14601. this.isWorksS[i] = [];
  14602. this.checkJson[i] = [];
  14603. if (a[i].tool[0] == 49) {
  14604. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14605. this.groupStudent[i][gA] = [];
  14606. this.groupStudentUid[i][gA] = [];
  14607. _worksStudent[i][gA] = [];
  14608. _worksStudent2[i][gA] = [];
  14609. this.isCloseList[i][gA] = [];
  14610. // debugger
  14611. for (var g = 0; g < f.length; g++) {
  14612. if (
  14613. f[g].ttype == 2 &&
  14614. this.tcid &&
  14615. this.arrayToArray(
  14616. (f[g].classid ? f[g].classid.split(",") : []),
  14617. this.tcid.split(",")
  14618. ).length == 0
  14619. ) {
  14620. continue;
  14621. }
  14622. let _classId = this.arrayToArray(
  14623. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14624. this.classId ? this.classId.split(",") : []
  14625. )
  14626. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14627. (f[g].classid ? f[g].classid.split(",") : []),
  14628. this.tcid.split(",")
  14629. ).length !== 0 || this.arrayToArray(
  14630. (f[g].classid ? f[g].classid.split(",") : []),
  14631. _classId
  14632. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14633. this.groupStudent[i][gA].push(f[g]);
  14634. this.groupStudentUid[i][gA].push(f[g].userid);
  14635. }
  14636. }
  14637. }
  14638. this.$forceUpdate();
  14639. }
  14640. for (var j = 0; j < b.length; j++) {
  14641. if (
  14642. b[j].ttype == 2 &&
  14643. this.tcid &&
  14644. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14645. .length == 0
  14646. ) {
  14647. continue;
  14648. }
  14649. var likesCount = 0;
  14650. var commentCount = 0;
  14651. var isLikes = false;
  14652. var commentJson = [];
  14653. var likeJson = [];
  14654. var data = b[j];
  14655. if (i == b[j].tool) {
  14656. if (data.type == 2 && a[i].tool[0] == 4) {
  14657. // if(JSON.parse(data.content)[0].anwer){
  14658. var checkL =
  14659. JSON.parse(data.content)[0].anwer instanceof Array
  14660. ? JSON.parse(data.content)[0].anwer
  14661. : JSON.parse(data.content)[0].anwer.split(",");
  14662. for (var z = 0; z < checkL.length; z++) {
  14663. if (!this.checkJson[i][z]) {
  14664. this.checkJson[i].push({
  14665. checkCount: [],
  14666. checkPerson: [],
  14667. rightPerson: [],
  14668. });
  14669. }
  14670. if (!this.checkJson[i][z].checkCount.length) {
  14671. this.checkJson[i][z].checkCount = [];
  14672. let _askItemCount = JSON.parse(data.content)[0].askJson
  14673. .askJson[z].askItem;
  14674. for (var aic = 0; aic < _askItemCount; aic++) {
  14675. this.checkJson[i][z].checkCount.push(0);
  14676. }
  14677. }
  14678. if (checkL[z] instanceof Array) {
  14679. if (
  14680. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14681. checkL[z].sort().join(",")
  14682. ) {
  14683. this.checkJson[i][z].rightPerson.push(data.name);
  14684. }
  14685. for (var q = 0; q < checkL[z].length; q++) {
  14686. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14687. ? this.checkJson[i][z].checkPerson[
  14688. parseInt(checkL[z][q])
  14689. ].push(data.name)
  14690. : (this.checkJson[i][z].checkPerson[
  14691. parseInt(checkL[z][q])
  14692. ] = [data.name]);
  14693. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14694. ? this.checkJson[i][z].checkCount[
  14695. parseInt(checkL[z][q])
  14696. ]++
  14697. : (this.checkJson[i][z].checkCount[
  14698. parseInt(checkL[z][q])
  14699. ] = 1);
  14700. }
  14701. } else {
  14702. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14703. this.checkJson[i][z].rightPerson.push(data.name);
  14704. }
  14705. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14706. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14707. ? this.checkJson[i][z].checkPerson[
  14708. parseInt(checkL[z])
  14709. ].push(data.name)
  14710. : (this.checkJson[i][z].checkPerson[
  14711. parseInt(checkL[z])
  14712. ] = [data.name]);
  14713. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14714. ? this.checkJson[i][z].checkCount[
  14715. parseInt(checkL[z])
  14716. ]++
  14717. : (this.checkJson[i][z].checkCount[
  14718. parseInt(checkL[z])
  14719. ] = 1);
  14720. }
  14721. }
  14722. }
  14723. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14724. var checkL = JSON.parse(data.content)[0].anwer;
  14725. if(a[i].testJson.testCount != JSON.parse(data.content)[0].testJson.testCount){
  14726. continue
  14727. }
  14728. // console.log('选择题')
  14729. for (var z = 0; z < checkL.length; z++) {
  14730. if (!this.checkJson[i][z]) {
  14731. this.checkJson[i].push({
  14732. checkCount: [],
  14733. checkPerson: [],
  14734. rightPerson: [],
  14735. });
  14736. }
  14737. if (!this.checkJson[i][z].checkCount.length) {
  14738. this.checkJson[i][z].checkCount = [];
  14739. let _askItemCount = JSON.parse(data.content)[0].testJson
  14740. .testJson[z].testItem;
  14741. for (var aic = 0; aic < _askItemCount; aic++) {
  14742. this.checkJson[i][z].checkCount.push(0);
  14743. }
  14744. }
  14745. if (checkL[z] instanceof Array) {
  14746. if (
  14747. JSON.parse(data.content)[0]
  14748. .testJson.testJson[z].answer.sort()
  14749. .join(",") == checkL[z].sort().join(",")
  14750. ) {
  14751. this.checkJson[i][z].rightPerson.push(data.name);
  14752. }
  14753. for (var q = 0; q < checkL[z].length; q++) {
  14754. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14755. ? this.checkJson[i][z].checkPerson[
  14756. parseInt(checkL[z][q])
  14757. ].push(data.name)
  14758. : (this.checkJson[i][z].checkPerson[
  14759. parseInt(checkL[z][q])
  14760. ] = [data.name]);
  14761. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14762. ? this.checkJson[i][z].checkCount[
  14763. parseInt(checkL[z][q])
  14764. ]++
  14765. : (this.checkJson[i][z].checkCount[
  14766. parseInt(checkL[z][q])
  14767. ] = 1);
  14768. }
  14769. } else {
  14770. if (
  14771. JSON.parse(data.content)[0].testJson.testJson[z]
  14772. .answer == checkL[z]
  14773. ) {
  14774. this.checkJson[i][z].rightPerson.push(data.name);
  14775. }
  14776. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14777. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14778. ? this.checkJson[i][z].checkPerson[
  14779. parseInt(checkL[z])
  14780. ].push(data.name)
  14781. : (this.checkJson[i][z].checkPerson[
  14782. parseInt(checkL[z])
  14783. ] = [data.name]);
  14784. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14785. ? this.checkJson[i][z].checkCount[
  14786. parseInt(checkL[z])
  14787. ]++
  14788. : (this.checkJson[i][z].checkCount[
  14789. parseInt(checkL[z])
  14790. ] = 1);
  14791. }
  14792. }
  14793. }
  14794. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14795. var checkL = JSON.parse(data.content);
  14796. for (var z = 0; z < checkL.length; z++) {
  14797. if (!this.checkJson[i][z]) {
  14798. this.checkJson[i].push({
  14799. checkCount: [],
  14800. checkPerson: [],
  14801. rightPerson: [],
  14802. });
  14803. }
  14804. this.checkJson[i][z].checkPerson.push(data.name);
  14805. if (
  14806. checkL[z].chooseSenList.toString() ==
  14807. checkL[z].rightAnswer.toString()
  14808. ) {
  14809. this.checkJson[i][z].rightPerson.push(data.name);
  14810. }
  14811. }
  14812. }
  14813. for (var k = 0; k < d.length; k++) {
  14814. //点赞
  14815. if (d[k].workId == b[j].id) {
  14816. likesCount++;
  14817. likeJson.push(d[k])
  14818. if (d[k].likesId == this.userid) {
  14819. isLikes = true;
  14820. }
  14821. }
  14822. }
  14823. for (var l = 0; l < e.length; l++) {
  14824. //评论
  14825. if (e[l].workId == b[j].id) {
  14826. if (e[l].comment != "") {
  14827. commentCount++;
  14828. commentJson.push({
  14829. commentText: e[l].comment,
  14830. commentTime: e[l].commentTime,
  14831. commentPeople: e[l].commentPeople,
  14832. userid: e[l].userid,
  14833. wid: e[l].id,
  14834. });
  14835. }
  14836. }
  14837. }
  14838. if (
  14839. (b[j].type == 1 ||
  14840. b[j].type == 4 ||
  14841. b[j].type == 5 ||
  14842. b[j].type == 6 ||
  14843. b[j].type == 12 ||
  14844. b[j].type == 7) &&
  14845. a[i].tool[0] != 15 &&
  14846. a[i].tool[0] != 4 &&
  14847. a[i].tool[0] != 45 &&
  14848. a[i].tool[0] != 50 &&
  14849. a[i].tool[0] != 32 &&
  14850. a[i].tool[0] != 57 &&
  14851. a[i].tool[0] != 52
  14852. ) {
  14853. if (
  14854. c.indexOf(
  14855. b[j].content
  14856. .split(".")
  14857. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14858. ) != -1 &&
  14859. a[i].tool[0] == 16 &&
  14860. b[j].atool != 50
  14861. ) {
  14862. let _works = {
  14863. userid: b[j].userid,
  14864. ateacher: b[j].ateacher,
  14865. wid: b[j].id,
  14866. works: b[j].content,
  14867. sName: b[j].name,
  14868. type: 1,
  14869. ttype:b[j].ttype,
  14870. time: b[j].time,
  14871. score: b[j].score,
  14872. img: b[j].img,
  14873. likesCount: likesCount,
  14874. commentCount: commentCount,
  14875. isLikes: isLikes,
  14876. commentJson: commentJson,
  14877. likeJson:likeJson
  14878. };
  14879. if (this.isGroup) {
  14880. let isGw = 1;
  14881. for (
  14882. var groupI = 0;
  14883. groupI < this.courseGroup.group.length;
  14884. groupI++
  14885. ) {
  14886. let gid = this.courseGroup.group[groupI].id;
  14887. if (
  14888. this.courseGroupStudentUid[gid].indexOf(
  14889. b[j].userid
  14890. ) != -1
  14891. ) {
  14892. isGw = 2;
  14893. this.courseGroup.group[groupI].works[i].push(_works);
  14894. break;
  14895. }
  14896. }
  14897. if (isGw == 1) {
  14898. _worksStudent[i].push(_works);
  14899. }
  14900. } else {
  14901. _worksStudent[i].push(_works);
  14902. }
  14903. _worksStudent2[i].push(_works);
  14904. this.isWorksS[i].push({
  14905. uid: b[j].userid,
  14906. sName: b[j].name,
  14907. });
  14908. } else if (
  14909. y.indexOf(
  14910. b[j].content
  14911. .split(".")
  14912. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14913. ) != -1 &&
  14914. a[i].tool[0] == 16 &&
  14915. b[j].atool != 50
  14916. ) {
  14917. let _works = {
  14918. userid: b[j].userid,
  14919. ateacher: b[j].ateacher,
  14920. wid: b[j].id,
  14921. works: b[j].content,
  14922. sName: b[j].name,
  14923. type: 3,
  14924. ttype:b[j].ttype,
  14925. time: b[j].time,
  14926. score: b[j].score,
  14927. img: b[j].img,
  14928. likesCount: likesCount,
  14929. commentCount: commentCount,
  14930. isLikes: isLikes,
  14931. commentJson: commentJson,
  14932. likeJson:likeJson
  14933. };
  14934. if (this.isGroup) {
  14935. let isGw = 1;
  14936. for (
  14937. var groupI = 0;
  14938. groupI < this.courseGroup.group.length;
  14939. groupI++
  14940. ) {
  14941. let gid = this.courseGroup.group[groupI].id;
  14942. if (
  14943. this.courseGroupStudentUid[gid].indexOf(
  14944. b[j].userid
  14945. ) != -1
  14946. ) {
  14947. isGw = 2;
  14948. this.courseGroup.group[groupI].works[i].push(_works);
  14949. break;
  14950. }
  14951. }
  14952. if (isGw == 1) {
  14953. _worksStudent[i].push(_works);
  14954. }
  14955. } else {
  14956. _worksStudent[i].push(_works);
  14957. }
  14958. _worksStudent2[i].push(_works);
  14959. this.isWorksS[i].push({
  14960. uid: b[j].userid,
  14961. sName: b[j].name,
  14962. });
  14963. } else if (b[j].type == 6 && b[j].atool != 50) {
  14964. let _works = {
  14965. userid: b[j].userid,
  14966. ateacher: b[j].ateacher,
  14967. wid: b[j].id,
  14968. works: b[j].content,
  14969. sName: b[j].name,
  14970. type: 4,
  14971. ttype:b[j].ttype,
  14972. time: b[j].time,
  14973. score: b[j].score,
  14974. img: b[j].img,
  14975. likesCount: likesCount,
  14976. commentCount: commentCount,
  14977. isLikes: isLikes,
  14978. commentJson: commentJson,
  14979. likeJson:likeJson
  14980. };
  14981. _worksStudent[i].push(_works);
  14982. _worksStudent2[i].push(_works);
  14983. this.isWorksS[i].push({
  14984. uid: b[j].userid,
  14985. sName: b[j].name,
  14986. });
  14987. } else if (b[j].type == 7 && b[j].atool != 50) {
  14988. let _work = {
  14989. userid: b[j].userid,
  14990. ateacher: b[j].ateacher,
  14991. wid: b[j].id,
  14992. works: b[j].content,
  14993. sName: b[j].name,
  14994. type: 5,
  14995. ttype:b[j].ttype,
  14996. time: b[j].time,
  14997. score: b[j].score,
  14998. img: b[j].img,
  14999. likesCount: likesCount,
  15000. commentCount: commentCount,
  15001. isLikes: isLikes,
  15002. commentJson: commentJson,
  15003. likeJson:likeJson
  15004. };
  15005. _worksStudent[i].push(_work);
  15006. _worksStudent2[i].push(_work);
  15007. this.isWorksS[i].push({
  15008. uid: b[j].userid,
  15009. sName: b[j].name,
  15010. });
  15011. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15012. let _works = {
  15013. userid: b[j].userid,
  15014. ateacher: b[j].ateacher,
  15015. wid: b[j].id,
  15016. works: b[j].content,
  15017. sName: b[j].name,
  15018. type: 12,
  15019. ttype:b[j].ttype,
  15020. time: b[j].time,
  15021. score: b[j].score,
  15022. img: b[j].img,
  15023. likesCount: likesCount,
  15024. commentCount: commentCount,
  15025. isLikes: isLikes,
  15026. commentJson: commentJson,
  15027. likeJson:likeJson
  15028. };
  15029. if (this.isGroup) {
  15030. let isGw = 1;
  15031. for (
  15032. var groupI = 0;
  15033. groupI < this.courseGroup.group.length;
  15034. groupI++
  15035. ) {
  15036. let gid = this.courseGroup.group[groupI].id;
  15037. if (
  15038. this.courseGroupStudentUid[gid].indexOf(
  15039. b[j].userid
  15040. ) != -1
  15041. ) {
  15042. isGw = 2;
  15043. this.courseGroup.group[groupI].works[i].push(_works);
  15044. break;
  15045. }
  15046. }
  15047. if (isGw == 1) {
  15048. _worksStudent[i].push(_works);
  15049. }
  15050. } else {
  15051. _worksStudent[i].push(_works);
  15052. }
  15053. _worksStudent2[i].push(_works);
  15054. this.isWorksS[i].push({
  15055. uid: b[j].userid,
  15056. sName: b[j].name,
  15057. });
  15058. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15059. let _works = {
  15060. userid: b[j].userid,
  15061. ateacher: b[j].ateacher,
  15062. wid: b[j].id,
  15063. works: b[j].content,
  15064. sName: b[j].name,
  15065. type: 0,
  15066. ttype:b[j].ttype,
  15067. time: b[j].time,
  15068. score: b[j].score,
  15069. img: b[j].img,
  15070. likesCount: likesCount,
  15071. commentCount: commentCount,
  15072. isLikes: isLikes,
  15073. commentJson: commentJson,
  15074. likeJson:likeJson
  15075. };
  15076. if (this.isGroup) {
  15077. let isGw = 1;
  15078. for (
  15079. var groupI = 0;
  15080. groupI < this.courseGroup.group.length;
  15081. groupI++
  15082. ) {
  15083. let gid = this.courseGroup.group[groupI].id;
  15084. if (
  15085. this.courseGroupStudentUid[gid].indexOf(
  15086. b[j].userid
  15087. ) != -1
  15088. ) {
  15089. isGw = 2;
  15090. this.courseGroup.group[groupI].works[i].push(_works);
  15091. break;
  15092. }
  15093. }
  15094. if (isGw == 1) {
  15095. _worksStudent[i].push(_works);
  15096. }
  15097. } else {
  15098. _worksStudent[i].push(_works);
  15099. }
  15100. _worksStudent2[i].push(_works);
  15101. this.isWorksS[i].push({
  15102. uid: b[j].userid,
  15103. sName: b[j].name,
  15104. });
  15105. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15106. let _works = {
  15107. userid: b[j].userid,
  15108. ateacher: b[j].ateacher,
  15109. wid: b[j].id,
  15110. works: b[j].content,
  15111. sName: b[j].name,
  15112. type: 0,
  15113. ttype:b[j].ttype,
  15114. time: b[j].time,
  15115. score: b[j].score,
  15116. img: b[j].img,
  15117. likesCount: likesCount,
  15118. commentCount: commentCount,
  15119. isLikes: isLikes,
  15120. commentJson: commentJson,
  15121. likeJson:likeJson
  15122. };
  15123. if (this.isGroup) {
  15124. let isGw = 1;
  15125. for (
  15126. var groupI = 0;
  15127. groupI < this.courseGroup.group.length;
  15128. groupI++
  15129. ) {
  15130. let gid = this.courseGroup.group[groupI].id;
  15131. if (
  15132. this.courseGroupStudentUid[gid].indexOf(
  15133. b[j].userid
  15134. ) != -1
  15135. ) {
  15136. isGw = 2;
  15137. this.courseGroup.group[groupI].works[i].push(_works);
  15138. break;
  15139. }
  15140. }
  15141. if (isGw == 1) {
  15142. _worksStudent[i].push(_works);
  15143. }
  15144. } else {
  15145. _worksStudent[i].push(_works);
  15146. }
  15147. _worksStudent2[i].push(_works);
  15148. this.isWorksS[i].push({
  15149. uid: b[j].userid,
  15150. sName: b[j].name,
  15151. });
  15152. }
  15153. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15154. let _works = {
  15155. userid: b[j].userid,
  15156. ateacher: b[j].ateacher,
  15157. wid: b[j].id,
  15158. works: b[j].content,
  15159. sName: b[j].name,
  15160. type: 2,
  15161. ttype:b[j].ttype,
  15162. time: b[j].time,
  15163. score: b[j].score,
  15164. img: b[j].img,
  15165. likesCount: likesCount,
  15166. commentCount: commentCount,
  15167. isLikes: isLikes,
  15168. commentJson: commentJson,
  15169. likeJson:likeJson
  15170. };
  15171. if (this.isGroup) {
  15172. let isGw = 1;
  15173. for (
  15174. var groupI = 0;
  15175. groupI < this.courseGroup.group.length;
  15176. groupI++
  15177. ) {
  15178. let gid = this.courseGroup.group[groupI].id;
  15179. if (
  15180. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15181. -1
  15182. ) {
  15183. isGw = 2;
  15184. this.courseGroup.group[groupI].works[i].push(_works);
  15185. break;
  15186. }
  15187. }
  15188. if (isGw == 1) {
  15189. _worksStudent[i].push(_works);
  15190. }
  15191. } else {
  15192. _worksStudent[i].push(_works);
  15193. }
  15194. _worksStudent2[i].push(_works);
  15195. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15196. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15197. let _works = {
  15198. userid: b[j].userid,
  15199. ateacher: b[j].ateacher,
  15200. wid: b[j].id,
  15201. works: b[j].content,
  15202. sName: b[j].name,
  15203. type: 20,
  15204. ttype:b[j].ttype,
  15205. time: b[j].time,
  15206. score: b[j].score,
  15207. img: b[j].img,
  15208. likesCount: likesCount,
  15209. commentCount: commentCount,
  15210. isLikes: isLikes,
  15211. commentJson: commentJson,
  15212. likeJson:likeJson
  15213. };
  15214. if (this.isGroup) {
  15215. let isGw = 1;
  15216. for (
  15217. var groupI = 0;
  15218. groupI < this.courseGroup.group.length;
  15219. groupI++
  15220. ) {
  15221. let gid = this.courseGroup.group[groupI].id;
  15222. if (
  15223. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15224. -1
  15225. ) {
  15226. isGw = 2;
  15227. this.courseGroup.group[groupI].works[i].push(_works);
  15228. break;
  15229. }
  15230. }
  15231. if (isGw == 1) {
  15232. _worksStudent[i].push(_works);
  15233. }
  15234. } else {
  15235. _worksStudent[i].push(_works);
  15236. }
  15237. _worksStudent2[i].push(_works);
  15238. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15239. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15240. //问卷
  15241. let _work = {
  15242. userid: b[j].userid,
  15243. ateacher: b[j].ateacher,
  15244. wid: b[j].id,
  15245. works: b[j].content,
  15246. sName: b[j].name,
  15247. type: 2,
  15248. ttype:b[j].ttype,
  15249. time: b[j].time,
  15250. score: b[j].score,
  15251. img: b[j].img,
  15252. likesCount: likesCount,
  15253. commentCount: commentCount,
  15254. isLikes: isLikes,
  15255. commentJson: commentJson,
  15256. likeJson:likeJson
  15257. };
  15258. _worksStudent[i].push(_work);
  15259. _worksStudent2[i].push(_work);
  15260. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15261. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15262. //选择题
  15263. let _work = {
  15264. userid: b[j].userid,
  15265. ateacher: b[j].ateacher,
  15266. wid: b[j].id,
  15267. works: b[j].content,
  15268. sName: b[j].name,
  15269. type: 8,
  15270. ttype:b[j].ttype,
  15271. time: b[j].time,
  15272. score: b[j].score,
  15273. img: b[j].img,
  15274. likesCount: likesCount,
  15275. commentCount: commentCount,
  15276. isLikes: isLikes,
  15277. commentJson: commentJson,
  15278. likeJson:likeJson
  15279. };
  15280. _worksStudent[i].push(_work);
  15281. _worksStudent2[i].push(_work);
  15282. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15283. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15284. //选择题
  15285. let _work = {
  15286. userid: b[j].userid,
  15287. ateacher: b[j].ateacher,
  15288. wid: b[j].id,
  15289. works: b[j].content,
  15290. sName: b[j].name,
  15291. type: 9,
  15292. ttype:b[j].ttype,
  15293. time: b[j].time,
  15294. score: b[j].score,
  15295. img: b[j].img,
  15296. likesCount: likesCount,
  15297. commentCount: commentCount,
  15298. isLikes: isLikes,
  15299. commentJson: commentJson,
  15300. likeJson:likeJson
  15301. };
  15302. _worksStudent[i].push(_work);
  15303. _worksStudent2[i].push(_work);
  15304. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15305. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15306. //选择题
  15307. let _work = {
  15308. userid: b[j].userid,
  15309. ateacher: b[j].ateacher,
  15310. wid: b[j].id,
  15311. works: b[j].content,
  15312. sName: b[j].name,
  15313. type: 10,
  15314. ttype:b[j].ttype,
  15315. time: b[j].time,
  15316. score: b[j].score,
  15317. img: b[j].img,
  15318. likesCount: likesCount,
  15319. commentCount: commentCount,
  15320. isLikes: isLikes,
  15321. commentJson: commentJson,
  15322. likeJson:likeJson
  15323. };
  15324. _worksStudent[i].push(_work);
  15325. _worksStudent2[i].push(_work);
  15326. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15327. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15328. //选择题
  15329. let _work = {
  15330. userid: b[j].userid,
  15331. ateacher: b[j].ateacher,
  15332. wid: b[j].id,
  15333. works: b[j].content,
  15334. sName: b[j].name,
  15335. type: 13,
  15336. ttype:b[j].ttype,
  15337. time: b[j].time,
  15338. score: b[j].score,
  15339. img: b[j].img,
  15340. likesCount: likesCount,
  15341. commentCount: commentCount,
  15342. isLikes: isLikes,
  15343. commentJson: commentJson,
  15344. likeJson:likeJson
  15345. };
  15346. _worksStudent[i].push(_work);
  15347. _worksStudent2[i].push(_work);
  15348. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15349. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15350. //选择题
  15351. let _work = {
  15352. userid: b[j].userid,
  15353. ateacher: b[j].ateacher,
  15354. wid: b[j].id,
  15355. works: b[j].content,
  15356. sName: b[j].name,
  15357. type: 16,
  15358. ttype:b[j].ttype,
  15359. time: b[j].time,
  15360. score: b[j].score,
  15361. img: b[j].img,
  15362. likesCount: likesCount,
  15363. commentCount: commentCount,
  15364. isLikes: isLikes,
  15365. commentJson: commentJson,
  15366. aiCode: b[j].aiCode,
  15367. teacherCode: b[j].teacherCode,
  15368. likeJson:likeJson
  15369. };
  15370. _worksStudent[i].push(_work);
  15371. _worksStudent2[i].push(_work);
  15372. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15373. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15374. //英语口语
  15375. let _work = {
  15376. userid: b[j].userid,
  15377. ateacher: b[j].ateacher,
  15378. wid: b[j].id,
  15379. works: b[j].content,
  15380. sName: b[j].name,
  15381. type: 17,
  15382. ttype:b[j].ttype,
  15383. time: b[j].time,
  15384. score: b[j].score,
  15385. img: b[j].img,
  15386. likesCount: likesCount,
  15387. commentCount: commentCount,
  15388. isLikes: isLikes,
  15389. commentJson: commentJson,
  15390. likeJson:likeJson
  15391. };
  15392. _worksStudent[i].push(_work);
  15393. _worksStudent2[i].push(_work);
  15394. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15395. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15396. //交互视频
  15397. let _work = {
  15398. userid: b[j].userid,
  15399. ateacher: b[j].ateacher,
  15400. wid: b[j].id,
  15401. works: b[j].content,
  15402. sName: b[j].name,
  15403. type: 14,
  15404. ttype:b[j].ttype,
  15405. time: b[j].time,
  15406. score: b[j].score,
  15407. img: b[j].img,
  15408. likesCount: likesCount,
  15409. commentCount: commentCount,
  15410. isLikes: isLikes,
  15411. commentJson: commentJson,
  15412. likeJson:likeJson
  15413. };
  15414. _worksStudent[i].push(_work);
  15415. _worksStudent2[i].push(_work);
  15416. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15417. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15418. let _gindex = JSON.parse(b[j].content);
  15419. if (
  15420. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15421. b[j].userid
  15422. ) != -1
  15423. ) {
  15424. let _work = {
  15425. userid: b[j].userid,
  15426. ateacher: b[j].ateacher,
  15427. wid: b[j].id,
  15428. works: _gindex.url,
  15429. sName: b[j].name,
  15430. type: _gindex.type,
  15431. ttype:b[j].ttype,
  15432. time: b[j].time,
  15433. score: b[j].score,
  15434. img: b[j].img,
  15435. likesCount: likesCount,
  15436. commentCount: commentCount,
  15437. isLikes: isLikes,
  15438. commentJson: commentJson,
  15439. likeJson:likeJson
  15440. };
  15441. _worksStudent[i][_gindex.groupIndex].push(_work);
  15442. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15443. }
  15444. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15445. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15446. let _work = {
  15447. userid: b[j].userid,
  15448. ateacher: b[j].ateacher,
  15449. wid: b[j].id,
  15450. works: b[j].content,
  15451. sName: b[j].name ? b[j].name : b[j].userid,
  15452. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15453. ttype:b[j].ttype,
  15454. time: b[j].time,
  15455. score: b[j].score,
  15456. img: b[j].img,
  15457. likesCount: likesCount,
  15458. commentCount: commentCount,
  15459. isLikes: isLikes,
  15460. commentJson: commentJson,
  15461. likeJson:likeJson
  15462. };
  15463. _worksStudent[i].push(_work);
  15464. _worksStudent2[i].push(_work);
  15465. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15466. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15467. let _work = {
  15468. userid: b[j].userid,
  15469. ateacher: b[j].ateacher,
  15470. wid: b[j].id,
  15471. works: b[j].content,
  15472. sName: b[j].name ? b[j].name : b[j].userid,
  15473. type: 12,
  15474. ttype:b[j].ttype,
  15475. time: b[j].time,
  15476. score: b[j].score,
  15477. img: b[j].img,
  15478. likesCount: likesCount,
  15479. commentCount: commentCount,
  15480. isLikes: isLikes,
  15481. commentJson: commentJson,
  15482. likeJson:likeJson
  15483. };
  15484. _worksStudent[i].push(_work);
  15485. _worksStudent2[i].push(_work);
  15486. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15487. } else if (
  15488. a[i].tool[0] == 57 &&
  15489. b[j].atool == 57 &&
  15490. b[j].type == 12
  15491. ) {
  15492. let _work = {
  15493. userid: b[j].userid,
  15494. ateacher: b[j].ateacher,
  15495. wid: b[j].id,
  15496. works: b[j].content,
  15497. sName: b[j].name ? b[j].name : b[j].userid,
  15498. type: 12,
  15499. ttype:b[j].ttype,
  15500. time: b[j].time,
  15501. score: b[j].score,
  15502. img: b[j].img,
  15503. likesCount: likesCount,
  15504. commentCount: commentCount,
  15505. isLikes: isLikes,
  15506. commentJson: commentJson,
  15507. likeJson:likeJson
  15508. };
  15509. _worksStudent[i].push(_work);
  15510. _worksStudent2[i].push(_work);
  15511. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15512. } else if (
  15513. a[i].tool[0] == 57 &&
  15514. b[j].atool == 57 &&
  15515. b[j].type == 15
  15516. ) {
  15517. let _work = {
  15518. userid: b[j].userid,
  15519. ateacher: b[j].ateacher,
  15520. wid: b[j].id,
  15521. works: b[j].content,
  15522. sName: b[j].name ? b[j].name : b[j].userid,
  15523. type: 15,
  15524. ttype:b[j].ttype,
  15525. time: b[j].time,
  15526. score: b[j].score,
  15527. img: b[j].img,
  15528. likesCount: likesCount,
  15529. commentCount: commentCount,
  15530. isLikes: isLikes,
  15531. commentJson: commentJson,
  15532. likeJson:likeJson
  15533. };
  15534. _worksStudent[i].push(_work);
  15535. _worksStudent2[i].push(_work);
  15536. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15537. }
  15538. }
  15539. }
  15540. if (_worksStudent[i] && _worksStudent[i].length) {
  15541. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15542. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15543. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15544. var scoreA = parseFloat(jscoreA);
  15545. var scoreB = parseFloat(jscoreB);
  15546. if (scoreA == scoreB) {
  15547. return b.likesCount - a.likesCount;
  15548. }
  15549. return scoreB - scoreA;
  15550. });
  15551. if (this.isGroup) {
  15552. for (
  15553. var groupI = 0;
  15554. groupI < this.courseGroup.group.length;
  15555. groupI++
  15556. ) {
  15557. this.courseGroup.group[groupI].works[i] =
  15558. this.courseGroup.group[groupI].works[i].sort(function (
  15559. a,
  15560. b
  15561. ) {
  15562. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15563. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15564. var scoreA = parseFloat(jscoreA);
  15565. var scoreB = parseFloat(jscoreB);
  15566. if (scoreA == scoreB) {
  15567. return b.likesCount - a.likesCount;
  15568. }
  15569. return scoreB - scoreA;
  15570. });
  15571. }
  15572. }
  15573. }
  15574. }
  15575. this.timeWorkList = _worksStudent2;
  15576. for (var i = 0; i < a.length; i++) {
  15577. for (var j = 0; j < b.length; j++) {
  15578. var data = b[j];
  15579. if (i == b[j].tool) {
  15580. if (data.type == 2 || data.type == 8) {
  15581. for (var z = 0; z < this.checkJson[i].length; z++) {
  15582. this.checkJson[i][z].checkPerent = [];
  15583. this.checkJson[i][z].right = Math.round(
  15584. (this.checkJson[i][z].rightPerson.length /
  15585. parseInt(_worksStudent[i].length)) *
  15586. 100
  15587. );
  15588. let aaaa = this.checkJson[i][z];
  15589. for (
  15590. var k = 0;
  15591. k < this.checkJson[i][z].checkCount.length;
  15592. k++
  15593. ) {
  15594. this.checkJson[i][z].checkPerent.push(
  15595. Math.round(
  15596. (this.checkJson[i][z].checkCount[k] /
  15597. parseInt(_worksStudent[i].length)) *
  15598. 100
  15599. )
  15600. );
  15601. }
  15602. }
  15603. } else if (data.type == 9) {
  15604. for (var z = 0; z < this.checkJson[i].length; z++) {
  15605. this.checkJson[i][z].checkPerent = [];
  15606. this.checkJson[i][z].right = Math.round(
  15607. (this.checkJson[i][z].rightPerson.length /
  15608. this.checkJson[i][z].checkPerson.length) *
  15609. 100
  15610. );
  15611. }
  15612. }
  15613. }
  15614. }
  15615. }
  15616. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15617. this.joinGroup(gindex);
  15618. }
  15619. this.worksStudent = _worksStudent;
  15620. this.selectWorksStudent();
  15621. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15622. this.$nextTick(()=>{
  15623. setTimeout(()=>{
  15624. setTimeout(()=>{
  15625. this.panToolHeight('tool-'+ci);
  15626. }, 500)
  15627. }, 0)
  15628. })
  15629. }
  15630. this.selectSWorksLoading = false
  15631. })
  15632. .catch((err) => {
  15633. this.selectSWorksLoading = false
  15634. console.error(err);
  15635. });
  15636. },
  15637. pngToWhiteBg(file) {
  15638. const _file = file;
  15639. let read = new FileReader();
  15640. read.readAsDataURL(file); // 文件转base64
  15641. return new Promise((resolve, reject) => {
  15642. read.onload = (e) => {
  15643. let img = new Image();
  15644. img.src = e.target.result;
  15645. img.onload = async () => {
  15646. // 生成canvas
  15647. let canvas = document.createElement("canvas");
  15648. let context = canvas.getContext("2d");
  15649. // 绘制图片到canvas上
  15650. canvas.width = img.width;
  15651. canvas.height = img.height;
  15652. // 在canvas绘制前填充白色背景
  15653. context.fillStyle = "#fff";
  15654. context.fillRect(0, 0, canvas.width, canvas.height);
  15655. context.drawImage(img, 0, 0);
  15656. let base64 = canvas.toDataURL(file["type"], 1);
  15657. let newFile = this.dataUrlToFile(base64, _file);
  15658. resolve(newFile);
  15659. };
  15660. };
  15661. });
  15662. },
  15663. dataUrlToFile(dataurl, file) {
  15664. let arr = dataurl.split(","),
  15665. mime = arr[0].match(/:(.*?);/)[1],
  15666. bstr = atob(arr[1]),
  15667. n = bstr.length,
  15668. u8arr = new Uint8Array(n);
  15669. while (n--) {
  15670. u8arr[n] = bstr.charCodeAt(n);
  15671. }
  15672. // return new Blob([u8arr], { type: mime });
  15673. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15674. type: mime,
  15675. });
  15676. },
  15677. async beforeUpload1(event, type, i) {
  15678. // this.$message.success('进入上传')
  15679. var file = "";
  15680. if (type == 5) {
  15681. file = event;
  15682. } else {
  15683. file = event.target.files[0];
  15684. }
  15685. var credentials = {
  15686. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15687. secretAccessKey: "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",
  15688. }; //秘钥形式的登录上传
  15689. window.AWS.config.update(credentials);
  15690. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15691. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15692. var _this = this;
  15693. _this.progress = 0;
  15694. _this.proVisible = true;
  15695. _this.isFinishSize = 0;
  15696. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15697. var b = [
  15698. "DOC",
  15699. "DOCX",
  15700. "DOCM",
  15701. "DOTM",
  15702. "DOTX",
  15703. "PPTX",
  15704. "PPSX",
  15705. "PPT",
  15706. "PPS",
  15707. "PPTM",
  15708. "POTM",
  15709. "PPAM",
  15710. "POTX",
  15711. "PPSM",
  15712. ];
  15713. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15714. var photoA = [
  15715. "BMP",
  15716. "GIF",
  15717. "PNG",
  15718. "JPEG",
  15719. "JPEG",
  15720. "JPG",
  15721. "TIF",
  15722. "PCX",
  15723. "TGA",
  15724. "EXIF",
  15725. "FPX",
  15726. "SVG",
  15727. "APNG",
  15728. ];
  15729. // if (
  15730. // b.indexOf(
  15731. // file.name
  15732. // .split(".")
  15733. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15734. // ) != -1
  15735. // ) {
  15736. // if (file.size / 1024 / 1024 > 10) {
  15737. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15738. // return;
  15739. // }
  15740. // } else if (
  15741. // excelA.indexOf(
  15742. // file.name
  15743. // .split(".")
  15744. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15745. // ) != "-1"
  15746. // ) {
  15747. // if (file.size / 1024 / 1024 > 5) {
  15748. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15749. // return;
  15750. // }
  15751. // }
  15752. if (
  15753. photoA.indexOf(
  15754. file.name
  15755. .split(".")
  15756. [file.name.split(".").length - 1].toLocaleUpperCase()
  15757. ) != -1 &&
  15758. type != 4
  15759. ) {
  15760. // const blob = await imageConversion.compress(file, 0.8)
  15761. file = await this.pngToWhiteBg(file);
  15762. const blob = await imageConversion.compressAccurately(file, 256);
  15763. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15764. file = new File([blob], file.name, { type: file.type });
  15765. }
  15766. if (file) {
  15767. var params = {
  15768. Key:
  15769. file.name.split(".")[0] +
  15770. new Date().getTime() +
  15771. "." +
  15772. file.name.split(".")[file.name.split(".").length - 1],
  15773. ContentType: file.type,
  15774. Body: file,
  15775. "Access-Control-Allow-Credentials": "*",
  15776. ACL: "public-read",
  15777. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15778. var options = {
  15779. // partSize: 2048 * 1024 * 1024,
  15780. partSize: 1024 * 1024 * 1024,
  15781. queueSize: 2,
  15782. leavePartsOnError: true,
  15783. };
  15784. bucket
  15785. .upload(params, options)
  15786. .on("httpUploadProgress", function (evt) {
  15787. //这里可以写进度条
  15788. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15789. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15790. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15791. })
  15792. .send(function (err, data) {
  15793. _this.progress = 100;
  15794. _this.isFinishSize = _this.isAllSize;
  15795. setTimeout(() => {
  15796. _this.proVisible = false;
  15797. }, 1000);
  15798. if (err) {
  15799. var a = _this.$refs.upload1.uploadFiles;
  15800. a.splice(a.length - 1, a.length);
  15801. _this.$message.error(this.lang.ssUploadFailed);
  15802. } else {
  15803. // _this.$message.success('上传成功')
  15804. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15805. var c = [
  15806. "AVI",
  15807. "NAVI",
  15808. "MPEG",
  15809. "ASF",
  15810. "MOV",
  15811. "WMV",
  15812. "3GP",
  15813. "RM",
  15814. "RMVB",
  15815. "FLV",
  15816. "F4V",
  15817. "H.264",
  15818. "H.265",
  15819. "REAL VIDEO",
  15820. "MKV",
  15821. "WebM",
  15822. "HDDVD",
  15823. "MP4",
  15824. "MPG",
  15825. "M4V",
  15826. "MGV",
  15827. "OGV",
  15828. "QTM",
  15829. "STR",
  15830. "AMC",
  15831. "DVX",
  15832. "EVO",
  15833. "DAT",
  15834. "OGG",
  15835. "OGM",
  15836. ];
  15837. if (type == 1) {
  15838. _this.studyJuri[0].cover.push({
  15839. name: file.name,
  15840. url: data.Location,
  15841. uid: file.uid,
  15842. });
  15843. if (
  15844. c.indexOf(
  15845. _this.studyJuri[0].cover[0].url
  15846. .split(".")
  15847. [
  15848. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15849. ].toLocaleUpperCase()
  15850. ) != -1
  15851. ) {
  15852. _this.fileType = 2;
  15853. } else if (
  15854. b.indexOf(
  15855. _this.studyJuri[0].cover[0].url
  15856. .split(".")
  15857. [
  15858. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15859. ].toLocaleUpperCase()
  15860. ) != -1
  15861. ) {
  15862. _this.fileType = 1;
  15863. } else if (
  15864. photoA.indexOf(
  15865. _this.studyJuri[0].cover[0].url
  15866. .split(".")
  15867. [
  15868. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15869. ].toLocaleUpperCase()
  15870. ) != -1
  15871. ) {
  15872. _this.fileType = 0;
  15873. } else {
  15874. _this.fileType = 3;
  15875. }
  15876. _this.imgChange(null, null, type);
  15877. } else if (type == 2) {
  15878. _this.upToolImg = data.Location;
  15879. _this.imgChange(null, null, type);
  15880. _this.addCourseWorks(i);
  15881. } else if (type == 4) {
  15882. _this.addPz("3", data.Location);
  15883. } else if (type == 5) {
  15884. _this.addImgDrawImG(data.Location);
  15885. } else if (type == 6) {
  15886. var _ftype = 1;
  15887. if (
  15888. c.indexOf(
  15889. data.Location.split(".")[
  15890. data.Location.split(".").length - 1
  15891. ].toLocaleUpperCase()
  15892. ) != -1
  15893. ) {
  15894. _ftype = 5;
  15895. } else if (
  15896. b.indexOf(
  15897. data.Location.split(".")[
  15898. data.Location.split(".").length - 1
  15899. ].toLocaleUpperCase()
  15900. ) != -1
  15901. ) {
  15902. _ftype = 4;
  15903. } else {
  15904. _ftype = 1;
  15905. }
  15906. _this.plworkFile.push({
  15907. name: file.name,
  15908. url: data.Location,
  15909. uid: file.uid,
  15910. fileType: _ftype,
  15911. username:
  15912. _this.plworkFile.length > 10
  15913. ? _this.plworkFile.length + 1
  15914. : "0" + (_this.plworkFile.length + 1),
  15915. });
  15916. } else if (type == 7) {
  15917. _this.addCourseWorksGong(i, data.Location, 32);
  15918. } else if (type == 8) {
  15919. _this.addCourseWorksGong(i, data.Location, 57);
  15920. }
  15921. _this.imgChange(null, null, type);
  15922. console.log(data.Location);
  15923. // _this.$message.success('上传成功'+data.Location)
  15924. }
  15925. });
  15926. }
  15927. },
  15928. async beforeUpload3(event, type, i) {
  15929. // this.$message.success('进入上传')
  15930. let file = "";
  15931. let cfindex2 = 0;
  15932. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15933. file = event.target.files[cfindex];
  15934. var credentials = {
  15935. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15936. secretAccessKey: "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",
  15937. }; //秘钥形式的登录上传
  15938. window.AWS.config.update(credentials);
  15939. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15940. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15941. var _this = this;
  15942. // _this.progress = 0;
  15943. _this.proVisible2 = true;
  15944. var b = [
  15945. "DOC",
  15946. "DOCX",
  15947. "DOCM",
  15948. "DOTM",
  15949. "DOTX",
  15950. "PPTX",
  15951. "PPSX",
  15952. "PPT",
  15953. "PPS",
  15954. "PPTM",
  15955. "POTM",
  15956. "PPAM",
  15957. "POTX",
  15958. "PPSM",
  15959. ];
  15960. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15961. var photoA = [
  15962. "BMP",
  15963. "GIF",
  15964. "PNG",
  15965. "JPEG",
  15966. "JPG",
  15967. "TIF",
  15968. "PCX",
  15969. "TGA",
  15970. "EXIF",
  15971. "FPX",
  15972. "SVG",
  15973. "APNG",
  15974. ];
  15975. if (
  15976. photoA.indexOf(
  15977. file.name
  15978. .split(".")
  15979. [file.name.split(".").length - 1].toLocaleUpperCase()
  15980. ) != -1 &&
  15981. type != 4
  15982. ) {
  15983. // const blob = await imageConversion.compress(file, 0.8)
  15984. file = await this.pngToWhiteBg(file);
  15985. const blob = await imageConversion.compressAccurately(file, 256);
  15986. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15987. file = new File([blob], file.name, { type: file.type });
  15988. }
  15989. if (file) {
  15990. var params = {
  15991. Key:
  15992. file.name.split(".")[0] +
  15993. new Date().getTime() +
  15994. "." +
  15995. file.name.split(".")[file.name.split(".").length - 1],
  15996. ContentType: file.type,
  15997. Body: file,
  15998. "Access-Control-Allow-Credentials": "*",
  15999. ACL: "public-read",
  16000. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16001. var options = {
  16002. // partSize: 2048 * 1024 * 1024,
  16003. partSize: 1024 * 1024 * 1024,
  16004. queueSize: 2,
  16005. leavePartsOnError: true,
  16006. };
  16007. bucket
  16008. .upload(params, options)
  16009. .on("httpUploadProgress", function (evt) {
  16010. //这里可以写进度条
  16011. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16012. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16013. })
  16014. .send(function (err, data) {
  16015. // _this.progress = 100;
  16016. cfindex2++;
  16017. setTimeout(() => {
  16018. if (
  16019. cfindex2 == event.target.files.length - 1 ||
  16020. cfindex2 > event.target.files.length - 1
  16021. ) {
  16022. _this.proVisible2 = false;
  16023. }
  16024. }, 1000);
  16025. if (err) {
  16026. var a = _this.$refs.upload1.uploadFiles;
  16027. a.splice(a.length - 1, a.length);
  16028. _this.$message.error(this.lang.ssUploadFailed);
  16029. } else {
  16030. // _this.$message.success('上传成功')
  16031. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16032. var c = [
  16033. "AVI",
  16034. "NAVI",
  16035. "MPEG",
  16036. "ASF",
  16037. "MOV",
  16038. "WMV",
  16039. "3GP",
  16040. "RM",
  16041. "RMVB",
  16042. "FLV",
  16043. "F4V",
  16044. "H.264",
  16045. "H.265",
  16046. "REAL VIDEO",
  16047. "MKV",
  16048. "WebM",
  16049. "HDDVD",
  16050. "MP4",
  16051. "MPG",
  16052. "M4V",
  16053. "MGV",
  16054. "OGV",
  16055. "QTM",
  16056. "STR",
  16057. "AMC",
  16058. "DVX",
  16059. "EVO",
  16060. "DAT",
  16061. "OGG",
  16062. "OGM",
  16063. ];
  16064. if (type == 1) {
  16065. _this.studyJuri[0].cover.push({
  16066. name: file.name,
  16067. url: data.Location,
  16068. uid: file.uid,
  16069. });
  16070. if (
  16071. c.indexOf(
  16072. _this.studyJuri[0].cover[0].url
  16073. .split(".")
  16074. [
  16075. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16076. ].toLocaleUpperCase()
  16077. ) != -1
  16078. ) {
  16079. _this.fileType = 2;
  16080. } else if (
  16081. b.indexOf(
  16082. _this.studyJuri[0].cover[0].url
  16083. .split(".")
  16084. [
  16085. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16086. ].toLocaleUpperCase()
  16087. ) != -1
  16088. ) {
  16089. _this.fileType = 1;
  16090. } else {
  16091. _this.fileType = 0;
  16092. }
  16093. _this.imgChange(null, null, type);
  16094. } else if (type == 2) {
  16095. _this.upToolImg = data.Location;
  16096. _this.imgChange(null, null, type);
  16097. _this.addCourseWorks(i);
  16098. } else if (type == 4) {
  16099. _this.addPz("3", data.Location);
  16100. } else if (type == 5) {
  16101. _this.addImgDrawImG(data.Location);
  16102. } else if (type == 6) {
  16103. var _ftype = 1;
  16104. if (
  16105. c.indexOf(
  16106. data.Location.split(".")[
  16107. data.Location.split(".").length - 1
  16108. ].toLocaleUpperCase()
  16109. ) != -1
  16110. ) {
  16111. _ftype = 5;
  16112. } else if (
  16113. b.indexOf(
  16114. data.Location.split(".")[
  16115. data.Location.split(".").length - 1
  16116. ].toLocaleUpperCase()
  16117. ) != -1
  16118. ) {
  16119. _ftype = 4;
  16120. } else {
  16121. _ftype = 1;
  16122. }
  16123. _this.plworkFile.push({
  16124. name: file.name,
  16125. url: data.Location,
  16126. uid: file.uid,
  16127. fileType: _ftype,
  16128. username:
  16129. _this.plworkFile.length + 1 > 9
  16130. ? _this.plworkFile.length + 1
  16131. : "0" + (_this.plworkFile.length + 1),
  16132. });
  16133. }
  16134. _this.imgChange(null, null, type);
  16135. console.log(data.Location);
  16136. // _this.$message.success('上传成功'+data.Location)
  16137. }
  16138. });
  16139. }
  16140. }
  16141. },
  16142. beforeUpload2(event, type) {
  16143. var file = event.target.files[0];
  16144. var credentials = {
  16145. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16146. secretAccessKey: "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",
  16147. }; //秘钥形式的登录上传
  16148. window.AWS.config.update(credentials);
  16149. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16150. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16151. var _this = this;
  16152. _this.progress = 0;
  16153. _this.proVisible = true;
  16154. if (file) {
  16155. var params = {
  16156. Key:
  16157. file.name.split(".")[0] +
  16158. new Date().getTime() +
  16159. "." +
  16160. file.name.split(".")[file.name.split(".").length - 1],
  16161. ContentType: file.type,
  16162. Body: file,
  16163. "Access-Control-Allow-Credentials": "*",
  16164. ACL: "public-read",
  16165. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16166. var options = {
  16167. partSize: 2048 * 1024 * 1024,
  16168. queueSize: 2,
  16169. leavePartsOnError: true,
  16170. };
  16171. bucket
  16172. .upload(params, options)
  16173. .on("httpUploadProgress", function (evt) {
  16174. //这里可以写进度条
  16175. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16176. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16177. })
  16178. .send(function (err, data) {
  16179. _this.progress = 100;
  16180. setTimeout(() => {
  16181. _this.proVisible = false;
  16182. }, 1000);
  16183. if (err) {
  16184. var a = _this.$refs.upload1.uploadFiles;
  16185. a.splice(a.length - 1, a.length);
  16186. _this.$message.error(this.lang.ssUploadFailed);
  16187. } else {
  16188. if (type == 2) {
  16189. _this.studyJuri[0].upVedio.push({
  16190. name: file.name,
  16191. url: data.Location,
  16192. uid: file.uid,
  16193. });
  16194. _this.imgChange(null, null, type);
  16195. } else if (type == 3) {
  16196. _this.studyJuri[0].upFile.push({
  16197. name: file.name,
  16198. url: data.Location,
  16199. uid: file.uid,
  16200. });
  16201. _this.imgChange(null, null, type);
  16202. }
  16203. console.log(data.Location);
  16204. }
  16205. });
  16206. }
  16207. },
  16208. allScrell() {
  16209. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16210. },
  16211. nextOrpreSteps(t) {
  16212. if (this.IsFollow && this.tType == 2) {
  16213. this.$message.error(this.lang.ssFollowModeOn);
  16214. return;
  16215. }
  16216. var b = this.chapInfoList.length - 1;
  16217. if (t == 0) {
  16218. if (this.courseType == 0) {
  16219. if (this.taskCount == 0) {
  16220. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16221. if (this.IsLookOpen) {
  16222. if (
  16223. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16224. ) {
  16225. if (
  16226. this.courseDetail.userid != this.userid &&
  16227. (!this.courseDetail.course_teacher ||
  16228. (this.courseDetail.course_teacher &&
  16229. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16230. ) {
  16231. this.$message.error(this.lang.ssTaskLocked);
  16232. } else {
  16233. this.$message.error(this.lang.ssPrevTaskLocked);
  16234. }
  16235. return;
  16236. }
  16237. }
  16238. this.navList[this.courseType].isOpen = false;
  16239. this.courseType = b;
  16240. this.taskCount =
  16241. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16242. .length - 1;
  16243. this.navList[this.courseType].isOpen = true;
  16244. } else {
  16245. this.taskCount--;
  16246. }
  16247. } else {
  16248. if (this.taskCount == 0) {
  16249. this.navList[this.courseType].isOpen = false;
  16250. this.courseType--;
  16251. this.taskCount =
  16252. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16253. .length - 1;
  16254. this.navList[this.courseType].isOpen = true;
  16255. } else {
  16256. this.taskCount--;
  16257. }
  16258. }
  16259. } else {
  16260. if (this.courseType == b) {
  16261. if (
  16262. this.taskCount ==
  16263. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16264. 1
  16265. ) {
  16266. this.navList[this.courseType].isOpen = false;
  16267. this.courseType = 0;
  16268. this.taskCount = 0;
  16269. this.navList[this.courseType].isOpen = true;
  16270. } else {
  16271. var bbb = parseInt(this.taskCount) + 1;
  16272. if (
  16273. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16274. .isLook &&
  16275. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  16276. (this.courseDetail.course_teacher &&
  16277. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16278. this.IsLookOpen
  16279. ) {
  16280. this.$message.error(this.lang.ssTaskLocked);
  16281. return;
  16282. }
  16283. this.taskCount++;
  16284. if (this.IsLookOpen) {
  16285. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16286. this.taskCount
  16287. ].isLook = true;
  16288. this.addCourseState(3);
  16289. }
  16290. }
  16291. } else {
  16292. if (
  16293. this.taskCount ==
  16294. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16295. 1
  16296. ) {
  16297. var bbb = parseInt(this.courseType) + 1;
  16298. if (
  16299. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16300. this.courseDetail.userid != this.userid &&
  16301. (!this.courseDetail.course_teacher ||
  16302. (this.courseDetail.course_teacher &&
  16303. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16304. this.IsLookOpen
  16305. ) {
  16306. this.$message.error(this.lang.ssTaskLocked);
  16307. return;
  16308. }
  16309. this.navList[this.courseType].isOpen = false;
  16310. this.courseType++;
  16311. this.taskCount = 0;
  16312. this.navList[this.courseType].isOpen = true;
  16313. } else {
  16314. var bbb = parseInt(this.taskCount) + 1;
  16315. if (
  16316. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16317. .isLook &&
  16318. this.courseDetail.userid != this.userid &&
  16319. (!this.courseDetail.course_teacher ||
  16320. (this.courseDetail.course_teacher &&
  16321. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16322. this.IsLookOpen
  16323. ) {
  16324. this.$message.error(this.lang.ssTaskLocked);
  16325. return;
  16326. }
  16327. this.taskCount++;
  16328. }
  16329. if (this.IsLookOpen) {
  16330. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16331. this.taskCount
  16332. ].isLook = true;
  16333. this.addCourseState(3);
  16334. }
  16335. }
  16336. // if (
  16337. // this.taskCount ==
  16338. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16339. // ) {
  16340. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16341. // } else {
  16342. // this.taskCount++;
  16343. // }
  16344. }
  16345. document.scrollingElement.scrollTop = 0;
  16346. this.showType = 7;
  16347. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16348. // if (this.vedio[this.taskCount].length > 0) {
  16349. // var a =
  16350. // document.getElementsByClassName("box_course")[this.taskCount]
  16351. // .offsetHeight;
  16352. // document.getElementsByClassName("vedioList")[
  16353. // this.taskCount
  16354. // ].style.height = a + "px";
  16355. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16356. // a - 40 + "px";
  16357. // }
  16358. this.isNoHomeWork = false;
  16359. (this.studyJuri = [
  16360. {
  16361. content: "",
  16362. cover: [],
  16363. upVedio: [],
  16364. upFile: [],
  16365. },
  16366. ]),
  16367. (this.radio = []);
  16368. this.isClickNav = "";
  16369. this.selectPz();
  16370. this.getHomeWork();
  16371. this.getCourseDetail(2);
  16372. this.$forceUpdate();
  16373. if ((this.courseDetail.userid == this.userid ||
  16374. (this.courseDetail.course_teacher &&
  16375. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  16376. this.setCTask();
  16377. }
  16378. },
  16379. openTask(s, n, i,ctype) {
  16380. // 这段代码没用开启了跟随学生侧边栏会隐藏掉
  16381. if (this.IsFollow && this.tType == 2) {
  16382. this.$message.error(this.lang.ssFollowModeOn);
  16383. return;
  16384. }
  16385. if (this.IsLookOpen &&
  16386. this.courseDetail.userid != this.userid &&
  16387. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  16388. if (
  16389. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16390. this.courseDetail.userid != this.userid &&
  16391. (!this.courseDetail.course_teacher ||
  16392. (this.courseDetail.course_teacher &&
  16393. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16394. ) {
  16395. this.$message.error(this.lang.ssTaskLocked);
  16396. return;
  16397. }
  16398. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16399. if (
  16400. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16401. .isLook
  16402. ) {
  16403. this.$message.error(this.lang.ssPrevTaskLocked);
  16404. return;
  16405. }
  16406. } else if (s > this.courseType) {
  16407. if (n > 0) {
  16408. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16409. this.$message.error(this.lang.ssPrevTaskLocked);
  16410. return;
  16411. }
  16412. } else {
  16413. if (
  16414. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16415. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16416. ].isLook
  16417. ) {
  16418. this.$message.error(this.lang.ssPrevTaskLocked);
  16419. return;
  16420. }
  16421. }
  16422. }
  16423. }
  16424. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  16425. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16426. return;
  16427. }
  16428. let flag = this.courseType==s;
  16429. this.courseType = s;
  16430. this.navId = i;
  16431. this.taskCount = n;
  16432. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  16433. if(ctype == 2){
  16434. this.navList[s].task[n].isOpen = true
  16435. }else{
  16436. this.navList[this.courseType].task[this.taskCount].isOpen =
  16437. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16438. }
  16439. if (this.IsLookOpen) {
  16440. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16441. this.taskCount
  16442. ].isLook = true;
  16443. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  16444. this.addCourseState(3,yym);
  16445. }
  16446. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16447. this.isCloseList[ci].isClose = 0;
  16448. this.isCloseList[ci].isCloseBoolean = false;
  16449. this.$nextTick(()=>{
  16450. setTimeout(()=>{
  16451. setTimeout(()=>{
  16452. this.panToolHeight('tool-'+ci);
  16453. }, 0)
  16454. }, 0)
  16455. })
  16456. }
  16457. this.showType = 0;
  16458. this.isNoHomeWork = false;
  16459. (this.studyJuri = [
  16460. {
  16461. content: "",
  16462. cover: [],
  16463. upVedio: [],
  16464. upFile: [],
  16465. },
  16466. ]),
  16467. (this.radio = []);
  16468. document.scrollingElement.scrollTop = 0;
  16469. // setTimeout(() => {
  16470. // let a = document.getElementById(i);
  16471. // if (a.offsetTop - 110 == 0) {
  16472. // window.scrollTo(0, 0);
  16473. // } else {
  16474. // window.scrollTo(0, a.offsetTop);
  16475. // }
  16476. // }, 0);
  16477. for (var z = 0; z < this.navList.length; z++) {
  16478. for (var q = 0; q < this.navList[z].task.length; q++) {
  16479. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16480. this.navList[z].task[q].tool[w].isTool = false;
  16481. }
  16482. }
  16483. }
  16484. this.selectPz();
  16485. this.getHomeWork();
  16486. this.getCourseDetail(2);
  16487. if ((this.courseDetail.userid == this.userid ||
  16488. (this.courseDetail.course_teacher &&
  16489. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  16490. this.setCTask();
  16491. }
  16492. if(flag){
  16493. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16494. }else{
  16495. 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>`)
  16496. }
  16497. },
  16498. get(i) {
  16499. if (this.IsFollow && this.tType == 2) {
  16500. this.$message.error(this.lang.ssFollowModeOn);
  16501. return;
  16502. }
  16503. // for(var k=0;k<this.navList.length;k++){
  16504. // this.navList[k].isOpen = false;
  16505. // }
  16506. // this.navList[i].isOpen = true;
  16507. let a = this.navList[i].isOpen
  16508. this.navList[i].isOpen = !this.navList[i].isOpen;
  16509. this.$forceUpdate()
  16510. if (this.navList[i].isOpen) {
  16511. this.openTask(i, 0, (i + "-0"),2);
  16512. }
  16513. },
  16514. addQuestion() {
  16515. this.answerList.push({
  16516. answerTitle: this.answerQ,
  16517. answer: this.questionAnswer,
  16518. });
  16519. let params = [
  16520. {
  16521. uid: this.userid,
  16522. cid: this.id,
  16523. stage: this.courseType,
  16524. task: this.taskCount,
  16525. tool: this.toolindex,
  16526. content: JSON.stringify(this.answerList),
  16527. type: 3,
  16528. },
  16529. ];
  16530. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  16531. this.homeWorkLoading = true
  16532. this.ajax
  16533. .post(this.$store.state.api + "addCourseWorks", params)
  16534. .then((res) => {
  16535. this.$message({
  16536. message: this.lang.ssSubmitSuccess,
  16537. type: "success",
  16538. });
  16539. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  16540. setTimeout(() => {
  16541. this.homeWorkLoading = false
  16542. }, 500);
  16543. this.answerList = [];
  16544. this.answerDialogVisible = false;
  16545. this.selectStudent();
  16546. this.selectSWorks();
  16547. this.selectSLook();
  16548. })
  16549. .catch((err) => {
  16550. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  16551. setTimeout(() => {
  16552. this.homeWorkLoading = false
  16553. }, 500);
  16554. this.$message.error(this.lang.ssSubmitFailed);
  16555. console.error(err);
  16556. });
  16557. },
  16558. addQuestionTeacher() {
  16559. this.answerList.push({
  16560. answerTitle: this.answerQ,
  16561. answer: this.questionAnswer,
  16562. });
  16563. let params = [
  16564. {
  16565. uid: this.sStudent.userid,
  16566. cid: this.id,
  16567. stage: this.courseType,
  16568. task: this.taskCount,
  16569. tool: this.toolindex,
  16570. content: JSON.stringify(this.answerList),
  16571. type: 3,
  16572. ateacher: this.userid,
  16573. },
  16574. ];
  16575. this.ajax
  16576. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16577. .then((res) => {
  16578. this.$message({
  16579. message: this.lang.ssSubmitSuccess,
  16580. type: "success",
  16581. });
  16582. this.answerList = [];
  16583. this.questionAnswer = "";
  16584. this.answerDialogVisibleTeacher = false;
  16585. this.selectStudent();
  16586. this.selectSWorks();
  16587. this.selectSLook();
  16588. })
  16589. .catch((err) => {
  16590. this.$message.error(this.lang.ssSubmitFailed);
  16591. console.error(err);
  16592. });
  16593. },
  16594. refreshCourse() {
  16595. // window.location.reload();
  16596. this.navList = [];
  16597. this.getCourseDetail(1);
  16598. },
  16599. getCourseDetail(type, gindex) {
  16600. let loading;
  16601. if (type != 2) {
  16602. loading = this.$loading.service({
  16603. background: "rgba(255, 255, 255, 0.7)",
  16604. target: document.querySelector(".student_table"),
  16605. });
  16606. }
  16607. this.downLoading = false
  16608. // this.navList[0].isOpen = false;
  16609. // this.navList[this.courseType].isOpen = true;
  16610. // this.courseType = this.courseTypeLine;
  16611. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16612. let params = {
  16613. courseId: this.id,
  16614. };
  16615. this.ajax
  16616. .get(this.$store.state.api + "selectCourseDetail3", params)
  16617. .then((res) => {
  16618. if ((this.courseDetail.userid == this.userid ||
  16619. (this.courseDetail.course_teacher &&
  16620. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  16621. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  16622. }
  16623. if (type != 2) {
  16624. loading.close();
  16625. if (
  16626. this.courseType >
  16627. JSON.parse(res.data[0][0].chapters).length - 1
  16628. ) {
  16629. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16630. }
  16631. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16632. .chapterInfo[0].taskJson;
  16633. var b = [
  16634. "AVI",
  16635. "NAVI",
  16636. "MPEG",
  16637. "ASF",
  16638. "MOV",
  16639. "WMV",
  16640. "3GP",
  16641. "RM",
  16642. "RMVB",
  16643. "FLV",
  16644. "F4V",
  16645. "H.264",
  16646. "H.265",
  16647. "REAL VIDEO",
  16648. "MKV",
  16649. "WebM",
  16650. "HDDVD",
  16651. "MP4",
  16652. "MPG",
  16653. "M4V",
  16654. "MGV",
  16655. "OGV",
  16656. "QTM",
  16657. "STR",
  16658. "AMC",
  16659. "DVX",
  16660. "EVO",
  16661. "DAT",
  16662. "OGG",
  16663. "OGM",
  16664. "MP3",
  16665. ];
  16666. let _chapterData = [];
  16667. for (var i = 0; i < a.length; i++) {
  16668. var c = a[i].chapterData;
  16669. this.vedio[i] = [];
  16670. this.textList[i] = [];
  16671. this.lineList[i] = [];
  16672. this.chapToolList[i] = [];
  16673. this.file[i] = [];
  16674. this.fileC[i] = [];
  16675. _chapterData[i] = c.filter((el) => {
  16676. return el.type != 12;
  16677. });
  16678. this.fileC[i] = c.filter((el) => {
  16679. return el.type == 12;
  16680. });
  16681. if (this.tType == 2) {
  16682. if (this.fileC[i].length) {
  16683. let yym1 = this.fileC[i].filter(e=>{
  16684. if(!converter(e.name).includes(converter(this.lang.ssTeachingPlan))){
  16685. return e
  16686. }
  16687. })
  16688. this.fileC[i] = yym1
  16689. }
  16690. }
  16691. // else if (c[j].type == 12) {
  16692. // this.fileC[i].push(c[j]);
  16693. // }
  16694. for (var j = 0; j < c.length; j++) {
  16695. if (c[j].type == 7) {
  16696. this.chapToolList[i].push(c[j]);
  16697. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  16698. this.lineList[i].push(c[j]);
  16699. } else if (c[j].type == 6) {
  16700. this.textList[i].push(c[j]);
  16701. } else {
  16702. if (
  16703. b.indexOf(
  16704. c[j].url
  16705. .split(".")
  16706. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16707. ) != -1
  16708. ) {
  16709. this.vedio[i].push(c[j]);
  16710. } else {
  16711. this.file[i].push(c[j]);
  16712. }
  16713. }
  16714. }
  16715. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16716. d.sources[0].src =
  16717. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16718. this.playerO[i] = d;
  16719. }
  16720. this.courseDetail = res.data[0][0];
  16721. if(this.tType == 2){
  16722. this.tcid = this.arrayToArray(
  16723. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16724. this.classId ? this.classId.split(",") : []
  16725. ).join(",");
  16726. }else{
  16727. this.tcid = this.arrayToArray(
  16728. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16729. this.tcid2 ? this.tcid2.split(",") : []
  16730. ).join(",");
  16731. }
  16732. this.evalua = res.data[0][0].evaId;
  16733. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16734. this.courseType
  16735. ];
  16736. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16737. if (this.tcid && res.data[1].length) {
  16738. let _inviteA = [];
  16739. for (var ik = 0; ik < res.data[1].length; ik++) {
  16740. _inviteA.push({
  16741. cid: res.data[1][ik].classid,
  16742. ic: res.data[1][ik].code,
  16743. });
  16744. }
  16745. for (var ik = 0; ik < _inviteA.length; ik++) {
  16746. if (
  16747. this.arrayToArray(
  16748. _inviteA[ik].cid.split(","),
  16749. this.tcid.split(",")
  16750. ).length
  16751. ) {
  16752. this.inviteCode = _inviteA[ik].ic;
  16753. break;
  16754. }
  16755. }
  16756. }
  16757. for (var l = 0; l < this.chapInfoList.length; l++) {
  16758. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16759. for (var m = 0; m < w.length; m++) {
  16760. w[m].id = l + "-" + m;
  16761. }
  16762. }
  16763. if (
  16764. _chapterData[this.taskCount].length &&
  16765. _chapterData[this.taskCount][0].type == 2
  16766. ) {
  16767. this.showType = 0;
  16768. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16769. } else {
  16770. if (_chapterData[this.taskCount].length > 0) {
  16771. let _url = _chapterData[this.taskCount][0].url;
  16772. if (
  16773. _chapterData[this.taskCount][0].type == 8 ||
  16774. _chapterData[this.taskCount][0].type == 14 ||
  16775. _chapterData[this.taskCount][0].type == 15
  16776. ) {
  16777. this.showType = 2;
  16778. if (
  16779. _url.indexOf("https://") == -1 &&
  16780. _url.indexOf("http://") == -1
  16781. ) {
  16782. _url = "https://" + _url;
  16783. }
  16784. this.pptImgUrl1 = _url;
  16785. } else if (_chapterData[this.taskCount][0].type == 3) {
  16786. if (
  16787. _url
  16788. .split(".")
  16789. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16790. ) {
  16791. this.showType = 3;
  16792. this.pptImgUrl1 = _url;
  16793. } else if (
  16794. this.isAssetTypeAnImage(
  16795. _url
  16796. .split(".")
  16797. [_url.split(".").length - 1].toLocaleLowerCase()
  16798. )
  16799. ) {
  16800. this.showType = 4;
  16801. this.pptImgUrl1 = _url;
  16802. } else {
  16803. this.showType = 2;
  16804. this.pptImgUrl1 =
  16805. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16806. encodeURIComponent(_url);
  16807. }
  16808. } else if (_chapterData[this.taskCount][0].type == 13) {
  16809. this.showType = 4;
  16810. this.pptImgUrl1 = _url;
  16811. } else if (_chapterData[this.taskCount][0].type == 6) {
  16812. this.showType = 1;
  16813. this.text = this.textList[this.taskCount][0];
  16814. } else if (_chapterData[this.taskCount][0].type == 16) {
  16815. this.showType = 16;
  16816. this.pptImgUrl1 = _url;
  16817. } else if (_chapterData[this.taskCount][0].type == 17) {
  16818. this.showType = 16;
  16819. this.pptImgUrl1 = _url;
  16820. }
  16821. }
  16822. }
  16823. this.isClickNav = 0;
  16824. if (
  16825. !_chapterData[this.taskCount].length ||
  16826. _chapterData[this.taskCount][0].type == 12
  16827. ) {
  16828. this.isClickNav = "";
  16829. this.showType = "";
  16830. }
  16831. if (this.tType == 2) {
  16832. _chapterData.forEach((e,i)=>{
  16833. if (e.length) {
  16834. let yym = e.filter(k=>{
  16835. if(!converter(k.name).includes(converter(this.lang.ssTeachingPlan))){
  16836. return k
  16837. }
  16838. })
  16839. _chapterData[i] = yym
  16840. }
  16841. })
  16842. }
  16843. this.vChapterData = _chapterData;
  16844. } else {
  16845. this.showType = 0;
  16846. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16847. .chapterInfo[0].taskJson;
  16848. var b = [
  16849. "AVI",
  16850. "NAVI",
  16851. "MPEG",
  16852. "ASF",
  16853. "MOV",
  16854. "WMV",
  16855. "3GP",
  16856. "RM",
  16857. "RMVB",
  16858. "FLV",
  16859. "F4V",
  16860. "H.264",
  16861. "H.265",
  16862. "REAL VIDEO",
  16863. "MKV",
  16864. "WebM",
  16865. "HDDVD",
  16866. "MP4",
  16867. "MPG",
  16868. "M4V",
  16869. "MGV",
  16870. "OGV",
  16871. "QTM",
  16872. "STR",
  16873. "AMC",
  16874. "DVX",
  16875. "EVO",
  16876. "DAT",
  16877. "OGG",
  16878. "OGM",
  16879. "MP3",
  16880. ];
  16881. let _chapterData = [];
  16882. for (var i = 0; i < a.length; i++) {
  16883. var c = a[i].chapterData;
  16884. this.vedio[i] = [];
  16885. this.textList[i] = [];
  16886. this.lineList[i] = [];
  16887. this.chapToolList[i] = [];
  16888. this.file[i] = [];
  16889. this.fileC[i] = [];
  16890. _chapterData[i] = c.filter((el) => {
  16891. return el.type != 12;
  16892. });
  16893. this.fileC[i] = c.filter((el) => {
  16894. return el.type == 12;
  16895. });
  16896. if (this.tType == 2) {
  16897. if (this.fileC[i].length) {
  16898. let yym1 = this.fileC[i].filter(e=>{
  16899. if(!converter(e.name).includes(converter(this.lang.ssTeachingPlan))){
  16900. return e
  16901. }
  16902. })
  16903. this.fileC[i] = yym1
  16904. }
  16905. }
  16906. for (var j = 0; j < c.length; j++) {
  16907. if (c[j].type == 7) {
  16908. this.chapToolList[i].push(c[j]);
  16909. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  16910. this.lineList[i].push(c[j]);
  16911. } else if (c[j].type == 6) {
  16912. this.textList[i].push(c[j]);
  16913. } else {
  16914. if (
  16915. b.indexOf(
  16916. c[j].url
  16917. .split(".")
  16918. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16919. ) != -1
  16920. ) {
  16921. this.vedio[i].push(c[j]);
  16922. } else {
  16923. this.file[i].push(c[j]);
  16924. }
  16925. }
  16926. }
  16927. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16928. d.sources[0].src =
  16929. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16930. this.playerO[i] = d;
  16931. }
  16932. if (
  16933. _chapterData[this.taskCount].length &&
  16934. _chapterData[this.taskCount][0].type == 2
  16935. ) {
  16936. this.showType = 0;
  16937. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16938. } else {
  16939. if (_chapterData[this.taskCount].length > 0) {
  16940. let _url = _chapterData[this.taskCount][0].url;
  16941. if (
  16942. _chapterData[this.taskCount][0].type == 8 ||
  16943. _chapterData[this.taskCount][0].type == 14 ||
  16944. _chapterData[this.taskCount][0].type == 15
  16945. ) {
  16946. this.showType = 2;
  16947. if (
  16948. _url.indexOf("https://") == -1 &&
  16949. _url.indexOf("http://") == -1
  16950. ) {
  16951. _url = "https://" + _url;
  16952. }
  16953. this.pptImgUrl1 = _url;
  16954. } else if (_chapterData[this.taskCount][0].type == 3) {
  16955. if (
  16956. _url
  16957. .split(".")
  16958. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16959. ) {
  16960. this.showType = 3;
  16961. this.pptImgUrl1 = _url;
  16962. } else if (
  16963. this.isAssetTypeAnImage(
  16964. _url
  16965. .split(".")
  16966. [_url.split(".").length - 1].toLocaleLowerCase()
  16967. )
  16968. ) {
  16969. this.showType = 4;
  16970. this.pptImgUrl1 = _url;
  16971. } else {
  16972. this.showType = 2;
  16973. this.pptImgUrl1 =
  16974. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16975. encodeURIComponent(_url);
  16976. }
  16977. } else if (_chapterData[this.taskCount][0].type == 13) {
  16978. this.showType = 4;
  16979. this.pptImgUrl1 = _url;
  16980. } else if (_chapterData[this.taskCount][0].type == 6) {
  16981. this.showType = 1;
  16982. this.text = this.textList[this.taskCount][0];
  16983. } else if (_chapterData[this.taskCount][0].type == 16) {
  16984. this.showType = 16;
  16985. this.pptImgUrl1 = _url;
  16986. } else if (_chapterData[this.taskCount][0].type == 17) {
  16987. this.showType = 16;
  16988. this.pptImgUrl1 = _url;
  16989. }
  16990. }
  16991. }
  16992. this.isClickNav = 0;
  16993. if (
  16994. !_chapterData[this.taskCount].length ||
  16995. _chapterData[this.taskCount][0].type == 12
  16996. ) {
  16997. this.isClickNav = "";
  16998. this.showType = "";
  16999. }
  17000. console.log('_chapterData66666',_chapterData);
  17001. if (this.tType == 2) {
  17002. _chapterData.forEach((e,i)=>{
  17003. if (e.length) {
  17004. let yym = e.filter(k=>{
  17005. if(!converter(k.name).includes(converter(this.lang.ssTeachingPlan))){
  17006. return k
  17007. }
  17008. })
  17009. _chapterData[i] = yym
  17010. }
  17011. })
  17012. }
  17013. this.vChapterData = _chapterData;
  17014. this.$forceUpdate();
  17015. }
  17016. // else {
  17017. // this.courseDetail = res.data[0][0];
  17018. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17019. // }
  17020. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  17021. if (type == 10) {
  17022. console.log('this.courseDetail.userid',this.courseDetail.userid);
  17023. console.log('this.userid',this.userid);
  17024. if (this.courseDetail.userid == this.userid) {
  17025. // 开局关闭学生查看内容
  17026. this.StulookMode(true)
  17027. // 开局打开跟随模式
  17028. this.followingMode(true)
  17029. }
  17030. }
  17031. let _this = this;
  17032. if (_this.timer) {
  17033. clearInterval(_this.timer);
  17034. _this.timer = null;
  17035. }
  17036. if (_this.tcid) {
  17037. _this.getCourseGroup(gindex);
  17038. } else {
  17039. _this.selectSWorks(gindex);
  17040. }
  17041. _this.selectStudent();
  17042. _this.selectSLook();
  17043. _this.getPick();
  17044. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17045. // _this.setCTask();
  17046. // }
  17047. if (_this.dialogVisibleGroup) {
  17048. _this.groupJson =
  17049. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17050. _this.taskCount
  17051. ].toolChoose[_this.toolindex].groupJson;
  17052. }
  17053. _this.$nextTick(() => {
  17054. setTimeout(() => {
  17055. _this.checkEva();
  17056. }, 1000);
  17057. });
  17058. _this.timer = setInterval(function () {
  17059. // _this.getCourseDetail(2);
  17060. if (_this.tcid) {
  17061. _this.getCourseGroup();
  17062. } else {
  17063. _this.selectSWorks();
  17064. }
  17065. _this.selectStudent();
  17066. _this.selectSLook();
  17067. _this.getPick();
  17068. // _this.getSplitScreenData();
  17069. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17070. // _this.setCTask();
  17071. // }
  17072. if (_this.dialogVisibleGroup) {
  17073. _this.groupJson =
  17074. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17075. _this.taskCount
  17076. ].toolChoose[_this.toolindex].groupJson;
  17077. }
  17078. if (_this.tType == 4 || _this.ispzType == 4) {
  17079. _this.selectPz();
  17080. }
  17081. }, 5000);
  17082. if (_this.timer2 == null) {
  17083. _this.timer2 = setInterval(()=> {
  17084. _this.getSplitScreenData();//获取分屏数据
  17085. }, 5000);
  17086. }
  17087. _this.$nextTick(function () {
  17088. setTimeout(() => {
  17089. const element = document.getElementsByClassName("pb_body")[0];
  17090. if (element) {
  17091. element.style.minHeight = 'unset'
  17092. // 或者:element.style.removeProperty("min-height");
  17093. }
  17094. // var a =
  17095. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17096. // document.getElementsByClassName("vedioList")[0].style.height =
  17097. // a + "px";
  17098. // document.getElementsByClassName("navBox")[0].style.height =
  17099. // a - 40 + "px";
  17100. // if (_this.vedio[_this.taskCount].length > 0) {
  17101. // _this.vedioTime = [];
  17102. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17103. // _this.vedioTime[i] = document.getElementsByClassName(
  17104. // "vjs-duration-display"
  17105. // )[i].textContent;
  17106. // }
  17107. // }
  17108. }, 1000);
  17109. });
  17110. })
  17111. .catch((err) => {
  17112. loading.close();
  17113. console.error(err);
  17114. });
  17115. },
  17116. getCourseGroup(gindex) {
  17117. if(this.getCourseGroupLoading) return
  17118. this.getCourseGroupLoading = true
  17119. let params = {
  17120. cid: this.id,
  17121. classid: this.tcid ? this.tcid : "1",
  17122. };
  17123. this.ajax
  17124. .get(this.$store.state.api + "getCourseGroup", params)
  17125. .then((res) => {
  17126. if (res.data && res.data[0].length) {
  17127. if (!this.isGroup) {
  17128. let courseGroup = JSON.parse(res.data[0][0].group);
  17129. courseGroup.group = courseGroup.group.filter((el) => {
  17130. el.works = [];
  17131. return el;
  17132. });
  17133. if (courseGroup.isopen == 2) {
  17134. this.isGroup = false;
  17135. this.selectSWorks(gindex);
  17136. return;
  17137. }
  17138. this.courseGroup = courseGroup;
  17139. let groupPerson = res.data[1];
  17140. let group = JSON.parse(res.data[0][0].group).group;
  17141. let courseGroupStudent = {};
  17142. let courseGroupStudentUid = {};
  17143. for (var i = 0; i < group.length; i++) {
  17144. courseGroupStudent[group[i].id] = [];
  17145. courseGroupStudentUid[group[i].id] = [];
  17146. for (var j = 0; j < groupPerson.length; j++) {
  17147. if (groupPerson[j].groupCid == group[i].id) {
  17148. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17149. courseGroupStudentUid[group[i].id].push(
  17150. groupPerson[j].userid
  17151. );
  17152. }
  17153. }
  17154. }
  17155. this.courseGroupStudent = courseGroupStudent;
  17156. this.courseGroupStudentUid = courseGroupStudentUid;
  17157. }
  17158. if (this.courseGroup.isopen == 2) {
  17159. this.isGroup = false;
  17160. } else {
  17161. this.isGroup = true;
  17162. }
  17163. this.selectSWorks(gindex);
  17164. } else {
  17165. this.selectSWorks(gindex);
  17166. this.isGroup = false;
  17167. }
  17168. this.getCourseGroupLoading = false
  17169. })
  17170. .catch((err) => {
  17171. this.getCourseGroupLoading = false
  17172. // this.$message.error(this.lang.ssNetworkPoor);
  17173. console.error(err);
  17174. });
  17175. },
  17176. setOperationTime() {
  17177. let _this = this;
  17178. if (_this.opertimer) {
  17179. clearInterval(_this.opertimer);
  17180. _this.opertimer = null;
  17181. }
  17182. _this.opertimer = setInterval(() => {
  17183. _this.setoTime("600");
  17184. }, 600000);
  17185. },
  17186. setoTime(time) {
  17187. let params = [
  17188. {
  17189. uid: this.userid,
  17190. cid: this.id,
  17191. type: "2",
  17192. time: time,
  17193. },
  17194. ];
  17195. this.ajax
  17196. .post(this.$store.state.api + "addOperationTimeT2", params)
  17197. .then((res) => {})
  17198. .catch((err) => {
  17199. console.error(err);
  17200. });
  17201. },
  17202. addPz(type, content) {
  17203. if (type == "1" && this.pzConText == "") {
  17204. this.$message.error(this.lang.ssCommentEmpty);
  17205. return;
  17206. }
  17207. let params = [
  17208. {
  17209. cid: this.id,
  17210. uid: this.userid,
  17211. s: this.courseType,
  17212. t: this.taskCount,
  17213. c: type == "1" ? this.pzConText : content,
  17214. type: type,
  17215. },
  17216. ];
  17217. this.ajax
  17218. .post(this.$store.state.api + "addPz2", params)
  17219. .then((res) => {
  17220. this.$message({
  17221. message: this.lang.ssAddSuccess,
  17222. type: "success",
  17223. });
  17224. this.pzConText = "";
  17225. this.addPzDialog = false;
  17226. this.selectPz();
  17227. if(this.tType!=2){
  17228. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17229. }
  17230. })
  17231. .catch((err) => {
  17232. this.$message.error(this.lang.ssAddFailed);
  17233. console.error(err);
  17234. });
  17235. },
  17236. setReplyIndex(id, i) {
  17237. this.replyIndex = i;
  17238. this.replyPid = id;
  17239. this.replyDialogVisible = true;
  17240. },
  17241. addHf() {
  17242. if (this.reply == "") {
  17243. this.$message.error(this.lang.ssReplyEmpty);
  17244. return;
  17245. }
  17246. let params = [
  17247. {
  17248. cid: this.id,
  17249. uid: this.userid,
  17250. s: this.courseType,
  17251. t: this.taskCount,
  17252. type: "1",
  17253. ct: 2,
  17254. pid: this.replyPid,
  17255. c: this.reply,
  17256. },
  17257. ];
  17258. this.ajax
  17259. .post(this.$store.state.api + "addHf", params)
  17260. .then((res) => {
  17261. this.reply = "";
  17262. this.$message({
  17263. message: this.lang.ssReplySuccess,
  17264. type: "success",
  17265. });
  17266. this.replyDialogVisible = false;
  17267. this.selectPz();
  17268. })
  17269. .catch((err) => {
  17270. this.$message.error(this.lang.ssReplyFailed);
  17271. console.error(err);
  17272. });
  17273. },
  17274. deletePz(id) {
  17275. this.$confirm(this.lang.ssConfirmDeleteComment, this.lang.ssPrompt, {
  17276. confirmButtonText: this.lang.ssConfirm,
  17277. cancelButtonText: this.lang.ssCancel,
  17278. type: "warning",
  17279. })
  17280. .then(() => {
  17281. let params = [
  17282. {
  17283. id: id,
  17284. },
  17285. ];
  17286. this.ajax
  17287. .post(this.$store.state.api + "deletePz", params)
  17288. .then((res) => {
  17289. this.$message({
  17290. message: this.lang.ssDeleteSuccess,
  17291. type: "success",
  17292. });
  17293. this.selectPz();
  17294. })
  17295. .catch((err) => {
  17296. this.$message.error(this.lang.ssNetworkError);
  17297. console.error(err);
  17298. });
  17299. })
  17300. .catch(() => {});
  17301. },
  17302. deleteReply(id) {
  17303. this.$confirm(this.lang.ssConfirmDeleteReply, this.lang.ssPrompt, {
  17304. confirmButtonText: this.lang.ssConfirm,
  17305. cancelButtonText: this.lang.ssCancel,
  17306. type: "warning",
  17307. })
  17308. .then(() => {
  17309. let params = [
  17310. {
  17311. id: id,
  17312. },
  17313. ];
  17314. this.ajax
  17315. .post(this.$store.state.api + "deleteReply", params)
  17316. .then((res) => {
  17317. this.$message({
  17318. message: this.lang.ssDeleteSuccess,
  17319. type: "success",
  17320. });
  17321. this.selectPz();
  17322. })
  17323. .catch((err) => {
  17324. this.$message.error(this.lang.ssNetworkError);
  17325. console.error(err);
  17326. });
  17327. })
  17328. .catch(() => {});
  17329. },
  17330. setPz() {
  17331. if (this.ispzType == 4) {
  17332. this.ispzType = 0;
  17333. this.pzDialog = false;
  17334. return;
  17335. }
  17336. this.ispzType = 4;
  17337. this.pzDialog = true;
  17338. this.selectPz();
  17339. },
  17340. selectPz() {
  17341. if(this.selectPzLoading) return
  17342. this.selectPzLoading = true
  17343. let params = {
  17344. cid: this.id,
  17345. s: this.courseType,
  17346. t: this.taskCount,
  17347. type: this.pzStype,
  17348. uid: this.userid,
  17349. };
  17350. this.ajax
  17351. .get(this.$store.state.api + "selectPzListType", params)
  17352. .then((res) => {
  17353. this.pzList = res.data[0];
  17354. var a = res.data[1];
  17355. for (var i = 0; i < a.length; i++) {
  17356. for (var j = 0; j < this.pzList.length; j++) {
  17357. if (!this.pzList[j].hfList) {
  17358. this.pzList[j].hfList = [];
  17359. }
  17360. if (a[i].pid == this.pzList[j].id) {
  17361. this.pzList[j].hfList.push(a[i]);
  17362. }
  17363. }
  17364. }
  17365. this.selectPzLoading = false
  17366. })
  17367. .catch((err) => {
  17368. this.selectPzLoading = false
  17369. console.error(err);
  17370. });
  17371. },
  17372. // selectHf() {
  17373. // let params = {
  17374. // cid: this.id,
  17375. // s: this.courseType,
  17376. // t: this.taskCount,
  17377. // };
  17378. // this.ajax
  17379. // .get(this.$store.state.api + "selectHfList", params)
  17380. // .then((res) => {
  17381. // var a = res.data[0];
  17382. // for (var i = 0; i < a.length; i++) {
  17383. // for (var j = 0; j < this.pzList.length; j++) {
  17384. // if (!this.pzList[i].hfList) {
  17385. // this.pzList[i].hfList = [];
  17386. // }
  17387. // if (a[i].pid == this.pzList[j].id) {
  17388. // this.pzList[i].hfList.push(a[i]);
  17389. // }
  17390. // }
  17391. // }
  17392. // })
  17393. // .catch((err) => {
  17394. // console.error(err);
  17395. // });
  17396. // },
  17397. updateSLook() {
  17398. let params = {
  17399. sopen: this.sIsOpen == false ? 1 : 2,
  17400. cid: this.id,
  17401. };
  17402. this.ajax
  17403. .get(this.$store.state.api + "updateCourseSLook", params)
  17404. .then((res) => {
  17405. if (this.sIsOpen == true) {
  17406. this.$message({
  17407. message: this.lang.ssPermSetSuccess,
  17408. type: "success",
  17409. });
  17410. } else {
  17411. this.$message({
  17412. message: this.lang.ssPermClosedOk,
  17413. type: "success",
  17414. });
  17415. }
  17416. })
  17417. .catch((err) => {
  17418. console.error(err);
  17419. });
  17420. },
  17421. updateIsStulook(){
  17422. let params = [
  17423. {
  17424. sopen: this.IsStulook == false ? 2 : 1,
  17425. cid: this.id
  17426. }
  17427. ];
  17428. this.ajax
  17429. .post(this.$store.state.api + "updateCourseStulook", params)
  17430. .then(res => {
  17431. if (this.IsStulook == true) {
  17432. this.$message({
  17433. message: this.lang.ssStuViewPermOn,
  17434. type: "success"
  17435. });
  17436. } else {
  17437. this.$message({
  17438. message: this.lang.ssStuViewPermOff,
  17439. type: "success"
  17440. });
  17441. }
  17442. // this.setCTask();
  17443. })
  17444. .catch(err => {
  17445. console.error(err);
  17446. });
  17447. },
  17448. updateFollow() {
  17449. let params = [
  17450. {
  17451. sopen: this.IsFollow == false ? 1 : 2,
  17452. cid: this.id,
  17453. },
  17454. ];
  17455. this.ajax
  17456. .post(this.$store.state.api + "updateCourseFollow", params)
  17457. .then((res) => {
  17458. if (this.IsFollow == true) {
  17459. this.$message({
  17460. message: this.lang.ssFollowModeOn2,
  17461. type: "success",
  17462. });
  17463. } else {
  17464. this.$message({
  17465. message: this.lang.ssFollowModeOff,
  17466. type: "success",
  17467. });
  17468. }
  17469. this.setCTask();
  17470. })
  17471. .catch((err) => {
  17472. console.error(err);
  17473. });
  17474. },
  17475. setCTask() {
  17476. let params = [
  17477. {
  17478. sopen: this.courseType + "-" + this.taskCount,
  17479. cid: this.id,
  17480. },
  17481. ];
  17482. this.ajax
  17483. .post(this.$store.state.api + "updateCourseFollowC", params)
  17484. .then((res) => {})
  17485. .catch((err) => {
  17486. console.error(err);
  17487. });
  17488. },
  17489. updateLookOpen() {
  17490. let params = [
  17491. {
  17492. sopen: this.IsLookOpen == false ? 1 : 2,
  17493. cid: this.id,
  17494. },
  17495. ];
  17496. this.ajax
  17497. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17498. .then((res) => {
  17499. if (this.IsLookOpen == true) {
  17500. // if (this.courseType != 0 && this.taskCount != 0) {
  17501. // this.openTask(0, 0, "0-0");
  17502. // }
  17503. this.$message({
  17504. message: this.lang.ssPermSetSuccess,
  17505. type: "success",
  17506. });
  17507. } else {
  17508. this.$message({
  17509. message: this.lang.ssPermClosedOk,
  17510. type: "success",
  17511. });
  17512. }
  17513. this.getCourseState(2);
  17514. })
  17515. .catch((err) => {
  17516. console.error(err);
  17517. });
  17518. },
  17519. selectSLook() {
  17520. if(this.selectSLookLoading) return
  17521. this.selectSLookLoading = true
  17522. let params = {
  17523. cid: this.id,
  17524. };
  17525. this.ajax
  17526. .get(this.$store.state.api + "selectCourseSLook", params)
  17527. .then((res) => {
  17528. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17529. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17530. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17531. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  17532. if (!this.IsLookOpen) {
  17533. this.setNavList();
  17534. }else {
  17535. this.getCourseState(1);
  17536. }
  17537. if ((this.IsFollow && this.tType == 2)) {
  17538. this.setContent2(false);
  17539. let _followC = res.data[0][0].followC.split("-");
  17540. if (
  17541. this.courseType != _followC[0] ||
  17542. this.taskCount != _followC[1]
  17543. ) {
  17544. this.navList[this.courseType].isOpen = false;
  17545. this.courseType = _followC[0];
  17546. this.navList[this.courseType].isOpen = true;
  17547. this.taskCount = parseInt(_followC[1]);
  17548. this.navId = res.data[0][0].followC;
  17549. document.scrollingElement.scrollTop = 0;
  17550. this.getCourseDetail(2);
  17551. }
  17552. }
  17553. this.selectSLookLoading = false
  17554. })
  17555. .catch((err) => {
  17556. this.selectSLookLoading = false
  17557. console.error(err);
  17558. });
  17559. },
  17560. setNavList() {
  17561. if (this.navList.length == 0) {
  17562. this.navList = [];
  17563. var copyList = [];
  17564. for (var l = 0; l < this.chapInfoList.length; l++) {
  17565. var q = this.chapInfoList[l].dyName;
  17566. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17567. var e;
  17568. copyList.push({
  17569. dyName: q,
  17570. isOpen: l === 0 ? true : false,
  17571. task: [],
  17572. });
  17573. for (var r = 0; r < w.length; r++) {
  17574. e = w[r].task;
  17575. if (this.chapInfoList[l].easy == 1) {
  17576. copyList[l].task.push({
  17577. taskName: q,
  17578. id: l + "-" + r,
  17579. isLook: w[r].isLook,
  17580. isOpen: r === 0 ? true : false,
  17581. tool: [],
  17582. });
  17583. } else {
  17584. copyList[l].task.push({
  17585. taskName: e,
  17586. id: l + "-" + r,
  17587. isLook: w[r].isLook,
  17588. isOpen: r === 0 ? true : false,
  17589. tool: [],
  17590. });
  17591. }
  17592. var t = w[r].toolChoose;
  17593. for (var k = 0; k < t.length; k++) {
  17594. var tool = t[k].tool[0];
  17595. copyList[l].task[r].tool.push({
  17596. tool: tool,
  17597. isTool: false,
  17598. });
  17599. }
  17600. // this.navId = this.navId ? this.navId : l + "-" + r;
  17601. // this.navId = l + "-" + r;
  17602. }
  17603. }
  17604. this.navList = copyList;
  17605. this.navList[0].isOpen = false;
  17606. this.navList[this.courseType].isOpen = true;
  17607. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17608. } else {
  17609. this.setNavList2();
  17610. }
  17611. },
  17612. setNavList2() {
  17613. for (var l = 0; l < this.chapInfoList.length; l++) {
  17614. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17615. for (var r = 0; r < w.length; r++) {
  17616. this.navList[l].task[r].isLook = w[r].isLook;
  17617. }
  17618. }
  17619. if (
  17620. this.IsLookOpen &&
  17621. !this.navList[this.courseType].task[this.taskCount].isLook
  17622. ) {
  17623. this.openTask(0, 0, "0-0");
  17624. }
  17625. this.$forceUpdate();
  17626. },
  17627. getCourseState(type) {
  17628. let params = {
  17629. cid: this.id,
  17630. };
  17631. this.ajax
  17632. .get(this.$store.state.api + "getCourseState", params)
  17633. .then((res) => {
  17634. // if (res.data[0].length > 0) {
  17635. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  17636. // }
  17637. if (res.data[0].length > 0 && type == 1) {
  17638. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17639. this.setNavList();
  17640. this.$forceUpdate();
  17641. } else if (res.data[0].length > 0 && type == 2) {
  17642. this.addCourseState(2);
  17643. } else {
  17644. // this.addCourseState(1);
  17645. }
  17646. })
  17647. .catch((err) => {
  17648. console.error(err);
  17649. });
  17650. },
  17651. addCourseState(type,val = '') {
  17652. let _state = val ? val : this.chapInfoList;
  17653. // this.courseType this.taskCount
  17654. if (type == 1 || type == 2) {
  17655. for (var i = 0; i < _state.length; i++) {
  17656. let el = _state[i].chapterInfo[0].taskJson;
  17657. for (var j = 0; j < el.length; j++) {
  17658. // if (i == 0 && j == 0) {
  17659. // el[j].isLook = true;
  17660. // } else {
  17661. // el[j].isLook = false;
  17662. // }
  17663. if (
  17664. this.courseType > i ||
  17665. (this.courseType == i && this.taskCount + 1 > j)
  17666. ) {
  17667. el[j].isLook = true;
  17668. } else {
  17669. el[j].isLook = false;
  17670. }
  17671. }
  17672. }
  17673. }
  17674. let params = [
  17675. {
  17676. cid: this.id,
  17677. state: JSON.stringify(_state),
  17678. },
  17679. ];
  17680. // 这两个接口是一样的type无所谓了
  17681. this.ajax
  17682. .post(
  17683. this.$store.state.api +
  17684. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17685. params
  17686. )
  17687. .then((res) => {
  17688. if (this.IsLookOpen) {
  17689. this.setNavList();
  17690. }
  17691. if (type == 3 && type == 2) {
  17692. this.getCourseState(1);
  17693. }
  17694. })
  17695. .catch((err) => {
  17696. console.error(err);
  17697. });
  17698. },
  17699. getHomeWork() {
  17700. let params = {
  17701. cid: this.id,
  17702. stage: this.courseType,
  17703. task: this.taskCount,
  17704. uid: this.userid,
  17705. };
  17706. this.ajax
  17707. .get(this.$store.state.api + "selectWork", params)
  17708. .then((res) => {
  17709. if (res.data[0].length > 0) {
  17710. this.studyJuri = JSON.parse(res.data[0][0].content);
  17711. this.isNoHomeWork = true;
  17712. }
  17713. })
  17714. .catch((err) => {
  17715. console.error(err);
  17716. });
  17717. },
  17718. isAssetTypeAnImage(ext) {
  17719. return (
  17720. [
  17721. "png",
  17722. "jpg",
  17723. "jpeg",
  17724. "bmp",
  17725. "gif",
  17726. "webp",
  17727. "psd",
  17728. "svg",
  17729. "tiff",
  17730. ].indexOf(ext) !== -1
  17731. );
  17732. },
  17733. switchVideo(media) {
  17734. this.playerO = {};
  17735. this.playerOptions.poster = "";
  17736. this.playerOptions.sources[0].src = media;
  17737. this.playerO = this.playerOptions;
  17738. },
  17739. onPlayerPlay() {},
  17740. onPlayerTimeupdate(player) {
  17741. let gklog = player.cache_.currentTime; //当前播放的秒数
  17742. let a = player.cache_.duration; //视频的总时长
  17743. let gklog2 = parseInt(gklog);
  17744. // if(gklog2 == '3'){
  17745. // player.pause()
  17746. // setTimeout(()=>{
  17747. // player.currentTime(gklog2+1)
  17748. // player.play()
  17749. // },1000)
  17750. // }
  17751. console.log(" onPlayerTimeupdate!", gklog);
  17752. console.log(" onPlayerTimeupdate!", gklog2);
  17753. },
  17754. lookVedio(u, i) {
  17755. this.isClickNav = "";
  17756. // this.playerOptions.sources[0].src = u;
  17757. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17758. d.sources[0].src = u;
  17759. this.playerO[this.taskCount] = d;
  17760. this.showType = 0;
  17761. // this.isClickNav = "video" + i;
  17762. this.isClickNav = i;
  17763. this.$forceUpdate();
  17764. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17765. },
  17766. lookText(i, t) {
  17767. this.isClickNav = "";
  17768. // this.text = this.textList[i][t];
  17769. this.text = this.vChapterData[i][t];
  17770. // this.dialogVisible1 = true;
  17771. this.showType = 1;
  17772. // this.isClickNav = "text" + t;
  17773. this.isClickNav = t;
  17774. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17775. },
  17776. lookTools(i, t) {
  17777. this.chapTools = this.chapToolList[i][t];
  17778. this.dialogVisible2 = true;
  17779. },
  17780. async openFile(f,w) {
  17781. this.pptImgUrl = "";
  17782. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17783. if (
  17784. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17785. -1
  17786. ) {
  17787. let _uuurl = await this.checkLink(f);
  17788. this.pptImgUrl =
  17789. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17790. this.showPDF = false;
  17791. this.dialogVisible3 = true;
  17792. } else if (
  17793. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17794. ) {
  17795. this.pptImgUrl = f;
  17796. this.showPDF = true;
  17797. this.dialogVisible3 = true;
  17798. }
  17799. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17800. },
  17801. openTable(f) {
  17802. this.tableJson = JSON.parse(f.works);
  17803. this.dialogVisibleTable2 = true;
  17804. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17805. },
  17806. openWord(f) {
  17807. this.tableJson = JSON.parse(f.works);
  17808. this.dialogVisibleTable3 = true;
  17809. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17810. },
  17811. doUrl(url, i) {
  17812. this.isClickNav = "";
  17813. this.pptImgUrl1 = "";
  17814. this.showType = 2;
  17815. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17816. url = "https://" + url;
  17817. }
  17818. this.pptImgUrl1 = "";
  17819. this.diffKey = new Date().getTime();
  17820. setTimeout(() => {
  17821. this.pptImgUrl1 = url;
  17822. }, 500);
  17823. // this.isClickNav = "line" + i;
  17824. this.isClickNav = i;
  17825. this.$forceUpdate();
  17826. },
  17827. checkPhoto(f, i) {
  17828. this.showType = 4;
  17829. this.pptImgUrl1 = f.url;
  17830. this.isClickNav = i;
  17831. this.$forceUpdate();
  17832. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17833. },
  17834. checkHtml(f, i){
  17835. this.showType = 16;
  17836. this.pptImgUrl1 = f.url;
  17837. this.isClickNav = i;
  17838. this.$forceUpdate();
  17839. },
  17840. async downFile(f, i) {
  17841. this.isClickNav = "";
  17842. this.pptImgUrl1 = "";
  17843. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17844. if (
  17845. a.indexOf(
  17846. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17847. ) != -1
  17848. ) {
  17849. let _uuurl = await this.checkLink(f.url);
  17850. this.pptImgUrl1 =
  17851. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17852. // this.dialogVisible3 = true;
  17853. this.showType = 2;
  17854. } else if (
  17855. this.isAssetTypeAnImage(
  17856. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17857. )
  17858. ) {
  17859. this.showType = 4;
  17860. this.pptImgUrl1 = f.url;
  17861. } else if (
  17862. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17863. "PDF"
  17864. ) {
  17865. this.pptImgUrl1 = f.url;
  17866. // this.dialogVisible3 = true;
  17867. this.showType = 3;
  17868. } else {
  17869. window.open(this.file[i].url);
  17870. }
  17871. // this.isClickNav = "word" + i;
  17872. this.isClickNav = i;
  17873. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17874. },
  17875. downFileList(i) {
  17876. window.open(this.noImgList[i].url);
  17877. },
  17878. openAddWork() {
  17879. this.dialogVisible = true;
  17880. },
  17881. addBzWorks() {
  17882. let params = [
  17883. {
  17884. uid: this.userid,
  17885. cid: this.id,
  17886. stage: this.courseType,
  17887. task: this.taskCount,
  17888. tool: this.toolindex,
  17889. content: JSON.stringify(this.eScore),
  17890. type: 6,
  17891. },
  17892. ];
  17893. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17894. this.homeWorkLoading = true
  17895. this.ajax
  17896. .post(this.$store.state.api + "addCourseWorks", params)
  17897. .then((res) => {
  17898. this.$message({
  17899. message: this.lang.ssSubmitSuccess,
  17900. type: "success",
  17901. });
  17902. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  17903. setTimeout(() => {
  17904. this.homeWorkLoading = false
  17905. }, 500);
  17906. this.eScore = { eBzText: "", eStar: [] };
  17907. this.studentEvalDialogVisible = false;
  17908. this.selectSWorks();
  17909. })
  17910. .catch((err) => {
  17911. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  17912. setTimeout(() => {
  17913. this.homeWorkLoading = false
  17914. }, 500);
  17915. this.$message.error(this.lang.ssSubmitFailed);
  17916. console.error(err);
  17917. });
  17918. },
  17919. addBzWorksTeacher() {
  17920. let params = [
  17921. {
  17922. uid: this.sStudent.userid,
  17923. cid: this.id,
  17924. stage: this.courseType,
  17925. task: this.taskCount,
  17926. tool: this.toolindex,
  17927. content: JSON.stringify(this.eScore),
  17928. type: 6,
  17929. },
  17930. ];
  17931. this.ajax
  17932. .post(this.$store.state.api + "addCourseWorks", params)
  17933. .then((res) => {
  17934. this.$message({
  17935. message: this.lang.ssSubmitSuccess,
  17936. type: "success",
  17937. });
  17938. this.eScore = { eBzText: "", eStar: [] };
  17939. this.studentEvalDialogVisibleTeacher = false;
  17940. this.selectSWorks();
  17941. })
  17942. .catch((err) => {
  17943. this.$message.error(this.lang.ssSubmitFailed);
  17944. console.error(err);
  17945. });
  17946. },
  17947. addStudentAsk() {
  17948. if (!this.radio.length) {
  17949. this.$message.error(this.lang.ssPleaseSelectOption);
  17950. return;
  17951. }
  17952. for (var i = 0; i < this.askJson.askCount; i++) {
  17953. if (
  17954. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17955. (this.radio[i] !== 0 && !this.radio[i])
  17956. ) {
  17957. this.$message.error(this.lang.ssPleaseSelectOption);
  17958. return;
  17959. }
  17960. }
  17961. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17962. let params = [
  17963. {
  17964. uid: this.userid,
  17965. cid: this.id,
  17966. stage: this.courseType,
  17967. task: this.taskCount,
  17968. tool: this.toolindex,
  17969. content: JSON.stringify(this.askList),
  17970. type: 2,
  17971. },
  17972. ];
  17973. // console.log('params',params);
  17974. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17975. this.homeWorkLoading = true
  17976. this.ajax
  17977. .post(this.$store.state.api + "addCourseWorks", params)
  17978. .then((res) => {
  17979. this.$message({
  17980. message: this.lang.ssSubmitSuccess,
  17981. type: "success",
  17982. });
  17983. setTimeout(() => {
  17984. this.homeWorkLoading = false
  17985. }, 500);
  17986. this.askList = [];
  17987. this.dialogVisible5 = false;
  17988. this.selectStudent();
  17989. this.selectSWorks();
  17990. this.selectSLook();
  17991. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  17992. })
  17993. .catch((err) => {
  17994. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  17995. setTimeout(() => {
  17996. this.homeWorkLoading = false
  17997. }, 500);
  17998. this.$message.error(this.lang.ssSubmitFailed);
  17999. console.error(err);
  18000. });
  18001. },
  18002. addStudentAskTeacher() {
  18003. if (!this.radio.length) {
  18004. this.$message.error(this.lang.ssPleaseSelectOption);
  18005. return;
  18006. }
  18007. for (var i = 0; i < this.askJson.askCount; i++) {
  18008. if (
  18009. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18010. (this.radio[i] !== 0 && !this.radio[i])
  18011. ) {
  18012. this.$message.error(this.lang.ssPleaseSelectOption);
  18013. return;
  18014. }
  18015. }
  18016. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18017. let params = [
  18018. {
  18019. uid: this.sStudent.userid,
  18020. cid: this.id,
  18021. stage: this.courseType,
  18022. task: this.taskCount,
  18023. tool: this.toolindex,
  18024. content: JSON.stringify(this.askList),
  18025. type: 2,
  18026. },
  18027. ];
  18028. this.ajax
  18029. .post(this.$store.state.api + "addCourseWorks", params)
  18030. .then((res) => {
  18031. this.$message({
  18032. message: this.lang.ssSubmitSuccess,
  18033. type: "success",
  18034. });
  18035. this.askList = [];
  18036. this.dialogVisible5Teacher = false;
  18037. this.selectStudent();
  18038. this.selectSWorks();
  18039. this.selectSLook();
  18040. })
  18041. .catch((err) => {
  18042. this.$message.error(this.lang.ssSubmitFailed);
  18043. console.error(err);
  18044. });
  18045. },
  18046. addStudentTest() {
  18047. if (!this.radio.length) {
  18048. this.$message.error(this.lang.ssPleaseSelectOption);
  18049. return;
  18050. }
  18051. for (var i = 0; i < this.testJson.testCount; i++) {
  18052. if (
  18053. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18054. (this.radio[i] !== 0 && !this.radio[i])
  18055. ) {
  18056. this.$message.error(this.lang.ssPleaseSelectOption);
  18057. return;
  18058. }
  18059. }
  18060. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18061. let params = [
  18062. {
  18063. uid: this.userid,
  18064. cid: this.id,
  18065. stage: this.courseType,
  18066. task: this.taskCount,
  18067. tool: this.toolindex,
  18068. content: JSON.stringify(this.askList),
  18069. type: 8,
  18070. },
  18071. ];
  18072. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  18073. this.homeWorkLoading = true
  18074. this.ajax
  18075. .post(this.$store.state.api + "addCourseWorks", params)
  18076. .then((res) => {
  18077. this.$message({
  18078. message: this.lang.ssSubmitSuccess,
  18079. type: "success",
  18080. });
  18081. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18082. setTimeout(() => {
  18083. this.homeWorkLoading = false
  18084. }, 500);
  18085. this.askList = [];
  18086. this.dialogVisibleChoice = false;
  18087. this.selectStudent();
  18088. this.selectSWorks();
  18089. this.selectSLook();
  18090. })
  18091. .catch((err) => {
  18092. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18093. setTimeout(() => {
  18094. this.homeWorkLoading = false
  18095. }, 500);
  18096. this.$message.error(this.lang.ssSubmitFailed);
  18097. console.error(err);
  18098. });
  18099. },
  18100. addStudentTestTeacher() {
  18101. if (!this.radio.length) {
  18102. this.$message.error(this.lang.ssPleaseSelectOption);
  18103. return;
  18104. }
  18105. for (var i = 0; i < this.testJson.testCount; i++) {
  18106. if (
  18107. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18108. (this.radio[i] !== 0 && !this.radio[i])
  18109. ) {
  18110. this.$message.error(this.lang.ssPleaseSelectOption);
  18111. return;
  18112. }
  18113. }
  18114. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18115. let params = [
  18116. {
  18117. uid: this.sStudent.userid,
  18118. cid: this.id,
  18119. stage: this.courseType,
  18120. task: this.taskCount,
  18121. tool: this.toolindex,
  18122. content: JSON.stringify(this.askList),
  18123. type: 8,
  18124. },
  18125. ];
  18126. this.ajax
  18127. .post(this.$store.state.api + "addCourseWorks", params)
  18128. .then((res) => {
  18129. this.$message({
  18130. message: this.lang.ssSubmitSuccess,
  18131. type: "success",
  18132. });
  18133. this.askList = [];
  18134. this.dialogVisibleChoiceTeacher = false;
  18135. this.selectStudent();
  18136. this.selectSWorks();
  18137. this.selectSLook();
  18138. })
  18139. .catch((err) => {
  18140. this.$message.error(this.lang.ssSubmitFailed);
  18141. console.error(err);
  18142. });
  18143. },
  18144. addWork() {
  18145. if (this.studyJuri[0].content == "") {
  18146. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18147. return;
  18148. } else if (this.studyJuri[0].cover.length == 0) {
  18149. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18150. return;
  18151. } else if (this.studyJuri[0].upVedio.length == 0) {
  18152. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18153. return;
  18154. }
  18155. if (this.isNoHomeWork) {
  18156. this.$confirm(
  18157. this.lang.ssAlreadySubmittedHomework,
  18158. this.lang.ssPrompt,
  18159. {
  18160. confirmButtonText: this.lang.ssConfirm,
  18161. cancelButtonText: this.lang.ssCancel,
  18162. type: "warning",
  18163. }
  18164. )
  18165. .then(() => {
  18166. let params = [
  18167. {
  18168. uid: this.userid,
  18169. cid: this.id,
  18170. stage: this.courseType,
  18171. task: this.taskCount,
  18172. content: JSON.stringify(this.studyJuri),
  18173. },
  18174. ];
  18175. this.ajax
  18176. .post(this.$store.state.api + "addWorks", params)
  18177. .then((res) => {
  18178. this.$message({
  18179. message: this.lang.ssSubmitSuccess,
  18180. type: "success",
  18181. });
  18182. this.isNoHomeWork = true;
  18183. this.dialogVisible = false;
  18184. })
  18185. .catch((err) => {
  18186. this.$message.error(this.lang.ssSubmitFailed);
  18187. console.error(err);
  18188. });
  18189. })
  18190. .catch(() => {});
  18191. } else {
  18192. let params = [
  18193. {
  18194. uid: this.userid,
  18195. cid: this.id,
  18196. stage: this.courseType,
  18197. task: this.taskCount,
  18198. content: JSON.stringify(this.studyJuri),
  18199. },
  18200. ];
  18201. this.ajax
  18202. .post(this.$store.state.api + "addWorks", params)
  18203. .then((res) => {
  18204. this.$message({
  18205. message: this.lang.ssSubmitSuccess,
  18206. type: "success",
  18207. });
  18208. this.isNoHomeWork = true;
  18209. this.dialogVisible = false;
  18210. })
  18211. .catch((err) => {
  18212. this.$message.error(this.lang.ssSubmitFailed);
  18213. console.error(err);
  18214. });
  18215. }
  18216. },
  18217. selectCount() {
  18218. let params = {
  18219. cid: this.id,
  18220. chid: this.courseType,
  18221. uid: this.userid,
  18222. };
  18223. this.ajax
  18224. .get(this.$store.state.api + "selectToolsCount", params)
  18225. .then((res) => {
  18226. for (var i = 0; i < res.data[0].length; i++) {
  18227. if (res.data[0][i].tools == 1) {
  18228. this.wbCount = res.data[0][i].count;
  18229. } else if (res.data[0][i].tools == 2) {
  18230. this.wordCount = res.data[0][i].count;
  18231. } else if (res.data[0][i].tools == 3) {
  18232. this.mindCount = res.data[0][i].count;
  18233. } else if (res.data[0][i].tools == 4) {
  18234. this.askCount = res.data[0][i].count;
  18235. } else if (res.data[0][i].tools == 6) {
  18236. this.noteCount = res.data[0][i].count;
  18237. } else if (res.data[0][i].tools == 7) {
  18238. this.mindNetWorkCount = res.data[0][i].count;
  18239. } else if (res.data[0][i].tools == 8) {
  18240. this.libraryCount = res.data[0][i].count;
  18241. } else if (res.data[0][i].tools == 16) {
  18242. this.workCount = res.data[0][i].count;
  18243. } else if (res.data[0][i].tools == 10) {
  18244. this.timeCount = res.data[0][i].count;
  18245. } else if (res.data[0][i].tools == 15) {
  18246. this.answerCount = res.data[0][i].count;
  18247. } else if (res.data[0][i].tools == 18) {
  18248. this.trainCount = res.data[0][i].count;
  18249. }
  18250. }
  18251. })
  18252. .catch((err) => {
  18253. console.error(err);
  18254. });
  18255. },
  18256. openTools(t, i, index, c, sName,id) {
  18257. var z = JSON.parse(c);
  18258. this.noteName = sName;
  18259. if (t == 4) {
  18260. this.radio = [];
  18261. this.isAnswer = false;
  18262. let b = z[0].anwer;
  18263. this.radio = b;
  18264. this.askJson = z[0].askJson;
  18265. this.isAnswer = true;
  18266. this.dialogVisible5 = true;
  18267. } else if (t == 45) {
  18268. this.radio = [];
  18269. this.isAnswer = false;
  18270. let b = z[0].anwer;
  18271. this.radio = b;
  18272. this.testJson = z[0].testJson;
  18273. this.isAnswer = true;
  18274. this.dialogVisibleChoice = true;
  18275. }else if(t == 69){
  18276. this.oldEnglishJson1 = {}
  18277. this.oldEnglishJson = {}
  18278. this.englishList1 = {}
  18279. this.newEngIndex = -1;
  18280. this.isNoUserid = false;
  18281. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18282. .toolChoose[i].englishList;
  18283. this.oldEnglishJson = z;
  18284. this.engWid = id;
  18285. this.newEnglishList = { engTitle:"",engText:"" }
  18286. this.newEnglishList1 = []
  18287. this.selectEngC(id,z);
  18288. }else if(t == 62){
  18289. this.videoType = 1;
  18290. this.videoJson = {};
  18291. this.videoJson = JSON.parse(c);
  18292. // this.videoJson =
  18293. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18294. // index
  18295. // ].toolChoose[i].videoJson;
  18296. this.dialogVisibleVideo = true;
  18297. //this.dialog
  18298. }
  18299. // else if (t == 15) {
  18300. // this.answerQ = "";
  18301. // this.questionAnswer = "";
  18302. // this.answerQ = z[0].answerTitle;
  18303. // this.questionAnswer = z[0].answer;
  18304. // this.answerDialogVisible = true;
  18305. // }
  18306. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18307. },
  18308. fastText(p, t) {
  18309. if (t == 1) {
  18310. this.commentText += p;
  18311. } else {
  18312. this.eScore.eBzText += p;
  18313. }
  18314. },
  18315. addTools(t, i, index) {
  18316. var a = 0;
  18317. // this.taskCount = index;
  18318. this.toolindex = i;
  18319. if (t == 1) {
  18320. if (this.wbCount > 0) {
  18321. this.updateCount(this.wbCount, t);
  18322. } else {
  18323. this.wbCount++;
  18324. a = this.wbCount;
  18325. this.toolsCount(a, t);
  18326. }
  18327. window.topU.postMessage(
  18328. {
  18329. tools: "1",
  18330. cid: this.id,
  18331. stage: this.courseType,
  18332. task: this.taskCount,
  18333. tool: i,
  18334. },
  18335. "*"
  18336. );
  18337. } else if (t == 2) {
  18338. if (this.wordCount > 0) {
  18339. this.updateCount(this.wordCount, t);
  18340. } else {
  18341. this.wordCount++;
  18342. a = this.wordCount;
  18343. this.toolsCount(a, t);
  18344. }
  18345. window.topU.postMessage({ tools: "2" }, "*");
  18346. } else if (t == 3) {
  18347. if (this.mindCount > 0) {
  18348. this.updateCount(this.mindCount, t);
  18349. } else {
  18350. this.mindCount++;
  18351. a = this.mindCount;
  18352. this.toolsCount(a, t);
  18353. }
  18354. window.topU.postMessage(
  18355. {
  18356. tools: "3",
  18357. cid: this.id,
  18358. stage: this.courseType,
  18359. task: this.taskCount,
  18360. tool: i,
  18361. },
  18362. "*"
  18363. );
  18364. } else if (t == 4) {
  18365. this.radio = [];
  18366. this.noteName = "";
  18367. this.isAnswer = false;
  18368. if (this.askCount > 0) {
  18369. this.updateCount(this.askCount, t);
  18370. } else {
  18371. this.askCount++;
  18372. a = this.askCount;
  18373. this.toolsCount(a, t);
  18374. }
  18375. if (!this.dialogVisible2) {
  18376. this.askJson.askJson =
  18377. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18378. index
  18379. ].toolChoose[i].askJson;
  18380. this.askJson.askTitle =
  18381. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18382. index
  18383. ].toolChoose[i].askTitle;
  18384. this.askJson.askCount =
  18385. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18386. index
  18387. ].toolChoose[i].askCount;
  18388. } else {
  18389. this.askJson.askJson = this.chapTools.askJson.askJson;
  18390. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18391. this.askJson.askCount = this.chapTools.askJson.askCount;
  18392. }
  18393. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18394. if (this.askJson.askJson[k].type == "2") {
  18395. this.radio.push([]);
  18396. } else {
  18397. this.radio.push("");
  18398. }
  18399. }
  18400. this.dialogVisible5 = true;
  18401. // window.topU.postMessage({ tools: "4" }, "*");
  18402. } else if (t == 45) {
  18403. this.noteName = "";
  18404. this.radio = [];
  18405. this.isAnswer = false;
  18406. if (this.askCount > 0) {
  18407. this.updateCount(this.askCount, t);
  18408. } else {
  18409. this.askCount++;
  18410. a = this.askCount;
  18411. this.toolsCount(a, t);
  18412. }
  18413. this.testJson =
  18414. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18415. index
  18416. ].toolChoose[i].testJson;
  18417. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18418. if (this.testJson.testJson[k].type == "2") {
  18419. this.radio.push([]);
  18420. } else {
  18421. this.radio.push("");
  18422. }
  18423. }
  18424. this.dialogVisibleChoice = true;
  18425. // window.topU.postMessage({ tools: "4" }, "*");
  18426. } else if (t == 5) {
  18427. if (this.scoreCount > 0) {
  18428. this.updateCount(this.scoreCount, t);
  18429. } else {
  18430. this.scoreCount++;
  18431. a = this.scoreCount;
  18432. this.toolsCount(a, t);
  18433. }
  18434. this.dialogVisible4 = true;
  18435. // window.topU.postMessage({ tools: "5" }, "*");
  18436. } else if (t == 6) {
  18437. if (this.noteCount > 0) {
  18438. this.updateCount(this.noteCount, t);
  18439. } else {
  18440. this.noteCount++;
  18441. a = this.noteCount;
  18442. this.toolsCount(a, t);
  18443. }
  18444. window.topU.postMessage(
  18445. {
  18446. tools: "6",
  18447. cid: this.id,
  18448. stage: this.courseType,
  18449. task: this.taskCount,
  18450. tool: i,
  18451. },
  18452. "*"
  18453. );
  18454. } else if (t == 7) {
  18455. if (this.mindNetWorkCount > 0) {
  18456. this.updateCount(this.mindNetWorkCount, t);
  18457. } else {
  18458. this.mindNetWorkCount++;
  18459. a = this.mindNetWorkCount;
  18460. this.toolsCount(a, t);
  18461. }
  18462. window.topU.postMessage(
  18463. {
  18464. tools: "7",
  18465. cid: this.id,
  18466. stage: this.courseType,
  18467. task: this.taskCount,
  18468. tool: i,
  18469. },
  18470. "*"
  18471. );
  18472. } else if (t == 16) {
  18473. if (this.workCount > 0) {
  18474. this.updateCount(this.workCount, t);
  18475. } else {
  18476. this.workCount++;
  18477. a = this.workCount;
  18478. this.toolsCount(a, t);
  18479. }
  18480. this.dialogVisible = true;
  18481. } else if (t == 50) {
  18482. if (this.tType == 2) {
  18483. this.$message.error(this.lang.ssNotSupportedForStudents);
  18484. return;
  18485. }
  18486. this.plworkFile = [];
  18487. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18488. if (!this.uploadCid) {
  18489. this.$message.error(
  18490. this.lang.ssBatchUploadNoClassPermission
  18491. );
  18492. return;
  18493. }
  18494. // this.uploadCid =
  18495. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18496. // index
  18497. // ].toolChoose[i].uploadJson[0];
  18498. this.selectUploadStudent(2);
  18499. } else if (t == 8) {
  18500. if (this.libraryCount > 0) {
  18501. this.updateCount(this.libraryCount, t);
  18502. } else {
  18503. this.libraryCount++;
  18504. a = this.libraryCount;
  18505. this.toolsCount(a, t);
  18506. }
  18507. window.topU.postMessage({ tools: "8" }, "*");
  18508. } else if (t == 17) {
  18509. if (this.libraryCount > 0) {
  18510. this.updateCount(this.libraryCount, t);
  18511. } else {
  18512. this.libraryCount++;
  18513. a = this.libraryCount;
  18514. this.toolsCount(a, t);
  18515. }
  18516. window.topU.postMessage({ tools: "17" }, "*");
  18517. } else if (t == 18) {
  18518. if (this.trainCount > 0) {
  18519. this.updateCount(this.trainCount, t);
  18520. } else {
  18521. this.trainCount++;
  18522. a = this.trainCount;
  18523. this.toolsCount(a, t);
  18524. }
  18525. window.topU.postMessage({ tools: "18" }, "*");
  18526. } else if (t == 10) {
  18527. if (this.timeCount > 0) {
  18528. this.updateCount(this.timeCount, t);
  18529. } else {
  18530. this.timeCount++;
  18531. a = this.timeCount;
  18532. this.toolsCount(a, t);
  18533. }
  18534. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18535. .taskJson[index].toolChoose[i].preTime
  18536. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18537. .toolChoose[i].preTime
  18538. : "";
  18539. this.timeDialogVisible = true;
  18540. } else if (t == 15) {
  18541. this.answerQ = "";
  18542. this.questionAnswer = "";
  18543. if (this.answerCount > 0) {
  18544. this.updateCount(this.answerCount, t);
  18545. } else {
  18546. this.answerCount++;
  18547. a = this.answerCount;
  18548. this.toolsCount(a, t);
  18549. }
  18550. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18551. .taskJson[index].toolChoose[i].answerQ
  18552. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18553. .toolChoose[i].answerQ
  18554. : "";
  18555. this.answerDialogVisible = true;
  18556. } else if (t == 21) {
  18557. window.topU.postMessage({ tools: "21" }, "*");
  18558. } else if (t == 22) {
  18559. window.topU.postMessage({ tools: "22" }, "*");
  18560. } else if (t == 23) {
  18561. window.topU.postMessage({ tools: "23" }, "*");
  18562. } else if (t == 24) {
  18563. window.topU.postMessage({ tools: "24" }, "*");
  18564. } else if (t == 25) {
  18565. window.topU.postMessage({ tools: "25" }, "*");
  18566. } else if (t == 31) {
  18567. window.topU.postMessage({ tools: "31" }, "*");
  18568. } else if (t == 28) {
  18569. window.topU.postMessage({ tools: "28" }, "*");
  18570. } else if (t == 37) {
  18571. window.topU.postMessage({ tools: "37" }, "*");
  18572. } else if (t == 38) {
  18573. window.topU.postMessage({ tools: "38" }, "*");
  18574. } else if (t == 39) {
  18575. window.topU.postMessage({ tools: "39" }, "*");
  18576. } else if (t == 32) {
  18577. window.topU.postMessage({ tools: "32" }, "*");
  18578. } else if (t == 66) {
  18579. window.topU.postMessage({ tools: "66" }, "*");
  18580. } else if (t == 67) {
  18581. window.topU.postMessage({ tools: "67" }, "*");
  18582. } else if (t == 68) {
  18583. window.topU.postMessage({ tools: "68" }, "*");
  18584. } else if (t == 57) {
  18585. // window.topU.postMessage({ tools: "57" }, "*");
  18586. window.topU.postMessage(
  18587. {
  18588. tools: "57u",
  18589. cid: this.id,
  18590. stage: this.courseType,
  18591. task: this.taskCount,
  18592. tool: i,
  18593. },
  18594. "*"
  18595. );
  18596. } else if (t == 58) {
  18597. window.topU.postMessage({ tools: "58" }, "*");
  18598. } else if (t == 59) {
  18599. window.topU.postMessage({ tools: "59" }, "*");
  18600. } else if (t == 60) {
  18601. window.topU.postMessage({ tools: "60" }, "*");
  18602. } else if (t == 61) {
  18603. window.topU.postMessage({ tools: "61" }, "*");
  18604. } else if (t == 63) {
  18605. window.topU.postMessage({ tools: "63" }, "*");
  18606. } else if (t == 71) {
  18607. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  18608. // this.$message.error("该工具不可使用");
  18609. // return
  18610. // }
  18611. window.topU.postMessage({ tools: "71" }, "*");
  18612. } else if (t == 72) {
  18613. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  18614. .taskJson[index].toolChoose[i].appJson
  18615. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18616. .toolChoose[i].appJson
  18617. : "";
  18618. if(!item || !item.url){
  18619. this.$message.error(this.lang.ssAppConnectionEmpty);
  18620. return;
  18621. }
  18622. if (!document.fullscreenElement) {
  18623. this.enterFullScreen();
  18624. }
  18625. this.$refs.appStoreC.getData(item.url,this.userid)
  18626. // window.open(item.url, "_blank");
  18627. // window.topU.postMessage({ tools: "72", data: item }, "*");
  18628. } else if (t == 69) {
  18629. if (this.worksStudent[i].length) {
  18630. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18631. if (this.userid == this.worksStudent[i][k].userid) {
  18632. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18633. break;
  18634. } else {
  18635. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18636. }
  18637. }
  18638. } else {
  18639. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18640. }
  18641. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18642. .taskJson[index].toolChoose[i].englishList
  18643. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18644. .toolChoose[i].englishList
  18645. : {};
  18646. this.englishToolIndex = i;
  18647. this.myAnList = this.myAnswerList1;
  18648. this.engDialogVisible = true;
  18649. } else if (t == 70) {
  18650. if (this.worksStudent[i].length) {
  18651. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18652. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18653. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18654. break;
  18655. } else {
  18656. this.englishVoiceJsonWork = [];
  18657. }
  18658. }
  18659. } else {
  18660. this.englishVoiceJsonWork = [];
  18661. }
  18662. let englishVoiceJson = {}
  18663. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18664. .taskJson[index].toolChoose[i].englishVoiceJson
  18665. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18666. .toolChoose[i].englishVoiceJson
  18667. : {};
  18668. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18669. this.EnglishVoiceDialog = true;
  18670. } else if (t == 65) {
  18671. if (this.tType == 2) {
  18672. this.$message.error(this.lang.ssNotSupportedForStudents);
  18673. return;
  18674. }
  18675. this.uploadCid = this.tcid;
  18676. if (!this.uploadCid) {
  18677. this.$message.error(
  18678. this.lang.ssNoClassPermission
  18679. );
  18680. return;
  18681. }
  18682. this.selectPickStudent();
  18683. } else if (t == 26) {
  18684. window.topU.postMessage(
  18685. {
  18686. tools: "26",
  18687. cid: this.id,
  18688. stage: this.courseType,
  18689. task: this.taskCount,
  18690. tool: i,
  18691. },
  18692. "*"
  18693. );
  18694. } else if (t == 40) {
  18695. if (this.evalCount > 0) {
  18696. this.updateCount(this.evalCount, t);
  18697. } else {
  18698. this.evalCount++;
  18699. a = this.evalCount;
  18700. this.toolsCount(a, t);
  18701. }
  18702. this.eScore = { eBzText: "", eStar: [] };
  18703. if (this.worksStudent[i].length) {
  18704. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18705. if (this.userid == this.worksStudent[i][k].userid) {
  18706. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18707. this.rateJson =
  18708. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18709. index
  18710. ].toolChoose[i].rateJson;
  18711. break;
  18712. } else {
  18713. this.rateJson =
  18714. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18715. index
  18716. ].toolChoose[i].rateJson;
  18717. }
  18718. }
  18719. } else {
  18720. this.rateJson =
  18721. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18722. index
  18723. ].toolChoose[i].rateJson;
  18724. }
  18725. this.isStar = false;
  18726. this.studentEvalDialogVisible = true;
  18727. } else if (t == 41) {
  18728. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18729. .taskJson[index].toolChoose[i].selectJson
  18730. ? JSON.parse(
  18731. JSON.stringify(
  18732. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18733. index
  18734. ].toolChoose[i].selectJson
  18735. )
  18736. )
  18737. : { url: "", select: [], answer: [] };
  18738. if (this.worksStudent[i].length) {
  18739. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18740. if (this.userid == this.worksStudent[i][k].userid) {
  18741. var a = this.worksStudent[i][k].works.split(",");
  18742. for (var ki = 0; ki < a.length; ki++) {
  18743. a[ki] = parseInt(a[ki]);
  18744. }
  18745. this.selectAnswer = {
  18746. answer: a,
  18747. stu: this.worksStudent[i][k].sName,
  18748. };
  18749. break;
  18750. } else {
  18751. this.selectAnswer = { answer: [], stu: "" };
  18752. }
  18753. }
  18754. } else {
  18755. this.selectAnswer = { answer: [], stu: "" };
  18756. }
  18757. this.isSelect = false;
  18758. this.dialogVisibleSelect = true;
  18759. } else if (t == 44) {
  18760. window.topU.postMessage({ tools: "44" }, "*");
  18761. } else if (t == 47) {
  18762. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18763. .taskJson[index].toolChoose[i].sentenceList
  18764. ? JSON.parse(
  18765. JSON.stringify(
  18766. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18767. index
  18768. ].toolChoose[i].sentenceList
  18769. )
  18770. )
  18771. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18772. for (var q = 0; q < this.sentenceList.length; q++) {
  18773. this.sentenceList[q].chooseSenList = [];
  18774. this.sentenceList[q].addChangeSen = [];
  18775. this.sentenceList[q].addChangeSen = JSON.parse(
  18776. JSON.stringify(this.sentenceList[q].addSentence)
  18777. );
  18778. this.sentenceList[q].chooseSenList.length =
  18779. this.sentenceList[q].rightAnswer.length;
  18780. }
  18781. this.dialogVisibleSentence = true;
  18782. } else if (t == 48) {
  18783. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18784. .taskJson[index].toolChoose[i].tableJson
  18785. ? JSON.parse(
  18786. JSON.stringify(
  18787. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18788. index
  18789. ].toolChoose[i].tableJson
  18790. )
  18791. )
  18792. : { text: "" };
  18793. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18794. if (this.worksStudent[i].length) {
  18795. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18796. if (this.userid == this.worksStudent[i][k].userid) {
  18797. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18798. break;
  18799. }
  18800. }
  18801. }
  18802. this.dialogVisibleTable = true;
  18803. } else if (t == 52) {
  18804. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18805. .taskJson[index].toolChoose[i].wordJson
  18806. ? JSON.parse(
  18807. JSON.stringify(
  18808. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18809. index
  18810. ].toolChoose[i].wordJson
  18811. )
  18812. )
  18813. : { text: "" };
  18814. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18815. if (this.worksStudent[i].length) {
  18816. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18817. if (this.userid == this.worksStudent[i][k].userid) {
  18818. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18819. break;
  18820. }
  18821. }
  18822. }
  18823. this.dialogVisibleWord = true;
  18824. } else if (t == 49) {
  18825. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18826. return
  18827. }
  18828. this.groupJson =
  18829. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18830. index
  18831. ].toolChoose[i].groupJson;
  18832. this.islock = this.groupJson.islock == 1 ? true : false;
  18833. this.dialogVisibleGroup = true;
  18834. } else if (t == 62) {
  18835. this.videoType = 0;
  18836. this.videoJson = {};
  18837. this.videoJson =
  18838. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18839. index
  18840. ].toolChoose[i].videoJson;
  18841. this.dialogVisibleVideo = true;
  18842. }
  18843. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  18844. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18845. },
  18846. teacherWorkSubmit(t, i, index, s) {
  18847. console.log('t',t);
  18848. if(t == 72) return
  18849. this.sStudent = s;
  18850. this.toolindex = i;
  18851. this.sTool = t;
  18852. if (this.tType !== "1" && this.tType !== "4") {
  18853. return;
  18854. }
  18855. if (t == 16 || t == 32 || t == 50) {
  18856. this.dialogVisibleWorks = true;
  18857. } else if (t == 15) {
  18858. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18859. .taskJson[index].toolChoose[i].answerQ
  18860. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18861. .toolChoose[i].answerQ
  18862. : "";
  18863. this.questionAnswer = "";
  18864. this.answerDialogVisibleTeacher = true; //问答
  18865. } else if (t == 52) {
  18866. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18867. .taskJson[index].toolChoose[i].wordJson
  18868. ? JSON.parse(
  18869. JSON.stringify(
  18870. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18871. index
  18872. ].toolChoose[i].wordJson
  18873. )
  18874. )
  18875. : { text: "" };
  18876. if (this.worksStudent[i].length) {
  18877. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18878. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18879. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18880. break;
  18881. }
  18882. }
  18883. }
  18884. this.dialogVisibleWordTeacher = true; //文档
  18885. } else if (t == 4) {
  18886. this.radio = [];
  18887. this.noteName = "";
  18888. this.isAnswer = false;
  18889. if (this.askCount > 0) {
  18890. this.updateCount(this.askCount, t);
  18891. } else {
  18892. this.askCount++;
  18893. a = this.askCount;
  18894. this.toolsCount(a, t);
  18895. }
  18896. if (!this.dialogVisible2) {
  18897. this.askJson.askJson =
  18898. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18899. index
  18900. ].toolChoose[i].askJson;
  18901. this.askJson.askTitle =
  18902. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18903. index
  18904. ].toolChoose[i].askTitle;
  18905. this.askJson.askCount =
  18906. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18907. index
  18908. ].toolChoose[i].askCount;
  18909. } else {
  18910. this.askJson.askJson = this.chapTools.askJson.askJson;
  18911. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18912. this.askJson.askCount = this.chapTools.askJson.askCount;
  18913. }
  18914. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18915. if (this.askJson.askJson[k].type == "2") {
  18916. this.radio.push([]);
  18917. } else {
  18918. this.radio.push("");
  18919. }
  18920. }
  18921. this.dialogVisible5Teacher = true;
  18922. } else if (t == 45) {
  18923. this.noteName = "";
  18924. this.radio = [];
  18925. this.isAnswer = false;
  18926. if (this.askCount > 0) {
  18927. this.updateCount(this.askCount, t);
  18928. } else {
  18929. this.askCount++;
  18930. a = this.askCount;
  18931. this.toolsCount(a, t);
  18932. }
  18933. this.testJson =
  18934. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18935. index
  18936. ].toolChoose[i].testJson;
  18937. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18938. if (this.testJson.testJson[k].type == "2") {
  18939. this.radio.push([]);
  18940. } else {
  18941. this.radio.push("");
  18942. }
  18943. }
  18944. this.dialogVisibleChoiceTeacher = true;
  18945. } else if (t == 41) {
  18946. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18947. .taskJson[index].toolChoose[i].selectJson
  18948. ? JSON.parse(
  18949. JSON.stringify(
  18950. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18951. index
  18952. ].toolChoose[i].selectJson
  18953. )
  18954. )
  18955. : { url: "", select: [], answer: [] };
  18956. if (this.worksStudent[i].length) {
  18957. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18958. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18959. var a = this.worksStudent[i][k].works.split(",");
  18960. for (var ki = 0; ki < a.length; ki++) {
  18961. a[ki] = parseInt(a[ki]);
  18962. }
  18963. this.selectAnswer = {
  18964. answer: a,
  18965. stu: this.worksStudent[i][k].sName,
  18966. };
  18967. break;
  18968. } else {
  18969. this.selectAnswer = { answer: [], stu: "" };
  18970. }
  18971. }
  18972. } else {
  18973. this.selectAnswer = { answer: [], stu: "" };
  18974. }
  18975. this.isSelect = false;
  18976. this.dialogVisibleSelectTeacher = true;
  18977. } else if (t == 47) {
  18978. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18979. .taskJson[index].toolChoose[i].sentenceList
  18980. ? JSON.parse(
  18981. JSON.stringify(
  18982. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18983. index
  18984. ].toolChoose[i].sentenceList
  18985. )
  18986. )
  18987. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18988. for (var q = 0; q < this.sentenceList.length; q++) {
  18989. this.sentenceList[q].chooseSenList = [];
  18990. this.sentenceList[q].addChangeSen = [];
  18991. this.sentenceList[q].addChangeSen = JSON.parse(
  18992. JSON.stringify(this.sentenceList[q].addSentence)
  18993. );
  18994. this.sentenceList[q].chooseSenList.length =
  18995. this.sentenceList[q].rightAnswer.length;
  18996. }
  18997. this.dialogVisibleSentenceTeacher = true;
  18998. } else if (t == 48) {
  18999. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19000. .taskJson[index].toolChoose[i].tableJson
  19001. ? JSON.parse(
  19002. JSON.stringify(
  19003. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19004. index
  19005. ].toolChoose[i].tableJson
  19006. )
  19007. )
  19008. : { text: "" };
  19009. if (this.worksStudent[i].length) {
  19010. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19011. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19012. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19013. break;
  19014. }
  19015. }
  19016. }
  19017. this.dialogVisibleTableTeacher = true;
  19018. } else if (t == 40) {
  19019. if (this.evalCount > 0) {
  19020. this.updateCount(this.evalCount, t);
  19021. } else {
  19022. this.evalCount++;
  19023. a = this.evalCount;
  19024. this.toolsCount(a, t);
  19025. }
  19026. this.eScore = { eBzText: "", eStar: [] };
  19027. if (this.worksStudent[i].length) {
  19028. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19029. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19030. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19031. this.rateJson =
  19032. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19033. index
  19034. ].toolChoose[i].rateJson;
  19035. break;
  19036. } else {
  19037. this.rateJson =
  19038. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19039. index
  19040. ].toolChoose[i].rateJson;
  19041. }
  19042. }
  19043. } else {
  19044. this.rateJson =
  19045. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19046. index
  19047. ].toolChoose[i].rateJson;
  19048. }
  19049. this.isStar = false;
  19050. this.studentEvalDialogVisibleTeacher = true;
  19051. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19052. window.topU.postMessage(
  19053. {
  19054. tools: t + "teacher",
  19055. cid: this.id,
  19056. stage: this.courseType,
  19057. task: this.taskCount,
  19058. tool: i,
  19059. student: this.sStudent,
  19060. },
  19061. "*"
  19062. );
  19063. }else if (t == 72) {
  19064. if (!document.fullscreenElement) {
  19065. this.enterFullScreen();
  19066. }
  19067. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19068. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19069. }
  19070. },
  19071. openCocoPi(tool, i, uid, uname) {
  19072. let student = {
  19073. userid: uid,
  19074. student: uname,
  19075. };
  19076. if (tool == 57) {
  19077. window.topU.postMessage(
  19078. {
  19079. tools: tool + "teacher",
  19080. cid: this.id,
  19081. stage: this.courseType,
  19082. task: this.taskCount,
  19083. tool: i,
  19084. student: student,
  19085. },
  19086. "*"
  19087. );
  19088. }
  19089. },
  19090. setRightAnswer(s, i, j) {
  19091. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19092. if (
  19093. this.sentenceList[i].chooseSenList[q] == undefined ||
  19094. this.sentenceList[i].chooseSenList[q] == ""
  19095. ) {
  19096. this.sentenceList[i].chooseSenList[q] = s;
  19097. this.sentenceList[i].addChangeSen[j] = "";
  19098. break;
  19099. }
  19100. }
  19101. this.$forceUpdate();
  19102. },
  19103. returnCard(r, i, j) {
  19104. var a = this.sentenceList[i].addSentence.indexOf(r);
  19105. this.sentenceList[i].chooseSenList[j] = "";
  19106. this.sentenceList[i].addChangeSen[a] = r;
  19107. this.$forceUpdate();
  19108. },
  19109. // addSentenceTool() {
  19110. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19111. // this.taskCount
  19112. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19113. // this.sentenceList = [
  19114. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19115. // ];
  19116. // this.dialogVisibleSentence = false;
  19117. // },
  19118. toolsCount(a, t) {
  19119. let params = {
  19120. cid: this.id,
  19121. chid: this.courseType,
  19122. uid: this.userid,
  19123. tid: t,
  19124. count: a,
  19125. };
  19126. this.ajax
  19127. .get(this.$store.state.api + "insertToolsCount", params)
  19128. .then((res) => {
  19129. this.selectCount();
  19130. })
  19131. .catch((err) => {
  19132. console.error(err);
  19133. });
  19134. },
  19135. updateCount(c, t) {
  19136. c++;
  19137. let params = {
  19138. cid: this.id,
  19139. chid: this.courseType,
  19140. uid: this.userid,
  19141. tid: t,
  19142. count: c,
  19143. };
  19144. this.ajax
  19145. .get(this.$store.state.api + "updateToolsCount", params)
  19146. .then((res) => {
  19147. this.selectCount();
  19148. })
  19149. .catch((err) => {
  19150. console.error(err);
  19151. });
  19152. },
  19153. checkEva() {
  19154. if (this.evalua != "") {
  19155. for (var i = 0; i < this.evaJuri.length; i++) {
  19156. if (this.evalua == this.evaJuri[i].id) {
  19157. this.eTitle = this.evaJuri[i].title;
  19158. this.eJson = JSON.parse(this.evaJuri[i].content);
  19159. }
  19160. }
  19161. this.$forceUpdate();
  19162. setTimeout(() => {
  19163. this.setMindData();
  19164. }, 0);
  19165. }
  19166. },
  19167. selectEva() {
  19168. let params = {
  19169. oid: this.oid,
  19170. };
  19171. this.ajax
  19172. .get(this.$store.state.api + "selectAllEvaluation", params)
  19173. .then((res) => {
  19174. this.evaJuri = res.data[0];
  19175. })
  19176. .catch((err) => {
  19177. console.error(err);
  19178. });
  19179. },
  19180. setMindData() {
  19181. this.data.data = [];
  19182. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19183. let _eJson = Object.keys(this.eJson);
  19184. let _e = this.eJson;
  19185. for (let i = 0; i < _eJson.length; i++) {
  19186. let element = _e[_eJson[i]];
  19187. this.data.data.push({
  19188. id: element.id,
  19189. parentid: "root",
  19190. topic: element.name,
  19191. });
  19192. let _eJsonc = Object.keys(element.child);
  19193. let _e2 = element.child;
  19194. for (let j = 0; j < _eJsonc.length; j++) {
  19195. let _ec = _e2[_eJsonc[j]];
  19196. this.data.data.push({
  19197. id: _ec.id,
  19198. parentid: element.id,
  19199. topic: _ec.name,
  19200. });
  19201. let _eJsonz = Object.keys(_ec.child);
  19202. let _e3 = _ec.child;
  19203. for (let z = 0; z < _eJsonz.length; z++) {
  19204. let _ez = _e3[_eJsonz[z]];
  19205. this.data.data.push({
  19206. id: _ez.id,
  19207. parentid: _ec.id,
  19208. topic: _ez.name,
  19209. });
  19210. }
  19211. }
  19212. }
  19213. this.$forceUpdate();
  19214. },
  19215. checkFileFull(type, url) {
  19216. this.fullDialogVisible = true;
  19217. this.fulltype = type;
  19218. this.fullUrl = url;
  19219. },
  19220. async checkFileFull1(t, f) {
  19221. this.fullDialogVisible = true;
  19222. if (t == 6) {
  19223. this.fulltype = 1;
  19224. this.fullUrl = JSON.parse(JSON.stringify(f));
  19225. } else if (t == 8 ) {
  19226. this.fulltype = 2;
  19227. this.fullUrl = f.url;
  19228. }else if (t == 15) {
  19229. this.diffKey = new Date().getTime();
  19230. this.fulltype = 4;
  19231. this.fullUrl = f.url;
  19232. } else if (t == 16) {
  19233. this.fulltype = 16;
  19234. this.fullUrl = f.url;
  19235. } else if (
  19236. t == 3 &&
  19237. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19238. "PDF"
  19239. ) {
  19240. this.fulltype = 3;
  19241. this.fullUrl = f.url;
  19242. } else if (t == 3) {
  19243. this.fulltype = 2;
  19244. let _uuurl = await this.checkLink(f.url);
  19245. this.fullUrl =
  19246. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19247. }
  19248. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19249. },
  19250. openSname(n, id, i, uid) {
  19251. this.snameWid = id;
  19252. this.worksSName = n;
  19253. this.worksSid = uid == n ? "" : uid;
  19254. this.toolindex = i;
  19255. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19256. if (!this.uploadCid) {
  19257. this.$message.error(
  19258. this.lang.ssBatchUploadNoClassPermission
  19259. );
  19260. return;
  19261. }
  19262. this.selectUploadStudent(1);
  19263. },
  19264. updateName() {
  19265. let params = {
  19266. n: this.worksSName,
  19267. cid: this.snameWid,
  19268. };
  19269. this.ajax
  19270. .get(this.$store.state.api + "updateCourseWorksName", params)
  19271. .then((res) => {
  19272. this.$message({
  19273. message: "修改成功",
  19274. type: "success",
  19275. });
  19276. this.dialogVisibleSname = false;
  19277. this.getCourseDetail(2);
  19278. this.snameWid = "";
  19279. this.worksSName = "";
  19280. })
  19281. .catch((err) => {
  19282. console.error(err);
  19283. });
  19284. },
  19285. downloadFile2(f) {
  19286. // const loading = this.$loading.service({
  19287. // background: "rgba(255, 255, 255, 0.7)",
  19288. // target: document.body,
  19289. // text: "文件加载中...",
  19290. // });
  19291. // let url2 = f.url;
  19292. // let _url2 = "";
  19293. // if (
  19294. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19295. // ) {
  19296. // _url2 = url2.split(
  19297. // "https://view.officeapps.live.com/op/view.aspx?src="
  19298. // )[1];
  19299. // } else {
  19300. // _url2 = url2;
  19301. // }
  19302. // let params = {
  19303. // url: _url2,
  19304. // name: f.name,
  19305. // };
  19306. // this.ajax
  19307. // .get(this.$store.state.api + "download", params)
  19308. // .then((res) => {
  19309. // loading.close();
  19310. // let content = res.data.data.data;
  19311. // let ab = new ArrayBuffer(content.length);
  19312. // let view = new Uint8Array(ab);
  19313. // for (var i = 0; i < content.length; ++i) {
  19314. // view[i] = content[i];
  19315. // }
  19316. // let elink = document.createElement("a");
  19317. // elink.download = f.name;
  19318. // elink.style.display = "none";
  19319. // let blob = new Blob([ab], {
  19320. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19321. // });
  19322. // elink.href = URL.createObjectURL(blob);
  19323. // document.body.appendChild(elink);
  19324. // elink.click();
  19325. // document.body.removeChild(elink);
  19326. // })
  19327. // .catch((err) => {
  19328. // loading.close();
  19329. // console.error(err);
  19330. // });
  19331. var credentials = {
  19332. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19333. secretAccessKey: "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",
  19334. }; //秘钥形式的登录上传
  19335. window.AWS.config.update(credentials);
  19336. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19337. let url2 = f.url;
  19338. let _url2 = "";
  19339. if (
  19340. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19341. ) {
  19342. _url2 = url2.split(
  19343. "https://view.officeapps.live.com/op/view.aspx?src="
  19344. )[1];
  19345. } else {
  19346. _url2 = url2;
  19347. }
  19348. let _this = this;
  19349. _this.downLoading = true
  19350. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19351. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19352. var params = {
  19353. Bucket: "ccrb",
  19354. Key: name
  19355. };
  19356. s3.getObject(params, function (err, data) {
  19357. _this.downLoading = false
  19358. if (err) console.log(err, err.stack); // an error occurred
  19359. else {
  19360. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19361. let a = document.createElement("a");
  19362. a.name = f.name;
  19363. a.href = url;
  19364. a.download = f.name;
  19365. a.click();
  19366. console.log(data);
  19367. } // sxuccessful response
  19368. });
  19369. return;
  19370. let url = f.url;
  19371. let _url = "";
  19372. if (
  19373. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19374. ) {
  19375. _url = url.split(
  19376. "https://view.officeapps.live.com/op/view.aspx?src="
  19377. )[1];
  19378. } else {
  19379. _url = url;
  19380. }
  19381. _this.downLoading = true
  19382. let x = new XMLHttpRequest();
  19383. x.open("GET", _url, true);
  19384. x.responseType = "blob";
  19385. x.onload = function () {
  19386. _this.downLoading = false
  19387. let url = window.URL.createObjectURL(new Blob([x.response]));
  19388. let a = document.createElement("a");
  19389. a.name = f.name;
  19390. a.href = url;
  19391. a.download = f.name;
  19392. a.click();
  19393. };
  19394. x.send();
  19395. },
  19396. downloadFile(url,uid) {
  19397. if (this.tType == 1 || this.userid == uid) {
  19398. // this.$message.info("查看作业-下载文件")
  19399. var credentials = {
  19400. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19401. secretAccessKey: "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",
  19402. }; //秘钥形式的登录上传
  19403. window.AWS.config.update(credentials);
  19404. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19405. let url2 = url;
  19406. let _url2 = "";
  19407. if (
  19408. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19409. ) {
  19410. _url2 = url2.split(
  19411. "https://view.officeapps.live.com/op/view.aspx?src="
  19412. )[1];
  19413. } else {
  19414. _url2 = url2;
  19415. }
  19416. const loading2 = this.$loading.service({
  19417. background: "rgba(255, 255, 255, 0.7)",
  19418. target: document.body,
  19419. text: this.lang.ssFileLoading,
  19420. });
  19421. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19422. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19423. var params = {
  19424. Bucket: "ccrb",
  19425. Key: name
  19426. };
  19427. s3.getObject(params, function (err, data) {
  19428. loading2.close();
  19429. if (err) console.log(err, err.stack); // an error occurred
  19430. else {
  19431. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19432. let a = document.createElement("a");
  19433. a.name = name;
  19434. a.href = url;
  19435. a.download = name;
  19436. a.click();
  19437. console.log(data);
  19438. } // sxuccessful response
  19439. });
  19440. }
  19441. return;
  19442. // let _this = this;
  19443. // let _url = "";
  19444. // if (
  19445. // url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19446. // ) {
  19447. // _url = url.split(
  19448. // "https://view.officeapps.live.com/op/view.aspx?src="
  19449. // )[1];
  19450. // } else {
  19451. // _url = url;
  19452. // }
  19453. // const x = new XMLHttpRequest();
  19454. // x.open("GET", _url, true);
  19455. // x.responseType = "blob";
  19456. // // this.downLoading = true
  19457. // const loading = _this.$loading.service({
  19458. // background: "rgba(255, 255, 255, 0.7)",
  19459. // target: document.body,
  19460. // text: "文件加载中...",
  19461. // });
  19462. // // _this.$message.success("文件下载中...");
  19463. // x.onload = function (e) {
  19464. // loading.close();
  19465. // let content = x.response;
  19466. // let elink = document.createElement("a");
  19467. // elink.download = decodeURI(
  19468. // _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19469. // );
  19470. // elink.style.display = "none";
  19471. // let blob = new Blob([content]);
  19472. // elink.href = URL.createObjectURL(blob);
  19473. // document.body.appendChild(elink);
  19474. // elink.click();
  19475. // document.body.removeChild(elink);
  19476. // };
  19477. // x.send();
  19478. },
  19479. openLine(url) {
  19480. window.open(url);
  19481. },
  19482. resize() {
  19483. if (document.getElementsByClassName("box_course").length) {
  19484. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19485. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19486. if (this.showType == 2 || this.showType == 3) {
  19487. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  19488. document.getElementsByClassName("navBox")[0].style.height =
  19489. a - 40 + 0+ "px";
  19490. }
  19491. } else {
  19492. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  19493. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  19494. }
  19495. }
  19496. }
  19497. this.Stbodywidth =
  19498. document.getElementsByClassName("student_body").length &&
  19499. document.getElementsByClassName("student_body")[0].offsetWidth;
  19500. },
  19501. closeDraw() {
  19502. this.bg = null;
  19503. this.drawShow = false;
  19504. },
  19505. showPicturePaint(url) {
  19506. let params = {
  19507. img: url,
  19508. };
  19509. this.ajax
  19510. .get(this.$store.state.api + "imgToBase64", params)
  19511. .then((res) => {
  19512. this.drawShow = true;
  19513. this.bg = res.data[0].img;
  19514. })
  19515. .catch((err) => {
  19516. console.error(err);
  19517. });
  19518. },
  19519. addImgDraw(base64) {
  19520. let file = { name: this.lang.ssAnnotationImage };
  19521. let img = this.dataUrlToFile(base64, file);
  19522. this.beforeUpload1(img, 5);
  19523. },
  19524. addImgDrawImG(url) {
  19525. // console.log(url);
  19526. let params = [
  19527. {
  19528. wid: this.commentDetail.wid,
  19529. img: url,
  19530. },
  19531. ];
  19532. this.ajax
  19533. .post(this.$store.state.api + "updateCourseWorks", params)
  19534. .then((res) => {
  19535. this.$message({
  19536. message: this.lang.ssSubmitSuccess,
  19537. type: "success",
  19538. });
  19539. this.drawShow = false;
  19540. this.bg = "";
  19541. this.selectSWorks();
  19542. this.selectStudent();
  19543. })
  19544. .catch((err) => {
  19545. this.$message.error(this.lang.ssSubmitFailed);
  19546. console.error(err);
  19547. });
  19548. },
  19549. deletePicturePaint() {
  19550. this.$confirm(this.lang.ssConfirmDeleteAnnotation, this.lang.ssPrompt, {
  19551. confirmButtonText: this.lang.ssConfirm,
  19552. cancelButtonText: this.lang.ssCancel,
  19553. type: "warning",
  19554. })
  19555. .then(() => {
  19556. let params = [
  19557. {
  19558. wid: this.commentDetail.wid,
  19559. img: "",
  19560. },
  19561. ];
  19562. this.ajax
  19563. .post(this.$store.state.api + "updateCourseWorks", params)
  19564. .then((res) => {
  19565. this.$message({
  19566. message: this.lang.ssDeleteSuccess,
  19567. type: "success",
  19568. });
  19569. this.selectSWorks();
  19570. this.selectStudent();
  19571. })
  19572. .catch((err) => {
  19573. this.$message.error(this.lang.ssDeleteFailed);
  19574. console.error(err);
  19575. });
  19576. })
  19577. .catch(() => {});
  19578. },
  19579. getAudioVideo(constraintsData) {
  19580. if (navigator.mediaDevices === undefined) {
  19581. navigator.mediaDevices = {};
  19582. }
  19583. if (navigator.mediaDevices.getUserMedia === undefined) {
  19584. navigator.mediaDevices.getUserMedia = function (constraints) {
  19585. // 首先,如果有getUserMedia的话,就获得它
  19586. var getUserMedia =
  19587. navigator.getUserMedia ||
  19588. navigator.webkitGetUserMedia ||
  19589. navigator.mozGetUserMedia ||
  19590. navigator.msGetUserMedia;
  19591. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19592. if (!getUserMedia) {
  19593. return Promise.reject({ code: 404 });
  19594. }
  19595. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19596. return new Promise(function (resolve, reject) {
  19597. getUserMedia.call(navigator, constraints, resolve, reject);
  19598. });
  19599. };
  19600. }
  19601. return navigator.mediaDevices.getUserMedia(constraintsData);
  19602. },
  19603. /**
  19604. * 开始录制
  19605. */
  19606. startRecording(callback) {
  19607. let _function = (screenStream) => {
  19608. this.addStreamStopListener(screenStream, () => {
  19609. console.log("流停止监听");
  19610. this.stopRecording();
  19611. this.$emit("streamStop", {});
  19612. // this.stopRecording();
  19613. });
  19614. var options = {
  19615. type: "video",
  19616. mimeType: "video/webm",
  19617. disableLogs: false,
  19618. getNativeBlob: false, // enable it for longer recordings
  19619. ignoreMutedMedia: false,
  19620. };
  19621. // this.video.srcObject = screenStream;
  19622. this.recorder = RecordRTC(screenStream, options);
  19623. this.recorder.startRecording();
  19624. this.recorder.screen = screenStream;
  19625. this.videoStart = true;
  19626. // callback(true);
  19627. };
  19628. this.getAudioVideo({ audio: true })
  19629. .then((res) => {
  19630. this.captureScreen(_function, true);
  19631. console.log("已点击允许,开启成功");
  19632. })
  19633. .catch((err) => {
  19634. // console.log('浏览器不支持,请更换浏览器')
  19635. // } else {
  19636. this.captureScreen(_function, false);
  19637. console.log("请检查是否存在麦克风");
  19638. });
  19639. },
  19640. /**
  19641. * 停止录制
  19642. */
  19643. stopRecording(callback) {
  19644. this.recorder.stopRecording(() => {
  19645. // this.video.src = this.video.srcObject = null;
  19646. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19647. const url = URL.createObjectURL(this.recorder.getBlob());
  19648. const a = document.createElement("a"); //this.fileName+
  19649. let videoFile = new File(
  19650. [this.recorder.getBlob()],
  19651. this.courseDetail.title + this.lang.ssScreenRecording + ".mp4",
  19652. {
  19653. type: "video/mp4",
  19654. }
  19655. );
  19656. let downloadUrl = URL.createObjectURL(videoFile);
  19657. if(this.$refs.classRoomHelperRef){
  19658. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19659. }
  19660. document.body.appendChild(a);
  19661. a.style.display = "none";
  19662. a.href = url;
  19663. a.download = this.courseDetail.title + this.lang.ssScreenRecording + ".mp4"; //this.fileName +
  19664. a.click();
  19665. this.recorder.screen.stop();
  19666. this.recorder.destroy();
  19667. this.recorder = null;
  19668. this.videoStart = false;
  19669. // callback(false);
  19670. });
  19671. },
  19672. //初始化
  19673. captureScreen(callback, type) {
  19674. if (navigator.getDisplayMedia) {
  19675. //录制结束,文件下载
  19676. navigator
  19677. .getDisplayMedia({
  19678. video: true,
  19679. })
  19680. .then((screenStream) => {
  19681. if (type) {
  19682. navigator.mediaDevices
  19683. .getUserMedia({ audio: true })
  19684. .then((mic) => {
  19685. screenStream.addTrack(mic.getTracks()[0]);
  19686. callback(screenStream);
  19687. });
  19688. } else {
  19689. callback(screenStream);
  19690. }
  19691. })
  19692. .catch(function (error) {
  19693. console.log("error", error);
  19694. });
  19695. } else if (navigator.mediaDevices.getDisplayMedia) {
  19696. navigator.mediaDevices
  19697. .getDisplayMedia({
  19698. video: true,
  19699. })
  19700. .then((screenStream) => {
  19701. if (type) {
  19702. navigator.mediaDevices
  19703. .getUserMedia({ audio: true })
  19704. .then((mic) => {
  19705. screenStream.addTrack(mic.getTracks()[0]);
  19706. callback(screenStream);
  19707. });
  19708. } else {
  19709. callback(screenStream);
  19710. }
  19711. })
  19712. .catch(function (error) {
  19713. console.log("error", error);
  19714. });
  19715. } else {
  19716. var error = "getDisplayMedia API are not supported in this browser.";
  19717. console.log("error", error);
  19718. alert(error);
  19719. }
  19720. },
  19721. //流监听
  19722. addStreamStopListener(stream, callback) {
  19723. stream.addEventListener(
  19724. "ended",
  19725. function () {
  19726. callback();
  19727. callback = function () {};
  19728. },
  19729. false
  19730. );
  19731. stream.addEventListener(
  19732. "inactive",
  19733. function () {
  19734. callback();
  19735. callback = function () {};
  19736. },
  19737. false
  19738. );
  19739. stream.getTracks().forEach(function (track) {
  19740. track.addEventListener(
  19741. "ended",
  19742. function () {
  19743. callback();
  19744. callback = function () {};
  19745. },
  19746. false
  19747. );
  19748. track.addEventListener(
  19749. "inactive",
  19750. function () {
  19751. callback();
  19752. callback = function () {};
  19753. },
  19754. false
  19755. );
  19756. });
  19757. },
  19758. updateGroup() {
  19759. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19760. this.dialogVisibleGroup2 = true;
  19761. },
  19762. numberPan() {
  19763. if (
  19764. /[^\d]/.test(this.groupJson.number) ||
  19765. this.groupJson.number < 2 ||
  19766. this.groupJson.number > 10
  19767. ) {
  19768. this.$message.error(this.lang.ssEnterNumber2To10);
  19769. this.groupJson.number = "";
  19770. }
  19771. },
  19772. updateGroupJson() {
  19773. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19774. if (
  19775. this.groupStudentUid[this.toolindex][i].length >
  19776. this.groupJson2.number
  19777. ) {
  19778. this.$message.error(this.lang.ssGroupLargerThanSet);
  19779. return;
  19780. }
  19781. }
  19782. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19783. this.islock = this.groupJson.islock == 1 ? true : false;
  19784. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19785. this.taskCount
  19786. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19787. let params = [
  19788. {
  19789. cid: this.id,
  19790. chapters: JSON.stringify(this.chapInfoList),
  19791. uid: this.userid,
  19792. unitIndex: this.courseType,
  19793. },
  19794. ];
  19795. this.ajax
  19796. .post(this.$store.state.api + "updateWorkNew4", params)
  19797. .then((res) => {
  19798. this.$message.success(this.lang.ssSettingSuccess);
  19799. this.getCourseDetail(2);
  19800. this.dialogVisibleGroup2 = false;
  19801. this.groupJson2 = {};
  19802. this.$forceUpdate();
  19803. })
  19804. .catch((err) => {
  19805. this.$message.error(this.lang.ssNetworkPoor);
  19806. console.error(err);
  19807. });
  19808. },
  19809. lockChair() {
  19810. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19811. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19812. this.updateGroupJson();
  19813. },
  19814. selectGroup(index) {
  19815. this.getCourseDetail(2, index);
  19816. },
  19817. joinGroup(index) {
  19818. if (this.groupJson.islock == 2) {
  19819. this.$message.error(this.lang.ssPositionLockedCannotJoin);
  19820. return;
  19821. }
  19822. if (
  19823. this.groupStudent[this.toolindex][index].length >
  19824. this.groupJson.number ||
  19825. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19826. ) {
  19827. this.$message.error(this.lang.ssPositionFullCannotJoin);
  19828. return;
  19829. }
  19830. let params = [
  19831. {
  19832. cid: this.id,
  19833. stage: this.courseType,
  19834. task: this.taskCount,
  19835. tool: this.toolindex,
  19836. g: index,
  19837. uid: this.userid,
  19838. },
  19839. ];
  19840. this.ajax
  19841. .post(this.$store.state.api + "joinGroup", params)
  19842. .then((res) => {
  19843. this.$message.success(this.lang.ssJoinSuccess);
  19844. this.getCourseDetail(2);
  19845. })
  19846. .catch((err) => {
  19847. this.$message.error(this.lang.ssNetworkPoor);
  19848. console.error(err);
  19849. });
  19850. },
  19851. exitGroup(id) {
  19852. if (this.groupJson.islock == 2) {
  19853. this.$message.error(this.lang.ssPositionLockedCannotExit);
  19854. return;
  19855. }
  19856. let params = [
  19857. {
  19858. gid: id,
  19859. },
  19860. ];
  19861. this.ajax
  19862. .post(this.$store.state.api + "exitGroup", params)
  19863. .then((res) => {
  19864. this.$message.success(this.lang.ssExitSuccess);
  19865. this.getCourseDetail(2);
  19866. })
  19867. .catch((err) => {
  19868. this.$message.error(this.lang.ssNetworkPoor);
  19869. console.error(err);
  19870. });
  19871. },
  19872. groupUpload(index, task, gindex) {
  19873. this.taskCount = task;
  19874. this.toolindex = index;
  19875. this.groupIndex = gindex;
  19876. this.dialogVisibleGroupWork = true;
  19877. },
  19878. updateGroupChair(user) {
  19879. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19880. el.label = index;
  19881. return index != user.group;
  19882. });
  19883. this.updateGroupUser = user;
  19884. this.dialogVisibleUpdateGroup = true;
  19885. },
  19886. updateChair() {
  19887. if (
  19888. this.groupStudent[this.toolindex][this.checkChair].length >
  19889. this.groupJson.number ||
  19890. this.groupStudent[this.toolindex][this.checkChair].length ==
  19891. this.groupJson.number
  19892. ) {
  19893. this.$message.error(this.lang.ssPositionFullCannotJoin);
  19894. return;
  19895. }
  19896. let params = [
  19897. {
  19898. cid: this.id,
  19899. stage: this.courseType,
  19900. task: this.taskCount,
  19901. tool: this.toolindex,
  19902. g: this.checkChair,
  19903. uid: this.updateGroupUser.userid,
  19904. },
  19905. ];
  19906. this.ajax
  19907. .post(this.$store.state.api + "joinGroup", params)
  19908. .then((res) => {
  19909. this.$message.success(this.lang.ssModifySuccess);
  19910. this.updateGroupUser = {};
  19911. this.checkChair = "";
  19912. this.updateGroupArray = {};
  19913. this.dialogVisibleUpdateGroup = false;
  19914. this.getCourseDetail(2);
  19915. })
  19916. .catch((err) => {
  19917. this.$message.error(this.lang.ssNetworkPoor);
  19918. console.error(err);
  19919. });
  19920. },
  19921. deleteGroupChair(gindex) {
  19922. this.checkDeleteGroup = [];
  19923. this.deleteGroupUser = JSON.parse(
  19924. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19925. );
  19926. this.deleteGroupArray = this.groupJson.group[gindex];
  19927. this.groupIndex = gindex;
  19928. this.dialogVisibleDeleteGroup = true;
  19929. },
  19930. async deleteChair() {
  19931. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19932. const gid =
  19933. this.groupStudent[this.toolindex][this.groupIndex][
  19934. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19935. this.checkDeleteGroup[i]
  19936. )
  19937. ];
  19938. let params = [
  19939. {
  19940. gid: gid.id,
  19941. },
  19942. ];
  19943. var a = await this.deleteChairA(params);
  19944. if (i == this.checkDeleteGroup.length - 1) {
  19945. this.$message.success(this.lang.ssExitSuccess);
  19946. this.dialogVisibleDeleteGroup = false;
  19947. this.deleteGroupUser = [];
  19948. this.deleteGroupArray = {};
  19949. this.groupIndex = "";
  19950. this.checkDeleteGroup = [];
  19951. this.getCourseDetail(2);
  19952. }
  19953. }
  19954. },
  19955. deleteChairA(params) {
  19956. return new Promise((resolve, reject) => {
  19957. this.ajax
  19958. .post(this.$store.state.api + "exitGroup", params)
  19959. .then((res) => {
  19960. resolve(1);
  19961. })
  19962. .catch((err) => {
  19963. this.$message.error(this.lang.ssNetworkPoor);
  19964. console.error(err);
  19965. });
  19966. });
  19967. },
  19968. contract(i) {
  19969. if (this.isCloseList[i].isClose == 0) {
  19970. this.isCloseList[i].isClose = 1;
  19971. } else {
  19972. this.isCloseList[i].isClose = 0;
  19973. }
  19974. this.$forceUpdate();
  19975. },
  19976. openWordCloud(toolindex) {
  19977. this.wordCloudData = '';
  19978. let array = [];
  19979. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19980. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19981. array.push({ name: works });
  19982. }
  19983. if (this.isGroup) {
  19984. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19985. let works = this.courseGroup.group[i].works[toolindex];
  19986. for (var j = 0; j < works.length; j++) {
  19987. let answer = JSON.parse(works[j].works)[0].answer;
  19988. array.push({ name: answer });
  19989. }
  19990. }
  19991. }
  19992. let _result = ''
  19993. array.forEach(e=>{
  19994. _result +=e.name+','
  19995. })
  19996. this.wordCloudData = _result;
  19997. this.dialogVisibleWordCloud = true;
  19998. this.wordCloudKey += 1;
  19999. },
  20000. uploadWorks(i) {
  20001. this.$confirm(this.lang.ssConfirmExportHomework, this.lang.ssPrompt, {
  20002. confirmButtonText: this.lang.ssConfirm,
  20003. cancelButtonText: this.lang.ssCancel,
  20004. type: "warning",
  20005. })
  20006. .then(() => {
  20007. const loading = this.$loading.service({
  20008. background: "rgba(255, 255, 255, 0.7)",
  20009. target: document.body,
  20010. text: this.lang.ssFileLoading,
  20011. });
  20012. const _worksStudent = this.worksStudent;
  20013. let url = [];
  20014. var counts = {};
  20015. for (var l = 0; l < _worksStudent[i].length; l++) {
  20016. var item = _worksStudent[i][l];
  20017. var name = item.sName;
  20018. if (!counts.hasOwnProperty(name)) {
  20019. counts[name] = 0;
  20020. } else {
  20021. counts[name]++;
  20022. }
  20023. if (counts[name] > 0) {
  20024. item.sName += " (" + counts[name] + ")";
  20025. }
  20026. }
  20027. for (var l = 0; l < _worksStudent[i].length; l++) {
  20028. var item = _worksStudent[i][l];
  20029. if (
  20030. item.works.indexOf(
  20031. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20032. ) !== -1 &&
  20033. item.works.indexOf("img") === -1
  20034. ) {
  20035. url.push({ name: item.sName, url: item.works });
  20036. }
  20037. }
  20038. // var toolList = [
  20039. // { name: "电子白板", tool: 1 },
  20040. // { name: "思维导图", tool: 3 },
  20041. // { name: "协同文档", tool: 6 },
  20042. // { name: "思维网格", tool: 7 },
  20043. // { name: "素材库", tool: 8 },
  20044. // { name: "学习资料", tool: 17 },
  20045. // { name: "便签", tool: 2 },
  20046. // { name: "问卷调查", tool: 4 },
  20047. // { name: "选择题", tool: 45 },
  20048. // { name: "倒计时", tool: 10 },
  20049. // { name: "问答", tool: 15 },
  20050. // { name: "课程设计", tool: 26 },
  20051. // { name: "训练服务器", tool: 18 },
  20052. // { name: "作业提交", tool: 16 },
  20053. // { name: "批量上传", tool: 50 },
  20054. // { name: "AIoT Blockly", tool: 21 },
  20055. // { name: "AI Python", tool: 23 },
  20056. // { name: "AI Blockly", tool: 24 },
  20057. // { name: "目标管理", tool: 25 },
  20058. // { name: this.lang.ssMathBoard, tool: 31 },
  20059. // { name: "翻译", tool: 28 },
  20060. // { name: this.lang.ssMohe, tool: 37 },
  20061. // { name: this.lang.ssMathBoard, tool: 31 },
  20062. // { name: "24点", tool: 38 },
  20063. // { name: "GeoGebra", tool: 39 },
  20064. // { name: "源码编辑", tool: 32 },
  20065. // { name: "个人评价", tool: 40 },
  20066. // { name: "选择匹配", tool: 41 },
  20067. // { name: this.lang.ssHanziPalace, tool: 44 },
  20068. // { name: "排序", tool: 47 },
  20069. // { name: "表格", tool: 48 },
  20070. // { name: "文档", tool: 52 },
  20071. // { name: "学生分组", tool: 49 },
  20072. // { name: "CocoPi", tool: 57 },
  20073. // { name: "模拟驾驶", tool: 58 },
  20074. // { name: "路径搜索", tool: 59 },
  20075. // { name: "深度学习", tool: 60 },
  20076. // { name: "全历史", tool: 61 },
  20077. // { name: "交互视频", tool: 62 },
  20078. // { name: "海龟编程", tool: 63 },
  20079. // { name: "挑人", tool: 65 },
  20080. // { name: "公式编辑", tool: 66 },
  20081. // { name: "分子结构", tool: 67 },
  20082. // { name: "时间轴", tool: 68 },
  20083. // ];
  20084. // var toolName = "";
  20085. // for(var w = 0;w<toolList.length;w++){
  20086. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20087. // toolName = toolList[w].name;
  20088. // }
  20089. // }
  20090. console.log(url);
  20091. this.downLoadAll(url, loading);
  20092. })
  20093. .catch(() => {});
  20094. },
  20095. downLoadAll(url, loading) {
  20096. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20097. const zip = new JSZip();
  20098. const cache = {};
  20099. const promises = [];
  20100. data.forEach((item) => {
  20101. const promise = getFile(item.url).then((data) => {
  20102. if (data.data != 1) {
  20103. // 下载文件, 并存成ArrayBuffer对象
  20104. const file_name =
  20105. item.name +
  20106. "." +
  20107. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20108. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20109. cache[file_name] = data.data;
  20110. }
  20111. });
  20112. promises.push(promise);
  20113. });
  20114. Promise.all(promises).then(() => {
  20115. zip.generateAsync({ type: "blob" }).then((content) => {
  20116. // 生成二进制流
  20117. FileSaver.saveAs(
  20118. content,
  20119. this.courseDetail.title + "-" + this.lang.ssHomeworkSubmissionTool + ".zip"
  20120. ); // 利用file-saver保存文件 自定义文件名
  20121. setTimeout(() => {
  20122. loading.close();
  20123. }, 2000);
  20124. });
  20125. });
  20126. },
  20127. pickStudent(stu) {
  20128. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20129. return;
  20130. }
  20131. this.$confirm(this.lang.ssAskStudentToAnswer.replace(/\*/g, stu.name), this.lang.ssPrompt, {
  20132. confirmButtonText: this.lang.ssConfirm,
  20133. cancelButtonText: this.lang.ssCancel,
  20134. type: "warning",
  20135. })
  20136. .then(() => {
  20137. let params = [
  20138. {
  20139. uid: stu.userid,
  20140. cid: this.id,
  20141. stage: this.courseType,
  20142. task: this.taskCount,
  20143. tool: this.toolindex,
  20144. },
  20145. ];
  20146. this.ajax
  20147. .post(this.$store.state.api + "updateCoursePick", params)
  20148. .then((res) => {
  20149. this.$message.success(this.lang.ssOperationSuccess);
  20150. this.getPick();
  20151. })
  20152. .catch((err) => {
  20153. this.$message.error(this.lang.ssNetworkPoor);
  20154. console.error(err);
  20155. });
  20156. })
  20157. .catch(() => {});
  20158. },
  20159. selectUser(){
  20160. let params = {
  20161. userid: this.userid,
  20162. };
  20163. this.ajax
  20164. .get(this.$store.state.api + "selectUser", params)
  20165. .then((res) => {
  20166. this.userMes = res.data[0];
  20167. })
  20168. .catch((err) => {
  20169. console.error(err);
  20170. });
  20171. },
  20172. setEngText(i){
  20173. this.newEngIndex = i;
  20174. this.$forceUpdate();
  20175. },
  20176. addCorrect(){
  20177. this.$confirm(this.lang.ssConfirmSubmitCorrection, this.lang.ssPrompt, {
  20178. confirmButtonText: this.lang.ssConfirm,
  20179. showCancelButton: false,
  20180. closeOnClickModal: false,
  20181. type: "warning",
  20182. })
  20183. .then(() => {
  20184. let params = {
  20185. cid: this.id,
  20186. s: parseInt(this.courseType),
  20187. t: this.taskCount,
  20188. tool: this.toolindex,
  20189. wid: this.engWid,
  20190. c: this.userid,
  20191. 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) : "",
  20192. };
  20193. this.ajax
  20194. .get(this.$store.state.api + "addEngC", params)
  20195. .then((res) => {
  20196. this.$message.success(this.lang.ssSubmitSuccess);
  20197. this.engUpdateDialogVisible = false;
  20198. })
  20199. .catch((err) => {
  20200. console.error(err);
  20201. });
  20202. })
  20203. .catch(() => {});
  20204. },
  20205. selectEngC(id,z){
  20206. let params = {
  20207. workid: id,
  20208. };
  20209. this.ajax
  20210. .get(this.$store.state.api + "selectEngC", params)
  20211. .then((res) => {
  20212. if(res.data[0].length == 0){
  20213. this.newEnglishList.engTitle = z.engTitle;
  20214. this.newEnglishList.engText = z.engText;
  20215. }else{
  20216. var a = res.data[0];
  20217. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20218. if(this.userMes[0].type == 2){
  20219. var snum = 0;
  20220. for(var i = 0;i<a.length;i++){
  20221. if(this.userMes[0].userid == a[i].correct){
  20222. this.newEnglishList = JSON.parse(a[i].cWork);
  20223. snum = 1;
  20224. }
  20225. }
  20226. if(snum == 0){
  20227. this.newEnglishList = { engTitle:"",engText:"" };
  20228. this.newEnglishList.engTitle = z.engTitle;
  20229. this.newEnglishList.engText = z.engText;
  20230. }
  20231. }else if(this.userMes[0].type == 1){
  20232. var num = 0;
  20233. for(var w= 0;w<a.length;w++){
  20234. if(this.userMes[0].userid == a[w].correct){
  20235. num = 1;
  20236. }
  20237. }
  20238. if(num == 0){
  20239. this.isNoUserid = true;
  20240. var c = JSON.parse(JSON.stringify(z));
  20241. this.oldEnglishJson1 = c;
  20242. }else{
  20243. this.isNoUserid = false;
  20244. }
  20245. var b = a.sort((item, index) => {
  20246. console.log(item)
  20247. if (item.correct === this.userMes[0].userid) {
  20248. return -1; // 将a移到前面
  20249. } else if (index.correct === this.userMes[0].userid) {
  20250. return 1; // 将b移到前面
  20251. } else {
  20252. return 0; // 保持默认顺序
  20253. }
  20254. });
  20255. for(var p = 0;p<b.length;p++){
  20256. for(var y = 0;y<ppp.length;y++){
  20257. if(b[p].id == ppp[y].id){
  20258. b[p].cWork = JSON.parse(ppp[y].cWork);
  20259. break
  20260. }
  20261. }
  20262. }
  20263. this.newEnglishList1 = b;
  20264. }
  20265. }
  20266. this.greyType = false;
  20267. setTimeout(() => {
  20268. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20269. if(this.newEnglishList1.length > 0){
  20270. if(this.isNoUserid == true){
  20271. this.engListLength = this.newEnglishList1.length + 1;
  20272. this.newEngIndex = -1;
  20273. }else{
  20274. this.engListLength = this.newEnglishList1.length;
  20275. this.newEngIndex = 0;
  20276. }
  20277. }
  20278. if(this.userMes[0].type == 2){
  20279. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20280. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20281. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20282. }else if(this.newEngIndex == -1){
  20283. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20284. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20285. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20286. }
  20287. }, 500);
  20288. this.engUpdateDialogVisible = true;
  20289. this.$forceUpdate();
  20290. })
  20291. .catch((err) => {
  20292. console.error(err);
  20293. });
  20294. },
  20295. getPick() {
  20296. if(this.getPickLoading) return
  20297. this.getPickLoading = true
  20298. let params = {
  20299. cid: this.id,
  20300. };
  20301. this.ajax
  20302. .get(this.$store.state.api + "getPick", params)
  20303. .then((res) => {
  20304. let array = [];
  20305. for (var i = 0; i < res.data[0].length; i++) {
  20306. array.push(res.data[0][i].userid);
  20307. }
  20308. this.isPickStudent = array;
  20309. if (array.indexOf(this.userid) !== -1) {
  20310. this.$confirm(this.lang.ssSelectedByTeacher, this.lang.ssPrompt, {
  20311. confirmButtonText: this.lang.ssConfirm,
  20312. showCancelButton: false,
  20313. closeOnClickModal: false,
  20314. type: "warning",
  20315. })
  20316. .then(() => {
  20317. let pa = [
  20318. {
  20319. uid: this.userid,
  20320. cid: this.id,
  20321. },
  20322. ];
  20323. this.ajax
  20324. .post(this.$store.state.api + "deletePick", pa)
  20325. .then((res) => {
  20326. this.getPick();
  20327. })
  20328. .catch((err) => {
  20329. this.$message.error(this.lang.ssNetworkPoor);
  20330. console.error(err);
  20331. });
  20332. })
  20333. .catch(() => {});
  20334. }
  20335. this.getPickLoading = false
  20336. })
  20337. .catch((err) => {
  20338. this.getPickLoading = false
  20339. this.$message.error(this.lang.ssNetworkPoor);
  20340. console.error(err);
  20341. });
  20342. },
  20343. foldEva() {
  20344. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20345. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20346. } else {
  20347. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20348. setTimeout(() => {
  20349. this.checkEva();
  20350. setTimeout(() => {
  20351. this.checkEva();
  20352. }, 500);
  20353. }, 0);
  20354. }
  20355. this.$forceUpdate();
  20356. },
  20357. panToolHeight(tool) {
  20358. var _tool = document.querySelectorAll('#'+tool)[0]
  20359. var _toolA = _tool ? _tool.offsetHeight : 0
  20360. var _toolC = 0
  20361. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20362. let boolean2 = (_toolA > _toolC) ? true : false
  20363. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20364. this.$forceUpdate();
  20365. },
  20366. async checkLink(url) {
  20367. console.log(url)
  20368. let _url = url
  20369. try {
  20370. const response = await fetch(url);
  20371. if(!response.ok){
  20372. _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]))
  20373. }
  20374. console.log(response.ok)
  20375. } catch (error) {
  20376. console.error('Error checking link:', error);
  20377. // console.log(false)
  20378. _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]))
  20379. }
  20380. // console.log(_url)
  20381. return _url
  20382. },
  20383. getScoreList(){
  20384. let params = {
  20385. cid: this.id,
  20386. };
  20387. this.ajax
  20388. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20389. .then((res) => {
  20390. let result = res.data;
  20391. this.scoreList.datalist = result[0];
  20392. this.scoreList.isScoreList = result[1];
  20393. })
  20394. .catch((err) => {
  20395. console.error(err);
  20396. });
  20397. },
  20398. setClassRoomHelperWidth(width){
  20399. this.classRoomHelperWidth = width
  20400. },
  20401. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20402. this.$refs.choseWorksDetailDialogRef.open({
  20403. toolType:tooc,
  20404. tType: this.tType,
  20405. toolIndex: toolIndex
  20406. });
  20407. this.changeSplitScreenBehavior({
  20408. code: 1,
  20409. form: {
  20410. toolType:tooc,
  20411. toolIndex: toolIndex,
  20412. courseType: this.courseType,
  20413. taskCount: this.taskCount,
  20414. type: 0
  20415. }
  20416. });
  20417. },
  20418. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20419. this.$refs.statisticalAnalysisRef.open({
  20420. worksStudent: this.worksStudent[toolIndex],
  20421. tType: this.tType,
  20422. toolIndex: toolIndex
  20423. });
  20424. this.changeSplitScreenBehavior({
  20425. code: 2,
  20426. form: {
  20427. toolType:4,
  20428. courseType: this.courseType,
  20429. taskCount: this.taskCount,
  20430. toolIndex: toolIndex,
  20431. type: 0
  20432. }
  20433. });
  20434. },
  20435. statisticalAnalysisRefresh(toolIndex) {
  20436. this.$refs.statisticalAnalysisRef.refreshData({
  20437. worksStudent: this.worksStudent[toolIndex],
  20438. tType: this.tType,
  20439. toolIndex: toolIndex
  20440. });
  20441. },
  20442. async splitScreenBehavior(type = 0) {
  20443. // return;
  20444. if (this.splitScreenData.loading)
  20445. return this.$message.info(this.lang.ssOperationTooFast);
  20446. if (type == 0) {
  20447. //关闭分屏
  20448. this.splitScreenData.isOpen = false;
  20449. // this.splitScreenData.userId = "";
  20450. // this.splitScreenData.uid = "";
  20451. this.splitScreenData.behavior = null;
  20452. await this.updateSplitScreenData(1);
  20453. this.$message.success(this.lang.ssSplitScreenClosed);
  20454. this.studentFreePreview(false);
  20455. this.OpenJobPreview(false);
  20456. // this.followingMode(false);
  20457. } else if (type == 1) {
  20458. //开启分屏
  20459. this.splitScreenData.isOpen = true;
  20460. this.splitScreenData.userId = this.userid;
  20461. this.splitScreenData.uid = this.splitScreenData.myUid;
  20462. this.splitScreenData.behavior = null;
  20463. let status = await this.updateSplitScreenData(0);
  20464. this.changeSplitScreenBehavior({form:{}})
  20465. if (status == 1) {
  20466. this.$message.success(this.lang.ssSplitScreenOpened);
  20467. this.studentFreePreview(false);
  20468. this.OpenJobPreview(true);
  20469. // this.followingMode(true);
  20470. } else {
  20471. this.splitScreenData.isOpen = false;
  20472. this.splitScreenData.userId = "";
  20473. this.splitScreenData.uid = "";
  20474. this.splitScreenData.behavior = null;
  20475. this.$message.success(this.lang.ssSplitScreenOpenFailed);
  20476. }
  20477. }
  20478. },
  20479. enterFullScreen() {
  20480. let element = document.documentElement;
  20481. if (element.requestFullscreen) {
  20482. element.requestFullscreen();
  20483. } else if (element.mozRequestFullScreen) { /* Firefox */
  20484. element.mozRequestFullScreen();
  20485. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  20486. element.webkitRequestFullscreen();
  20487. } else if (element.msRequestFullscreen) { /* IE/Edge */
  20488. element.msRequestFullscreen();
  20489. }
  20490. },
  20491. exitFullScreen() {
  20492. if (document.exitFullscreen) {
  20493. document.exitFullscreen();
  20494. } else if (document.mozCancelFullScreen) { /* Firefox */
  20495. document.mozCancelFullScreen();
  20496. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  20497. document.webkitExitFullscreen();
  20498. } else if (document.msExitFullscreen) { /* IE/Edge */
  20499. document.msExitFullscreen();
  20500. }
  20501. },
  20502. confirmOpen(){
  20503. this.splitScreenData.isOpen = true;
  20504. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  20505. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  20506. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  20507. this.confirmOpenDig = false
  20508. if (!document.fullscreenElement) {
  20509. this.enterFullScreen();
  20510. }
  20511. // if (this.timer2) {
  20512. // clearInterval(this.timer2);
  20513. // this.timer2 = null;
  20514. // }
  20515. // this.timer2 = setInterval(()=> {
  20516. // this.getSplitScreenData();//获取分屏数据
  20517. // }, 5000);
  20518. this.$message.success(this.lang.ssSplitScreenEnabled);
  20519. },
  20520. // 获取分屏数据
  20521. getSplitScreenData() {
  20522. // return;
  20523. // if (this.tType != 1) return;
  20524. if(this.getSplitScreenDataLoading) return
  20525. this.getSplitScreenDataLoading = true
  20526. let params = {
  20527. cid: this.id
  20528. };
  20529. this.ajax
  20530. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20531. .then(async res => {
  20532. let data = res.data[0][0]["splitScreenData"];
  20533. console.log("获取了分屏数:", data);
  20534. if (data) {
  20535. data = JSON.parse(data);
  20536. if (
  20537. !this.splitScreenData.isOpen &&
  20538. data.isOpen &&
  20539. this.splitScreenData.myUid == data.uid
  20540. ) {
  20541. this.splitScreenData.isOpen = false;
  20542. this.splitScreenData.userId = "";
  20543. this.splitScreenData.uid = "";
  20544. this.splitScreenData.behavior = null;
  20545. await this.updateSplitScreenData(1);
  20546. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20547. this.confirmOpenDig = true
  20548. this.confirmOpenDigData = data
  20549. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20550. this.splitScreenData.isOpen = false;
  20551. this.splitScreenData.userId = "";
  20552. this.splitScreenData.uid = "";
  20553. this.splitScreenData.behavior = null;
  20554. this.$message.error(this.lang.ssSplitScreenEnded);
  20555. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20556. this.splitScreenData.isOpen = true;
  20557. this.splitScreenData.uid = data.uid;
  20558. this.splitScreenData.userId = data.userId;
  20559. this.splitScreenData.behavior = data.behavior;
  20560. }
  20561. this.doSplitScreenBehavior();
  20562. } else {
  20563. if (this.splitScreenData.isOpen) {
  20564. this.splitScreenData.isOpen = false;
  20565. this.splitScreenData.userId = "";
  20566. this.splitScreenData.uid = "";
  20567. this.splitScreenData.behavior = null;
  20568. this.$message.error(this.lang.ssSplitScreenEnded);
  20569. // if (this.timer2) {
  20570. // clearInterval(this.timer2);
  20571. // this.timer2 = null;
  20572. // }
  20573. // this.timer2 = setInterval(()=> {
  20574. // this.getSplitScreenData();//获取分屏数据
  20575. // }, 5000);
  20576. this.$confirm(this.lang.ssTeacherEndedSplitScreen, this.lang.ssPrompt, {
  20577. confirmButtonText: '确定', //确认按钮的文字
  20578. showCancelButton: false, //是否显示取消按钮
  20579. showClose: false, //是否显示关闭按钮
  20580. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  20581. type: "warning",
  20582. })
  20583. .then(() => {
  20584. if (document.fullscreenElement) {
  20585. this.exitFullScreen();
  20586. }
  20587. })
  20588. .catch(() => {});
  20589. }
  20590. }
  20591. this.getSplitScreenDataLoading = false
  20592. })
  20593. .catch(e => {
  20594. this.getSplitScreenDataLoading = false
  20595. console.log("获取分屏数出错:", e);
  20596. });
  20597. },
  20598. // 操作
  20599. doSplitScreenBehavior() {
  20600. if (
  20601. this.splitScreenData.isOpen &&
  20602. this.splitScreenData.uid != this.splitScreenData.myUid
  20603. ) {
  20604. let behavior = this.splitScreenData.behavior;
  20605. if (behavior) {
  20606. // console.log('behavior',behavior);
  20607. // this.toolindex = behavior.form.toolType
  20608. // 初始状态
  20609. if (behavior.code === 99) {
  20610. //初始化
  20611. this.fullDialogVisible = false;
  20612. if(this.$refs.choseWorksDetailDialogRef.show){
  20613. this.$refs.choseWorksDetailDialogRef.close();
  20614. }
  20615. if(this.$refs.statisticalAnalysisRef.show){
  20616. this.$refs.statisticalAnalysisRef.close();
  20617. }
  20618. }
  20619. // 文件列表
  20620. if (behavior.code === 0) {
  20621. //开启内容列表弹窗
  20622. this.checkFileFull1(behavior.form.t, behavior.form.f);
  20623. }else{
  20624. this.fullDialogVisible = false;
  20625. }
  20626. // 打开工具
  20627. if (behavior.code === 1) {
  20628. //关于选择题的作业详细的操作
  20629. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20630. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20631. this.courseType = behavior.form.courseType;
  20632. this.taskCount = behavior.form.taskCount;
  20633. }
  20634. this.$nextTick(() => {
  20635. if (this.$refs.choseWorksDetailDialogRef.show) {
  20636. //已经打开了
  20637. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  20638. } else {
  20639. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  20640. }
  20641. });
  20642. }else{
  20643. this.$refs.choseWorksDetailDialogRef.close()
  20644. }
  20645. // 问卷调查
  20646. if(behavior.code === 2){
  20647. if(this.$refs.statisticalAnalysisRef.show){
  20648. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20649. }else{
  20650. this.$refs.statisticalAnalysisRef.open({
  20651. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20652. tType: this.tType,
  20653. toolIndex: behavior.form.toolIndex
  20654. });
  20655. }
  20656. }else{
  20657. this.$refs.statisticalAnalysisRef.close();
  20658. }
  20659. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  20660. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  20661. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  20662. // console.log('behavior.form',behavior.form.courseType,behavior.form.taskCount,behavior.form.toolType);
  20663. // console.log('666666',this.courseType,this.taskCount,this.toolindex);
  20664. if (behavior.form.courseType != this.courseType ||
  20665. behavior.form.taskCount != this.taskCount ||
  20666. behavior.form.toolType != this.toolindex
  20667. ) {
  20668. var a = document.scrollingElement;
  20669. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  20670. if (target) {
  20671. target.scrollIntoView(true);
  20672. setTimeout(()=>{
  20673. let scrollBody = document.querySelector('.body_student').parentElement
  20674. scrollBody.scrollTop = scrollBody.scrollTop - 100
  20675. }, 0);
  20676. // setTimeout(() => {
  20677. // a.scrollTop = 0
  20678. // }, 0);
  20679. }
  20680. }
  20681. if(this.courseType !=behavior.form.courseType){
  20682. this.courseType = behavior.form.courseType;
  20683. }
  20684. if(this.taskCount !=behavior.form.taskCount){
  20685. this.taskCount = behavior.form.taskCount;
  20686. }
  20687. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  20688. this.toolindex = behavior.form.toolType;
  20689. }
  20690. // if(behavior.form.navId){
  20691. // this.navId = behavior.form.navId
  20692. // }
  20693. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  20694. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  20695. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  20696. this.getCourseDetail()
  20697. }
  20698. this.setContent2(false)
  20699. }
  20700. } else {
  20701. }
  20702. }
  20703. },
  20704. // 修改分屏数据
  20705. updateSplitScreenData(empty = 0) {
  20706. return new Promise(resolve => {
  20707. if(this.userid!==this.courseDetail.userid){
  20708. if(!this.courseDetail.userid){
  20709. return setTimeout(()=>{
  20710. this.updateSplitScreenData(empty)
  20711. },2000)
  20712. }
  20713. return;
  20714. };
  20715. if (
  20716. this.splitScreenData.uid == this.splitScreenData.myUid &&
  20717. this.splitScreenData.userId == this.userid
  20718. ) {
  20719. this.splitScreenData.loading = true;
  20720. let params = [
  20721. {
  20722. cid: this.id,
  20723. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  20724. }
  20725. ];
  20726. this.ajax
  20727. .post(
  20728. this.$store.state.api + "update_courseSplitScreenData",
  20729. params
  20730. )
  20731. .then(res => {
  20732. this.splitScreenData.loading = false;
  20733. if (res.data == 1) {
  20734. resolve(1);
  20735. console.log("修改分屏数据成功");
  20736. }
  20737. })
  20738. .catch(e => {
  20739. this.splitScreenData.loading = false;
  20740. console.log("修改分屏数据失败", e);
  20741. resoleve(0);
  20742. });
  20743. } else if (empty == 2 && this.tType == 1) {
  20744. console.log("清空清空清空清空")
  20745. let params = [
  20746. {
  20747. cid: this.id,
  20748. nData: ""
  20749. }
  20750. ];
  20751. return this.ajax
  20752. .post(
  20753. this.$store.state.api + "update_courseSplitScreenData",
  20754. params
  20755. )
  20756. .then(_ => resolve(1))
  20757. .catch(_ => resolve(0));
  20758. } else {
  20759. return resolve(0);
  20760. }
  20761. });
  20762. },
  20763. // 修改分屏数据
  20764. changeSplitScreenBehavior(newValue) {
  20765. if (
  20766. this.splitScreenData.isOpen &&
  20767. this.splitScreenData.uid == this.splitScreenData.myUid
  20768. ) {
  20769. let _behavior = null;
  20770. if(!newValue){
  20771. _behavior = {}
  20772. }else{
  20773. _behavior = newValue
  20774. }
  20775. if(_behavior.form){
  20776. _behavior.form.taskCount = this.taskCount;
  20777. _behavior.form.courseType = this.courseType
  20778. }else{
  20779. _behavior.form = {
  20780. taskCount:this.taskCount,
  20781. courseType:this.courseType,
  20782. }
  20783. }
  20784. this.splitScreenData.behavior = _behavior;
  20785. this.updateSplitScreenData(0);
  20786. }
  20787. },
  20788. studentFreePreview(flag) {
  20789. this.IsLookOpen = flag;
  20790. this.updateLookOpen();
  20791. this.followingMode(flag)
  20792. },
  20793. OpenJobPreview(flag) {
  20794. this.sIsOpen = flag;
  20795. this.updateSLook();
  20796. },
  20797. followingMode(flag) {
  20798. this.IsFollow = flag;
  20799. this.updateFollow();
  20800. },
  20801. StulookMode(flag) {
  20802. this.IsStulook = flag;
  20803. this.updateIsStulook();
  20804. },
  20805. },
  20806. directives: {
  20807. // 使用局部注册指令的方式
  20808. resize: {
  20809. // 指令的名称
  20810. bind(el, binding) {
  20811. // el为绑定的元素,binding为绑定给指令的对象
  20812. let width = "",
  20813. height = "";
  20814. function isReize() {
  20815. const style = document.defaultView.getComputedStyle(el);
  20816. if (width !== style.width || height !== style.height) {
  20817. binding.value(); // 关键
  20818. }
  20819. width = style.width;
  20820. height = style.height;
  20821. }
  20822. el.__vueSetInterval__ = setInterval(isReize, 300);
  20823. },
  20824. unbind(el) {
  20825. clearInterval(el.__vueSetInterval__);
  20826. },
  20827. },
  20828. autoHeight: {
  20829. update(el, binding) {
  20830. const { value } = binding
  20831. if (value && typeof value === 'number') {
  20832. el.style.height = `${value}px`
  20833. } else {
  20834. el.style.height = 'auto'
  20835. }
  20836. },
  20837. componentUpdated(el) {
  20838. el.style.height = `${el.scrollHeight}px`
  20839. },
  20840. },
  20841. },
  20842. beforeDestroy() {
  20843. window.onresize = null;
  20844. clearInterval(this.timer);
  20845. this.timer = null;
  20846. clearInterval(this.timer2);
  20847. this.timer2 = null;
  20848. clearInterval(this.opertimer);
  20849. this.opertimer = null;
  20850. this.updateSplitScreenData(1);
  20851. if(this.courseDetail.userid == this.userid && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  20852. let endTime = new Date().toLocaleString("zh-CN", {
  20853. hour12: false,
  20854. timeZone: "Asia/Shanghai"
  20855. }).replace(/\//g, "-")
  20856. let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
  20857. this.syncClassData({
  20858. courseId: this.id,
  20859. title: this.courseDetail.title,
  20860. courseGrade: this.tcid2 ? this.tcid2 : '',
  20861. courseTime: courseTime,
  20862. startTime: this.startTime,
  20863. endTime: endTime,
  20864. })
  20865. console.log('同步数据')
  20866. }
  20867. },
  20868. computed: {
  20869. renderedFormula2() {
  20870. return function(val){
  20871. if (this.lang.lang == 'com') {
  20872. return val;
  20873. }
  20874. // 处理换行符和HTML实体
  20875. const normalized = val
  20876. .replace(/&amp;/g, '&')
  20877. .replace(/<br\/?>/g, '\n');
  20878. // 匹配行内公式($...$)和块级公式($$...$$)
  20879. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  20880. try {
  20881. return katex.renderToString(expr.trim(), {
  20882. displayMode: false,
  20883. throwOnError: false,
  20884. macros: {
  20885. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  20886. }
  20887. });
  20888. } catch (e) {
  20889. console.warn('KaTeX渲染失败:', e);
  20890. return `<span style="color:red">${expr}</span>`;
  20891. }
  20892. })
  20893. }
  20894. },
  20895. renderedFormula() {
  20896. return function(val){
  20897. if (this.lang.lang == 'com') {
  20898. return val;
  20899. }
  20900. try {
  20901. // 判断是否含有HTML标签,<tag ...>...</tag>
  20902. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  20903. if (!hasTag) {
  20904. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  20905. // 纯文本,整体渲染
  20906. try {
  20907. return katex.renderToString(val.trim(), {
  20908. throwOnError: false,
  20909. strict: false,
  20910. output: "htmlAndMathml"
  20911. });
  20912. } catch (e) {
  20913. return val; // 渲染失败原样输出
  20914. }
  20915. } else {
  20916. // 有标签,对每个标签内容渲染
  20917. return val.replace(
  20918. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  20919. (match, tag, attrs, inner) => {
  20920. let html;
  20921. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  20922. try {
  20923. html = katex.renderToString(inner.trim(), {
  20924. throwOnError: false,
  20925. strict: false,
  20926. output: "htmlAndMathml"
  20927. });
  20928. } catch (e) {
  20929. html = inner;
  20930. }
  20931. return `<${tag}${attrs}>${html}</${tag}>`;
  20932. }
  20933. );
  20934. }
  20935. } catch (e) {
  20936. console.error('KaTeX渲染错误:', e);
  20937. return val;
  20938. }
  20939. }
  20940. },
  20941. isAndroid() {
  20942. return /Android/i.test(navigator.userAgent);
  20943. },
  20944. contentConvent() {
  20945. return function (c) {
  20946. return c
  20947. ? c
  20948. .replaceAll(/\r\n/g, "<br/>")
  20949. .replaceAll(/\n/g, "<br/>")
  20950. .replaceAll(/\s/g, "&nbsp")
  20951. : "";
  20952. };
  20953. },
  20954. commentRight(){
  20955. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  20956. return "35px";
  20957. }
  20958. return `calc(${this.classRoomHelperWidth} + 5px)`
  20959. // if(this.$refs["classRoomHelperRef"].type==0){
  20960. // return "100px";
  20961. // }else if(this.$refs["classRoomHelperRef"].type==1){
  20962. // return "502px"
  20963. // }else{
  20964. // return "0px"
  20965. // }
  20966. },
  20967. checkUpload() {
  20968. return function () {
  20969. var studentK = [];
  20970. if (this.plworkFile.length > 0) {
  20971. for (var z = 0; z < this.plworkFile.length; z++) {
  20972. studentK.push(this.plworkFile[z].username);
  20973. }
  20974. studentK = studentK.join(",");
  20975. }
  20976. var a = this.uploadStudentJuri.filter((el) => {
  20977. return studentK.indexOf(el.userid) == -1;
  20978. });
  20979. return a;
  20980. };
  20981. },
  20982. getSName() {
  20983. return function (name) {
  20984. var check = name;
  20985. this.uploadStudentJuri.forEach((el) => {
  20986. if (el.userid == check) {
  20987. check = el.name ? el.name : el.username;
  20988. }
  20989. });
  20990. return check;
  20991. };
  20992. },
  20993. getImgList() {
  20994. return function (val) {
  20995. let srcList = []; // 定义一个数组用来接收后面的img地址
  20996. val.replace(
  20997. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  20998. function (match, capture) {
  20999. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21000. srcList.push(capture);
  21001. }
  21002. );
  21003. return srcList;
  21004. };
  21005. },
  21006. retrnToolHeight(){
  21007. return function (tool) {
  21008. var _tool = document.querySelectorAll('#'+tool)[0]
  21009. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21010. };
  21011. },
  21012. Correct() {
  21013. return function (c) {
  21014. let w = "";
  21015. let a = this.correctWord;
  21016. for(var k = 0;k<a.length;k++){
  21017. //diffWordsWithSpace
  21018. if(a.length > 1){
  21019. if(a[k].added == true){
  21020. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21021. }else if(a[k].removed == true){
  21022. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21023. }else{
  21024. w += '<span>' + a[k].value + '</span>';
  21025. }
  21026. }else{
  21027. w = c
  21028. }
  21029. //diffChars方法
  21030. // if(a.length > 1){
  21031. // if(w == ""){
  21032. // if(a[k].added == true){
  21033. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21034. // }else if(a[k].removed == true){
  21035. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21036. // }
  21037. // }else{
  21038. // if(k == a.length - 1){
  21039. // if(a[k].added == true){
  21040. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21041. // }else if(a[k].removed == true){
  21042. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21043. // }
  21044. // }else{
  21045. // if(a[k].added == true){
  21046. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21047. // }else if(a[k].removed == true){
  21048. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21049. // }
  21050. // }
  21051. // }
  21052. // }else{
  21053. // w = c
  21054. // }
  21055. }
  21056. c = w;
  21057. return c;
  21058. };
  21059. },
  21060. },
  21061. mounted() {
  21062. this.setoTime("1");
  21063. this.startTime = new Date().toLocaleString("zh-CN", {
  21064. hour12: false,
  21065. timeZone: "Asia/Shanghai"
  21066. }).replace(/\//g, "-");
  21067. // if (this.tType == 1) {
  21068. // // 开局关闭学生查看内容
  21069. // this.StulookMode(false)
  21070. // // 开局打开跟随模式
  21071. // this.followingMode(true)
  21072. // }
  21073. document.body.addEventListener("click", (e) => {
  21074. if (this.isUpdateToolDetail1) {
  21075. this.updateToolDetail(this.toolDetailIndex);
  21076. }
  21077. });
  21078. this.getCode2()
  21079. this.setOperationTime();
  21080. this.selectEva();
  21081. this.getCourseDetail(10);
  21082. this.selectCount();
  21083. this.getHomeWork();
  21084. this.selectUser();
  21085. this.getAIJ();
  21086. this.updateSplitScreenData(2);
  21087. this.splitScreenData.myUid = uuidv4();
  21088. this.contentDialog = false;
  21089. this.setContent2(true);
  21090. if (this.tType == 4) {
  21091. this.pzDialog = true;
  21092. this.selectPz();
  21093. }
  21094. // 获取评分列表
  21095. this.getScoreList()
  21096. document.scrollingElement.scrollTop = 0;
  21097. window.addEventListener("resize", () => {
  21098. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21099. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21100. if (this.showType == 2 || this.showType == 3) {
  21101. document.getElementsByClassName("navBox")[0].style.height =
  21102. a - 40 + 0+ "px";
  21103. } else {
  21104. document.getElementsByClassName("navBox")[0].style.height =
  21105. a - 40 + "px";
  21106. }
  21107. });
  21108. // let _this = this;
  21109. // setTimeout(() => {
  21110. // _this.vedioTime = [];
  21111. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21112. // _this.vedioTime[i] = document.getElementsByClassName(
  21113. // "vjs-duration-display"
  21114. // )[i].textContent;
  21115. // }
  21116. // }, 1000);
  21117. try{
  21118. if (this.screenType == 2) {
  21119. window.topU.postMessage({ allScreen: 4 }, "*");
  21120. } else if (this.screenType == 3) {
  21121. window.topU.postMessage({ allScreen: 5 }, "*");
  21122. } else if (this.screenType == 1) {
  21123. window.topU.postMessage({ allScreen: 6 }, "*");
  21124. }
  21125. }catch(e){
  21126. console.log(e)
  21127. }
  21128. },
  21129. };
  21130. </script>
  21131. <style scoped>
  21132. @media screen and (max-width: 1280px) {
  21133. /* .courseIndex > div:first-child(2) {
  21134. width: 15% !important;
  21135. } */
  21136. /* .navText {
  21137. width: 120px !important;
  21138. } */
  21139. .evaCss {
  21140. flex-direction: column !important;
  21141. align-items: center !important;
  21142. }
  21143. .elist_input {
  21144. width: 90% !important;
  21145. }
  21146. .dialog_diy1 >>> .el-dialog {
  21147. width: 100% !important;
  21148. }
  21149. .rightWidthCss {
  21150. width: 100% !important;
  21151. }
  21152. .dialog_diy3 >>> .el-dialog {
  21153. width: 100% !important;
  21154. }
  21155. .addToolCss {
  21156. right: 0 !important;
  21157. width: 100% !important;
  21158. min-width: unset !important;
  21159. }
  21160. }
  21161. .evaCssMax {
  21162. flex-direction: column !important;
  21163. align-items: center !important;
  21164. }
  21165. .dialog_diy >>> .el-dialog {
  21166. margin-top: 10vh !important;
  21167. }
  21168. .body_student {
  21169. width: 77%;
  21170. height: 100%;
  21171. position: absolute;
  21172. left: 22%;
  21173. top: 0;
  21174. }
  21175. .student_head {
  21176. width: 100%;
  21177. margin: 20px auto 0;
  21178. padding-bottom: 20px;
  21179. display: flex;
  21180. flex-direction: column;
  21181. flex-wrap: nowrap;
  21182. align-items: flex-start;
  21183. justify-content: flex-start;
  21184. }
  21185. .pb_left {
  21186. width: 15%;
  21187. margin-right: 10px;
  21188. background: rgb(255, 255, 255);
  21189. position: fixed;
  21190. height: calc(100% - 40px);
  21191. border-radius: 20px;
  21192. padding-bottom: 15px;
  21193. box-sizing: border-box;
  21194. }
  21195. .wheel > img,
  21196. .project > img,
  21197. .star > img,
  21198. .evaluate > img,
  21199. .up_photo > img,
  21200. .chapter_add > img,
  21201. .deleteWord > img,
  21202. .question > img,
  21203. .homework > img {
  21204. width: 100%;
  21205. height: 100%;
  21206. }
  21207. .upCover > img {
  21208. width: 131px;
  21209. height: 69px;
  21210. object-fit: cover;
  21211. }
  21212. .upCover {
  21213. width: calc(100% / 3.5);
  21214. position: relative;
  21215. margin: 0 15px 10px 0;
  21216. display: flex;
  21217. flex-direction: column;
  21218. flex-wrap: nowrap;
  21219. justify-content: center;
  21220. align-content: center;
  21221. align-items: center;
  21222. height: fit-content;
  21223. }
  21224. .upCover2 {
  21225. width: 100%;
  21226. position: relative;
  21227. margin: 0 15px 10px 0;
  21228. display: flex;
  21229. flex-direction: column;
  21230. flex-wrap: nowrap;
  21231. justify-content: center;
  21232. align-content: center;
  21233. align-items: center;
  21234. }
  21235. .upCover2 > img {
  21236. width: 100%;
  21237. height: 90px;
  21238. object-fit: contain;
  21239. }
  21240. .chapter_add {
  21241. width: 120px;
  21242. position: relative;
  21243. text-align: center;
  21244. }
  21245. .isAddThings {
  21246. margin-top: 20px;
  21247. position: relative;
  21248. text-align: center;
  21249. background: #f7f8fa;
  21250. height: 90px;
  21251. width: 90px;
  21252. display: flex;
  21253. flex-direction: column;
  21254. justify-content: center;
  21255. }
  21256. .deleteWord {
  21257. width: 22px;
  21258. height: 22px;
  21259. position: absolute;
  21260. right: -5px;
  21261. top: -5px;
  21262. cursor: pointer;
  21263. }
  21264. .box_course {
  21265. /* width: 60%; */
  21266. width: calc(100% - 300px);
  21267. }
  21268. .wheel {
  21269. width: 100%;
  21270. /* height: 100%; */
  21271. height: 650px;
  21272. }
  21273. .right_box {
  21274. display: flex;
  21275. flex-direction: column;
  21276. margin-left: 30px;
  21277. justify-content: space-around;
  21278. }
  21279. .right_box_title {
  21280. font-size: 23px;
  21281. }
  21282. .people {
  21283. display: flex;
  21284. }
  21285. .student_body {
  21286. width: 100%;
  21287. margin: 0 auto;
  21288. margin-top: 10px;
  21289. padding: 0 0 20px;
  21290. }
  21291. .study_top {
  21292. margin-top: 100px;
  21293. width: 100%;
  21294. height: auto;
  21295. padding-bottom: 20px;
  21296. margin-left: 2px;
  21297. min-height: 90%;
  21298. }
  21299. .study_top .checkbox {
  21300. display: flex;
  21301. align-items: center;
  21302. padding: 15px 0 15px 30px;
  21303. flex: 0 0 auto;
  21304. font-weight: bold;
  21305. border-bottom: 1px solid #eee;
  21306. }
  21307. .study_top .check {
  21308. padding-bottom: 5px;
  21309. text-align: center;
  21310. cursor: pointer;
  21311. height: 30px;
  21312. box-sizing: border-box;
  21313. display: flex;
  21314. }
  21315. .study_top .checked {
  21316. border-bottom: 4px solid #3fc6a0;
  21317. padding-bottom: 5px;
  21318. color: #3fc6a0;
  21319. display: flex;
  21320. height: 35px;
  21321. }
  21322. .study_top .checked > div,
  21323. .study_top .check > div {
  21324. margin-right: 5px;
  21325. }
  21326. .videoTop {
  21327. display: flex;
  21328. flex-direction: row;
  21329. justify-content: space-between;
  21330. background: #fff;
  21331. align-items: center;
  21332. width: 95%;
  21333. padding: 20px;
  21334. }
  21335. .filebox {
  21336. display: flex;
  21337. flex-wrap: wrap;
  21338. flex-direction: column;
  21339. padding: 0 0 5px;
  21340. position: relative;
  21341. }
  21342. .filebox:before {
  21343. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21344. position: absolute;
  21345. top: 20px;
  21346. left: 13px;
  21347. border-left: 2px dotted #cad1dc;
  21348. height: calc(100% - 15px);
  21349. }
  21350. .toolHeng2 > div:last-child::before {
  21351. height: calc(100% - 43px);
  21352. }
  21353. .filebox .tooldetail {
  21354. width: calc(100%);
  21355. margin: 0px 12px;
  21356. padding: 12px;
  21357. line-height: 30px;
  21358. word-break: break-word;
  21359. background: #ffffff;
  21360. border-radius: 8px 8px 8px 8px;
  21361. opacity: 1;
  21362. border: 1px solid #cad1dc;
  21363. overflow:hidden;
  21364. box-sizing:border-box;
  21365. }
  21366. .file {
  21367. display: flex;
  21368. flex-direction: column;
  21369. align-items: center;
  21370. justify-content: center;
  21371. cursor: pointer;
  21372. width: 200px;
  21373. }
  21374. .file div {
  21375. margin-top: 10px;
  21376. width: 150px;
  21377. text-align: center;
  21378. overflow: hidden;
  21379. white-space: nowrap;
  21380. text-overflow: ellipsis;
  21381. }
  21382. .media {
  21383. display: flex;
  21384. flex-direction: column;
  21385. align-items: center;
  21386. justify-content: center;
  21387. margin: 0 20px 20px 0;
  21388. cursor: pointer;
  21389. margin: 12px 0 5px 15px;
  21390. overflow: hidden;
  21391. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21392. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21393. box-sizing: border-box;
  21394. }
  21395. .media img {
  21396. height: 90px;
  21397. width: 160px;
  21398. object-fit: cover;
  21399. }
  21400. .media .title {
  21401. padding: 5px;
  21402. text-align: left;
  21403. width: 100%;
  21404. box-sizing: border-box;
  21405. }
  21406. .media .btn {
  21407. width: 100%;
  21408. height: 35px;
  21409. line-height: 35px;
  21410. color: #fff;
  21411. background: #606060;
  21412. text-align: center;
  21413. overflow: hidden;
  21414. white-space: nowrap;
  21415. text-overflow: ellipsis;
  21416. }
  21417. .detail_content_top {
  21418. width: 100%;
  21419. padding: 25px 0 25px 0;
  21420. }
  21421. .detail_title {
  21422. text-align: center;
  21423. font-size: 24px;
  21424. }
  21425. .detail_time {
  21426. font-size: 13px;
  21427. padding: 15px 0 0 40px;
  21428. }
  21429. .detail_content {
  21430. line-height: 2pc;
  21431. width: 90%;
  21432. margin: 0 auto;
  21433. padding-top: 30px;
  21434. text-indent: 30px;
  21435. overflow: auto;
  21436. height: 200px;
  21437. }
  21438. .score_box >>> .el-rate {
  21439. margin-left: 10px;
  21440. }
  21441. .dialog_change >>> .el-dialog {
  21442. border-radius: 5px;
  21443. }
  21444. .dialog_change >>> .el-dialog__header {
  21445. background: #f2f2f2;
  21446. text-align: center;
  21447. }
  21448. .dialog_change >>> .el-dialog__title {
  21449. line-height: 5px;
  21450. }
  21451. .dialog_change >>> .el-dialog__body {
  21452. background: #fff;
  21453. padding: 10px 20px;
  21454. }
  21455. .score_box {
  21456. display: flex;
  21457. align-items: center;
  21458. margin-bottom: 18px;
  21459. margin-top: 20px;
  21460. }
  21461. .up_photo {
  21462. width: 120px;
  21463. cursor: pointer;
  21464. margin-top: 10px;
  21465. }
  21466. .up_photo2 {
  21467. width: 180px;
  21468. box-sizing: border-box;
  21469. min-width: 180px;
  21470. height: 180px;
  21471. max-height: 180px;
  21472. min-height: 180px;
  21473. cursor: pointer;
  21474. display: flex;
  21475. flex-direction: column;
  21476. align-items: center;
  21477. justify-content: center;
  21478. background: rgb(242, 246, 255);
  21479. /* padding: 25px; */
  21480. margin-bottom: 10px;
  21481. }
  21482. .up_photo2 img {
  21483. width: 50%;
  21484. height: auto;
  21485. }
  21486. .up_photo2 span {
  21487. color: #898989;
  21488. }
  21489. .plworkBox {
  21490. display: flex;
  21491. align-items: center;
  21492. margin-top: 10px;
  21493. flex-wrap: wrap;
  21494. }
  21495. .upload_send {
  21496. margin: 30px auto 30px;
  21497. width: 60%;
  21498. background: #3681fc;
  21499. text-align: center;
  21500. height: 35px;
  21501. line-height: 35px;
  21502. color: #fff;
  21503. border-radius: 5px;
  21504. cursor: pointer;
  21505. }
  21506. .marginT {
  21507. margin-top: 20px;
  21508. }
  21509. .cd_content_steps {
  21510. display: flex;
  21511. width: 90%;
  21512. justify-content: space-around;
  21513. border-top: 1px solid #eeeeee;
  21514. }
  21515. .cd_steps_box {
  21516. display: flex;
  21517. justify-content: center;
  21518. align-items: center;
  21519. flex-direction: column;
  21520. cursor: pointer;
  21521. }
  21522. .first {
  21523. display: flex;
  21524. align-items: center;
  21525. margin: 15px 0 20px 0;
  21526. font-size: 20px;
  21527. }
  21528. .first > div:nth-child(2) {
  21529. font-size: 16px !important;
  21530. padding-left: 10px;
  21531. line-height: 26px;
  21532. box-sizing: border-box;
  21533. }
  21534. .blue_box_one {
  21535. text-align: center;
  21536. color: #fff;
  21537. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  21538. border-radius: 7px;
  21539. margin: 10px;
  21540. cursor: pointer;
  21541. width: 95%;
  21542. height: 45px;
  21543. display: flex;
  21544. flex-direction: row;
  21545. justify-content: flex-start;
  21546. align-items: center;
  21547. }
  21548. .blue_box_one > div:nth-child(1) {
  21549. line-height: 30px;
  21550. margin: 0 5px 0 10px;
  21551. width: 30%;
  21552. min-width: 70px;
  21553. border-radius: 4px;
  21554. }
  21555. .blue_box_one > div:nth-child(2) {
  21556. white-space: nowrap;
  21557. text-overflow: ellipsis;
  21558. overflow: hidden;
  21559. word-break: break-all;
  21560. width: 70%;
  21561. text-align: left;
  21562. margin-right: 10px;
  21563. max-width: calc(100% - 85px);
  21564. }
  21565. .blue_box_one > div:nth-child(2):hover {
  21566. overflow: hidden;
  21567. text-overflow: ellipsis;
  21568. white-space: nowrap;
  21569. cursor: pointer;
  21570. }
  21571. .upFile {
  21572. margin: 0 auto;
  21573. width: 120px;
  21574. background: #3681fc;
  21575. color: #fff;
  21576. height: 30px;
  21577. text-align: center;
  21578. line-height: 30px;
  21579. border-radius: 5px;
  21580. font-size: 14px;
  21581. cursor: pointer;
  21582. }
  21583. .courseTitle {
  21584. width: 85%;
  21585. margin: 10px auto 26px auto;
  21586. display: flex;
  21587. flex-direction: row;
  21588. align-items: center;
  21589. justify-content: space-between;
  21590. text-align: center;
  21591. }
  21592. .courseTitle .ctitle {
  21593. font-size: 20px;
  21594. font-weight: bold;
  21595. color: #0e1e33;
  21596. white-space: nowrap;
  21597. overflow: hidden;
  21598. text-overflow: ellipsis;
  21599. }
  21600. .inviteBox {
  21601. font-size: 14px;
  21602. /* margin-top: 5px; */
  21603. color: #00000099;
  21604. text-align: center;
  21605. }
  21606. .courseTitle >>> .el-tooltip {
  21607. width: 100%;
  21608. white-space: nowrap;
  21609. overflow: hidden;
  21610. text-overflow: ellipsis;
  21611. word-break: break-word;
  21612. }
  21613. .ml {
  21614. margin-left: 20px;
  21615. color: #5b7dba;
  21616. border-left: 3px solid #5b7dba;
  21617. padding-left: 5px;
  21618. font-weight: bold;
  21619. }
  21620. .return {
  21621. width: 2rem;
  21622. height: 2rem;
  21623. cursor: pointer;
  21624. }
  21625. .return > img {
  21626. width: 100%;
  21627. height: 100%;
  21628. }
  21629. .returnBtn {
  21630. width: 86px;
  21631. height: 36px;
  21632. background: #3681fc;
  21633. border-radius: 4px;
  21634. color: #fff;
  21635. text-align: center;
  21636. line-height: 36px;
  21637. margin-right: 20px;
  21638. cursor: pointer;
  21639. font-size: 14px;
  21640. font-weight: 400;
  21641. display: flex;
  21642. flex-direction: row;
  21643. flex-wrap: nowrap;
  21644. align-items: center;
  21645. justify-content: center;
  21646. }
  21647. .reBtnIcon,
  21648. .commentIcon,
  21649. .vedioIcon,
  21650. .vedioIcon1 {
  21651. /* width: 36px; */
  21652. height: 36px;
  21653. border-radius: 4px;
  21654. position: relative;
  21655. /* background: #e0eafb; */
  21656. background: #0061ff;
  21657. cursor: pointer;
  21658. margin-right: 12px;
  21659. display: flex;
  21660. align-items: center;
  21661. padding: 0 10px;
  21662. box-sizing: border-box;
  21663. font-size: 14px;
  21664. color: #fff;
  21665. }
  21666. .reBtnIcon::before,
  21667. .commentIcon::before,
  21668. .vedioIcon::before,
  21669. .vedioIcon1::before {
  21670. content: "";
  21671. display: block;
  21672. background-size: 100% 100%;
  21673. background-repeat: no-repeat;
  21674. width: 20px;
  21675. height: 20px;
  21676. margin-right: 5px;
  21677. /* position: absolute; */
  21678. /* top: 8px;
  21679. left: 8px; */
  21680. }
  21681. .vedioIcon1 {
  21682. background: #f63564;
  21683. }
  21684. .reBtnIcon::before {
  21685. background-image: url("../assets/icon/newIcons/refresh.png");
  21686. }
  21687. .commentIcon::before {
  21688. background-image: url("../assets/icon/newIcons/comment.png");
  21689. }
  21690. .vedioIcon::before {
  21691. background-image: url("../assets/icon/newIcons/transcribe.png");
  21692. }
  21693. .vedioIcon1::before {
  21694. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  21695. background-image: url("../assets/icon/newIcons/transcribe.png");
  21696. }
  21697. .tool {
  21698. display: flex;
  21699. flex-direction: column;
  21700. flex-wrap: nowrap;
  21701. width: 13%;
  21702. margin: 0 30px;
  21703. align-items: center;
  21704. position: relative;
  21705. padding: 10px 25px;
  21706. cursor: pointer;
  21707. }
  21708. .whiteBIcon {
  21709. width: 150px;
  21710. }
  21711. .whiteBIcon > img {
  21712. width: 100%;
  21713. height: 100%;
  21714. }
  21715. .mask {
  21716. background-color: rgba(0, 0, 0, 0);
  21717. position: fixed;
  21718. top: 0;
  21719. left: 0;
  21720. width: 100%;
  21721. height: 100%;
  21722. z-index: 20000;
  21723. display: flex;
  21724. align-items: center;
  21725. justify-content: center;
  21726. }
  21727. .progressBox {
  21728. width: 500px;
  21729. height: 180px;
  21730. background: #fff;
  21731. border-radius: 10px;
  21732. box-shadow: 0 0 6px 1px #bfbfbf;
  21733. display: flex;
  21734. align-items: center;
  21735. justify-content: center;
  21736. flex-direction: column;
  21737. position: relative;
  21738. color: #6c6c6c;
  21739. }
  21740. .progressBox >>> .el-progress-bar__outer {
  21741. background-color: #d1dfff !important;
  21742. }
  21743. .progressBox .lbox {
  21744. height: 50px;
  21745. font-size: 19px;
  21746. display: flex;
  21747. align-items: center;
  21748. color: #747474;
  21749. }
  21750. .progressBox .lbox img {
  21751. width: 40px;
  21752. margin-right: 20px;
  21753. }
  21754. .closeCss {
  21755. position: absolute;
  21756. top: 8px;
  21757. right: 8px;
  21758. cursor: pointer;
  21759. width: 20px;
  21760. height: 20px;
  21761. }
  21762. .closeCss > img {
  21763. width: 100%;
  21764. height: 100%;
  21765. }
  21766. .uploadVedio {
  21767. display: flex;
  21768. flex-direction: column;
  21769. flex-wrap: nowrap;
  21770. justify-content: center;
  21771. align-items: center;
  21772. margin: 0 15px 10px 0;
  21773. }
  21774. .uploadVedio > img {
  21775. width: 30px;
  21776. height: 30px;
  21777. }
  21778. .uploadVedio > span {
  21779. white-space: nowrap;
  21780. overflow: hidden;
  21781. text-overflow: ellipsis;
  21782. width: 75px;
  21783. margin-top: 7px;
  21784. }
  21785. .picName {
  21786. white-space: nowrap;
  21787. overflow: hidden;
  21788. text-overflow: ellipsis;
  21789. width: 75px;
  21790. margin-top: 7px;
  21791. }
  21792. .new_top {
  21793. display: flex;
  21794. background: #fff;
  21795. flex-direction: row;
  21796. justify-content: flex-start;
  21797. align-items: center;
  21798. height: 60px;
  21799. position: fixed;
  21800. top: 20px;
  21801. left: 22%;
  21802. width: 77%;
  21803. z-index: 999;
  21804. border-radius: 12px 12px 0 0;
  21805. border-bottom: 1px solid #cad1dc;
  21806. padding: 10px 0;
  21807. }
  21808. .new_topFixed {
  21809. width: 100%;
  21810. height: 40px;
  21811. position: fixed;
  21812. top: 0px;
  21813. display: block;
  21814. background: #f2f2f2;
  21815. z-index: 998;
  21816. }
  21817. .before {
  21818. position: absolute;
  21819. background: #c3dad4;
  21820. width: 6px;
  21821. height: 100%;
  21822. }
  21823. .courseIndex {
  21824. display: flex;
  21825. flex-direction: row;
  21826. align-items: center;
  21827. width: calc(100% - 745px);
  21828. }
  21829. .courseIndex > div:nth-child(1) {
  21830. margin: 0 0 0 10px;
  21831. font-size: 20px;
  21832. min-width: 100px;
  21833. font-weight: bold;
  21834. border-left: 4px solid #3363b9;
  21835. height: 32px;
  21836. text-align: center;
  21837. line-height: 35px;
  21838. }
  21839. .courseIndex > div:nth-child(2) {
  21840. font-size: 20px;
  21841. /* width: 300px; */
  21842. max-width: calc(100% - 105px);
  21843. white-space: nowrap;
  21844. overflow: hidden;
  21845. text-overflow: ellipsis;
  21846. }
  21847. .courseIndex > div:nth-child(3) {
  21848. border-bottom: 1px solid #d7d7d7;
  21849. padding-bottom: 5px;
  21850. background: #3681fc;
  21851. width: 55px;
  21852. min-width: 55px;
  21853. border-radius: 5px;
  21854. color: #fff;
  21855. text-align: center;
  21856. height: 20px;
  21857. line-height: 26px;
  21858. font-size: 14px;
  21859. margin: 0 0 0 10px;
  21860. }
  21861. .course_text {
  21862. padding: 20px 0 0 15px;
  21863. text-indent: 30px;
  21864. width: 80%;
  21865. min-height: 20px;
  21866. }
  21867. .vedioList {
  21868. background: #f2f2f2;
  21869. border: 1px solid #ececec;
  21870. /* width: 38.8%; */
  21871. /* width: 300px; */
  21872. width: 100%;
  21873. height: 445px;
  21874. border-radius: 10px;
  21875. overflow: hidden;
  21876. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  21877. }
  21878. .vedioNav {
  21879. margin: 10px 0 0 15px;
  21880. border-bottom: 1px solid #d7d7d7;
  21881. padding-bottom: 5px;
  21882. background: #3681fc;
  21883. width: 55px;
  21884. min-width: 55px;
  21885. border-radius: 5px;
  21886. color: #fff;
  21887. text-align: center;
  21888. height: 20px;
  21889. line-height: 26px;
  21890. font-size: 14px;
  21891. }
  21892. .queTop {
  21893. display: flex;
  21894. padding: 20px 0 20px 30px;
  21895. width: 100%;
  21896. flex-direction: row;
  21897. justify-content: flex-start;
  21898. align-items: center;
  21899. box-sizing: border-box;
  21900. }
  21901. .queTopTitle {
  21902. display: flex;
  21903. flex-direction: row;
  21904. flex-wrap: nowrap;
  21905. align-items: center;
  21906. font-weight: bold;
  21907. font-size: 20px;
  21908. color: rgb(14, 30, 51);
  21909. }
  21910. .queTopTitle::before {
  21911. content: "";
  21912. width: 2px;
  21913. height: 22px;
  21914. background: #3681fc;
  21915. border-radius: 3px;
  21916. display: block;
  21917. margin: 2px 6px 0 0;
  21918. }
  21919. .queTopRight {
  21920. display: flex;
  21921. flex-direction: row;
  21922. flex-wrap: nowrap;
  21923. align-items: center;
  21924. }
  21925. .queTopClose {
  21926. margin-right: 20px;
  21927. cursor: pointer;
  21928. position: relative;
  21929. display: flex;
  21930. }
  21931. .closeImg,
  21932. .openImg {
  21933. width: 25px;
  21934. height: 25px;
  21935. position: absolute;
  21936. left: -20px;
  21937. top: -1px;
  21938. }
  21939. .closeImg > img,
  21940. .openImg > img {
  21941. width: 100%;
  21942. height: 100%;
  21943. }
  21944. .question {
  21945. width: 40px;
  21946. margin-right: 10px;
  21947. margin-top: 7px;
  21948. flex-shrink: 0;
  21949. }
  21950. .queTitle {
  21951. margin-left: 5px;
  21952. font-size: 25px;
  21953. display: flex;
  21954. align-items: center;
  21955. }
  21956. .queTitle > div:nth-child(1){
  21957. width: 120px;
  21958. flex-shrink: 0;
  21959. }
  21960. .addEditor {
  21961. width: 100px;
  21962. height: 30px;
  21963. background: #42cda6;
  21964. color: #fff;
  21965. border-radius: 5px;
  21966. text-align: center;
  21967. line-height: 30px;
  21968. box-shadow: 1px 3px 6px 1px #bfbfbf;
  21969. cursor: pointer;
  21970. }
  21971. /* .vedioName {
  21972. cursor: pointer;
  21973. margin: 0px 0px 10px 5px;
  21974. white-space: nowrap;
  21975. overflow: hidden;
  21976. text-overflow: ellipsis;
  21977. width: 100%;
  21978. } */
  21979. .vedioTime {
  21980. width: 35px;
  21981. position: absolute;
  21982. color: #fff;
  21983. bottom: 0px;
  21984. right: 0px;
  21985. text-align: center;
  21986. background: #46411f;
  21987. height: 20px;
  21988. font-size: 14px;
  21989. line-height: 20px;
  21990. }
  21991. .homework {
  21992. width: 200px;
  21993. display: flex;
  21994. flex-direction: column;
  21995. flex-wrap: nowrap;
  21996. align-items: center;
  21997. cursor: pointer;
  21998. }
  21999. .homebox {
  22000. display: flex;
  22001. flex-wrap: wrap;
  22002. flex-direction: row;
  22003. justify-content: flex-start;
  22004. align-items: center;
  22005. padding: 15px 0;
  22006. }
  22007. .isChooseActive {
  22008. color: #3681fc !important;
  22009. font-weight: bold !important;
  22010. }
  22011. .chooseWho {
  22012. display: flex;
  22013. width: 100%;
  22014. flex-direction: row;
  22015. flex-wrap: nowrap;
  22016. justify-content: flex-start;
  22017. padding-bottom: 10px;
  22018. }
  22019. .chooseWho > div {
  22020. cursor: pointer;
  22021. padding-bottom: 10px;
  22022. margin: 0 30px 0 0;
  22023. font-weight: 400;
  22024. color: #0e1e33;
  22025. }
  22026. .addPoint > div > img {
  22027. cursor: pointer;
  22028. width: 85px;
  22029. border-radius: 15px;
  22030. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22031. }
  22032. .addPoint > div {
  22033. display: flex;
  22034. flex-direction: column;
  22035. flex-wrap: nowrap;
  22036. align-items: center;
  22037. }
  22038. .isBorder > div {
  22039. margin: 0 0 10px 0;
  22040. align-items: flex-start !important;
  22041. }
  22042. .noiframeBox {
  22043. display: flex;
  22044. flex-wrap: wrap;
  22045. }
  22046. .iframeBox iframe {
  22047. width: 100%;
  22048. height: 800px;
  22049. border: none;
  22050. margin-bottom: 20px;
  22051. border: 1px solid #ccc;
  22052. }
  22053. .upload_toolBtn {
  22054. background: #3681fc;
  22055. color: #fff;
  22056. width: 110px;
  22057. text-align: center;
  22058. height: 35px;
  22059. line-height: 35px;
  22060. font-size: 14px;
  22061. border-radius: 5px;
  22062. cursor: pointer;
  22063. position: absolute;
  22064. right: 10px;
  22065. bottom: 0;
  22066. }
  22067. .binfo_input,
  22068. .pj {
  22069. font: inherit;
  22070. color: currentColor;
  22071. width: 100%;
  22072. margin: 0;
  22073. padding: 15px 14px;
  22074. display: block;
  22075. min-width: 0;
  22076. outline: none;
  22077. box-sizing: content-box;
  22078. background: none;
  22079. -webkit-tap-highlight-color: transparent;
  22080. border: 1px solid rgba(0, 0, 0, 0.23);
  22081. border-radius: 4px;
  22082. box-sizing: border-box;
  22083. resize: none;
  22084. }
  22085. .binfo_input:focus-visible {
  22086. border: 1px solid rgba(61, 103, 188);
  22087. }
  22088. .dialog_diy >>> .el-dialog__header,
  22089. .dialog_diy1 >>> .el-dialog__header {
  22090. background: #454545 !important;
  22091. padding: 15px 20px;
  22092. }
  22093. .dialog_diy >>> .el-dialog__title,
  22094. .dialog_diy1 >>> .el-dialog__title {
  22095. color: #fff;
  22096. }
  22097. .dialog_diy >>> .el-dialog__headerbtn,
  22098. .dialog_diy1 >>> .el-dialog__headerbtn {
  22099. top: 19px;
  22100. }
  22101. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22102. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22103. color: #fff;
  22104. }
  22105. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22106. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22107. color: #fff;
  22108. }
  22109. .dialog_diy1 >>> .el-dialog__body {
  22110. padding: 0;
  22111. }
  22112. .dialog_diy >>> .el-dialog__body,
  22113. .dialog_diy >>> .el-dialog__footer,
  22114. .dialog_diy1 >>> .el-dialog__footer {
  22115. background: #fafafa;
  22116. }
  22117. .a_addBox {
  22118. padding: 0 0 0 15px;
  22119. }
  22120. .a_add_box {
  22121. padding: 10px;
  22122. background: #fff;
  22123. margin-bottom: 10px;
  22124. border-radius: 5px;
  22125. box-shadow: 0 0 5px 0 #d5d5d5;
  22126. }
  22127. .a_add_head {
  22128. display: flex;
  22129. align-items: flex-start;
  22130. /* justify-content: space-between; */
  22131. flex-direction: column;
  22132. /* flex-direction: row; */
  22133. margin: 10px 0 20px 0;
  22134. font-size: 18px;
  22135. width: 100%;
  22136. }
  22137. .askIndex {
  22138. background: #3681fc;
  22139. border-radius: 50%;
  22140. color: #fff;
  22141. width: 25px;
  22142. height: 25px;
  22143. min-width: 25px;
  22144. min-height: 25px;
  22145. text-align: center;
  22146. line-height: 25px;
  22147. margin-right: 5px;
  22148. }
  22149. .a_add_head .a_add_head_input {
  22150. width: 300px;
  22151. }
  22152. .a_add_head .a_add_head_div {
  22153. display: flex;
  22154. align-items: center;
  22155. justify-content: space-between;
  22156. }
  22157. .a_add_body {
  22158. display: flex;
  22159. align-items: center;
  22160. }
  22161. .a_add_input {
  22162. display: flex;
  22163. align-items: center;
  22164. flex-wrap: wrap;
  22165. width: 100%;
  22166. }
  22167. .a_add_input >>> .el-radio-group,
  22168. .a_add_input >>> .el-checkbox-group {
  22169. width: 100%;
  22170. }
  22171. .a_add_input >>> .el-radio,
  22172. .a_add_input >>> .el-checkbox {
  22173. display: flex;
  22174. flex-direction: row;
  22175. flex-wrap: nowrap;
  22176. align-items: center;
  22177. padding: 15px 0;
  22178. }
  22179. .a_add_input >>> .el-radio:not(:last-child),
  22180. .a_add_input >>> .el-checkbox:not(:last-child) {
  22181. width: 100%;
  22182. border-bottom: 1px solid #efefef;
  22183. }
  22184. .redioStyle >>> .el-radio__label {
  22185. font-size: 18px;
  22186. }
  22187. .redioStyle >>> .el-radio__label > span,
  22188. .redioStyle >>> .el-checkbox__label > span {
  22189. word-break: break-all;
  22190. white-space: normal;
  22191. }
  22192. .redioStyle >>> .el-checkbox__label {
  22193. font-size: 18px;
  22194. }
  22195. .toolHeng2 {
  22196. width: 100%;
  22197. padding-left: 15px;
  22198. box-sizing: border-box;
  22199. }
  22200. .workNav {
  22201. font-size: 20px;
  22202. font-weight: bold;
  22203. color: #0e1e33;
  22204. display: flex;
  22205. flex-direction: row;
  22206. flex-wrap: nowrap;
  22207. align-items: center;
  22208. padding: 15px 0 15px 0;
  22209. }
  22210. .workNav::before {
  22211. content: "";
  22212. width: 2px;
  22213. height: 22px;
  22214. background: #3681fc;
  22215. border-radius: 3px;
  22216. display: block;
  22217. margin: 2px 6px 0 0;
  22218. }
  22219. .toolHeng {
  22220. display: flex;
  22221. flex-direction: row;
  22222. flex-wrap: wrap;
  22223. justify-content: flex-start;
  22224. align-items: center;
  22225. width: 100%;
  22226. }
  22227. .toolHeng > div {
  22228. padding-left: 20px;
  22229. }
  22230. .isWidth {
  22231. width: 20%;
  22232. }
  22233. .textTitle {
  22234. display: flex;
  22235. flex-direction: row;
  22236. flex-wrap: nowrap;
  22237. align-items: center;
  22238. width: 95%;
  22239. }
  22240. .textTitle >>> .el-form-item__label {
  22241. font-size: 22px;
  22242. color: #918f8f;
  22243. width: 100px;
  22244. }
  22245. .textTitle >>> .el-form-item__content {
  22246. width: calc(100% - 100px);
  22247. }
  22248. .textCss >>> .el-dialog {
  22249. width: 800px !important;
  22250. height: 400px;
  22251. background: #fafafa;
  22252. }
  22253. .textCss >>> .el-dialog__body {
  22254. margin: 55px 8% 0 8%;
  22255. padding: 0 !important;
  22256. }
  22257. .textCss >>> .el-dialog__footer {
  22258. padding-top: 38px;
  22259. }
  22260. .toolsCss >>> .el-dialog__body {
  22261. padding: 20px;
  22262. }
  22263. .lineCss >>> .el-dialog__body {
  22264. display: flex;
  22265. flex-direction: row;
  22266. align-items: center;
  22267. justify-content: center;
  22268. }
  22269. .newNav {
  22270. display: flex;
  22271. flex-direction: row;
  22272. align-items: baseline;
  22273. justify-content: flex-start;
  22274. }
  22275. .navListItem {
  22276. width: calc(100% - 20px);
  22277. height: 50px;
  22278. margin: 0px auto 10px;
  22279. display: flex;
  22280. flex-direction: row;
  22281. flex-wrap: nowrap;
  22282. align-items: center;
  22283. justify-content: space-between;
  22284. background: #f0f4fa;
  22285. border-radius: 6px 6px 6px 6px;
  22286. }
  22287. .navText {
  22288. cursor: pointer;
  22289. white-space: nowrap;
  22290. overflow: hidden;
  22291. text-overflow: ellipsis;
  22292. width: 220px;
  22293. padding: 0 10px;
  22294. font-weight: 400;
  22295. color: #0e1e33;
  22296. }
  22297. .downIcon {
  22298. width: 20px;
  22299. min-width: 20px;
  22300. height: 20px;
  22301. margin-right: 15px;
  22302. cursor: pointer;
  22303. }
  22304. .downIcon > img {
  22305. width: 100%;
  22306. height: 100%;
  22307. }
  22308. .noVedio {
  22309. display: flex;
  22310. flex-direction: row;
  22311. justify-content: center;
  22312. align-content: center;
  22313. }
  22314. .noNavText {
  22315. cursor: pointer;
  22316. margin: 0px 0px 10px 5px;
  22317. width: 112px;
  22318. }
  22319. .listNoVedio {
  22320. margin: 0 0 0 30px;
  22321. width: 97%;
  22322. }
  22323. .video-player >>> .video-js {
  22324. height: 100%;
  22325. }
  22326. .hangVedioList {
  22327. width: 90% !important;
  22328. height: 150px !important;
  22329. margin: 20px 0 0 30px;
  22330. }
  22331. .hangVedio {
  22332. width: 100%;
  22333. height: 170px !important;
  22334. align-items: flex-start !important;
  22335. }
  22336. .hangHand {
  22337. height: 150px !important;
  22338. }
  22339. .twoChild {
  22340. width: 95%;
  22341. margin: 10px;
  22342. border-radius: 5px;
  22343. background: #f2f2f2;
  22344. display: flex;
  22345. flex-direction: column;
  22346. flex-wrap: nowrap;
  22347. justify-content: flex-start;
  22348. align-items: flex-start;
  22349. transition: all 0.5s;
  22350. overflow: hidden;
  22351. height: 0;
  22352. background: #e7f3ff;
  22353. }
  22354. .twoChild > div:nth-child(1) {
  22355. margin-top: 5px;
  22356. }
  22357. .navChild {
  22358. width: 100%;
  22359. cursor: pointer;
  22360. margin-bottom: 10px;
  22361. position: relative;
  22362. }
  22363. .navChild img {
  22364. position: absolute;
  22365. right: 11px;
  22366. width: 15px;
  22367. top: 50%;
  22368. transform: translateY(-50%);
  22369. }
  22370. .navActive,
  22371. .toolActive {
  22372. height: auto !important;
  22373. overflow: auto !important;
  22374. /* padding-bottom: 16px; */
  22375. }
  22376. .toolActive {
  22377. padding: 0;
  22378. }
  22379. .navTask {
  22380. display: flex;
  22381. flex-direction: row;
  22382. flex-wrap: nowrap;
  22383. align-items: center;
  22384. align-content: flex-start;
  22385. height: 40px;
  22386. justify-content: flex-start;
  22387. padding: 0 10px;
  22388. width: 100%;
  22389. box-sizing: border-box;
  22390. }
  22391. .navTaskname {
  22392. white-space: nowrap;
  22393. text-overflow: ellipsis;
  22394. overflow: hidden;
  22395. word-break: break-all;
  22396. padding-left: 5px;
  22397. }
  22398. .openTaskActive {
  22399. /* background-color: #e0eafb !important;
  22400. color: #0061ff; */
  22401. color:#fff;
  22402. background: rgb(55, 129, 252) !important;
  22403. }
  22404. .iframeName {
  22405. margin: 5px 0;
  22406. border-left: 4px solid #41c4a4;
  22407. padding-left: 4px;
  22408. }
  22409. .toolTitle {
  22410. margin: 0px 0px 20px;
  22411. font-size: 20px;
  22412. font-weight: 500;
  22413. border-left: 4px solid #41c4a4;
  22414. padding-left: 4px;
  22415. }
  22416. .cru_selectBox {
  22417. overflow: auto;
  22418. width: 95%;
  22419. margin: 17px auto 0;
  22420. height: calc(100% - 40px - 21px - 20px - 17px);
  22421. background: #fff;
  22422. border-radius: 8px;
  22423. }
  22424. .cru_selectBox::-webkit-scrollbar,
  22425. .study_top::-webkit-scrollbar,
  22426. .textContent::-webkit-scrollbar {
  22427. /*滚动条整体样式*/
  22428. width: 6px;
  22429. /*高宽分别对应横竖滚动条的尺寸*/
  22430. height: 6px;
  22431. }
  22432. /*定义滚动条轨道 内阴影+圆角*/
  22433. .cru_selectBox::-webkit-scrollbar-track,
  22434. .study_top::-webkit-scrollbar-track,
  22435. .textContent::-webkit-scrollbar {
  22436. border-radius: 10px;
  22437. background-color: #b8bdc9;
  22438. }
  22439. /*定义滑块 内阴影+圆角*/
  22440. .cru_selectBox::-webkit-scrollbar-thumb,
  22441. .study_top::-webkit-scrollbar-thumb,
  22442. .textContent::-webkit-scrollbar-thumb {
  22443. border-radius: 10px;
  22444. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22445. background-color: #2c5ab3;
  22446. }
  22447. .vedioBox {
  22448. border-radius: 0 0 20px 20px;
  22449. background: #fff;
  22450. overflow: auto;
  22451. }
  22452. .taskBox {
  22453. width: 98%;
  22454. background: #f0f4fa;
  22455. margin: 10px auto;
  22456. padding: 0 10px;
  22457. border-radius: 4px;
  22458. box-sizing: border-box;
  22459. }
  22460. .vedioTaskBox {
  22461. width: 100%;
  22462. display: flex;
  22463. flex-direction: row;
  22464. flex-wrap: nowrap;
  22465. align-items: flex-start;
  22466. position: relative;
  22467. }
  22468. .toolBox {
  22469. margin: 15px 0 0 25px;
  22470. display: flex;
  22471. position: relative;
  22472. padding: 18px 20px;
  22473. border-top-left-radius: 5px;
  22474. border-top-right-radius: 5px;
  22475. width: 90%;
  22476. }
  22477. .btnAll {
  22478. position: absolute;
  22479. right: 0;
  22480. display: flex;
  22481. flex-direction: row;
  22482. flex-wrap: nowrap;
  22483. align-items: center;
  22484. }
  22485. .btnLeft,
  22486. .btnRight {
  22487. display: flex;
  22488. flex-direction: row;
  22489. flex-wrap: nowrap;
  22490. align-items: center;
  22491. padding: 5px 0;
  22492. }
  22493. .btnLeft {
  22494. border-right: 1px solid #cad1dc;
  22495. }
  22496. .btnLeft > .custom-tooltip {
  22497. background: #3681fc;
  22498. color: #fff;
  22499. }
  22500. .last:hover {
  22501. background: #3383fa !important;
  22502. color: #fff;
  22503. border: 1px solid #3383fa !important;
  22504. }
  22505. .last,
  22506. .returnBtn1 {
  22507. width: 90px;
  22508. height: 36px;
  22509. background: #ffffff;
  22510. border-radius: 4px;
  22511. border: 1px solid #0061ff;
  22512. color: #0061ff;
  22513. cursor: pointer;
  22514. display: flex;
  22515. flex-direction: row;
  22516. flex-wrap: nowrap;
  22517. align-items: center;
  22518. justify-content: center;
  22519. margin-left: 12px;
  22520. }
  22521. .returnBtn1 {
  22522. background: #f0f4fa;
  22523. border-radius: 4px;
  22524. border: 1px solid #cad1dc;
  22525. margin: 0 12px;
  22526. }
  22527. .lastImg {
  22528. min-width: 15px;
  22529. width: 15px;
  22530. height: 15px;
  22531. display: flex;
  22532. }
  22533. .lastText {
  22534. padding: 0 5px 0 5px;
  22535. box-sizing: border-box;
  22536. font-size: 14px;
  22537. }
  22538. .lastImg > img {
  22539. width: 100%;
  22540. height: 100%;
  22541. }
  22542. /* .vedioTimeBox {
  22543. display: flex;
  22544. flex-direction: row;
  22545. align-items: center;
  22546. flex-wrap: nowrap;
  22547. position: relative;
  22548. } */
  22549. .navBox {
  22550. background: #fff;
  22551. height: calc(100% - 40px);
  22552. overflow-y: auto;
  22553. overflow-x: hidden;
  22554. }
  22555. .worksBox {
  22556. margin: 0 0 10px 25px;
  22557. border-bottom: 1px solid #eeeeee;
  22558. padding: 18px 20px;
  22559. border-radius: 4px;
  22560. width: 90%;
  22561. }
  22562. .worksBTitle {
  22563. font-size: 20px;
  22564. padding-bottom: 15px;
  22565. border-bottom: 1px solid #eeeeee;
  22566. display: flex;
  22567. align-items: center;
  22568. }
  22569. .greenBox {
  22570. width: 5px;
  22571. height: 30px;
  22572. background: #63b6fa;
  22573. margin-right: 5px;
  22574. }
  22575. .worksDetailBox {
  22576. display: flex;
  22577. width: 100%;
  22578. flex-direction: row;
  22579. flex-wrap: wrap;
  22580. align-items: flex-end;
  22581. justify-content: flex-start;
  22582. padding: 15px 5px;
  22583. box-sizing: border-box;
  22584. }
  22585. .works {
  22586. display: flex;
  22587. flex-direction: column;
  22588. flex-wrap: nowrap;
  22589. align-items: flex-start;
  22590. justify-content: flex-start;
  22591. align-content: center;
  22592. max-width: 240px;
  22593. width: calc(100% / 3 - 10px);
  22594. height: auto;
  22595. margin-right: 10px;
  22596. margin-bottom: 10px;
  22597. overflow: hidden;
  22598. height: 140px;
  22599. box-shadow: 0 0 6px 1px #dfdada;
  22600. border-radius: 15px;
  22601. }
  22602. .workImg {
  22603. width: 100%;
  22604. /* height: calc(100% - 40px); */
  22605. height: 105px;
  22606. position: relative;
  22607. }
  22608. .workImg > img {
  22609. width: 100%;
  22610. height: 100%;
  22611. object-fit: contain;
  22612. cursor: pointer;
  22613. }
  22614. .worksName {
  22615. height: 40px;
  22616. line-height: 40px;
  22617. display: flex;
  22618. width: 100%;
  22619. flex-direction: row;
  22620. flex-wrap: nowrap;
  22621. justify-content: space-between;
  22622. align-items: center;
  22623. margin: 0 0 0 10px;
  22624. }
  22625. .worksName > div:nth-child(1) {
  22626. width: 110px;
  22627. white-space: nowrap;
  22628. overflow: hidden;
  22629. text-overflow: ellipsis;
  22630. }
  22631. .worksName > div:nth-child(2) {
  22632. color: #b7b4b5;
  22633. }
  22634. .noWorksS {
  22635. padding: 15px 0;
  22636. display: flex;
  22637. flex-direction: row;
  22638. flex-wrap: wrap;
  22639. align-items: center;
  22640. justify-content: flex-start;
  22641. }
  22642. .noWorksName,
  22643. .isWorksName,
  22644. .isWorksName2 {
  22645. background: #ddebf8;
  22646. color: #000;
  22647. width: 90px;
  22648. height: 25px;
  22649. text-align: center;
  22650. line-height: 25px;
  22651. border-radius: 4px;
  22652. margin: 10px 15px 10px 0;
  22653. white-space: nowrap;
  22654. overflow: hidden;
  22655. padding: 5px;
  22656. text-overflow: ellipsis;
  22657. cursor: pointer;
  22658. border: 1px solid #ddebf8;
  22659. }
  22660. .noWorksName {
  22661. background: #fff;
  22662. color: #0061ff;
  22663. border: 1px solid #0061ff;
  22664. }
  22665. .noWorksName > span{
  22666. max-width: 100%;
  22667. display: block;
  22668. overflow: hidden;
  22669. text-overflow: ellipsis;
  22670. white-space: nowrap;
  22671. }
  22672. .noWorksName2 {
  22673. background: #fff;
  22674. color: #0061ff;
  22675. width: 90px;
  22676. height: 25px;
  22677. text-align: center;
  22678. line-height: 25px;
  22679. border-radius: 4px;
  22680. margin: 10px 15px 10px 0;
  22681. white-space: nowrap;
  22682. overflow: hidden;
  22683. padding: 5px;
  22684. text-overflow: ellipsis;
  22685. cursor: pointer;
  22686. border: 1px solid #0061ff;
  22687. }
  22688. .noWorksName2 > span {
  22689. max-width: 100%;
  22690. display: block;
  22691. overflow: hidden;
  22692. text-overflow: ellipsis;
  22693. white-space: nowrap;
  22694. }
  22695. .isWorksName2 {
  22696. width: 100px;
  22697. height: 40px;
  22698. line-height: 40px;
  22699. position: relative;
  22700. background: #dae6f9;
  22701. }
  22702. .isWorksName {
  22703. background: #e7ebf1 !important;
  22704. width: 100px;
  22705. height: 40px;
  22706. line-height: 40px;
  22707. position: relative;
  22708. color: #acb4bf;
  22709. border: 1px solid #cad1dc !important;
  22710. }
  22711. .isSelectName,
  22712. .noWorksName:hover {
  22713. background: #3383fa !important;
  22714. color: #fff !important;
  22715. border: 1px solid #3383fa !important;
  22716. }
  22717. .title {
  22718. background: #1e5cc9;
  22719. /* width: 98%; */
  22720. height: 45px;
  22721. color: #fff;
  22722. line-height: 45px;
  22723. padding-left: 20px;
  22724. box-sizing: border-box;
  22725. }
  22726. .textBox {
  22727. font-size: 20px;
  22728. width: 90%;
  22729. display: flex;
  22730. flex-direction: column;
  22731. align-items: center;
  22732. margin: 20px auto 0;
  22733. max-height: calc(100% - 75px);
  22734. overflow: auto;
  22735. }
  22736. .textContent {
  22737. font-size: 18px;
  22738. width: 95%;
  22739. max-width: 95%;
  22740. }
  22741. .answerBg {
  22742. background: url("../assets/icon/answerBgNew.png") no-repeat;
  22743. background-size: 100% 100%;
  22744. width: 100%;
  22745. height: 100%;
  22746. color: #fff;
  22747. text-align: center;
  22748. display: flex;
  22749. flex-direction: column;
  22750. flex-wrap: nowrap;
  22751. align-items: center;
  22752. position: relative;
  22753. justify-content: center;
  22754. }
  22755. /* .answerBg > div:nth-child(1) { */
  22756. /* font-size: 22px;
  22757. padding: 25px 0 10px; */
  22758. /* } */
  22759. .answerContent {
  22760. width: 215px;
  22761. max-height: 60px;
  22762. word-break: break-all;
  22763. text-align: center;
  22764. /* white-space: nowrap; */
  22765. overflow: hidden;
  22766. text-overflow: ellipsis;
  22767. /* padding: 23px 0 0; */
  22768. -webkit-line-clamp: 3;
  22769. -webkit-box-orient: vertical;
  22770. display: -webkit-box;
  22771. font-size: 15px;
  22772. cursor: pointer;
  22773. }
  22774. .elist_input_box {
  22775. display: flex;
  22776. align-items: flex-start;
  22777. flex-wrap: nowrap;
  22778. padding: 10px 0 15px 30px;
  22779. flex-direction: column;
  22780. }
  22781. .elist_input {
  22782. /* width: 40%; */
  22783. width: 45%;
  22784. margin: 20px;
  22785. }
  22786. .elist_input .elist_input_box input {
  22787. font: inherit;
  22788. color: currentColor;
  22789. width: 200px;
  22790. padding: 8px 14px;
  22791. display: block;
  22792. min-width: 0;
  22793. outline: none;
  22794. border: 1px solid rgba(0, 0, 0, 0.23);
  22795. border-radius: 4px;
  22796. box-sizing: border-box;
  22797. background: #fff;
  22798. margin: 0 20px 0 0;
  22799. }
  22800. .elist_input .elist_input_box span {
  22801. height: 36px;
  22802. line-height: 36px;
  22803. color: rgb(82, 82, 82);
  22804. }
  22805. .elist_input .elist_input_box .remove {
  22806. height: 20px;
  22807. width: 20px;
  22808. background-size: 100% 100%;
  22809. background-position: unset;
  22810. margin-left: 5px;
  22811. }
  22812. .elist_input_box >>> .el-rate {
  22813. display: flex;
  22814. height: 36px;
  22815. align-items: center;
  22816. }
  22817. .elist_input_box .elist_inptu_text {
  22818. min-height: 50px;
  22819. /* width: 500px;
  22820. max-height: 150px; */
  22821. width: 100%;
  22822. line-height: 50px;
  22823. color: rgb(82, 82, 82);
  22824. overflow: auto;
  22825. text-indent: 5px;
  22826. background: #f7f6f9;
  22827. border-radius: 10px;
  22828. }
  22829. .elist_input_box .elist_inptu_text input {
  22830. width: 500px;
  22831. }
  22832. .elist_input_box >>> .el-rate__icon {
  22833. font-size: 24px;
  22834. }
  22835. .isClick {
  22836. background: #4d9def;
  22837. }
  22838. .bzBox {
  22839. display: flex;
  22840. flex-direction: row;
  22841. align-items: center;
  22842. }
  22843. .bzBox .yCss {
  22844. width: 7px;
  22845. height: 7px;
  22846. background: #fff;
  22847. margin: 0 16px 0 6px;
  22848. border-radius: 50%;
  22849. border: 5px solid #3681fc;
  22850. z-index: 99;
  22851. }
  22852. .bzBox > div:nth-child(2) {
  22853. font-size: 18px;
  22854. font-weight: bold;
  22855. color: #0e1e33;
  22856. }
  22857. .navTitile {
  22858. padding: 0 0px 0 15px;
  22859. font-size: 16px;
  22860. font-weight: bold;
  22861. color: #0e1e33;
  22862. height: 40px;
  22863. line-height: 40px;
  22864. }
  22865. .isTypeOne {
  22866. width: 240px;
  22867. height: 170px;
  22868. /* border: 1px solid #f8f8f8; */
  22869. border-radius: 10px;
  22870. box-shadow: 0 0 6px 1px #dfdada;
  22871. }
  22872. .e_add_top {
  22873. display: flex;
  22874. justify-content: space-between;
  22875. padding: 10px 20px;
  22876. border-radius: 3px;
  22877. background: #fff;
  22878. }
  22879. .e_add_title2 {
  22880. display: flex;
  22881. align-items: center;
  22882. }
  22883. .e_add_title2 span {
  22884. width: 40px;
  22885. }
  22886. .e_add_title {
  22887. display: flex;
  22888. align-items: center;
  22889. color: #b8b8b8;
  22890. font-size: 18px;
  22891. position: relative;
  22892. height: 40px;
  22893. width: 100%;
  22894. }
  22895. .e_add_title span {
  22896. margin-right: 10px;
  22897. }
  22898. .e_add_title .el_input {
  22899. width: 300px;
  22900. }
  22901. .e_add_title >>> .el-input__inner {
  22902. width: 400px;
  22903. }
  22904. /* .e_add_btn {
  22905. } */
  22906. .e_add_content {
  22907. display: flex;
  22908. width: 100%;
  22909. max-width: 650px;
  22910. height: 550px;
  22911. }
  22912. .e_add_list {
  22913. background: #fff;
  22914. height: 500px;
  22915. width: 210px;
  22916. position: relative;
  22917. margin: 15px 5px 0 0;
  22918. flex-shrink: 0;
  22919. display: flex;
  22920. flex-direction: column;
  22921. }
  22922. .e_add_list_title {
  22923. font-size: 20px;
  22924. width: 100%;
  22925. box-sizing: border-box;
  22926. padding: 15px 40px;
  22927. text-align: center;
  22928. border-bottom: 1px solid #eaeaea;
  22929. position: relative;
  22930. display: flex;
  22931. align-items: center;
  22932. justify-content: center;
  22933. height: 57px;
  22934. background: #f6f6f6;
  22935. }
  22936. .e_add_list_title span {
  22937. overflow: hidden;
  22938. white-space: nowrap;
  22939. text-overflow: ellipsis;
  22940. }
  22941. .e_add_list_title img {
  22942. position: absolute;
  22943. right: 15px;
  22944. width: 25px;
  22945. cursor: pointer;
  22946. top: 50%;
  22947. transform: translateY(-50%);
  22948. }
  22949. .e_add_list_body {
  22950. height: calc(100% - 187px);
  22951. overflow: auto;
  22952. }
  22953. .e_add_list_child {
  22954. width: 100%;
  22955. display: flex;
  22956. align-items: center;
  22957. justify-content: center;
  22958. position: relative;
  22959. box-sizing: border-box;
  22960. padding: 15px 40px;
  22961. text-align: center;
  22962. }
  22963. .e_add_list_child span {
  22964. overflow: hidden;
  22965. white-space: nowrap;
  22966. text-overflow: ellipsis;
  22967. cursor: pointer;
  22968. }
  22969. .e_add_list_child img {
  22970. position: absolute;
  22971. right: 10px;
  22972. width: 21px;
  22973. cursor: pointer;
  22974. top: 50%;
  22975. transform: translateY(-50%);
  22976. }
  22977. .e_add_list_child + .e_add_list_child {
  22978. border-top: 1px solid #eaeaea;
  22979. }
  22980. .e_add_list_child .active {
  22981. color: #409eff;
  22982. }
  22983. .e_add_list_btn {
  22984. position: absolute;
  22985. bottom: 0;
  22986. height: 50px;
  22987. background: rgb(120, 120, 254);
  22988. width: 100%;
  22989. color: #fff;
  22990. font-size: 16px;
  22991. text-align: center;
  22992. line-height: 50px;
  22993. cursor: pointer;
  22994. }
  22995. .e_add_list_detail {
  22996. position: absolute;
  22997. bottom: 0;
  22998. height: 130px;
  22999. background: rgb(120, 120, 254);
  23000. width: 100%;
  23001. color: #fff;
  23002. font-size: 16px;
  23003. display: flex;
  23004. align-items: center;
  23005. justify-content: center;
  23006. }
  23007. .e_add_list_detail textarea {
  23008. height: 90%;
  23009. width: 95%;
  23010. border: none;
  23011. resize: none;
  23012. outline: none;
  23013. padding: 5px;
  23014. box-sizing: border-box;
  23015. }
  23016. .e_add_list_pbox {
  23017. width: 100%;
  23018. max-width: 650px;
  23019. /* height: 600px; */
  23020. }
  23021. .e_add_list_pbox_title {
  23022. height: 50px;
  23023. background: #fff;
  23024. display: flex;
  23025. align-items: center;
  23026. width: 100%;
  23027. box-sizing: border-box;
  23028. padding: 0 20px;
  23029. }
  23030. .type_title {
  23031. font-size: 18px;
  23032. font-weight: 700;
  23033. }
  23034. .type_content {
  23035. font-size: 16px;
  23036. /* margin-left: 30px; */
  23037. }
  23038. .type_content span + span {
  23039. margin-left: 20px;
  23040. }
  23041. .type_content span {
  23042. cursor: pointer;
  23043. padding-bottom: 5px;
  23044. box-sizing: border-box;
  23045. }
  23046. .type_content .active {
  23047. color: #409eff;
  23048. border-bottom: 2px solid #409eff;
  23049. }
  23050. .e_add_list_pbox_content {
  23051. height: calc(100% - 50px);
  23052. display: flex;
  23053. align-items: center;
  23054. width: 100%;
  23055. background: #fff;
  23056. }
  23057. .evaCss {
  23058. display: flex;
  23059. flex-direction: row;
  23060. flex-wrap: nowrap;
  23061. align-items: flex-start;
  23062. padding: 0 0 20px;
  23063. }
  23064. .cru_line {
  23065. position: absolute;
  23066. bottom: 0px;
  23067. transition: all 0.5s;
  23068. left: 0px;
  23069. width: 125px;
  23070. margin-left: -25px;
  23071. }
  23072. .isNoMessage {
  23073. width: 20%;
  23074. margin: 25% auto 0;
  23075. }
  23076. .isNoMessage > img {
  23077. width: 100%;
  23078. height: 100%;
  23079. }
  23080. .fullStyle >>> .el-dialog__body {
  23081. height: 100% !important;
  23082. }
  23083. .fullStyle >>> .el-dialog,
  23084. .fullStyle {
  23085. width: 100% !important;
  23086. max-width: 100% !important;
  23087. height: 100% !important;
  23088. margin: 0 !important;
  23089. }
  23090. .full_diy >>> .el-dialog {
  23091. margin: 0 !important;
  23092. height: 100%;
  23093. padding: 4px;
  23094. }
  23095. .full_diy >>> .el-dialog__body {
  23096. height: calc(100% - 100px);
  23097. }
  23098. .full_diy2 >>> .el-dialog__body {
  23099. height: calc(100% - 50px);
  23100. padding: 0;
  23101. }
  23102. .switchCss {
  23103. /* width: 100%; */
  23104. display: flex;
  23105. flex-direction: row;
  23106. flex-wrap: nowrap;
  23107. align-items: center;
  23108. /* justify-content: center; */
  23109. }
  23110. .isClickNav {
  23111. /* color: #499eef; */
  23112. color: #000;
  23113. }
  23114. .commentImg {
  23115. width: 25px;
  23116. height: 25px;
  23117. cursor: pointer;
  23118. }
  23119. .commentImg > img {
  23120. width: 100%;
  23121. height: 100%;
  23122. }
  23123. .comment {
  23124. background: #f9f9f9;
  23125. border-radius: 0 0 4px 4px;
  23126. display: flex;
  23127. flex-direction: row;
  23128. flex-wrap: nowrap;
  23129. align-items: center;
  23130. justify-content: flex-end;
  23131. height: 35px;
  23132. }
  23133. .commentList {
  23134. display: flex;
  23135. flex-direction: row;
  23136. flex-wrap: nowrap;
  23137. align-items: center;
  23138. justify-content: center;
  23139. align-content: center;
  23140. /* margin-left: 15px; */
  23141. /* margin-left: 8px; */
  23142. }
  23143. .scoreImg {
  23144. width: 17px;
  23145. height: 17px;
  23146. }
  23147. .studentDetail {
  23148. display: flex;
  23149. flex-direction: row;
  23150. flex-wrap: nowrap;
  23151. /* align-items: center; */
  23152. align-items: flex-start;
  23153. }
  23154. .tx {
  23155. width: 50px;
  23156. }
  23157. .tx > img {
  23158. width: 100%;
  23159. height: 100%;
  23160. }
  23161. .nameAndTime {
  23162. display: flex;
  23163. flex-direction: column;
  23164. flex-wrap: nowrap;
  23165. align-items: flex-start;
  23166. margin-left: 10px;
  23167. }
  23168. .worksAnswer {
  23169. color: #4078dd;
  23170. margin: 10px 0;
  23171. font-size: 16px;
  23172. position: relative;
  23173. }
  23174. .worksAnswer > img {
  23175. width: 500px;
  23176. height: 300px;
  23177. object-fit: contain;
  23178. margin: 0 auto;
  23179. display: block;
  23180. }
  23181. .commentTop {
  23182. border-bottom: 1px solid #eaeaea;
  23183. padding-bottom: 10px;
  23184. }
  23185. .commentBox {
  23186. padding-top: 15px;
  23187. }
  23188. .pl {
  23189. font-size: 18px;
  23190. }
  23191. .plPerson {
  23192. width: 100%;
  23193. }
  23194. .plName {
  23195. display: flex;
  23196. flex-direction: row;
  23197. flex-wrap: nowrap;
  23198. align-items: baseline;
  23199. color: #78787a;
  23200. width: 100%;
  23201. }
  23202. .deleteComment {
  23203. cursor: pointer;
  23204. margin-left: auto;
  23205. color: #237ade;
  23206. }
  23207. .plContent {
  23208. margin-top: 5px;
  23209. }
  23210. .evalCss {
  23211. background: #fff;
  23212. font-size: 18px;
  23213. }
  23214. .nav {
  23215. color: #9d9d9d;
  23216. padding: 5px 0 15px 20px;
  23217. }
  23218. .middleBox {
  23219. padding: 5px 0 15px 20px;
  23220. }
  23221. .pfBox {
  23222. padding-bottom: 30px;
  23223. }
  23224. .nameAndrate {
  23225. display: flex;
  23226. flex-direction: row;
  23227. flex-wrap: nowrap;
  23228. align-items: center;
  23229. padding-bottom: 10px;
  23230. height: 30px;
  23231. line-height: 30px;
  23232. }
  23233. .nameAndrate > div {
  23234. margin-left: 10px;
  23235. color: #000;
  23236. height: 30px;
  23237. }
  23238. .nameAndrate >>> .el-rate__icon {
  23239. font-size: 28px !important;
  23240. }
  23241. .pfBox > div:nth-child(2) {
  23242. background: #f7f6f9;
  23243. width: 400px;
  23244. min-height: 45px;
  23245. border-radius: 10px;
  23246. font-size: 16px;
  23247. display: flex;
  23248. flex-wrap: wrap;
  23249. align-items: center;
  23250. padding: 10px 20px;
  23251. box-sizing: border-box;
  23252. color: #000;
  23253. }
  23254. .bz {
  23255. display: flex;
  23256. flex-direction: row;
  23257. flex-wrap: nowrap;
  23258. align-items: flex-start;
  23259. }
  23260. .bz > div {
  23261. padding: 0 10px;
  23262. }
  23263. .select_box2_title {
  23264. background: #fff;
  23265. border-radius: 5px;
  23266. padding: 15px 10px;
  23267. box-sizing: border-box;
  23268. margin-bottom: 10px;
  23269. display: flex;
  23270. flex-direction: row;
  23271. flex-wrap: nowrap;
  23272. align-items: center;
  23273. }
  23274. .select_box2_title > div:nth-child(2) {
  23275. margin-left: 10px;
  23276. color: #c4c4c4;
  23277. }
  23278. .select_box2_box {
  23279. display: flex;
  23280. height: 500px;
  23281. }
  23282. .select_box2_img {
  23283. width: calc(100% - 310px);
  23284. height: 100%;
  23285. overflow: auto;
  23286. background: #fff;
  23287. border-radius: 5px;
  23288. }
  23289. .select_box2_img img {
  23290. width: 100%;
  23291. }
  23292. .select_box2_answer {
  23293. background: #fff;
  23294. margin-left: 10px;
  23295. border-radius: 5px;
  23296. width: 300px;
  23297. overflow: auto;
  23298. height: 90%;
  23299. display: flex;
  23300. flex-direction: column;
  23301. align-items: flex-start;
  23302. padding-top: 10px;
  23303. box-sizing: border-box;
  23304. position: relative;
  23305. }
  23306. .select_answer_title {
  23307. padding: 0 0 15px 20px;
  23308. color: #c4c4c4;
  23309. }
  23310. .select_box2_answer_box {
  23311. margin: 0 0 10px 20px;
  23312. width: 85%;
  23313. display: flex;
  23314. flex-direction: row;
  23315. flex-wrap: nowrap;
  23316. align-items: center;
  23317. }
  23318. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23319. color: #000;
  23320. }
  23321. .upAnswerCss {
  23322. position: absolute;
  23323. bottom: 15px;
  23324. right: 15px;
  23325. }
  23326. .upAnswerCss >>> .el-button {
  23327. width: 95px;
  23328. height: 35px;
  23329. line-height: 35px;
  23330. padding: 0;
  23331. }
  23332. .rightWidthCss {
  23333. width: 60%;
  23334. display: flex;
  23335. flex-direction: row;
  23336. align-items: flex-start;
  23337. }
  23338. .rightAnswer {
  23339. display: flex;
  23340. flex-direction: row;
  23341. flex-wrap: nowrap;
  23342. align-items: center;
  23343. color: red;
  23344. margin-bottom: 31px;
  23345. }
  23346. .rightAnswerCss {
  23347. display: flex;
  23348. flex-direction: column;
  23349. flex-wrap: nowrap;
  23350. padding-top: 60px;
  23351. }
  23352. .blueCss {
  23353. color: #767de1;
  23354. margin-left: 10px;
  23355. }
  23356. .redCss {
  23357. color: red;
  23358. }
  23359. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23360. color: rgb(0 123 255) !important;
  23361. }
  23362. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23363. color: rgb(0 123 255) !important;
  23364. }
  23365. .zuoyeYulan {
  23366. padding-top: 0;
  23367. font-size: 18px;
  23368. display: flex;
  23369. align-items: flex-end;
  23370. }
  23371. .buttonA {
  23372. margin-left: 10px;
  23373. padding: 0;
  23374. }
  23375. .displayBox {
  23376. margin-bottom: 10px;
  23377. display: block;
  23378. border-bottom: 3px solid #eee;
  23379. display: flex;
  23380. align-items: center;
  23381. }
  23382. .easy_comment {
  23383. width: calc(100% - 90px);
  23384. margin-left: 10px;
  23385. display: flex;
  23386. flex-wrap: wrap;
  23387. }
  23388. .easy_comment > div {
  23389. border: 1px solid #4a4a4a;
  23390. color: #666;
  23391. border-radius: 15px;
  23392. padding: 5px 10px;
  23393. font-size: 16px;
  23394. margin-bottom: 10px;
  23395. margin-right: 5px;
  23396. cursor: pointer;
  23397. }
  23398. .easy_comment div:hover {
  23399. border: 1px solid #f7ba2a;
  23400. color: #c69217;
  23401. }
  23402. .xuan_right_box {
  23403. padding: 10px 0;
  23404. background: #f0f4fa;
  23405. margin: 0 15px 0 25px;
  23406. border-bottom-left-radius: 5px;
  23407. border-bottom-right-radius: 5px;
  23408. width: 91.5%;
  23409. }
  23410. .tool_right_box {
  23411. display: flex;
  23412. align-items: center;
  23413. }
  23414. .tool_right_box >>> .katex {
  23415. font-size: 16px;
  23416. }
  23417. .tool_right_box + .tool_right_box {
  23418. margin-top: 10px;
  23419. }
  23420. .right_box_xuan {
  23421. border-radius: 5px;
  23422. padding: 5px;
  23423. margin-left: 10px;
  23424. min-width: 85px;
  23425. background: #fff;
  23426. color: #0061ff;
  23427. border: 1px solid #0061ff;
  23428. font-size: 14px;
  23429. }
  23430. .pButton:hover {
  23431. opacity: 1 !important;
  23432. }
  23433. .pButton {
  23434. position: fixed;
  23435. text-align: center;
  23436. cursor: pointer;
  23437. z-index: 999;
  23438. right: 20px;
  23439. top: 110px;
  23440. width: 50px;
  23441. height: 50px;
  23442. display: flex;
  23443. align-items: center;
  23444. justify-content: center;
  23445. border-radius: 5px;
  23446. }
  23447. .pzClass {
  23448. width: calc(100% - 340px);
  23449. }
  23450. .newDialogCss {
  23451. /* position: fixed;
  23452. right: 5%;
  23453. top: 50%;
  23454. width: 340px;
  23455. transform: translateY(-50%);
  23456. height: 60%;
  23457. box-shadow: 0px 0 8px 0px #555555;
  23458. border-radius: 15px;
  23459. z-index: 999; */
  23460. position: fixed;
  23461. right: 20px;
  23462. top: 101px;
  23463. width: 330px;
  23464. height: calc(100% - 80px);
  23465. z-index: 999;
  23466. background: #fff;
  23467. border-top-right-radius: 0px;
  23468. border-bottom-right-radius: 0px;
  23469. overflow: hidden;
  23470. }
  23471. .newDialogCss>.scoreList{
  23472. width:100%;
  23473. height:100%;
  23474. box-sizing:border-box;
  23475. padding:10px 15px;
  23476. overflow:auto;
  23477. padding-bottom:80px;
  23478. }
  23479. .pzTop {
  23480. color: #fff;
  23481. background: #000;
  23482. display: flex;
  23483. flex-direction: row;
  23484. flex-wrap: nowrap;
  23485. align-items: center;
  23486. justify-content: space-between;
  23487. height: 40px;
  23488. border-radius: 15px 15px 0 0;
  23489. user-select: none;
  23490. }
  23491. .pzTop2 .checkbox {
  23492. display: flex;
  23493. align-items: center;
  23494. padding: 5px 10px;
  23495. flex: 0 0 auto;
  23496. font-weight: bold;
  23497. border-bottom: 1px solid #eee;
  23498. justify-content: space-between;
  23499. }
  23500. .checkbox>.cb-tabList{
  23501. display:flex;
  23502. align-items:center;
  23503. }
  23504. .cb-tabList>div{
  23505. margin-right:20px;
  23506. font-weight:400;
  23507. cursor:pointer;
  23508. }
  23509. .cb-tabList>.cb-tabItem{
  23510. color:#1684FC;
  23511. position:relative;
  23512. }
  23513. .cb-tabItem::after{
  23514. content:"";
  23515. width:100%;
  23516. height:2px;
  23517. background:#1684FC;
  23518. position:absolute;
  23519. bottom:-5px;
  23520. left:0
  23521. }
  23522. .pzTop2 .check {
  23523. text-align: center;
  23524. cursor: pointer;
  23525. box-sizing: border-box;
  23526. display: flex;
  23527. }
  23528. .pzTop2 img {
  23529. width: 25px;
  23530. cursor: pointer;
  23531. }
  23532. .pzTop > div:nth-child(1) {
  23533. padding-left: 10px;
  23534. }
  23535. .pzTop > div:nth-child(2) {
  23536. width: 15px;
  23537. height: 15px;
  23538. padding-right: 10px;
  23539. cursor: pointer;
  23540. }
  23541. .pzTop > div:nth-child(2) > img {
  23542. width: 100%;
  23543. height: 100%;
  23544. }
  23545. .pzBox,
  23546. .noPzBox {
  23547. height: calc(100% - 60px);
  23548. /* background: #ededed; */
  23549. background: #fff;
  23550. /* border-radius: 0 0 15px 15px; */
  23551. }
  23552. .noPzBox {
  23553. display: flex;
  23554. flex-direction: column;
  23555. flex-wrap: nowrap;
  23556. justify-content: center;
  23557. align-items: center;
  23558. }
  23559. .pzList {
  23560. background: #f7f7f7;
  23561. width: 90%;
  23562. margin: 0 auto 15px;
  23563. border-radius: 5px;
  23564. }
  23565. .pzNavTop {
  23566. display: flex;
  23567. flex-direction: row;
  23568. flex-wrap: nowrap;
  23569. padding: 10px 10px 0 10px;
  23570. align-items: center;
  23571. }
  23572. .pzDelete {
  23573. cursor: pointer;
  23574. margin-left: auto;
  23575. font-size: 14px;
  23576. color: #afafaf;
  23577. }
  23578. .pzNavTop > div:nth-child(1) {
  23579. background: #3760af;
  23580. width: 35px;
  23581. height: 35px;
  23582. color: #fff;
  23583. text-align: center;
  23584. line-height: 35px;
  23585. border-radius: 50%;
  23586. font-size: 14px;
  23587. }
  23588. .pzNavTop > div:nth-child(2) {
  23589. font-size: 18px;
  23590. color: #959595;
  23591. margin-left: 5px;
  23592. }
  23593. .pzContent {
  23594. padding: 10px;
  23595. word-break: break-word;
  23596. }
  23597. .pzContent audio {
  23598. width: 100%;
  23599. }
  23600. .pzContent audio::-webkit-media-controls-panel {
  23601. background: #fff;
  23602. }
  23603. .pzContent >>> img {
  23604. max-width: 100%;
  23605. }
  23606. .pzListBox {
  23607. padding-top: 15px;
  23608. height: calc(100% - 110px);
  23609. overflow: auto;
  23610. }
  23611. .addPzButton {
  23612. position: relative;
  23613. margin-top: 3px;
  23614. width: 100%;
  23615. }
  23616. .addPzButton .img1 {
  23617. position: absolute;
  23618. top: 50%;
  23619. right: 25px;
  23620. transform: translateY(-50%);
  23621. height: 100%;
  23622. display: flex;
  23623. align-items: center;
  23624. }
  23625. .addPzButton .img1 div {
  23626. display: flex;
  23627. }
  23628. .addPzButton .img1 div img {
  23629. width: 28px;
  23630. margin-left: 10px;
  23631. cursor: pointer;
  23632. }
  23633. .addPzButton .img1 div span {
  23634. font-size: 14px;
  23635. margin: 4px 0 0 3px;
  23636. color: #afafaf;
  23637. }
  23638. .addPz {
  23639. background: #4b79ce;
  23640. width: 100px;
  23641. color: #fff;
  23642. font-size: 12px;
  23643. height: 30px;
  23644. margin: 0 auto;
  23645. text-align: center;
  23646. line-height: 30px;
  23647. border-radius: 10px;
  23648. cursor: pointer;
  23649. }
  23650. .addDialogCss {
  23651. position: fixed;
  23652. width: 600px;
  23653. height: 70%;
  23654. min-height: 450px;
  23655. box-shadow: 0px 0 8px 0px #555555;
  23656. border-radius: 15px;
  23657. z-index: 999;
  23658. left: 50%;
  23659. top: 50%;
  23660. margin: -18% 0 0 -300px;
  23661. }
  23662. .teacherPz {
  23663. display: flex;
  23664. flex-direction: row;
  23665. align-items: center;
  23666. flex-wrap: nowrap;
  23667. }
  23668. .teacherPzImg {
  23669. width: 30px;
  23670. height: 30px;
  23671. }
  23672. .teacherPzImg > img {
  23673. width: 100%;
  23674. height: 100%;
  23675. }
  23676. .addPzBox {
  23677. height: calc(100% - 40px);
  23678. background: #ededed;
  23679. border-bottom-left-radius: 15px;
  23680. border-bottom-right-radius: 15px;
  23681. }
  23682. .pzAudioClass {
  23683. margin: 15px 14px;
  23684. background: #fff;
  23685. height: 100%;
  23686. display: flex;
  23687. justify-content: center;
  23688. align-items: center;
  23689. }
  23690. .pzConText {
  23691. width: 95%;
  23692. height: 100%;
  23693. margin: 10px auto 0;
  23694. border: none;
  23695. background: #fff;
  23696. border-radius: 0px;
  23697. }
  23698. .pzConText >>> .text {
  23699. height: calc(100% - 82px);
  23700. }
  23701. .addTextCss {
  23702. background: #4b79ce;
  23703. width: 80px;
  23704. height: 30px;
  23705. text-align: center;
  23706. color: #fff;
  23707. line-height: 30px;
  23708. border-radius: 10px;
  23709. margin: 10px auto 0;
  23710. cursor: pointer;
  23711. }
  23712. .pzConText:focus-visible {
  23713. border: none !important;
  23714. }
  23715. .maxWidth {
  23716. width: 1000px;
  23717. }
  23718. .noPz {
  23719. width: 150px;
  23720. margin: 0 auto 20%;
  23721. }
  23722. .noPz > img {
  23723. width: 100%;
  23724. height: 100%;
  23725. }
  23726. .timeAndReply {
  23727. display: flex;
  23728. flex-direction: row;
  23729. flex-wrap: nowrap;
  23730. justify-content: space-between;
  23731. align-items: center;
  23732. font-size: 14px;
  23733. box-sizing: border-box;
  23734. padding: 0 10px 10px 0px;
  23735. }
  23736. .timeAndReply .time {
  23737. color: #bfbfbf;
  23738. padding: 0 0 0 10px;
  23739. box-sizing: border-box;
  23740. }
  23741. .timeAndReply > div:last-child {
  23742. cursor: pointer;
  23743. color: #777;
  23744. }
  23745. /* table 样式 */
  23746. .cont >>> table {
  23747. border-top: 1px solid #ccc;
  23748. border-left: 1px solid #ccc;
  23749. }
  23750. .cont >>> table td,
  23751. .cont >>> table th {
  23752. border-bottom: 1px solid #ccc;
  23753. border-right: 1px solid #ccc;
  23754. /* padding: 20px 5px; */
  23755. padding: 5px 10px;
  23756. max-width: 0px;
  23757. height: 30px;
  23758. vertical-align: baseline;
  23759. box-sizing: border-box;
  23760. }
  23761. .cont >>> table th {
  23762. border-bottom: 2px solid #ccc;
  23763. text-align: center;
  23764. }
  23765. /* blockquote 样式 */
  23766. .cont >>> blockquote {
  23767. display: block;
  23768. border-left: 8px solid #d0e5f2;
  23769. padding: 5px 10px;
  23770. margin: 10px 0;
  23771. line-height: 1.4;
  23772. font-size: 100%;
  23773. background-color: #f1f1f1;
  23774. }
  23775. /* code 样式 */
  23776. .cont >>> code {
  23777. display: inline-block;
  23778. /* *display: inline; */
  23779. zoom: 1;
  23780. background-color: #f1f1f1;
  23781. border-radius: 3px;
  23782. padding: 3px 5px;
  23783. margin: 0 3px;
  23784. }
  23785. .cont >>> pre code {
  23786. display: block;
  23787. }
  23788. /* ul ol 样式 */
  23789. .cont >>> ul,
  23790. ol {
  23791. margin: 10px 0 10px 20px;
  23792. }
  23793. .addPzCheck {
  23794. display: flex;
  23795. flex-direction: row;
  23796. flex-wrap: nowrap;
  23797. padding: 10px 15px 0;
  23798. }
  23799. .addPzCheck span {
  23800. cursor: pointer;
  23801. padding-bottom: 5px;
  23802. font-weight: bold;
  23803. }
  23804. .addPzCheck span + span {
  23805. margin-left: 10px;
  23806. }
  23807. .addPzCheck .isChooseActive {
  23808. color: #3e88f4;
  23809. border-bottom: 2px solid #2f80f3;
  23810. }
  23811. /* code 样式 */
  23812. .cont {
  23813. /* -webkit-user-modify: read-write; */
  23814. overflow-wrap: break-word;
  23815. -webkit-line-break: after-white-space;
  23816. word-break: break-word;
  23817. white-space: pre-line;
  23818. }
  23819. .scoreBox,
  23820. .scoreDetailBox {
  23821. display: flex;
  23822. align-items: center;
  23823. justify-content: flex-start;
  23824. margin-top: 20px;
  23825. font-size: 18px;
  23826. width: 100%;
  23827. }
  23828. .scoreBox .t,
  23829. .scoreDetailBox .t {
  23830. margin-right: 10px;
  23831. width: 100px;
  23832. text-align: right;
  23833. }
  23834. .scoreDetailBox {
  23835. align-items: flex-start;
  23836. }
  23837. .scoreDetailBox >>> .el-textarea {
  23838. width: calc(100% - 200px);
  23839. }
  23840. .scoreBox >>> .el-input {
  23841. width: 130px;
  23842. font-size: 38px;
  23843. }
  23844. .scoreBox >>> .el-input__inner {
  23845. height: 60px;
  23846. }
  23847. .answerScore {
  23848. position: absolute;
  23849. top: 10px;
  23850. right: 10px;
  23851. background: #0000008f;
  23852. border-radius: 5px;
  23853. padding: 3px 5px;
  23854. font-size: 14px;
  23855. color: #fff;
  23856. cursor: pointer;
  23857. }
  23858. .open_box .switch_box {
  23859. width: 100%;
  23860. margin: 0 auto;
  23861. display: flex;
  23862. justify-content: space-between;
  23863. }
  23864. .open_box .switch_box + .switch_box {
  23865. margin-top: 10px;
  23866. }
  23867. .deleteImg,.deleteImg1 {
  23868. width: 25px !important;
  23869. height: 25px !important;
  23870. cursor: pointer;
  23871. position: absolute;
  23872. top: 10px;
  23873. right: 10px;
  23874. }
  23875. .deleteImg2 {
  23876. width: 23px !important;
  23877. height: 23px !important;
  23878. top: 5px;
  23879. right: 5px;
  23880. }
  23881. .deleteImg1{
  23882. width: 23px !important;
  23883. height: 23px !important;
  23884. top: 5px !important;
  23885. right: 30px !important;
  23886. }
  23887. .rightW {
  23888. right: 40px;
  23889. }
  23890. .drawPBox {
  23891. display: flex;
  23892. flex-direction: column;
  23893. position: relative;
  23894. }
  23895. .drawPBox span {
  23896. font-size: 18px;
  23897. color: #606266;
  23898. padding-bottom: 10px;
  23899. margin: 10px 0;
  23900. border-bottom: 1px solid #eaeaea;
  23901. }
  23902. .drawPBox img {
  23903. width: 500px;
  23904. height: 300px;
  23905. object-fit: contain;
  23906. cursor: pointer;
  23907. margin: 0 auto;
  23908. }
  23909. .sentenBox {
  23910. background: #fff;
  23911. height: 450px;
  23912. overflow: auto;
  23913. background-image: url("../assets/icon/conSentences/stuBg.png");
  23914. background-position: 102%;
  23915. background-repeat: no-repeat;
  23916. background-size: 60%;
  23917. }
  23918. .addSen {
  23919. background: #409efe;
  23920. width: 90px;
  23921. color: #fff;
  23922. height: 35px;
  23923. text-align: center;
  23924. line-height: 35px;
  23925. border-radius: 5px;
  23926. float: right;
  23927. margin: 10px 20px 0 0;
  23928. cursor: pointer;
  23929. }
  23930. .sentenTop {
  23931. display: flex;
  23932. flex-direction: row;
  23933. flex-wrap: nowrap;
  23934. align-items: center;
  23935. padding: 55px 0 0 20px;
  23936. box-sizing: border-box;
  23937. }
  23938. .sentenTop > div:nth-child(2) {
  23939. width: 300px;
  23940. margin: 0 15px;
  23941. }
  23942. .sentenTop > div:nth-child(3) {
  23943. background: #409efe;
  23944. color: #fff;
  23945. width: 65px;
  23946. height: 35px;
  23947. text-align: center;
  23948. line-height: 35px;
  23949. border-radius: 5px;
  23950. cursor: pointer;
  23951. }
  23952. .cardList,
  23953. .cardList1 {
  23954. padding: 10px 0 10px 0;
  23955. display: flex;
  23956. flex-direction: row;
  23957. flex-wrap: wrap;
  23958. align-items: center;
  23959. box-sizing: border-box;
  23960. border-bottom: 1px solid #f4f4f4;
  23961. width: 98%;
  23962. margin: 0 auto;
  23963. min-width: 60%;
  23964. max-width: 85%;
  23965. }
  23966. .cardList1 {
  23967. padding: 10px 0 10px 10px !important;
  23968. margin: 0 !important;
  23969. }
  23970. .cardBox {
  23971. display: flex;
  23972. flex-direction: row;
  23973. flex-wrap: wrap;
  23974. align-items: center;
  23975. align-content: center;
  23976. }
  23977. .cardBox > div {
  23978. margin-bottom: 10px;
  23979. }
  23980. .isCard,
  23981. .isChooseCard,
  23982. .noCard,
  23983. .isCard1 {
  23984. min-width: 130px;
  23985. width: auto;
  23986. height: 60px;
  23987. text-align: center;
  23988. line-height: 60px;
  23989. font-size: 20px;
  23990. cursor: pointer;
  23991. background-image: url("../assets/icon/conSentences/titleBorder.png");
  23992. background-size: cover;
  23993. transition: all 2s;
  23994. margin-right: 20px;
  23995. background-size: 100% 100%;
  23996. padding: 0 20px;
  23997. box-sizing: border-box;
  23998. }
  23999. .isCard > div,
  24000. .noCard > div,
  24001. .isCard1 > div {
  24002. white-space: nowrap;
  24003. overflow: hidden;
  24004. text-overflow: ellipsis;
  24005. width: 100%;
  24006. margin: 0 auto;
  24007. }
  24008. .noCard {
  24009. background-image: none;
  24010. }
  24011. .isCard1 {
  24012. background-image: url("../assets/icon/conSentences/answerBorder.png");
  24013. }
  24014. .isChooseCard {
  24015. background-image: none;
  24016. border: 1px dashed #b9b9b9;
  24017. border-radius: 10px;
  24018. }
  24019. .card {
  24020. width: 130px;
  24021. height: 60px;
  24022. }
  24023. .card > img {
  24024. width: 100%;
  24025. height: 100%;
  24026. }
  24027. .rightCardBox {
  24028. margin: 10px 0 0 10px;
  24029. }
  24030. .rightCardBox > div:nth-child(1) {
  24031. margin-bottom: 10px;
  24032. }
  24033. .cardCss {
  24034. display: flex;
  24035. flex-direction: column;
  24036. flex-wrap: nowrap;
  24037. align-items: center;
  24038. border-bottom: 3px solid #b4c3d3;
  24039. padding: 0 0 5px 0;
  24040. margin-right: 10px;
  24041. }
  24042. .cardCss > div:nth-child(2) {
  24043. background: #5b7b9d;
  24044. color: #fff;
  24045. width: 20px;
  24046. height: 20px;
  24047. border-radius: 50%;
  24048. text-align: center;
  24049. line-height: 20px;
  24050. }
  24051. .isWrong {
  24052. display: flex;
  24053. flex-direction: row;
  24054. flex-wrap: nowrap;
  24055. align-content: center;
  24056. align-items: center;
  24057. }
  24058. .answerRight {
  24059. width: 25%;
  24060. }
  24061. .isTj {
  24062. display: flex;
  24063. flex-direction: row;
  24064. flex-wrap: nowrap;
  24065. align-items: center;
  24066. }
  24067. .isTj > div:nth-child(2) {
  24068. color: #727070;
  24069. margin-left: 10px;
  24070. }
  24071. .isTjImg {
  24072. width: 30px;
  24073. height: 30px;
  24074. }
  24075. .isTjImg > img {
  24076. width: 100%;
  24077. height: 100%;
  24078. }
  24079. .cardAnswerBox {
  24080. font-size: 18px;
  24081. width: 97%;
  24082. border: 5px;
  24083. padding: 0;
  24084. border-radius: 5px;
  24085. margin: 10px auto;
  24086. word-break: break-word;
  24087. }
  24088. .w_name {
  24089. margin-bottom: 10px;
  24090. }
  24091. .w_name span {
  24092. font-size: 16px;
  24093. }
  24094. .w_teachert {
  24095. width: 50px !important;
  24096. position: absolute;
  24097. height: auto !important;
  24098. z-index: 10;
  24099. right: 25px;
  24100. top: -25px;
  24101. }
  24102. /* .group_workBox {
  24103. } */
  24104. .group_workBox + .group_workBox {
  24105. margin-top: 20px;
  24106. }
  24107. .group_box {
  24108. padding-bottom: 20px;
  24109. border-bottom: 2px solid #f0f0f0;
  24110. margin-top: 10px;
  24111. }
  24112. .group_title {
  24113. display: flex;
  24114. align-items: center;
  24115. justify-content: space-between;
  24116. width: 95%;
  24117. }
  24118. .group_name {
  24119. background-image: url(../assets/icon/groupN.png);
  24120. width: 220px;
  24121. background-size: 100% 100%;
  24122. height: 67px;
  24123. padding: 0 20px 0 43px;
  24124. box-sizing: border-box;
  24125. line-height: 63px;
  24126. color: #fff;
  24127. overflow: hidden;
  24128. white-space: nowrap;
  24129. text-overflow: ellipsis;
  24130. }
  24131. .group_work {
  24132. width: 100%;
  24133. padding: 0 10px;
  24134. box-sizing: border-box;
  24135. display: flex;
  24136. flex-wrap: wrap;
  24137. }
  24138. .g_d_box {
  24139. display: flex;
  24140. flex-flow: wrap;
  24141. justify-content: space-around;
  24142. }
  24143. .g_d_box .isChair {
  24144. background-image: url(../assets/avatar.png) !important;
  24145. }
  24146. .g_d_group {
  24147. width: 500px;
  24148. margin-bottom: 80px;
  24149. }
  24150. .g_d_group_chair {
  24151. display: flex;
  24152. align-items: center;
  24153. justify-content: center;
  24154. }
  24155. .g_d_group_chair > div + div {
  24156. margin-left: 30px;
  24157. }
  24158. .g_d_group_chair > div,
  24159. .g_d_group_chair2 > div {
  24160. display: flex;
  24161. flex-direction: column;
  24162. align-items: center;
  24163. }
  24164. .g_d_group_chair > div > span:nth-child(1),
  24165. .g_d_group_chair2 > div > span:nth-child(1) {
  24166. background-image: url(../assets/icon/chair.png);
  24167. width: 50px;
  24168. height: 50px;
  24169. display: block;
  24170. background-size: 100% 100%;
  24171. }
  24172. .g_d_group_tableBox {
  24173. display: flex;
  24174. align-items: center;
  24175. justify-content: center;
  24176. }
  24177. .g_d_group_chair2 {
  24178. display: flex;
  24179. flex-direction: column;
  24180. align-items: center;
  24181. justify-content: center;
  24182. }
  24183. .g_d_group_chair2 > div + div {
  24184. margin-top: 10px;
  24185. }
  24186. .g_d_group_table {
  24187. background-image: url(../assets/icon/groupBg.png);
  24188. width: 354px;
  24189. height: 196px;
  24190. background-size: 100% 100%;
  24191. display: flex;
  24192. align-items: center;
  24193. justify-content: center;
  24194. flex-direction: column;
  24195. color: #fff;
  24196. }
  24197. .g_d_group_table > div:nth-child(1) {
  24198. font-size: 24px;
  24199. margin-bottom: 5px;
  24200. }
  24201. .g_d_group_table > div:nth-child(2) div {
  24202. cursor: pointer;
  24203. background: #2e77bf;
  24204. padding: 4px 10px;
  24205. border-radius: 5px;
  24206. }
  24207. /* .groupBox {
  24208. } */
  24209. .groupContent + .groupContent {
  24210. margin-top: 30px;
  24211. }
  24212. .groupTitle {
  24213. font-size: 24px;
  24214. color: rgb(80, 80, 80);
  24215. margin-bottom: 20px;
  24216. }
  24217. .groupName {
  24218. display: flex;
  24219. align-items: center;
  24220. }
  24221. .groupn {
  24222. font-size: 15px;
  24223. margin-right: 10px;
  24224. }
  24225. .groupName + .groupName {
  24226. margin-top: 15px;
  24227. }
  24228. .groupBtn {
  24229. margin-left: 10px;
  24230. }
  24231. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24232. text-align: left;
  24233. }
  24234. .g_d_btnBox {
  24235. display: flex;
  24236. justify-content: flex-end;
  24237. align-items: center;
  24238. margin-bottom: 20px;
  24239. }
  24240. .updateChair {
  24241. position: relative;
  24242. }
  24243. .updateChairBtn {
  24244. position: absolute;
  24245. width: 50px;
  24246. height: 50px;
  24247. overflow: hidden;
  24248. /* display: flex; */
  24249. align-items: center;
  24250. justify-content: center;
  24251. background: #00000087;
  24252. color: #fff;
  24253. border-radius: 50px;
  24254. display: none;
  24255. cursor: pointer;
  24256. }
  24257. .updateChair:hover .updateChairBtn {
  24258. display: flex;
  24259. }
  24260. .group_staic_box {
  24261. display: flex;
  24262. padding: 30px 40px 10px;
  24263. flex-wrap: wrap;
  24264. }
  24265. .group_staic {
  24266. /* width: 50%; */
  24267. margin-bottom: 20px;
  24268. display: flex;
  24269. align-items: center;
  24270. }
  24271. .group_staic span:nth-child(1) {
  24272. width: 150px;
  24273. text-align: right;
  24274. margin-right: 15px;
  24275. }
  24276. .group_staic span:nth-child(2) {
  24277. background: rgb(0 123 255);
  24278. color: #fff;
  24279. border-radius: 5px;
  24280. padding: 5px;
  24281. }
  24282. .codeFileBox {
  24283. height: 300px;
  24284. background: #fff;
  24285. display: flex;
  24286. align-items: center;
  24287. justify-content: center;
  24288. }
  24289. .codeFileBox img {
  24290. width: 200px;
  24291. margin: 0;
  24292. height: auto;
  24293. }
  24294. .codeFileBox div {
  24295. background: rgb(80, 142, 226);
  24296. color: #fff;
  24297. padding: 10px 20px;
  24298. border-radius: 25px;
  24299. cursor: pointer;
  24300. margin-left: 15px;
  24301. }
  24302. .radioBox {
  24303. display: flex;
  24304. flex-direction: column;
  24305. flex-wrap: nowrap;
  24306. align-items: flex-start;
  24307. }
  24308. .radioBox > div {
  24309. margin: 10px 0 0 10px;
  24310. }
  24311. /* .radioBox >>> .el-radio__input,
  24312. .radioBox >>> .el-checkbox__inner {
  24313. margin-left: 10px;
  24314. } */
  24315. .radioBox >>> .el-radio__label,
  24316. .radioBox >>> .el-checkbox__label {
  24317. display: flex;
  24318. align-items: center;
  24319. width: 100%;
  24320. }
  24321. .radioBox >>> .el-radio__label > span {
  24322. width: 100%;
  24323. display: -webkit-box;
  24324. overflow: hidden;
  24325. white-space: normal !important;
  24326. text-overflow: ellipsis;
  24327. word-wrap: break-word;
  24328. }
  24329. .inImg {
  24330. width: 100px;
  24331. cursor: pointer;
  24332. }
  24333. .inImg > img {
  24334. width: 100%;
  24335. height: 100%;
  24336. object-fit: cover;
  24337. }
  24338. .timuImgBox {
  24339. margin: 10px 0;
  24340. display: flex;
  24341. flex-direction: column;
  24342. flex-wrap: wrap;
  24343. align-items: flex-start;
  24344. }
  24345. .timuImg {
  24346. width: 150px;
  24347. margin: 5px 0;
  24348. cursor: pointer;
  24349. }
  24350. .timuImg > img {
  24351. width: 100%;
  24352. height: 100%;
  24353. object-fit: cover;
  24354. }
  24355. .worksTop {
  24356. display: flex;
  24357. flex-direction: row;
  24358. align-items: flex-end;
  24359. }
  24360. .worksTitle{
  24361. display: flex;
  24362. flex-direction: row;
  24363. flex-wrap: nowrap;
  24364. align-items: center;
  24365. }
  24366. .worksTitle::before,.worksTop::before{
  24367. content: '';
  24368. display: block;
  24369. width: 3px;
  24370. height: 20px;
  24371. background: #0061FF;
  24372. border-radius: 3px;
  24373. margin: 0 5px 0 0;
  24374. }
  24375. .corOpen {
  24376. margin: 0 0 0 10px;
  24377. font-size: 14px;
  24378. cursor: pointer;
  24379. color: #505050;
  24380. }
  24381. .corOpen:hover {
  24382. color: #499eef;
  24383. }
  24384. .navCorOpenBox {
  24385. display: flex;
  24386. flex-direction: row;
  24387. align-items: center;
  24388. justify-content: space-between;
  24389. height: 55px;
  24390. background: #ffffff;
  24391. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24392. border-radius: 8px 8px 0px 0px;
  24393. z-index: 9;
  24394. position: relative;
  24395. }
  24396. .navCorOpen {
  24397. padding-right: 15px;
  24398. cursor: pointer;
  24399. width: 45px;
  24400. display: flex;
  24401. }
  24402. .navCorOpen > img {
  24403. width: 100%;
  24404. height: 100%;
  24405. }
  24406. .mlImg {
  24407. width: 40px !important;
  24408. min-width: 40px;
  24409. cursor: pointer;
  24410. transform: rotate(180deg);
  24411. }
  24412. .mlImg > img {
  24413. width: 100%;
  24414. height: 100%;
  24415. }
  24416. .navLeftCss {
  24417. width: 100% !important;
  24418. left: 0 !important;
  24419. }
  24420. .isContentCss {
  24421. width: 100% !important;
  24422. }
  24423. .isAllWidth {
  24424. width: 100% !important;
  24425. }
  24426. .group_switch {
  24427. margin-right: 10px;
  24428. height: 30px;
  24429. display: flex;
  24430. align-items: center;
  24431. }
  24432. .group_switch > span {
  24433. margin-right: 5px;
  24434. }
  24435. .fileC_box {
  24436. padding-top: 15px;
  24437. }
  24438. .fileC_box > .fileC_title {
  24439. padding: 10px 5px 14px 10px;
  24440. border-top: 1px solid #cad1dc;
  24441. font-size: 14px;
  24442. font-weight: 400;
  24443. color: #cad1dc;
  24444. width: calc(100% - 20px);
  24445. margin: 0 auto;
  24446. box-sizing: border-box;
  24447. }
  24448. .pl_select_box {
  24449. height: 40px;
  24450. line-height: 40px;
  24451. width: 100%;
  24452. cursor: pointer;
  24453. padding: 0 20px;
  24454. box-sizing: border-box;
  24455. border-radius: 5px;
  24456. border: 1px solid #d6d6d6;
  24457. white-space: nowrap;
  24458. overflow: hidden;
  24459. text-overflow: ellipsis;
  24460. background: #fff;
  24461. text-align: left;
  24462. }
  24463. .newButton {
  24464. width: 102px;
  24465. height: 36px;
  24466. background: #e7ebf1;
  24467. border-radius: 4px;
  24468. color: #0e1e33;
  24469. font-weight: 400;
  24470. font-size: 14px;
  24471. border: none;
  24472. float: right;
  24473. margin-left: 10px;
  24474. }
  24475. .el-table >>> .even_row {
  24476. background-color: #f0f4fa;
  24477. }
  24478. .stageBoxCss,
  24479. .stageBoxIsCss {
  24480. display: flex;
  24481. flex-direction: row;
  24482. flex-wrap: nowrap;
  24483. align-items: center;
  24484. height: 50px;
  24485. border-bottom: 1px solid #e2f5fc;
  24486. cursor: pointer;
  24487. width: 100%;
  24488. }
  24489. .stageBoxIsCss {
  24490. background: #0061ff;
  24491. color: #fff;
  24492. border-radius: 8px;
  24493. }
  24494. .stageItemTitle {
  24495. display: flex;
  24496. flex-direction: row;
  24497. flex-wrap: nowrap;
  24498. align-items: center;
  24499. margin-left: 15px;
  24500. width: calc(100% - 50px);
  24501. }
  24502. /* .stageNav{ */
  24503. /* font-weight: bold; */
  24504. /* } */
  24505. .stageItemTitle > div:first-child {
  24506. min-width: 55px;
  24507. }
  24508. .stageItemTitle > div:last-child {
  24509. max-width: 242px;
  24510. white-space: nowrap;
  24511. overflow: hidden;
  24512. text-overflow: ellipsis;
  24513. word-break: break-word;
  24514. width: calc(100% - 55px);
  24515. }
  24516. .closeTri,
  24517. .closeTri1 {
  24518. min-width: 15px;
  24519. width: 15px;
  24520. height: 15px;
  24521. transition: all .5s;
  24522. }
  24523. .closeTri1 {
  24524. padding-left: 10px;
  24525. cursor: pointer;
  24526. }
  24527. .closeTri > img,
  24528. .closeTri1 > img {
  24529. width: 100%;
  24530. height: 100%;
  24531. /* transition: all .5s; */
  24532. }
  24533. .noToolBlue {
  24534. min-width: 10px;
  24535. width: 10px;
  24536. height: 10px;
  24537. background: #0061ff;
  24538. border-radius: 50%;
  24539. margin-left: 13px;
  24540. }
  24541. .stageChild,
  24542. .toolChild {
  24543. height: 0;
  24544. overflow: hidden;
  24545. transition: all 0.5s;
  24546. }
  24547. /* .toolChild { */
  24548. /* margin: 0 0 0 17px;
  24549. padding: 0 0 0 20px;
  24550. border-left: 1px solid #d7d7d7; */
  24551. /* } */
  24552. .toolChild > div + div{
  24553. margin-top:5px;
  24554. }
  24555. .gjCss {
  24556. display: flex;
  24557. flex-direction: row;
  24558. flex-wrap: nowrap;
  24559. align-items: center;
  24560. padding: 10px 0 10px 40px;
  24561. box-sizing: border-box;
  24562. font-size: 14px;
  24563. cursor: pointer;
  24564. border-radius:5px;
  24565. }
  24566. .gjCss > div:nth-child(1){
  24567. flex-shrink: 0;
  24568. }
  24569. .toolChild > div {
  24570. position: relative;
  24571. width:100%;
  24572. }
  24573. /* .toolChild > div::before { */
  24574. /* content: "";
  24575. width: 15px;
  24576. height: 1px;
  24577. background: #cad1dc;
  24578. position: absolute;
  24579. top: 24px;
  24580. left: -20px;
  24581. display: block; */
  24582. /* } */
  24583. .isGjCss {
  24584. /* color: #0061ff; */
  24585. color:#fff;
  24586. background: rgb(55, 129, 252);
  24587. /* background-color: #e0eafb !important;
  24588. color: #0061ff !important; */
  24589. }
  24590. .navItem {
  24591. background: #ffffff;
  24592. border-radius: 4px;
  24593. width: 100%;
  24594. margin: 10px auto;
  24595. position: relative;
  24596. height: 40px;
  24597. display: flex;
  24598. flex-direction: row;
  24599. flex-wrap: nowrap;
  24600. align-items: center;
  24601. }
  24602. .navItemList {
  24603. display: flex;
  24604. flex-direction: row;
  24605. flex-wrap: nowrap;
  24606. align-items: center;
  24607. padding: 0 13px;
  24608. cursor: pointer;
  24609. width: calc(100% - 60px);
  24610. height: 100%;
  24611. }
  24612. .navItemList > div:first-child {
  24613. /* min-width: 60px; */
  24614. min-width:fit-content;
  24615. }
  24616. .navItemList > div:last-child {
  24617. width: calc(100% - 80px);
  24618. white-space: nowrap;
  24619. overflow: hidden;
  24620. text-overflow: ellipsis;
  24621. word-break: break-word;
  24622. }
  24623. /* .isItemList > div {
  24624. color: #fff !important;
  24625. } */
  24626. .tool_work_box {
  24627. width: 100%;
  24628. padding: 0 37px 0;
  24629. box-sizing: border-box;
  24630. }
  24631. .tool_box {
  24632. width: 100%;
  24633. padding: 0 0 0 20px;
  24634. }
  24635. .tool_type_box {
  24636. display: flex;
  24637. flex-direction: row;
  24638. align-items: baseline;
  24639. flex-wrap: nowrap;
  24640. justify-content: flex-start;
  24641. position: relative;
  24642. }
  24643. .toolSort {
  24644. display: flex;
  24645. flex-direction: row;
  24646. flex-wrap: wrap;
  24647. justify-content: flex-start;
  24648. align-items: flex-start;
  24649. padding: 0 0 15px 0;
  24650. }
  24651. .toolSort > div {
  24652. margin: 0 10px 0 0;
  24653. width: 135px;
  24654. box-sizing: border-box;
  24655. border: 2px solid transparent;
  24656. }
  24657. .tools {
  24658. width: 100%;
  24659. display: flex;
  24660. flex-direction: column;
  24661. flex-wrap: nowrap;
  24662. align-items: flex-start;
  24663. }
  24664. .whiteBIcon {
  24665. width: fit-content;
  24666. cursor: pointer;
  24667. display: flex;
  24668. flex-direction: column;
  24669. flex-wrap: nowrap;
  24670. align-items: center;
  24671. font-size: 14px;
  24672. }
  24673. .tool:hover {
  24674. border: 2px solid #a5c7ff;
  24675. border-radius: 5px;
  24676. }
  24677. .whiteBIcon > img {
  24678. width: 65px;
  24679. height: 100%;
  24680. }
  24681. .whiteBIcon > img {
  24682. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  24683. border-radius: 15px;
  24684. }
  24685. .check {
  24686. /* width: 20px;
  24687. height: 20px; */
  24688. cursor: pointer;
  24689. margin: 10px 0;
  24690. position: absolute;
  24691. right: 2px;
  24692. top: -5px;
  24693. }
  24694. .noChoose,
  24695. .isChoose {
  24696. width: 15px;
  24697. height: 15px;
  24698. border-radius: 50%;
  24699. border: 1px solid #adadad;
  24700. }
  24701. .isChoose {
  24702. border: 4px solid #0363ff !important;
  24703. width: 10px;
  24704. height: 10px;
  24705. }
  24706. .isToolChoose {
  24707. border: 2px solid #5394ff !important;
  24708. border-radius: 5px;
  24709. box-shadow: 0 0 6px 0px #5394ff;
  24710. }
  24711. .checkDiv {
  24712. display: flex;
  24713. align-items: center;
  24714. }
  24715. .checkDiv span {
  24716. margin-left: 5px;
  24717. color: #858585;
  24718. }
  24719. .check img {
  24720. width: 20px;
  24721. height: 20px;
  24722. }
  24723. .lockTaskIcon {
  24724. width: 20px;
  24725. height: 20px;
  24726. position: absolute;
  24727. right: 10px;
  24728. top: 5px;
  24729. }
  24730. .lockTaskIcon > img {
  24731. width: 100%;
  24732. height: 100%;
  24733. }
  24734. .pick_box {
  24735. display: flex;
  24736. align-items: flex-start;
  24737. flex-wrap: wrap;
  24738. }
  24739. .selectBox {
  24740. width: 110px;
  24741. margin-left: 10px;
  24742. margin: 0 10px 0 auto;
  24743. }
  24744. .selectBox >>> .el-input__inner {
  24745. height: 30px;
  24746. line-height: 30px;
  24747. }
  24748. .selectBox >>> .el-input__icon {
  24749. line-height: 30px;
  24750. }
  24751. .sentenceTitle {
  24752. display: flex;
  24753. flex-direction: row;
  24754. flex-wrap: nowrap;
  24755. align-items: center;
  24756. }
  24757. .sentenceTitle::before {
  24758. content: attr(index);
  24759. background: #3681fc;
  24760. border-radius: 50%;
  24761. color: #fff;
  24762. width: 25px;
  24763. height: 25px;
  24764. min-width: 25px;
  24765. min-height: 25px;
  24766. text-align: center;
  24767. line-height: 25px;
  24768. margin-right: 5px;
  24769. }
  24770. .hfBox {
  24771. padding: 10px;
  24772. box-sizing: border-box;
  24773. }
  24774. .whoReplyWho {
  24775. display: flex;
  24776. flex-direction: row;
  24777. flex-wrap: nowrap;
  24778. align-items: baseline;
  24779. justify-content: flex-start;
  24780. }
  24781. .hfBottom {
  24782. display: flex;
  24783. flex-direction: row;
  24784. flex-wrap: nowrap;
  24785. align-items: center;
  24786. justify-content: space-between;
  24787. font-size: 14px;
  24788. }
  24789. .deleteHfItem {
  24790. cursor: pointer;
  24791. width: 20px;
  24792. height: 20px;
  24793. }
  24794. .deleteHfItem > img {
  24795. width: 100%;
  24796. height: 100%;
  24797. }
  24798. .whoReplyWho > .hfImg {
  24799. width: 12px;
  24800. height: 12px;
  24801. margin: 0 5px;
  24802. }
  24803. .whoReplyWho > .hfImg > img {
  24804. width: 100%;
  24805. height: 100%;
  24806. }
  24807. .hfContent {
  24808. padding-top: 10px;
  24809. box-sizing: border-box;
  24810. display: -webkit-box;
  24811. overflow: hidden;
  24812. white-space: normal !important;
  24813. text-overflow: ellipsis;
  24814. word-wrap: break-word;
  24815. -webkit-box-orient: vertical;
  24816. }
  24817. .hfTime {
  24818. text-align: left;
  24819. box-sizing: border-box;
  24820. padding: 10px 0 10px 0px;
  24821. color: #bfbfbf;
  24822. font-size: 14px;
  24823. }
  24824. .btnAllNT {
  24825. position: fixed;
  24826. bottom: 100px;
  24827. right: 40px;
  24828. z-index: 999;
  24829. display: flex;
  24830. flex-direction: row;
  24831. }
  24832. .btnAllNT > img {
  24833. cursor: pointer;
  24834. width: 80px;
  24835. }
  24836. .toolMask {
  24837. position: fixed;
  24838. width: 100%;
  24839. height: 100%;
  24840. background: #3f3c3c;
  24841. opacity: 0.5;
  24842. top: 0;
  24843. left: 0;
  24844. z-index: 999;
  24845. }
  24846. .addToolCss {
  24847. position: fixed;
  24848. z-index: 999;
  24849. background: #fff;
  24850. right: 5%;
  24851. bottom: 18%;
  24852. min-width: 1035px;
  24853. min-height: 300px;
  24854. border-radius: 10px;
  24855. box-shadow: 0 0 8px 1px #b2b2b2;
  24856. }
  24857. .toolTop {
  24858. display: flex;
  24859. flex-direction: row;
  24860. flex-wrap: nowrap;
  24861. justify-content: space-between;
  24862. align-items: center;
  24863. padding: 20px;
  24864. }
  24865. .toolTop > div:nth-child(2) {
  24866. width: 15px;
  24867. height: 15px;
  24868. padding-right: 10px;
  24869. cursor: pointer;
  24870. }
  24871. .toolTop > div:nth-child(2) > img {
  24872. width: 100%;
  24873. height: 100%;
  24874. }
  24875. .fullStyle>>>.el-dialog__body {
  24876. height: calc(100% - 125px) !important;
  24877. box-sizing: border-box;
  24878. padding: 30px 0 !important;
  24879. background: #fff !important;
  24880. }
  24881. .fullStyle>>>.el-dialog {
  24882. width: 100% !important;
  24883. max-width: 100% !important;
  24884. height: 100% !important;
  24885. margin: 0 !important;
  24886. }
  24887. .fullStyle {
  24888. width: 100% !important;
  24889. max-width: 100% !important;
  24890. height: 100% !important;
  24891. margin: 0 auto !important;
  24892. }
  24893. .fullStyle>>>.el-dialog__footer{
  24894. background: #fff !important;
  24895. }
  24896. .engUpBox {
  24897. width: 100%;
  24898. height: 100%;
  24899. }
  24900. .engTitle,
  24901. .engText {
  24902. display: flex;
  24903. flex-direction: row;
  24904. flex-wrap: nowrap;
  24905. align-items: flex-start;
  24906. padding: 0 20px 20px 20px;
  24907. box-sizing: border-box;
  24908. }
  24909. .engTitle > .div:first-child,
  24910. .engText > div:first-child {
  24911. min-width: 75px;
  24912. }
  24913. .correctBox{
  24914. width: 100%;
  24915. display: flex;
  24916. flex-direction: row;
  24917. flex-wrap: nowrap;
  24918. align-items: flex-start;
  24919. }
  24920. .oldBox{
  24921. width: 50%;
  24922. height: 100%;
  24923. display: flex;
  24924. flex-direction: column;
  24925. flex-wrap: nowrap;
  24926. align-items: center;
  24927. border-top: 1px solid #d9d9d9;
  24928. border-left: 1px solid #d9d9d9;
  24929. border-right: 1px solid #d9d9d9;
  24930. }
  24931. .oldBox>div:first-child{
  24932. width: 100%;
  24933. text-align: center;
  24934. background: #d9d9d9;
  24935. height: 35px;
  24936. line-height: 35px;
  24937. font-weight: bold;
  24938. }
  24939. .oldText{
  24940. width: 100%;
  24941. height: calc(100% - 35px);
  24942. overflow: auto;
  24943. margin: 10px 0;
  24944. display: flex;
  24945. flex-direction: column;
  24946. flex-wrap: nowrap;
  24947. align-content: center;
  24948. align-items: center;
  24949. }
  24950. .detailBox{
  24951. width: 50%;
  24952. padding: 10px;
  24953. background: #f6f6f6;
  24954. border-radius: 5px;
  24955. }
  24956. .oldDetail,.oldDetail1{
  24957. padding-bottom: 30px;
  24958. }
  24959. .oldImg{
  24960. width:30px;
  24961. height: 30px;
  24962. }
  24963. .oldImg>img{
  24964. width: 100%;
  24965. height: 100%;
  24966. }
  24967. .allName{
  24968. min-width: 200px;
  24969. white-space: nowrap;
  24970. overflow: hidden;
  24971. text-overflow: ellipsis;
  24972. word-break: break-word;
  24973. cursor: pointer;
  24974. text-align: center;
  24975. border: 1px solid #bcc2cc;
  24976. box-sizing: border-box;
  24977. }
  24978. .engUpTop{
  24979. max-height: 300px;
  24980. overflow: auto;
  24981. }
  24982. .isUpdateToolDetailClass{
  24983. padding: 0 !important;
  24984. }
  24985. .isUpdateToolDetailClass textarea{
  24986. padding:12px;
  24987. font-size: 16px;
  24988. min-height:100%;
  24989. width: 100%;
  24990. box-sizing:border-box;
  24991. outline: none;
  24992. border:none;
  24993. line-height: 30px;
  24994. resize: none;
  24995. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  24996. color: #838383;
  24997. }
  24998. .show_taskD {
  24999. min-width: fit-content;
  25000. margin-left: 10px;
  25001. display: flex;
  25002. align-items: center;
  25003. font-size: 14px;
  25004. cursor: pointer;
  25005. color: #717c8d;
  25006. }
  25007. .show_taskD > img {
  25008. width: 15px;
  25009. margin-right: 5px;
  25010. transition: 0.2s all;
  25011. transform: rotate(-90deg);
  25012. }
  25013. .show_taskD.show > img {
  25014. transform: rotate(0deg);
  25015. }
  25016. .correctCss{
  25017. position: absolute;
  25018. bottom: -70px;
  25019. background: #409eff;
  25020. color: #fff;
  25021. }
  25022. .dialog_diyCopy >>> .el-dialog__header {
  25023. display: none !important;
  25024. }
  25025. .dialog_diyCopy >>> .el-dialog__body {
  25026. padding: 0 !important;
  25027. height: 100% !important;
  25028. }
  25029. .confirmOpenDigCss > div{
  25030. font-size: 14px;
  25031. color: rgba(0, 0, 0, 0.6);
  25032. }
  25033. .confirmOpenDigCss >>> .el-dialog{
  25034. border-radius: 6px;
  25035. }
  25036. .confirmOpenDigCss >>> .el-dialog__body{
  25037. padding: 25px !important;
  25038. }
  25039. .confirmOpenDigCss > span{
  25040. font-size: 16px;
  25041. font-weight: 600;
  25042. color: rgba(0, 0, 0, 0.8);
  25043. }
  25044. div::-webkit-scrollbar {
  25045. width: 10px;
  25046. height: 6px;
  25047. }
  25048. .Ovh{
  25049. margin: 5px 0;
  25050. width: 4em;
  25051. -webkit-line-clamp: 2;
  25052. display: -webkit-box;
  25053. -webkit-box-orient: vertical;
  25054. overflow: hidden;
  25055. text-overflow: ellipsis;
  25056. }
  25057. .renderedFor >>> .katex {
  25058. font-size: 18px;
  25059. width: 100%;
  25060. white-space: normal;
  25061. font-family: '黑体' !important;
  25062. }
  25063. .renderedFor >>> .katex .base{
  25064. display: inline !important;
  25065. display: contents !important;
  25066. }
  25067. .renderedFor>>> .katex .base .cjk_fallback{
  25068. white-space: normal !important;
  25069. display: inline !important;
  25070. }
  25071. .notop >>> .vjs-fluid{
  25072. padding-top: 0 !important;
  25073. }
  25074. </style>