studyStudent.vue 872 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- 阶段模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <div class="btnAllNT" v-if="false">
  16. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  17. <img
  18. v-if="
  19. courseDetail.userid == userid ||
  20. (courseDetail.course_teacher &&
  21. courseDetail.course_teacher.indexOf(userid) != -1)
  22. "
  23. src="../assets/icon/learn/addTool.png"
  24. @click="openToolAll"
  25. style="position: relative"
  26. />
  27. </div>
  28. <div
  29. class="pButton"
  30. style="left: 0; top: 140px"
  31. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  32. @click="setContent2(true)"
  33. >
  34. <!-- 批 , getCourseDetail()-->
  35. <img
  36. src="../assets/icon/newIcons/isRight.png"
  37. style="width: 45px"
  38. alt=""
  39. />
  40. </div>
  41. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  42. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  43. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  44. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  45. <div
  46. style="
  47. max-width: calc(100% - 40px);
  48. width: auto;
  49. white-space: nowrap;
  50. overflow: hidden;
  51. text-overflow: ellipsis;
  52. word-break: break-word;
  53. display: block;
  54. "
  55. >
  56. <el-tooltip
  57. effect="light"
  58. :content="courseDetail.title"
  59. placement="top"
  60. >
  61. <div class="ctitle">
  62. {{ courseDetail.title }}
  63. </div>
  64. </el-tooltip>
  65. </div>
  66. <el-tooltip effect="light" :content="lang.ssCollapse" placement="top">
  67. <div class="mlImg" @click="setContent2(false)">
  68. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  69. </div>
  70. </el-tooltip>
  71. </div>
  72. <div
  73. class="inviteBox"
  74. v-if="tcid && inviteCode"
  75. style="padding: 0 0 8px 0"
  76. >
  77. <div>
  78. <!-- <span>识别码:{{ inviteCode }}</span> -->
  79. <span>{{ lang.ssInviteCodeLabel }}{{ Code2 ? Code2 + inviteCode : inviteCode }}</span>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="cru_selectBox">
  84. <div
  85. style="background: #fff; margin: 0 10px; border-radius: 8px"
  86. v-for="(item, stageIndex) in navList"
  87. :key="stageIndex"
  88. >
  89. <div
  90. class="stageBoxCss"
  91. @click="get(stageIndex)"
  92. :class="{
  93. // stageBoxIsCss: stageIndex == courseType,
  94. }"
  95. >
  96. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  97. <div>{{ lang.ssStage2.replace(/\*/g, stageIndex + 1) }}</div>
  98. <el-tooltip
  99. effect="light"
  100. :content="item.dyName"
  101. placement="top"
  102. >
  103. <div>
  104. {{ item.dyName }}
  105. </div>
  106. </el-tooltip>
  107. </div>
  108. <!-- <div class="closeTri" v-if="stageIndex == courseType" :style="{transform:item.isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}">
  109. <img src="../assets/icon/newIcons/downC.png" alt />
  110. </div> -->
  111. <div class="closeTri" :style="{transform:item.isOpen ? 'rotate(90deg)' : 'rotate(0deg)'}">
  112. <img src="../assets/icon/newIcons/right.png" alt />
  113. </div>
  114. </div>
  115. <div class="stageChild" :class="{ navActive: item.isOpen }">
  116. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  117. <div
  118. class="navItem"
  119. :class="{
  120. openTaskActive:
  121. navIndex == taskCount &&
  122. nav.id == navId &&
  123. stageIndex == courseType,
  124. }"
  125. >
  126. <div v-if="nav.tool[0].tool != undefined">
  127. <div
  128. class="closeTri1"
  129. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  130. @click="openTask(stageIndex, navIndex, nav.id)"
  131. >
  132. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../assets/icon/newIcons/bDown2.png" alt />
  133. </div>
  134. <div
  135. class="closeTri1"
  136. v-else
  137. @click="openTask(stageIndex, navIndex, nav.id)"
  138. >
  139. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../assets/icon/newIcons/right.png" alt />
  140. </div>
  141. </div>
  142. <div v-else class="noToolBlue"></div>
  143. <div
  144. @click="openTask(stageIndex, navIndex, nav.id)"
  145. class="navItemList"
  146. :class="{
  147. isItemList:
  148. navIndex == taskCount &&
  149. nav.id == navId &&
  150. stageIndex == courseType,
  151. }"
  152. >
  153. <div>{{ lang.ssTask + (navIndex + 1)}}:</div>
  154. <el-tooltip
  155. effect="light"
  156. :content="nav.taskName"
  157. placement="top"
  158. >
  159. <div
  160. :style="{
  161. width:
  162. IsLookOpen &&
  163. !(
  164. navIndex == taskCount &&
  165. nav.id == navId &&
  166. stageIndex == courseType
  167. )
  168. ? 'calc(100% - 75px)'
  169. : 'auto',
  170. }"
  171. >
  172. {{ nav.taskName }}
  173. </div>
  174. </el-tooltip>
  175. </div>
  176. <div class="lockTaskIcon">
  177. <img
  178. src="../assets/lock.png"
  179. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  180. courseDetail.course_teacher.indexOf(userid) ==-1"
  181. alt=""
  182. />
  183. </div>
  184. </div>
  185. <div
  186. v-if="nav.tool[0].tool != undefined"
  187. class="toolChild"
  188. :class="{ toolActive: nav.isOpen }"
  189. >
  190. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  191. <div
  192. class="gjCss"
  193. :class="{ isGjCss: t.isTool }"
  194. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  195. >
  196. <div>{{ lang.ssTool + (toolIndex + 1)}}:</div>
  197. <div v-if="t.tool == 58">{{ lang.ssSimulateDrive }}</div>
  198. <div v-if="t.tool == 59">{{ lang.ssPathSearch }}</div>
  199. <div v-if="t.tool == 60">{{ lang.ssDeepLearning }}</div>
  200. <div v-if="t.tool == 10">{{ lang.ssCountdown }}</div>
  201. <div v-if="t.tool == 65">{{ lang.ssPickPerson }}</div>
  202. <div v-if="t.tool == 7">{{ lang.ssMindGrid }}</div>
  203. <div v-if="t.tool == 1">{{ lang.ssWhiteboard }}</div>
  204. <div v-if="t.tool == 52">{{ lang.ssDocument }}</div>
  205. <div v-if="t.tool == 3">{{ lang.ssMindMap }}</div>
  206. <div v-if="t.tool == 48">{{ lang.ssTable }}</div>
  207. <div v-if="t.tool == 49">{{ lang.ssStudentGroup }}</div>
  208. <div v-if="t.tool == 4">{{ lang.ssSurvey }}</div>
  209. <div v-if="t.tool == 45">{{ lang.ssChoice }}</div>
  210. <div v-if="t.tool == 15">{{ lang.ssQa }}</div>
  211. <div v-if="t.tool == 16">{{ lang.ssHomework }}</div>
  212. <div v-if="t.tool == 50">{{ lang.ssBatchUpload }}</div>
  213. <div v-if="t.tool == 41">{{ lang.ssMatch }}</div>
  214. <div v-if="t.tool == 47">{{ lang.ssSort }}</div>
  215. <div v-if="t.tool == 40">{{ lang.ssPersonalEval }}</div>
  216. <div v-if="t.tool == 18">{{ lang.ssTraining }}</div>
  217. <div v-if="t.tool == 21">AIoT Blockly</div>
  218. <div v-if="t.tool == 23">AI Python</div>
  219. <div v-if="t.tool == 24">AI Blockly</div>
  220. <div v-if="t.tool == 32">{{ lang.ssCodeEdit }}</div>
  221. <div v-if="t.tool == 57">CocoPi</div>
  222. <div v-if="t.tool == 63">{{ lang.ssTurtle }}</div>
  223. <div v-if="t.tool == 28">{{ lang.ssTranslate }}</div>
  224. <div v-if="t.tool == 31">{{ lang.ssDigitalBoard }}</div>
  225. <div v-if="t.tool == 39">GeoGebra</div>
  226. <div v-if="t.tool == 66">{{ lang.ssFormula }}</div>
  227. <div v-if="t.tool == 67">{{ lang.ssMolecule }}</div>
  228. <div v-if="t.tool == 68">{{ lang.ssTimeline }}</div>
  229. <div v-if="t.tool == 69">{{ lang.ssEnglishWrite }}</div>
  230. <div v-if="t.tool == 70">{{ lang.ssEnglishSpeak }}</div>
  231. <div v-if="t.tool == 25">{{ lang.ssGoalManage }}</div>
  232. <div v-if="t.tool == 26">{{ lang.ssCourseDesign }}</div>
  233. <div v-if="t.tool == 62">{{ lang.ssInteractiveVideo }}</div>
  234. <div v-if="t.tool == 71">{{ lang.ssAiAgent }}</div>
  235. <div v-if="t.tool == 72">{{ lang.ssAppCenter }}</div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. </div>
  241. </div>
  242. </div>
  243. </div>
  244. <!-- :class="{ navLeftCss: !mlDialog }" -->
  245. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  246. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  247. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  248. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  249. <div>{{ lang.ssTask.replace(/\*/g, taskCount + 1) }}</div>
  250. <el-tooltip
  251. effect="light"
  252. :content="
  253. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  254. "
  255. placement="top"
  256. >
  257. <div>
  258. {{
  259. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  260. .task
  261. }}
  262. </div>
  263. </el-tooltip>
  264. </div>
  265. <div class="btnAll" v-show="(!orgArray.includes(org) && !oidArray.includes(oid)) || $region == 'hk'"><!--v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'"-->
  266. <div class="btnLeft">
  267. <el-tooltip effect="light" :content="lang.ssRefresh" placement="top">
  268. <div class="reBtnIcon" @click="refreshCourse">
  269. <span>{{ lang.ssRefresh }}</span>
  270. </div>
  271. </el-tooltip>
  272. <el-tooltip effect="light" :content="lang.ssComment" placement="top">
  273. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  274. <span>{{ lang.ssComment }}</span>
  275. </div>
  276. </el-tooltip>
  277. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  278. <el-tooltip effect="light" :content="lang.ssRecord" placement="top">
  279. <div class="vedioIcon" @click="startRecording">
  280. <span>{{ lang.ssRecord }}</span>
  281. </div>
  282. </el-tooltip>
  283. </div>
  284. <div v-else-if="tType == 1 || tType == 4">
  285. <el-tooltip effect="light" :content="lang.ssDownload" placement="top">
  286. <div class="vedioIcon1" @click="stopRecording">
  287. <span>{{ lang.ssDownload }}</span>
  288. </div>
  289. </el-tooltip>
  290. </div>
  291. </div>
  292. <div class="btnRight">
  293. <div
  294. class="last"
  295. @click="nextOrpreSteps(0)"
  296. v-if="!(IsFollow && tType == 2)"
  297. @mouseover="isHovered = true"
  298. @mouseout="isHovered = false"
  299. >
  300. <div class="lastImg">
  301. <img
  302. :src="
  303. isHovered
  304. ? require('../assets/icon/newIcons/whiteLast.png')
  305. : require('../assets/icon/newIcons/last.png')
  306. "
  307. alt=""
  308. />
  309. </div>
  310. <div class="lastText">{{ lang.ssPrevious }}</div>
  311. </div>
  312. <div
  313. class="last"
  314. @click="nextOrpreSteps(1)"
  315. v-if="!(IsFollow && tType == 2)"
  316. @mouseover="isHovered1 = true"
  317. @mouseout="isHovered1 = false"
  318. >
  319. <div class="lastText">{{ lang.ssNext }}</div>
  320. <div class="lastImg">
  321. <img
  322. :src="
  323. isHovered1
  324. ? require('../assets/icon/newIcons/whiteNext.png')
  325. : require('../assets/icon/newIcons/next.png')
  326. "
  327. alt=""
  328. />
  329. </div>
  330. </div>
  331. <div
  332. class="last"
  333. @click="juriVisible = true"
  334. v-if="tType == 1"
  335. @mouseover="isHovered2 = true"
  336. @mouseout="isHovered2 = false"
  337. >
  338. <div class="lastImg">
  339. <img
  340. :src="
  341. isHovered2
  342. ? require('../assets/icon/newIcons/whiteLock.png')
  343. : require('../assets/icon/newIcons/lock.png')
  344. "
  345. alt=""
  346. />
  347. </div>
  348. <div class="lastText">{{ lang.ssPermission }}</div>
  349. </div>
  350. <div
  351. class="returnBtn1 returnIcon"
  352. @click.stop="
  353. goTo(
  354. '/courseDetail?userid=' +
  355. userid +
  356. '&oid=' +
  357. oid +
  358. '&org=' +
  359. org +
  360. '&cid=' +
  361. classId +
  362. '&courseId=' +
  363. id +
  364. '&tType=' +
  365. tType +
  366. '&screenType=' +
  367. screenType
  368. )
  369. "
  370. >
  371. <div class="lastImg">
  372. <img src="../assets/icon/newIcon/return.png" alt="" />
  373. </div>
  374. <div class="lastText" style="color: #000">{{ lang.ssReturn }}</div>
  375. </div>
  376. </div>
  377. <!-- <div
  378. class="returnBtn lockIcon"
  379. @click="juriVisible = true"
  380. v-if="tType == 1"
  381. >
  382. 权限
  383. </div>
  384. <div
  385. class="returnBtn vedioIcon"
  386. @click="startRecording"
  387. v-if="!videoStart && (tType == 1 || tType == 4)"
  388. >
  389. 录制
  390. </div>
  391. <div
  392. class="returnBtn"
  393. @click="stopRecording"
  394. v-else-if="tType == 1 || tType == 4"
  395. style="background: #ee5255"
  396. >
  397. {{ lang.ssDownload }}
  398. </div>
  399. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  400. {{ lang.ssComment }}
  401. </div>
  402. <div
  403. class="returnBtn"
  404. @click="nextOrpreSteps(0)"
  405. v-if="!(IsFollow && tType == 2)"
  406. >
  407. {{ lang.ssPrevious }}
  408. </div>
  409. <div
  410. class="returnBtn"
  411. @click="nextOrpreSteps(1)"
  412. v-if="!(IsFollow && tType == 2)"
  413. >
  414. {{ lang.ssNext }}
  415. </div>
  416. <div class="returnBtn" @click="refreshCourse">{{ lang.ssRefresh }}</div>
  417. <div
  418. class="returnBtn returnIcon"
  419. @click.stop="
  420. goTo(
  421. '/courseDetail?userid=' +
  422. userid +
  423. '&oid=' +
  424. oid +
  425. '&org=' +
  426. org +
  427. '&cid=' +
  428. classId +
  429. '&courseId=' +
  430. id +
  431. '&tType=' +
  432. tType +
  433. '&screenType=' +
  434. screenType
  435. )
  436. "
  437. >
  438. 返回
  439. </div> -->
  440. </div>
  441. </div>
  442. <div
  443. class="isNoMessage"
  444. v-if="
  445. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  446. .chapterData.length == 0 &&
  447. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .toolChoose[0].tool.length == 0 &&
  449. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  450. .taskDetail == '' &&
  451. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  452. .eList &&
  453. !(
  454. courseDetail.userid == userid ||
  455. (courseDetail.course_teacher &&
  456. courseDetail.course_teacher.indexOf(userid) != -1)
  457. )
  458. "
  459. >
  460. <img src="../assets/icon/isNoMessage.png" alt />
  461. </div>
  462. <div class="study_top" :class="{ pzClass: pzDialog }">
  463. <div
  464. class="vedioBox"
  465. v-if="
  466. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  467. .taskDetail != '' ||
  468. vChapterData[taskCount].length > 0 ||
  469. fileC[taskCount].length > 0) && (tType == 1 || (tType == 2 && IsStulook))
  470. "
  471. style="border-radius: 0 0 20px 20px"
  472. >
  473. <div
  474. class="taskBox"
  475. v-if="
  476. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  477. .taskDetail != ''
  478. "
  479. >
  480. <div
  481. style="
  482. display: flex;
  483. flex-wrap: nowrap;
  484. flex-direction: column;
  485. position: relative;
  486. "
  487. class="renderedFor"
  488. >
  489. <div
  490. style="
  491. padding: 15px 0;
  492. line-height: 29px;
  493. font-size: 18px;
  494. color: #0e1e33;
  495. "
  496. class="cont"
  497. v-if="
  498. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  499. .taskDetail != ''
  500. "
  501. v-html="
  502. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  503. .taskDetail
  504. ? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
  505. taskCount
  506. ].taskDetail)
  507. : lang.ssNoDesc
  508. "
  509. ></div>
  510. </div>
  511. </div>
  512. <div
  513. class="student_head"
  514. v-if="
  515. vChapterData[taskCount].length > 0 ||
  516. fileC[taskCount].length > 0
  517. "
  518. >
  519. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  520. <div
  521. :class="
  522. contentDialog == false
  523. ? 'box_course isContentCss'
  524. : 'box_course'
  525. "
  526. v-if="
  527. vChapterData.length > 0 &&
  528. vChapterData[taskCount] &&
  529. showType !== ''
  530. "
  531. >
  532. <div class="wheel" style="height: auto" v-if="showType === 0">
  533. <div
  534. class="workd_media"
  535. style="height: 650px; width: calc(100% - 50px)"
  536. >
  537. <video-player
  538. class="video-player vjs-custom-skin notop"
  539. :class="contentDialog == false ? 'isAllWidth' : ''"
  540. :playsinline="true"
  541. :options="playerO[taskCount]"
  542. @play="onPlayerPlay($event)"
  543. style="width: 100%; height: 650px; margin: 0 0 0 30px"
  544. ></video-player>
  545. </div>
  546. </div>
  547. <div
  548. class="wheel"
  549. v-if="showType == 1"
  550. style="
  551. box-shadow: 0 0 6px 1px #f2f2f2;
  552. width: 95%;
  553. margin: 0 auto;
  554. background: #f1f1f1;
  555. "
  556. >
  557. <div class="title">{{ lang.ssViewDoc }}</div>
  558. <el-form class="textBox">
  559. <el-form-item class="textTitle">
  560. <div style="font-size: 22px">
  561. {{ text.name }}
  562. </div>
  563. </el-form-item>
  564. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  565. <div v-html="text.url" class="textContent cont"></div>
  566. </el-form>
  567. </div>
  568. <div
  569. class="wheel"
  570. v-if="
  571. pptImgUrl1.indexOf(
  572. 'https://view.officeapps.live.com/op/view.aspx?src='
  573. ) != -1 && showType == 2
  574. "
  575. style="width: 95%; margin: 0 auto"
  576. >
  577. <iframe
  578. style="width: 100%; height: 100%; border: none"
  579. :src="pptImgUrl1"
  580. ></iframe>
  581. </div>
  582. <div
  583. class="wheel"
  584. v-else-if="showType == 2"
  585. style="width: 95%; margin: 0 auto"
  586. >
  587. <iframe
  588. style="width: 100%; height: 100%; border: none"
  589. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  590. :key="diffKey"
  591. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  592. :src="pptImgUrl1"
  593. ></iframe>
  594. <iframe
  595. style="width: 100%; height: 100%; border: none"
  596. security="restricted"
  597. v-else
  598. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  599. :src="pptImgUrl1"
  600. ></iframe>
  601. </div>
  602. <div
  603. class="wheel"
  604. v-if="showType === 16"
  605. style="width: 95%; margin: 0 auto"
  606. >
  607. <iframe
  608. style="width: 100%; height: 100%; border: none"
  609. :src="pptImgUrl1"
  610. ></iframe>
  611. </div>
  612. <div
  613. class="wheel"
  614. v-if="showType == 3"
  615. style="width: 95%; margin: 0 auto"
  616. >
  617. <pdf
  618. :pdfUrl="pptImgUrl1"
  619. style="width: 100%; height: 100%; overflow: auto"
  620. ></pdf>
  621. </div>
  622. <div
  623. class="wheel"
  624. v-if="showType == 4"
  625. style="width: 95%; margin: 0 auto"
  626. >
  627. <el-image
  628. :src="pptImgUrl1"
  629. fit="contain"
  630. style="width: 100%; height: 100%; cursor: pointer"
  631. @click="previewImg(pptImgUrl1)"
  632. ></el-image>
  633. </div>
  634. </div>
  635. <div
  636. class="pButton"
  637. style="position: absolute; right: 20px; top: 0; z-index: 998"
  638. v-if="!contentDialog"
  639. @click="setContent(true)"
  640. >
  641. <!-- 批 -->
  642. <img
  643. src="../assets/icon/newIcons/isLeft.png"
  644. style="width: 45px"
  645. alt=""
  646. />
  647. </div>
  648. <div
  649. v-if="contentDialog == true"
  650. :style="{
  651. width:
  652. (vChapterData[taskCount].length > 0 ||
  653. fileC[taskCount].length > 0) &&
  654. showType === ''
  655. ? 'calc(100%)'
  656. : '300px',
  657. margin:
  658. (vChapterData[taskCount].length > 0 ||
  659. fileC[taskCount].length > 0) &&
  660. showType === ''
  661. ? '0 15px'
  662. : '0 15px 0 0',
  663. }"
  664. >
  665. <div
  666. class="vedioList"
  667. v-if="
  668. vChapterData[taskCount].length > 0 ||
  669. fileC[taskCount].length > 0
  670. "
  671. style="height: 650px"
  672. >
  673. <div class="navCorOpenBox">
  674. <div class="navTitile">{{ lang.ssContentListLabel }}</div>
  675. <div class="navCorOpen" @click="setContent(false)">
  676. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  677. </div>
  678. </div>
  679. <div class="navBox">
  680. <div
  681. v-show="
  682. vChapterData[taskCount].length > 0 ||
  683. fileC[taskCount].length > 0
  684. "
  685. style="padding: 10px 0 25px 0"
  686. >
  687. <div
  688. class="vedioTimeBox"
  689. v-for="(vitem, vindex) in vChapterData[taskCount]"
  690. :key="vindex + '1'"
  691. >
  692. <div class="navListItem" v-if="vitem.type == 2">
  693. <div
  694. @click="lookVedio(vitem.url, vindex)"
  695. class="navText"
  696. :class="isClickNav == vindex ? 'isClickNav' : ''"
  697. >
  698. <span v-if="vitem.text">{{ vitem.text }}-</span
  699. >{{ vitem.name }}
  700. </div>
  701. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  702. <img src="../assets/icon/newIcon/down.png" alt />
  703. </div> -->
  704. </div>
  705. <div class="navListItem" v-if="vitem.type == 6">
  706. <div
  707. @click="lookText(taskCount, vindex)"
  708. class="navText"
  709. :class="isClickNav == vindex ? 'isClickNav' : ''"
  710. >
  711. {{ vitem.name }}.doc
  712. </div>
  713. <div
  714. class="downIcon"
  715. @click="checkFileFull1(vitem.type, vitem)"
  716. >
  717. <img
  718. src="../assets/icon/newIcon/allScreen.png"
  719. alt
  720. />
  721. </div>
  722. </div>
  723. <div
  724. class="navListItem"
  725. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  726. >
  727. <div
  728. @click="doUrl(vitem.url, vindex)"
  729. class="navText"
  730. :class="isClickNav == vindex ? 'isClickNav' : ''"
  731. >
  732. {{ vitem.title ? vitem.title : vitem.url }}
  733. </div>
  734. <div
  735. class="downIcon"
  736. @click="checkFileFull1(vitem.type, vitem)"
  737. >
  738. <img
  739. src="../assets/icon/newIcon/allScreen.png"
  740. alt
  741. />
  742. </div>
  743. </div>
  744. <div class="navListItem" v-if="vitem.type == 3">
  745. <div
  746. @click="downFile(vitem, vindex)"
  747. class="navText"
  748. :class="isClickNav == vindex ? 'isClickNav' : ''"
  749. >
  750. <span v-if="vitem.text">{{ vitem.text }}-</span
  751. >{{ vitem.name }}
  752. </div>
  753. <div
  754. class="downIcon"
  755. @click="checkFileFull1(vitem.type, vitem)"
  756. >
  757. <img
  758. src="../assets/icon/newIcon/allScreen.png"
  759. alt
  760. />
  761. </div>
  762. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  763. <img src="../assets/icon/newIcon/down.png" alt />
  764. </div> -->
  765. </div>
  766. <div class="navListItem" v-if="vitem.type == 12">
  767. <div class="navText" @click="downloadFile2(vitem)">
  768. <span v-if="vitem.text">{{ vitem.text }}-</span
  769. >{{ vitem.name }}
  770. </div>
  771. <div
  772. class="downIcon"
  773. @click="checkFileFull1(vitem.type, vitem)"
  774. >
  775. <img
  776. src="../assets/icon/newIcon/allScreen.png"
  777. alt
  778. />
  779. </div>
  780. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  781. <img src="../assets/icon/newIcon/down.png" alt />
  782. </div> -->
  783. </div>
  784. <div class="navListItem" v-if="vitem.type == 13">
  785. <div
  786. class="navText"
  787. @click="checkPhoto(vitem, vindex)"
  788. :class="isClickNav == vindex ? 'isClickNav' : ''"
  789. >
  790. {{ vitem.name }}
  791. </div>
  792. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  793. <img src="../assets/icon/newIcon/down.png" alt />
  794. </div> -->
  795. </div>
  796. <div class="navListItem" v-if="vitem.type == 16">
  797. <div
  798. class="navText"
  799. @click="checkHtml(vitem, vindex)"
  800. :class="isClickNav == vindex ? 'isClickNav' : ''"
  801. >
  802. {{ vitem.name }}
  803. </div>
  804. <div
  805. class="downIcon"
  806. @click="checkFileFull1(vitem.type, vitem)"
  807. >
  808. <img
  809. src="../assets/icon/newIcon/allScreen.png"
  810. alt
  811. />
  812. </div>
  813. </div>
  814. <div class="navListItem" v-if="vitem.type == 17">
  815. <div
  816. class="navText"
  817. @click="checkHtml(vitem, vindex)"
  818. :class="isClickNav == vindex ? 'isClickNav' : ''"
  819. >
  820. {{ vitem.name }}
  821. </div>
  822. <div
  823. class="downIcon"
  824. @click="checkFileFull1(vitem.type, vitem)"
  825. >
  826. <img
  827. src="../assets/icon/newIcon/allScreen.png"
  828. alt
  829. />
  830. </div>
  831. </div>
  832. </div>
  833. <div
  834. class="fileC_box"
  835. v-if="fileC[taskCount].length > 0"
  836. >
  837. <div class="fileC_title">{{ lang.ssNoPreview }}</div>
  838. <div
  839. class="vedioTimeBox"
  840. v-for="(vitem, vindex) in fileC[taskCount]"
  841. :key="vindex + '1'"
  842. >
  843. <div class="navListItem" v-if="vitem.type == 12">
  844. <div class="navText" style="color: #acb4bf">
  845. <span v-if="vitem.text">{{ vitem.text }}-</span
  846. >{{ vitem.name }}
  847. </div>
  848. <div
  849. class="downIcon"
  850. @click="downloadFile2(vitem)"
  851. >
  852. <img
  853. src="../assets/icon/newIcon/down.png"
  854. alt
  855. />
  856. </div>
  857. </div>
  858. </div>
  859. </div>
  860. </div>
  861. </div>
  862. </div>
  863. </div>
  864. </div>
  865. <div style="width: calc(100% - 315px)">
  866. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  867. <!-- <el-button
  868. type="primary"
  869. class="newButton"
  870. @click="checkFileFull(showType, pptImgUrl1)"
  871. >全屏查看</el-button
  872. >
  873. <el-button
  874. type="primary"
  875. class="newButton"
  876. @click="downloadFile(pptImgUrl1)"
  877. v-if="showType != 2"
  878. >文件下载</el-button
  879. > -->
  880. <el-button
  881. class="newButton"
  882. v-if="
  883. showType == 2 &&
  884. pptImgUrl1.indexOf(
  885. 'https://view.officeapps.live.com/op/view.aspx?src='
  886. ) == -1
  887. "
  888. type="primary"
  889. @click="openLine(pptImgUrl1)"
  890. >{{ lang.ssOpenLink }}
  891. </el-button>
  892. </div>
  893. <!-- <div
  894. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  895. v-if="showType == 1"
  896. >
  897. <el-button
  898. type="primary"
  899. class="newButton"
  900. @click="checkFileFull(showType, text)"
  901. >{{ lang.ssFullScreenView }}</el-button
  902. >
  903. </div> -->
  904. </div>
  905. </div>
  906. </div>
  907. <div class="student_body" v-resize="resize">
  908. <div
  909. class="vedioBox"
  910. :style="{
  911. borderRadius:
  912. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  913. .taskDetail == '' &&
  914. vChapterData[taskCount].length == 0 &&
  915. fileC[taskCount].length == 0
  916. ? '0 0 20px 20px'
  917. : '20px',
  918. }"
  919. v-if="
  920. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  921. .toolChoose[0].tool &&
  922. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  923. .toolChoose[0].tool.length > 0
  924. "
  925. >
  926. <div
  927. class="toolHeng2"
  928. style="position: relative"
  929. v-if="
  930. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  931. .toolChoose[0].tool &&
  932. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  933. .toolChoose[0].tool.length &&
  934. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  935. .toolChoose[0].tool.length > 0
  936. "
  937. >
  938. <div class="workNav">{{ lang.ssWorkArea }}</div>
  939. <div
  940. class="filebox"
  941. style="flex-wrap: nowrap"
  942. v-for="(tool, toolIndex) in chapInfoList[courseType]
  943. .chapterInfo[0].taskJson[taskCount].toolChoose"
  944. :key="toolIndex"
  945. >
  946. <div class="bzBox">
  947. <div class="yCss"></div>
  948. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  949. {{ lang.ssTool + (toolIndex + 1) }}
  950. </div>
  951. <div
  952. v-if="timeWorkList[toolIndex].length > 0"
  953. style="margin: 0 0 0 10px"
  954. >
  955. {{
  956. timeWorkList[toolIndex][0].time
  957. ? lang.ssTimeLabel + timeWorkList[toolIndex][0].time
  958. : ""
  959. }}
  960. </div>
  961. </div>
  962. <div class="toolBox">
  963. <div>
  964. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  965. :key="indexTool"-->
  966. <!-- <div class="iframeBox">
  967. <div
  968. class="addPoint isBorder"
  969. v-for="(tooC, toolCIndex) in tool.tool"
  970. :key="toolCIndex"
  971. >
  972. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  973. <div
  974. class="iframeName"
  975. >
  976. {{ lang.ssWhiteboard }}
  977. </div>
  978. <iframe
  979. src="https://iwb.cocorobo.cn/"
  980. ref="whiteBoard"
  981. ></iframe>
  982. </div>
  983. </div>
  984. </div>-->
  985. <div class="noiframeBox">
  986. <div
  987. class="addPoint"
  988. v-for="(tooC, toolCIndex) in tool.tool"
  989. :key="toolCIndex"
  990. >
  991. <div v-if="tooC == 1">
  992. <img
  993. src="../assets/icon/secondToolList/whiteBoard.png"
  994. alt
  995. @click="addTools(tooC, toolIndex, taskCount)"
  996. />
  997. <div style="margin: 5px 0">{{ lang.ssWhiteboard }}</div>
  998. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  999. style="position: absolute;right: 33px;top: -30px;">
  1000. {{ lang.ssAnalyze }}
  1001. </div>
  1002. </div>
  1003. <div v-if="tooC == 3">
  1004. <img
  1005. src="../assets/icon/secondToolList/mindMapping.png"
  1006. alt
  1007. @click="addTools(tooC, toolIndex, taskCount)"
  1008. />
  1009. <div style="margin: 5px 0">{{ lang.ssMindMap }}</div>
  1010. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1011. style="position: absolute;right: 33px;top: -30px;">
  1012. {{ lang.ssAnalyze }}
  1013. </div>
  1014. </div>
  1015. <div v-if="tooC == 6">
  1016. <img
  1017. src="../assets/icon/secondToolList/doc.png"
  1018. alt
  1019. @click="addTools(tooC, toolIndex, taskCount)"
  1020. />
  1021. <div style="margin: 5px 0">{{ lang.ssCoDoc }}</div>
  1022. </div>
  1023. <div v-if="tooC == 7">
  1024. <img
  1025. src="../assets/icon/secondToolList/mindNetwork.png"
  1026. alt
  1027. @click="addTools(tooC, toolIndex, taskCount)"
  1028. />
  1029. <div style="margin: 5px 0">{{ lang.ssMindGrid }}</div>
  1030. <!-- && worksStudent[toolIndex].length>0 -->
  1031. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1032. style="position: absolute;right: 33px;top: -30px;">
  1033. {{ lang.ssAnalyze }}
  1034. </div>
  1035. </div>
  1036. <div v-if="tooC == 8">
  1037. <img
  1038. src="../assets/icon/secondToolList/library.png"
  1039. alt
  1040. @click="addTools(tooC, toolIndex, taskCount)"
  1041. />
  1042. <div style="margin: 5px 0">{{ lang.ssMaterialLib }}</div>
  1043. </div>
  1044. <div v-if="tooC == 17">
  1045. <img
  1046. src="../assets/icon/secondToolList/library.png"
  1047. alt
  1048. @click="addTools(tooC, toolIndex, taskCount)"
  1049. />
  1050. <div style="margin: 5px 0">{{ lang.ssLearningMaterial }}</div>
  1051. </div>
  1052. <div v-if="tooC == 2">
  1053. <img
  1054. @click="addTools(tooC, toolIndex, taskCount)"
  1055. src="../assets/icon/secondToolList/note.png"
  1056. alt
  1057. />
  1058. <div style="margin: 5px 0">{{ lang.ssNote }}</div>
  1059. </div>
  1060. <div v-if="tooC == 4">
  1061. <img
  1062. @click="addTools(tooC, toolIndex, taskCount)"
  1063. src="../assets/icon/thirdToolList/ask.png"
  1064. alt
  1065. />
  1066. <div style="margin: 5px 0">{{ lang.ssSurvey }}</div>
  1067. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1068. style="position: absolute;right: 153px;top: -30px;">
  1069. {{ lang.ssAnalyze }}
  1070. </div>
  1071. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1072. style="position: absolute;right: 33px;top: -30px;">
  1073. {{ lang.ssStatisticalAnalysis }}
  1074. </div>
  1075. </div>
  1076. <div v-if="tooC == 45">
  1077. <img
  1078. @click="addTools(tooC, toolIndex, taskCount)"
  1079. src="../assets/icon/thirdToolList/choose.png"
  1080. alt
  1081. />
  1082. <div style="margin: 5px 0">{{ lang.ssChoice }}</div>
  1083. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1084. style="position: absolute;right: 33px;top: -30px;">
  1085. {{ lang.ssAnalyze }}
  1086. </div>
  1087. </div>
  1088. <!-- <div v-if="tooC == 5">
  1089. <img
  1090. @click="addTools(tooC, toolIndex, taskCount)"
  1091. src="../assets/icon/thirdToolList/score.png"
  1092. alt
  1093. />
  1094. <div style="margin: 5px 0">{{ lang.ssRatingScale }}</div>
  1095. </div> -->
  1096. <div v-if="tooC == 10">
  1097. <img
  1098. @click="addTools(tooC, toolIndex, taskCount)"
  1099. src="../assets/icon/thirdToolList/time.png"
  1100. alt
  1101. />
  1102. <div style="margin: 5px 0">{{ lang.ssCountdown }}</div>
  1103. </div>
  1104. <div v-if="tooC == 15">
  1105. <img
  1106. @click="addTools(tooC, toolIndex, taskCount)"
  1107. src="../assets/icon/thirdToolList/answer.png"
  1108. alt
  1109. />
  1110. <div style="margin: 5px 0">{{ lang.ssQa }}</div>
  1111. <div class="upload_toolBtn" v-if="tType == 1"
  1112. :style="{ right: lang.lang == 'com' ? '220px' : '135px' }"
  1113. @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1114. style="position: absolute;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1115. {{ lang.ssAnalyze }}
  1116. </div>
  1117. </div>
  1118. <div v-if="tooC == 26">
  1119. <img
  1120. @click="addTools(tooC, toolIndex, taskCount)"
  1121. src="../assets/icon/thirdToolList/courseDesign.png"
  1122. alt
  1123. />
  1124. <div style="margin: 5px 0">{{ lang.ssCourseDesign }}</div>
  1125. </div>
  1126. <div v-if="tooC == 18">
  1127. <img
  1128. @click="addTools(tooC, toolIndex, taskCount)"
  1129. src="../assets/icon/thirdToolList/trainPlatform.png"
  1130. alt
  1131. />
  1132. <div style="margin: 5px 0">{{ lang.ssTrainingServer }}</div>
  1133. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1134. style="position: absolute;right: 33px;top: -30px;">
  1135. {{ lang.ssAnalyze }}
  1136. </div>
  1137. </div>
  1138. <div v-if="tooC == 16">
  1139. <img
  1140. @click="addTools(tooC, toolIndex, taskCount)"
  1141. src="../assets/icon/thirdToolList/work.png"
  1142. alt
  1143. />
  1144. <div style="margin: 5px 0">{{ lang.ssHomework }}</div>
  1145. </div>
  1146. <div v-if="tooC == 50">
  1147. <img
  1148. @click="addTools(tooC, toolIndex, taskCount)"
  1149. src="../assets/icon/thirdToolList/plwork.png"
  1150. alt
  1151. />
  1152. <div style="margin: 5px 0">{{ lang.ssBatchUpload }}</div>
  1153. </div>
  1154. <div v-if="tooC == 21">
  1155. <img
  1156. @click="addTools(tooC, toolIndex, taskCount)"
  1157. src="../assets/icon/fourthToolList/program.png"
  1158. alt
  1159. />
  1160. <div style="margin: 5px 0">{{ lang.ssAiotBlockly }}</div>
  1161. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1162. style="position: absolute;right: 33px;top: -30px;">
  1163. {{ lang.ssAnalyze }}
  1164. </div>
  1165. </div>
  1166. <!-- <div v-if="tooC == 22">
  1167. <img
  1168. @click="addTools(tooC, toolIndex, taskCount)"
  1169. src="../assets/icon/fourthToolList/program.png"
  1170. alt
  1171. />
  1172. <div style="margin: 5px 0">{{ lang.ssAiExperience }}</div>
  1173. </div> -->
  1174. <div v-if="tooC == 23">
  1175. <img
  1176. @click="addTools(tooC, toolIndex, taskCount)"
  1177. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1178. alt
  1179. />
  1180. <div style="margin: 5px 0">AI Python</div>
  1181. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1182. style="position: absolute;right: 33px;top: -30px;">
  1183. {{ lang.ssAnalyze }}
  1184. </div>
  1185. </div>
  1186. <div v-if="tooC == 24">
  1187. <img
  1188. @click="addTools(tooC, toolIndex, taskCount)"
  1189. src="../assets/icon/fourthToolList/AIprogram.png"
  1190. alt
  1191. />
  1192. <div style="margin: 5px 0">AI Blockly</div>
  1193. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1194. style="position: absolute;right: 33px;top: -30px;">
  1195. {{ lang.ssAnalyze }}
  1196. </div>
  1197. </div>
  1198. <div v-if="tooC == 25">
  1199. <img
  1200. @click="addTools(tooC, toolIndex, taskCount)"
  1201. src="../assets/icon/thirdToolList/evalua.png"
  1202. alt
  1203. />
  1204. <div style="margin: 5px 0">{{ lang.ssGoalManage }}</div>
  1205. </div>
  1206. <div v-if="tooC == 31">
  1207. <img
  1208. @click="addTools(tooC, toolIndex, taskCount)"
  1209. src="../assets/icon/secondToolList/networkPanel.png"
  1210. alt
  1211. />
  1212. <div style="margin: 5px 0">{{ lang.ssMathBoard }}</div>
  1213. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1214. style="position: absolute;right: 33px;top: -30px;">
  1215. {{ lang.ssAnalyze }}
  1216. </div>
  1217. </div>
  1218. <div v-if="tooC == 28">
  1219. <img
  1220. @click="addTools(tooC, toolIndex, taskCount)"
  1221. src="../assets/icon/secondToolList/translation.png"
  1222. alt
  1223. />
  1224. <div style="margin: 5px 0">{{ lang.ssTranslate }}</div>
  1225. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1226. style="position: absolute;right: 33px;top: -30px;">
  1227. {{ lang.ssAnalyze }}
  1228. </div>
  1229. </div>
  1230. <div v-if="tooC == 37">
  1231. <img
  1232. @click="addTools(tooC, toolIndex, taskCount)"
  1233. src="../assets/icon/secondToolList/mohe.png"
  1234. alt
  1235. />
  1236. <div style="margin: 5px 0">{{ lang.ssMohe }}</div>
  1237. </div>
  1238. <div v-if="tooC == 38">
  1239. <img
  1240. @click="addTools(tooC, toolIndex, taskCount)"
  1241. src="../assets/icon/secondToolList/24game.png"
  1242. alt
  1243. />
  1244. <div style="margin: 5px 0">{{ lang.ss24Game }}</div>
  1245. </div>
  1246. <div v-if="tooC == 39">
  1247. <img
  1248. @click="addTools(tooC, toolIndex, taskCount)"
  1249. src="../assets/icon/secondToolList/GeoGebra.png"
  1250. alt
  1251. />
  1252. <div style="margin: 5px 0">GeoGebra</div>
  1253. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1254. style="position: absolute;right: 33px;top: -30px;">
  1255. {{ lang.ssAnalyze }}
  1256. </div>
  1257. </div>
  1258. <div v-if="tooC == 32">
  1259. <img
  1260. @click="addTools(tooC, toolIndex, taskCount)"
  1261. src="../assets/icon/thirdToolList/code.png"
  1262. alt
  1263. />
  1264. <div style="margin: 5px 0">{{ lang.ssCodeEdit }}</div>
  1265. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1266. style="position: absolute;right: 153px;top: -42px;">
  1267. {{ lang.ssAnalyze }}
  1268. </div>
  1269. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1270. style="position: absolute;left: 110px;bottom: 30px;">
  1271. {{ lang.ssUpFile }}
  1272. <input type="file" accept="*" style="display: none"
  1273. @change="beforeUpload1($event, 7, toolIndex)" />
  1274. </div> -->
  1275. </div>
  1276. <div v-if="tooC == 40">
  1277. <img
  1278. @click="addTools(tooC, toolIndex, taskCount)"
  1279. src="../assets/icon/secondToolList/eval.png"
  1280. alt
  1281. />
  1282. <div style="margin: 5px 0">{{ lang.ssPersonalEval }}</div>
  1283. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1284. style="position: absolute;right: 33px;top: -30px;">
  1285. {{ lang.ssAnalyze }}
  1286. </div>
  1287. </div>
  1288. <div v-if="tooC == 41">
  1289. <img
  1290. @click="addTools(tooC, toolIndex, taskCount)"
  1291. src="../assets/icon/thirdToolList/select.png"
  1292. alt
  1293. />
  1294. <div style="margin: 5px 0">{{ lang.ssMatch }}</div>
  1295. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1296. style="position: absolute;right: 33px;top: -30px;">
  1297. {{ lang.ssAnalyze }}
  1298. </div>
  1299. </div>
  1300. <div v-if="tooC == 44">
  1301. <img
  1302. @click="addTools(tooC, toolIndex, taskCount)"
  1303. src="../assets/icon/thirdToolList/hanClass.png"
  1304. alt
  1305. />
  1306. <div style="margin: 5px 0">{{ lang.ssHanziPalace }}</div>
  1307. </div>
  1308. <div v-if="tooC == 47">
  1309. <img
  1310. @click="addTools(tooC, toolIndex, taskCount)"
  1311. src="../assets/icon/fourthToolList/conSentences.png"
  1312. alt
  1313. />
  1314. <div style="margin: 5px 0">{{ lang.ssSort }}</div>
  1315. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1316. style="position: absolute;right: 33px;top: -30px;">
  1317. {{ lang.ssAnalyze }}
  1318. </div>
  1319. </div>
  1320. <div v-if="tooC == 48">
  1321. <img
  1322. @click="addTools(tooC, toolIndex, taskCount)"
  1323. src="../assets/icon/fourthToolList/table.png"
  1324. alt
  1325. />
  1326. <div style="margin: 5px 0">{{ lang.ssTable }}</div>
  1327. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1328. style="position: absolute;right: 33px;top: -30px;">
  1329. {{ lang.ssAnalyze }}
  1330. </div>
  1331. </div>
  1332. <div v-if="tooC == 52">
  1333. <img
  1334. @click="addTools(tooC, toolIndex, taskCount)"
  1335. src="../assets/icon/fourthToolList/text.png"
  1336. alt
  1337. />
  1338. <div style="margin: 5px 0">{{ lang.ssDocument }}</div>
  1339. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1340. style="position: absolute;right: 33px;top: -30px;">
  1341. {{ lang.ssAnalyze }}
  1342. </div>
  1343. </div>
  1344. <div v-if="tooC == 49">
  1345. <img
  1346. @click="addTools(tooC, toolIndex, taskCount)"
  1347. src="../assets/icon/fourthToolList/group.png"
  1348. alt
  1349. />
  1350. <div style="margin: 5px 0">{{ lang.ssStudentGroup }}</div>
  1351. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1352. style="position: absolute;right: 33px;top: -30px;">
  1353. {{ lang.ssAnalyze }}
  1354. </div>
  1355. </div>
  1356. <div v-if="tooC == 57">
  1357. <img
  1358. @click="addTools(tooC, toolIndex, taskCount)"
  1359. src="../assets/icon/fourthToolList/cocopi.png"
  1360. alt
  1361. />
  1362. <div style="margin: 5px 0">CocoPi</div>
  1363. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1364. style="position: absolute;right: 33px;top: -30px;">
  1365. {{ lang.ssAnalyze }}
  1366. </div>
  1367. </div>
  1368. <div v-if="tooC == 58">
  1369. <img
  1370. @click="addTools(tooC, toolIndex, taskCount)"
  1371. src="../assets/icon/fourthToolList/car.png"
  1372. alt
  1373. />
  1374. <div style="margin: 5px 0">{{ lang.ssSimulateDrive }}</div>
  1375. </div>
  1376. <div v-if="tooC == 59">
  1377. <img
  1378. @click="addTools(tooC, toolIndex, taskCount)"
  1379. src="../assets/icon/fourthToolList/lineSearch.png"
  1380. alt
  1381. />
  1382. <div style="margin: 5px 0">{{ lang.ssPathSearch }}</div>
  1383. </div>
  1384. <div v-if="tooC == 60">
  1385. <img
  1386. @click="addTools(tooC, toolIndex, taskCount)"
  1387. src="../assets/icon/fourthToolList/deepLearning.png"
  1388. alt
  1389. />
  1390. <div style="margin: 5px 0">{{ lang.ssDeepLearning }}</div>
  1391. </div>
  1392. <div v-if="tooC == 61">
  1393. <img
  1394. @click="addTools(tooC, toolIndex, taskCount)"
  1395. src="../assets/icon/fourthToolList/allHistory.png"
  1396. alt
  1397. />
  1398. <div style="margin: 5px 0">{{ lang.ssAllHistory }}</div>
  1399. </div>
  1400. <div v-if="tooC == 62">
  1401. <img
  1402. @click="addTools(tooC, toolIndex, taskCount)"
  1403. src="../assets/icon/fourthToolList/interVideo.png"
  1404. alt
  1405. />
  1406. <div style="margin: 5px 0">{{ lang.ssInteractiveVideo }}</div>
  1407. </div>
  1408. <div v-if="tooC == 63">
  1409. <img
  1410. @click="addTools(tooC, toolIndex, taskCount)"
  1411. src="../assets/icon/fourthToolList/Wood.png"
  1412. alt
  1413. />
  1414. <div style="margin: 5px 0">{{ lang.ssTurtle }}</div>
  1415. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1416. style="position: absolute;right: 33px;top: -30px;">
  1417. {{ lang.ssAnalyze }}
  1418. </div>
  1419. </div>
  1420. <div v-if="tooC == 71">
  1421. <img
  1422. @click="addTools(tooC, toolIndex, taskCount)"
  1423. src="../assets/icon/fourthToolList/chatgpt.png"
  1424. alt
  1425. />
  1426. <div style="margin: 5px 0">{{ lang.ssAiAgent }}</div>
  1427. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1428. style="position: absolute;right: 33px;top: -30px;">
  1429. {{ lang.ssAnalyze }}
  1430. </div>
  1431. </div>
  1432. <div v-if="tooC == 72">
  1433. <img
  1434. style="height: 85px;object-fit: cover;"
  1435. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1436. @click="addTools(tooC, toolIndex, taskCount)"
  1437. :src="tool.appJson.json.icon"
  1438. alt
  1439. />
  1440. <img
  1441. v-else
  1442. @click="addTools(tooC, toolIndex, taskCount)"
  1443. src="../assets/icon/firstToolList/appStore.png"
  1444. alt
  1445. />
  1446. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : lang.ssAppCenter" placement="top" effect="dark">
  1447. <!-- content to trigger tooltip here -->
  1448. <div class="Ovh">
  1449. {{tool.appJson && tool.appJson.name ? tool.appJson.name : lang.ssAppCenter}}
  1450. </div>
  1451. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1452. style="position: absolute;right: 33px;top: -30px;">
  1453. {{ lang.ssAnalyze }}
  1454. </div>
  1455. </el-tooltip>
  1456. </div>
  1457. <div v-if="tooC == 65">
  1458. <img
  1459. @click="addTools(tooC, toolIndex, taskCount)"
  1460. src="../assets/icon/firstToolList/pickPeople.png"
  1461. alt
  1462. />
  1463. <div style="margin: 5px 0">{{ lang.ssPickPerson }}</div>
  1464. </div>
  1465. <div v-if="tooC == 66">
  1466. <img
  1467. @click="addTools(tooC, toolIndex, taskCount)"
  1468. src="../assets/icon/secondToolList/formulaEdi.png"
  1469. alt
  1470. />
  1471. <div style="margin: 5px 0">{{ lang.ssFormula }}</div>
  1472. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1473. style="position: absolute;right: 33px;top: -30px;">
  1474. {{ lang.ssAnalyze }}
  1475. </div>
  1476. </div>
  1477. <div v-if="tooC == 67">
  1478. <img
  1479. @click="addTools(tooC, toolIndex, taskCount)"
  1480. src="../assets/icon/secondToolList/molStr.png"
  1481. alt
  1482. />
  1483. <div style="margin: 5px 0">{{ lang.ssMolecule }}</div>
  1484. </div>
  1485. <div v-if="tooC == 68">
  1486. <img
  1487. @click="addTools(tooC, toolIndex, taskCount)"
  1488. src="../assets/icon/secondToolList/timeAxis.png"
  1489. alt
  1490. />
  1491. <div style="margin: 5px 0">{{ lang.ssTimeline }}</div>
  1492. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1493. style="position: absolute;right: 33px;top: -30px;">
  1494. {{ lang.ssAnalyze }}
  1495. </div> -->
  1496. </div>
  1497. <div v-if="tooC == 69">
  1498. <img
  1499. @click="addTools(tooC, toolIndex, taskCount)"
  1500. src="../assets/icon/secondToolList/english.png"
  1501. alt
  1502. />
  1503. <div style="margin: 5px 0">{{ lang.ssEnglishWrite }}</div>
  1504. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1505. style="position: absolute;right: 33px;top: -30px;">
  1506. {{ lang.ssAnalyze }}
  1507. </div>
  1508. </div>
  1509. <div v-if="tooC == 70">
  1510. <img
  1511. @click="addTools(tooC, toolIndex, taskCount)"
  1512. src="../assets/icon/thirdToolList/englishVoice.png"
  1513. alt
  1514. />
  1515. <div style="margin: 5px 0">{{ lang.ssEnglishSpeak }}</div>
  1516. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1517. style="position: absolute;right: 33px;top: -30px;">
  1518. {{ lang.ssAnalyze }}
  1519. </div>
  1520. </div>
  1521. </div>
  1522. </div>
  1523. </div>
  1524. <div class="tooldetail renderedFor" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1525. <!-- <div class="toolTitle">工具描述</div> -->
  1526. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1527. <div style="height:100%;"
  1528. v-html="renderedFormula(tool.toolDetail)"
  1529. v-if="toolDetailIndex != toolIndex"
  1530. ></div>
  1531. <div v-else @click.stop="" style="height:100%;">
  1532. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" :placeholder="lang.ssEnterTaskDesc" v-model="updateToolDetailInner"></textarea>
  1533. </div>
  1534. </div>
  1535. <el-button
  1536. type="primary"
  1537. v-if="tool.tool[0] == 32"
  1538. style="position: absolute; right: 30px; top: -45px"
  1539. @click="addImg($event)"
  1540. >{{ lang.ssUploadHomework }}<input
  1541. type="file"
  1542. accept="*"
  1543. style="display: none"
  1544. @change="beforeUpload1($event, 7, toolIndex)"
  1545. /></el-button>
  1546. <el-button
  1547. type="primary"
  1548. v-if="tool.tool[0] == 15"
  1549. style="position: absolute; right: 30px; top: -45px"
  1550. @click="openWordCloud(toolIndex)"
  1551. >{{ lang.ssGenerateWordCloud }}
  1552. </el-button>
  1553. <el-button
  1554. type="primary"
  1555. v-if="
  1556. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1557. "
  1558. style="position: absolute; right: 30px; top: -45px"
  1559. @click="uploadWorks(toolIndex)"
  1560. >{{ lang.ssExportHomework }}
  1561. </el-button>
  1562. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1563. position: absolute;
  1564. right: 30px;
  1565. transform: translateY(-130%);
  1566. " @click="addImg($event)">{{ lang.ssUploadHomework }}<input type="file" accept="*" style="display: none"
  1567. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1568. </div>
  1569. <div
  1570. v-if="
  1571. tType &&
  1572. tType == 2 &&
  1573. !sIsOpen &&
  1574. tool.tool.indexOf(16) != -1
  1575. "
  1576. class="worksBox"
  1577. >
  1578. <div
  1579. class="zuoyeYulan"
  1580. v-if="workStudent[toolIndex].length > 0"
  1581. >
  1582. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1583. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1584. </div>
  1585. <div
  1586. class="worksDetailBox"
  1587. v-if="workStudent[toolIndex].length > 0"
  1588. >
  1589. <div
  1590. class="works"
  1591. style="
  1592. width: 200px;
  1593. height: 140px;
  1594. margin: 10px 10px 10px 0;
  1595. box-shadow: 0 0 6px 1px #dfdada;
  1596. "
  1597. v-for="(w, wIndex) in workStudent[toolIndex]"
  1598. :key="wIndex"
  1599. >
  1600. <div class="workImg" v-if="w.type == 0">
  1601. <img
  1602. :src="w.works"
  1603. @click="previewImg(w.works,w)"
  1604. alt
  1605. />
  1606. <div
  1607. class="answerScore"
  1608. v-if="w.score"
  1609. @click.stop="openScore(w)"
  1610. :class="{
  1611. rightW:
  1612. w.userid == userid || tType == 1 || tType == 4,
  1613. }"
  1614. >
  1615. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1616. </div>
  1617. <div
  1618. class="answerScore"
  1619. @click.stop="openScore(w)"
  1620. v-else-if="courseDetail.userid == userid"
  1621. :class="{
  1622. rightW:
  1623. w.userid == userid || tType == 1 || tType == 4,
  1624. }"
  1625. >
  1626. {{ lang.ssMarkScore }}
  1627. </div>
  1628. <img
  1629. class="deleteImg"
  1630. src="../assets/deleteworks.png"
  1631. v-if="
  1632. w.userid == userid || tType == 1 || tType == 4
  1633. "
  1634. @click.stop="deleteWorks(w.wid)"
  1635. alt
  1636. />
  1637. </div>
  1638. <div class="workImg" v-if="w.type == 1">
  1639. <img :src="word" @click="openFile(w.works,w)" alt />
  1640. <div
  1641. class="answerScore"
  1642. v-if="w.score"
  1643. @click.stop="openScore(w)"
  1644. :class="{
  1645. rightW:
  1646. w.userid == userid || tType == 1 || tType == 4,
  1647. }"
  1648. >
  1649. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1650. </div>
  1651. <div
  1652. class="answerScore"
  1653. @click.stop="openScore(w)"
  1654. v-else-if="courseDetail.userid == userid"
  1655. :class="{
  1656. rightW:
  1657. w.userid == userid || tType == 1 || tType == 4,
  1658. }"
  1659. >
  1660. {{ lang.ssMarkScore }}
  1661. </div>
  1662. <img
  1663. class="deleteImg"
  1664. src="../assets/deleteworks.png"
  1665. v-if="
  1666. w.userid == userid || tType == 1 || tType == 4
  1667. "
  1668. @click.stop="deleteWorks(w.wid)"
  1669. alt
  1670. />
  1671. </div>
  1672. <div class="workImg" v-if="w.type == 3">
  1673. <img
  1674. style="cursor: pointer"
  1675. :src="video"
  1676. @click="openVideo(w)"
  1677. alt
  1678. />
  1679. <div
  1680. class="answerScore"
  1681. v-if="w.score"
  1682. @click.stop="openScore(w)"
  1683. :class="{
  1684. rightW:
  1685. w.userid == userid || tType == 1 || tType == 4,
  1686. }"
  1687. >
  1688. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1689. </div>
  1690. <div
  1691. class="answerScore"
  1692. @click.stop="openScore(w)"
  1693. v-else-if="courseDetail.userid == userid"
  1694. :class="{
  1695. rightW:
  1696. w.userid == userid || tType == 1 || tType == 4,
  1697. }"
  1698. >
  1699. {{ lang.ssMarkScore }}
  1700. </div>
  1701. <img
  1702. class="deleteImg"
  1703. src="../assets/deleteworks.png"
  1704. v-if="
  1705. w.userid == userid || tType == 1 || tType == 4
  1706. "
  1707. @click.stop="deleteWorks(w.wid)"
  1708. alt
  1709. />
  1710. </div>
  1711. <div class="workImg" v-if="w.type == 12">
  1712. <img
  1713. style="cursor: pointer"
  1714. :src="word2"
  1715. @click="downloadFile(w.works,w.userid)"
  1716. alt
  1717. />
  1718. <div
  1719. class="answerScore"
  1720. v-if="w.score"
  1721. @click.stop="openScore(w)"
  1722. :class="{
  1723. rightW:
  1724. w.userid == userid || tType == 1 || tType == 4,
  1725. }"
  1726. >
  1727. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1728. </div>
  1729. <div
  1730. class="answerScore"
  1731. @click.stop="openScore(w)"
  1732. v-else-if="courseDetail.userid == userid"
  1733. :class="{
  1734. rightW:
  1735. w.userid == userid || tType == 1 || tType == 4,
  1736. }"
  1737. >
  1738. {{ lang.ssMarkScore }}
  1739. </div>
  1740. <img
  1741. class="deleteImg"
  1742. src="../assets/deleteworks.png"
  1743. v-if="
  1744. w.userid == userid || tType == 1 || tType == 4
  1745. "
  1746. @click.stop="deleteWorks(w.wid)"
  1747. alt
  1748. />
  1749. </div>
  1750. <div class="worksName">
  1751. <div>{{ w.sName }}</div>
  1752. </div>
  1753. </div>
  1754. </div>
  1755. </div>
  1756. <div
  1757. v-if="
  1758. tType &&
  1759. tType == 2 &&
  1760. !sIsOpen &&
  1761. tool.tool.indexOf(32) != -1
  1762. "
  1763. class="worksBox"
  1764. >
  1765. <div
  1766. class="zuoyeYulan"
  1767. v-if="workStudent[toolIndex].length > 0"
  1768. >
  1769. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1770. </div>
  1771. <div
  1772. class="worksDetailBox"
  1773. v-if="workStudent[toolIndex].length > 0"
  1774. >
  1775. <div
  1776. class="works"
  1777. style="
  1778. width: 200px;
  1779. height: 140px;
  1780. margin: 10px 10px 10px 0;
  1781. box-shadow: 0 0 6px 1px #dfdada;
  1782. "
  1783. v-for="(w, wIndex) in workStudent[toolIndex]"
  1784. :key="wIndex"
  1785. >
  1786. <div class="workImg">
  1787. <img
  1788. :src="word2"
  1789. @click="downloadFile(w.works,w.userid)"
  1790. alt
  1791. />
  1792. <div
  1793. class="answerScore"
  1794. v-if="w.score"
  1795. @click.stop="openScore(w)"
  1796. :class="{
  1797. rightW:
  1798. w.userid == userid || tType == 1 || tType == 4,
  1799. }"
  1800. >
  1801. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1802. </div>
  1803. <div
  1804. class="answerScore"
  1805. @click.stop="openScore(w)"
  1806. v-else-if="courseDetail.userid == userid"
  1807. :class="{
  1808. rightW:
  1809. w.userid == userid || tType == 1 || tType == 4,
  1810. }"
  1811. >
  1812. {{ lang.ssMarkScore }}
  1813. </div>
  1814. <img
  1815. class="deleteImg"
  1816. src="../assets/deleteworks.png"
  1817. v-if="
  1818. w.userid == userid || tType == 1 || tType == 4
  1819. "
  1820. @click.stop="deleteWorks(w.wid)"
  1821. alt
  1822. />
  1823. </div>
  1824. <div class="worksName">
  1825. <div>{{ w.sName }}</div>
  1826. </div>
  1827. </div>
  1828. </div>
  1829. </div>
  1830. <div
  1831. v-if="
  1832. tType &&
  1833. tType == 2 &&
  1834. !sIsOpen &&
  1835. tool.tool.indexOf(57) != -1
  1836. "
  1837. class="worksBox"
  1838. >
  1839. <div
  1840. class="zuoyeYulan"
  1841. v-if="workStudent[toolIndex].length > 0"
  1842. >
  1843. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1844. </div>
  1845. <div
  1846. class="worksDetailBox"
  1847. v-if="workStudent[toolIndex].length > 0"
  1848. >
  1849. <div
  1850. class="works"
  1851. style="
  1852. width: 200px;
  1853. height: 140px;
  1854. margin: 10px 10px 10px 0;
  1855. box-shadow: 0 0 6px 1px #dfdada;
  1856. "
  1857. v-for="(w, wIndex) in workStudent[toolIndex]"
  1858. :key="wIndex"
  1859. >
  1860. <div class="workImg">
  1861. <img
  1862. :src="word2"
  1863. @click="downloadFile(w.works,w.userid)"
  1864. v-if="w.type == 12"
  1865. alt
  1866. />
  1867. <img
  1868. :src="word2"
  1869. @click="
  1870. openCocoPi(57, toolIndex, w.userid, w.sName)
  1871. "
  1872. v-else-if="w.type == 15"
  1873. alt
  1874. />
  1875. <div
  1876. class="answerScore"
  1877. v-if="w.score"
  1878. @click.stop="openScore(w)"
  1879. :class="{
  1880. rightW:
  1881. w.userid == userid || tType == 1 || tType == 4,
  1882. }"
  1883. >
  1884. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1885. </div>
  1886. <div
  1887. class="answerScore"
  1888. @click.stop="openScore(w)"
  1889. v-else-if="courseDetail.userid == userid"
  1890. :class="{
  1891. rightW:
  1892. w.userid == userid || tType == 1 || tType == 4,
  1893. }"
  1894. >
  1895. {{ lang.ssMarkScore }}
  1896. </div>
  1897. <img
  1898. class="deleteImg"
  1899. src="../assets/deleteworks.png"
  1900. v-if="
  1901. w.userid == userid || tType == 1 || tType == 4
  1902. "
  1903. @click.stop="deleteWorks(w.wid)"
  1904. alt
  1905. />
  1906. </div>
  1907. <div class="worksName">
  1908. <div>{{ w.sName }}</div>
  1909. </div>
  1910. </div>
  1911. </div>
  1912. </div>
  1913. <div
  1914. v-if="
  1915. tType &&
  1916. tType == 2 &&
  1917. !sIsOpen &&
  1918. tool.tool.indexOf(4) != -1
  1919. "
  1920. class="worksBox"
  1921. >
  1922. <div
  1923. class="zuoyeYulan"
  1924. v-if="workStudent[toolIndex].length > 0"
  1925. >
  1926. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1927. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1928. </div>
  1929. <div
  1930. class="worksDetailBox"
  1931. v-if="workStudent[toolIndex].length > 0"
  1932. >
  1933. <div
  1934. class="isWorksName2"
  1935. v-for="(w, wIndex) in workStudent[toolIndex]"
  1936. :key="wIndex"
  1937. @click="
  1938. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1939. "
  1940. >
  1941. {{ w.sName }}
  1942. <img
  1943. class="deleteImg deleteImg2"
  1944. src="../assets/deleteworks.png"
  1945. v-if="w.userid == userid || tType == 1 || tType == 4"
  1946. @click.stop="deleteWorks(w.wid)"
  1947. alt
  1948. />
  1949. </div>
  1950. <!-- <div
  1951. class="works"
  1952. style="
  1953. width: 200px;
  1954. height: 140px;
  1955. border-radius: 10px;
  1956. box-shadow: 0 0 6px 1px #dfdada;
  1957. overflow: hidden;
  1958. "
  1959. v-for="(w, wIndex) in workStudent[toolIndex]"
  1960. :key="wIndex"
  1961. >
  1962. <div class="workImg">
  1963. <img
  1964. src="../assets/icon/works/noImg.png"
  1965. @click="
  1966. openTools(
  1967. 4,
  1968. toolIndex,
  1969. taskCount,
  1970. w.works,
  1971. w.sName
  1972. )
  1973. "
  1974. alt
  1975. />
  1976. </div>
  1977. <div class="worksName">
  1978. <div>{{ w.sName }}</div>
  1979. <div>{{ w.time }}</div>
  1980. </div>
  1981. </div> -->
  1982. </div>
  1983. </div>
  1984. <div
  1985. v-if="
  1986. tType &&
  1987. ((tType == 2 && sIsOpen == true) ||
  1988. tType == 1 ||
  1989. tType == 4) &&
  1990. tool.tool.indexOf(62) != -1
  1991. "
  1992. class="worksBox"
  1993. >
  1994. <div
  1995. class="zuoyeYulan"
  1996. v-if="
  1997. worksStudent.length &&
  1998. worksStudent[toolIndex].length > 0
  1999. "
  2000. >
  2001. <div class="worksTop">
  2002. <div>{{ lang.ssHomeworkPreview }}</div>
  2003. <div
  2004. class="corOpen"
  2005. @click="contract(toolIndex)"
  2006. v-if="
  2007. (isCloseList[toolIndex].isCloseBoolean) &&
  2008. isCloseList[toolIndex].isClose == 0
  2009. "
  2010. >
  2011. {{ lang.ssFold }}
  2012. </div>
  2013. <div
  2014. class="corOpen"
  2015. @click="contract(toolIndex)"
  2016. v-if="isCloseList[toolIndex].isClose == 1"
  2017. >
  2018. {{ lang.ssExpand }}
  2019. </div>
  2020. </div>
  2021. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2022. </div>
  2023. <div>
  2024. <div
  2025. :id="'tool-' + toolIndex"
  2026. :style="{
  2027. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2028. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2029. }"
  2030. class="worksDetailBox"
  2031. v-if="
  2032. worksStudent.length &&
  2033. worksStudent[toolIndex].length > 0
  2034. "
  2035. >
  2036. <div
  2037. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2038. :key="wIndex"
  2039. class="isWorksName2"
  2040. @click="
  2041. openTools(
  2042. 62,
  2043. toolIndex,
  2044. taskCount,
  2045. w.works,
  2046. w.sName
  2047. )
  2048. "
  2049. >
  2050. {{ w.sName }}
  2051. <img
  2052. class="deleteImg deleteImg2"
  2053. src="../assets/deleteworks.png"
  2054. v-if="
  2055. w.userid == userid || tType == 1 || tType == 4
  2056. "
  2057. @click.stop="deleteWorks(w.wid)"
  2058. alt
  2059. />
  2060. </div>
  2061. </div>
  2062. </div>
  2063. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2064. {{ lang.ssNotSubmitted }}
  2065. </div>
  2066. <div
  2067. class="noWorksS"
  2068. v-if="noWorksS && noWorksS[toolIndex].length"
  2069. >
  2070. <div
  2071. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2072. :key="sIndex"
  2073. class="noWorksName"
  2074. >
  2075. <el-tooltip effect="dark" :content="s.student" placement="top">
  2076. <span>{{ s.student }}</span>
  2077. </el-tooltip>
  2078. </div>
  2079. </div>
  2080. </div>
  2081. <div
  2082. v-if="
  2083. tType &&
  2084. tType == 2 &&
  2085. !sIsOpen &&
  2086. tool.tool.indexOf(62) != -1
  2087. "
  2088. class="worksBox"
  2089. >
  2090. <div
  2091. class="zuoyeYulan"
  2092. v-if="workStudent[toolIndex].length > 0"
  2093. >
  2094. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2095. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2096. </div>
  2097. <div
  2098. class="worksDetailBox"
  2099. v-if="workStudent[toolIndex].length > 0"
  2100. >
  2101. <div
  2102. class="isWorksName2"
  2103. v-for="(w, wIndex) in workStudent[toolIndex]"
  2104. :key="wIndex"
  2105. @click="
  2106. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2107. "
  2108. >
  2109. {{ w.sName }}
  2110. <img
  2111. class="deleteImg deleteImg2"
  2112. src="../assets/deleteworks.png"
  2113. v-if="w.userid == userid || tType == 1 || tType == 4"
  2114. @click.stop="deleteWorks(w.wid)"
  2115. alt
  2116. />
  2117. </div>
  2118. </div>
  2119. </div>
  2120. <div
  2121. v-if="
  2122. tType &&
  2123. tType == 2 &&
  2124. !sIsOpen &&
  2125. tool.tool.indexOf(45) != -1
  2126. "
  2127. class="worksBox"
  2128. >
  2129. <div
  2130. class="zuoyeYulan"
  2131. v-if="workStudent[toolIndex].length > 0"
  2132. >
  2133. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2134. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2135. </div>
  2136. <div
  2137. class="worksDetailBox"
  2138. v-if="workStudent[toolIndex].length > 0"
  2139. >
  2140. <div
  2141. class="isWorksName2"
  2142. v-for="(w, wIndex) in workStudent[toolIndex]"
  2143. :key="wIndex"
  2144. @click="
  2145. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2146. "
  2147. >
  2148. {{ w.sName }}
  2149. <img
  2150. class="deleteImg deleteImg2"
  2151. src="../assets/deleteworks.png"
  2152. v-if="w.userid == userid || tType == 1 || tType == 4"
  2153. @click.stop="deleteWorks(w.wid)"
  2154. alt
  2155. />
  2156. </div>
  2157. </div>
  2158. </div>
  2159. <div
  2160. v-if="
  2161. tType &&
  2162. tType == 2 &&
  2163. !sIsOpen &&
  2164. tool.tool.indexOf(69) != -1
  2165. "
  2166. class="worksBox"
  2167. >
  2168. <div
  2169. class="zuoyeYulan"
  2170. v-if="workStudent[toolIndex].length > 0"
  2171. >
  2172. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2173. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2174. </div>
  2175. <div
  2176. class="worksDetailBox"
  2177. v-if="workStudent[toolIndex].length > 0"
  2178. >
  2179. <div
  2180. class="isWorksName2"
  2181. v-for="(w, wIndex) in workStudent[toolIndex]"
  2182. :key="wIndex"
  2183. @click="
  2184. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2185. "
  2186. >
  2187. {{ w.sName }}
  2188. <img
  2189. class="deleteImg deleteImg2"
  2190. src="../assets/deleteworks.png"
  2191. v-if="w.userid == userid || tType == 1 || tType == 4"
  2192. @click.stop="deleteWorks(w.wid)"
  2193. alt
  2194. />
  2195. </div>
  2196. </div>
  2197. </div>
  2198. <div
  2199. v-if="
  2200. tType &&
  2201. tType == 2 &&
  2202. !sIsOpen &&
  2203. tool.tool.indexOf(15) != -1
  2204. "
  2205. class="worksBox"
  2206. >
  2207. <div
  2208. class="zuoyeYulan"
  2209. v-if="workStudent[toolIndex].length > 0"
  2210. >
  2211. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2212. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2213. </div>
  2214. <div
  2215. class="worksDetailBox"
  2216. v-if="workStudent[toolIndex].length > 0"
  2217. >
  2218. <div
  2219. class="works"
  2220. v-for="(w, wIndex) in workStudent[toolIndex]"
  2221. :key="wIndex"
  2222. >
  2223. <div class="workImg">
  2224. <!-- <img
  2225. src="../assets/icon/works/noImg.png"
  2226. @click="openTools(15, toolIndex, taskCount, w.works)"
  2227. alt=""
  2228. />-->
  2229. <div class="answerBg">
  2230. <!-- <div>{{ w.sName }}</div> -->
  2231. <el-tooltip
  2232. class="item"
  2233. effect="light"
  2234. :content="JSON.parse(w.works)[0].answer"
  2235. placement="top"
  2236. >
  2237. <div class="answerContent">
  2238. {{ JSON.parse(w.works)[0].answer }}
  2239. </div>
  2240. </el-tooltip>
  2241. <div
  2242. class="answerScore"
  2243. v-if="w.score"
  2244. @click.stop="openScore(w)"
  2245. :class="{
  2246. rightW:
  2247. w.userid == userid ||
  2248. tType == 1 ||
  2249. tType == 4,
  2250. }"
  2251. >
  2252. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2253. </div>
  2254. <div
  2255. class="answerScore"
  2256. @click.stop="openScore(w)"
  2257. v-else-if="courseDetail.userid == userid"
  2258. :class="{
  2259. rightW:
  2260. w.userid == userid ||
  2261. tType == 1 ||
  2262. tType == 4,
  2263. }"
  2264. >
  2265. {{ lang.ssMarkScore }}
  2266. </div>
  2267. <img
  2268. class="deleteImg"
  2269. src="../assets/deleteworks.png"
  2270. v-if="
  2271. w.userid == userid || tType == 1 || tType == 4
  2272. "
  2273. @click.stop="deleteWorks(w.wid)"
  2274. alt
  2275. />
  2276. </div>
  2277. <div class="comment">
  2278. <div class="worksName">
  2279. <div>{{ w.sName }}</div>
  2280. </div>
  2281. </div>
  2282. </div>
  2283. </div>
  2284. </div>
  2285. </div>
  2286. <div
  2287. v-if="
  2288. tType &&
  2289. tType == 2 &&
  2290. !sIsOpen &&
  2291. tool.tool.indexOf(1) != -1
  2292. "
  2293. class="worksBox"
  2294. >
  2295. <div
  2296. class="zuoyeYulan"
  2297. v-if="workStudent[toolIndex].length > 0"
  2298. >
  2299. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2300. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2301. </div>
  2302. <div
  2303. class="worksDetailBox"
  2304. v-if="workStudent[toolIndex].length > 0"
  2305. >
  2306. <div
  2307. class="works"
  2308. style="
  2309. width: 200px;
  2310. height: 140px;
  2311. margin: 10px 10px 10px 0;
  2312. box-shadow: 0 0 6px 1px #dfdada;
  2313. "
  2314. v-for="(w, wIndex) in workStudent[toolIndex]"
  2315. :key="wIndex"
  2316. >
  2317. <div class="workImg">
  2318. <img
  2319. :src="w.works"
  2320. @click="previewImg(w.works,w)"
  2321. alt
  2322. />
  2323. <div
  2324. class="answerScore"
  2325. v-if="w.score"
  2326. @click.stop="openScore(w)"
  2327. :class="{
  2328. rightW:
  2329. w.userid == userid || tType == 1 || tType == 4,
  2330. }"
  2331. >
  2332. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2333. </div>
  2334. <div
  2335. class="answerScore"
  2336. @click.stop="openScore(w)"
  2337. v-else-if="courseDetail.userid == userid"
  2338. :class="{
  2339. rightW:
  2340. w.userid == userid || tType == 1 || tType == 4,
  2341. }"
  2342. >
  2343. {{ lang.ssMarkScore }}
  2344. </div>
  2345. <img
  2346. class="deleteImg"
  2347. src="../assets/deleteworks.png"
  2348. v-if="
  2349. w.userid == userid || tType == 1 || tType == 4
  2350. "
  2351. @click.stop="deleteWorks(w.wid)"
  2352. alt
  2353. />
  2354. </div>
  2355. <div class="worksName">
  2356. <div>{{ w.sName }}</div>
  2357. </div>
  2358. </div>
  2359. </div>
  2360. </div>
  2361. <div
  2362. v-if="
  2363. tType &&
  2364. tType == 2 &&
  2365. !sIsOpen &&
  2366. tool.tool.indexOf(3) != -1
  2367. "
  2368. class="worksBox"
  2369. >
  2370. <div
  2371. class="zuoyeYulan"
  2372. v-if="workStudent[toolIndex].length > 0"
  2373. >
  2374. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2375. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2376. </div>
  2377. <div
  2378. class="worksDetailBox"
  2379. v-if="workStudent[toolIndex].length > 0"
  2380. >
  2381. <div
  2382. class="works"
  2383. style="
  2384. width: 200px;
  2385. height: 140px;
  2386. margin: 10px 10px 10px 0;
  2387. box-shadow: 0 0 6px 1px #dfdada;
  2388. "
  2389. v-for="(w, wIndex) in workStudent[toolIndex]"
  2390. :key="wIndex"
  2391. >
  2392. <div class="workImg">
  2393. <img
  2394. :src="w.works"
  2395. @click="previewImg(w.works,w)"
  2396. alt
  2397. />
  2398. <div
  2399. class="answerScore"
  2400. v-if="w.score"
  2401. @click.stop="openScore(w)"
  2402. :class="{
  2403. rightW:
  2404. w.userid == userid || tType == 1 || tType == 4,
  2405. }"
  2406. >
  2407. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2408. </div>
  2409. <div
  2410. class="answerScore"
  2411. @click.stop="openScore(w)"
  2412. v-else-if="courseDetail.userid == userid"
  2413. :class="{
  2414. rightW:
  2415. w.userid == userid || tType == 1 || tType == 4,
  2416. }"
  2417. >
  2418. {{ lang.ssMarkScore }}
  2419. </div>
  2420. <img
  2421. class="deleteImg"
  2422. src="../assets/deleteworks.png"
  2423. v-if="
  2424. w.userid == userid || tType == 1 || tType == 4
  2425. "
  2426. @click.stop="deleteWorks(w.wid)"
  2427. alt
  2428. />
  2429. </div>
  2430. <div class="worksName">
  2431. <div>{{ w.sName }}</div>
  2432. </div>
  2433. </div>
  2434. </div>
  2435. </div>
  2436. <div
  2437. v-if="
  2438. tType &&
  2439. tType == 2 &&
  2440. !sIsOpen &&
  2441. tool.tool.indexOf(6) != -1
  2442. "
  2443. class="worksBox"
  2444. >
  2445. <div
  2446. class="zuoyeYulan"
  2447. v-if="workStudent[toolIndex].length > 0"
  2448. >
  2449. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2450. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2451. </div>
  2452. <div
  2453. class="worksDetailBox"
  2454. v-if="workStudent[toolIndex].length > 0"
  2455. >
  2456. <div
  2457. class="works"
  2458. style="
  2459. width: 200px;
  2460. height: 140px;
  2461. margin: 10px 10px 10px 0;
  2462. box-shadow: 0 0 6px 1px #dfdada;
  2463. "
  2464. v-for="(w, wIndex) in workStudent[toolIndex]"
  2465. :key="wIndex"
  2466. >
  2467. <div class="workImg">
  2468. <img
  2469. :src="w.works"
  2470. @click="previewImg(w.works,w)"
  2471. alt
  2472. />
  2473. <div
  2474. class="answerScore"
  2475. v-if="w.score"
  2476. @click.stop="openScore(w)"
  2477. :class="{
  2478. rightW:
  2479. w.userid == userid || tType == 1 || tType == 4,
  2480. }"
  2481. >
  2482. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2483. </div>
  2484. <div
  2485. class="answerScore"
  2486. @click.stop="openScore(w)"
  2487. v-else-if="courseDetail.userid == userid"
  2488. :class="{
  2489. rightW:
  2490. w.userid == userid || tType == 1 || tType == 4,
  2491. }"
  2492. >
  2493. {{ lang.ssMarkScore }}
  2494. </div>
  2495. <img
  2496. class="deleteImg"
  2497. src="../assets/deleteworks.png"
  2498. v-if="
  2499. w.userid == userid || tType == 1 || tType == 4
  2500. "
  2501. @click.stop="deleteWorks(w.wid)"
  2502. alt
  2503. />
  2504. </div>
  2505. <div class="worksName">
  2506. <div>{{ w.sName }}</div>
  2507. </div>
  2508. </div>
  2509. </div>
  2510. </div>
  2511. <div
  2512. v-if="
  2513. tType &&
  2514. tType == 2 &&
  2515. !sIsOpen &&
  2516. tool.tool.indexOf(7) != -1
  2517. "
  2518. class="worksBox"
  2519. >
  2520. <div
  2521. class="zuoyeYulan"
  2522. v-if="workStudent[toolIndex].length > 0"
  2523. >
  2524. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2525. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2526. </div>
  2527. <div
  2528. class="worksDetailBox"
  2529. v-if="workStudent[toolIndex].length > 0"
  2530. >
  2531. <div
  2532. class="works"
  2533. style="
  2534. width: 200px;
  2535. height: 140px;
  2536. margin: 10px 10px 10px 0;
  2537. box-shadow: 0 0 6px 1px #dfdada;
  2538. "
  2539. v-for="(w, wIndex) in workStudent[toolIndex]"
  2540. :key="wIndex"
  2541. >
  2542. <div class="workImg">
  2543. <img
  2544. :src="w.works"
  2545. @click="previewImg(w.works,w)"
  2546. alt
  2547. />
  2548. <div
  2549. class="answerScore"
  2550. v-if="w.score"
  2551. @click.stop="openScore(w)"
  2552. :class="{
  2553. rightW:
  2554. w.userid == userid || tType == 1 || tType == 4,
  2555. }"
  2556. >
  2557. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2558. </div>
  2559. <div
  2560. class="answerScore"
  2561. @click.stop="openScore(w)"
  2562. v-else-if="courseDetail.userid == userid"
  2563. :class="{
  2564. rightW:
  2565. w.userid == userid || tType == 1 || tType == 4,
  2566. }"
  2567. >
  2568. {{ lang.ssMarkScore }}
  2569. </div>
  2570. <img
  2571. class="deleteImg"
  2572. src="../assets/deleteworks.png"
  2573. v-if="
  2574. w.userid == userid || tType == 1 || tType == 4
  2575. "
  2576. @click.stop="deleteWorks(w.wid)"
  2577. alt
  2578. />
  2579. </div>
  2580. <div class="worksName">
  2581. <div>{{ w.sName }}</div>
  2582. </div>
  2583. </div>
  2584. </div>
  2585. </div>
  2586. <div
  2587. v-if="
  2588. tType &&
  2589. tType == 2 &&
  2590. !sIsOpen &&
  2591. tool.tool.indexOf(26) != -1
  2592. "
  2593. class="worksBox"
  2594. >
  2595. <div
  2596. class="zuoyeYulan"
  2597. v-if="workStudent[toolIndex].length > 0"
  2598. >
  2599. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2600. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2601. </div>
  2602. <div
  2603. class="worksDetailBox"
  2604. v-if="workStudent[toolIndex].length > 0"
  2605. >
  2606. <div
  2607. class="works"
  2608. style="
  2609. width: 200px;
  2610. height: 140px;
  2611. margin: 10px 10px 10px 0;
  2612. box-shadow: 0 0 6px 1px #dfdada;
  2613. "
  2614. v-for="(w, wIndex) in workStudent[toolIndex]"
  2615. :key="wIndex"
  2616. >
  2617. <div class="workImg">
  2618. <img
  2619. :src="w.works"
  2620. @click="previewImg(w.works,w)"
  2621. alt
  2622. />
  2623. <img
  2624. class="deleteImg"
  2625. src="../assets/deleteworks.png"
  2626. v-if="
  2627. w.userid == userid || tType == 1 || tType == 4
  2628. "
  2629. @click.stop="deleteWorks(w.wid)"
  2630. alt
  2631. />
  2632. </div>
  2633. <div class="worksName">
  2634. <div>{{ w.sName }}</div>
  2635. </div>
  2636. </div>
  2637. </div>
  2638. </div>
  2639. <div
  2640. v-if="
  2641. tType &&
  2642. ((tType == 2 && sIsOpen == true) ||
  2643. tType == 1 ||
  2644. tType == 4) &&
  2645. tool.tool.indexOf(16) != -1
  2646. "
  2647. class="worksBox"
  2648. >
  2649. <div
  2650. class="zuoyeYulan"
  2651. v-if="
  2652. (worksStudent.length &&
  2653. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2654. "
  2655. >
  2656. <div class="worksTop">
  2657. <div>{{ lang.ssHomeworkPreview }}</div>
  2658. <div
  2659. class="corOpen"
  2660. @click="contract(toolIndex)"
  2661. v-if="
  2662. (isCloseList[toolIndex].isCloseBoolean) &&
  2663. isCloseList[toolIndex].isClose == 0
  2664. "
  2665. >
  2666. {{ lang.ssFold }}
  2667. </div>
  2668. <div
  2669. class="corOpen"
  2670. @click="contract(toolIndex)"
  2671. v-if="isCloseList[toolIndex].isClose == 1"
  2672. >
  2673. {{ lang.ssExpand }}
  2674. </div>
  2675. </div>
  2676. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2677. </div>
  2678. <div
  2679. class="group_workBox"
  2680. v-for="(g, gindex) in courseGroup.group"
  2681. :key="gindex"
  2682. >
  2683. <div class="group_box">
  2684. <div class="group_title">
  2685. <el-tooltip
  2686. class="item"
  2687. effect="light"
  2688. :content="g.name"
  2689. placement="top"
  2690. >
  2691. <div class="group_name">{{ g.name }}</div>
  2692. </el-tooltip>
  2693. </div>
  2694. <div
  2695. class="group_work"
  2696. v-if="
  2697. g.works &&
  2698. g.works.length &&
  2699. g.works[toolIndex].length
  2700. "
  2701. >
  2702. <div
  2703. class="works"
  2704. style="
  2705. width: 200px;
  2706. height: 140px;
  2707. margin: 10px 10px 10px 0;
  2708. border-radius: 15px;
  2709. box-shadow: 0 0 6px 1px #dfdada;
  2710. "
  2711. v-for="(w, wIndex) in g.works[toolIndex]"
  2712. :key="wIndex"
  2713. :class="w.type == 1 ? 'isTypeOne' : ''"
  2714. >
  2715. <div class="workImg" v-if="w.type == 0">
  2716. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2717. <img
  2718. :src="w.works"
  2719. @click="previewImg(w.works,w)"
  2720. alt
  2721. />
  2722. <div
  2723. class="answerScore"
  2724. v-if="w.score"
  2725. @click.stop="openScore(w)"
  2726. :class="{
  2727. rightW:
  2728. w.userid == userid ||
  2729. tType == 1 ||
  2730. tType == 4 ||
  2731. w.ateacher == userid,
  2732. }"
  2733. >
  2734. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2735. </div>
  2736. <div
  2737. class="answerScore"
  2738. @click.stop="openScore(w)"
  2739. v-else-if="courseDetail.userid == userid"
  2740. :class="{
  2741. rightW:
  2742. w.userid == userid ||
  2743. tType == 1 ||
  2744. tType == 4 ||
  2745. w.ateacher == userid,
  2746. }"
  2747. >
  2748. {{ lang.ssMarkScore }}
  2749. </div>
  2750. <img
  2751. class="deleteImg"
  2752. src="../assets/deleteworks.png"
  2753. v-if="
  2754. w.userid == userid || tType == 1 || tType == 4
  2755. "
  2756. @click.stop="deleteWorks(w.wid)"
  2757. alt
  2758. />
  2759. </div>
  2760. <div class="workImg" v-if="w.type == 1">
  2761. <img :src="word" @click="openFile(w.works,w)" alt />
  2762. <!-- @click="openFile(w.works)" -->
  2763. <div
  2764. class="answerScore"
  2765. v-if="w.score"
  2766. @click.stop="openScore(w)"
  2767. :class="{
  2768. rightW:
  2769. w.userid == userid ||
  2770. tType == 1 ||
  2771. tType == 4 ||
  2772. w.ateacher == userid,
  2773. }"
  2774. >
  2775. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2776. </div>
  2777. <div
  2778. class="answerScore"
  2779. @click.stop="openScore(w)"
  2780. v-else-if="courseDetail.userid == userid"
  2781. :class="{
  2782. rightW:
  2783. w.userid == userid ||
  2784. tType == 1 ||
  2785. tType == 4 ||
  2786. w.ateacher == userid,
  2787. }"
  2788. >
  2789. {{ lang.ssMarkScore }}
  2790. </div>
  2791. <img
  2792. class="deleteImg"
  2793. src="../assets/deleteworks.png"
  2794. v-if="
  2795. w.userid == userid || tType == 1 || tType == 4
  2796. "
  2797. @click.stop="deleteWorks(w.wid)"
  2798. alt
  2799. />
  2800. </div>
  2801. <div class="workImg" v-if="w.type == 3">
  2802. <img
  2803. style="cursor: pointer"
  2804. :src="video"
  2805. @click="openVideo(w)"
  2806. alt
  2807. />
  2808. <!-- @click="openVideo(w.works)" -->
  2809. <div
  2810. class="answerScore"
  2811. v-if="w.score"
  2812. @click.stop="openScore(w)"
  2813. :class="{
  2814. rightW:
  2815. w.userid == userid ||
  2816. tType == 1 ||
  2817. tType == 4 ||
  2818. w.ateacher == userid,
  2819. }"
  2820. >
  2821. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2822. </div>
  2823. <div
  2824. class="answerScore"
  2825. @click.stop="openScore(w)"
  2826. v-else-if="courseDetail.userid == userid"
  2827. :class="{
  2828. rightW:
  2829. w.userid == userid ||
  2830. tType == 1 ||
  2831. tType == 4 ||
  2832. w.ateacher == userid,
  2833. }"
  2834. >
  2835. {{ lang.ssMarkScore }}
  2836. </div>
  2837. <img
  2838. class="deleteImg"
  2839. src="../assets/deleteworks.png"
  2840. v-if="
  2841. w.userid == userid || tType == 1 || tType == 4
  2842. "
  2843. @click.stop="deleteWorks(w.wid)"
  2844. alt
  2845. />
  2846. </div>
  2847. <div class="workImg" v-if="w.type == 12">
  2848. <img
  2849. style="cursor: pointer"
  2850. :src="word2"
  2851. @click="downloadFile(w.works,w.userid)"
  2852. alt
  2853. />
  2854. <!-- @click="openVideo(w.works)" -->
  2855. <div
  2856. class="answerScore"
  2857. v-if="w.score"
  2858. @click.stop="openScore(w)"
  2859. :class="{
  2860. rightW:
  2861. w.userid == userid ||
  2862. tType == 1 ||
  2863. tType == 4 ||
  2864. w.ateacher == userid,
  2865. }"
  2866. >
  2867. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2868. </div>
  2869. <div
  2870. class="answerScore"
  2871. @click.stop="openScore(w)"
  2872. v-else-if="courseDetail.userid == userid"
  2873. :class="{
  2874. rightW:
  2875. w.userid == userid ||
  2876. tType == 1 ||
  2877. tType == 4 ||
  2878. w.ateacher == userid,
  2879. }"
  2880. >
  2881. {{ lang.ssMarkScore }}
  2882. </div>
  2883. <img
  2884. class="deleteImg"
  2885. src="../assets/deleteworks.png"
  2886. v-if="
  2887. w.userid == userid || tType == 1 || tType == 4
  2888. "
  2889. @click.stop="deleteWorks(w.wid)"
  2890. alt
  2891. />
  2892. </div>
  2893. <div class="comment" style="min-width: 200px">
  2894. <div class="worksName">
  2895. <div>{{ w.sName }}</div>
  2896. </div>
  2897. <div class="commentList">
  2898. <div class="commentList">
  2899. <div
  2900. class="commentImg"
  2901. @click="
  2902. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2903. "
  2904. >
  2905. <img
  2906. :src="w.isLikes == true ? likes : noLikes"
  2907. alt=""
  2908. />
  2909. </div>
  2910. <div>{{ w.likesCount }}</div>
  2911. </div>
  2912. <div
  2913. class="commentList"
  2914. style="margin-right: 15px"
  2915. >
  2916. <div
  2917. class="commentImg"
  2918. @click="
  2919. commentOther(
  2920. w,
  2921. toolIndex,
  2922. wIndex,
  2923. null,
  2924. g.id
  2925. )
  2926. "
  2927. >
  2928. <img
  2929. src="../assets/icon/comment/comment.png"
  2930. alt=""
  2931. />
  2932. </div>
  2933. <div>{{ w.commentCount }}</div>
  2934. </div>
  2935. </div>
  2936. </div>
  2937. </div>
  2938. </div>
  2939. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  2940. </div>
  2941. </div>
  2942. <div
  2943. :id="'tool-' + toolIndex"
  2944. :style="{
  2945. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2946. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2947. }"
  2948. class="worksDetailBox"
  2949. v-if="
  2950. worksStudent.length &&
  2951. worksStudent[toolIndex].length > 0
  2952. "
  2953. >
  2954. <div
  2955. class="works"
  2956. style="
  2957. width: 200px;
  2958. height: 140px;
  2959. margin: 10px 10px 10px 0;
  2960. border-radius: 15px;
  2961. box-shadow: 0 0 6px 1px #dfdada;
  2962. "
  2963. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2964. :key="wIndex"
  2965. :class="w.type == 1 ? 'isTypeOne' : ''"
  2966. >
  2967. <div class="workImg" v-if="w.type == 0">
  2968. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2969. <img
  2970. :src="w.works"
  2971. @click="previewImg(w.works,w)"
  2972. alt
  2973. />
  2974. <div
  2975. class="answerScore"
  2976. v-if="w.score"
  2977. @click.stop="openScore(w)"
  2978. :class="{
  2979. rightW:
  2980. w.userid == userid ||
  2981. tType == 1 ||
  2982. tType == 4 ||
  2983. w.ateacher == userid,
  2984. }"
  2985. >
  2986. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2987. </div>
  2988. <div
  2989. class="answerScore"
  2990. @click.stop="openScore(w)"
  2991. v-else-if="courseDetail.userid == userid"
  2992. :class="{
  2993. rightW:
  2994. w.userid == userid ||
  2995. tType == 1 ||
  2996. tType == 4 ||
  2997. w.ateacher == userid,
  2998. }"
  2999. >
  3000. {{ lang.ssMarkScore }}
  3001. </div>
  3002. <img
  3003. class="deleteImg"
  3004. src="../assets/deleteworks.png"
  3005. v-if="
  3006. w.userid == userid || tType == 1 || tType == 4
  3007. "
  3008. @click.stop="deleteWorks(w.wid)"
  3009. alt
  3010. />
  3011. </div>
  3012. <div class="workImg" v-if="w.type == 1">
  3013. <img :src="word" @click="openFile(w.works,w)" alt />
  3014. <!-- @click="openFile(w.works)" -->
  3015. <div
  3016. class="answerScore"
  3017. v-if="w.score"
  3018. @click.stop="openScore(w)"
  3019. :class="{
  3020. rightW:
  3021. w.userid == userid ||
  3022. tType == 1 ||
  3023. tType == 4 ||
  3024. w.ateacher == userid,
  3025. }"
  3026. >
  3027. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3028. </div>
  3029. <div
  3030. class="answerScore"
  3031. @click.stop="openScore(w)"
  3032. v-else-if="courseDetail.userid == userid"
  3033. :class="{
  3034. rightW:
  3035. w.userid == userid ||
  3036. tType == 1 ||
  3037. tType == 4 ||
  3038. w.ateacher == userid,
  3039. }"
  3040. >
  3041. {{ lang.ssMarkScore }}
  3042. </div>
  3043. <img
  3044. class="deleteImg"
  3045. src="../assets/deleteworks.png"
  3046. v-if="
  3047. w.userid == userid || tType == 1 || tType == 4
  3048. "
  3049. @click.stop="deleteWorks(w.wid)"
  3050. alt
  3051. />
  3052. </div>
  3053. <div class="workImg" v-if="w.type == 3">
  3054. <img
  3055. style="cursor: pointer"
  3056. :src="video"
  3057. @click="openVideo(w)"
  3058. alt
  3059. />
  3060. <!-- @click="openVideo(w.works)" -->
  3061. <div
  3062. class="answerScore"
  3063. v-if="w.score"
  3064. @click.stop="openScore(w)"
  3065. :class="{
  3066. rightW:
  3067. w.userid == userid ||
  3068. tType == 1 ||
  3069. tType == 4 ||
  3070. w.ateacher == userid,
  3071. }"
  3072. >
  3073. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3074. </div>
  3075. <div
  3076. class="answerScore"
  3077. @click.stop="openScore(w)"
  3078. v-else-if="courseDetail.userid == userid"
  3079. :class="{
  3080. rightW:
  3081. w.userid == userid ||
  3082. tType == 1 ||
  3083. tType == 4 ||
  3084. w.ateacher == userid,
  3085. }"
  3086. >
  3087. {{ lang.ssMarkScore }}
  3088. </div>
  3089. <img
  3090. class="deleteImg"
  3091. src="../assets/deleteworks.png"
  3092. v-if="
  3093. w.userid == userid || tType == 1 || tType == 4
  3094. "
  3095. @click.stop="deleteWorks(w.wid)"
  3096. alt
  3097. />
  3098. </div>
  3099. <div class="workImg" v-if="w.type == 12">
  3100. <img
  3101. style="cursor: pointer"
  3102. :src="word2"
  3103. @click="downloadFile(w.works,w.userid)"
  3104. alt
  3105. />
  3106. <!-- @click="openVideo(w.works)" -->
  3107. <div
  3108. class="answerScore"
  3109. v-if="w.score"
  3110. @click.stop="openScore(w)"
  3111. :class="{
  3112. rightW:
  3113. w.userid == userid ||
  3114. tType == 1 ||
  3115. tType == 4 ||
  3116. w.ateacher == userid,
  3117. }"
  3118. >
  3119. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3120. </div>
  3121. <div
  3122. class="answerScore"
  3123. @click.stop="openScore(w)"
  3124. v-else-if="courseDetail.userid == userid"
  3125. :class="{
  3126. rightW:
  3127. w.userid == userid ||
  3128. tType == 1 ||
  3129. tType == 4 ||
  3130. w.ateacher == userid,
  3131. }"
  3132. >
  3133. {{ lang.ssMarkScore }}
  3134. </div>
  3135. <img
  3136. class="deleteImg"
  3137. src="../assets/deleteworks.png"
  3138. v-if="
  3139. w.userid == userid || tType == 1 || tType == 4
  3140. "
  3141. @click.stop="deleteWorks(w.wid)"
  3142. alt
  3143. />
  3144. </div>
  3145. <div class="comment" style="min-width: 200px">
  3146. <div class="worksName">
  3147. <div>{{ w.sName }}</div>
  3148. </div>
  3149. <div class="commentList">
  3150. <div class="commentList">
  3151. <div
  3152. class="commentImg"
  3153. @click="
  3154. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3155. "
  3156. >
  3157. <img
  3158. :src="w.isLikes == true ? likes : noLikes"
  3159. alt=""
  3160. />
  3161. </div>
  3162. <div>{{ w.likesCount }}</div>
  3163. </div>
  3164. <div class="commentList" style="margin-right: 15px">
  3165. <div
  3166. class="commentImg"
  3167. @click="commentOther(w, toolIndex, wIndex)"
  3168. >
  3169. <img
  3170. src="../assets/icon/comment/comment.png"
  3171. alt=""
  3172. />
  3173. </div>
  3174. <div>{{ w.commentCount }}</div>
  3175. </div>
  3176. </div>
  3177. </div>
  3178. </div>
  3179. </div>
  3180. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3181. {{ lang.ssNotSubmitted }}
  3182. </div>
  3183. <div
  3184. class="noWorksS"
  3185. v-if="noWorksS && noWorksS[toolIndex].length"
  3186. >
  3187. <div
  3188. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3189. :key="sIndex"
  3190. class="noWorksName"
  3191. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3192. >
  3193. <el-tooltip effect="dark" :content="s.student" placement="top">
  3194. <span>{{ s.student }}</span>
  3195. </el-tooltip>
  3196. </div>
  3197. </div>
  3198. </div>
  3199. <div
  3200. v-if="
  3201. tType &&
  3202. ((tType == 2 && sIsOpen == true) ||
  3203. tType == 1 ||
  3204. tType == 4) &&
  3205. tool.tool.indexOf(70) != -1
  3206. "
  3207. class="worksBox"
  3208. >
  3209. <div
  3210. class="zuoyeYulan"
  3211. v-if="
  3212. (worksStudent.length &&
  3213. worksStudent[toolIndex].length > 0)
  3214. "
  3215. >
  3216. <div class="worksTop">
  3217. <div>{{ lang.ssHomeworkPreview }}</div>
  3218. <div
  3219. class="corOpen"
  3220. @click="contract(toolIndex)"
  3221. v-if="
  3222. (isCloseList[toolIndex].isCloseBoolean) &&
  3223. isCloseList[toolIndex].isClose == 0
  3224. "
  3225. >
  3226. {{ lang.ssFold }}
  3227. </div>
  3228. <div
  3229. class="corOpen"
  3230. @click="contract(toolIndex)"
  3231. v-if="isCloseList[toolIndex].isClose == 1"
  3232. >
  3233. {{ lang.ssExpand }}
  3234. </div>
  3235. </div>
  3236. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3237. </div>
  3238. <div
  3239. :id="'tool-' + toolIndex"
  3240. :style="{
  3241. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3242. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3243. }"
  3244. class="worksDetailBox"
  3245. v-if="
  3246. worksStudent.length &&
  3247. worksStudent[toolIndex].length > 0
  3248. "
  3249. >
  3250. <div
  3251. class="works"
  3252. style="
  3253. width: 200px;
  3254. height: 140px;
  3255. margin: 10px 10px 10px 0;
  3256. border-radius: 15px;
  3257. box-shadow: 0 0 6px 1px #dfdada;
  3258. "
  3259. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3260. :key="wIndex"
  3261. :class="w.type == 1 ? 'isTypeOne' : ''"
  3262. >
  3263. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3264. <img :src="word" alt />
  3265. <img
  3266. class="deleteImg"
  3267. src="../assets/deleteworks.png"
  3268. v-if="
  3269. w.userid == userid || tType == 1 || tType == 4
  3270. "
  3271. @click.stop="deleteWorks(w.wid)"
  3272. alt
  3273. />
  3274. </div>
  3275. <div class="comment" style="min-width: 200px">
  3276. <div class="worksName">
  3277. <div>{{ w.sName }}</div>
  3278. </div>
  3279. </div>
  3280. </div>
  3281. </div>
  3282. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3283. {{ lang.ssNotSubmitted }}
  3284. </div>
  3285. <div
  3286. class="noWorksS"
  3287. v-if="noWorksS && noWorksS[toolIndex].length"
  3288. >
  3289. <div
  3290. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3291. :key="sIndex"
  3292. class="noWorksName"
  3293. >
  3294. <el-tooltip effect="dark" :content="s.student" placement="top">
  3295. <span>{{ s.student }}</span>
  3296. </el-tooltip>
  3297. </div>
  3298. </div>
  3299. </div>
  3300. <div
  3301. v-if="
  3302. tType &&
  3303. tType == 2 &&
  3304. !sIsOpen &&
  3305. tool.tool.indexOf(70) != -1
  3306. "
  3307. class="worksBox"
  3308. >
  3309. <div
  3310. class="zuoyeYulan"
  3311. v-if="workStudent[toolIndex].length > 0"
  3312. >
  3313. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  3314. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3315. </div>
  3316. <div
  3317. class="worksDetailBox"
  3318. v-if="workStudent[toolIndex].length > 0"
  3319. >
  3320. <div
  3321. class="works"
  3322. style="
  3323. width: 200px;
  3324. height: 140px;
  3325. margin: 10px 10px 10px 0;
  3326. box-shadow: 0 0 6px 1px #dfdada;
  3327. "
  3328. v-for="(w, wIndex) in workStudent[toolIndex]"
  3329. :key="wIndex"
  3330. >
  3331. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3332. <img :src="word" alt />
  3333. <img
  3334. class="deleteImg"
  3335. src="../assets/deleteworks.png"
  3336. v-if="
  3337. w.userid == userid || tType == 1 || tType == 4
  3338. "
  3339. @click.stop="deleteWorks(w.wid)"
  3340. alt
  3341. />
  3342. </div>
  3343. <div class="worksName">
  3344. <div>{{ w.sName }}</div>
  3345. </div>
  3346. </div>
  3347. </div>
  3348. </div>
  3349. <div
  3350. v-if="
  3351. tType &&
  3352. ((tType == 2 && sIsOpen == true) ||
  3353. tType == 1 ||
  3354. tType == 4) &&
  3355. tool.tool.indexOf(32) != -1
  3356. "
  3357. class="worksBox"
  3358. >
  3359. <div
  3360. class="zuoyeYulan"
  3361. v-if="
  3362. worksStudent.length &&
  3363. worksStudent[toolIndex].length > 0
  3364. "
  3365. >
  3366. <div class="worksTop">
  3367. <div>{{ lang.ssHomeworkPreview }}</div>
  3368. <div
  3369. class="corOpen"
  3370. @click="contract(toolIndex)"
  3371. v-if="
  3372. (isCloseList[toolIndex].isCloseBoolean) &&
  3373. isCloseList[toolIndex].isClose == 0
  3374. "
  3375. >
  3376. {{ lang.ssFold }}
  3377. </div>
  3378. <div
  3379. class="corOpen"
  3380. @click="contract(toolIndex)"
  3381. v-if="isCloseList[toolIndex].isClose == 1"
  3382. >
  3383. {{ lang.ssExpand }}
  3384. </div>
  3385. </div>
  3386. </div>
  3387. <div
  3388. :id="'tool-' + toolIndex"
  3389. class="worksDetailBox"
  3390. :style="{
  3391. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3392. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3393. }"
  3394. v-if="
  3395. worksStudent.length &&
  3396. worksStudent[toolIndex].length > 0
  3397. "
  3398. >
  3399. <div
  3400. class="works"
  3401. style="
  3402. width: 200px;
  3403. height: 140px;
  3404. margin: 10px 10px 10px 0;
  3405. border-radius: 15px;
  3406. box-shadow: 0 0 6px 1px #dfdada;
  3407. "
  3408. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3409. :key="wIndex"
  3410. :class="w.type == 1 ? 'isTypeOne' : ''"
  3411. >
  3412. <div class="workImg">
  3413. <img
  3414. :src="word2"
  3415. @click="downloadFile(w.works,w.userid)"
  3416. alt
  3417. />
  3418. <div
  3419. class="answerScore"
  3420. v-if="w.score"
  3421. @click.stop="openScore(w)"
  3422. :class="{
  3423. rightW:
  3424. w.userid == userid ||
  3425. tType == 1 ||
  3426. tType == 4 ||
  3427. w.ateacher == userid,
  3428. }"
  3429. >
  3430. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3431. </div>
  3432. <div
  3433. class="answerScore"
  3434. @click.stop="openScore(w)"
  3435. v-else-if="courseDetail.userid == userid"
  3436. :class="{
  3437. rightW:
  3438. w.userid == userid ||
  3439. tType == 1 ||
  3440. tType == 4 ||
  3441. w.ateacher == userid,
  3442. }"
  3443. >
  3444. {{ lang.ssMarkScore }}
  3445. </div>
  3446. <img
  3447. class="deleteImg"
  3448. src="../assets/deleteworks.png"
  3449. v-if="
  3450. w.userid == userid || tType == 1 || tType == 4
  3451. "
  3452. @click.stop="deleteWorks(w.wid)"
  3453. alt
  3454. />
  3455. </div>
  3456. <div class="comment" style="min-width: 200px">
  3457. <div class="worksName">
  3458. <div>{{ w.sName }}</div>
  3459. </div>
  3460. <div class="commentList">
  3461. <div class="commentList">
  3462. <div
  3463. class="commentImg"
  3464. @click="
  3465. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3466. "
  3467. >
  3468. <img
  3469. :src="w.isLikes == true ? likes : noLikes"
  3470. alt=""
  3471. />
  3472. </div>
  3473. <div>{{ w.likesCount }}</div>
  3474. </div>
  3475. <div class="commentList" style="margin-right: 15px">
  3476. <div
  3477. class="commentImg"
  3478. @click="commentOther(w, toolIndex, wIndex)"
  3479. >
  3480. <img
  3481. src="../assets/icon/comment/comment.png"
  3482. alt=""
  3483. />
  3484. </div>
  3485. <div>{{ w.commentCount }}</div>
  3486. </div>
  3487. </div>
  3488. </div>
  3489. </div>
  3490. </div>
  3491. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3492. {{ lang.ssNotSubmitted }}
  3493. </div>
  3494. <div
  3495. class="noWorksS"
  3496. v-if="noWorksS && noWorksS[toolIndex].length"
  3497. >
  3498. <div
  3499. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3500. :key="sIndex"
  3501. class="noWorksName"
  3502. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3503. >
  3504. <el-tooltip effect="dark" :content="s.student" placement="top">
  3505. <span>{{ s.student }}</span>
  3506. </el-tooltip>
  3507. </div>
  3508. </div>
  3509. </div>
  3510. <div
  3511. v-if="
  3512. tType &&
  3513. ((tType == 2 && sIsOpen == true) ||
  3514. tType == 1 ||
  3515. tType == 4) &&
  3516. tool.tool.indexOf(57) != -1
  3517. "
  3518. class="worksBox"
  3519. >
  3520. <div
  3521. class="zuoyeYulan"
  3522. v-if="
  3523. worksStudent.length &&
  3524. worksStudent[toolIndex].length > 0
  3525. "
  3526. >
  3527. <div class="worksTop">
  3528. <div>{{ lang.ssHomeworkPreview }}</div>
  3529. <div
  3530. class="corOpen"
  3531. @click="contract(toolIndex)"
  3532. v-if="
  3533. (isCloseList[toolIndex].isCloseBoolean) &&
  3534. isCloseList[toolIndex].isClose == 0
  3535. "
  3536. >
  3537. {{ lang.ssFold }}
  3538. </div>
  3539. <div
  3540. class="corOpen"
  3541. @click="contract(toolIndex)"
  3542. v-if="isCloseList[toolIndex].isClose == 1"
  3543. >
  3544. {{ lang.ssExpand }}
  3545. </div>
  3546. </div>
  3547. </div>
  3548. <div
  3549. :id="'tool-' + toolIndex"
  3550. class="worksDetailBox"
  3551. :style="{
  3552. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3553. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3554. }"
  3555. v-if="
  3556. worksStudent.length &&
  3557. worksStudent[toolIndex].length > 0
  3558. "
  3559. >
  3560. <div
  3561. class="works"
  3562. style="
  3563. width: 200px;
  3564. height: 140px;
  3565. margin: 10px 10px 10px 0;
  3566. border-radius: 15px;
  3567. box-shadow: 0 0 6px 1px #dfdada;
  3568. "
  3569. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3570. :key="wIndex"
  3571. :class="w.type == 1 ? 'isTypeOne' : ''"
  3572. >
  3573. <div class="workImg">
  3574. <img
  3575. :src="word2"
  3576. @click="downloadFile(w.works,w.userid)"
  3577. v-if="w.type == 12"
  3578. alt
  3579. />
  3580. <img
  3581. :src="word2"
  3582. @click="
  3583. openCocoPi(57, toolIndex, w.userid, w.sName)
  3584. "
  3585. v-else-if="w.type == 15"
  3586. alt
  3587. />
  3588. <div
  3589. class="answerScore"
  3590. v-if="w.score"
  3591. @click.stop="openScore(w)"
  3592. :class="{
  3593. rightW:
  3594. w.userid == userid ||
  3595. tType == 1 ||
  3596. tType == 4 ||
  3597. w.ateacher == userid,
  3598. }"
  3599. >
  3600. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3601. </div>
  3602. <div
  3603. class="answerScore"
  3604. @click.stop="openScore(w)"
  3605. v-else-if="courseDetail.userid == userid"
  3606. :class="{
  3607. rightW:
  3608. w.userid == userid ||
  3609. tType == 1 ||
  3610. tType == 4 ||
  3611. w.ateacher == userid,
  3612. }"
  3613. >
  3614. {{ lang.ssMarkScore }}
  3615. </div>
  3616. <img
  3617. class="deleteImg"
  3618. src="../assets/deleteworks.png"
  3619. v-if="
  3620. w.userid == userid || tType == 1 || tType == 4
  3621. "
  3622. @click.stop="deleteWorks(w.wid)"
  3623. alt
  3624. />
  3625. </div>
  3626. <div class="comment" style="min-width: 200px">
  3627. <div class="worksName">
  3628. <div>{{ w.sName }}</div>
  3629. </div>
  3630. <div class="commentList">
  3631. <div class="commentList">
  3632. <div
  3633. class="commentImg"
  3634. @click="
  3635. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3636. "
  3637. >
  3638. <img
  3639. :src="w.isLikes == true ? likes : noLikes"
  3640. alt=""
  3641. />
  3642. </div>
  3643. <div>{{ w.likesCount }}</div>
  3644. </div>
  3645. <div class="commentList" style="margin-right: 15px">
  3646. <div
  3647. class="commentImg"
  3648. @click="commentOther(w, toolIndex, wIndex)"
  3649. >
  3650. <img
  3651. src="../assets/icon/comment/comment.png"
  3652. alt=""
  3653. />
  3654. </div>
  3655. <div>{{ w.commentCount }}</div>
  3656. </div>
  3657. </div>
  3658. </div>
  3659. </div>
  3660. </div>
  3661. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3662. {{ lang.ssNotSubmitted }}
  3663. </div>
  3664. <div
  3665. class="noWorksS"
  3666. v-if="noWorksS && noWorksS[toolIndex].length"
  3667. >
  3668. <div
  3669. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3670. :key="sIndex"
  3671. class="noWorksName"
  3672. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3673. >
  3674. <el-tooltip effect="dark" :content="s.student" placement="top">
  3675. <span>{{ s.student }}</span>
  3676. </el-tooltip>
  3677. </div>
  3678. </div>
  3679. </div>
  3680. <div
  3681. v-if="
  3682. tType &&
  3683. ((tType == 2 && sIsOpen == true) ||
  3684. tType == 1 ||
  3685. tType == 4) &&
  3686. tool.tool.indexOf(72) != -1
  3687. "
  3688. class="worksBox"
  3689. >
  3690. <div
  3691. class="zuoyeYulan"
  3692. v-if="
  3693. worksStudent.length &&
  3694. worksStudent[toolIndex].length > 0
  3695. "
  3696. >
  3697. <div class="worksTop">
  3698. <div>{{ lang.ssHomeworkPreview }}</div>
  3699. <div
  3700. class="corOpen"
  3701. @click="contract(toolIndex)"
  3702. v-if="
  3703. isCloseList[toolIndex].isCloseBoolean &&
  3704. isCloseList[toolIndex].isClose == 0
  3705. "
  3706. >
  3707. {{ lang.ssFold }}
  3708. </div>
  3709. <div
  3710. class="corOpen"
  3711. @click="contract(toolIndex)"
  3712. v-if="isCloseList[toolIndex].isClose == 1"
  3713. >
  3714. {{ lang.ssExpand }}
  3715. </div>
  3716. </div>
  3717. </div>
  3718. <div
  3719. :id="'tool-' + toolIndex"
  3720. :style="{
  3721. height:
  3722. isCloseList[toolIndex].isClose == 1
  3723. ? retrnToolHeight('tool-' + toolIndex)
  3724. : 'auto',
  3725. overflow:
  3726. isCloseList[toolIndex].isClose == 1
  3727. ? 'hidden'
  3728. : 'unset'
  3729. }"
  3730. class="worksDetailBox"
  3731. v-if="
  3732. worksStudent.length &&
  3733. worksStudent[toolIndex].length > 0
  3734. "
  3735. >
  3736. <div
  3737. class="works"
  3738. style="
  3739. width: 200px;
  3740. height: 140px;
  3741. margin: 10px 10px 10px 0;
  3742. border-radius: 15px;
  3743. box-shadow: 0 0 6px 1px #dfdada;
  3744. "
  3745. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3746. :key="wIndex"
  3747. :class="w.type == 1 ? 'isTypeOne' : ''"
  3748. >
  3749. <div class="workImg">
  3750. <!-- <img
  3751. :src="word2"
  3752. @click="downloadFile(w.works)"
  3753. v-if="w.type == 12"
  3754. alt
  3755. /> -->
  3756. <img
  3757. :src="word2"
  3758. @click="
  3759. openCocoFlow(w)
  3760. "
  3761. alt
  3762. />
  3763. <div
  3764. class="answerScore"
  3765. v-if="w.score"
  3766. @click.stop="openScore(w)"
  3767. :class="{
  3768. rightW:
  3769. w.userid == userid ||
  3770. tType == 1 ||
  3771. tType == 4 ||
  3772. w.ateacher == userid
  3773. }"
  3774. >
  3775. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3776. </div>
  3777. <div
  3778. class="answerScore"
  3779. @click.stop="openScore(w)"
  3780. v-else-if="
  3781. courseDetail.userid == userid &&
  3782. courseDetail.state != 5 &&
  3783. chapInfoList[courseType].chapterInfo[0]
  3784. .taskJson[taskCount].eList &&
  3785. chapInfoList[courseType].chapterInfo[0]
  3786. .taskJson[taskCount].eList.length
  3787. "
  3788. :class="{
  3789. rightW:
  3790. w.userid == userid ||
  3791. tType == 1 ||
  3792. tType == 4 ||
  3793. w.ateacher == userid
  3794. }"
  3795. >
  3796. {{ lang.ssMarkScore }}
  3797. </div>
  3798. <img
  3799. class="deleteImg"
  3800. src="../assets/deleteworks.png"
  3801. v-if="
  3802. w.userid == userid || tType == 1 || tType == 4
  3803. "
  3804. @click.stop="deleteWorks(w.wid)"
  3805. alt
  3806. />
  3807. </div>
  3808. <div class="comment" style="min-width: 200px">
  3809. <div class="worksName">
  3810. <div>{{ w.sName }}</div>
  3811. </div>
  3812. <div class="commentList">
  3813. <div class="commentList">
  3814. <div
  3815. class="commentImg"
  3816. @click="
  3817. isLikes(
  3818. w.wid,
  3819. userid,
  3820. 1,
  3821. null,
  3822. w.isLikes,
  3823. w.sName
  3824. )
  3825. "
  3826. >
  3827. <img
  3828. :src="w.isLikes == true ? likes : noLikes"
  3829. alt=""
  3830. />
  3831. </div>
  3832. <div>{{ w.likesCount }}</div>
  3833. </div>
  3834. <div class="commentList" style="margin-right: 15px">
  3835. <div
  3836. class="commentImg"
  3837. @click="commentOther(w, toolIndex, wIndex)"
  3838. >
  3839. <img
  3840. src="../assets/icon/comment/comment.png"
  3841. alt=""
  3842. />
  3843. </div>
  3844. <div>{{ w.commentCount }}</div>
  3845. </div>
  3846. </div>
  3847. </div>
  3848. </div>
  3849. </div>
  3850. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3851. {{ lang.ssNotSubmitted }}
  3852. </div>
  3853. <div
  3854. class="noWorksS"
  3855. v-if="noWorksS && noWorksS[toolIndex].length"
  3856. >
  3857. <div
  3858. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3859. :key="sIndex"
  3860. class="noWorksName2"
  3861. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3862. >
  3863. <el-tooltip
  3864. effect="dark"
  3865. :content="s.student"
  3866. placement="top"
  3867. >
  3868. <span>{{ s.student }}</span>
  3869. </el-tooltip>
  3870. </div>
  3871. </div>
  3872. </div>
  3873. <div
  3874. v-if="
  3875. tType &&
  3876. tType == 2 &&
  3877. !sIsOpen &&
  3878. tool.tool.indexOf(72) != -1
  3879. "
  3880. class="worksBox"
  3881. >
  3882. <div
  3883. class="zuoyeYulan"
  3884. v-if="workStudent[toolIndex].length > 0"
  3885. >
  3886. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  3887. </div>
  3888. <div
  3889. class="worksDetailBox"
  3890. v-if="workStudent[toolIndex].length > 0"
  3891. >
  3892. <div
  3893. class="works"
  3894. style="
  3895. width: 200px;
  3896. height: 140px;
  3897. margin: 10px 10px 10px 0;
  3898. box-shadow: 0 0 6px 1px #dfdada;
  3899. "
  3900. v-for="(w, wIndex) in workStudent[toolIndex]"
  3901. :key="wIndex"
  3902. >
  3903. <div class="workImg">
  3904. <!-- <img
  3905. :src="word2"
  3906. @click="downloadFile(w.works)"
  3907. v-if="w.type == 12"
  3908. alt
  3909. /> -->
  3910. <img
  3911. :src="word2"
  3912. @click="
  3913. openCocoFlow(w)
  3914. "
  3915. alt
  3916. />
  3917. <div
  3918. class="answerScore"
  3919. v-if="w.score"
  3920. @click.stop="openScore(w)"
  3921. :class="{
  3922. rightW:
  3923. w.userid == userid || tType == 1 || tType == 4
  3924. }"
  3925. >
  3926. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3927. </div>
  3928. <div
  3929. class="answerScore"
  3930. @click.stop="openScore(w)"
  3931. v-else-if="courseDetail.userid == userid"
  3932. :class="{
  3933. rightW:
  3934. w.userid == userid || tType == 1 || tType == 4
  3935. }"
  3936. >
  3937. {{ lang.ssMarkScore }}
  3938. </div>
  3939. <img
  3940. class="deleteImg"
  3941. src="../assets/deleteworks.png"
  3942. v-if="
  3943. w.userid == userid || tType == 1 || tType == 4
  3944. "
  3945. @click.stop="deleteWorks(w.wid)"
  3946. alt
  3947. />
  3948. </div>
  3949. <div class="worksName">
  3950. <div>{{ w.sName }}</div>
  3951. </div>
  3952. </div>
  3953. </div>
  3954. </div>
  3955. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3956. <div
  3957. class="zuoyeYulan"
  3958. v-if="
  3959. worksStudent.length &&
  3960. worksStudent[toolIndex].length > 0
  3961. "
  3962. >
  3963. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  3964. <div
  3965. class="corOpen"
  3966. @click="contract(toolIndex)"
  3967. v-if="
  3968. (isCloseList[toolIndex].isCloseBoolean) &&
  3969. isCloseList[toolIndex].isClose == 0
  3970. "
  3971. >
  3972. {{ lang.ssFold }}
  3973. </div>
  3974. <div
  3975. class="corOpen"
  3976. @click="contract(toolIndex)"
  3977. v-if="isCloseList[toolIndex].isClose == 1"
  3978. >
  3979. {{ lang.ssExpand }}
  3980. </div>
  3981. </div>
  3982. <div
  3983. :id="'tool-' + toolIndex"
  3984. :style="{
  3985. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3986. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3987. }"
  3988. class="worksDetailBox"
  3989. v-if="
  3990. worksStudent.length &&
  3991. worksStudent[toolIndex].length > 0
  3992. "
  3993. >
  3994. <div
  3995. class="works"
  3996. style="
  3997. width: 200px;
  3998. height: 140px;
  3999. margin: 10px 10px 10px 0;
  4000. border-radius: 15px;
  4001. box-shadow: 0 0 6px 1px #dfdada;
  4002. "
  4003. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4004. :key="wIndex"
  4005. :class="w.type == 1 ? 'isTypeOne' : ''"
  4006. >
  4007. <div class="workImg" v-if="w.type == 0">
  4008. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4009. <img
  4010. :src="w.works"
  4011. @click="previewImg(w.works,w)"
  4012. alt
  4013. />
  4014. <div
  4015. class="answerScore"
  4016. v-if="w.score"
  4017. @click.stop="openScore(w)"
  4018. :class="{
  4019. rightW:
  4020. w.userid == userid ||
  4021. tType == 1 ||
  4022. tType == 4 ||
  4023. w.ateacher == userid,
  4024. }"
  4025. >
  4026. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4027. </div>
  4028. <div
  4029. class="answerScore"
  4030. @click.stop="openScore(w)"
  4031. v-else-if="courseDetail.userid == userid"
  4032. :class="{
  4033. rightW:
  4034. w.userid == userid ||
  4035. tType == 1 ||
  4036. tType == 4 ||
  4037. w.ateacher == userid,
  4038. }"
  4039. >
  4040. {{ lang.ssMarkScore }}
  4041. </div>
  4042. <img
  4043. class="deleteImg"
  4044. src="../assets/deleteworks.png"
  4045. v-if="
  4046. w.userid == userid || tType == 1 || tType == 4
  4047. "
  4048. @click.stop="deleteWorks(w.wid)"
  4049. alt
  4050. />
  4051. </div>
  4052. <div
  4053. class="workImg"
  4054. style="cursor: pointer"
  4055. v-if="w.type == 1"
  4056. >
  4057. <img :src="word" @click="openFile(w.works,w)" alt />
  4058. <!-- @click="openFile(w.works)" -->
  4059. <div
  4060. class="answerScore"
  4061. v-if="w.score"
  4062. @click.stop="openScore(w)"
  4063. :class="{
  4064. rightW:
  4065. w.userid == userid ||
  4066. tType == 1 ||
  4067. tType == 4 ||
  4068. w.ateacher == userid,
  4069. }"
  4070. >
  4071. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4072. </div>
  4073. <div
  4074. class="answerScore"
  4075. @click.stop="openScore(w)"
  4076. v-else-if="courseDetail.userid == userid"
  4077. :class="{
  4078. rightW:
  4079. w.userid == userid ||
  4080. tType == 1 ||
  4081. tType == 4 ||
  4082. w.ateacher == userid,
  4083. }"
  4084. >
  4085. {{ lang.ssMarkScore }}
  4086. </div>
  4087. <img
  4088. class="deleteImg"
  4089. src="../assets/deleteworks.png"
  4090. v-if="
  4091. w.userid == userid || tType == 1 || tType == 4
  4092. "
  4093. @click.stop="deleteWorks(w.wid)"
  4094. alt
  4095. />
  4096. </div>
  4097. <div class="workImg" v-if="w.type == 3">
  4098. <img
  4099. style="cursor: pointer"
  4100. :src="video"
  4101. @click="openVideo(w)"
  4102. alt
  4103. />
  4104. <!-- @click="openVideo(w.works)" -->
  4105. <div
  4106. class="answerScore"
  4107. v-if="w.score"
  4108. @click.stop="openScore(w)"
  4109. :class="{
  4110. rightW:
  4111. w.userid == userid ||
  4112. tType == 1 ||
  4113. tType == 4 ||
  4114. w.ateacher == userid,
  4115. }"
  4116. >
  4117. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4118. </div>
  4119. <div
  4120. class="answerScore"
  4121. @click.stop="openScore(w)"
  4122. v-else-if="courseDetail.userid == userid"
  4123. :class="{
  4124. rightW:
  4125. w.userid == userid ||
  4126. tType == 1 ||
  4127. tType == 4 ||
  4128. w.ateacher == userid,
  4129. }"
  4130. >
  4131. {{ lang.ssMarkScore }}
  4132. </div>
  4133. <img
  4134. class="deleteImg"
  4135. src="../assets/deleteworks.png"
  4136. v-if="
  4137. w.userid == userid || tType == 1 || tType == 4
  4138. "
  4139. @click.stop="deleteWorks(w.wid)"
  4140. alt
  4141. />
  4142. </div>
  4143. <div class="comment" style="min-width: 200px">
  4144. <div class="worksName">
  4145. <div
  4146. style="cursor: pointer"
  4147. @click="
  4148. openSname(w.sName, w.wid, toolIndex, w.userid)
  4149. "
  4150. >
  4151. {{ w.sName }}
  4152. </div>
  4153. </div>
  4154. <div class="commentList">
  4155. <div class="commentList">
  4156. <div
  4157. class="commentImg"
  4158. @click="
  4159. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4160. "
  4161. >
  4162. <img
  4163. :src="w.isLikes == true ? likes : noLikes"
  4164. alt=""
  4165. />
  4166. </div>
  4167. <div>{{ w.likesCount }}</div>
  4168. </div>
  4169. <div class="commentList" style="margin-right: 15px">
  4170. <div
  4171. class="commentImg"
  4172. @click="commentOther(w, toolIndex, wIndex)"
  4173. >
  4174. <img
  4175. src="../assets/icon/comment/comment.png"
  4176. alt=""
  4177. />
  4178. </div>
  4179. <div>{{ w.commentCount }}</div>
  4180. </div>
  4181. </div>
  4182. </div>
  4183. </div>
  4184. </div>
  4185. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4186. {{ lang.ssNotSubmitted }}
  4187. </div>
  4188. <div
  4189. class="noWorksS"
  4190. v-if="noWorksS && noWorksS[toolIndex].length"
  4191. >
  4192. <div
  4193. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4194. :key="sIndex"
  4195. class="noWorksName"
  4196. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4197. >
  4198. <el-tooltip effect="dark" :content="s.student" placement="top">
  4199. <span>{{ s.student }}</span>
  4200. </el-tooltip>
  4201. </div>
  4202. </div>
  4203. </div>
  4204. <div
  4205. v-if="
  4206. tType &&
  4207. ((tType == 2 && sIsOpen == true) ||
  4208. tType == 1 ||
  4209. tType == 4) &&
  4210. tool.tool.indexOf(4) != -1 &&
  4211. (tool.askJson[0].answer ||
  4212. tool.askJson[0].answer === 0) &&
  4213. checkJson[toolIndex].length
  4214. "
  4215. class="xuan_right_box"
  4216. >
  4217. <div
  4218. class="tool_right_box"
  4219. v-for="(item, index) in tool.askJson"
  4220. :key="index"
  4221. >
  4222. <div style="width: calc(100% - 30px);">
  4223. <el-tooltip
  4224. effect="light"
  4225. :content="index + 1 + '、' + item.askstitle"
  4226. placement="top"
  4227. popper-class="text_tooltip"
  4228. >
  4229. <div
  4230. style="
  4231. width: calc(100% - 130px);
  4232. display: block;
  4233. white-space: nowrap;
  4234. overflow: hidden;
  4235. text-overflow: ellipsis;
  4236. word-break: break-word;
  4237. cursor: pointer;
  4238. "
  4239. >
  4240. {{ index + 1 + "、" + item.askstitle }}
  4241. </div>
  4242. </el-tooltip>
  4243. </div>
  4244. <div class="right_box_xuan">
  4245. <span>{{ lang.ssCorrectRate }}</span>
  4246. <span>{{
  4247. (checkJson[toolIndex][index].right
  4248. ? checkJson[toolIndex][index].right
  4249. : 0) + "%"
  4250. }}</span>
  4251. </div>
  4252. </div>
  4253. </div>
  4254. <div
  4255. class="xuan_right_box"
  4256. style="background: unset; padding: 0 10px"
  4257. v-if="
  4258. tType &&
  4259. ((tType == 2 && sIsOpen == true) ||
  4260. tType == 1 ||
  4261. tType == 4) &&
  4262. tool.tool.indexOf(4) != -1
  4263. "
  4264. >
  4265. <AskStatic
  4266. v-if="
  4267. worksStudent.length &&
  4268. worksStudent[toolIndex].length > 0
  4269. "
  4270. :askJSON="tool"
  4271. :checkJson="checkJson[toolIndex]"
  4272. ></AskStatic>
  4273. </div>
  4274. <div
  4275. v-if="
  4276. tType &&
  4277. ((tType == 2 && sIsOpen == true) ||
  4278. tType == 1 ||
  4279. tType == 4) &&
  4280. tool.tool.indexOf(4) != -1
  4281. "
  4282. class="worksBox"
  4283. >
  4284. <div
  4285. class="zuoyeYulan"
  4286. v-if="
  4287. worksStudent.length &&
  4288. worksStudent[toolIndex].length > 0
  4289. "
  4290. >
  4291. <div class="worksTop">
  4292. <div>{{ lang.ssHomeworkPreview }}</div>
  4293. <div
  4294. class="corOpen"
  4295. @click="contract(toolIndex)"
  4296. v-if="
  4297. (isCloseList[toolIndex].isCloseBoolean) &&
  4298. isCloseList[toolIndex].isClose == 0
  4299. "
  4300. >
  4301. {{ lang.ssFold }}
  4302. </div>
  4303. <div
  4304. class="corOpen"
  4305. @click="contract(toolIndex)"
  4306. v-if="isCloseList[toolIndex].isClose == 1"
  4307. >
  4308. {{ lang.ssExpand }}
  4309. </div>
  4310. </div>
  4311. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4312. </div>
  4313. <div>
  4314. <div
  4315. :id="'tool-' + toolIndex"
  4316. :style="{
  4317. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4318. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4319. }"
  4320. class="worksDetailBox"
  4321. v-if="
  4322. worksStudent.length &&
  4323. worksStudent[toolIndex].length > 0
  4324. "
  4325. >
  4326. <div
  4327. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4328. :key="wIndex"
  4329. class="isWorksName2"
  4330. @click="
  4331. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4332. "
  4333. >
  4334. {{ w.sName }}
  4335. <img
  4336. class="deleteImg deleteImg2"
  4337. src="../assets/deleteworks.png"
  4338. v-if="
  4339. w.userid == userid || tType == 1 || tType == 4
  4340. "
  4341. @click.stop="deleteWorks(w.wid)"
  4342. alt
  4343. />
  4344. </div>
  4345. <!-- <div class="works" style="
  4346. width: 200px;
  4347. height: 140px;
  4348. border-radius: 10px;
  4349. box-shadow: 0 0 6px 1px #dfdada;
  4350. overflow: hidden;
  4351. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4352. <div class="workImg">
  4353. <img src="../assets/icon/works/noImg.png" @click="
  4354. openTools(
  4355. 4,
  4356. toolIndex,
  4357. taskCount,
  4358. w.works,
  4359. w.sName
  4360. )
  4361. " alt />
  4362. </div>
  4363. <div class="worksName">
  4364. <div>{{ w.sName }}</div>
  4365. <div>{{ w.time }}</div>
  4366. </div>
  4367. </div> -->
  4368. </div>
  4369. </div>
  4370. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4371. {{ lang.ssNotSubmitted }}
  4372. </div>
  4373. <div
  4374. class="noWorksS"
  4375. v-if="noWorksS && noWorksS[toolIndex].length"
  4376. >
  4377. <div
  4378. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4379. :key="sIndex"
  4380. class="noWorksName"
  4381. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4382. >
  4383. <el-tooltip effect="dark" :content="s.student" placement="top">
  4384. <span>{{ s.student }}</span>
  4385. </el-tooltip>
  4386. </div>
  4387. </div>
  4388. </div>
  4389. <div
  4390. v-if="
  4391. tType &&
  4392. ((tType == 2 && sIsOpen == true) ||
  4393. tType == 1 ||
  4394. tType == 4) &&
  4395. tool.tool.indexOf(45) != -1 &&
  4396. (tool.testJson.testJson[0].answer ||
  4397. tool.testJson.testJson[0].answer === 0) &&
  4398. checkJson[toolIndex].length
  4399. "
  4400. class="xuan_right_box"
  4401. >
  4402. <div
  4403. class="tool_right_box"
  4404. v-for="(item, index) in tool.testJson.testJson"
  4405. :key="index"
  4406. >
  4407. <div class="right_box_xuan" style="margin-right: 10px">
  4408. <span>{{ lang.ssCorrectRate }}</span>
  4409. <span>{{
  4410. (checkJson[toolIndex][index].right
  4411. ? checkJson[toolIndex][index].right
  4412. : 0) + "%"
  4413. }}</span>
  4414. </div>
  4415. <div style="width: calc(100% - 30px);">
  4416. <el-tooltip
  4417. effect="light"
  4418. :content="index + 1 + '、' + item.teststitle"
  4419. placement="top"
  4420. popper-class="text_tooltip"
  4421. >
  4422. <div
  4423. style="
  4424. width: calc(100% - 130px);
  4425. display: flex;
  4426. white-space: nowrap;
  4427. overflow: hidden;
  4428. text-overflow: ellipsis;
  4429. word-break: break-word;
  4430. cursor: pointer;
  4431. "
  4432. class="renderedFor"
  4433. >
  4434. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  4435. </div>
  4436. </el-tooltip>
  4437. </div>
  4438. </div>
  4439. </div>
  4440. <div
  4441. class="xuan_right_box"
  4442. style="background: unset; padding: 0 10px; width: 91.5%"
  4443. v-if="
  4444. tType &&
  4445. ((tType == 2 && sIsOpen == true) ||
  4446. tType == 1 ||
  4447. tType == 4) &&
  4448. tool.tool.indexOf(45) != -1
  4449. "
  4450. >
  4451. <AskStatic2
  4452. v-if="
  4453. worksStudent.length &&
  4454. worksStudent[toolIndex].length > 0
  4455. "
  4456. :askJSON="tool"
  4457. :checkJson="checkJson[toolIndex]"
  4458. ></AskStatic2>
  4459. </div>
  4460. <div
  4461. v-if="
  4462. tType &&
  4463. ((tType == 2 && sIsOpen == true) ||
  4464. tType == 1 ||
  4465. tType == 4) &&
  4466. tool.tool.indexOf(45) != -1
  4467. "
  4468. class="worksBox"
  4469. >
  4470. <div
  4471. class="zuoyeYulan"
  4472. v-if="
  4473. worksStudent.length &&
  4474. worksStudent[toolIndex].length > 0
  4475. "
  4476. >
  4477. <div class="worksTop">
  4478. <div>{{ lang.ssHomeworkPreview }}</div>
  4479. <div
  4480. class="corOpen"
  4481. @click="contract(toolIndex)"
  4482. v-if="
  4483. (isCloseList[toolIndex].isCloseBoolean) &&
  4484. isCloseList[toolIndex].isClose == 0
  4485. "
  4486. >
  4487. {{ lang.ssFold }}
  4488. </div>
  4489. <div
  4490. class="corOpen"
  4491. @click="contract(toolIndex)"
  4492. v-if="isCloseList[toolIndex].isClose == 1"
  4493. >
  4494. {{ lang.ssExpand }}
  4495. </div>
  4496. </div>
  4497. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4498. </div>
  4499. <div>
  4500. <div
  4501. :id="'tool-' + toolIndex"
  4502. :style="{
  4503. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4504. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4505. }"
  4506. class="worksDetailBox"
  4507. v-if="
  4508. worksStudent.length &&
  4509. worksStudent[toolIndex].length > 0
  4510. "
  4511. >
  4512. <div
  4513. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4514. :key="wIndex"
  4515. class="isWorksName2"
  4516. @click="
  4517. openTools(
  4518. 45,
  4519. toolIndex,
  4520. taskCount,
  4521. w.works,
  4522. w.sName
  4523. )
  4524. "
  4525. >
  4526. {{ w.sName }}
  4527. <img
  4528. class="deleteImg deleteImg2"
  4529. src="../assets/deleteworks.png"
  4530. v-if="
  4531. w.userid == userid || tType == 1 || tType == 4
  4532. "
  4533. @click.stop="deleteWorks(w.wid)"
  4534. alt
  4535. />
  4536. </div>
  4537. </div>
  4538. </div>
  4539. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4540. {{ lang.ssNotSubmitted }}
  4541. </div>
  4542. <div
  4543. class="noWorksS"
  4544. v-if="noWorksS && noWorksS[toolIndex].length"
  4545. >
  4546. <div
  4547. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4548. :key="sIndex"
  4549. class="noWorksName"
  4550. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4551. >
  4552. <el-tooltip effect="dark" :content="s.student" placement="top">
  4553. <span>{{ s.student }}</span>
  4554. </el-tooltip>
  4555. </div>
  4556. </div>
  4557. </div>
  4558. <div
  4559. v-if="
  4560. tType &&
  4561. ((tType == 2 && sIsOpen == true) ||
  4562. tType == 1 ||
  4563. tType == 4) &&
  4564. tool.tool.indexOf(69) != -1
  4565. "
  4566. class="worksBox"
  4567. >
  4568. <div
  4569. class="zuoyeYulan"
  4570. v-if="
  4571. worksStudent.length &&
  4572. worksStudent[toolIndex].length > 0
  4573. "
  4574. >
  4575. <div class="worksTop">
  4576. <div>{{ lang.ssHomeworkPreview }}</div>
  4577. <div
  4578. class="corOpen"
  4579. @click="contract(toolIndex)"
  4580. v-if="
  4581. (isCloseList[toolIndex].isCloseBoolean) &&
  4582. isCloseList[toolIndex].isClose == 0
  4583. "
  4584. >
  4585. {{ lang.ssFold }}
  4586. </div>
  4587. <div
  4588. class="corOpen"
  4589. @click="contract(toolIndex)"
  4590. v-if="isCloseList[toolIndex].isClose == 1"
  4591. >
  4592. {{ lang.ssExpand }}
  4593. </div>
  4594. </div>
  4595. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4596. </div>
  4597. <div>
  4598. <div
  4599. :id="'tool-' + toolIndex"
  4600. :style="{
  4601. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4602. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4603. }"
  4604. class="worksDetailBox"
  4605. v-if="
  4606. worksStudent.length &&
  4607. worksStudent[toolIndex].length > 0
  4608. "
  4609. >
  4610. <div
  4611. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4612. :key="wIndex"
  4613. class="isWorksName2"
  4614. style="width: 160px;height: 65px;line-height: 65px;"
  4615. @click="
  4616. openTools(
  4617. 69,
  4618. toolIndex,
  4619. taskCount,
  4620. w.works,
  4621. w.sName,
  4622. w.wid
  4623. )
  4624. "
  4625. >
  4626. {{ w.sName }}
  4627. <img
  4628. class="deleteImg1"
  4629. src="../assets/evaEnglish.png"
  4630. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4631. alt
  4632. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4633. />
  4634. <img
  4635. class="deleteImg deleteImg2"
  4636. src="../assets/deleteworks.png"
  4637. v-if="
  4638. w.userid == userid || tType == 1 || tType == 4
  4639. "
  4640. @click.stop="deleteWorks(w.wid)"
  4641. alt
  4642. />
  4643. </div>
  4644. </div>
  4645. </div>
  4646. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4647. {{ lang.ssNotSubmitted }}
  4648. </div>
  4649. <div
  4650. class="noWorksS"
  4651. v-if="noWorksS && noWorksS[toolIndex].length"
  4652. >
  4653. <div
  4654. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4655. :key="sIndex"
  4656. class="noWorksName"
  4657. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4658. >
  4659. <el-tooltip effect="dark" :content="s.student" placement="top">
  4660. <span>{{ s.student }}</span>
  4661. </el-tooltip>
  4662. </div>
  4663. </div>
  4664. </div>
  4665. <div
  4666. v-if="
  4667. tType &&
  4668. ((tType == 2 && sIsOpen == true) ||
  4669. tType == 1 ||
  4670. tType == 4) &&
  4671. tool.tool.indexOf(15) != -1
  4672. "
  4673. class="worksBox"
  4674. >
  4675. <div
  4676. class="zuoyeYulan"
  4677. v-if="
  4678. (worksStudent.length &&
  4679. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4680. "
  4681. >
  4682. <div class="worksTop">
  4683. <div>{{ lang.ssHomeworkPreview }}</div>
  4684. <div
  4685. class="corOpen"
  4686. @click="contract(toolIndex)"
  4687. v-if="
  4688. (isCloseList[toolIndex].isCloseBoolean) &&
  4689. isCloseList[toolIndex].isClose == 0
  4690. "
  4691. >
  4692. {{ lang.ssFold }}
  4693. </div>
  4694. <div
  4695. class="corOpen"
  4696. @click="contract(toolIndex)"
  4697. v-if="isCloseList[toolIndex].isClose == 1"
  4698. >
  4699. {{ lang.ssExpand }}
  4700. </div>
  4701. </div>
  4702. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4703. </div>
  4704. <div
  4705. class="group_workBox"
  4706. v-for="(g, gindex) in courseGroup.group"
  4707. :key="gindex"
  4708. >
  4709. <div class="group_box">
  4710. <div class="group_title">
  4711. <el-tooltip
  4712. class="item"
  4713. effect="light"
  4714. :content="g.name"
  4715. placement="top"
  4716. >
  4717. <div class="group_name">{{ g.name }}</div>
  4718. </el-tooltip>
  4719. </div>
  4720. <div
  4721. class="group_work"
  4722. v-if="
  4723. g.works &&
  4724. g.works.length &&
  4725. g.works[toolIndex].length
  4726. "
  4727. >
  4728. <div
  4729. class="works"
  4730. v-for="(w, wIndex) in g.works[toolIndex]"
  4731. :key="wIndex"
  4732. >
  4733. <div
  4734. class="workImg"
  4735. style="
  4736. border-radius: 15px;
  4737. box-shadow: 0px 0px 5px 5px #eee;
  4738. "
  4739. >
  4740. <div
  4741. class="answerBg"
  4742. style="border-radius: 15px 15px 0 0"
  4743. @click="
  4744. commentOther(w, toolIndex, wIndex, null, g.id)
  4745. "
  4746. >
  4747. <div class="answerContent">
  4748. {{ JSON.parse(w.works)[0].answer }}
  4749. </div>
  4750. <div
  4751. class="answerScore"
  4752. v-if="w.score"
  4753. @click.stop="openScore(w)"
  4754. :class="{
  4755. rightW:
  4756. w.userid == userid ||
  4757. tType == 1 ||
  4758. tType == 4,
  4759. }"
  4760. >
  4761. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4762. </div>
  4763. <div
  4764. class="answerScore"
  4765. @click.stop="openScore(w)"
  4766. v-else-if="courseDetail.userid == userid"
  4767. :class="{
  4768. rightW:
  4769. w.userid == userid ||
  4770. tType == 1 ||
  4771. tType == 4,
  4772. }"
  4773. >
  4774. {{ lang.ssMarkScore }}
  4775. </div>
  4776. <img
  4777. class="deleteImg"
  4778. src="../assets/deleteworks.png"
  4779. v-if="
  4780. w.userid == userid ||
  4781. tType == 1 ||
  4782. tType == 4
  4783. "
  4784. @click.stop="deleteWorks(w.wid)"
  4785. alt
  4786. />
  4787. </div>
  4788. <div class="comment">
  4789. <div class="worksName">
  4790. <div>{{ w.sName }}</div>
  4791. </div>
  4792. <div class="commentList">
  4793. <div
  4794. class="commentImg"
  4795. @click="
  4796. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4797. "
  4798. >
  4799. <img
  4800. :src="w.isLikes == true ? likes : noLikes"
  4801. alt=""
  4802. />
  4803. </div>
  4804. <div>{{ w.likesCount }}</div>
  4805. </div>
  4806. <div
  4807. class="commentList"
  4808. style="margin-right: 15px"
  4809. >
  4810. <div
  4811. class="commentImg"
  4812. @click="
  4813. commentOther(
  4814. w,
  4815. toolIndex,
  4816. wIndex,
  4817. null,
  4818. g.id
  4819. )
  4820. "
  4821. >
  4822. <img
  4823. src="../assets/icon/comment/comment.png"
  4824. alt=""
  4825. />
  4826. </div>
  4827. <div>{{ w.commentCount }}</div>
  4828. </div>
  4829. </div>
  4830. </div>
  4831. </div>
  4832. </div>
  4833. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  4834. </div>
  4835. </div>
  4836. <div
  4837. :id="'tool-' + toolIndex"
  4838. :style="{
  4839. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4840. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4841. }"
  4842. class="worksDetailBox"
  4843. v-if="
  4844. worksStudent.length &&
  4845. worksStudent[toolIndex].length > 0
  4846. "
  4847. >
  4848. <div
  4849. class="works"
  4850. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4851. :key="wIndex"
  4852. >
  4853. <div
  4854. class="workImg"
  4855. style="
  4856. border-radius: 15px;
  4857. box-shadow: 0px 0px 5px 5px #eee;
  4858. "
  4859. >
  4860. <!-- <img
  4861. src="../assets/icon/works/noImg.png"
  4862. @click="openTools(15, toolIndex, taskCount, w.works)"
  4863. alt=""
  4864. />-->
  4865. <div
  4866. class="answerBg"
  4867. style="border-radius: 15px 15px 0 0"
  4868. @click="commentOther(w, toolIndex, wIndex)"
  4869. >
  4870. <!-- <div>{{ w.sName }}</div> -->
  4871. <div class="answerContent">
  4872. {{ JSON.parse(w.works)[0].answer }}
  4873. </div>
  4874. <div
  4875. class="answerScore"
  4876. v-if="w.score"
  4877. @click.stop="openScore(w)"
  4878. :class="{
  4879. rightW:
  4880. w.userid == userid ||
  4881. tType == 1 ||
  4882. tType == 4,
  4883. }"
  4884. >
  4885. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4886. </div>
  4887. <div
  4888. class="answerScore"
  4889. @click.stop="openScore(w)"
  4890. v-else-if="courseDetail.userid == userid"
  4891. :class="{
  4892. rightW:
  4893. w.userid == userid ||
  4894. tType == 1 ||
  4895. tType == 4,
  4896. }"
  4897. >
  4898. {{ lang.ssMarkScore }}
  4899. </div>
  4900. <img
  4901. class="deleteImg"
  4902. src="../assets/deleteworks.png"
  4903. v-if="
  4904. w.userid == userid || tType == 1 || tType == 4
  4905. "
  4906. @click.stop="deleteWorks(w.wid)"
  4907. alt
  4908. />
  4909. </div>
  4910. <div class="comment">
  4911. <div class="worksName">
  4912. <div>{{ w.sName }}</div>
  4913. </div>
  4914. <div class="commentList">
  4915. <div
  4916. class="commentImg"
  4917. @click="
  4918. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4919. "
  4920. >
  4921. <img
  4922. :src="w.isLikes == true ? likes : noLikes"
  4923. alt=""
  4924. />
  4925. </div>
  4926. <div>{{ w.likesCount }}</div>
  4927. </div>
  4928. <div class="commentList" style="margin-right: 15px">
  4929. <div
  4930. class="commentImg"
  4931. @click="commentOther(w, toolIndex, wIndex)"
  4932. >
  4933. <img
  4934. src="../assets/icon/comment/comment.png"
  4935. alt=""
  4936. />
  4937. </div>
  4938. <div>{{ w.commentCount }}</div>
  4939. </div>
  4940. </div>
  4941. </div>
  4942. </div>
  4943. </div>
  4944. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4945. {{ lang.ssNotSubmitted }}
  4946. </div>
  4947. <div
  4948. class="noWorksS"
  4949. v-if="noWorksS && noWorksS[toolIndex].length"
  4950. >
  4951. <div
  4952. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4953. :key="sIndex"
  4954. class="noWorksName"
  4955. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4956. >
  4957. <el-tooltip effect="dark" :content="s.student" placement="top">
  4958. <span>{{ s.student }}</span>
  4959. </el-tooltip>
  4960. </div>
  4961. </div>
  4962. </div>
  4963. <div
  4964. v-if="
  4965. tType &&
  4966. ((tType == 2 && sIsOpen == true) ||
  4967. tType == 1 ||
  4968. tType == 4) &&
  4969. tool.tool.indexOf(1) != -1
  4970. "
  4971. class="worksBox"
  4972. >
  4973. <div
  4974. class="zuoyeYulan"
  4975. v-if="
  4976. (worksStudent.length &&
  4977. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4978. "
  4979. >
  4980. <div class="worksTop">
  4981. <div>{{ lang.ssHomeworkPreview }}</div>
  4982. <div
  4983. class="corOpen"
  4984. @click="contract(toolIndex)"
  4985. v-if="
  4986. (isCloseList[toolIndex].isCloseBoolean) &&
  4987. isCloseList[toolIndex].isClose == 0
  4988. "
  4989. >
  4990. {{ lang.ssFold }}
  4991. </div>
  4992. <div
  4993. class="corOpen"
  4994. @click="contract(toolIndex)"
  4995. v-if="isCloseList[toolIndex].isClose == 1"
  4996. >
  4997. {{ lang.ssExpand }}
  4998. </div>
  4999. </div>
  5000. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5001. </div>
  5002. <div
  5003. class="group_workBox"
  5004. v-for="(g, gindex) in courseGroup.group"
  5005. :key="gindex"
  5006. >
  5007. <div class="group_box">
  5008. <div class="group_title">
  5009. <el-tooltip
  5010. class="item"
  5011. effect="light"
  5012. :content="g.name"
  5013. placement="top"
  5014. >
  5015. <div class="group_name">{{ g.name }}</div>
  5016. </el-tooltip>
  5017. </div>
  5018. <div
  5019. class="group_work"
  5020. v-if="
  5021. g.works &&
  5022. g.works.length &&
  5023. g.works[toolIndex].length
  5024. "
  5025. >
  5026. <div
  5027. class="works"
  5028. style="
  5029. width: 200px;
  5030. height: 140px;
  5031. margin: 10px 10px 10px 0;
  5032. border-radius: 15px;
  5033. box-shadow: 0 0 6px 1px #dfdada;
  5034. "
  5035. v-for="(w, wIndex) in g.works[toolIndex]"
  5036. :key="wIndex"
  5037. :class="w.type == 1 ? 'isTypeOne' : ''"
  5038. >
  5039. <div class="workImg">
  5040. <img
  5041. :src="w.works"
  5042. @click="previewImg(w.works,w)"
  5043. alt
  5044. />
  5045. <div
  5046. class="answerScore"
  5047. v-if="w.score"
  5048. @click.stop="openScore(w)"
  5049. :class="{
  5050. rightW:
  5051. w.userid == userid ||
  5052. tType == 1 ||
  5053. tType == 4,
  5054. }"
  5055. >
  5056. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5057. </div>
  5058. <div
  5059. class="answerScore"
  5060. @click.stop="openScore(w)"
  5061. v-else-if="courseDetail.userid == userid"
  5062. :class="{
  5063. rightW:
  5064. w.userid == userid ||
  5065. tType == 1 ||
  5066. tType == 4,
  5067. }"
  5068. >
  5069. {{ lang.ssMarkScore }}
  5070. </div>
  5071. <img
  5072. class="deleteImg"
  5073. src="../assets/deleteworks.png"
  5074. v-if="
  5075. w.userid == userid || tType == 1 || tType == 4
  5076. "
  5077. @click.stop="deleteWorks(w.wid)"
  5078. alt
  5079. />
  5080. </div>
  5081. <div class="comment" style="min-width: 200px">
  5082. <div class="worksName">
  5083. <div>{{ w.sName }}</div>
  5084. </div>
  5085. <div class="commentList">
  5086. <div class="commentList">
  5087. <div
  5088. class="commentImg"
  5089. @click="
  5090. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5091. "
  5092. >
  5093. <img
  5094. :src="w.isLikes == true ? likes : noLikes"
  5095. alt=""
  5096. />
  5097. </div>
  5098. <div>{{ w.likesCount }}</div>
  5099. </div>
  5100. <div
  5101. class="commentList"
  5102. style="margin-right: 15px"
  5103. >
  5104. <div
  5105. class="commentImg"
  5106. @click="
  5107. commentOther(
  5108. w,
  5109. toolIndex,
  5110. wIndex,
  5111. null,
  5112. g.id
  5113. )
  5114. "
  5115. >
  5116. <img
  5117. src="../assets/icon/comment/comment.png"
  5118. alt=""
  5119. />
  5120. </div>
  5121. <div>{{ w.commentCount }}</div>
  5122. </div>
  5123. </div>
  5124. </div>
  5125. </div>
  5126. </div>
  5127. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  5128. </div>
  5129. </div>
  5130. <div
  5131. :id="'tool-' + toolIndex"
  5132. :style="{
  5133. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5134. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5135. }"
  5136. class="worksDetailBox"
  5137. v-if="
  5138. worksStudent.length &&
  5139. worksStudent[toolIndex].length > 0
  5140. "
  5141. >
  5142. <div
  5143. class="works"
  5144. style="
  5145. width: 200px;
  5146. height: 140px;
  5147. margin: 10px 10px 10px 0;
  5148. border-radius: 15px;
  5149. box-shadow: 0 0 6px 1px #dfdada;
  5150. "
  5151. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5152. :key="wIndex"
  5153. >
  5154. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5155. <div class="workImg">
  5156. <img
  5157. :src="w.works"
  5158. @click="previewImg(w.works,w)"
  5159. alt
  5160. />
  5161. <div
  5162. class="answerScore"
  5163. v-if="w.score"
  5164. @click.stop="openScore(w)"
  5165. :class="{
  5166. rightW:
  5167. w.userid == userid || tType == 1 || tType == 4,
  5168. }"
  5169. >
  5170. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5171. </div>
  5172. <div
  5173. class="answerScore"
  5174. @click.stop="openScore(w)"
  5175. v-else-if="courseDetail.userid == userid"
  5176. :class="{
  5177. rightW:
  5178. w.userid == userid || tType == 1 || tType == 4,
  5179. }"
  5180. >
  5181. {{ lang.ssMarkScore }}
  5182. </div>
  5183. <img
  5184. class="deleteImg"
  5185. src="../assets/deleteworks.png"
  5186. v-if="
  5187. w.userid == userid || tType == 1 || tType == 4
  5188. "
  5189. @click.stop="deleteWorks(w.wid)"
  5190. alt
  5191. />
  5192. </div>
  5193. <div class="comment" style="min-width: 200px">
  5194. <div class="worksName">
  5195. <div>{{ w.sName }}</div>
  5196. </div>
  5197. <div class="commentList">
  5198. <div class="commentList">
  5199. <div
  5200. class="commentImg"
  5201. @click="
  5202. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5203. "
  5204. >
  5205. <img
  5206. :src="w.isLikes == true ? likes : noLikes"
  5207. alt=""
  5208. />
  5209. </div>
  5210. <div>{{ w.likesCount }}</div>
  5211. </div>
  5212. <div class="commentList" style="margin-right: 15px">
  5213. <div
  5214. class="commentImg"
  5215. @click="commentOther(w, toolIndex, wIndex)"
  5216. >
  5217. <img
  5218. src="../assets/icon/comment/comment.png"
  5219. alt=""
  5220. />
  5221. </div>
  5222. <div>{{ w.commentCount }}</div>
  5223. </div>
  5224. </div>
  5225. </div>
  5226. </div>
  5227. </div>
  5228. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5229. {{ lang.ssNotSubmitted }}
  5230. </div>
  5231. <div
  5232. class="noWorksS"
  5233. v-if="noWorksS && noWorksS[toolIndex].length"
  5234. >
  5235. <div
  5236. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5237. :key="sIndex"
  5238. class="noWorksName"
  5239. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5240. >
  5241. <el-tooltip effect="dark" :content="s.student" placement="top">
  5242. <span>{{ s.student }}</span>
  5243. </el-tooltip>
  5244. </div>
  5245. </div>
  5246. </div>
  5247. <div
  5248. v-if="
  5249. tType &&
  5250. ((tType == 2 && sIsOpen == true) ||
  5251. tType == 1 ||
  5252. tType == 4) &&
  5253. tool.tool.indexOf(3) != -1
  5254. "
  5255. class="worksBox"
  5256. >
  5257. <div
  5258. class="zuoyeYulan"
  5259. v-if="
  5260. (worksStudent.length &&
  5261. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5262. "
  5263. >
  5264. <div class="worksTop">
  5265. <div>{{ lang.ssHomeworkPreview }}</div>
  5266. <div
  5267. class="corOpen"
  5268. @click="contract(toolIndex)"
  5269. v-if="
  5270. (isCloseList[toolIndex].isCloseBoolean) &&
  5271. isCloseList[toolIndex].isClose == 0
  5272. "
  5273. >
  5274. {{ lang.ssFold }}
  5275. </div>
  5276. <div
  5277. class="corOpen"
  5278. @click="contract(toolIndex)"
  5279. v-if="isCloseList[toolIndex].isClose == 1"
  5280. >
  5281. {{ lang.ssExpand }}
  5282. </div>
  5283. </div>
  5284. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5285. </div>
  5286. <div
  5287. class="group_workBox"
  5288. v-for="(g, gindex) in courseGroup.group"
  5289. :key="gindex"
  5290. >
  5291. <div class="group_box">
  5292. <div class="group_title">
  5293. <el-tooltip
  5294. class="item"
  5295. effect="light"
  5296. :content="g.name"
  5297. placement="top"
  5298. >
  5299. <div class="group_name">{{ g.name }}</div>
  5300. </el-tooltip>
  5301. </div>
  5302. <div
  5303. class="group_work"
  5304. v-if="
  5305. g.works &&
  5306. g.works.length &&
  5307. g.works[toolIndex].length
  5308. "
  5309. >
  5310. <div
  5311. class="works"
  5312. style="
  5313. width: 200px;
  5314. height: 140px;
  5315. margin: 10px 10px 10px 0;
  5316. border-radius: 15px;
  5317. box-shadow: 0 0 6px 1px #dfdada;
  5318. "
  5319. v-for="(w, wIndex) in g.works[toolIndex]"
  5320. :key="wIndex"
  5321. :class="w.type == 1 ? 'isTypeOne' : ''"
  5322. >
  5323. <div class="workImg">
  5324. <img
  5325. :src="w.works"
  5326. @click="previewImg(w.works,w)"
  5327. alt
  5328. />
  5329. <div
  5330. class="answerScore"
  5331. v-if="w.score"
  5332. @click.stop="openScore(w)"
  5333. :class="{
  5334. rightW:
  5335. w.userid == userid ||
  5336. tType == 1 ||
  5337. tType == 4,
  5338. }"
  5339. >
  5340. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5341. </div>
  5342. <div
  5343. class="answerScore"
  5344. @click.stop="openScore(w)"
  5345. v-else-if="courseDetail.userid == userid"
  5346. :class="{
  5347. rightW:
  5348. w.userid == userid ||
  5349. tType == 1 ||
  5350. tType == 4,
  5351. }"
  5352. >
  5353. {{ lang.ssMarkScore }}
  5354. </div>
  5355. <img
  5356. class="deleteImg"
  5357. src="../assets/deleteworks.png"
  5358. v-if="
  5359. w.userid == userid || tType == 1 || tType == 4
  5360. "
  5361. @click.stop="deleteWorks(w.wid)"
  5362. alt
  5363. />
  5364. </div>
  5365. <div class="comment" style="min-width: 200px">
  5366. <div class="worksName">
  5367. <div>{{ w.sName }}</div>
  5368. </div>
  5369. <div class="commentList">
  5370. <div class="commentList">
  5371. <div
  5372. class="commentImg"
  5373. @click="
  5374. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5375. "
  5376. >
  5377. <img
  5378. :src="w.isLikes == true ? likes : noLikes"
  5379. alt=""
  5380. />
  5381. </div>
  5382. <div>{{ w.likesCount }}</div>
  5383. </div>
  5384. <div
  5385. class="commentList"
  5386. style="margin-right: 15px"
  5387. >
  5388. <div
  5389. class="commentImg"
  5390. @click="
  5391. commentOther(
  5392. w,
  5393. toolIndex,
  5394. wIndex,
  5395. null,
  5396. g.id
  5397. )
  5398. "
  5399. >
  5400. <img
  5401. src="../assets/icon/comment/comment.png"
  5402. alt=""
  5403. />
  5404. </div>
  5405. <div>{{ w.commentCount }}</div>
  5406. </div>
  5407. </div>
  5408. </div>
  5409. </div>
  5410. </div>
  5411. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  5412. </div>
  5413. </div>
  5414. <div
  5415. :id="'tool-' + toolIndex"
  5416. :style="{
  5417. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5418. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5419. }"
  5420. class="worksDetailBox"
  5421. v-if="
  5422. worksStudent.length &&
  5423. worksStudent[toolIndex].length > 0
  5424. "
  5425. >
  5426. <div
  5427. class="works"
  5428. style="
  5429. width: 200px;
  5430. height: 140px;
  5431. margin: 10px 10px 10px 0;
  5432. border-radius: 15px;
  5433. box-shadow: 0 0 6px 1px #dfdada;
  5434. "
  5435. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5436. :key="wIndex"
  5437. >
  5438. <!-- @click="previewImg(w.works)" -->
  5439. <div class="workImg">
  5440. <img
  5441. :src="w.works"
  5442. @click="previewImg(w.works,w)"
  5443. alt
  5444. />
  5445. <div
  5446. class="answerScore"
  5447. v-if="w.score"
  5448. @click.stop="openScore(w)"
  5449. :class="{
  5450. rightW:
  5451. w.userid == userid || tType == 1 || tType == 4,
  5452. }"
  5453. >
  5454. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5455. </div>
  5456. <div
  5457. class="answerScore"
  5458. @click.stop="openScore(w)"
  5459. v-else-if="courseDetail.userid == userid"
  5460. :class="{
  5461. rightW:
  5462. w.userid == userid || tType == 1 || tType == 4,
  5463. }"
  5464. >
  5465. {{ lang.ssMarkScore }}
  5466. </div>
  5467. <img
  5468. class="deleteImg"
  5469. src="../assets/deleteworks.png"
  5470. v-if="
  5471. w.userid == userid || tType == 1 || tType == 4
  5472. "
  5473. @click.stop="deleteWorks(w.wid)"
  5474. alt
  5475. />
  5476. </div>
  5477. <div class="comment" style="min-width: 200px">
  5478. <div class="worksName">
  5479. <div>{{ w.sName }}</div>
  5480. </div>
  5481. <div class="commentList">
  5482. <div class="commentList">
  5483. <div
  5484. class="commentImg"
  5485. @click="
  5486. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5487. "
  5488. >
  5489. <img
  5490. :src="w.isLikes == true ? likes : noLikes"
  5491. alt=""
  5492. />
  5493. </div>
  5494. <div>{{ w.likesCount }}</div>
  5495. </div>
  5496. <div class="commentList" style="margin-right: 15px">
  5497. <div
  5498. class="commentImg"
  5499. @click="commentOther(w, toolIndex, wIndex)"
  5500. >
  5501. <img
  5502. src="../assets/icon/comment/comment.png"
  5503. alt=""
  5504. />
  5505. </div>
  5506. <div>{{ w.commentCount }}</div>
  5507. </div>
  5508. </div>
  5509. </div>
  5510. </div>
  5511. </div>
  5512. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5513. {{ lang.ssNotSubmitted }}
  5514. </div>
  5515. <div
  5516. class="noWorksS"
  5517. v-if="noWorksS && noWorksS[toolIndex].length"
  5518. >
  5519. <div
  5520. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5521. :key="sIndex"
  5522. class="noWorksName"
  5523. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5524. >
  5525. <el-tooltip effect="dark" :content="s.student" placement="top">
  5526. <span>{{ s.student }}</span>
  5527. </el-tooltip>
  5528. </div>
  5529. </div>
  5530. </div>
  5531. <div
  5532. v-if="
  5533. tType &&
  5534. ((tType == 2 && sIsOpen == true) ||
  5535. tType == 1 ||
  5536. tType == 4) &&
  5537. tool.tool.indexOf(6) != -1
  5538. "
  5539. class="worksBox"
  5540. >
  5541. <div
  5542. class="zuoyeYulan"
  5543. v-if="
  5544. (worksStudent.length &&
  5545. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5546. "
  5547. >
  5548. <div class="worksTop">
  5549. <div>{{ lang.ssHomeworkPreview }}</div>
  5550. <div
  5551. class="corOpen"
  5552. @click="contract(toolIndex)"
  5553. v-if="
  5554. (isCloseList[toolIndex].isCloseBoolean) &&
  5555. isCloseList[toolIndex].isClose == 0
  5556. "
  5557. >
  5558. {{ lang.ssFold }}
  5559. </div>
  5560. <div
  5561. class="corOpen"
  5562. @click="contract(toolIndex)"
  5563. v-if="isCloseList[toolIndex].isClose == 1"
  5564. >
  5565. {{ lang.ssExpand }}
  5566. </div>
  5567. </div>
  5568. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5569. </div>
  5570. <div
  5571. class="group_workBox"
  5572. v-for="(g, gindex) in courseGroup.group"
  5573. :key="gindex"
  5574. >
  5575. <div class="group_box">
  5576. <div class="group_title">
  5577. <el-tooltip
  5578. class="item"
  5579. effect="light"
  5580. :content="g.name"
  5581. placement="top"
  5582. >
  5583. <div class="group_name">{{ g.name }}</div>
  5584. </el-tooltip>
  5585. </div>
  5586. <div
  5587. class="group_work"
  5588. v-if="
  5589. g.works &&
  5590. g.works.length &&
  5591. g.works[toolIndex].length
  5592. "
  5593. >
  5594. <div
  5595. class="works"
  5596. style="
  5597. width: 200px;
  5598. height: 140px;
  5599. margin: 10px 10px 10px 0;
  5600. border-radius: 15px;
  5601. box-shadow: 0 0 6px 1px #dfdada;
  5602. "
  5603. v-for="(w, wIndex) in g.works[toolIndex]"
  5604. :key="wIndex"
  5605. :class="w.type == 1 ? 'isTypeOne' : ''"
  5606. >
  5607. <div class="workImg">
  5608. <img
  5609. :src="w.works"
  5610. @click="previewImg(w.works,w)"
  5611. alt
  5612. />
  5613. <div
  5614. class="answerScore"
  5615. v-if="w.score"
  5616. @click.stop="openScore(w)"
  5617. :class="{
  5618. rightW:
  5619. w.userid == userid ||
  5620. tType == 1 ||
  5621. tType == 4,
  5622. }"
  5623. >
  5624. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5625. </div>
  5626. <div
  5627. class="answerScore"
  5628. @click.stop="openScore(w)"
  5629. v-else-if="courseDetail.userid == userid"
  5630. :class="{
  5631. rightW:
  5632. w.userid == userid ||
  5633. tType == 1 ||
  5634. tType == 4,
  5635. }"
  5636. >
  5637. {{ lang.ssMarkScore }}
  5638. </div>
  5639. <img
  5640. class="deleteImg"
  5641. src="../assets/deleteworks.png"
  5642. v-if="
  5643. w.userid == userid || tType == 1 || tType == 4
  5644. "
  5645. @click.stop="deleteWorks(w.wid)"
  5646. alt
  5647. />
  5648. </div>
  5649. <div class="comment" style="min-width: 200px">
  5650. <div class="worksName">
  5651. <div>{{ w.sName }}</div>
  5652. </div>
  5653. <div class="commentList">
  5654. <div class="commentList">
  5655. <div
  5656. class="commentImg"
  5657. @click="
  5658. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5659. "
  5660. >
  5661. <img
  5662. :src="w.isLikes == true ? likes : noLikes"
  5663. alt=""
  5664. />
  5665. </div>
  5666. <div>{{ w.likesCount }}</div>
  5667. </div>
  5668. <div
  5669. class="commentList"
  5670. style="margin-right: 15px"
  5671. >
  5672. <div
  5673. class="commentImg"
  5674. @click="
  5675. commentOther(
  5676. w,
  5677. toolIndex,
  5678. wIndex,
  5679. null,
  5680. g.id
  5681. )
  5682. "
  5683. >
  5684. <img
  5685. src="../assets/icon/comment/comment.png"
  5686. alt=""
  5687. />
  5688. </div>
  5689. <div>{{ w.commentCount }}</div>
  5690. </div>
  5691. </div>
  5692. </div>
  5693. </div>
  5694. </div>
  5695. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  5696. </div>
  5697. </div>
  5698. <div
  5699. :id="'tool-' + toolIndex"
  5700. :style="{
  5701. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5702. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5703. }"
  5704. class="worksDetailBox"
  5705. v-if="
  5706. worksStudent.length &&
  5707. worksStudent[toolIndex].length > 0
  5708. "
  5709. >
  5710. <div
  5711. class="works"
  5712. style="
  5713. width: 200px;
  5714. height: 140px;
  5715. margin: 10px 10px 10px 0;
  5716. border-radius: 15px;
  5717. box-shadow: 0 0 6px 1px #dfdada;
  5718. "
  5719. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5720. :key="wIndex"
  5721. >
  5722. <!-- @click="previewImg(w.works)" -->
  5723. <div class="workImg">
  5724. <img
  5725. :src="w.works"
  5726. @click="previewImg(w.works,w)"
  5727. alt
  5728. />
  5729. <div
  5730. class="answerScore"
  5731. v-if="w.score"
  5732. @click.stop="openScore(w)"
  5733. :class="{
  5734. rightW:
  5735. w.userid == userid || tType == 1 || tType == 4,
  5736. }"
  5737. >
  5738. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5739. </div>
  5740. <div
  5741. class="answerScore"
  5742. @click.stop="openScore(w)"
  5743. v-else-if="courseDetail.userid == userid"
  5744. :class="{
  5745. rightW:
  5746. w.userid == userid || tType == 1 || tType == 4,
  5747. }"
  5748. >
  5749. {{ lang.ssMarkScore }}
  5750. </div>
  5751. <img
  5752. class="deleteImg"
  5753. src="../assets/deleteworks.png"
  5754. v-if="
  5755. w.userid == userid || tType == 1 || tType == 4
  5756. "
  5757. @click.stop="deleteWorks(w.wid)"
  5758. alt
  5759. />
  5760. </div>
  5761. <div class="comment" style="min-width: 200px">
  5762. <div class="worksName">
  5763. <div>{{ w.sName }}</div>
  5764. </div>
  5765. <div class="commentList">
  5766. <div class="commentList">
  5767. <div
  5768. class="commentImg"
  5769. @click="
  5770. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5771. "
  5772. >
  5773. <img
  5774. :src="w.isLikes == true ? likes : noLikes"
  5775. alt=""
  5776. />
  5777. </div>
  5778. <div>{{ w.likesCount }}</div>
  5779. </div>
  5780. <div class="commentList" style="margin-right: 15px">
  5781. <div
  5782. class="commentImg"
  5783. @click="commentOther(w, toolIndex, wIndex)"
  5784. >
  5785. <img
  5786. src="../assets/icon/comment/comment.png"
  5787. alt=""
  5788. />
  5789. </div>
  5790. <div>{{ w.commentCount }}</div>
  5791. </div>
  5792. </div>
  5793. </div>
  5794. </div>
  5795. </div>
  5796. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5797. {{ lang.ssNotSubmitted }}
  5798. </div>
  5799. <div
  5800. class="noWorksS"
  5801. v-if="noWorksS && noWorksS[toolIndex].length"
  5802. >
  5803. <div
  5804. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5805. :key="sIndex"
  5806. class="noWorksName"
  5807. >
  5808. <el-tooltip effect="dark" :content="s.student" placement="top">
  5809. <span>{{ s.student }}</span>
  5810. </el-tooltip>
  5811. </div>
  5812. </div>
  5813. </div>
  5814. <div
  5815. v-if="
  5816. tType &&
  5817. ((tType == 2 && sIsOpen == true) ||
  5818. tType == 1 ||
  5819. tType == 4) &&
  5820. tool.tool.indexOf(7) != -1
  5821. "
  5822. class="worksBox"
  5823. >
  5824. <div
  5825. class="zuoyeYulan"
  5826. v-if="
  5827. (worksStudent.length &&
  5828. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5829. "
  5830. >
  5831. <div class="worksTop">
  5832. <div>{{ lang.ssHomeworkPreview }}</div>
  5833. <div
  5834. class="corOpen"
  5835. @click="contract(toolIndex)"
  5836. v-if="
  5837. (isCloseList[toolIndex].isCloseBoolean) &&
  5838. isCloseList[toolIndex].isClose == 0
  5839. "
  5840. >
  5841. {{ lang.ssFold }}
  5842. </div>
  5843. <div
  5844. class="corOpen"
  5845. @click="contract(toolIndex)"
  5846. v-if="isCloseList[toolIndex].isClose == 1"
  5847. >
  5848. {{ lang.ssExpand }}
  5849. </div>
  5850. </div>
  5851. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5852. </div>
  5853. <div
  5854. class="group_workBox"
  5855. v-for="(g, gindex) in courseGroup.group"
  5856. :key="gindex"
  5857. >
  5858. <div class="group_box">
  5859. <div class="group_title">
  5860. <el-tooltip
  5861. class="item"
  5862. effect="light"
  5863. :content="g.name"
  5864. placement="top"
  5865. >
  5866. <div class="group_name">{{ g.name }}</div>
  5867. </el-tooltip>
  5868. </div>
  5869. <div
  5870. class="group_work"
  5871. v-if="
  5872. g.works &&
  5873. g.works.length &&
  5874. g.works[toolIndex].length
  5875. "
  5876. >
  5877. <div
  5878. class="works"
  5879. style="
  5880. width: 200px;
  5881. height: 140px;
  5882. margin: 10px 10px 10px 0;
  5883. border-radius: 15px;
  5884. box-shadow: 0 0 6px 1px #dfdada;
  5885. "
  5886. v-for="(w, wIndex) in g.works[toolIndex]"
  5887. :key="wIndex"
  5888. :class="w.type == 1 ? 'isTypeOne' : ''"
  5889. >
  5890. <div class="workImg">
  5891. <img
  5892. :src="w.works"
  5893. @click="previewImg(w.works,w)"
  5894. alt
  5895. />
  5896. <div
  5897. class="answerScore"
  5898. v-if="w.score"
  5899. @click.stop="openScore(w)"
  5900. :class="{
  5901. rightW:
  5902. w.userid == userid ||
  5903. tType == 1 ||
  5904. tType == 4,
  5905. }"
  5906. >
  5907. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5908. </div>
  5909. <div
  5910. class="answerScore"
  5911. @click.stop="openScore(w)"
  5912. v-else-if="courseDetail.userid == userid"
  5913. :class="{
  5914. rightW:
  5915. w.userid == userid ||
  5916. tType == 1 ||
  5917. tType == 4,
  5918. }"
  5919. >
  5920. {{ lang.ssMarkScore }}
  5921. </div>
  5922. <img
  5923. class="deleteImg"
  5924. src="../assets/deleteworks.png"
  5925. v-if="
  5926. w.userid == userid || tType == 1 || tType == 4
  5927. "
  5928. @click.stop="deleteWorks(w.wid)"
  5929. alt
  5930. />
  5931. </div>
  5932. <div class="comment" style="min-width: 200px">
  5933. <div class="worksName">
  5934. <div>{{ w.sName }}</div>
  5935. </div>
  5936. <div class="commentList">
  5937. <div class="commentList">
  5938. <div
  5939. class="commentImg"
  5940. @click="
  5941. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5942. "
  5943. >
  5944. <img
  5945. :src="w.isLikes == true ? likes : noLikes"
  5946. alt=""
  5947. />
  5948. </div>
  5949. <div>{{ w.likesCount }}</div>
  5950. </div>
  5951. <div
  5952. class="commentList"
  5953. style="margin-right: 15px"
  5954. >
  5955. <div
  5956. class="commentImg"
  5957. @click="
  5958. commentOther(
  5959. w,
  5960. toolIndex,
  5961. wIndex,
  5962. null,
  5963. g.id
  5964. )
  5965. "
  5966. >
  5967. <img
  5968. src="../assets/icon/comment/comment.png"
  5969. alt=""
  5970. />
  5971. </div>
  5972. <div>{{ w.commentCount }}</div>
  5973. </div>
  5974. </div>
  5975. </div>
  5976. </div>
  5977. </div>
  5978. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  5979. </div>
  5980. </div>
  5981. <div
  5982. :id="'tool-' + toolIndex"
  5983. :style="{
  5984. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5985. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5986. }"
  5987. class="worksDetailBox"
  5988. v-if="
  5989. worksStudent.length &&
  5990. worksStudent[toolIndex].length > 0
  5991. "
  5992. >
  5993. <div
  5994. class="works"
  5995. style="
  5996. width: 200px;
  5997. height: 140px;
  5998. margin: 10px 10px 10px 0;
  5999. border-radius: 15px;
  6000. box-shadow: 0 0 6px 1px #dfdada;
  6001. "
  6002. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6003. :key="wIndex"
  6004. >
  6005. <!-- @click="previewImg(w.works)" -->
  6006. <div class="workImg">
  6007. <img
  6008. :src="w.works"
  6009. @click="previewImg(w.works,w)"
  6010. alt
  6011. />
  6012. <div
  6013. class="answerScore"
  6014. v-if="w.score"
  6015. @click.stop="openScore(w)"
  6016. :class="{
  6017. rightW:
  6018. w.userid == userid || tType == 1 || tType == 4,
  6019. }"
  6020. >
  6021. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  6022. </div>
  6023. <div
  6024. class="answerScore"
  6025. @click.stop="openScore(w)"
  6026. v-else-if="courseDetail.userid == userid"
  6027. :class="{
  6028. rightW:
  6029. w.userid == userid || tType == 1 || tType == 4,
  6030. }"
  6031. >
  6032. {{ lang.ssMarkScore }}
  6033. </div>
  6034. <img
  6035. class="deleteImg"
  6036. src="../assets/deleteworks.png"
  6037. v-if="
  6038. w.userid == userid || tType == 1 || tType == 4
  6039. "
  6040. @click.stop="deleteWorks(w.wid)"
  6041. alt
  6042. />
  6043. </div>
  6044. <div class="comment" style="min-width: 200px">
  6045. <div class="worksName">
  6046. <div>{{ w.sName }}</div>
  6047. </div>
  6048. <div class="commentList">
  6049. <div class="commentList">
  6050. <div
  6051. class="commentImg"
  6052. @click="
  6053. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6054. "
  6055. >
  6056. <img
  6057. :src="w.isLikes == true ? likes : noLikes"
  6058. alt=""
  6059. />
  6060. </div>
  6061. <div>{{ w.likesCount }}</div>
  6062. </div>
  6063. <div class="commentList" style="margin-right: 15px">
  6064. <div
  6065. class="commentImg"
  6066. @click="commentOther(w, toolIndex, wIndex)"
  6067. >
  6068. <img
  6069. src="../assets/icon/comment/comment.png"
  6070. alt=""
  6071. />
  6072. </div>
  6073. <div>{{ w.commentCount }}</div>
  6074. </div>
  6075. </div>
  6076. </div>
  6077. </div>
  6078. </div>
  6079. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6080. {{ lang.ssNotSubmitted }}
  6081. </div>
  6082. <div
  6083. class="noWorksS"
  6084. v-if="noWorksS && noWorksS[toolIndex].length"
  6085. >
  6086. <div
  6087. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6088. :key="sIndex"
  6089. class="noWorksName"
  6090. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6091. >
  6092. <el-tooltip effect="dark" :content="s.student" placement="top">
  6093. <span>{{ s.student }}</span>
  6094. </el-tooltip>
  6095. </div>
  6096. </div>
  6097. </div>
  6098. <div
  6099. v-if="
  6100. tType &&
  6101. ((tType == 2 && sIsOpen == true) ||
  6102. tType == 1 ||
  6103. tType == 4) &&
  6104. tool.tool.indexOf(26) != -1
  6105. "
  6106. class="worksBox"
  6107. >
  6108. <div
  6109. class="zuoyeYulan"
  6110. v-if="
  6111. worksStudent.length &&
  6112. worksStudent[toolIndex].length > 0
  6113. "
  6114. >
  6115. <div class="worksTop">
  6116. <div>{{ lang.ssHomeworkPreview }}</div>
  6117. <div
  6118. class="corOpen"
  6119. @click="contract(toolIndex)"
  6120. v-if="
  6121. (isCloseList[toolIndex].isCloseBoolean) &&
  6122. isCloseList[toolIndex].isClose == 0
  6123. "
  6124. >
  6125. {{ lang.ssFold }}
  6126. </div>
  6127. <div
  6128. class="corOpen"
  6129. @click="contract(toolIndex)"
  6130. v-if="isCloseList[toolIndex].isClose == 1"
  6131. >
  6132. {{ lang.ssExpand }}
  6133. </div>
  6134. </div>
  6135. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6136. </div>
  6137. <div
  6138. :id="'tool-' + toolIndex"
  6139. :style="{
  6140. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6141. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6142. }"
  6143. class="worksDetailBox"
  6144. v-if="
  6145. worksStudent.length &&
  6146. worksStudent[toolIndex].length > 0
  6147. "
  6148. >
  6149. <div
  6150. class="works"
  6151. style="width: 240px; height: 140px; overflow: hidden"
  6152. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6153. :key="wIndex"
  6154. :class="w.type == 1 ? 'isTypeOne' : ''"
  6155. >
  6156. <div class="workImg" v-if="w.type == 0">
  6157. <img
  6158. :src="w.works"
  6159. @click="previewImg(w.works,w)"
  6160. alt
  6161. />
  6162. <img
  6163. class="deleteImg"
  6164. src="../assets/deleteworks.png"
  6165. v-if="
  6166. w.userid == userid || tType == 1 || tType == 4
  6167. "
  6168. @click.stop="deleteWorks(w.wid)"
  6169. alt
  6170. />
  6171. </div>
  6172. <div class="workImg" v-if="w.type == 1">
  6173. <img :src="word" @click="openFile(w.works,w)" alt />
  6174. <img
  6175. class="deleteImg"
  6176. src="../assets/deleteworks.png"
  6177. v-if="
  6178. w.userid == userid || tType == 1 || tType == 4
  6179. "
  6180. @click.stop="deleteWorks(w.wid)"
  6181. alt
  6182. />
  6183. </div>
  6184. <div class="worksName">
  6185. <div>{{ w.sName }}</div>
  6186. </div>
  6187. </div>
  6188. </div>
  6189. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6190. {{ lang.ssNotSubmitted }}
  6191. </div>
  6192. <div
  6193. class="noWorksS"
  6194. v-if="noWorksS && noWorksS[toolIndex].length"
  6195. >
  6196. <div
  6197. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6198. :key="sIndex"
  6199. class="noWorksName"
  6200. >
  6201. <el-tooltip effect="dark" :content="s.student" placement="top">
  6202. <span>{{ s.student }}</span>
  6203. </el-tooltip>
  6204. </div>
  6205. </div>
  6206. </div>
  6207. <div
  6208. v-if="
  6209. tType &&
  6210. ((tType == 2 && sIsOpen == true) ||
  6211. tType == 1 ||
  6212. tType == 4) &&
  6213. tool.tool.indexOf(40) != -1
  6214. "
  6215. class="worksBox"
  6216. >
  6217. <div
  6218. class="zuoyeYulan"
  6219. v-if="
  6220. worksStudent.length &&
  6221. worksStudent[toolIndex].length > 0
  6222. "
  6223. >
  6224. <div class="worksTop">
  6225. <div>{{ lang.ssHomeworkPreview }}</div>
  6226. <div
  6227. class="corOpen"
  6228. @click="contract(toolIndex)"
  6229. v-if="
  6230. (isCloseList[toolIndex].isCloseBoolean) &&
  6231. isCloseList[toolIndex].isClose == 0
  6232. "
  6233. >
  6234. {{ lang.ssFold }}
  6235. </div>
  6236. <div
  6237. class="corOpen"
  6238. @click="contract(toolIndex)"
  6239. v-if="isCloseList[toolIndex].isClose == 1"
  6240. >
  6241. {{ lang.ssExpand }}
  6242. </div>
  6243. </div>
  6244. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6245. </div>
  6246. <div
  6247. :id="'tool-' + toolIndex"
  6248. :style="{
  6249. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6250. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6251. }"
  6252. class="worksDetailBox"
  6253. v-if="
  6254. worksStudent.length &&
  6255. worksStudent[toolIndex].length > 0
  6256. "
  6257. >
  6258. <div
  6259. class="works"
  6260. style="
  6261. width: 200px;
  6262. height: 140px;
  6263. margin: 10px 10px 10px 0;
  6264. border-radius: 15px;
  6265. box-shadow: 0 0 6px 1px #dfdada;
  6266. "
  6267. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6268. :key="wIndex"
  6269. :class="w.type == 1 ? 'isTypeOne' : ''"
  6270. >
  6271. <div class="workImg">
  6272. <img
  6273. src="../assets/icon/works/noImg.png"
  6274. @click="openPj(w.works, toolIndex)"
  6275. alt
  6276. />
  6277. <img
  6278. class="deleteImg"
  6279. src="../assets/deleteworks.png"
  6280. v-if="
  6281. w.userid == userid || tType == 1 || tType == 4
  6282. "
  6283. @click.stop="deleteWorks(w.wid)"
  6284. alt
  6285. />
  6286. </div>
  6287. <div class="comment" style="min-width: 200px">
  6288. <div class="worksName">
  6289. <div>{{ w.sName }}</div>
  6290. </div>
  6291. <div class="commentList">
  6292. <div class="commentList">
  6293. <div
  6294. class="commentImg"
  6295. @click="
  6296. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6297. "
  6298. >
  6299. <img
  6300. :src="w.isLikes == true ? likes : noLikes"
  6301. alt=""
  6302. />
  6303. </div>
  6304. <div>{{ w.likesCount }}</div>
  6305. </div>
  6306. <div class="commentList" style="margin-right: 15px">
  6307. <div
  6308. class="commentImg"
  6309. @click="commentOther(w, toolIndex, wIndex)"
  6310. >
  6311. <img
  6312. src="../assets/icon/comment/comment.png"
  6313. alt=""
  6314. />
  6315. </div>
  6316. <div>{{ w.commentCount }}</div>
  6317. </div>
  6318. </div>
  6319. </div>
  6320. </div>
  6321. </div>
  6322. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6323. {{ lang.ssNotSubmitted }}
  6324. </div>
  6325. <div
  6326. class="noWorksS"
  6327. v-if="noWorksS && noWorksS[toolIndex].length"
  6328. >
  6329. <div
  6330. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6331. :key="sIndex"
  6332. class="noWorksName"
  6333. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6334. >
  6335. <el-tooltip effect="dark" :content="s.student" placement="top">
  6336. <span>{{ s.student }}</span>
  6337. </el-tooltip>
  6338. </div>
  6339. </div>
  6340. </div>
  6341. <div
  6342. v-if="
  6343. tType &&
  6344. tType == 2 &&
  6345. !sIsOpen &&
  6346. tool.tool.indexOf(40) != -1
  6347. "
  6348. class="worksBox"
  6349. >
  6350. <div
  6351. class="zuoyeYulan"
  6352. v-if="workStudent[toolIndex].length > 0"
  6353. >
  6354. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6355. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6356. </div>
  6357. <div
  6358. class="worksDetailBox"
  6359. v-if="workStudent[toolIndex].length > 0"
  6360. >
  6361. <div
  6362. class="works"
  6363. style="
  6364. width: 200px;
  6365. height: 140px;
  6366. margin: 10px 10px 10px 0;
  6367. "
  6368. v-for="(w, wIndex) in workStudent[toolIndex]"
  6369. :key="wIndex"
  6370. >
  6371. <div class="workImg">
  6372. <img
  6373. src="../assets/icon/works/noImg.png"
  6374. @click="openPj(w.works, toolIndex)"
  6375. alt
  6376. />
  6377. <img
  6378. class="deleteImg"
  6379. src="../assets/deleteworks.png"
  6380. v-if="
  6381. w.userid == userid || tType == 1 || tType == 4
  6382. "
  6383. @click.stop="deleteWorks(w.wid)"
  6384. alt
  6385. />
  6386. </div>
  6387. <div class="worksName">
  6388. <div>{{ w.sName }}</div>
  6389. </div>
  6390. </div>
  6391. </div>
  6392. </div>
  6393. <div
  6394. v-if="
  6395. tType &&
  6396. ((tType == 2 && sIsOpen == true) ||
  6397. tType == 1 ||
  6398. tType == 4) &&
  6399. tool.tool.indexOf(41) != -1
  6400. "
  6401. >
  6402. <AnswerData2
  6403. v-if="
  6404. worksStudent.length &&
  6405. worksStudent[toolIndex].length > 0
  6406. "
  6407. :problemJson="tool.selectJson.answer"
  6408. :people="worksStudent[toolIndex]"
  6409. ></AnswerData2>
  6410. </div>
  6411. <div
  6412. v-if="
  6413. tType &&
  6414. ((tType == 2 && sIsOpen == true) ||
  6415. tType == 1 ||
  6416. tType == 4) &&
  6417. tool.tool.indexOf(41) != -1
  6418. "
  6419. class="worksBox"
  6420. >
  6421. <div
  6422. class="zuoyeYulan"
  6423. v-if="
  6424. worksStudent.length &&
  6425. worksStudent[toolIndex].length > 0
  6426. "
  6427. >
  6428. <div class="worksTop">
  6429. <div>{{ lang.ssHomeworkPreview }}</div>
  6430. <div
  6431. class="corOpen"
  6432. @click="contract(toolIndex)"
  6433. v-if="
  6434. (isCloseList[toolIndex].isCloseBoolean) &&
  6435. isCloseList[toolIndex].isClose == 0
  6436. "
  6437. >
  6438. {{ lang.ssFold }}
  6439. </div>
  6440. <div
  6441. class="corOpen"
  6442. @click="contract(toolIndex)"
  6443. v-if="isCloseList[toolIndex].isClose == 1"
  6444. >
  6445. {{ lang.ssExpand }}
  6446. </div>
  6447. </div>
  6448. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6449. </div>
  6450. <div
  6451. :id="'tool-' + toolIndex"
  6452. :style="{
  6453. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6454. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6455. }"
  6456. class="worksDetailBox"
  6457. v-if="
  6458. worksStudent.length &&
  6459. worksStudent[toolIndex].length > 0
  6460. "
  6461. >
  6462. <div
  6463. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6464. :key="wIndex"
  6465. class="isWorksName2"
  6466. @click="openXz(w, toolIndex)"
  6467. >
  6468. {{ w.sName }}
  6469. <img
  6470. class="deleteImg deleteImg2"
  6471. src="../assets/deleteworks.png"
  6472. v-if="w.userid == userid || tType == 1 || tType == 4"
  6473. @click.stop="deleteWorks(w.wid)"
  6474. alt
  6475. />
  6476. </div>
  6477. <!-- <div
  6478. class="works"
  6479. style="
  6480. width: 200px;
  6481. height: 140px;
  6482. margin: 10px 10px 10px 0;
  6483. border-radius: 15px;
  6484. box-shadow: 0 0 6px 1px #dfdada;
  6485. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6486. :class="w.type == 5 ? 'isTypeOne' : ''">
  6487. <div class="workImg">
  6488. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6489. </div>
  6490. <div class="worksName">
  6491. <div>{{ w.sName }}</div>
  6492. </div>
  6493. </div> -->
  6494. </div>
  6495. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6496. {{ lang.ssNotSubmitted }}
  6497. </div>
  6498. <div
  6499. class="noWorksS"
  6500. v-if="noWorksS && noWorksS[toolIndex].length"
  6501. >
  6502. <div
  6503. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6504. :key="sIndex"
  6505. class="noWorksName"
  6506. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6507. >
  6508. <el-tooltip effect="dark" :content="s.student" placement="top">
  6509. <span>{{ s.student }}</span>
  6510. </el-tooltip>
  6511. </div>
  6512. </div>
  6513. </div>
  6514. <div
  6515. v-if="
  6516. tType &&
  6517. tType == 2 &&
  6518. !sIsOpen &&
  6519. tool.tool.indexOf(41) != -1
  6520. "
  6521. class="worksBox"
  6522. >
  6523. <div
  6524. class="zuoyeYulan"
  6525. v-if="workStudent[toolIndex].length > 0"
  6526. >
  6527. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6528. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6529. </div>
  6530. <div
  6531. class="worksDetailBox"
  6532. v-if="workStudent[toolIndex].length > 0"
  6533. >
  6534. <div
  6535. class="works"
  6536. style="
  6537. width: 200px;
  6538. height: 140px;
  6539. margin: 10px 10px 10px 0;
  6540. "
  6541. v-for="(w, wIndex) in workStudent[toolIndex]"
  6542. :key="wIndex"
  6543. >
  6544. <div class="workImg">
  6545. <img
  6546. src="../assets/icon/works/noImg.png"
  6547. @click="openXz(w, toolIndex)"
  6548. alt
  6549. />
  6550. <img
  6551. class="deleteImg"
  6552. src="../assets/deleteworks.png"
  6553. v-if="
  6554. w.userid == userid || tType == 1 || tType == 4
  6555. "
  6556. @click.stop="deleteWorks(w.wid)"
  6557. alt
  6558. />
  6559. </div>
  6560. <div class="worksName">
  6561. <div>{{ w.sName }}</div>
  6562. </div>
  6563. </div>
  6564. </div>
  6565. </div>
  6566. <div v-if="false" class="xuan_right_box">
  6567. <div
  6568. class="tool_right_box"
  6569. v-for="(item, index) in tool.sentenceList"
  6570. :key="index"
  6571. >
  6572. <div>
  6573. <span
  6574. style="word-break: break-all; white-space: normal"
  6575. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6576. >
  6577. </div>
  6578. <div class="right_box_xuan">
  6579. <span>{{ lang.ssCorrectRate }}</span>
  6580. <span>{{
  6581. (checkJson[toolIndex][index].right
  6582. ? checkJson[toolIndex][index].right
  6583. : 0) + "%"
  6584. }}</span>
  6585. </div>
  6586. <div class="right_box_xuan">
  6587. <span>{{ lang.ssRightPerson }}</span>
  6588. <span>{{
  6589. checkJson[toolIndex][index].rightPerson.length
  6590. }}</span>
  6591. </div>
  6592. </div>
  6593. </div>
  6594. <div
  6595. v-if="
  6596. tType &&
  6597. ((tType == 2 && sIsOpen == true) ||
  6598. tType == 1 ||
  6599. tType == 4) &&
  6600. tool.tool.indexOf(47) != -1
  6601. "
  6602. >
  6603. <!-- <AnswerData
  6604. v-if="
  6605. checkJson[toolIndex].length &&
  6606. (tool.sentenceList || tool.sentenceList.length > 0)
  6607. "
  6608. :people="checkJson[toolIndex]"
  6609. ></AnswerData> -->
  6610. <sortToolWorkShow v-if="
  6611. worksStudent[toolIndex].length
  6612. "
  6613. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  6614. </div>
  6615. <div
  6616. v-if="
  6617. tType &&
  6618. tType == 2 &&
  6619. !sIsOpen &&
  6620. tool.tool.indexOf(47) != -1
  6621. "
  6622. class="worksBox"
  6623. >
  6624. <div
  6625. class="zuoyeYulan"
  6626. v-if="workStudent[toolIndex].length > 0"
  6627. >
  6628. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6629. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6630. </div>
  6631. <div
  6632. class="worksDetailBox"
  6633. v-if="workStudent[toolIndex].length > 0"
  6634. >
  6635. <div
  6636. class="works"
  6637. style="
  6638. width: 200px;
  6639. height: 140px;
  6640. margin: 10px 10px 10px 0;
  6641. "
  6642. v-for="(w, wIndex) in workStudent[toolIndex]"
  6643. :key="wIndex"
  6644. >
  6645. <!-- @click="openXz(w, toolIndex)" -->
  6646. <div class="workImg" @click="openSen(w, toolIndex)">
  6647. <img src="../assets/icon/works/noImg.png" alt />
  6648. <img
  6649. class="deleteImg"
  6650. src="../assets/deleteworks.png"
  6651. v-if="
  6652. w.userid == userid || tType == 1 || tType == 4
  6653. "
  6654. @click.stop="deleteWorks(w.wid)"
  6655. alt
  6656. />
  6657. </div>
  6658. <div class="worksName">
  6659. <div>
  6660. {{ w.sName }}
  6661. </div>
  6662. </div>
  6663. </div>
  6664. </div>
  6665. </div>
  6666. <div
  6667. v-if="
  6668. tType &&
  6669. ((tType == 2 && sIsOpen == true) ||
  6670. tType == 1 ||
  6671. tType == 4) &&
  6672. tool.tool.indexOf(47) != -1
  6673. "
  6674. class="worksBox"
  6675. >
  6676. <div
  6677. class="zuoyeYulan"
  6678. v-if="
  6679. worksStudent.length &&
  6680. worksStudent[toolIndex].length > 0
  6681. "
  6682. >
  6683. <div class="worksTop">
  6684. <div>{{ lang.ssHomeworkPreview }}</div>
  6685. <div
  6686. class="corOpen"
  6687. @click="contract(toolIndex)"
  6688. v-if="
  6689. (isCloseList[toolIndex].isCloseBoolean) &&
  6690. isCloseList[toolIndex].isClose == 0
  6691. "
  6692. >
  6693. {{ lang.ssFold }}
  6694. </div>
  6695. <div
  6696. class="corOpen"
  6697. @click="contract(toolIndex)"
  6698. v-if="isCloseList[toolIndex].isClose == 1"
  6699. >
  6700. {{ lang.ssExpand }}
  6701. </div>
  6702. </div>
  6703. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6704. </div>
  6705. <div
  6706. :id="'tool-' + toolIndex"
  6707. :style="{
  6708. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6709. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6710. }"
  6711. class="worksDetailBox"
  6712. v-if="
  6713. worksStudent.length &&
  6714. worksStudent[toolIndex].length > 0
  6715. "
  6716. >
  6717. <!-- @click="openXz(w, toolIndex)" -->
  6718. <div
  6719. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6720. :key="wIndex"
  6721. class="isWorksName2"
  6722. @click="openSen(w, toolIndex)"
  6723. >
  6724. {{ w.sName }}
  6725. <img
  6726. class="deleteImg deleteImg2"
  6727. src="../assets/deleteworks.png"
  6728. v-if="w.userid == userid || tType == 1 || tType == 4"
  6729. @click.stop="deleteWorks(w.wid)"
  6730. alt
  6731. />
  6732. </div>
  6733. </div>
  6734. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6735. {{ lang.ssNotSubmitted }}
  6736. </div>
  6737. <div
  6738. class="noWorksS"
  6739. v-if="noWorksS && noWorksS[toolIndex].length"
  6740. >
  6741. <div
  6742. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6743. :key="sIndex"
  6744. class="noWorksName"
  6745. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6746. >
  6747. <el-tooltip effect="dark" :content="s.student" placement="top">
  6748. <span>{{ s.student }}</span>
  6749. </el-tooltip>
  6750. </div>
  6751. </div>
  6752. </div>
  6753. <div
  6754. v-if="
  6755. tType &&
  6756. ((tType == 2 && sIsOpen == true) ||
  6757. tType == 1 ||
  6758. tType == 4) &&
  6759. tool.tool.indexOf(48) != -1
  6760. "
  6761. class="worksBox"
  6762. >
  6763. <div
  6764. class="zuoyeYulan"
  6765. v-if="
  6766. worksStudent.length &&
  6767. worksStudent[toolIndex].length > 0
  6768. "
  6769. >
  6770. <div class="worksTop">
  6771. <div>{{ lang.ssHomeworkPreview }}</div>
  6772. <div
  6773. class="corOpen"
  6774. @click="contract(toolIndex)"
  6775. v-if="
  6776. (isCloseList[toolIndex].isCloseBoolean) &&
  6777. isCloseList[toolIndex].isClose == 0
  6778. "
  6779. >
  6780. {{ lang.ssFold }}
  6781. </div>
  6782. <div
  6783. class="corOpen"
  6784. @click="contract(toolIndex)"
  6785. v-if="isCloseList[toolIndex].isClose == 1"
  6786. >
  6787. {{ lang.ssExpand }}
  6788. </div>
  6789. </div>
  6790. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6791. </div>
  6792. <div
  6793. :id="'tool-' + toolIndex"
  6794. :style="{
  6795. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6796. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6797. }"
  6798. class="worksDetailBox"
  6799. v-if="
  6800. worksStudent.length &&
  6801. worksStudent[toolIndex].length > 0
  6802. "
  6803. >
  6804. <div
  6805. class="works"
  6806. style="
  6807. width: 200px;
  6808. height: 140px;
  6809. margin: 10px 10px 10px 0;
  6810. border-radius: 15px;
  6811. box-shadow: 0 0 6px 1px #dfdada;
  6812. "
  6813. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6814. :key="wIndex"
  6815. :class="w.type == 1 ? 'isTypeOne' : ''"
  6816. >
  6817. <div class="workImg">
  6818. <img :src="word" @click="openTable(w)" alt />
  6819. <!-- @click="openFile(w.works)" -->
  6820. <div
  6821. class="answerScore"
  6822. v-if="w.score"
  6823. @click.stop="openScore(w)"
  6824. :class="{
  6825. rightW:
  6826. w.userid == userid ||
  6827. tType == 1 ||
  6828. tType == 4 ||
  6829. w.ateacher == userid,
  6830. }"
  6831. >
  6832. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  6833. </div>
  6834. <div
  6835. class="answerScore"
  6836. @click.stop="openScore(w)"
  6837. v-else-if="courseDetail.userid == userid"
  6838. :class="{
  6839. rightW:
  6840. w.userid == userid ||
  6841. tType == 1 ||
  6842. tType == 4 ||
  6843. w.ateacher == userid,
  6844. }"
  6845. >
  6846. {{ lang.ssMarkScore }}
  6847. </div>
  6848. <img
  6849. class="deleteImg"
  6850. src="../assets/deleteworks.png"
  6851. v-if="
  6852. w.userid == userid || tType == 1 || tType == 4
  6853. "
  6854. @click.stop="deleteWorks(w.wid)"
  6855. alt
  6856. />
  6857. </div>
  6858. <div class="comment" style="min-width: 200px">
  6859. <div class="worksName">
  6860. <div>{{ w.sName }}</div>
  6861. </div>
  6862. <div class="commentList">
  6863. <div class="commentList">
  6864. <div
  6865. class="commentImg"
  6866. @click="
  6867. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6868. "
  6869. >
  6870. <img
  6871. :src="w.isLikes == true ? likes : noLikes"
  6872. alt=""
  6873. />
  6874. </div>
  6875. <div>{{ w.likesCount }}</div>
  6876. </div>
  6877. <div class="commentList" style="margin-right: 15px">
  6878. <div
  6879. class="commentImg"
  6880. @click="commentOther(w, toolIndex, wIndex)"
  6881. >
  6882. <img
  6883. src="../assets/icon/comment/comment.png"
  6884. alt=""
  6885. />
  6886. </div>
  6887. <div>{{ w.commentCount }}</div>
  6888. </div>
  6889. </div>
  6890. </div>
  6891. </div>
  6892. </div>
  6893. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6894. {{ lang.ssNotSubmitted }}
  6895. </div>
  6896. <div
  6897. class="noWorksS"
  6898. v-if="noWorksS && noWorksS[toolIndex].length"
  6899. >
  6900. <div
  6901. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6902. :key="sIndex"
  6903. class="noWorksName"
  6904. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6905. >
  6906. <el-tooltip effect="dark" :content="s.student" placement="top">
  6907. <span>{{ s.student }}</span>
  6908. </el-tooltip>
  6909. </div>
  6910. </div>
  6911. </div>
  6912. <div
  6913. v-if="
  6914. tType &&
  6915. tType == 2 &&
  6916. !sIsOpen &&
  6917. tool.tool.indexOf(48) != -1
  6918. "
  6919. class="worksBox"
  6920. >
  6921. <div
  6922. class="zuoyeYulan"
  6923. v-if="workStudent[toolIndex].length > 0"
  6924. >
  6925. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  6926. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6927. </div>
  6928. <div
  6929. class="worksDetailBox"
  6930. v-if="workStudent[toolIndex].length > 0"
  6931. >
  6932. <div
  6933. class="works"
  6934. style="
  6935. width: 200px;
  6936. height: 140px;
  6937. margin: 10px 10px 10px 0;
  6938. box-shadow: 0 0 6px 1px #dfdada;
  6939. "
  6940. v-for="(w, wIndex) in workStudent[toolIndex]"
  6941. :key="wIndex"
  6942. >
  6943. <div class="workImg">
  6944. <img :src="word" @click="openTable(w)" alt />
  6945. <div
  6946. class="answerScore"
  6947. v-if="w.score"
  6948. @click.stop="openScore(w)"
  6949. :class="{
  6950. rightW:
  6951. w.userid == userid || tType == 1 || tType == 4,
  6952. }"
  6953. >
  6954. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  6955. </div>
  6956. <div
  6957. class="answerScore"
  6958. @click.stop="openScore(w)"
  6959. v-else-if="courseDetail.userid == userid"
  6960. :class="{
  6961. rightW:
  6962. w.userid == userid || tType == 1 || tType == 4,
  6963. }"
  6964. >
  6965. {{ lang.ssMarkScore }}
  6966. </div>
  6967. <img
  6968. class="deleteImg"
  6969. src="../assets/deleteworks.png"
  6970. v-if="
  6971. w.userid == userid || tType == 1 || tType == 4
  6972. "
  6973. @click.stop="deleteWorks(w.wid)"
  6974. alt
  6975. />
  6976. </div>
  6977. <div class="worksName">
  6978. <div>{{ w.sName }}</div>
  6979. </div>
  6980. </div>
  6981. </div>
  6982. </div>
  6983. <div
  6984. v-if="
  6985. tType &&
  6986. ((tType == 2 && sIsOpen == true) ||
  6987. tType == 1 ||
  6988. tType == 4) &&
  6989. tool.tool.indexOf(52) != -1
  6990. "
  6991. class="worksBox"
  6992. >
  6993. <div
  6994. class="zuoyeYulan"
  6995. v-if="
  6996. worksStudent.length &&
  6997. worksStudent[toolIndex].length > 0
  6998. "
  6999. >
  7000. <div class="worksTop">
  7001. <div>{{ lang.ssHomeworkPreview }}</div>
  7002. <div
  7003. class="corOpen"
  7004. @click="contract(toolIndex)"
  7005. v-if="
  7006. (isCloseList[toolIndex].isCloseBoolean) &&
  7007. isCloseList[toolIndex].isClose == 0
  7008. "
  7009. >
  7010. {{ lang.ssFold }}
  7011. </div>
  7012. <div
  7013. class="corOpen"
  7014. @click="contract(toolIndex)"
  7015. v-if="isCloseList[toolIndex].isClose == 1"
  7016. >
  7017. {{ lang.ssExpand }}
  7018. </div>
  7019. </div>
  7020. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7021. </div>
  7022. <div
  7023. :id="'tool-' + toolIndex"
  7024. :style="{
  7025. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7026. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7027. }"
  7028. class="worksDetailBox"
  7029. v-if="
  7030. worksStudent.length &&
  7031. worksStudent[toolIndex].length > 0
  7032. "
  7033. >
  7034. <div
  7035. class="works"
  7036. style="
  7037. width: 200px;
  7038. height: 140px;
  7039. margin: 10px 10px 10px 0;
  7040. border-radius: 15px;
  7041. box-shadow: 0 0 6px 1px #dfdada;
  7042. "
  7043. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7044. :key="wIndex"
  7045. :class="w.type == 1 ? 'isTypeOne' : ''"
  7046. >
  7047. <div class="workImg">
  7048. <img :src="word" @click="openWord(w)" alt />
  7049. <!-- @click="openFile(w.works)" -->
  7050. <div
  7051. class="answerScore"
  7052. v-if="w.score"
  7053. @click.stop="openScore(w)"
  7054. :class="{
  7055. rightW:
  7056. w.userid == userid ||
  7057. tType == 1 ||
  7058. tType == 4 ||
  7059. w.ateacher == userid,
  7060. }"
  7061. >
  7062. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7063. </div>
  7064. <div
  7065. class="answerScore"
  7066. @click.stop="openScore(w)"
  7067. v-else-if="courseDetail.userid == userid"
  7068. :class="{
  7069. rightW:
  7070. w.userid == userid ||
  7071. tType == 1 ||
  7072. tType == 4 ||
  7073. w.ateacher == userid,
  7074. }"
  7075. >
  7076. {{ lang.ssMarkScore }}
  7077. </div>
  7078. <img
  7079. class="deleteImg"
  7080. src="../assets/deleteworks.png"
  7081. v-if="
  7082. w.userid == userid || tType == 1 || tType == 4
  7083. "
  7084. @click.stop="deleteWorks(w.wid)"
  7085. alt
  7086. />
  7087. </div>
  7088. <div class="comment" style="min-width: 200px">
  7089. <div class="worksName">
  7090. <div>{{ w.sName }}</div>
  7091. </div>
  7092. <div class="commentList">
  7093. <div class="commentList">
  7094. <div
  7095. class="commentImg"
  7096. @click="
  7097. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7098. "
  7099. >
  7100. <img
  7101. :src="w.isLikes == true ? likes : noLikes"
  7102. alt=""
  7103. />
  7104. </div>
  7105. <div>{{ w.likesCount }}</div>
  7106. </div>
  7107. <div class="commentList" style="margin-right: 15px">
  7108. <div
  7109. class="commentImg"
  7110. @click="commentOther(w, toolIndex, wIndex)"
  7111. >
  7112. <img
  7113. src="../assets/icon/comment/comment.png"
  7114. alt=""
  7115. />
  7116. </div>
  7117. <div>{{ w.commentCount }}</div>
  7118. </div>
  7119. </div>
  7120. </div>
  7121. </div>
  7122. </div>
  7123. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7124. {{ lang.ssNotSubmitted }}
  7125. </div>
  7126. <div
  7127. class="noWorksS"
  7128. v-if="noWorksS && noWorksS[toolIndex].length"
  7129. >
  7130. <div
  7131. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7132. :key="sIndex"
  7133. class="noWorksName"
  7134. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7135. >
  7136. <el-tooltip effect="dark" :content="s.student" placement="top">
  7137. <span>{{ s.student }}</span>
  7138. </el-tooltip>
  7139. </div>
  7140. </div>
  7141. </div>
  7142. <div
  7143. v-if="
  7144. tType &&
  7145. tType == 2 &&
  7146. !sIsOpen &&
  7147. tool.tool.indexOf(52) != -1
  7148. "
  7149. class="worksBox"
  7150. >
  7151. <div
  7152. class="zuoyeYulan"
  7153. v-if="workStudent[toolIndex].length > 0"
  7154. >
  7155. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  7156. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7157. </div>
  7158. <div
  7159. class="worksDetailBox"
  7160. v-if="workStudent[toolIndex].length > 0"
  7161. >
  7162. <div
  7163. class="works"
  7164. style="
  7165. width: 200px;
  7166. height: 140px;
  7167. margin: 10px 10px 10px 0;
  7168. box-shadow: 0 0 6px 1px #dfdada;
  7169. "
  7170. v-for="(w, wIndex) in workStudent[toolIndex]"
  7171. :key="wIndex"
  7172. >
  7173. <div class="workImg">
  7174. <img :src="word" @click="openWord(w)" alt />
  7175. <div
  7176. class="answerScore"
  7177. v-if="w.score"
  7178. @click.stop="openScore(w)"
  7179. :class="{
  7180. rightW:
  7181. w.userid == userid || tType == 1 || tType == 4,
  7182. }"
  7183. >
  7184. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7185. </div>
  7186. <div
  7187. class="answerScore"
  7188. @click.stop="openScore(w)"
  7189. v-else-if="courseDetail.userid == userid"
  7190. :class="{
  7191. rightW:
  7192. w.userid == userid || tType == 1 || tType == 4,
  7193. }"
  7194. >
  7195. {{ lang.ssMarkScore }}
  7196. </div>
  7197. <img
  7198. class="deleteImg"
  7199. src="../assets/deleteworks.png"
  7200. v-if="
  7201. w.userid == userid || tType == 1 || tType == 4
  7202. "
  7203. @click.stop="deleteWorks(w.wid)"
  7204. alt
  7205. />
  7206. </div>
  7207. <div class="worksName">
  7208. <div>{{ w.sName }}</div>
  7209. </div>
  7210. </div>
  7211. </div>
  7212. </div>
  7213. <div
  7214. v-if="tool.tool.indexOf(49) != -1"
  7215. class="xuan_right_box"
  7216. style="margin: 0 15px 0 25px; width: 93%"
  7217. >
  7218. <div
  7219. v-if="courseDetail.userid == userid"
  7220. style="
  7221. display: flex;
  7222. justify-content: flex-end;
  7223. margin-right: 10px;
  7224. "
  7225. >
  7226. <el-button
  7227. type="primary"
  7228. size="small"
  7229. @click="addTools(49, toolIndex, taskCount)"
  7230. >{{ lang.ssGroupSetting }}
  7231. </el-button>
  7232. </div>
  7233. <div
  7234. v-if="groupStudentUid[toolIndex]"
  7235. class="group_staic_box"
  7236. >
  7237. <div
  7238. v-for="(gp, gd) in tool.groupJson.group"
  7239. :key="gd"
  7240. class="group_staic"
  7241. >
  7242. <span> {{ gp.name }}</span>
  7243. <span>
  7244. {{ lang.ssCurrentCountNum.replace(/\*/, groupStudentUid[toolIndex][gd].length) }}</span
  7245. >
  7246. </div>
  7247. </div>
  7248. </div>
  7249. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7250. <div
  7251. class="zuoyeYulan"
  7252. v-if="
  7253. worksStudent.length &&
  7254. worksStudent[toolIndex].length > 0
  7255. "
  7256. >
  7257. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  7258. </div>
  7259. <div>
  7260. <div
  7261. class="group_workBox"
  7262. v-for="(g, gindex) in tool.groupJson.group"
  7263. :key="gindex"
  7264. >
  7265. <div
  7266. class="group_box"
  7267. v-if="
  7268. groupStudentUid[toolIndex] &&
  7269. worksStudent[toolIndex] &&
  7270. (worksStudent[toolIndex][gindex].length ||
  7271. groupStudentUid[toolIndex][gindex].indexOf(
  7272. userid
  7273. ) != -1)
  7274. "
  7275. >
  7276. <div class="group_title">
  7277. <el-tooltip
  7278. class="item"
  7279. effect="light"
  7280. :content="g.name"
  7281. placement="top"
  7282. >
  7283. <div class="group_name">{{ g.name }}</div>
  7284. </el-tooltip>
  7285. <el-button
  7286. type="primary"
  7287. v-if="
  7288. groupStudentUid[toolIndex][gindex].indexOf(
  7289. userid
  7290. ) != -1
  7291. "
  7292. @click="groupUpload(toolIndex, taskCount, gindex)"
  7293. >{{ lang.ssUploadHomework }}
  7294. </el-button>
  7295. </div>
  7296. <div class="group_work">
  7297. <div
  7298. class="works"
  7299. style="
  7300. width: 200px;
  7301. height: 140px;
  7302. margin: 10px 10px 10px 0;
  7303. border-radius: 15px;
  7304. box-shadow: 0 0 6px 1px #dfdada;
  7305. "
  7306. v-for="(w, wIndex) in worksStudent[toolIndex][
  7307. gindex
  7308. ]"
  7309. :key="wIndex"
  7310. :class="w.type == 1 ? 'isTypeOne' : ''"
  7311. >
  7312. <div class="workImg" 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)) && $region != 'hk'" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  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) && $region != 'hk'" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  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: 60px">{{ 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: 60px">{{ 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="800px"
  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: this.$region != 'hk' ? '85px' : '15px',
  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. if (_this.$region != 'hk') {
  17085. _this.getSplitScreenData();//获取分屏数据
  17086. }
  17087. }, 5000);
  17088. }
  17089. _this.$nextTick(function () {
  17090. setTimeout(() => {
  17091. const element = document.getElementsByClassName("pb_body")[0];
  17092. if (element) {
  17093. element.style.minHeight = 'unset'
  17094. // 或者:element.style.removeProperty("min-height");
  17095. }
  17096. // var a =
  17097. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17098. // document.getElementsByClassName("vedioList")[0].style.height =
  17099. // a + "px";
  17100. // document.getElementsByClassName("navBox")[0].style.height =
  17101. // a - 40 + "px";
  17102. // if (_this.vedio[_this.taskCount].length > 0) {
  17103. // _this.vedioTime = [];
  17104. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17105. // _this.vedioTime[i] = document.getElementsByClassName(
  17106. // "vjs-duration-display"
  17107. // )[i].textContent;
  17108. // }
  17109. // }
  17110. }, 1000);
  17111. });
  17112. })
  17113. .catch((err) => {
  17114. loading.close();
  17115. console.error(err);
  17116. });
  17117. },
  17118. getCourseGroup(gindex) {
  17119. if(this.getCourseGroupLoading) return
  17120. this.getCourseGroupLoading = true
  17121. let params = {
  17122. cid: this.id,
  17123. classid: this.tcid ? this.tcid : "1",
  17124. };
  17125. this.ajax
  17126. .get(this.$store.state.api + "getCourseGroup", params)
  17127. .then((res) => {
  17128. if (res.data && res.data[0].length) {
  17129. if (!this.isGroup) {
  17130. let courseGroup = JSON.parse(res.data[0][0].group);
  17131. courseGroup.group = courseGroup.group.filter((el) => {
  17132. el.works = [];
  17133. return el;
  17134. });
  17135. if (courseGroup.isopen == 2) {
  17136. this.isGroup = false;
  17137. this.selectSWorks(gindex);
  17138. return;
  17139. }
  17140. this.courseGroup = courseGroup;
  17141. let groupPerson = res.data[1];
  17142. let group = JSON.parse(res.data[0][0].group).group;
  17143. let courseGroupStudent = {};
  17144. let courseGroupStudentUid = {};
  17145. for (var i = 0; i < group.length; i++) {
  17146. courseGroupStudent[group[i].id] = [];
  17147. courseGroupStudentUid[group[i].id] = [];
  17148. for (var j = 0; j < groupPerson.length; j++) {
  17149. if (groupPerson[j].groupCid == group[i].id) {
  17150. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17151. courseGroupStudentUid[group[i].id].push(
  17152. groupPerson[j].userid
  17153. );
  17154. }
  17155. }
  17156. }
  17157. this.courseGroupStudent = courseGroupStudent;
  17158. this.courseGroupStudentUid = courseGroupStudentUid;
  17159. }
  17160. if (this.courseGroup.isopen == 2) {
  17161. this.isGroup = false;
  17162. } else {
  17163. this.isGroup = true;
  17164. }
  17165. this.selectSWorks(gindex);
  17166. } else {
  17167. this.selectSWorks(gindex);
  17168. this.isGroup = false;
  17169. }
  17170. this.getCourseGroupLoading = false
  17171. })
  17172. .catch((err) => {
  17173. this.getCourseGroupLoading = false
  17174. // this.$message.error(this.lang.ssNetworkPoor);
  17175. console.error(err);
  17176. });
  17177. },
  17178. setOperationTime() {
  17179. let _this = this;
  17180. if (_this.opertimer) {
  17181. clearInterval(_this.opertimer);
  17182. _this.opertimer = null;
  17183. }
  17184. _this.opertimer = setInterval(() => {
  17185. _this.setoTime("600");
  17186. }, 600000);
  17187. },
  17188. setoTime(time) {
  17189. this.doSyncClassData();
  17190. let params = [
  17191. {
  17192. uid: this.userid,
  17193. cid: this.id + (this.tcid2 || ''),,
  17194. type: "2",
  17195. time: time,
  17196. },
  17197. ];
  17198. this.ajax
  17199. .post(this.$store.state.api + "addOperationTimeT2", params)
  17200. .then((res) => {})
  17201. .catch((err) => {
  17202. console.error(err);
  17203. });
  17204. },
  17205. addPz(type, content) {
  17206. if (type == "1" && this.pzConText == "") {
  17207. this.$message.error(this.lang.ssCommentEmpty);
  17208. return;
  17209. }
  17210. let params = [
  17211. {
  17212. cid: this.id,
  17213. uid: this.userid,
  17214. s: this.courseType,
  17215. t: this.taskCount,
  17216. c: type == "1" ? this.pzConText : content,
  17217. type: type,
  17218. },
  17219. ];
  17220. this.ajax
  17221. .post(this.$store.state.api + "addPz2", params)
  17222. .then((res) => {
  17223. this.$message({
  17224. message: this.lang.ssAddSuccess,
  17225. type: "success",
  17226. });
  17227. this.pzConText = "";
  17228. this.addPzDialog = false;
  17229. this.selectPz();
  17230. if(this.tType!=2){
  17231. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17232. }
  17233. })
  17234. .catch((err) => {
  17235. this.$message.error(this.lang.ssAddFailed);
  17236. console.error(err);
  17237. });
  17238. },
  17239. setReplyIndex(id, i) {
  17240. this.replyIndex = i;
  17241. this.replyPid = id;
  17242. this.replyDialogVisible = true;
  17243. },
  17244. addHf() {
  17245. if (this.reply == "") {
  17246. this.$message.error(this.lang.ssReplyEmpty);
  17247. return;
  17248. }
  17249. let params = [
  17250. {
  17251. cid: this.id,
  17252. uid: this.userid,
  17253. s: this.courseType,
  17254. t: this.taskCount,
  17255. type: "1",
  17256. ct: 2,
  17257. pid: this.replyPid,
  17258. c: this.reply,
  17259. },
  17260. ];
  17261. this.ajax
  17262. .post(this.$store.state.api + "addHf", params)
  17263. .then((res) => {
  17264. this.reply = "";
  17265. this.$message({
  17266. message: this.lang.ssReplySuccess,
  17267. type: "success",
  17268. });
  17269. this.replyDialogVisible = false;
  17270. this.selectPz();
  17271. })
  17272. .catch((err) => {
  17273. this.$message.error(this.lang.ssReplyFailed);
  17274. console.error(err);
  17275. });
  17276. },
  17277. deletePz(id) {
  17278. this.$confirm(this.lang.ssConfirmDeleteComment, this.lang.ssPrompt, {
  17279. confirmButtonText: this.lang.ssConfirm,
  17280. cancelButtonText: this.lang.ssCancel,
  17281. type: "warning",
  17282. })
  17283. .then(() => {
  17284. let params = [
  17285. {
  17286. id: id,
  17287. },
  17288. ];
  17289. this.ajax
  17290. .post(this.$store.state.api + "deletePz", params)
  17291. .then((res) => {
  17292. this.$message({
  17293. message: this.lang.ssDeleteSuccess,
  17294. type: "success",
  17295. });
  17296. this.selectPz();
  17297. })
  17298. .catch((err) => {
  17299. this.$message.error(this.lang.ssNetworkError);
  17300. console.error(err);
  17301. });
  17302. })
  17303. .catch(() => {});
  17304. },
  17305. deleteReply(id) {
  17306. this.$confirm(this.lang.ssConfirmDeleteReply, this.lang.ssPrompt, {
  17307. confirmButtonText: this.lang.ssConfirm,
  17308. cancelButtonText: this.lang.ssCancel,
  17309. type: "warning",
  17310. })
  17311. .then(() => {
  17312. let params = [
  17313. {
  17314. id: id,
  17315. },
  17316. ];
  17317. this.ajax
  17318. .post(this.$store.state.api + "deleteReply", params)
  17319. .then((res) => {
  17320. this.$message({
  17321. message: this.lang.ssDeleteSuccess,
  17322. type: "success",
  17323. });
  17324. this.selectPz();
  17325. })
  17326. .catch((err) => {
  17327. this.$message.error(this.lang.ssNetworkError);
  17328. console.error(err);
  17329. });
  17330. })
  17331. .catch(() => {});
  17332. },
  17333. setPz() {
  17334. if (this.ispzType == 4) {
  17335. this.ispzType = 0;
  17336. this.pzDialog = false;
  17337. return;
  17338. }
  17339. this.ispzType = 4;
  17340. this.pzDialog = true;
  17341. this.selectPz();
  17342. },
  17343. selectPz() {
  17344. if(this.selectPzLoading) return
  17345. this.selectPzLoading = true
  17346. let params = {
  17347. cid: this.id,
  17348. s: this.courseType,
  17349. t: this.taskCount,
  17350. type: this.pzStype,
  17351. uid: this.userid,
  17352. };
  17353. this.ajax
  17354. .get(this.$store.state.api + "selectPzListType", params)
  17355. .then((res) => {
  17356. this.pzList = res.data[0];
  17357. var a = res.data[1];
  17358. for (var i = 0; i < a.length; i++) {
  17359. for (var j = 0; j < this.pzList.length; j++) {
  17360. if (!this.pzList[j].hfList) {
  17361. this.pzList[j].hfList = [];
  17362. }
  17363. if (a[i].pid == this.pzList[j].id) {
  17364. this.pzList[j].hfList.push(a[i]);
  17365. }
  17366. }
  17367. }
  17368. this.selectPzLoading = false
  17369. })
  17370. .catch((err) => {
  17371. this.selectPzLoading = false
  17372. console.error(err);
  17373. });
  17374. },
  17375. // selectHf() {
  17376. // let params = {
  17377. // cid: this.id,
  17378. // s: this.courseType,
  17379. // t: this.taskCount,
  17380. // };
  17381. // this.ajax
  17382. // .get(this.$store.state.api + "selectHfList", params)
  17383. // .then((res) => {
  17384. // var a = res.data[0];
  17385. // for (var i = 0; i < a.length; i++) {
  17386. // for (var j = 0; j < this.pzList.length; j++) {
  17387. // if (!this.pzList[i].hfList) {
  17388. // this.pzList[i].hfList = [];
  17389. // }
  17390. // if (a[i].pid == this.pzList[j].id) {
  17391. // this.pzList[i].hfList.push(a[i]);
  17392. // }
  17393. // }
  17394. // }
  17395. // })
  17396. // .catch((err) => {
  17397. // console.error(err);
  17398. // });
  17399. // },
  17400. updateSLook() {
  17401. let params = {
  17402. sopen: this.sIsOpen == false ? 1 : 2,
  17403. cid: this.id,
  17404. };
  17405. this.ajax
  17406. .get(this.$store.state.api + "updateCourseSLook", params)
  17407. .then((res) => {
  17408. if (this.sIsOpen == true) {
  17409. this.$message({
  17410. message: this.lang.ssPermSetSuccess,
  17411. type: "success",
  17412. });
  17413. } else {
  17414. this.$message({
  17415. message: this.lang.ssPermClosedOk,
  17416. type: "success",
  17417. });
  17418. }
  17419. })
  17420. .catch((err) => {
  17421. console.error(err);
  17422. });
  17423. },
  17424. updateIsStulook(){
  17425. let params = [
  17426. {
  17427. sopen: this.IsStulook == false ? 2 : 1,
  17428. cid: this.id
  17429. }
  17430. ];
  17431. this.ajax
  17432. .post(this.$store.state.api + "updateCourseStulook", params)
  17433. .then(res => {
  17434. if (this.IsStulook == true) {
  17435. this.$message({
  17436. message: this.lang.ssStuViewPermOn,
  17437. type: "success"
  17438. });
  17439. } else {
  17440. this.$message({
  17441. message: this.lang.ssStuViewPermOff,
  17442. type: "success"
  17443. });
  17444. }
  17445. // this.setCTask();
  17446. })
  17447. .catch(err => {
  17448. console.error(err);
  17449. });
  17450. },
  17451. updateFollow() {
  17452. let params = [
  17453. {
  17454. sopen: this.IsFollow == false ? 1 : 2,
  17455. cid: this.id,
  17456. },
  17457. ];
  17458. this.ajax
  17459. .post(this.$store.state.api + "updateCourseFollow", params)
  17460. .then((res) => {
  17461. if (this.IsFollow == true) {
  17462. this.$message({
  17463. message: this.lang.ssFollowModeOn2,
  17464. type: "success",
  17465. });
  17466. } else {
  17467. this.$message({
  17468. message: this.lang.ssFollowModeOff,
  17469. type: "success",
  17470. });
  17471. }
  17472. this.setCTask();
  17473. })
  17474. .catch((err) => {
  17475. console.error(err);
  17476. });
  17477. },
  17478. setCTask() {
  17479. let params = [
  17480. {
  17481. sopen: this.courseType + "-" + this.taskCount,
  17482. cid: this.id,
  17483. },
  17484. ];
  17485. this.ajax
  17486. .post(this.$store.state.api + "updateCourseFollowC", params)
  17487. .then((res) => {})
  17488. .catch((err) => {
  17489. console.error(err);
  17490. });
  17491. },
  17492. updateLookOpen() {
  17493. let params = [
  17494. {
  17495. sopen: this.IsLookOpen == false ? 1 : 2,
  17496. cid: this.id,
  17497. },
  17498. ];
  17499. this.ajax
  17500. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17501. .then((res) => {
  17502. if (this.IsLookOpen == true) {
  17503. // if (this.courseType != 0 && this.taskCount != 0) {
  17504. // this.openTask(0, 0, "0-0");
  17505. // }
  17506. this.$message({
  17507. message: this.lang.ssPermSetSuccess,
  17508. type: "success",
  17509. });
  17510. } else {
  17511. this.$message({
  17512. message: this.lang.ssPermClosedOk,
  17513. type: "success",
  17514. });
  17515. }
  17516. this.getCourseState(2);
  17517. })
  17518. .catch((err) => {
  17519. console.error(err);
  17520. });
  17521. },
  17522. selectSLook() {
  17523. if(this.selectSLookLoading) return
  17524. this.selectSLookLoading = true
  17525. let params = {
  17526. cid: this.id,
  17527. };
  17528. this.ajax
  17529. .get(this.$store.state.api + "selectCourseSLook", params)
  17530. .then((res) => {
  17531. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17532. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17533. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17534. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  17535. if (!this.IsLookOpen) {
  17536. this.setNavList();
  17537. }else {
  17538. this.getCourseState(1);
  17539. }
  17540. if ((this.IsFollow && this.tType == 2)) {
  17541. this.setContent2(false);
  17542. let _followC = res.data[0][0].followC.split("-");
  17543. if (
  17544. this.courseType != _followC[0] ||
  17545. this.taskCount != _followC[1]
  17546. ) {
  17547. this.navList[this.courseType].isOpen = false;
  17548. this.courseType = _followC[0];
  17549. this.navList[this.courseType].isOpen = true;
  17550. this.taskCount = parseInt(_followC[1]);
  17551. this.navId = res.data[0][0].followC;
  17552. document.scrollingElement.scrollTop = 0;
  17553. this.getCourseDetail(2);
  17554. }
  17555. }
  17556. this.selectSLookLoading = false
  17557. })
  17558. .catch((err) => {
  17559. this.selectSLookLoading = false
  17560. console.error(err);
  17561. });
  17562. },
  17563. setNavList() {
  17564. if (this.navList.length == 0) {
  17565. this.navList = [];
  17566. var copyList = [];
  17567. for (var l = 0; l < this.chapInfoList.length; l++) {
  17568. var q = this.chapInfoList[l].dyName;
  17569. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17570. var e;
  17571. copyList.push({
  17572. dyName: q,
  17573. isOpen: l === 0 ? true : false,
  17574. task: [],
  17575. });
  17576. for (var r = 0; r < w.length; r++) {
  17577. e = w[r].task;
  17578. if (this.chapInfoList[l].easy == 1) {
  17579. copyList[l].task.push({
  17580. taskName: q,
  17581. id: l + "-" + r,
  17582. isLook: w[r].isLook,
  17583. isOpen: r === 0 ? true : false,
  17584. tool: [],
  17585. });
  17586. } else {
  17587. copyList[l].task.push({
  17588. taskName: e,
  17589. id: l + "-" + r,
  17590. isLook: w[r].isLook,
  17591. isOpen: r === 0 ? true : false,
  17592. tool: [],
  17593. });
  17594. }
  17595. var t = w[r].toolChoose;
  17596. for (var k = 0; k < t.length; k++) {
  17597. var tool = t[k].tool[0];
  17598. copyList[l].task[r].tool.push({
  17599. tool: tool,
  17600. isTool: false,
  17601. });
  17602. }
  17603. // this.navId = this.navId ? this.navId : l + "-" + r;
  17604. // this.navId = l + "-" + r;
  17605. }
  17606. }
  17607. this.navList = copyList;
  17608. this.navList[0].isOpen = false;
  17609. this.navList[this.courseType].isOpen = true;
  17610. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17611. } else {
  17612. this.setNavList2();
  17613. }
  17614. },
  17615. setNavList2() {
  17616. for (var l = 0; l < this.chapInfoList.length; l++) {
  17617. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17618. for (var r = 0; r < w.length; r++) {
  17619. this.navList[l].task[r].isLook = w[r].isLook;
  17620. }
  17621. }
  17622. if (
  17623. this.IsLookOpen &&
  17624. !this.navList[this.courseType].task[this.taskCount].isLook
  17625. ) {
  17626. this.openTask(0, 0, "0-0");
  17627. }
  17628. this.$forceUpdate();
  17629. },
  17630. getCourseState(type) {
  17631. let params = {
  17632. cid: this.id,
  17633. };
  17634. this.ajax
  17635. .get(this.$store.state.api + "getCourseState", params)
  17636. .then((res) => {
  17637. // if (res.data[0].length > 0) {
  17638. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  17639. // }
  17640. if (res.data[0].length > 0 && type == 1) {
  17641. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17642. this.setNavList();
  17643. this.$forceUpdate();
  17644. } else if (res.data[0].length > 0 && type == 2) {
  17645. this.addCourseState(2);
  17646. } else {
  17647. // this.addCourseState(1);
  17648. }
  17649. })
  17650. .catch((err) => {
  17651. console.error(err);
  17652. });
  17653. },
  17654. addCourseState(type,val = '') {
  17655. let _state = val ? val : this.chapInfoList;
  17656. // this.courseType this.taskCount
  17657. if (type == 1 || type == 2) {
  17658. for (var i = 0; i < _state.length; i++) {
  17659. let el = _state[i].chapterInfo[0].taskJson;
  17660. for (var j = 0; j < el.length; j++) {
  17661. // if (i == 0 && j == 0) {
  17662. // el[j].isLook = true;
  17663. // } else {
  17664. // el[j].isLook = false;
  17665. // }
  17666. if (
  17667. this.courseType > i ||
  17668. (this.courseType == i && this.taskCount + 1 > j)
  17669. ) {
  17670. el[j].isLook = true;
  17671. } else {
  17672. el[j].isLook = false;
  17673. }
  17674. }
  17675. }
  17676. }
  17677. let params = [
  17678. {
  17679. cid: this.id,
  17680. state: JSON.stringify(_state),
  17681. },
  17682. ];
  17683. // 这两个接口是一样的type无所谓了
  17684. this.ajax
  17685. .post(
  17686. this.$store.state.api +
  17687. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17688. params
  17689. )
  17690. .then((res) => {
  17691. if (this.IsLookOpen) {
  17692. this.setNavList();
  17693. }
  17694. if (type == 3 && type == 2) {
  17695. this.getCourseState(1);
  17696. }
  17697. })
  17698. .catch((err) => {
  17699. console.error(err);
  17700. });
  17701. },
  17702. getHomeWork() {
  17703. let params = {
  17704. cid: this.id,
  17705. stage: this.courseType,
  17706. task: this.taskCount,
  17707. uid: this.userid,
  17708. };
  17709. this.ajax
  17710. .get(this.$store.state.api + "selectWork", params)
  17711. .then((res) => {
  17712. if (res.data[0].length > 0) {
  17713. this.studyJuri = JSON.parse(res.data[0][0].content);
  17714. this.isNoHomeWork = true;
  17715. }
  17716. })
  17717. .catch((err) => {
  17718. console.error(err);
  17719. });
  17720. },
  17721. isAssetTypeAnImage(ext) {
  17722. return (
  17723. [
  17724. "png",
  17725. "jpg",
  17726. "jpeg",
  17727. "bmp",
  17728. "gif",
  17729. "webp",
  17730. "psd",
  17731. "svg",
  17732. "tiff",
  17733. ].indexOf(ext) !== -1
  17734. );
  17735. },
  17736. switchVideo(media) {
  17737. this.playerO = {};
  17738. this.playerOptions.poster = "";
  17739. this.playerOptions.sources[0].src = media;
  17740. this.playerO = this.playerOptions;
  17741. },
  17742. onPlayerPlay() {},
  17743. onPlayerTimeupdate(player) {
  17744. let gklog = player.cache_.currentTime; //当前播放的秒数
  17745. let a = player.cache_.duration; //视频的总时长
  17746. let gklog2 = parseInt(gklog);
  17747. // if(gklog2 == '3'){
  17748. // player.pause()
  17749. // setTimeout(()=>{
  17750. // player.currentTime(gklog2+1)
  17751. // player.play()
  17752. // },1000)
  17753. // }
  17754. console.log(" onPlayerTimeupdate!", gklog);
  17755. console.log(" onPlayerTimeupdate!", gklog2);
  17756. },
  17757. lookVedio(u, i) {
  17758. this.isClickNav = "";
  17759. // this.playerOptions.sources[0].src = u;
  17760. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17761. d.sources[0].src = u;
  17762. this.playerO[this.taskCount] = d;
  17763. this.showType = 0;
  17764. // this.isClickNav = "video" + i;
  17765. this.isClickNav = i;
  17766. this.$forceUpdate();
  17767. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17768. },
  17769. lookText(i, t) {
  17770. this.isClickNav = "";
  17771. // this.text = this.textList[i][t];
  17772. this.text = this.vChapterData[i][t];
  17773. // this.dialogVisible1 = true;
  17774. this.showType = 1;
  17775. // this.isClickNav = "text" + t;
  17776. this.isClickNav = t;
  17777. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17778. },
  17779. lookTools(i, t) {
  17780. this.chapTools = this.chapToolList[i][t];
  17781. this.dialogVisible2 = true;
  17782. },
  17783. async openFile(f,w) {
  17784. this.pptImgUrl = "";
  17785. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17786. if (
  17787. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17788. -1
  17789. ) {
  17790. let _uuurl = await this.checkLink(f);
  17791. this.pptImgUrl =
  17792. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17793. this.showPDF = false;
  17794. this.dialogVisible3 = true;
  17795. } else if (
  17796. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17797. ) {
  17798. this.pptImgUrl = f;
  17799. this.showPDF = true;
  17800. this.dialogVisible3 = true;
  17801. }
  17802. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17803. },
  17804. openTable(f) {
  17805. this.tableJson = JSON.parse(f.works);
  17806. this.dialogVisibleTable2 = true;
  17807. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17808. },
  17809. openWord(f) {
  17810. this.tableJson = JSON.parse(f.works);
  17811. this.dialogVisibleTable3 = true;
  17812. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17813. },
  17814. doUrl(url, i) {
  17815. this.isClickNav = "";
  17816. this.pptImgUrl1 = "";
  17817. this.showType = 2;
  17818. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17819. url = "https://" + url;
  17820. }
  17821. this.pptImgUrl1 = "";
  17822. this.diffKey = new Date().getTime();
  17823. setTimeout(() => {
  17824. this.pptImgUrl1 = url;
  17825. }, 500);
  17826. // this.isClickNav = "line" + i;
  17827. this.isClickNav = i;
  17828. this.$forceUpdate();
  17829. },
  17830. checkPhoto(f, i) {
  17831. this.showType = 4;
  17832. this.pptImgUrl1 = f.url;
  17833. this.isClickNav = i;
  17834. this.$forceUpdate();
  17835. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17836. },
  17837. checkHtml(f, i){
  17838. this.showType = 16;
  17839. this.pptImgUrl1 = f.url;
  17840. this.isClickNav = i;
  17841. this.$forceUpdate();
  17842. },
  17843. async downFile(f, i) {
  17844. this.isClickNav = "";
  17845. this.pptImgUrl1 = "";
  17846. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17847. if (
  17848. a.indexOf(
  17849. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17850. ) != -1
  17851. ) {
  17852. let _uuurl = await this.checkLink(f.url);
  17853. this.pptImgUrl1 =
  17854. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17855. // this.dialogVisible3 = true;
  17856. this.showType = 2;
  17857. } else if (
  17858. this.isAssetTypeAnImage(
  17859. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17860. )
  17861. ) {
  17862. this.showType = 4;
  17863. this.pptImgUrl1 = f.url;
  17864. } else if (
  17865. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17866. "PDF"
  17867. ) {
  17868. this.pptImgUrl1 = f.url;
  17869. // this.dialogVisible3 = true;
  17870. this.showType = 3;
  17871. } else {
  17872. window.open(this.file[i].url);
  17873. }
  17874. // this.isClickNav = "word" + i;
  17875. this.isClickNav = i;
  17876. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17877. },
  17878. downFileList(i) {
  17879. window.open(this.noImgList[i].url);
  17880. },
  17881. openAddWork() {
  17882. this.dialogVisible = true;
  17883. },
  17884. addBzWorks() {
  17885. let params = [
  17886. {
  17887. uid: this.userid,
  17888. cid: this.id,
  17889. stage: this.courseType,
  17890. task: this.taskCount,
  17891. tool: this.toolindex,
  17892. content: JSON.stringify(this.eScore),
  17893. type: 6,
  17894. },
  17895. ];
  17896. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17897. this.homeWorkLoading = true
  17898. this.ajax
  17899. .post(this.$store.state.api + "addCourseWorks", params)
  17900. .then((res) => {
  17901. this.$message({
  17902. message: this.lang.ssSubmitSuccess,
  17903. type: "success",
  17904. });
  17905. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  17906. setTimeout(() => {
  17907. this.homeWorkLoading = false
  17908. }, 500);
  17909. this.eScore = { eBzText: "", eStar: [] };
  17910. this.studentEvalDialogVisible = false;
  17911. this.selectSWorks();
  17912. })
  17913. .catch((err) => {
  17914. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  17915. setTimeout(() => {
  17916. this.homeWorkLoading = false
  17917. }, 500);
  17918. this.$message.error(this.lang.ssSubmitFailed);
  17919. console.error(err);
  17920. });
  17921. },
  17922. addBzWorksTeacher() {
  17923. let params = [
  17924. {
  17925. uid: this.sStudent.userid,
  17926. cid: this.id,
  17927. stage: this.courseType,
  17928. task: this.taskCount,
  17929. tool: this.toolindex,
  17930. content: JSON.stringify(this.eScore),
  17931. type: 6,
  17932. },
  17933. ];
  17934. this.ajax
  17935. .post(this.$store.state.api + "addCourseWorks", params)
  17936. .then((res) => {
  17937. this.$message({
  17938. message: this.lang.ssSubmitSuccess,
  17939. type: "success",
  17940. });
  17941. this.eScore = { eBzText: "", eStar: [] };
  17942. this.studentEvalDialogVisibleTeacher = false;
  17943. this.selectSWorks();
  17944. })
  17945. .catch((err) => {
  17946. this.$message.error(this.lang.ssSubmitFailed);
  17947. console.error(err);
  17948. });
  17949. },
  17950. addStudentAsk() {
  17951. if (!this.radio.length) {
  17952. this.$message.error(this.lang.ssPleaseSelectOption);
  17953. return;
  17954. }
  17955. for (var i = 0; i < this.askJson.askCount; i++) {
  17956. if (
  17957. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17958. (this.radio[i] !== 0 && !this.radio[i])
  17959. ) {
  17960. this.$message.error(this.lang.ssPleaseSelectOption);
  17961. return;
  17962. }
  17963. }
  17964. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17965. let params = [
  17966. {
  17967. uid: this.userid,
  17968. cid: this.id,
  17969. stage: this.courseType,
  17970. task: this.taskCount,
  17971. tool: this.toolindex,
  17972. content: JSON.stringify(this.askList),
  17973. type: 2,
  17974. },
  17975. ];
  17976. // console.log('params',params);
  17977. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17978. this.homeWorkLoading = true
  17979. this.ajax
  17980. .post(this.$store.state.api + "addCourseWorks", params)
  17981. .then((res) => {
  17982. this.$message({
  17983. message: this.lang.ssSubmitSuccess,
  17984. type: "success",
  17985. });
  17986. setTimeout(() => {
  17987. this.homeWorkLoading = false
  17988. }, 500);
  17989. this.askList = [];
  17990. this.dialogVisible5 = false;
  17991. this.selectStudent();
  17992. this.selectSWorks();
  17993. this.selectSLook();
  17994. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  17995. })
  17996. .catch((err) => {
  17997. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  17998. setTimeout(() => {
  17999. this.homeWorkLoading = false
  18000. }, 500);
  18001. this.$message.error(this.lang.ssSubmitFailed);
  18002. console.error(err);
  18003. });
  18004. },
  18005. addStudentAskTeacher() {
  18006. if (!this.radio.length) {
  18007. this.$message.error(this.lang.ssPleaseSelectOption);
  18008. return;
  18009. }
  18010. for (var i = 0; i < this.askJson.askCount; i++) {
  18011. if (
  18012. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18013. (this.radio[i] !== 0 && !this.radio[i])
  18014. ) {
  18015. this.$message.error(this.lang.ssPleaseSelectOption);
  18016. return;
  18017. }
  18018. }
  18019. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18020. let params = [
  18021. {
  18022. uid: this.sStudent.userid,
  18023. cid: this.id,
  18024. stage: this.courseType,
  18025. task: this.taskCount,
  18026. tool: this.toolindex,
  18027. content: JSON.stringify(this.askList),
  18028. type: 2,
  18029. },
  18030. ];
  18031. this.ajax
  18032. .post(this.$store.state.api + "addCourseWorks", params)
  18033. .then((res) => {
  18034. this.$message({
  18035. message: this.lang.ssSubmitSuccess,
  18036. type: "success",
  18037. });
  18038. this.askList = [];
  18039. this.dialogVisible5Teacher = false;
  18040. this.selectStudent();
  18041. this.selectSWorks();
  18042. this.selectSLook();
  18043. })
  18044. .catch((err) => {
  18045. this.$message.error(this.lang.ssSubmitFailed);
  18046. console.error(err);
  18047. });
  18048. },
  18049. addStudentTest() {
  18050. if (!this.radio.length) {
  18051. this.$message.error(this.lang.ssPleaseSelectOption);
  18052. return;
  18053. }
  18054. for (var i = 0; i < this.testJson.testCount; i++) {
  18055. if (
  18056. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18057. (this.radio[i] !== 0 && !this.radio[i])
  18058. ) {
  18059. this.$message.error(this.lang.ssPleaseSelectOption);
  18060. return;
  18061. }
  18062. }
  18063. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18064. let params = [
  18065. {
  18066. uid: this.userid,
  18067. cid: this.id,
  18068. stage: this.courseType,
  18069. task: this.taskCount,
  18070. tool: this.toolindex,
  18071. content: JSON.stringify(this.askList),
  18072. type: 8,
  18073. },
  18074. ];
  18075. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  18076. this.homeWorkLoading = true
  18077. this.ajax
  18078. .post(this.$store.state.api + "addCourseWorks", params)
  18079. .then((res) => {
  18080. this.$message({
  18081. message: this.lang.ssSubmitSuccess,
  18082. type: "success",
  18083. });
  18084. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18085. setTimeout(() => {
  18086. this.homeWorkLoading = false
  18087. }, 500);
  18088. this.askList = [];
  18089. this.dialogVisibleChoice = false;
  18090. this.selectStudent();
  18091. this.selectSWorks();
  18092. this.selectSLook();
  18093. })
  18094. .catch((err) => {
  18095. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18096. setTimeout(() => {
  18097. this.homeWorkLoading = false
  18098. }, 500);
  18099. this.$message.error(this.lang.ssSubmitFailed);
  18100. console.error(err);
  18101. });
  18102. },
  18103. addStudentTestTeacher() {
  18104. if (!this.radio.length) {
  18105. this.$message.error(this.lang.ssPleaseSelectOption);
  18106. return;
  18107. }
  18108. for (var i = 0; i < this.testJson.testCount; i++) {
  18109. if (
  18110. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18111. (this.radio[i] !== 0 && !this.radio[i])
  18112. ) {
  18113. this.$message.error(this.lang.ssPleaseSelectOption);
  18114. return;
  18115. }
  18116. }
  18117. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18118. let params = [
  18119. {
  18120. uid: this.sStudent.userid,
  18121. cid: this.id,
  18122. stage: this.courseType,
  18123. task: this.taskCount,
  18124. tool: this.toolindex,
  18125. content: JSON.stringify(this.askList),
  18126. type: 8,
  18127. },
  18128. ];
  18129. this.ajax
  18130. .post(this.$store.state.api + "addCourseWorks", params)
  18131. .then((res) => {
  18132. this.$message({
  18133. message: this.lang.ssSubmitSuccess,
  18134. type: "success",
  18135. });
  18136. this.askList = [];
  18137. this.dialogVisibleChoiceTeacher = false;
  18138. this.selectStudent();
  18139. this.selectSWorks();
  18140. this.selectSLook();
  18141. })
  18142. .catch((err) => {
  18143. this.$message.error(this.lang.ssSubmitFailed);
  18144. console.error(err);
  18145. });
  18146. },
  18147. addWork() {
  18148. if (this.studyJuri[0].content == "") {
  18149. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18150. return;
  18151. } else if (this.studyJuri[0].cover.length == 0) {
  18152. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18153. return;
  18154. } else if (this.studyJuri[0].upVedio.length == 0) {
  18155. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  18156. return;
  18157. }
  18158. if (this.isNoHomeWork) {
  18159. this.$confirm(
  18160. this.lang.ssAlreadySubmittedHomework,
  18161. this.lang.ssPrompt,
  18162. {
  18163. confirmButtonText: this.lang.ssConfirm,
  18164. cancelButtonText: this.lang.ssCancel,
  18165. type: "warning",
  18166. }
  18167. )
  18168. .then(() => {
  18169. let params = [
  18170. {
  18171. uid: this.userid,
  18172. cid: this.id,
  18173. stage: this.courseType,
  18174. task: this.taskCount,
  18175. content: JSON.stringify(this.studyJuri),
  18176. },
  18177. ];
  18178. this.ajax
  18179. .post(this.$store.state.api + "addWorks", params)
  18180. .then((res) => {
  18181. this.$message({
  18182. message: this.lang.ssSubmitSuccess,
  18183. type: "success",
  18184. });
  18185. this.isNoHomeWork = true;
  18186. this.dialogVisible = false;
  18187. })
  18188. .catch((err) => {
  18189. this.$message.error(this.lang.ssSubmitFailed);
  18190. console.error(err);
  18191. });
  18192. })
  18193. .catch(() => {});
  18194. } else {
  18195. let params = [
  18196. {
  18197. uid: this.userid,
  18198. cid: this.id,
  18199. stage: this.courseType,
  18200. task: this.taskCount,
  18201. content: JSON.stringify(this.studyJuri),
  18202. },
  18203. ];
  18204. this.ajax
  18205. .post(this.$store.state.api + "addWorks", params)
  18206. .then((res) => {
  18207. this.$message({
  18208. message: this.lang.ssSubmitSuccess,
  18209. type: "success",
  18210. });
  18211. this.isNoHomeWork = true;
  18212. this.dialogVisible = false;
  18213. })
  18214. .catch((err) => {
  18215. this.$message.error(this.lang.ssSubmitFailed);
  18216. console.error(err);
  18217. });
  18218. }
  18219. },
  18220. selectCount() {
  18221. let params = {
  18222. cid: this.id,
  18223. chid: this.courseType,
  18224. uid: this.userid,
  18225. };
  18226. this.ajax
  18227. .get(this.$store.state.api + "selectToolsCount", params)
  18228. .then((res) => {
  18229. for (var i = 0; i < res.data[0].length; i++) {
  18230. if (res.data[0][i].tools == 1) {
  18231. this.wbCount = res.data[0][i].count;
  18232. } else if (res.data[0][i].tools == 2) {
  18233. this.wordCount = res.data[0][i].count;
  18234. } else if (res.data[0][i].tools == 3) {
  18235. this.mindCount = res.data[0][i].count;
  18236. } else if (res.data[0][i].tools == 4) {
  18237. this.askCount = res.data[0][i].count;
  18238. } else if (res.data[0][i].tools == 6) {
  18239. this.noteCount = res.data[0][i].count;
  18240. } else if (res.data[0][i].tools == 7) {
  18241. this.mindNetWorkCount = res.data[0][i].count;
  18242. } else if (res.data[0][i].tools == 8) {
  18243. this.libraryCount = res.data[0][i].count;
  18244. } else if (res.data[0][i].tools == 16) {
  18245. this.workCount = res.data[0][i].count;
  18246. } else if (res.data[0][i].tools == 10) {
  18247. this.timeCount = res.data[0][i].count;
  18248. } else if (res.data[0][i].tools == 15) {
  18249. this.answerCount = res.data[0][i].count;
  18250. } else if (res.data[0][i].tools == 18) {
  18251. this.trainCount = res.data[0][i].count;
  18252. }
  18253. }
  18254. })
  18255. .catch((err) => {
  18256. console.error(err);
  18257. });
  18258. },
  18259. openTools(t, i, index, c, sName,id) {
  18260. var z = JSON.parse(c);
  18261. this.noteName = sName;
  18262. if (t == 4) {
  18263. this.radio = [];
  18264. this.isAnswer = false;
  18265. let b = z[0].anwer;
  18266. this.radio = b;
  18267. this.askJson = z[0].askJson;
  18268. this.isAnswer = true;
  18269. this.dialogVisible5 = true;
  18270. } else if (t == 45) {
  18271. this.radio = [];
  18272. this.isAnswer = false;
  18273. let b = z[0].anwer;
  18274. this.radio = b;
  18275. this.testJson = z[0].testJson;
  18276. this.isAnswer = true;
  18277. this.dialogVisibleChoice = true;
  18278. }else if(t == 69){
  18279. this.oldEnglishJson1 = {}
  18280. this.oldEnglishJson = {}
  18281. this.englishList1 = {}
  18282. this.newEngIndex = -1;
  18283. this.isNoUserid = false;
  18284. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18285. .toolChoose[i].englishList;
  18286. this.oldEnglishJson = z;
  18287. this.engWid = id;
  18288. this.newEnglishList = { engTitle:"",engText:"" }
  18289. this.newEnglishList1 = []
  18290. this.selectEngC(id,z);
  18291. }else if(t == 62){
  18292. this.videoType = 1;
  18293. this.videoJson = {};
  18294. this.videoJson = JSON.parse(c);
  18295. // this.videoJson =
  18296. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18297. // index
  18298. // ].toolChoose[i].videoJson;
  18299. this.dialogVisibleVideo = true;
  18300. //this.dialog
  18301. }
  18302. // else if (t == 15) {
  18303. // this.answerQ = "";
  18304. // this.questionAnswer = "";
  18305. // this.answerQ = z[0].answerTitle;
  18306. // this.questionAnswer = z[0].answer;
  18307. // this.answerDialogVisible = true;
  18308. // }
  18309. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18310. },
  18311. fastText(p, t) {
  18312. if (t == 1) {
  18313. this.commentText += p;
  18314. } else {
  18315. this.eScore.eBzText += p;
  18316. }
  18317. },
  18318. addTools(t, i, index) {
  18319. var a = 0;
  18320. // this.taskCount = index;
  18321. this.toolindex = i;
  18322. if (t == 1) {
  18323. if (this.wbCount > 0) {
  18324. this.updateCount(this.wbCount, t);
  18325. } else {
  18326. this.wbCount++;
  18327. a = this.wbCount;
  18328. this.toolsCount(a, t);
  18329. }
  18330. window.topU.postMessage(
  18331. {
  18332. tools: "1",
  18333. cid: this.id,
  18334. stage: this.courseType,
  18335. task: this.taskCount,
  18336. tool: i,
  18337. },
  18338. "*"
  18339. );
  18340. } else if (t == 2) {
  18341. if (this.wordCount > 0) {
  18342. this.updateCount(this.wordCount, t);
  18343. } else {
  18344. this.wordCount++;
  18345. a = this.wordCount;
  18346. this.toolsCount(a, t);
  18347. }
  18348. window.topU.postMessage({ tools: "2" }, "*");
  18349. } else if (t == 3) {
  18350. if (this.mindCount > 0) {
  18351. this.updateCount(this.mindCount, t);
  18352. } else {
  18353. this.mindCount++;
  18354. a = this.mindCount;
  18355. this.toolsCount(a, t);
  18356. }
  18357. window.topU.postMessage(
  18358. {
  18359. tools: "3",
  18360. cid: this.id,
  18361. stage: this.courseType,
  18362. task: this.taskCount,
  18363. tool: i,
  18364. },
  18365. "*"
  18366. );
  18367. } else if (t == 4) {
  18368. this.radio = [];
  18369. this.noteName = "";
  18370. this.isAnswer = false;
  18371. if (this.askCount > 0) {
  18372. this.updateCount(this.askCount, t);
  18373. } else {
  18374. this.askCount++;
  18375. a = this.askCount;
  18376. this.toolsCount(a, t);
  18377. }
  18378. if (!this.dialogVisible2) {
  18379. this.askJson.askJson =
  18380. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18381. index
  18382. ].toolChoose[i].askJson;
  18383. this.askJson.askTitle =
  18384. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18385. index
  18386. ].toolChoose[i].askTitle;
  18387. this.askJson.askCount =
  18388. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18389. index
  18390. ].toolChoose[i].askCount;
  18391. } else {
  18392. this.askJson.askJson = this.chapTools.askJson.askJson;
  18393. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18394. this.askJson.askCount = this.chapTools.askJson.askCount;
  18395. }
  18396. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18397. if (this.askJson.askJson[k].type == "2") {
  18398. this.radio.push([]);
  18399. } else {
  18400. this.radio.push("");
  18401. }
  18402. }
  18403. this.dialogVisible5 = true;
  18404. // window.topU.postMessage({ tools: "4" }, "*");
  18405. } else if (t == 45) {
  18406. this.noteName = "";
  18407. this.radio = [];
  18408. this.isAnswer = false;
  18409. if (this.askCount > 0) {
  18410. this.updateCount(this.askCount, t);
  18411. } else {
  18412. this.askCount++;
  18413. a = this.askCount;
  18414. this.toolsCount(a, t);
  18415. }
  18416. this.testJson =
  18417. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18418. index
  18419. ].toolChoose[i].testJson;
  18420. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18421. if (this.testJson.testJson[k].type == "2") {
  18422. this.radio.push([]);
  18423. } else {
  18424. this.radio.push("");
  18425. }
  18426. }
  18427. this.dialogVisibleChoice = true;
  18428. // window.topU.postMessage({ tools: "4" }, "*");
  18429. } else if (t == 5) {
  18430. if (this.scoreCount > 0) {
  18431. this.updateCount(this.scoreCount, t);
  18432. } else {
  18433. this.scoreCount++;
  18434. a = this.scoreCount;
  18435. this.toolsCount(a, t);
  18436. }
  18437. this.dialogVisible4 = true;
  18438. // window.topU.postMessage({ tools: "5" }, "*");
  18439. } else if (t == 6) {
  18440. if (this.noteCount > 0) {
  18441. this.updateCount(this.noteCount, t);
  18442. } else {
  18443. this.noteCount++;
  18444. a = this.noteCount;
  18445. this.toolsCount(a, t);
  18446. }
  18447. window.topU.postMessage(
  18448. {
  18449. tools: "6",
  18450. cid: this.id,
  18451. stage: this.courseType,
  18452. task: this.taskCount,
  18453. tool: i,
  18454. },
  18455. "*"
  18456. );
  18457. } else if (t == 7) {
  18458. if (this.mindNetWorkCount > 0) {
  18459. this.updateCount(this.mindNetWorkCount, t);
  18460. } else {
  18461. this.mindNetWorkCount++;
  18462. a = this.mindNetWorkCount;
  18463. this.toolsCount(a, t);
  18464. }
  18465. window.topU.postMessage(
  18466. {
  18467. tools: "7",
  18468. cid: this.id,
  18469. stage: this.courseType,
  18470. task: this.taskCount,
  18471. tool: i,
  18472. },
  18473. "*"
  18474. );
  18475. } else if (t == 16) {
  18476. if (this.workCount > 0) {
  18477. this.updateCount(this.workCount, t);
  18478. } else {
  18479. this.workCount++;
  18480. a = this.workCount;
  18481. this.toolsCount(a, t);
  18482. }
  18483. this.dialogVisible = true;
  18484. } else if (t == 50) {
  18485. if (this.tType == 2) {
  18486. this.$message.error(this.lang.ssNotSupportedForStudents);
  18487. return;
  18488. }
  18489. this.plworkFile = [];
  18490. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18491. if (!this.uploadCid) {
  18492. this.$message.error(
  18493. this.lang.ssBatchUploadNoClassPermission
  18494. );
  18495. return;
  18496. }
  18497. // this.uploadCid =
  18498. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18499. // index
  18500. // ].toolChoose[i].uploadJson[0];
  18501. this.selectUploadStudent(2);
  18502. } else if (t == 8) {
  18503. if (this.libraryCount > 0) {
  18504. this.updateCount(this.libraryCount, t);
  18505. } else {
  18506. this.libraryCount++;
  18507. a = this.libraryCount;
  18508. this.toolsCount(a, t);
  18509. }
  18510. window.topU.postMessage({ tools: "8" }, "*");
  18511. } else if (t == 17) {
  18512. if (this.libraryCount > 0) {
  18513. this.updateCount(this.libraryCount, t);
  18514. } else {
  18515. this.libraryCount++;
  18516. a = this.libraryCount;
  18517. this.toolsCount(a, t);
  18518. }
  18519. window.topU.postMessage({ tools: "17" }, "*");
  18520. } else if (t == 18) {
  18521. if (this.trainCount > 0) {
  18522. this.updateCount(this.trainCount, t);
  18523. } else {
  18524. this.trainCount++;
  18525. a = this.trainCount;
  18526. this.toolsCount(a, t);
  18527. }
  18528. window.topU.postMessage({ tools: "18" }, "*");
  18529. } else if (t == 10) {
  18530. if (this.timeCount > 0) {
  18531. this.updateCount(this.timeCount, t);
  18532. } else {
  18533. this.timeCount++;
  18534. a = this.timeCount;
  18535. this.toolsCount(a, t);
  18536. }
  18537. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18538. .taskJson[index].toolChoose[i].preTime
  18539. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18540. .toolChoose[i].preTime
  18541. : "";
  18542. this.timeDialogVisible = true;
  18543. } else if (t == 15) {
  18544. this.answerQ = "";
  18545. this.questionAnswer = "";
  18546. if (this.answerCount > 0) {
  18547. this.updateCount(this.answerCount, t);
  18548. } else {
  18549. this.answerCount++;
  18550. a = this.answerCount;
  18551. this.toolsCount(a, t);
  18552. }
  18553. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18554. .taskJson[index].toolChoose[i].answerQ
  18555. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18556. .toolChoose[i].answerQ
  18557. : "";
  18558. this.answerDialogVisible = true;
  18559. } else if (t == 21) {
  18560. window.topU.postMessage({ tools: "21" }, "*");
  18561. } else if (t == 22) {
  18562. window.topU.postMessage({ tools: "22" }, "*");
  18563. } else if (t == 23) {
  18564. window.topU.postMessage({ tools: "23" }, "*");
  18565. } else if (t == 24) {
  18566. window.topU.postMessage({ tools: "24" }, "*");
  18567. } else if (t == 25) {
  18568. window.topU.postMessage({ tools: "25" }, "*");
  18569. } else if (t == 31) {
  18570. window.topU.postMessage({ tools: "31" }, "*");
  18571. } else if (t == 28) {
  18572. window.topU.postMessage({ tools: "28" }, "*");
  18573. } else if (t == 37) {
  18574. window.topU.postMessage({ tools: "37" }, "*");
  18575. } else if (t == 38) {
  18576. window.topU.postMessage({ tools: "38" }, "*");
  18577. } else if (t == 39) {
  18578. window.topU.postMessage({ tools: "39" }, "*");
  18579. } else if (t == 32) {
  18580. window.topU.postMessage({ tools: "32" }, "*");
  18581. } else if (t == 66) {
  18582. window.topU.postMessage({ tools: "66" }, "*");
  18583. } else if (t == 67) {
  18584. window.topU.postMessage({ tools: "67" }, "*");
  18585. } else if (t == 68) {
  18586. window.topU.postMessage({ tools: "68" }, "*");
  18587. } else if (t == 57) {
  18588. // window.topU.postMessage({ tools: "57" }, "*");
  18589. window.topU.postMessage(
  18590. {
  18591. tools: "57u",
  18592. cid: this.id,
  18593. stage: this.courseType,
  18594. task: this.taskCount,
  18595. tool: i,
  18596. },
  18597. "*"
  18598. );
  18599. } else if (t == 58) {
  18600. window.topU.postMessage({ tools: "58" }, "*");
  18601. } else if (t == 59) {
  18602. window.topU.postMessage({ tools: "59" }, "*");
  18603. } else if (t == 60) {
  18604. window.topU.postMessage({ tools: "60" }, "*");
  18605. } else if (t == 61) {
  18606. window.topU.postMessage({ tools: "61" }, "*");
  18607. } else if (t == 63) {
  18608. window.topU.postMessage({ tools: "63" }, "*");
  18609. } else if (t == 71) {
  18610. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  18611. // this.$message.error("该工具不可使用");
  18612. // return
  18613. // }
  18614. window.topU.postMessage({ tools: "71" }, "*");
  18615. } else if (t == 72) {
  18616. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  18617. .taskJson[index].toolChoose[i].appJson
  18618. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18619. .toolChoose[i].appJson
  18620. : "";
  18621. if(!item || !item.url){
  18622. this.$message.error(this.lang.ssAppConnectionEmpty);
  18623. return;
  18624. }
  18625. if (!document.fullscreenElement) {
  18626. this.enterFullScreen();
  18627. }
  18628. this.$refs.appStoreC.getData(item.url,this.userid)
  18629. // window.open(item.url, "_blank");
  18630. // window.topU.postMessage({ tools: "72", data: item }, "*");
  18631. } else if (t == 69) {
  18632. if (this.worksStudent[i].length) {
  18633. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18634. if (this.userid == this.worksStudent[i][k].userid) {
  18635. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18636. break;
  18637. } else {
  18638. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18639. }
  18640. }
  18641. } else {
  18642. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18643. }
  18644. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18645. .taskJson[index].toolChoose[i].englishList
  18646. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18647. .toolChoose[i].englishList
  18648. : {};
  18649. this.englishToolIndex = i;
  18650. this.myAnList = this.myAnswerList1;
  18651. this.engDialogVisible = true;
  18652. } else if (t == 70) {
  18653. if (this.worksStudent[i].length) {
  18654. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18655. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18656. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18657. break;
  18658. } else {
  18659. this.englishVoiceJsonWork = [];
  18660. }
  18661. }
  18662. } else {
  18663. this.englishVoiceJsonWork = [];
  18664. }
  18665. let englishVoiceJson = {}
  18666. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18667. .taskJson[index].toolChoose[i].englishVoiceJson
  18668. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18669. .toolChoose[i].englishVoiceJson
  18670. : {};
  18671. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18672. this.EnglishVoiceDialog = true;
  18673. } else if (t == 65) {
  18674. if (this.tType == 2) {
  18675. this.$message.error(this.lang.ssNotSupportedForStudents);
  18676. return;
  18677. }
  18678. this.uploadCid = this.tcid;
  18679. if (!this.uploadCid) {
  18680. this.$message.error(
  18681. this.lang.ssNoClassPermission
  18682. );
  18683. return;
  18684. }
  18685. this.selectPickStudent();
  18686. } else if (t == 26) {
  18687. window.topU.postMessage(
  18688. {
  18689. tools: "26",
  18690. cid: this.id,
  18691. stage: this.courseType,
  18692. task: this.taskCount,
  18693. tool: i,
  18694. },
  18695. "*"
  18696. );
  18697. } else if (t == 40) {
  18698. if (this.evalCount > 0) {
  18699. this.updateCount(this.evalCount, t);
  18700. } else {
  18701. this.evalCount++;
  18702. a = this.evalCount;
  18703. this.toolsCount(a, t);
  18704. }
  18705. this.eScore = { eBzText: "", eStar: [] };
  18706. if (this.worksStudent[i].length) {
  18707. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18708. if (this.userid == this.worksStudent[i][k].userid) {
  18709. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18710. this.rateJson =
  18711. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18712. index
  18713. ].toolChoose[i].rateJson;
  18714. break;
  18715. } else {
  18716. this.rateJson =
  18717. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18718. index
  18719. ].toolChoose[i].rateJson;
  18720. }
  18721. }
  18722. } else {
  18723. this.rateJson =
  18724. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18725. index
  18726. ].toolChoose[i].rateJson;
  18727. }
  18728. this.isStar = false;
  18729. this.studentEvalDialogVisible = true;
  18730. } else if (t == 41) {
  18731. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18732. .taskJson[index].toolChoose[i].selectJson
  18733. ? JSON.parse(
  18734. JSON.stringify(
  18735. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18736. index
  18737. ].toolChoose[i].selectJson
  18738. )
  18739. )
  18740. : { url: "", select: [], answer: [] };
  18741. if (this.worksStudent[i].length) {
  18742. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18743. if (this.userid == this.worksStudent[i][k].userid) {
  18744. var a = this.worksStudent[i][k].works.split(",");
  18745. for (var ki = 0; ki < a.length; ki++) {
  18746. a[ki] = parseInt(a[ki]);
  18747. }
  18748. this.selectAnswer = {
  18749. answer: a,
  18750. stu: this.worksStudent[i][k].sName,
  18751. };
  18752. break;
  18753. } else {
  18754. this.selectAnswer = { answer: [], stu: "" };
  18755. }
  18756. }
  18757. } else {
  18758. this.selectAnswer = { answer: [], stu: "" };
  18759. }
  18760. this.isSelect = false;
  18761. this.dialogVisibleSelect = true;
  18762. } else if (t == 44) {
  18763. window.topU.postMessage({ tools: "44" }, "*");
  18764. } else if (t == 47) {
  18765. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18766. .taskJson[index].toolChoose[i].sentenceList
  18767. ? JSON.parse(
  18768. JSON.stringify(
  18769. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18770. index
  18771. ].toolChoose[i].sentenceList
  18772. )
  18773. )
  18774. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18775. for (var q = 0; q < this.sentenceList.length; q++) {
  18776. this.sentenceList[q].chooseSenList = [];
  18777. this.sentenceList[q].addChangeSen = [];
  18778. this.sentenceList[q].addChangeSen = JSON.parse(
  18779. JSON.stringify(this.sentenceList[q].addSentence)
  18780. );
  18781. this.sentenceList[q].chooseSenList.length =
  18782. this.sentenceList[q].rightAnswer.length;
  18783. }
  18784. this.dialogVisibleSentence = true;
  18785. } else if (t == 48) {
  18786. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18787. .taskJson[index].toolChoose[i].tableJson
  18788. ? JSON.parse(
  18789. JSON.stringify(
  18790. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18791. index
  18792. ].toolChoose[i].tableJson
  18793. )
  18794. )
  18795. : { text: "" };
  18796. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18797. if (this.worksStudent[i].length) {
  18798. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18799. if (this.userid == this.worksStudent[i][k].userid) {
  18800. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18801. break;
  18802. }
  18803. }
  18804. }
  18805. this.dialogVisibleTable = true;
  18806. } else if (t == 52) {
  18807. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18808. .taskJson[index].toolChoose[i].wordJson
  18809. ? JSON.parse(
  18810. JSON.stringify(
  18811. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18812. index
  18813. ].toolChoose[i].wordJson
  18814. )
  18815. )
  18816. : { text: "" };
  18817. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18818. if (this.worksStudent[i].length) {
  18819. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18820. if (this.userid == this.worksStudent[i][k].userid) {
  18821. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18822. break;
  18823. }
  18824. }
  18825. }
  18826. this.dialogVisibleWord = true;
  18827. } else if (t == 49) {
  18828. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18829. return
  18830. }
  18831. this.groupJson =
  18832. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18833. index
  18834. ].toolChoose[i].groupJson;
  18835. this.islock = this.groupJson.islock == 1 ? true : false;
  18836. this.dialogVisibleGroup = true;
  18837. } else if (t == 62) {
  18838. this.videoType = 0;
  18839. this.videoJson = {};
  18840. this.videoJson =
  18841. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18842. index
  18843. ].toolChoose[i].videoJson;
  18844. this.dialogVisibleVideo = true;
  18845. }
  18846. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  18847. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18848. },
  18849. teacherWorkSubmit(t, i, index, s) {
  18850. console.log('t',t);
  18851. if(t == 72) return
  18852. this.sStudent = s;
  18853. this.toolindex = i;
  18854. this.sTool = t;
  18855. if (this.tType !== "1" && this.tType !== "4") {
  18856. return;
  18857. }
  18858. if (t == 16 || t == 32 || t == 50) {
  18859. this.dialogVisibleWorks = true;
  18860. } else if (t == 15) {
  18861. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18862. .taskJson[index].toolChoose[i].answerQ
  18863. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18864. .toolChoose[i].answerQ
  18865. : "";
  18866. this.questionAnswer = "";
  18867. this.answerDialogVisibleTeacher = true; //问答
  18868. } else if (t == 52) {
  18869. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18870. .taskJson[index].toolChoose[i].wordJson
  18871. ? JSON.parse(
  18872. JSON.stringify(
  18873. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18874. index
  18875. ].toolChoose[i].wordJson
  18876. )
  18877. )
  18878. : { text: "" };
  18879. if (this.worksStudent[i].length) {
  18880. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18881. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18882. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18883. break;
  18884. }
  18885. }
  18886. }
  18887. this.dialogVisibleWordTeacher = true; //文档
  18888. } else if (t == 4) {
  18889. this.radio = [];
  18890. this.noteName = "";
  18891. this.isAnswer = false;
  18892. if (this.askCount > 0) {
  18893. this.updateCount(this.askCount, t);
  18894. } else {
  18895. this.askCount++;
  18896. a = this.askCount;
  18897. this.toolsCount(a, t);
  18898. }
  18899. if (!this.dialogVisible2) {
  18900. this.askJson.askJson =
  18901. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18902. index
  18903. ].toolChoose[i].askJson;
  18904. this.askJson.askTitle =
  18905. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18906. index
  18907. ].toolChoose[i].askTitle;
  18908. this.askJson.askCount =
  18909. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18910. index
  18911. ].toolChoose[i].askCount;
  18912. } else {
  18913. this.askJson.askJson = this.chapTools.askJson.askJson;
  18914. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18915. this.askJson.askCount = this.chapTools.askJson.askCount;
  18916. }
  18917. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18918. if (this.askJson.askJson[k].type == "2") {
  18919. this.radio.push([]);
  18920. } else {
  18921. this.radio.push("");
  18922. }
  18923. }
  18924. this.dialogVisible5Teacher = true;
  18925. } else if (t == 45) {
  18926. this.noteName = "";
  18927. this.radio = [];
  18928. this.isAnswer = false;
  18929. if (this.askCount > 0) {
  18930. this.updateCount(this.askCount, t);
  18931. } else {
  18932. this.askCount++;
  18933. a = this.askCount;
  18934. this.toolsCount(a, t);
  18935. }
  18936. this.testJson =
  18937. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18938. index
  18939. ].toolChoose[i].testJson;
  18940. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18941. if (this.testJson.testJson[k].type == "2") {
  18942. this.radio.push([]);
  18943. } else {
  18944. this.radio.push("");
  18945. }
  18946. }
  18947. this.dialogVisibleChoiceTeacher = true;
  18948. } else if (t == 41) {
  18949. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18950. .taskJson[index].toolChoose[i].selectJson
  18951. ? JSON.parse(
  18952. JSON.stringify(
  18953. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18954. index
  18955. ].toolChoose[i].selectJson
  18956. )
  18957. )
  18958. : { url: "", select: [], answer: [] };
  18959. if (this.worksStudent[i].length) {
  18960. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18961. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18962. var a = this.worksStudent[i][k].works.split(",");
  18963. for (var ki = 0; ki < a.length; ki++) {
  18964. a[ki] = parseInt(a[ki]);
  18965. }
  18966. this.selectAnswer = {
  18967. answer: a,
  18968. stu: this.worksStudent[i][k].sName,
  18969. };
  18970. break;
  18971. } else {
  18972. this.selectAnswer = { answer: [], stu: "" };
  18973. }
  18974. }
  18975. } else {
  18976. this.selectAnswer = { answer: [], stu: "" };
  18977. }
  18978. this.isSelect = false;
  18979. this.dialogVisibleSelectTeacher = true;
  18980. } else if (t == 47) {
  18981. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18982. .taskJson[index].toolChoose[i].sentenceList
  18983. ? JSON.parse(
  18984. JSON.stringify(
  18985. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18986. index
  18987. ].toolChoose[i].sentenceList
  18988. )
  18989. )
  18990. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18991. for (var q = 0; q < this.sentenceList.length; q++) {
  18992. this.sentenceList[q].chooseSenList = [];
  18993. this.sentenceList[q].addChangeSen = [];
  18994. this.sentenceList[q].addChangeSen = JSON.parse(
  18995. JSON.stringify(this.sentenceList[q].addSentence)
  18996. );
  18997. this.sentenceList[q].chooseSenList.length =
  18998. this.sentenceList[q].rightAnswer.length;
  18999. }
  19000. this.dialogVisibleSentenceTeacher = true;
  19001. } else if (t == 48) {
  19002. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19003. .taskJson[index].toolChoose[i].tableJson
  19004. ? JSON.parse(
  19005. JSON.stringify(
  19006. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19007. index
  19008. ].toolChoose[i].tableJson
  19009. )
  19010. )
  19011. : { text: "" };
  19012. if (this.worksStudent[i].length) {
  19013. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19014. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19015. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19016. break;
  19017. }
  19018. }
  19019. }
  19020. this.dialogVisibleTableTeacher = true;
  19021. } else if (t == 40) {
  19022. if (this.evalCount > 0) {
  19023. this.updateCount(this.evalCount, t);
  19024. } else {
  19025. this.evalCount++;
  19026. a = this.evalCount;
  19027. this.toolsCount(a, t);
  19028. }
  19029. this.eScore = { eBzText: "", eStar: [] };
  19030. if (this.worksStudent[i].length) {
  19031. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19032. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19033. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19034. this.rateJson =
  19035. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19036. index
  19037. ].toolChoose[i].rateJson;
  19038. break;
  19039. } else {
  19040. this.rateJson =
  19041. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19042. index
  19043. ].toolChoose[i].rateJson;
  19044. }
  19045. }
  19046. } else {
  19047. this.rateJson =
  19048. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19049. index
  19050. ].toolChoose[i].rateJson;
  19051. }
  19052. this.isStar = false;
  19053. this.studentEvalDialogVisibleTeacher = true;
  19054. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19055. window.topU.postMessage(
  19056. {
  19057. tools: t + "teacher",
  19058. cid: this.id,
  19059. stage: this.courseType,
  19060. task: this.taskCount,
  19061. tool: i,
  19062. student: this.sStudent,
  19063. },
  19064. "*"
  19065. );
  19066. }else if (t == 72) {
  19067. if (!document.fullscreenElement) {
  19068. this.enterFullScreen();
  19069. }
  19070. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19071. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19072. }
  19073. },
  19074. openCocoPi(tool, i, uid, uname) {
  19075. let student = {
  19076. userid: uid,
  19077. student: uname,
  19078. };
  19079. if (tool == 57) {
  19080. window.topU.postMessage(
  19081. {
  19082. tools: tool + "teacher",
  19083. cid: this.id,
  19084. stage: this.courseType,
  19085. task: this.taskCount,
  19086. tool: i,
  19087. student: student,
  19088. },
  19089. "*"
  19090. );
  19091. }
  19092. },
  19093. setRightAnswer(s, i, j) {
  19094. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19095. if (
  19096. this.sentenceList[i].chooseSenList[q] == undefined ||
  19097. this.sentenceList[i].chooseSenList[q] == ""
  19098. ) {
  19099. this.sentenceList[i].chooseSenList[q] = s;
  19100. this.sentenceList[i].addChangeSen[j] = "";
  19101. break;
  19102. }
  19103. }
  19104. this.$forceUpdate();
  19105. },
  19106. returnCard(r, i, j) {
  19107. var a = this.sentenceList[i].addSentence.indexOf(r);
  19108. this.sentenceList[i].chooseSenList[j] = "";
  19109. this.sentenceList[i].addChangeSen[a] = r;
  19110. this.$forceUpdate();
  19111. },
  19112. // addSentenceTool() {
  19113. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19114. // this.taskCount
  19115. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19116. // this.sentenceList = [
  19117. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19118. // ];
  19119. // this.dialogVisibleSentence = false;
  19120. // },
  19121. toolsCount(a, t) {
  19122. let params = {
  19123. cid: this.id,
  19124. chid: this.courseType,
  19125. uid: this.userid,
  19126. tid: t,
  19127. count: a,
  19128. };
  19129. this.ajax
  19130. .get(this.$store.state.api + "insertToolsCount", params)
  19131. .then((res) => {
  19132. this.selectCount();
  19133. })
  19134. .catch((err) => {
  19135. console.error(err);
  19136. });
  19137. },
  19138. updateCount(c, t) {
  19139. c++;
  19140. let params = {
  19141. cid: this.id,
  19142. chid: this.courseType,
  19143. uid: this.userid,
  19144. tid: t,
  19145. count: c,
  19146. };
  19147. this.ajax
  19148. .get(this.$store.state.api + "updateToolsCount", params)
  19149. .then((res) => {
  19150. this.selectCount();
  19151. })
  19152. .catch((err) => {
  19153. console.error(err);
  19154. });
  19155. },
  19156. checkEva() {
  19157. if (this.evalua != "") {
  19158. for (var i = 0; i < this.evaJuri.length; i++) {
  19159. if (this.evalua == this.evaJuri[i].id) {
  19160. this.eTitle = this.evaJuri[i].title;
  19161. this.eJson = JSON.parse(this.evaJuri[i].content);
  19162. }
  19163. }
  19164. this.$forceUpdate();
  19165. setTimeout(() => {
  19166. this.setMindData();
  19167. }, 0);
  19168. }
  19169. },
  19170. selectEva() {
  19171. let params = {
  19172. oid: this.oid,
  19173. };
  19174. this.ajax
  19175. .get(this.$store.state.api + "selectAllEvaluation", params)
  19176. .then((res) => {
  19177. this.evaJuri = res.data[0];
  19178. })
  19179. .catch((err) => {
  19180. console.error(err);
  19181. });
  19182. },
  19183. setMindData() {
  19184. this.data.data = [];
  19185. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19186. let _eJson = Object.keys(this.eJson);
  19187. let _e = this.eJson;
  19188. for (let i = 0; i < _eJson.length; i++) {
  19189. let element = _e[_eJson[i]];
  19190. this.data.data.push({
  19191. id: element.id,
  19192. parentid: "root",
  19193. topic: element.name,
  19194. });
  19195. let _eJsonc = Object.keys(element.child);
  19196. let _e2 = element.child;
  19197. for (let j = 0; j < _eJsonc.length; j++) {
  19198. let _ec = _e2[_eJsonc[j]];
  19199. this.data.data.push({
  19200. id: _ec.id,
  19201. parentid: element.id,
  19202. topic: _ec.name,
  19203. });
  19204. let _eJsonz = Object.keys(_ec.child);
  19205. let _e3 = _ec.child;
  19206. for (let z = 0; z < _eJsonz.length; z++) {
  19207. let _ez = _e3[_eJsonz[z]];
  19208. this.data.data.push({
  19209. id: _ez.id,
  19210. parentid: _ec.id,
  19211. topic: _ez.name,
  19212. });
  19213. }
  19214. }
  19215. }
  19216. this.$forceUpdate();
  19217. },
  19218. checkFileFull(type, url) {
  19219. this.fullDialogVisible = true;
  19220. this.fulltype = type;
  19221. this.fullUrl = url;
  19222. },
  19223. async checkFileFull1(t, f) {
  19224. this.fullDialogVisible = true;
  19225. if (t == 6) {
  19226. this.fulltype = 1;
  19227. this.fullUrl = JSON.parse(JSON.stringify(f));
  19228. } else if (t == 8 ) {
  19229. this.fulltype = 2;
  19230. this.fullUrl = f.url;
  19231. }else if (t == 15) {
  19232. this.diffKey = new Date().getTime();
  19233. this.fulltype = 4;
  19234. this.fullUrl = f.url;
  19235. } else if (t == 16) {
  19236. this.fulltype = 16;
  19237. this.fullUrl = f.url;
  19238. } else if (
  19239. t == 3 &&
  19240. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19241. "PDF"
  19242. ) {
  19243. this.fulltype = 3;
  19244. this.fullUrl = f.url;
  19245. } else if (t == 3) {
  19246. this.fulltype = 2;
  19247. let _uuurl = await this.checkLink(f.url);
  19248. this.fullUrl =
  19249. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19250. }
  19251. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19252. },
  19253. openSname(n, id, i, uid) {
  19254. this.snameWid = id;
  19255. this.worksSName = n;
  19256. this.worksSid = uid == n ? "" : uid;
  19257. this.toolindex = i;
  19258. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19259. if (!this.uploadCid) {
  19260. this.$message.error(
  19261. this.lang.ssBatchUploadNoClassPermission
  19262. );
  19263. return;
  19264. }
  19265. this.selectUploadStudent(1);
  19266. },
  19267. updateName() {
  19268. let params = {
  19269. n: this.worksSName,
  19270. cid: this.snameWid,
  19271. };
  19272. this.ajax
  19273. .get(this.$store.state.api + "updateCourseWorksName", params)
  19274. .then((res) => {
  19275. this.$message({
  19276. message: "修改成功",
  19277. type: "success",
  19278. });
  19279. this.dialogVisibleSname = false;
  19280. this.getCourseDetail(2);
  19281. this.snameWid = "";
  19282. this.worksSName = "";
  19283. })
  19284. .catch((err) => {
  19285. console.error(err);
  19286. });
  19287. },
  19288. downloadFile2(f) {
  19289. // const loading = this.$loading.service({
  19290. // background: "rgba(255, 255, 255, 0.7)",
  19291. // target: document.body,
  19292. // text: "文件加载中...",
  19293. // });
  19294. // let url2 = f.url;
  19295. // let _url2 = "";
  19296. // if (
  19297. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19298. // ) {
  19299. // _url2 = url2.split(
  19300. // "https://view.officeapps.live.com/op/view.aspx?src="
  19301. // )[1];
  19302. // } else {
  19303. // _url2 = url2;
  19304. // }
  19305. // let params = {
  19306. // url: _url2,
  19307. // name: f.name,
  19308. // };
  19309. // this.ajax
  19310. // .get(this.$store.state.api + "download", params)
  19311. // .then((res) => {
  19312. // loading.close();
  19313. // let content = res.data.data.data;
  19314. // let ab = new ArrayBuffer(content.length);
  19315. // let view = new Uint8Array(ab);
  19316. // for (var i = 0; i < content.length; ++i) {
  19317. // view[i] = content[i];
  19318. // }
  19319. // let elink = document.createElement("a");
  19320. // elink.download = f.name;
  19321. // elink.style.display = "none";
  19322. // let blob = new Blob([ab], {
  19323. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19324. // });
  19325. // elink.href = URL.createObjectURL(blob);
  19326. // document.body.appendChild(elink);
  19327. // elink.click();
  19328. // document.body.removeChild(elink);
  19329. // })
  19330. // .catch((err) => {
  19331. // loading.close();
  19332. // console.error(err);
  19333. // });
  19334. var credentials = {
  19335. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19336. secretAccessKey: "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",
  19337. }; //秘钥形式的登录上传
  19338. window.AWS.config.update(credentials);
  19339. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19340. let url2 = f.url;
  19341. let _url2 = "";
  19342. if (
  19343. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19344. ) {
  19345. _url2 = url2.split(
  19346. "https://view.officeapps.live.com/op/view.aspx?src="
  19347. )[1];
  19348. } else {
  19349. _url2 = url2;
  19350. }
  19351. let _this = this;
  19352. _this.downLoading = true
  19353. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19354. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19355. var params = {
  19356. Bucket: "ccrb",
  19357. Key: name
  19358. };
  19359. s3.getObject(params, function (err, data) {
  19360. _this.downLoading = false
  19361. if (err) console.log(err, err.stack); // an error occurred
  19362. else {
  19363. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19364. let a = document.createElement("a");
  19365. a.name = f.name;
  19366. a.href = url;
  19367. a.download = f.name;
  19368. a.click();
  19369. console.log(data);
  19370. } // sxuccessful response
  19371. });
  19372. return;
  19373. let url = f.url;
  19374. let _url = "";
  19375. if (
  19376. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19377. ) {
  19378. _url = url.split(
  19379. "https://view.officeapps.live.com/op/view.aspx?src="
  19380. )[1];
  19381. } else {
  19382. _url = url;
  19383. }
  19384. _this.downLoading = true
  19385. let x = new XMLHttpRequest();
  19386. x.open("GET", _url, true);
  19387. x.responseType = "blob";
  19388. x.onload = function () {
  19389. _this.downLoading = false
  19390. let url = window.URL.createObjectURL(new Blob([x.response]));
  19391. let a = document.createElement("a");
  19392. a.name = f.name;
  19393. a.href = url;
  19394. a.download = f.name;
  19395. a.click();
  19396. };
  19397. x.send();
  19398. },
  19399. downloadFile(url,uid) {
  19400. if (this.tType == 1 || this.userid == uid) {
  19401. // this.$message.info("查看作业-下载文件")
  19402. var credentials = {
  19403. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19404. secretAccessKey: "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",
  19405. }; //秘钥形式的登录上传
  19406. window.AWS.config.update(credentials);
  19407. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19408. let url2 = url;
  19409. let _url2 = "";
  19410. if (
  19411. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19412. ) {
  19413. _url2 = url2.split(
  19414. "https://view.officeapps.live.com/op/view.aspx?src="
  19415. )[1];
  19416. } else {
  19417. _url2 = url2;
  19418. }
  19419. const loading2 = this.$loading.service({
  19420. background: "rgba(255, 255, 255, 0.7)",
  19421. target: document.body,
  19422. text: this.lang.ssFileLoading,
  19423. });
  19424. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19425. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19426. var params = {
  19427. Bucket: "ccrb",
  19428. Key: name
  19429. };
  19430. s3.getObject(params, function (err, data) {
  19431. loading2.close();
  19432. if (err) console.log(err, err.stack); // an error occurred
  19433. else {
  19434. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19435. let a = document.createElement("a");
  19436. a.name = name;
  19437. a.href = url;
  19438. a.download = name;
  19439. a.click();
  19440. console.log(data);
  19441. } // sxuccessful response
  19442. });
  19443. }
  19444. return;
  19445. // let _this = this;
  19446. // let _url = "";
  19447. // if (
  19448. // url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19449. // ) {
  19450. // _url = url.split(
  19451. // "https://view.officeapps.live.com/op/view.aspx?src="
  19452. // )[1];
  19453. // } else {
  19454. // _url = url;
  19455. // }
  19456. // const x = new XMLHttpRequest();
  19457. // x.open("GET", _url, true);
  19458. // x.responseType = "blob";
  19459. // // this.downLoading = true
  19460. // const loading = _this.$loading.service({
  19461. // background: "rgba(255, 255, 255, 0.7)",
  19462. // target: document.body,
  19463. // text: "文件加载中...",
  19464. // });
  19465. // // _this.$message.success("文件下载中...");
  19466. // x.onload = function (e) {
  19467. // loading.close();
  19468. // let content = x.response;
  19469. // let elink = document.createElement("a");
  19470. // elink.download = decodeURI(
  19471. // _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19472. // );
  19473. // elink.style.display = "none";
  19474. // let blob = new Blob([content]);
  19475. // elink.href = URL.createObjectURL(blob);
  19476. // document.body.appendChild(elink);
  19477. // elink.click();
  19478. // document.body.removeChild(elink);
  19479. // };
  19480. // x.send();
  19481. },
  19482. openLine(url) {
  19483. window.open(url);
  19484. },
  19485. resize() {
  19486. if (document.getElementsByClassName("box_course").length) {
  19487. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19488. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19489. if (this.showType == 2 || this.showType == 3) {
  19490. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  19491. document.getElementsByClassName("navBox")[0].style.height =
  19492. a - 40 + 0+ "px";
  19493. }
  19494. } else {
  19495. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  19496. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  19497. }
  19498. }
  19499. }
  19500. this.Stbodywidth =
  19501. document.getElementsByClassName("student_body").length &&
  19502. document.getElementsByClassName("student_body")[0].offsetWidth;
  19503. },
  19504. closeDraw() {
  19505. this.bg = null;
  19506. this.drawShow = false;
  19507. },
  19508. showPicturePaint(url) {
  19509. let params = {
  19510. img: url,
  19511. };
  19512. this.ajax
  19513. .get(this.$store.state.api + "imgToBase64", params)
  19514. .then((res) => {
  19515. this.drawShow = true;
  19516. this.bg = res.data[0].img;
  19517. })
  19518. .catch((err) => {
  19519. console.error(err);
  19520. });
  19521. },
  19522. addImgDraw(base64) {
  19523. let file = { name: this.lang.ssAnnotationImage };
  19524. let img = this.dataUrlToFile(base64, file);
  19525. this.beforeUpload1(img, 5);
  19526. },
  19527. addImgDrawImG(url) {
  19528. // console.log(url);
  19529. let params = [
  19530. {
  19531. wid: this.commentDetail.wid,
  19532. img: url,
  19533. },
  19534. ];
  19535. this.ajax
  19536. .post(this.$store.state.api + "updateCourseWorks", params)
  19537. .then((res) => {
  19538. this.$message({
  19539. message: this.lang.ssSubmitSuccess,
  19540. type: "success",
  19541. });
  19542. this.drawShow = false;
  19543. this.bg = "";
  19544. this.selectSWorks();
  19545. this.selectStudent();
  19546. })
  19547. .catch((err) => {
  19548. this.$message.error(this.lang.ssSubmitFailed);
  19549. console.error(err);
  19550. });
  19551. },
  19552. deletePicturePaint() {
  19553. this.$confirm(this.lang.ssConfirmDeleteAnnotation, this.lang.ssPrompt, {
  19554. confirmButtonText: this.lang.ssConfirm,
  19555. cancelButtonText: this.lang.ssCancel,
  19556. type: "warning",
  19557. })
  19558. .then(() => {
  19559. let params = [
  19560. {
  19561. wid: this.commentDetail.wid,
  19562. img: "",
  19563. },
  19564. ];
  19565. this.ajax
  19566. .post(this.$store.state.api + "updateCourseWorks", params)
  19567. .then((res) => {
  19568. this.$message({
  19569. message: this.lang.ssDeleteSuccess,
  19570. type: "success",
  19571. });
  19572. this.selectSWorks();
  19573. this.selectStudent();
  19574. })
  19575. .catch((err) => {
  19576. this.$message.error(this.lang.ssDeleteFailed);
  19577. console.error(err);
  19578. });
  19579. })
  19580. .catch(() => {});
  19581. },
  19582. getAudioVideo(constraintsData) {
  19583. if (navigator.mediaDevices === undefined) {
  19584. navigator.mediaDevices = {};
  19585. }
  19586. if (navigator.mediaDevices.getUserMedia === undefined) {
  19587. navigator.mediaDevices.getUserMedia = function (constraints) {
  19588. // 首先,如果有getUserMedia的话,就获得它
  19589. var getUserMedia =
  19590. navigator.getUserMedia ||
  19591. navigator.webkitGetUserMedia ||
  19592. navigator.mozGetUserMedia ||
  19593. navigator.msGetUserMedia;
  19594. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19595. if (!getUserMedia) {
  19596. return Promise.reject({ code: 404 });
  19597. }
  19598. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19599. return new Promise(function (resolve, reject) {
  19600. getUserMedia.call(navigator, constraints, resolve, reject);
  19601. });
  19602. };
  19603. }
  19604. return navigator.mediaDevices.getUserMedia(constraintsData);
  19605. },
  19606. /**
  19607. * 开始录制
  19608. */
  19609. startRecording(callback) {
  19610. let _function = (screenStream) => {
  19611. this.addStreamStopListener(screenStream, () => {
  19612. console.log("流停止监听");
  19613. this.stopRecording();
  19614. this.$emit("streamStop", {});
  19615. // this.stopRecording();
  19616. });
  19617. var options = {
  19618. type: "video",
  19619. mimeType: "video/webm",
  19620. disableLogs: false,
  19621. getNativeBlob: false, // enable it for longer recordings
  19622. ignoreMutedMedia: false,
  19623. };
  19624. // this.video.srcObject = screenStream;
  19625. this.recorder = RecordRTC(screenStream, options);
  19626. this.recorder.startRecording();
  19627. this.recorder.screen = screenStream;
  19628. this.videoStart = true;
  19629. // callback(true);
  19630. };
  19631. this.getAudioVideo({ audio: true })
  19632. .then((res) => {
  19633. this.captureScreen(_function, true);
  19634. console.log("已点击允许,开启成功");
  19635. })
  19636. .catch((err) => {
  19637. // console.log('浏览器不支持,请更换浏览器')
  19638. // } else {
  19639. this.captureScreen(_function, false);
  19640. console.log("请检查是否存在麦克风");
  19641. });
  19642. },
  19643. /**
  19644. * 停止录制
  19645. */
  19646. stopRecording(callback) {
  19647. this.recorder.stopRecording(() => {
  19648. // this.video.src = this.video.srcObject = null;
  19649. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19650. const url = URL.createObjectURL(this.recorder.getBlob());
  19651. const a = document.createElement("a"); //this.fileName+
  19652. let videoFile = new File(
  19653. [this.recorder.getBlob()],
  19654. this.courseDetail.title + this.lang.ssScreenRecording + ".mp4",
  19655. {
  19656. type: "video/mp4",
  19657. }
  19658. );
  19659. let downloadUrl = URL.createObjectURL(videoFile);
  19660. if(this.$refs.classRoomHelperRef){
  19661. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19662. }
  19663. document.body.appendChild(a);
  19664. a.style.display = "none";
  19665. a.href = url;
  19666. a.download = this.courseDetail.title + this.lang.ssScreenRecording + ".mp4"; //this.fileName +
  19667. a.click();
  19668. this.recorder.screen.stop();
  19669. this.recorder.destroy();
  19670. this.recorder = null;
  19671. this.videoStart = false;
  19672. // callback(false);
  19673. });
  19674. },
  19675. //初始化
  19676. captureScreen(callback, type) {
  19677. if (navigator.getDisplayMedia) {
  19678. //录制结束,文件下载
  19679. navigator
  19680. .getDisplayMedia({
  19681. video: true,
  19682. })
  19683. .then((screenStream) => {
  19684. if (type) {
  19685. navigator.mediaDevices
  19686. .getUserMedia({ audio: true })
  19687. .then((mic) => {
  19688. screenStream.addTrack(mic.getTracks()[0]);
  19689. callback(screenStream);
  19690. });
  19691. } else {
  19692. callback(screenStream);
  19693. }
  19694. })
  19695. .catch(function (error) {
  19696. console.log("error", error);
  19697. });
  19698. } else if (navigator.mediaDevices.getDisplayMedia) {
  19699. navigator.mediaDevices
  19700. .getDisplayMedia({
  19701. video: true,
  19702. })
  19703. .then((screenStream) => {
  19704. if (type) {
  19705. navigator.mediaDevices
  19706. .getUserMedia({ audio: true })
  19707. .then((mic) => {
  19708. screenStream.addTrack(mic.getTracks()[0]);
  19709. callback(screenStream);
  19710. });
  19711. } else {
  19712. callback(screenStream);
  19713. }
  19714. })
  19715. .catch(function (error) {
  19716. console.log("error", error);
  19717. });
  19718. } else {
  19719. var error = "getDisplayMedia API are not supported in this browser.";
  19720. console.log("error", error);
  19721. alert(error);
  19722. }
  19723. },
  19724. //流监听
  19725. addStreamStopListener(stream, callback) {
  19726. stream.addEventListener(
  19727. "ended",
  19728. function () {
  19729. callback();
  19730. callback = function () {};
  19731. },
  19732. false
  19733. );
  19734. stream.addEventListener(
  19735. "inactive",
  19736. function () {
  19737. callback();
  19738. callback = function () {};
  19739. },
  19740. false
  19741. );
  19742. stream.getTracks().forEach(function (track) {
  19743. track.addEventListener(
  19744. "ended",
  19745. function () {
  19746. callback();
  19747. callback = function () {};
  19748. },
  19749. false
  19750. );
  19751. track.addEventListener(
  19752. "inactive",
  19753. function () {
  19754. callback();
  19755. callback = function () {};
  19756. },
  19757. false
  19758. );
  19759. });
  19760. },
  19761. updateGroup() {
  19762. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19763. this.dialogVisibleGroup2 = true;
  19764. },
  19765. numberPan() {
  19766. if (
  19767. /[^\d]/.test(this.groupJson.number) ||
  19768. this.groupJson.number < 2 ||
  19769. this.groupJson.number > 10
  19770. ) {
  19771. this.$message.error(this.lang.ssEnterNumber2To10);
  19772. this.groupJson.number = "";
  19773. }
  19774. },
  19775. updateGroupJson() {
  19776. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19777. if (
  19778. this.groupStudentUid[this.toolindex][i].length >
  19779. this.groupJson2.number
  19780. ) {
  19781. this.$message.error(this.lang.ssGroupLargerThanSet);
  19782. return;
  19783. }
  19784. }
  19785. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19786. this.islock = this.groupJson.islock == 1 ? true : false;
  19787. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19788. this.taskCount
  19789. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19790. let params = [
  19791. {
  19792. cid: this.id,
  19793. chapters: JSON.stringify(this.chapInfoList),
  19794. uid: this.userid,
  19795. unitIndex: this.courseType,
  19796. },
  19797. ];
  19798. this.ajax
  19799. .post(this.$store.state.api + "updateWorkNew4", params)
  19800. .then((res) => {
  19801. this.$message.success(this.lang.ssSettingSuccess);
  19802. this.getCourseDetail(2);
  19803. this.dialogVisibleGroup2 = false;
  19804. this.groupJson2 = {};
  19805. this.$forceUpdate();
  19806. })
  19807. .catch((err) => {
  19808. this.$message.error(this.lang.ssNetworkPoor);
  19809. console.error(err);
  19810. });
  19811. },
  19812. lockChair() {
  19813. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19814. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19815. this.updateGroupJson();
  19816. },
  19817. selectGroup(index) {
  19818. this.getCourseDetail(2, index);
  19819. },
  19820. joinGroup(index) {
  19821. if (this.groupJson.islock == 2) {
  19822. this.$message.error(this.lang.ssPositionLockedCannotJoin);
  19823. return;
  19824. }
  19825. if (
  19826. this.groupStudent[this.toolindex][index].length >
  19827. this.groupJson.number ||
  19828. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19829. ) {
  19830. this.$message.error(this.lang.ssPositionFullCannotJoin);
  19831. return;
  19832. }
  19833. let params = [
  19834. {
  19835. cid: this.id,
  19836. stage: this.courseType,
  19837. task: this.taskCount,
  19838. tool: this.toolindex,
  19839. g: index,
  19840. uid: this.userid,
  19841. },
  19842. ];
  19843. this.ajax
  19844. .post(this.$store.state.api + "joinGroup", params)
  19845. .then((res) => {
  19846. this.$message.success(this.lang.ssJoinSuccess);
  19847. this.getCourseDetail(2);
  19848. })
  19849. .catch((err) => {
  19850. this.$message.error(this.lang.ssNetworkPoor);
  19851. console.error(err);
  19852. });
  19853. },
  19854. exitGroup(id) {
  19855. if (this.groupJson.islock == 2) {
  19856. this.$message.error(this.lang.ssPositionLockedCannotExit);
  19857. return;
  19858. }
  19859. let params = [
  19860. {
  19861. gid: id,
  19862. },
  19863. ];
  19864. this.ajax
  19865. .post(this.$store.state.api + "exitGroup", params)
  19866. .then((res) => {
  19867. this.$message.success(this.lang.ssExitSuccess);
  19868. this.getCourseDetail(2);
  19869. })
  19870. .catch((err) => {
  19871. this.$message.error(this.lang.ssNetworkPoor);
  19872. console.error(err);
  19873. });
  19874. },
  19875. groupUpload(index, task, gindex) {
  19876. this.taskCount = task;
  19877. this.toolindex = index;
  19878. this.groupIndex = gindex;
  19879. this.dialogVisibleGroupWork = true;
  19880. },
  19881. updateGroupChair(user) {
  19882. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19883. el.label = index;
  19884. return index != user.group;
  19885. });
  19886. this.updateGroupUser = user;
  19887. this.dialogVisibleUpdateGroup = true;
  19888. },
  19889. updateChair() {
  19890. if (
  19891. this.groupStudent[this.toolindex][this.checkChair].length >
  19892. this.groupJson.number ||
  19893. this.groupStudent[this.toolindex][this.checkChair].length ==
  19894. this.groupJson.number
  19895. ) {
  19896. this.$message.error(this.lang.ssPositionFullCannotJoin);
  19897. return;
  19898. }
  19899. let params = [
  19900. {
  19901. cid: this.id,
  19902. stage: this.courseType,
  19903. task: this.taskCount,
  19904. tool: this.toolindex,
  19905. g: this.checkChair,
  19906. uid: this.updateGroupUser.userid,
  19907. },
  19908. ];
  19909. this.ajax
  19910. .post(this.$store.state.api + "joinGroup", params)
  19911. .then((res) => {
  19912. this.$message.success(this.lang.ssModifySuccess);
  19913. this.updateGroupUser = {};
  19914. this.checkChair = "";
  19915. this.updateGroupArray = {};
  19916. this.dialogVisibleUpdateGroup = false;
  19917. this.getCourseDetail(2);
  19918. })
  19919. .catch((err) => {
  19920. this.$message.error(this.lang.ssNetworkPoor);
  19921. console.error(err);
  19922. });
  19923. },
  19924. deleteGroupChair(gindex) {
  19925. this.checkDeleteGroup = [];
  19926. this.deleteGroupUser = JSON.parse(
  19927. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19928. );
  19929. this.deleteGroupArray = this.groupJson.group[gindex];
  19930. this.groupIndex = gindex;
  19931. this.dialogVisibleDeleteGroup = true;
  19932. },
  19933. async deleteChair() {
  19934. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19935. const gid =
  19936. this.groupStudent[this.toolindex][this.groupIndex][
  19937. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19938. this.checkDeleteGroup[i]
  19939. )
  19940. ];
  19941. let params = [
  19942. {
  19943. gid: gid.id,
  19944. },
  19945. ];
  19946. var a = await this.deleteChairA(params);
  19947. if (i == this.checkDeleteGroup.length - 1) {
  19948. this.$message.success(this.lang.ssExitSuccess);
  19949. this.dialogVisibleDeleteGroup = false;
  19950. this.deleteGroupUser = [];
  19951. this.deleteGroupArray = {};
  19952. this.groupIndex = "";
  19953. this.checkDeleteGroup = [];
  19954. this.getCourseDetail(2);
  19955. }
  19956. }
  19957. },
  19958. deleteChairA(params) {
  19959. return new Promise((resolve, reject) => {
  19960. this.ajax
  19961. .post(this.$store.state.api + "exitGroup", params)
  19962. .then((res) => {
  19963. resolve(1);
  19964. })
  19965. .catch((err) => {
  19966. this.$message.error(this.lang.ssNetworkPoor);
  19967. console.error(err);
  19968. });
  19969. });
  19970. },
  19971. contract(i) {
  19972. if (this.isCloseList[i].isClose == 0) {
  19973. this.isCloseList[i].isClose = 1;
  19974. } else {
  19975. this.isCloseList[i].isClose = 0;
  19976. }
  19977. this.$forceUpdate();
  19978. },
  19979. openWordCloud(toolindex) {
  19980. this.wordCloudData = '';
  19981. let array = [];
  19982. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19983. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19984. array.push({ name: works });
  19985. }
  19986. if (this.isGroup) {
  19987. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19988. let works = this.courseGroup.group[i].works[toolindex];
  19989. for (var j = 0; j < works.length; j++) {
  19990. let answer = JSON.parse(works[j].works)[0].answer;
  19991. array.push({ name: answer });
  19992. }
  19993. }
  19994. }
  19995. let _result = ''
  19996. array.forEach(e=>{
  19997. _result +=e.name+','
  19998. })
  19999. this.wordCloudData = _result;
  20000. this.dialogVisibleWordCloud = true;
  20001. this.wordCloudKey += 1;
  20002. },
  20003. uploadWorks(i) {
  20004. this.$confirm(this.lang.ssConfirmExportHomework, this.lang.ssPrompt, {
  20005. confirmButtonText: this.lang.ssConfirm,
  20006. cancelButtonText: this.lang.ssCancel,
  20007. type: "warning",
  20008. })
  20009. .then(() => {
  20010. const loading = this.$loading.service({
  20011. background: "rgba(255, 255, 255, 0.7)",
  20012. target: document.body,
  20013. text: this.lang.ssFileLoading,
  20014. });
  20015. const _worksStudent = this.worksStudent;
  20016. let url = [];
  20017. var counts = {};
  20018. for (var l = 0; l < _worksStudent[i].length; l++) {
  20019. var item = _worksStudent[i][l];
  20020. var name = item.sName;
  20021. if (!counts.hasOwnProperty(name)) {
  20022. counts[name] = 0;
  20023. } else {
  20024. counts[name]++;
  20025. }
  20026. if (counts[name] > 0) {
  20027. item.sName += " (" + counts[name] + ")";
  20028. }
  20029. }
  20030. for (var l = 0; l < _worksStudent[i].length; l++) {
  20031. var item = _worksStudent[i][l];
  20032. if (
  20033. item.works.indexOf(
  20034. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20035. ) !== -1 &&
  20036. item.works.indexOf("img") === -1
  20037. ) {
  20038. url.push({ name: item.sName, url: item.works });
  20039. }
  20040. }
  20041. // var toolList = [
  20042. // { name: "电子白板", tool: 1 },
  20043. // { name: "思维导图", tool: 3 },
  20044. // { name: "协同文档", tool: 6 },
  20045. // { name: "思维网格", tool: 7 },
  20046. // { name: "素材库", tool: 8 },
  20047. // { name: "学习资料", tool: 17 },
  20048. // { name: "便签", tool: 2 },
  20049. // { name: "问卷调查", tool: 4 },
  20050. // { name: "选择题", tool: 45 },
  20051. // { name: "倒计时", tool: 10 },
  20052. // { name: "问答", tool: 15 },
  20053. // { name: "课程设计", tool: 26 },
  20054. // { name: "训练服务器", tool: 18 },
  20055. // { name: "作业提交", tool: 16 },
  20056. // { name: "批量上传", tool: 50 },
  20057. // { name: "AIoT Blockly", tool: 21 },
  20058. // { name: "AI Python", tool: 23 },
  20059. // { name: "AI Blockly", tool: 24 },
  20060. // { name: "目标管理", tool: 25 },
  20061. // { name: this.lang.ssMathBoard, tool: 31 },
  20062. // { name: "翻译", tool: 28 },
  20063. // { name: this.lang.ssMohe, tool: 37 },
  20064. // { name: this.lang.ssMathBoard, tool: 31 },
  20065. // { name: "24点", tool: 38 },
  20066. // { name: "GeoGebra", tool: 39 },
  20067. // { name: "源码编辑", tool: 32 },
  20068. // { name: "个人评价", tool: 40 },
  20069. // { name: "选择匹配", tool: 41 },
  20070. // { name: this.lang.ssHanziPalace, tool: 44 },
  20071. // { name: "排序", tool: 47 },
  20072. // { name: "表格", tool: 48 },
  20073. // { name: "文档", tool: 52 },
  20074. // { name: "学生分组", tool: 49 },
  20075. // { name: "CocoPi", tool: 57 },
  20076. // { name: "模拟驾驶", tool: 58 },
  20077. // { name: "路径搜索", tool: 59 },
  20078. // { name: "深度学习", tool: 60 },
  20079. // { name: "全历史", tool: 61 },
  20080. // { name: "交互视频", tool: 62 },
  20081. // { name: "海龟编程", tool: 63 },
  20082. // { name: "挑人", tool: 65 },
  20083. // { name: "公式编辑", tool: 66 },
  20084. // { name: "分子结构", tool: 67 },
  20085. // { name: "时间轴", tool: 68 },
  20086. // ];
  20087. // var toolName = "";
  20088. // for(var w = 0;w<toolList.length;w++){
  20089. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20090. // toolName = toolList[w].name;
  20091. // }
  20092. // }
  20093. console.log(url);
  20094. this.downLoadAll(url, loading);
  20095. })
  20096. .catch(() => {});
  20097. },
  20098. downLoadAll(url, loading) {
  20099. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20100. const zip = new JSZip();
  20101. const cache = {};
  20102. const promises = [];
  20103. data.forEach((item) => {
  20104. const promise = getFile(item.url).then((data) => {
  20105. if (data.data != 1) {
  20106. // 下载文件, 并存成ArrayBuffer对象
  20107. const file_name =
  20108. item.name +
  20109. "." +
  20110. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20111. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20112. cache[file_name] = data.data;
  20113. }
  20114. });
  20115. promises.push(promise);
  20116. });
  20117. Promise.all(promises).then(() => {
  20118. zip.generateAsync({ type: "blob" }).then((content) => {
  20119. // 生成二进制流
  20120. FileSaver.saveAs(
  20121. content,
  20122. this.courseDetail.title + "-" + this.lang.ssHomeworkSubmissionTool + ".zip"
  20123. ); // 利用file-saver保存文件 自定义文件名
  20124. setTimeout(() => {
  20125. loading.close();
  20126. }, 2000);
  20127. });
  20128. });
  20129. },
  20130. pickStudent(stu) {
  20131. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20132. return;
  20133. }
  20134. this.$confirm(this.lang.ssAskStudentToAnswer.replace(/\*/g, stu.name), this.lang.ssPrompt, {
  20135. confirmButtonText: this.lang.ssConfirm,
  20136. cancelButtonText: this.lang.ssCancel,
  20137. type: "warning",
  20138. })
  20139. .then(() => {
  20140. let params = [
  20141. {
  20142. uid: stu.userid,
  20143. cid: this.id,
  20144. stage: this.courseType,
  20145. task: this.taskCount,
  20146. tool: this.toolindex,
  20147. },
  20148. ];
  20149. this.ajax
  20150. .post(this.$store.state.api + "updateCoursePick", params)
  20151. .then((res) => {
  20152. this.$message.success(this.lang.ssOperationSuccess);
  20153. this.getPick();
  20154. })
  20155. .catch((err) => {
  20156. this.$message.error(this.lang.ssNetworkPoor);
  20157. console.error(err);
  20158. });
  20159. })
  20160. .catch(() => {});
  20161. },
  20162. selectUser(){
  20163. let params = {
  20164. userid: this.userid,
  20165. };
  20166. this.ajax
  20167. .get(this.$store.state.api + "selectUser", params)
  20168. .then((res) => {
  20169. this.userMes = res.data[0];
  20170. })
  20171. .catch((err) => {
  20172. console.error(err);
  20173. });
  20174. },
  20175. setEngText(i){
  20176. this.newEngIndex = i;
  20177. this.$forceUpdate();
  20178. },
  20179. addCorrect(){
  20180. this.$confirm(this.lang.ssConfirmSubmitCorrection, this.lang.ssPrompt, {
  20181. confirmButtonText: this.lang.ssConfirm,
  20182. showCancelButton: false,
  20183. closeOnClickModal: false,
  20184. type: "warning",
  20185. })
  20186. .then(() => {
  20187. let params = {
  20188. cid: this.id,
  20189. s: parseInt(this.courseType),
  20190. t: this.taskCount,
  20191. tool: this.toolindex,
  20192. wid: this.engWid,
  20193. c: this.userid,
  20194. 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) : "",
  20195. };
  20196. this.ajax
  20197. .get(this.$store.state.api + "addEngC", params)
  20198. .then((res) => {
  20199. this.$message.success(this.lang.ssSubmitSuccess);
  20200. this.engUpdateDialogVisible = false;
  20201. })
  20202. .catch((err) => {
  20203. console.error(err);
  20204. });
  20205. })
  20206. .catch(() => {});
  20207. },
  20208. selectEngC(id,z){
  20209. let params = {
  20210. workid: id,
  20211. };
  20212. this.ajax
  20213. .get(this.$store.state.api + "selectEngC", params)
  20214. .then((res) => {
  20215. if(res.data[0].length == 0){
  20216. this.newEnglishList.engTitle = z.engTitle;
  20217. this.newEnglishList.engText = z.engText;
  20218. }else{
  20219. var a = res.data[0];
  20220. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20221. if(this.userMes[0].type == 2){
  20222. var snum = 0;
  20223. for(var i = 0;i<a.length;i++){
  20224. if(this.userMes[0].userid == a[i].correct){
  20225. this.newEnglishList = JSON.parse(a[i].cWork);
  20226. snum = 1;
  20227. }
  20228. }
  20229. if(snum == 0){
  20230. this.newEnglishList = { engTitle:"",engText:"" };
  20231. this.newEnglishList.engTitle = z.engTitle;
  20232. this.newEnglishList.engText = z.engText;
  20233. }
  20234. }else if(this.userMes[0].type == 1){
  20235. var num = 0;
  20236. for(var w= 0;w<a.length;w++){
  20237. if(this.userMes[0].userid == a[w].correct){
  20238. num = 1;
  20239. }
  20240. }
  20241. if(num == 0){
  20242. this.isNoUserid = true;
  20243. var c = JSON.parse(JSON.stringify(z));
  20244. this.oldEnglishJson1 = c;
  20245. }else{
  20246. this.isNoUserid = false;
  20247. }
  20248. var b = a.sort((item, index) => {
  20249. console.log(item)
  20250. if (item.correct === this.userMes[0].userid) {
  20251. return -1; // 将a移到前面
  20252. } else if (index.correct === this.userMes[0].userid) {
  20253. return 1; // 将b移到前面
  20254. } else {
  20255. return 0; // 保持默认顺序
  20256. }
  20257. });
  20258. for(var p = 0;p<b.length;p++){
  20259. for(var y = 0;y<ppp.length;y++){
  20260. if(b[p].id == ppp[y].id){
  20261. b[p].cWork = JSON.parse(ppp[y].cWork);
  20262. break
  20263. }
  20264. }
  20265. }
  20266. this.newEnglishList1 = b;
  20267. }
  20268. }
  20269. this.greyType = false;
  20270. setTimeout(() => {
  20271. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20272. if(this.newEnglishList1.length > 0){
  20273. if(this.isNoUserid == true){
  20274. this.engListLength = this.newEnglishList1.length + 1;
  20275. this.newEngIndex = -1;
  20276. }else{
  20277. this.engListLength = this.newEnglishList1.length;
  20278. this.newEngIndex = 0;
  20279. }
  20280. }
  20281. if(this.userMes[0].type == 2){
  20282. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20283. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20284. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20285. }else if(this.newEngIndex == -1){
  20286. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20287. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20288. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20289. }
  20290. }, 500);
  20291. this.engUpdateDialogVisible = true;
  20292. this.$forceUpdate();
  20293. })
  20294. .catch((err) => {
  20295. console.error(err);
  20296. });
  20297. },
  20298. getPick() {
  20299. if(this.getPickLoading) return
  20300. this.getPickLoading = true
  20301. let params = {
  20302. cid: this.id,
  20303. };
  20304. this.ajax
  20305. .get(this.$store.state.api + "getPick", params)
  20306. .then((res) => {
  20307. let array = [];
  20308. for (var i = 0; i < res.data[0].length; i++) {
  20309. array.push(res.data[0][i].userid);
  20310. }
  20311. this.isPickStudent = array;
  20312. if (array.indexOf(this.userid) !== -1) {
  20313. this.$confirm(this.lang.ssSelectedByTeacher, this.lang.ssPrompt, {
  20314. confirmButtonText: this.lang.ssConfirm,
  20315. showCancelButton: false,
  20316. closeOnClickModal: false,
  20317. type: "warning",
  20318. })
  20319. .then(() => {
  20320. let pa = [
  20321. {
  20322. uid: this.userid,
  20323. cid: this.id,
  20324. },
  20325. ];
  20326. this.ajax
  20327. .post(this.$store.state.api + "deletePick", pa)
  20328. .then((res) => {
  20329. this.getPick();
  20330. })
  20331. .catch((err) => {
  20332. this.$message.error(this.lang.ssNetworkPoor);
  20333. console.error(err);
  20334. });
  20335. })
  20336. .catch(() => {});
  20337. }
  20338. this.getPickLoading = false
  20339. })
  20340. .catch((err) => {
  20341. this.getPickLoading = false
  20342. this.$message.error(this.lang.ssNetworkPoor);
  20343. console.error(err);
  20344. });
  20345. },
  20346. foldEva() {
  20347. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20348. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20349. } else {
  20350. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20351. setTimeout(() => {
  20352. this.checkEva();
  20353. setTimeout(() => {
  20354. this.checkEva();
  20355. }, 500);
  20356. }, 0);
  20357. }
  20358. this.$forceUpdate();
  20359. },
  20360. panToolHeight(tool) {
  20361. var _tool = document.querySelectorAll('#'+tool)[0]
  20362. var _toolA = _tool ? _tool.offsetHeight : 0
  20363. var _toolC = 0
  20364. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20365. let boolean2 = (_toolA > _toolC) ? true : false
  20366. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20367. this.$forceUpdate();
  20368. },
  20369. async checkLink(url) {
  20370. console.log(url)
  20371. let _url = url
  20372. try {
  20373. const response = await fetch(url);
  20374. if(!response.ok){
  20375. _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]))
  20376. }
  20377. console.log(response.ok)
  20378. } catch (error) {
  20379. console.error('Error checking link:', error);
  20380. // console.log(false)
  20381. _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]))
  20382. }
  20383. // console.log(_url)
  20384. return _url
  20385. },
  20386. getScoreList(){
  20387. let params = {
  20388. cid: this.id,
  20389. };
  20390. this.ajax
  20391. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20392. .then((res) => {
  20393. let result = res.data;
  20394. this.scoreList.datalist = result[0];
  20395. this.scoreList.isScoreList = result[1];
  20396. })
  20397. .catch((err) => {
  20398. console.error(err);
  20399. });
  20400. },
  20401. setClassRoomHelperWidth(width){
  20402. this.classRoomHelperWidth = width
  20403. },
  20404. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20405. this.$refs.choseWorksDetailDialogRef.open({
  20406. toolType:tooc,
  20407. tType: this.tType,
  20408. toolIndex: toolIndex
  20409. });
  20410. this.changeSplitScreenBehavior({
  20411. code: 1,
  20412. form: {
  20413. toolType:tooc,
  20414. toolIndex: toolIndex,
  20415. courseType: this.courseType,
  20416. taskCount: this.taskCount,
  20417. type: 0
  20418. }
  20419. });
  20420. },
  20421. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20422. this.$refs.statisticalAnalysisRef.open({
  20423. worksStudent: this.worksStudent[toolIndex],
  20424. tType: this.tType,
  20425. toolIndex: toolIndex
  20426. });
  20427. this.changeSplitScreenBehavior({
  20428. code: 2,
  20429. form: {
  20430. toolType:4,
  20431. courseType: this.courseType,
  20432. taskCount: this.taskCount,
  20433. toolIndex: toolIndex,
  20434. type: 0
  20435. }
  20436. });
  20437. },
  20438. statisticalAnalysisRefresh(toolIndex) {
  20439. this.$refs.statisticalAnalysisRef.refreshData({
  20440. worksStudent: this.worksStudent[toolIndex],
  20441. tType: this.tType,
  20442. toolIndex: toolIndex
  20443. });
  20444. },
  20445. async splitScreenBehavior(type = 0) {
  20446. // return;
  20447. if (this.splitScreenData.loading)
  20448. return this.$message.info(this.lang.ssOperationTooFast);
  20449. if (type == 0) {
  20450. //关闭分屏
  20451. this.splitScreenData.isOpen = false;
  20452. // this.splitScreenData.userId = "";
  20453. // this.splitScreenData.uid = "";
  20454. this.splitScreenData.behavior = null;
  20455. await this.updateSplitScreenData(1);
  20456. this.$message.success(this.lang.ssSplitScreenClosed);
  20457. this.studentFreePreview(false);
  20458. this.OpenJobPreview(false);
  20459. // this.followingMode(false);
  20460. } else if (type == 1) {
  20461. //开启分屏
  20462. this.splitScreenData.isOpen = true;
  20463. this.splitScreenData.userId = this.userid;
  20464. this.splitScreenData.uid = this.splitScreenData.myUid;
  20465. this.splitScreenData.behavior = null;
  20466. let status = await this.updateSplitScreenData(0);
  20467. this.changeSplitScreenBehavior({form:{}})
  20468. if (status == 1) {
  20469. this.$message.success(this.lang.ssSplitScreenOpened);
  20470. this.studentFreePreview(false);
  20471. this.OpenJobPreview(true);
  20472. // this.followingMode(true);
  20473. } else {
  20474. this.splitScreenData.isOpen = false;
  20475. this.splitScreenData.userId = "";
  20476. this.splitScreenData.uid = "";
  20477. this.splitScreenData.behavior = null;
  20478. this.$message.success(this.lang.ssSplitScreenOpenFailed);
  20479. }
  20480. }
  20481. },
  20482. enterFullScreen() {
  20483. let element = document.documentElement;
  20484. if (element.requestFullscreen) {
  20485. element.requestFullscreen();
  20486. } else if (element.mozRequestFullScreen) { /* Firefox */
  20487. element.mozRequestFullScreen();
  20488. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  20489. element.webkitRequestFullscreen();
  20490. } else if (element.msRequestFullscreen) { /* IE/Edge */
  20491. element.msRequestFullscreen();
  20492. }
  20493. },
  20494. exitFullScreen() {
  20495. if (document.exitFullscreen) {
  20496. document.exitFullscreen();
  20497. } else if (document.mozCancelFullScreen) { /* Firefox */
  20498. document.mozCancelFullScreen();
  20499. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  20500. document.webkitExitFullscreen();
  20501. } else if (document.msExitFullscreen) { /* IE/Edge */
  20502. document.msExitFullscreen();
  20503. }
  20504. },
  20505. confirmOpen(){
  20506. this.splitScreenData.isOpen = true;
  20507. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  20508. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  20509. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  20510. this.confirmOpenDig = false
  20511. if (!document.fullscreenElement) {
  20512. this.enterFullScreen();
  20513. }
  20514. // if (this.timer2) {
  20515. // clearInterval(this.timer2);
  20516. // this.timer2 = null;
  20517. // }
  20518. // this.timer2 = setInterval(()=> {
  20519. // this.getSplitScreenData();//获取分屏数据
  20520. // }, 5000);
  20521. this.$message.success(this.lang.ssSplitScreenEnabled);
  20522. },
  20523. // 获取分屏数据
  20524. getSplitScreenData() {
  20525. // return;
  20526. // if (this.tType != 1) return;
  20527. if(this.getSplitScreenDataLoading) return
  20528. this.getSplitScreenDataLoading = true
  20529. let params = {
  20530. cid: this.id
  20531. };
  20532. this.ajax
  20533. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20534. .then(async res => {
  20535. let data = res.data[0][0]["splitScreenData"];
  20536. console.log("获取了分屏数:", data);
  20537. if (data) {
  20538. data = JSON.parse(data);
  20539. if (
  20540. !this.splitScreenData.isOpen &&
  20541. data.isOpen &&
  20542. this.splitScreenData.myUid == data.uid
  20543. ) {
  20544. this.splitScreenData.isOpen = false;
  20545. this.splitScreenData.userId = "";
  20546. this.splitScreenData.uid = "";
  20547. this.splitScreenData.behavior = null;
  20548. await this.updateSplitScreenData(1);
  20549. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20550. this.confirmOpenDig = true
  20551. this.confirmOpenDigData = data
  20552. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20553. this.splitScreenData.isOpen = false;
  20554. this.splitScreenData.userId = "";
  20555. this.splitScreenData.uid = "";
  20556. this.splitScreenData.behavior = null;
  20557. this.$message.error(this.lang.ssSplitScreenEnded);
  20558. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20559. this.splitScreenData.isOpen = true;
  20560. this.splitScreenData.uid = data.uid;
  20561. this.splitScreenData.userId = data.userId;
  20562. this.splitScreenData.behavior = data.behavior;
  20563. }
  20564. this.doSplitScreenBehavior();
  20565. } else {
  20566. if (this.splitScreenData.isOpen) {
  20567. this.splitScreenData.isOpen = false;
  20568. this.splitScreenData.userId = "";
  20569. this.splitScreenData.uid = "";
  20570. this.splitScreenData.behavior = null;
  20571. this.$message.error(this.lang.ssSplitScreenEnded);
  20572. // if (this.timer2) {
  20573. // clearInterval(this.timer2);
  20574. // this.timer2 = null;
  20575. // }
  20576. // this.timer2 = setInterval(()=> {
  20577. // this.getSplitScreenData();//获取分屏数据
  20578. // }, 5000);
  20579. this.$confirm(this.lang.ssTeacherEndedSplitScreen, this.lang.ssPrompt, {
  20580. confirmButtonText: '确定', //确认按钮的文字
  20581. showCancelButton: false, //是否显示取消按钮
  20582. showClose: false, //是否显示关闭按钮
  20583. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  20584. type: "warning",
  20585. })
  20586. .then(() => {
  20587. if (document.fullscreenElement) {
  20588. this.exitFullScreen();
  20589. }
  20590. })
  20591. .catch(() => {});
  20592. }
  20593. }
  20594. this.getSplitScreenDataLoading = false
  20595. })
  20596. .catch(e => {
  20597. this.getSplitScreenDataLoading = false
  20598. console.log("获取分屏数出错:", e);
  20599. });
  20600. },
  20601. // 操作
  20602. doSplitScreenBehavior() {
  20603. if (
  20604. this.splitScreenData.isOpen &&
  20605. this.splitScreenData.uid != this.splitScreenData.myUid
  20606. ) {
  20607. let behavior = this.splitScreenData.behavior;
  20608. if (behavior) {
  20609. // console.log('behavior',behavior);
  20610. // this.toolindex = behavior.form.toolType
  20611. // 初始状态
  20612. if (behavior.code === 99) {
  20613. //初始化
  20614. this.fullDialogVisible = false;
  20615. if(this.$refs.choseWorksDetailDialogRef.show){
  20616. this.$refs.choseWorksDetailDialogRef.close();
  20617. }
  20618. if(this.$refs.statisticalAnalysisRef.show){
  20619. this.$refs.statisticalAnalysisRef.close();
  20620. }
  20621. }
  20622. // 文件列表
  20623. if (behavior.code === 0) {
  20624. //开启内容列表弹窗
  20625. this.checkFileFull1(behavior.form.t, behavior.form.f);
  20626. }else{
  20627. this.fullDialogVisible = false;
  20628. }
  20629. // 打开工具
  20630. if (behavior.code === 1) {
  20631. //关于选择题的作业详细的操作
  20632. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20633. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20634. this.courseType = behavior.form.courseType;
  20635. this.taskCount = behavior.form.taskCount;
  20636. }
  20637. this.$nextTick(() => {
  20638. if (this.$refs.choseWorksDetailDialogRef.show) {
  20639. //已经打开了
  20640. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  20641. } else {
  20642. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  20643. }
  20644. });
  20645. }else{
  20646. this.$refs.choseWorksDetailDialogRef.close()
  20647. }
  20648. // 问卷调查
  20649. if(behavior.code === 2){
  20650. if(this.$refs.statisticalAnalysisRef.show){
  20651. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20652. }else{
  20653. this.$refs.statisticalAnalysisRef.open({
  20654. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20655. tType: this.tType,
  20656. toolIndex: behavior.form.toolIndex
  20657. });
  20658. }
  20659. }else{
  20660. this.$refs.statisticalAnalysisRef.close();
  20661. }
  20662. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  20663. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  20664. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  20665. // console.log('behavior.form',behavior.form.courseType,behavior.form.taskCount,behavior.form.toolType);
  20666. // console.log('666666',this.courseType,this.taskCount,this.toolindex);
  20667. if (behavior.form.courseType != this.courseType ||
  20668. behavior.form.taskCount != this.taskCount ||
  20669. behavior.form.toolType != this.toolindex
  20670. ) {
  20671. var a = document.scrollingElement;
  20672. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  20673. if (target) {
  20674. target.scrollIntoView(true);
  20675. setTimeout(()=>{
  20676. let scrollBody = document.querySelector('.body_student').parentElement
  20677. scrollBody.scrollTop = scrollBody.scrollTop - 100
  20678. }, 0);
  20679. // setTimeout(() => {
  20680. // a.scrollTop = 0
  20681. // }, 0);
  20682. }
  20683. }
  20684. if(this.courseType !=behavior.form.courseType){
  20685. this.courseType = behavior.form.courseType;
  20686. }
  20687. if(this.taskCount !=behavior.form.taskCount){
  20688. this.taskCount = behavior.form.taskCount;
  20689. }
  20690. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  20691. this.toolindex = behavior.form.toolType;
  20692. }
  20693. // if(behavior.form.navId){
  20694. // this.navId = behavior.form.navId
  20695. // }
  20696. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  20697. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  20698. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  20699. this.getCourseDetail()
  20700. }
  20701. this.setContent2(false)
  20702. }
  20703. } else {
  20704. }
  20705. }
  20706. },
  20707. // 修改分屏数据
  20708. updateSplitScreenData(empty = 0) {
  20709. return new Promise(resolve => {
  20710. if(this.userid!==this.courseDetail.userid){
  20711. if(!this.courseDetail.userid){
  20712. return setTimeout(()=>{
  20713. this.updateSplitScreenData(empty)
  20714. },2000)
  20715. }
  20716. return;
  20717. };
  20718. if (
  20719. this.splitScreenData.uid == this.splitScreenData.myUid &&
  20720. this.splitScreenData.userId == this.userid
  20721. ) {
  20722. this.splitScreenData.loading = true;
  20723. let params = [
  20724. {
  20725. cid: this.id,
  20726. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  20727. }
  20728. ];
  20729. this.ajax
  20730. .post(
  20731. this.$store.state.api + "update_courseSplitScreenData",
  20732. params
  20733. )
  20734. .then(res => {
  20735. this.splitScreenData.loading = false;
  20736. if (res.data == 1) {
  20737. resolve(1);
  20738. console.log("修改分屏数据成功");
  20739. }
  20740. })
  20741. .catch(e => {
  20742. this.splitScreenData.loading = false;
  20743. console.log("修改分屏数据失败", e);
  20744. resoleve(0);
  20745. });
  20746. } else if (empty == 2 && this.tType == 1) {
  20747. console.log("清空清空清空清空")
  20748. let params = [
  20749. {
  20750. cid: this.id,
  20751. nData: ""
  20752. }
  20753. ];
  20754. return this.ajax
  20755. .post(
  20756. this.$store.state.api + "update_courseSplitScreenData",
  20757. params
  20758. )
  20759. .then(_ => resolve(1))
  20760. .catch(_ => resolve(0));
  20761. } else {
  20762. return resolve(0);
  20763. }
  20764. });
  20765. },
  20766. // 修改分屏数据
  20767. changeSplitScreenBehavior(newValue) {
  20768. if (
  20769. this.splitScreenData.isOpen &&
  20770. this.splitScreenData.uid == this.splitScreenData.myUid
  20771. ) {
  20772. let _behavior = null;
  20773. if(!newValue){
  20774. _behavior = {}
  20775. }else{
  20776. _behavior = newValue
  20777. }
  20778. if(_behavior.form){
  20779. _behavior.form.taskCount = this.taskCount;
  20780. _behavior.form.courseType = this.courseType
  20781. }else{
  20782. _behavior.form = {
  20783. taskCount:this.taskCount,
  20784. courseType:this.courseType,
  20785. }
  20786. }
  20787. this.splitScreenData.behavior = _behavior;
  20788. this.updateSplitScreenData(0);
  20789. }
  20790. },
  20791. studentFreePreview(flag) {
  20792. this.IsLookOpen = flag;
  20793. this.updateLookOpen();
  20794. this.followingMode(flag)
  20795. },
  20796. OpenJobPreview(flag) {
  20797. this.sIsOpen = flag;
  20798. this.updateSLook();
  20799. },
  20800. followingMode(flag) {
  20801. this.IsFollow = flag;
  20802. this.updateFollow();
  20803. },
  20804. StulookMode(flag) {
  20805. this.IsStulook = flag;
  20806. this.updateIsStulook();
  20807. },
  20808. doSyncClassData(){
  20809. if(this.courseDetail.userid == this.userid && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  20810. let endTime = new Date().toLocaleString("zh-CN", {
  20811. hour12: false,
  20812. timeZone: "Asia/Shanghai"
  20813. }).replace(/\//g, "-")
  20814. let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
  20815. this.syncClassData({
  20816. courseId: this.id,
  20817. title: this.courseDetail.title,
  20818. courseGrade: this.tcid2 ? this.tcid2 : '',
  20819. courseTime: courseTime,
  20820. startTime: this.startTime,
  20821. endTime: endTime,
  20822. })
  20823. console.log('同步数据')
  20824. }
  20825. },
  20826. },
  20827. directives: {
  20828. // 使用局部注册指令的方式
  20829. resize: {
  20830. // 指令的名称
  20831. bind(el, binding) {
  20832. // el为绑定的元素,binding为绑定给指令的对象
  20833. let width = "",
  20834. height = "";
  20835. function isReize() {
  20836. const style = document.defaultView.getComputedStyle(el);
  20837. if (width !== style.width || height !== style.height) {
  20838. binding.value(); // 关键
  20839. }
  20840. width = style.width;
  20841. height = style.height;
  20842. }
  20843. el.__vueSetInterval__ = setInterval(isReize, 300);
  20844. },
  20845. unbind(el) {
  20846. clearInterval(el.__vueSetInterval__);
  20847. },
  20848. },
  20849. autoHeight: {
  20850. update(el, binding) {
  20851. const { value } = binding
  20852. if (value && typeof value === 'number') {
  20853. el.style.height = `${value}px`
  20854. } else {
  20855. el.style.height = 'auto'
  20856. }
  20857. },
  20858. componentUpdated(el) {
  20859. el.style.height = `${el.scrollHeight}px`
  20860. },
  20861. },
  20862. },
  20863. beforeDestroy() {
  20864. window.onresize = null;
  20865. clearInterval(this.timer);
  20866. this.timer = null;
  20867. clearInterval(this.timer2);
  20868. this.timer2 = null;
  20869. clearInterval(this.opertimer);
  20870. this.opertimer = null;
  20871. this.updateSplitScreenData(1);
  20872. this.doSyncClassData();
  20873. },
  20874. computed: {
  20875. renderedFormula2() {
  20876. return function(val){
  20877. if (this.lang.lang == 'com') {
  20878. return val;
  20879. }
  20880. // 处理换行符和HTML实体
  20881. const normalized = val
  20882. .replace(/&amp;/g, '&')
  20883. .replace(/<br\/?>/g, '\n');
  20884. // 匹配行内公式($...$)和块级公式($$...$$)
  20885. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  20886. try {
  20887. return katex.renderToString(expr.trim(), {
  20888. displayMode: false,
  20889. throwOnError: false,
  20890. macros: {
  20891. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  20892. }
  20893. });
  20894. } catch (e) {
  20895. console.warn('KaTeX渲染失败:', e);
  20896. return `<span style="color:red">${expr}</span>`;
  20897. }
  20898. })
  20899. }
  20900. },
  20901. renderedFormula() {
  20902. return function(val){
  20903. if (this.lang.lang == 'com') {
  20904. return val;
  20905. }
  20906. try {
  20907. // 判断是否含有HTML标签,<tag ...>...</tag>
  20908. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  20909. if (!hasTag) {
  20910. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  20911. // 纯文本,整体渲染
  20912. try {
  20913. return katex.renderToString(val.trim(), {
  20914. throwOnError: false,
  20915. strict: false,
  20916. output: "htmlAndMathml"
  20917. });
  20918. } catch (e) {
  20919. return val; // 渲染失败原样输出
  20920. }
  20921. } else {
  20922. // 有标签,对每个标签内容渲染
  20923. return val.replace(
  20924. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  20925. (match, tag, attrs, inner) => {
  20926. let html;
  20927. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  20928. try {
  20929. html = katex.renderToString(inner.trim(), {
  20930. throwOnError: false,
  20931. strict: false,
  20932. output: "htmlAndMathml"
  20933. });
  20934. } catch (e) {
  20935. html = inner;
  20936. }
  20937. return `<${tag}${attrs}>${html}</${tag}>`;
  20938. }
  20939. );
  20940. }
  20941. } catch (e) {
  20942. console.error('KaTeX渲染错误:', e);
  20943. return val;
  20944. }
  20945. }
  20946. },
  20947. isAndroid() {
  20948. return /Android/i.test(navigator.userAgent);
  20949. },
  20950. contentConvent() {
  20951. return function (c) {
  20952. return c
  20953. ? c
  20954. .replaceAll(/\r\n/g, "<br/>")
  20955. .replaceAll(/\n/g, "<br/>")
  20956. .replaceAll(/\s/g, "&nbsp")
  20957. : "";
  20958. };
  20959. },
  20960. commentRight(){
  20961. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  20962. return "35px";
  20963. }
  20964. return `calc(${this.classRoomHelperWidth} + 5px)`
  20965. // if(this.$refs["classRoomHelperRef"].type==0){
  20966. // return "100px";
  20967. // }else if(this.$refs["classRoomHelperRef"].type==1){
  20968. // return "502px"
  20969. // }else{
  20970. // return "0px"
  20971. // }
  20972. },
  20973. checkUpload() {
  20974. return function () {
  20975. var studentK = [];
  20976. if (this.plworkFile.length > 0) {
  20977. for (var z = 0; z < this.plworkFile.length; z++) {
  20978. studentK.push(this.plworkFile[z].username);
  20979. }
  20980. studentK = studentK.join(",");
  20981. }
  20982. var a = this.uploadStudentJuri.filter((el) => {
  20983. return studentK.indexOf(el.userid) == -1;
  20984. });
  20985. return a;
  20986. };
  20987. },
  20988. getSName() {
  20989. return function (name) {
  20990. var check = name;
  20991. this.uploadStudentJuri.forEach((el) => {
  20992. if (el.userid == check) {
  20993. check = el.name ? el.name : el.username;
  20994. }
  20995. });
  20996. return check;
  20997. };
  20998. },
  20999. getImgList() {
  21000. return function (val) {
  21001. let srcList = []; // 定义一个数组用来接收后面的img地址
  21002. val.replace(
  21003. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21004. function (match, capture) {
  21005. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21006. srcList.push(capture);
  21007. }
  21008. );
  21009. return srcList;
  21010. };
  21011. },
  21012. retrnToolHeight(){
  21013. return function (tool) {
  21014. var _tool = document.querySelectorAll('#'+tool)[0]
  21015. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21016. };
  21017. },
  21018. Correct() {
  21019. return function (c) {
  21020. let w = "";
  21021. let a = this.correctWord;
  21022. for(var k = 0;k<a.length;k++){
  21023. //diffWordsWithSpace
  21024. if(a.length > 1){
  21025. if(a[k].added == true){
  21026. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21027. }else if(a[k].removed == true){
  21028. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21029. }else{
  21030. w += '<span>' + a[k].value + '</span>';
  21031. }
  21032. }else{
  21033. w = c
  21034. }
  21035. //diffChars方法
  21036. // if(a.length > 1){
  21037. // if(w == ""){
  21038. // if(a[k].added == true){
  21039. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21040. // }else if(a[k].removed == true){
  21041. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21042. // }
  21043. // }else{
  21044. // if(k == a.length - 1){
  21045. // if(a[k].added == true){
  21046. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21047. // }else if(a[k].removed == true){
  21048. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21049. // }
  21050. // }else{
  21051. // if(a[k].added == true){
  21052. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21053. // }else if(a[k].removed == true){
  21054. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21055. // }
  21056. // }
  21057. // }
  21058. // }else{
  21059. // w = c
  21060. // }
  21061. }
  21062. c = w;
  21063. return c;
  21064. };
  21065. },
  21066. },
  21067. mounted() {
  21068. this.setoTime("1");
  21069. this.startTime = new Date().toLocaleString("zh-CN", {
  21070. hour12: false,
  21071. timeZone: "Asia/Shanghai"
  21072. }).replace(/\//g, "-");
  21073. // if (this.tType == 1) {
  21074. // // 开局关闭学生查看内容
  21075. // this.StulookMode(false)
  21076. // // 开局打开跟随模式
  21077. // this.followingMode(true)
  21078. // }
  21079. document.body.addEventListener("click", (e) => {
  21080. if (this.isUpdateToolDetail1) {
  21081. this.updateToolDetail(this.toolDetailIndex);
  21082. }
  21083. });
  21084. setTimeout(() => {
  21085. this.doSyncClassData();
  21086. }, 1000);
  21087. this.getCode2()
  21088. this.setOperationTime();
  21089. this.selectEva();
  21090. this.getCourseDetail(10);
  21091. this.selectCount();
  21092. this.getHomeWork();
  21093. this.selectUser();
  21094. this.getAIJ();
  21095. this.updateSplitScreenData(2);
  21096. this.splitScreenData.myUid = uuidv4();
  21097. this.contentDialog = false;
  21098. this.setContent2(true);
  21099. if (this.tType == 4) {
  21100. this.pzDialog = true;
  21101. this.selectPz();
  21102. }
  21103. // 获取评分列表
  21104. this.getScoreList()
  21105. document.scrollingElement.scrollTop = 0;
  21106. window.addEventListener("resize", () => {
  21107. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21108. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21109. if (this.showType == 2 || this.showType == 3) {
  21110. document.getElementsByClassName("navBox")[0].style.height =
  21111. a - 40 + 0+ "px";
  21112. } else {
  21113. document.getElementsByClassName("navBox")[0].style.height =
  21114. a - 40 + "px";
  21115. }
  21116. });
  21117. // let _this = this;
  21118. // setTimeout(() => {
  21119. // _this.vedioTime = [];
  21120. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21121. // _this.vedioTime[i] = document.getElementsByClassName(
  21122. // "vjs-duration-display"
  21123. // )[i].textContent;
  21124. // }
  21125. // }, 1000);
  21126. try{
  21127. if (this.screenType == 2) {
  21128. window.topU.postMessage({ allScreen: 4 }, "*");
  21129. } else if (this.screenType == 3) {
  21130. window.topU.postMessage({ allScreen: 5 }, "*");
  21131. } else if (this.screenType == 1) {
  21132. window.topU.postMessage({ allScreen: 6 }, "*");
  21133. }
  21134. }catch(e){
  21135. console.log(e)
  21136. }
  21137. },
  21138. };
  21139. </script>
  21140. <style scoped>
  21141. @media screen and (max-width: 1280px) {
  21142. /* .courseIndex > div:first-child(2) {
  21143. width: 15% !important;
  21144. } */
  21145. /* .navText {
  21146. width: 120px !important;
  21147. } */
  21148. .evaCss {
  21149. flex-direction: column !important;
  21150. align-items: center !important;
  21151. }
  21152. .elist_input {
  21153. width: 90% !important;
  21154. }
  21155. .dialog_diy1 >>> .el-dialog {
  21156. width: 100% !important;
  21157. }
  21158. .rightWidthCss {
  21159. width: 100% !important;
  21160. }
  21161. .dialog_diy3 >>> .el-dialog {
  21162. width: 100% !important;
  21163. }
  21164. .addToolCss {
  21165. right: 0 !important;
  21166. width: 100% !important;
  21167. min-width: unset !important;
  21168. }
  21169. }
  21170. .evaCssMax {
  21171. flex-direction: column !important;
  21172. align-items: center !important;
  21173. }
  21174. .dialog_diy >>> .el-dialog {
  21175. margin-top: 10vh !important;
  21176. }
  21177. .body_student {
  21178. width: 77%;
  21179. height: 100%;
  21180. position: absolute;
  21181. left: 22%;
  21182. top: 0;
  21183. }
  21184. .student_head {
  21185. width: 100%;
  21186. margin: 20px auto 0;
  21187. padding-bottom: 20px;
  21188. display: flex;
  21189. flex-direction: column;
  21190. flex-wrap: nowrap;
  21191. align-items: flex-start;
  21192. justify-content: flex-start;
  21193. }
  21194. .pb_left {
  21195. width: 15%;
  21196. margin-right: 10px;
  21197. background: rgb(255, 255, 255);
  21198. position: fixed;
  21199. height: calc(100% - 40px);
  21200. border-radius: 20px;
  21201. padding-bottom: 15px;
  21202. box-sizing: border-box;
  21203. }
  21204. .wheel > img,
  21205. .project > img,
  21206. .star > img,
  21207. .evaluate > img,
  21208. .up_photo > img,
  21209. .chapter_add > img,
  21210. .deleteWord > img,
  21211. .question > img,
  21212. .homework > img {
  21213. width: 100%;
  21214. height: 100%;
  21215. }
  21216. .upCover > img {
  21217. width: 131px;
  21218. height: 69px;
  21219. object-fit: cover;
  21220. }
  21221. .upCover {
  21222. width: calc(100% / 3.5);
  21223. position: relative;
  21224. margin: 0 15px 10px 0;
  21225. display: flex;
  21226. flex-direction: column;
  21227. flex-wrap: nowrap;
  21228. justify-content: center;
  21229. align-content: center;
  21230. align-items: center;
  21231. height: fit-content;
  21232. }
  21233. .upCover2 {
  21234. width: 100%;
  21235. position: relative;
  21236. margin: 0 15px 10px 0;
  21237. display: flex;
  21238. flex-direction: column;
  21239. flex-wrap: nowrap;
  21240. justify-content: center;
  21241. align-content: center;
  21242. align-items: center;
  21243. }
  21244. .upCover2 > img {
  21245. width: 100%;
  21246. height: 90px;
  21247. object-fit: contain;
  21248. }
  21249. .chapter_add {
  21250. width: 120px;
  21251. position: relative;
  21252. text-align: center;
  21253. }
  21254. .isAddThings {
  21255. margin-top: 20px;
  21256. position: relative;
  21257. text-align: center;
  21258. background: #f7f8fa;
  21259. height: 90px;
  21260. width: 90px;
  21261. display: flex;
  21262. flex-direction: column;
  21263. justify-content: center;
  21264. }
  21265. .deleteWord {
  21266. width: 22px;
  21267. height: 22px;
  21268. position: absolute;
  21269. right: -5px;
  21270. top: -5px;
  21271. cursor: pointer;
  21272. }
  21273. .box_course {
  21274. /* width: 60%; */
  21275. width: calc(100% - 300px);
  21276. }
  21277. .wheel {
  21278. width: 100%;
  21279. /* height: 100%; */
  21280. height: 650px;
  21281. }
  21282. .right_box {
  21283. display: flex;
  21284. flex-direction: column;
  21285. margin-left: 30px;
  21286. justify-content: space-around;
  21287. }
  21288. .right_box_title {
  21289. font-size: 23px;
  21290. }
  21291. .people {
  21292. display: flex;
  21293. }
  21294. .student_body {
  21295. width: 100%;
  21296. margin: 0 auto;
  21297. margin-top: 10px;
  21298. padding: 0 0 20px;
  21299. }
  21300. .study_top {
  21301. margin-top: 100px;
  21302. width: 100%;
  21303. height: auto;
  21304. padding-bottom: 20px;
  21305. margin-left: 2px;
  21306. min-height: 90%;
  21307. }
  21308. .study_top .checkbox {
  21309. display: flex;
  21310. align-items: center;
  21311. padding: 15px 0 15px 30px;
  21312. flex: 0 0 auto;
  21313. font-weight: bold;
  21314. border-bottom: 1px solid #eee;
  21315. }
  21316. .study_top .check {
  21317. padding-bottom: 5px;
  21318. text-align: center;
  21319. cursor: pointer;
  21320. height: 30px;
  21321. box-sizing: border-box;
  21322. display: flex;
  21323. }
  21324. .study_top .checked {
  21325. border-bottom: 4px solid #3fc6a0;
  21326. padding-bottom: 5px;
  21327. color: #3fc6a0;
  21328. display: flex;
  21329. height: 35px;
  21330. }
  21331. .study_top .checked > div,
  21332. .study_top .check > div {
  21333. margin-right: 5px;
  21334. }
  21335. .videoTop {
  21336. display: flex;
  21337. flex-direction: row;
  21338. justify-content: space-between;
  21339. background: #fff;
  21340. align-items: center;
  21341. width: 95%;
  21342. padding: 20px;
  21343. }
  21344. .filebox {
  21345. display: flex;
  21346. flex-wrap: wrap;
  21347. flex-direction: column;
  21348. padding: 0 0 5px;
  21349. position: relative;
  21350. }
  21351. .filebox:before {
  21352. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21353. position: absolute;
  21354. top: 20px;
  21355. left: 13px;
  21356. border-left: 2px dotted #cad1dc;
  21357. height: calc(100% - 15px);
  21358. }
  21359. .toolHeng2 > div:last-child::before {
  21360. height: calc(100% - 43px);
  21361. }
  21362. .filebox .tooldetail {
  21363. width: calc(100%);
  21364. margin: 0px 12px;
  21365. padding: 12px;
  21366. line-height: 30px;
  21367. word-break: break-word;
  21368. background: #ffffff;
  21369. border-radius: 8px 8px 8px 8px;
  21370. opacity: 1;
  21371. border: 1px solid #cad1dc;
  21372. overflow:hidden;
  21373. box-sizing:border-box;
  21374. }
  21375. .file {
  21376. display: flex;
  21377. flex-direction: column;
  21378. align-items: center;
  21379. justify-content: center;
  21380. cursor: pointer;
  21381. width: 200px;
  21382. }
  21383. .file div {
  21384. margin-top: 10px;
  21385. width: 150px;
  21386. text-align: center;
  21387. overflow: hidden;
  21388. white-space: nowrap;
  21389. text-overflow: ellipsis;
  21390. }
  21391. .media {
  21392. display: flex;
  21393. flex-direction: column;
  21394. align-items: center;
  21395. justify-content: center;
  21396. margin: 0 20px 20px 0;
  21397. cursor: pointer;
  21398. margin: 12px 0 5px 15px;
  21399. overflow: hidden;
  21400. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21401. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21402. box-sizing: border-box;
  21403. }
  21404. .media img {
  21405. height: 90px;
  21406. width: 160px;
  21407. object-fit: cover;
  21408. }
  21409. .media .title {
  21410. padding: 5px;
  21411. text-align: left;
  21412. width: 100%;
  21413. box-sizing: border-box;
  21414. }
  21415. .media .btn {
  21416. width: 100%;
  21417. height: 35px;
  21418. line-height: 35px;
  21419. color: #fff;
  21420. background: #606060;
  21421. text-align: center;
  21422. overflow: hidden;
  21423. white-space: nowrap;
  21424. text-overflow: ellipsis;
  21425. }
  21426. .detail_content_top {
  21427. width: 100%;
  21428. padding: 25px 0 25px 0;
  21429. }
  21430. .detail_title {
  21431. text-align: center;
  21432. font-size: 24px;
  21433. }
  21434. .detail_time {
  21435. font-size: 13px;
  21436. padding: 15px 0 0 40px;
  21437. }
  21438. .detail_content {
  21439. line-height: 2pc;
  21440. width: 90%;
  21441. margin: 0 auto;
  21442. padding-top: 30px;
  21443. text-indent: 30px;
  21444. overflow: auto;
  21445. height: 200px;
  21446. }
  21447. .score_box >>> .el-rate {
  21448. margin-left: 10px;
  21449. }
  21450. .dialog_change >>> .el-dialog {
  21451. border-radius: 5px;
  21452. }
  21453. .dialog_change >>> .el-dialog__header {
  21454. background: #f2f2f2;
  21455. text-align: center;
  21456. }
  21457. .dialog_change >>> .el-dialog__title {
  21458. line-height: 5px;
  21459. }
  21460. .dialog_change >>> .el-dialog__body {
  21461. background: #fff;
  21462. padding: 10px 20px;
  21463. }
  21464. .score_box {
  21465. display: flex;
  21466. align-items: center;
  21467. margin-bottom: 18px;
  21468. margin-top: 20px;
  21469. }
  21470. .up_photo {
  21471. width: 120px;
  21472. cursor: pointer;
  21473. margin-top: 10px;
  21474. }
  21475. .up_photo2 {
  21476. width: 180px;
  21477. box-sizing: border-box;
  21478. min-width: 180px;
  21479. height: 180px;
  21480. max-height: 180px;
  21481. min-height: 180px;
  21482. cursor: pointer;
  21483. display: flex;
  21484. flex-direction: column;
  21485. align-items: center;
  21486. justify-content: center;
  21487. background: rgb(242, 246, 255);
  21488. /* padding: 25px; */
  21489. margin-bottom: 10px;
  21490. }
  21491. .up_photo2 img {
  21492. width: 50%;
  21493. height: auto;
  21494. }
  21495. .up_photo2 span {
  21496. color: #898989;
  21497. }
  21498. .plworkBox {
  21499. display: flex;
  21500. align-items: center;
  21501. margin-top: 10px;
  21502. flex-wrap: wrap;
  21503. }
  21504. .upload_send {
  21505. margin: 30px auto 30px;
  21506. width: 60%;
  21507. background: #3681fc;
  21508. text-align: center;
  21509. height: 35px;
  21510. line-height: 35px;
  21511. color: #fff;
  21512. border-radius: 5px;
  21513. cursor: pointer;
  21514. }
  21515. .marginT {
  21516. margin-top: 20px;
  21517. }
  21518. .cd_content_steps {
  21519. display: flex;
  21520. width: 90%;
  21521. justify-content: space-around;
  21522. border-top: 1px solid #eeeeee;
  21523. }
  21524. .cd_steps_box {
  21525. display: flex;
  21526. justify-content: center;
  21527. align-items: center;
  21528. flex-direction: column;
  21529. cursor: pointer;
  21530. }
  21531. .first {
  21532. display: flex;
  21533. align-items: center;
  21534. margin: 15px 0 20px 0;
  21535. font-size: 20px;
  21536. }
  21537. .first > div:nth-child(2) {
  21538. font-size: 16px !important;
  21539. padding-left: 10px;
  21540. line-height: 26px;
  21541. box-sizing: border-box;
  21542. }
  21543. .blue_box_one {
  21544. text-align: center;
  21545. color: #fff;
  21546. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  21547. border-radius: 7px;
  21548. margin: 10px;
  21549. cursor: pointer;
  21550. width: 95%;
  21551. height: 45px;
  21552. display: flex;
  21553. flex-direction: row;
  21554. justify-content: flex-start;
  21555. align-items: center;
  21556. }
  21557. .blue_box_one > div:nth-child(1) {
  21558. line-height: 30px;
  21559. margin: 0 5px 0 10px;
  21560. width: 30%;
  21561. min-width: 70px;
  21562. border-radius: 4px;
  21563. }
  21564. .blue_box_one > div:nth-child(2) {
  21565. white-space: nowrap;
  21566. text-overflow: ellipsis;
  21567. overflow: hidden;
  21568. word-break: break-all;
  21569. width: 70%;
  21570. text-align: left;
  21571. margin-right: 10px;
  21572. max-width: calc(100% - 85px);
  21573. }
  21574. .blue_box_one > div:nth-child(2):hover {
  21575. overflow: hidden;
  21576. text-overflow: ellipsis;
  21577. white-space: nowrap;
  21578. cursor: pointer;
  21579. }
  21580. .upFile {
  21581. margin: 0 auto;
  21582. width: 120px;
  21583. background: #3681fc;
  21584. color: #fff;
  21585. height: 30px;
  21586. text-align: center;
  21587. line-height: 30px;
  21588. border-radius: 5px;
  21589. font-size: 14px;
  21590. cursor: pointer;
  21591. }
  21592. .courseTitle {
  21593. width: 85%;
  21594. margin: 10px auto 26px auto;
  21595. display: flex;
  21596. flex-direction: row;
  21597. align-items: center;
  21598. justify-content: space-between;
  21599. text-align: center;
  21600. }
  21601. .courseTitle .ctitle {
  21602. font-size: 20px;
  21603. font-weight: bold;
  21604. color: #0e1e33;
  21605. white-space: nowrap;
  21606. overflow: hidden;
  21607. text-overflow: ellipsis;
  21608. }
  21609. .inviteBox {
  21610. font-size: 14px;
  21611. /* margin-top: 5px; */
  21612. color: #00000099;
  21613. text-align: center;
  21614. }
  21615. .courseTitle >>> .el-tooltip {
  21616. width: 100%;
  21617. white-space: nowrap;
  21618. overflow: hidden;
  21619. text-overflow: ellipsis;
  21620. word-break: break-word;
  21621. }
  21622. .ml {
  21623. margin-left: 20px;
  21624. color: #5b7dba;
  21625. border-left: 3px solid #5b7dba;
  21626. padding-left: 5px;
  21627. font-weight: bold;
  21628. }
  21629. .return {
  21630. width: 2rem;
  21631. height: 2rem;
  21632. cursor: pointer;
  21633. }
  21634. .return > img {
  21635. width: 100%;
  21636. height: 100%;
  21637. }
  21638. .returnBtn {
  21639. /* width: 86px;
  21640. height: 36px; */
  21641. background: #3681fc;
  21642. border-radius: 4px;
  21643. color: #fff;
  21644. text-align: center;
  21645. padding: 8px 10px;
  21646. /* line-height: 36px; */
  21647. margin-right: 20px;
  21648. cursor: pointer;
  21649. font-size: 14px;
  21650. font-weight: 400;
  21651. display: flex;
  21652. flex-direction: row;
  21653. flex-wrap: nowrap;
  21654. align-items: center;
  21655. justify-content: center;
  21656. }
  21657. .reBtnIcon,
  21658. .commentIcon,
  21659. .vedioIcon,
  21660. .vedioIcon1 {
  21661. /* width: 36px; */
  21662. height: 36px;
  21663. border-radius: 4px;
  21664. position: relative;
  21665. /* background: #e0eafb; */
  21666. background: #0061ff;
  21667. cursor: pointer;
  21668. margin-right: 12px;
  21669. display: flex;
  21670. align-items: center;
  21671. padding: 0 10px;
  21672. box-sizing: border-box;
  21673. font-size: 14px;
  21674. color: #fff;
  21675. }
  21676. .reBtnIcon::before,
  21677. .commentIcon::before,
  21678. .vedioIcon::before,
  21679. .vedioIcon1::before {
  21680. content: "";
  21681. display: block;
  21682. background-size: 100% 100%;
  21683. background-repeat: no-repeat;
  21684. width: 20px;
  21685. height: 20px;
  21686. margin-right: 5px;
  21687. /* position: absolute; */
  21688. /* top: 8px;
  21689. left: 8px; */
  21690. }
  21691. .vedioIcon1 {
  21692. background: #f63564;
  21693. }
  21694. .reBtnIcon::before {
  21695. background-image: url("../assets/icon/newIcons/refresh.png");
  21696. }
  21697. .commentIcon::before {
  21698. background-image: url("../assets/icon/newIcons/comment.png");
  21699. }
  21700. .vedioIcon::before {
  21701. background-image: url("../assets/icon/newIcons/transcribe.png");
  21702. }
  21703. .vedioIcon1::before {
  21704. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  21705. background-image: url("../assets/icon/newIcons/transcribe.png");
  21706. }
  21707. .tool {
  21708. display: flex;
  21709. flex-direction: column;
  21710. flex-wrap: nowrap;
  21711. width: 13%;
  21712. margin: 0 30px;
  21713. align-items: center;
  21714. position: relative;
  21715. padding: 10px 25px;
  21716. cursor: pointer;
  21717. }
  21718. .whiteBIcon {
  21719. width: 150px;
  21720. }
  21721. .whiteBIcon > img {
  21722. width: 100%;
  21723. height: 100%;
  21724. }
  21725. .mask {
  21726. background-color: rgba(0, 0, 0, 0);
  21727. position: fixed;
  21728. top: 0;
  21729. left: 0;
  21730. width: 100%;
  21731. height: 100%;
  21732. z-index: 20000;
  21733. display: flex;
  21734. align-items: center;
  21735. justify-content: center;
  21736. }
  21737. .progressBox {
  21738. width: 500px;
  21739. height: 180px;
  21740. background: #fff;
  21741. border-radius: 10px;
  21742. box-shadow: 0 0 6px 1px #bfbfbf;
  21743. display: flex;
  21744. align-items: center;
  21745. justify-content: center;
  21746. flex-direction: column;
  21747. position: relative;
  21748. color: #6c6c6c;
  21749. }
  21750. .progressBox >>> .el-progress-bar__outer {
  21751. background-color: #d1dfff !important;
  21752. }
  21753. .progressBox .lbox {
  21754. height: 50px;
  21755. font-size: 19px;
  21756. display: flex;
  21757. align-items: center;
  21758. color: #747474;
  21759. }
  21760. .progressBox .lbox img {
  21761. width: 40px;
  21762. margin-right: 20px;
  21763. }
  21764. .closeCss {
  21765. position: absolute;
  21766. top: 8px;
  21767. right: 8px;
  21768. cursor: pointer;
  21769. width: 20px;
  21770. height: 20px;
  21771. }
  21772. .closeCss > img {
  21773. width: 100%;
  21774. height: 100%;
  21775. }
  21776. .uploadVedio {
  21777. display: flex;
  21778. flex-direction: column;
  21779. flex-wrap: nowrap;
  21780. justify-content: center;
  21781. align-items: center;
  21782. margin: 0 15px 10px 0;
  21783. }
  21784. .uploadVedio > img {
  21785. width: 30px;
  21786. height: 30px;
  21787. }
  21788. .uploadVedio > span {
  21789. white-space: nowrap;
  21790. overflow: hidden;
  21791. text-overflow: ellipsis;
  21792. width: 75px;
  21793. margin-top: 7px;
  21794. }
  21795. .picName {
  21796. white-space: nowrap;
  21797. overflow: hidden;
  21798. text-overflow: ellipsis;
  21799. width: 75px;
  21800. margin-top: 7px;
  21801. }
  21802. .new_top {
  21803. display: flex;
  21804. background: #fff;
  21805. flex-direction: row;
  21806. justify-content: flex-start;
  21807. align-items: center;
  21808. height: 60px;
  21809. position: fixed;
  21810. top: 20px;
  21811. left: 22%;
  21812. width: 77%;
  21813. z-index: 999;
  21814. border-radius: 12px 12px 0 0;
  21815. border-bottom: 1px solid #cad1dc;
  21816. padding: 10px 0;
  21817. }
  21818. .new_topFixed {
  21819. width: 100%;
  21820. height: 40px;
  21821. position: fixed;
  21822. top: 0px;
  21823. display: block;
  21824. background: #f2f2f2;
  21825. z-index: 998;
  21826. }
  21827. .before {
  21828. position: absolute;
  21829. background: #c3dad4;
  21830. width: 6px;
  21831. height: 100%;
  21832. }
  21833. .courseIndex {
  21834. display: flex;
  21835. flex-direction: row;
  21836. align-items: center;
  21837. width: calc(100% - 745px);
  21838. }
  21839. .courseIndex > div:nth-child(1) {
  21840. margin: 0 0 0 10px;
  21841. font-size: 20px;
  21842. min-width: 100px;
  21843. font-weight: bold;
  21844. border-left: 4px solid #3363b9;
  21845. height: 32px;
  21846. text-align: center;
  21847. line-height: 35px;
  21848. }
  21849. .courseIndex > div:nth-child(2) {
  21850. font-size: 20px;
  21851. /* width: 300px; */
  21852. max-width: calc(100% - 105px);
  21853. white-space: nowrap;
  21854. overflow: hidden;
  21855. text-overflow: ellipsis;
  21856. }
  21857. .courseIndex > div:nth-child(3) {
  21858. border-bottom: 1px solid #d7d7d7;
  21859. padding-bottom: 5px;
  21860. background: #3681fc;
  21861. width: 55px;
  21862. min-width: 55px;
  21863. border-radius: 5px;
  21864. color: #fff;
  21865. text-align: center;
  21866. height: 20px;
  21867. line-height: 26px;
  21868. font-size: 14px;
  21869. margin: 0 0 0 10px;
  21870. }
  21871. .course_text {
  21872. padding: 20px 0 0 15px;
  21873. text-indent: 30px;
  21874. width: 80%;
  21875. min-height: 20px;
  21876. }
  21877. .vedioList {
  21878. background: #f2f2f2;
  21879. border: 1px solid #ececec;
  21880. /* width: 38.8%; */
  21881. /* width: 300px; */
  21882. width: 100%;
  21883. height: 445px;
  21884. border-radius: 10px;
  21885. overflow: hidden;
  21886. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  21887. }
  21888. .vedioNav {
  21889. margin: 10px 0 0 15px;
  21890. border-bottom: 1px solid #d7d7d7;
  21891. padding-bottom: 5px;
  21892. background: #3681fc;
  21893. width: 55px;
  21894. min-width: 55px;
  21895. border-radius: 5px;
  21896. color: #fff;
  21897. text-align: center;
  21898. height: 20px;
  21899. line-height: 26px;
  21900. font-size: 14px;
  21901. }
  21902. .queTop {
  21903. display: flex;
  21904. padding: 20px 0 20px 30px;
  21905. width: 100%;
  21906. flex-direction: row;
  21907. justify-content: flex-start;
  21908. align-items: self-start;
  21909. box-sizing: border-box;
  21910. }
  21911. .queTopTitle {
  21912. display: flex;
  21913. flex-direction: row;
  21914. flex-wrap: nowrap;
  21915. align-items: center;
  21916. font-weight: bold;
  21917. font-size: 20px;
  21918. color: rgb(14, 30, 51);
  21919. }
  21920. .queTopTitle::before {
  21921. content: "";
  21922. width: 2px;
  21923. height: 22px;
  21924. background: #3681fc;
  21925. border-radius: 3px;
  21926. display: block;
  21927. margin: 2px 6px 0 0;
  21928. }
  21929. .queTopRight {
  21930. display: flex;
  21931. flex-direction: row;
  21932. flex-wrap: nowrap;
  21933. align-items: center;
  21934. }
  21935. .queTopClose {
  21936. margin-right: 20px;
  21937. cursor: pointer;
  21938. position: relative;
  21939. display: flex;
  21940. }
  21941. .closeImg,
  21942. .openImg {
  21943. width: 25px;
  21944. height: 25px;
  21945. position: absolute;
  21946. left: -20px;
  21947. top: -1px;
  21948. }
  21949. .closeImg > img,
  21950. .openImg > img {
  21951. width: 100%;
  21952. height: 100%;
  21953. }
  21954. .question {
  21955. width: 40px;
  21956. margin-right: 10px;
  21957. margin-top: 7px;
  21958. flex-shrink: 0;
  21959. }
  21960. .queTitle {
  21961. margin-left: 5px;
  21962. font-size: 25px;
  21963. display: flex;
  21964. /* align-items: center; */
  21965. }
  21966. .queTitle > div:nth-child(1){
  21967. width: 120px;
  21968. flex-shrink: 0;
  21969. }
  21970. .addEditor {
  21971. width: 100px;
  21972. height: 30px;
  21973. background: #42cda6;
  21974. color: #fff;
  21975. border-radius: 5px;
  21976. text-align: center;
  21977. line-height: 30px;
  21978. box-shadow: 1px 3px 6px 1px #bfbfbf;
  21979. cursor: pointer;
  21980. }
  21981. /* .vedioName {
  21982. cursor: pointer;
  21983. margin: 0px 0px 10px 5px;
  21984. white-space: nowrap;
  21985. overflow: hidden;
  21986. text-overflow: ellipsis;
  21987. width: 100%;
  21988. } */
  21989. .vedioTime {
  21990. width: 35px;
  21991. position: absolute;
  21992. color: #fff;
  21993. bottom: 0px;
  21994. right: 0px;
  21995. text-align: center;
  21996. background: #46411f;
  21997. height: 20px;
  21998. font-size: 14px;
  21999. line-height: 20px;
  22000. }
  22001. .homework {
  22002. width: 200px;
  22003. display: flex;
  22004. flex-direction: column;
  22005. flex-wrap: nowrap;
  22006. align-items: center;
  22007. cursor: pointer;
  22008. }
  22009. .homebox {
  22010. display: flex;
  22011. flex-wrap: wrap;
  22012. flex-direction: row;
  22013. justify-content: flex-start;
  22014. align-items: center;
  22015. padding: 15px 0;
  22016. }
  22017. .isChooseActive {
  22018. color: #3681fc !important;
  22019. font-weight: bold !important;
  22020. }
  22021. .chooseWho {
  22022. display: flex;
  22023. width: 100%;
  22024. flex-direction: row;
  22025. flex-wrap: nowrap;
  22026. justify-content: flex-start;
  22027. padding-bottom: 10px;
  22028. }
  22029. .chooseWho > div {
  22030. cursor: pointer;
  22031. padding-bottom: 10px;
  22032. margin: 0 30px 0 0;
  22033. font-weight: 400;
  22034. color: #0e1e33;
  22035. }
  22036. .addPoint > div > img {
  22037. cursor: pointer;
  22038. width: 85px;
  22039. border-radius: 15px;
  22040. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22041. }
  22042. .addPoint > div {
  22043. display: flex;
  22044. flex-direction: column;
  22045. flex-wrap: nowrap;
  22046. align-items: center;
  22047. }
  22048. .isBorder > div {
  22049. margin: 0 0 10px 0;
  22050. align-items: flex-start !important;
  22051. }
  22052. .noiframeBox {
  22053. display: flex;
  22054. flex-wrap: wrap;
  22055. }
  22056. .iframeBox iframe {
  22057. width: 100%;
  22058. height: 800px;
  22059. border: none;
  22060. margin-bottom: 20px;
  22061. border: 1px solid #ccc;
  22062. }
  22063. .upload_toolBtn {
  22064. background: #3681fc;
  22065. color: #fff;
  22066. width: 110px;
  22067. text-align: center;
  22068. height: 35px;
  22069. line-height: 35px;
  22070. font-size: 14px;
  22071. border-radius: 5px;
  22072. cursor: pointer;
  22073. position: absolute;
  22074. right: 10px;
  22075. bottom: 0;
  22076. }
  22077. .binfo_input,
  22078. .pj {
  22079. font: inherit;
  22080. color: currentColor;
  22081. width: 100%;
  22082. margin: 0;
  22083. padding: 15px 14px;
  22084. display: block;
  22085. min-width: 0;
  22086. outline: none;
  22087. box-sizing: content-box;
  22088. background: none;
  22089. -webkit-tap-highlight-color: transparent;
  22090. border: 1px solid rgba(0, 0, 0, 0.23);
  22091. border-radius: 4px;
  22092. box-sizing: border-box;
  22093. resize: none;
  22094. }
  22095. .binfo_input:focus-visible {
  22096. border: 1px solid rgba(61, 103, 188);
  22097. }
  22098. .dialog_diy >>> .el-dialog__header,
  22099. .dialog_diy1 >>> .el-dialog__header {
  22100. background: #454545 !important;
  22101. padding: 15px 20px;
  22102. }
  22103. .dialog_diy >>> .el-dialog__title,
  22104. .dialog_diy1 >>> .el-dialog__title {
  22105. color: #fff;
  22106. }
  22107. .dialog_diy >>> .el-dialog__headerbtn,
  22108. .dialog_diy1 >>> .el-dialog__headerbtn {
  22109. top: 19px;
  22110. }
  22111. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22112. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22113. color: #fff;
  22114. }
  22115. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22116. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22117. color: #fff;
  22118. }
  22119. .dialog_diy1 >>> .el-dialog__body {
  22120. padding: 0;
  22121. }
  22122. .dialog_diy >>> .el-dialog__body,
  22123. .dialog_diy >>> .el-dialog__footer,
  22124. .dialog_diy1 >>> .el-dialog__footer {
  22125. background: #fafafa;
  22126. }
  22127. .a_addBox {
  22128. padding: 0 0 0 15px;
  22129. }
  22130. .a_add_box {
  22131. padding: 10px;
  22132. background: #fff;
  22133. margin-bottom: 10px;
  22134. border-radius: 5px;
  22135. box-shadow: 0 0 5px 0 #d5d5d5;
  22136. }
  22137. .a_add_head {
  22138. display: flex;
  22139. align-items: flex-start;
  22140. /* justify-content: space-between; */
  22141. flex-direction: column;
  22142. /* flex-direction: row; */
  22143. margin: 10px 0 20px 0;
  22144. font-size: 18px;
  22145. width: 100%;
  22146. }
  22147. .askIndex {
  22148. background: #3681fc;
  22149. border-radius: 50%;
  22150. color: #fff;
  22151. width: 25px;
  22152. height: 25px;
  22153. min-width: 25px;
  22154. min-height: 25px;
  22155. text-align: center;
  22156. line-height: 25px;
  22157. margin-right: 5px;
  22158. }
  22159. .a_add_head .a_add_head_input {
  22160. width: 300px;
  22161. }
  22162. .a_add_head .a_add_head_div {
  22163. display: flex;
  22164. align-items: center;
  22165. justify-content: space-between;
  22166. }
  22167. .a_add_body {
  22168. display: flex;
  22169. align-items: center;
  22170. }
  22171. .a_add_input {
  22172. display: flex;
  22173. align-items: center;
  22174. flex-wrap: wrap;
  22175. width: 100%;
  22176. }
  22177. .a_add_input >>> .el-radio-group,
  22178. .a_add_input >>> .el-checkbox-group {
  22179. width: 100%;
  22180. }
  22181. .a_add_input >>> .el-radio,
  22182. .a_add_input >>> .el-checkbox {
  22183. display: flex;
  22184. flex-direction: row;
  22185. flex-wrap: nowrap;
  22186. align-items: center;
  22187. padding: 15px 0;
  22188. }
  22189. .a_add_input >>> .el-radio:not(:last-child),
  22190. .a_add_input >>> .el-checkbox:not(:last-child) {
  22191. width: 100%;
  22192. border-bottom: 1px solid #efefef;
  22193. }
  22194. .redioStyle >>> .el-radio__label {
  22195. font-size: 18px;
  22196. }
  22197. .redioStyle >>> .el-radio__label > span,
  22198. .redioStyle >>> .el-checkbox__label > span {
  22199. word-break: break-all;
  22200. white-space: normal;
  22201. }
  22202. .redioStyle >>> .el-checkbox__label {
  22203. font-size: 18px;
  22204. }
  22205. .toolHeng2 {
  22206. width: 100%;
  22207. padding-left: 15px;
  22208. box-sizing: border-box;
  22209. }
  22210. .workNav {
  22211. font-size: 20px;
  22212. font-weight: bold;
  22213. color: #0e1e33;
  22214. display: flex;
  22215. flex-direction: row;
  22216. flex-wrap: nowrap;
  22217. align-items: center;
  22218. padding: 15px 0 15px 0;
  22219. }
  22220. .workNav::before {
  22221. content: "";
  22222. width: 2px;
  22223. height: 22px;
  22224. background: #3681fc;
  22225. border-radius: 3px;
  22226. display: block;
  22227. margin: 2px 6px 0 0;
  22228. }
  22229. .toolHeng {
  22230. display: flex;
  22231. flex-direction: row;
  22232. flex-wrap: wrap;
  22233. justify-content: flex-start;
  22234. align-items: center;
  22235. width: 100%;
  22236. }
  22237. .toolHeng > div {
  22238. padding-left: 20px;
  22239. }
  22240. .isWidth {
  22241. width: 20%;
  22242. }
  22243. .textTitle {
  22244. display: flex;
  22245. flex-direction: row;
  22246. flex-wrap: nowrap;
  22247. align-items: center;
  22248. width: 95%;
  22249. }
  22250. .textTitle >>> .el-form-item__label {
  22251. font-size: 22px;
  22252. color: #918f8f;
  22253. width: 100px;
  22254. }
  22255. .textTitle >>> .el-form-item__content {
  22256. width: calc(100% - 100px);
  22257. }
  22258. .textCss >>> .el-dialog {
  22259. width: 800px !important;
  22260. height: 400px;
  22261. background: #fafafa;
  22262. }
  22263. .textCss >>> .el-dialog__body {
  22264. margin: 55px 8% 0 8%;
  22265. padding: 0 !important;
  22266. }
  22267. .textCss >>> .el-dialog__footer {
  22268. padding-top: 38px;
  22269. }
  22270. .toolsCss >>> .el-dialog__body {
  22271. padding: 20px;
  22272. }
  22273. .lineCss >>> .el-dialog__body {
  22274. display: flex;
  22275. flex-direction: row;
  22276. align-items: center;
  22277. justify-content: center;
  22278. }
  22279. .newNav {
  22280. display: flex;
  22281. flex-direction: row;
  22282. align-items: baseline;
  22283. justify-content: flex-start;
  22284. }
  22285. .navListItem {
  22286. width: calc(100% - 20px);
  22287. height: 50px;
  22288. margin: 0px auto 10px;
  22289. display: flex;
  22290. flex-direction: row;
  22291. flex-wrap: nowrap;
  22292. align-items: center;
  22293. justify-content: space-between;
  22294. background: #f0f4fa;
  22295. border-radius: 6px 6px 6px 6px;
  22296. }
  22297. .navText {
  22298. cursor: pointer;
  22299. white-space: nowrap;
  22300. overflow: hidden;
  22301. text-overflow: ellipsis;
  22302. width: 220px;
  22303. padding: 0 10px;
  22304. font-weight: 400;
  22305. color: #0e1e33;
  22306. }
  22307. .downIcon {
  22308. width: 20px;
  22309. min-width: 20px;
  22310. height: 20px;
  22311. margin-right: 15px;
  22312. cursor: pointer;
  22313. }
  22314. .downIcon > img {
  22315. width: 100%;
  22316. height: 100%;
  22317. }
  22318. .noVedio {
  22319. display: flex;
  22320. flex-direction: row;
  22321. justify-content: center;
  22322. align-content: center;
  22323. }
  22324. .noNavText {
  22325. cursor: pointer;
  22326. margin: 0px 0px 10px 5px;
  22327. width: 112px;
  22328. }
  22329. .listNoVedio {
  22330. margin: 0 0 0 30px;
  22331. width: 97%;
  22332. }
  22333. .video-player >>> .video-js {
  22334. height: 100%;
  22335. }
  22336. .hangVedioList {
  22337. width: 90% !important;
  22338. height: 150px !important;
  22339. margin: 20px 0 0 30px;
  22340. }
  22341. .hangVedio {
  22342. width: 100%;
  22343. height: 170px !important;
  22344. align-items: flex-start !important;
  22345. }
  22346. .hangHand {
  22347. height: 150px !important;
  22348. }
  22349. .twoChild {
  22350. width: 95%;
  22351. margin: 10px;
  22352. border-radius: 5px;
  22353. background: #f2f2f2;
  22354. display: flex;
  22355. flex-direction: column;
  22356. flex-wrap: nowrap;
  22357. justify-content: flex-start;
  22358. align-items: flex-start;
  22359. transition: all 0.5s;
  22360. overflow: hidden;
  22361. height: 0;
  22362. background: #e7f3ff;
  22363. }
  22364. .twoChild > div:nth-child(1) {
  22365. margin-top: 5px;
  22366. }
  22367. .navChild {
  22368. width: 100%;
  22369. cursor: pointer;
  22370. margin-bottom: 10px;
  22371. position: relative;
  22372. }
  22373. .navChild img {
  22374. position: absolute;
  22375. right: 11px;
  22376. width: 15px;
  22377. top: 50%;
  22378. transform: translateY(-50%);
  22379. }
  22380. .navActive,
  22381. .toolActive {
  22382. height: auto !important;
  22383. overflow: auto !important;
  22384. /* padding-bottom: 16px; */
  22385. }
  22386. .toolActive {
  22387. padding: 0;
  22388. }
  22389. .navTask {
  22390. display: flex;
  22391. flex-direction: row;
  22392. flex-wrap: nowrap;
  22393. align-items: center;
  22394. align-content: flex-start;
  22395. height: 40px;
  22396. justify-content: flex-start;
  22397. padding: 0 10px;
  22398. width: 100%;
  22399. box-sizing: border-box;
  22400. }
  22401. .navTaskname {
  22402. white-space: nowrap;
  22403. text-overflow: ellipsis;
  22404. overflow: hidden;
  22405. word-break: break-all;
  22406. padding-left: 5px;
  22407. }
  22408. .openTaskActive {
  22409. /* background-color: #e0eafb !important;
  22410. color: #0061ff; */
  22411. color:#fff;
  22412. background: rgb(55, 129, 252) !important;
  22413. }
  22414. .iframeName {
  22415. margin: 5px 0;
  22416. border-left: 4px solid #41c4a4;
  22417. padding-left: 4px;
  22418. }
  22419. .toolTitle {
  22420. margin: 0px 0px 20px;
  22421. font-size: 20px;
  22422. font-weight: 500;
  22423. border-left: 4px solid #41c4a4;
  22424. padding-left: 4px;
  22425. }
  22426. .cru_selectBox {
  22427. overflow: auto;
  22428. width: 95%;
  22429. margin: 17px auto 0;
  22430. height: calc(100% - 40px - 21px - 20px - 17px);
  22431. background: #fff;
  22432. border-radius: 8px;
  22433. }
  22434. .cru_selectBox::-webkit-scrollbar,
  22435. .study_top::-webkit-scrollbar,
  22436. .textContent::-webkit-scrollbar {
  22437. /*滚动条整体样式*/
  22438. width: 6px;
  22439. /*高宽分别对应横竖滚动条的尺寸*/
  22440. height: 6px;
  22441. }
  22442. /*定义滚动条轨道 内阴影+圆角*/
  22443. .cru_selectBox::-webkit-scrollbar-track,
  22444. .study_top::-webkit-scrollbar-track,
  22445. .textContent::-webkit-scrollbar {
  22446. border-radius: 10px;
  22447. background-color: #b8bdc9;
  22448. }
  22449. /*定义滑块 内阴影+圆角*/
  22450. .cru_selectBox::-webkit-scrollbar-thumb,
  22451. .study_top::-webkit-scrollbar-thumb,
  22452. .textContent::-webkit-scrollbar-thumb {
  22453. border-radius: 10px;
  22454. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22455. background-color: #2c5ab3;
  22456. }
  22457. .vedioBox {
  22458. border-radius: 0 0 20px 20px;
  22459. background: #fff;
  22460. overflow: auto;
  22461. }
  22462. .taskBox {
  22463. width: 98%;
  22464. background: #f0f4fa;
  22465. margin: 10px auto;
  22466. padding: 0 10px;
  22467. border-radius: 4px;
  22468. box-sizing: border-box;
  22469. }
  22470. .vedioTaskBox {
  22471. width: 100%;
  22472. display: flex;
  22473. flex-direction: row;
  22474. flex-wrap: nowrap;
  22475. align-items: flex-start;
  22476. position: relative;
  22477. }
  22478. .toolBox {
  22479. margin: 15px 0 0 25px;
  22480. display: flex;
  22481. position: relative;
  22482. padding: 18px 20px;
  22483. border-top-left-radius: 5px;
  22484. border-top-right-radius: 5px;
  22485. width: 90%;
  22486. }
  22487. .btnAll {
  22488. position: absolute;
  22489. right: 0;
  22490. display: flex;
  22491. flex-direction: row;
  22492. flex-wrap: nowrap;
  22493. align-items: center;
  22494. }
  22495. .btnLeft,
  22496. .btnRight {
  22497. display: flex;
  22498. flex-direction: row;
  22499. flex-wrap: nowrap;
  22500. align-items: center;
  22501. padding: 5px 0;
  22502. }
  22503. .btnLeft {
  22504. border-right: 1px solid #cad1dc;
  22505. }
  22506. .btnLeft > .custom-tooltip {
  22507. background: #3681fc;
  22508. color: #fff;
  22509. }
  22510. .last:hover {
  22511. background: #3383fa !important;
  22512. color: #fff;
  22513. border: 1px solid #3383fa !important;
  22514. }
  22515. .last,
  22516. .returnBtn1 {
  22517. width: 90px;
  22518. height: 36px;
  22519. background: #ffffff;
  22520. border-radius: 4px;
  22521. border: 1px solid #0061ff;
  22522. color: #0061ff;
  22523. cursor: pointer;
  22524. display: flex;
  22525. flex-direction: row;
  22526. flex-wrap: nowrap;
  22527. align-items: center;
  22528. justify-content: center;
  22529. margin-left: 12px;
  22530. }
  22531. .returnBtn1 {
  22532. background: #f0f4fa;
  22533. border-radius: 4px;
  22534. border: 1px solid #cad1dc;
  22535. margin: 0 12px;
  22536. }
  22537. .lastImg {
  22538. min-width: 15px;
  22539. width: 15px;
  22540. height: 15px;
  22541. display: flex;
  22542. }
  22543. .lastText {
  22544. padding: 0 5px 0 5px;
  22545. box-sizing: border-box;
  22546. font-size: 14px;
  22547. }
  22548. .lastImg > img {
  22549. width: 100%;
  22550. height: 100%;
  22551. }
  22552. /* .vedioTimeBox {
  22553. display: flex;
  22554. flex-direction: row;
  22555. align-items: center;
  22556. flex-wrap: nowrap;
  22557. position: relative;
  22558. } */
  22559. .navBox {
  22560. background: #fff;
  22561. height: calc(100% - 40px);
  22562. overflow-y: auto;
  22563. overflow-x: hidden;
  22564. }
  22565. .worksBox {
  22566. margin: 0 0 10px 25px;
  22567. border-bottom: 1px solid #eeeeee;
  22568. padding: 18px 20px;
  22569. border-radius: 4px;
  22570. width: 90%;
  22571. }
  22572. .worksBTitle {
  22573. font-size: 20px;
  22574. padding-bottom: 15px;
  22575. border-bottom: 1px solid #eeeeee;
  22576. display: flex;
  22577. align-items: center;
  22578. }
  22579. .greenBox {
  22580. width: 5px;
  22581. height: 30px;
  22582. background: #63b6fa;
  22583. margin-right: 5px;
  22584. }
  22585. .worksDetailBox {
  22586. display: flex;
  22587. width: 100%;
  22588. flex-direction: row;
  22589. flex-wrap: wrap;
  22590. align-items: flex-end;
  22591. justify-content: flex-start;
  22592. padding: 15px 5px;
  22593. box-sizing: border-box;
  22594. }
  22595. .works {
  22596. display: flex;
  22597. flex-direction: column;
  22598. flex-wrap: nowrap;
  22599. align-items: flex-start;
  22600. justify-content: flex-start;
  22601. align-content: center;
  22602. max-width: 240px;
  22603. width: calc(100% / 3 - 10px);
  22604. height: auto;
  22605. margin-right: 10px;
  22606. margin-bottom: 10px;
  22607. overflow: hidden;
  22608. height: 140px;
  22609. box-shadow: 0 0 6px 1px #dfdada;
  22610. border-radius: 15px;
  22611. }
  22612. .workImg {
  22613. width: 100%;
  22614. /* height: calc(100% - 40px); */
  22615. height: 105px;
  22616. position: relative;
  22617. }
  22618. .workImg > img {
  22619. width: 100%;
  22620. height: 100%;
  22621. object-fit: contain;
  22622. cursor: pointer;
  22623. }
  22624. .worksName {
  22625. height: 40px;
  22626. line-height: 40px;
  22627. display: flex;
  22628. width: 100%;
  22629. flex-direction: row;
  22630. flex-wrap: nowrap;
  22631. justify-content: space-between;
  22632. align-items: center;
  22633. margin: 0 0 0 10px;
  22634. }
  22635. .worksName > div:nth-child(1) {
  22636. width: 110px;
  22637. white-space: nowrap;
  22638. overflow: hidden;
  22639. text-overflow: ellipsis;
  22640. }
  22641. .worksName > div:nth-child(2) {
  22642. color: #b7b4b5;
  22643. }
  22644. .noWorksS {
  22645. padding: 15px 0;
  22646. display: flex;
  22647. flex-direction: row;
  22648. flex-wrap: wrap;
  22649. align-items: center;
  22650. justify-content: flex-start;
  22651. }
  22652. .noWorksName,
  22653. .isWorksName,
  22654. .isWorksName2 {
  22655. background: #ddebf8;
  22656. color: #000;
  22657. width: 90px;
  22658. height: 25px;
  22659. text-align: center;
  22660. line-height: 25px;
  22661. border-radius: 4px;
  22662. margin: 10px 15px 10px 0;
  22663. white-space: nowrap;
  22664. overflow: hidden;
  22665. padding: 5px;
  22666. text-overflow: ellipsis;
  22667. cursor: pointer;
  22668. border: 1px solid #ddebf8;
  22669. }
  22670. .noWorksName {
  22671. background: #fff;
  22672. color: #0061ff;
  22673. border: 1px solid #0061ff;
  22674. }
  22675. .noWorksName > span{
  22676. max-width: 100%;
  22677. display: block;
  22678. overflow: hidden;
  22679. text-overflow: ellipsis;
  22680. white-space: nowrap;
  22681. }
  22682. .noWorksName2 {
  22683. background: #fff;
  22684. color: #0061ff;
  22685. width: 90px;
  22686. height: 25px;
  22687. text-align: center;
  22688. line-height: 25px;
  22689. border-radius: 4px;
  22690. margin: 10px 15px 10px 0;
  22691. white-space: nowrap;
  22692. overflow: hidden;
  22693. padding: 5px;
  22694. text-overflow: ellipsis;
  22695. cursor: pointer;
  22696. border: 1px solid #0061ff;
  22697. }
  22698. .noWorksName2 > span {
  22699. max-width: 100%;
  22700. display: block;
  22701. overflow: hidden;
  22702. text-overflow: ellipsis;
  22703. white-space: nowrap;
  22704. }
  22705. .isWorksName2 {
  22706. width: 100px;
  22707. height: 40px;
  22708. line-height: 40px;
  22709. position: relative;
  22710. background: #dae6f9;
  22711. }
  22712. .isWorksName {
  22713. background: #e7ebf1 !important;
  22714. width: 100px;
  22715. height: 40px;
  22716. line-height: 40px;
  22717. position: relative;
  22718. color: #acb4bf;
  22719. border: 1px solid #cad1dc !important;
  22720. }
  22721. .isSelectName,
  22722. .noWorksName:hover {
  22723. background: #3383fa !important;
  22724. color: #fff !important;
  22725. border: 1px solid #3383fa !important;
  22726. }
  22727. .title {
  22728. background: #1e5cc9;
  22729. /* width: 98%; */
  22730. height: 45px;
  22731. color: #fff;
  22732. line-height: 45px;
  22733. padding-left: 20px;
  22734. box-sizing: border-box;
  22735. }
  22736. .textBox {
  22737. font-size: 20px;
  22738. width: 90%;
  22739. display: flex;
  22740. flex-direction: column;
  22741. align-items: center;
  22742. margin: 20px auto 0;
  22743. max-height: calc(100% - 75px);
  22744. overflow: auto;
  22745. }
  22746. .textContent {
  22747. font-size: 18px;
  22748. width: 95%;
  22749. max-width: 95%;
  22750. }
  22751. .answerBg {
  22752. background: url("../assets/icon/answerBgNew.png") no-repeat;
  22753. background-size: 100% 100%;
  22754. width: 100%;
  22755. height: 100%;
  22756. color: #fff;
  22757. text-align: center;
  22758. display: flex;
  22759. flex-direction: column;
  22760. flex-wrap: nowrap;
  22761. align-items: center;
  22762. position: relative;
  22763. justify-content: center;
  22764. }
  22765. /* .answerBg > div:nth-child(1) { */
  22766. /* font-size: 22px;
  22767. padding: 25px 0 10px; */
  22768. /* } */
  22769. .answerContent {
  22770. width: 215px;
  22771. max-height: 60px;
  22772. word-break: break-all;
  22773. text-align: center;
  22774. /* white-space: nowrap; */
  22775. overflow: hidden;
  22776. text-overflow: ellipsis;
  22777. /* padding: 23px 0 0; */
  22778. -webkit-line-clamp: 3;
  22779. -webkit-box-orient: vertical;
  22780. display: -webkit-box;
  22781. font-size: 15px;
  22782. cursor: pointer;
  22783. }
  22784. .elist_input_box {
  22785. display: flex;
  22786. align-items: flex-start;
  22787. flex-wrap: nowrap;
  22788. padding: 10px 0 15px 30px;
  22789. flex-direction: column;
  22790. }
  22791. .elist_input {
  22792. /* width: 40%; */
  22793. width: 45%;
  22794. margin: 20px;
  22795. }
  22796. .elist_input .elist_input_box input {
  22797. font: inherit;
  22798. color: currentColor;
  22799. width: 200px;
  22800. padding: 8px 14px;
  22801. display: block;
  22802. min-width: 0;
  22803. outline: none;
  22804. border: 1px solid rgba(0, 0, 0, 0.23);
  22805. border-radius: 4px;
  22806. box-sizing: border-box;
  22807. background: #fff;
  22808. margin: 0 20px 0 0;
  22809. }
  22810. .elist_input .elist_input_box span {
  22811. height: 36px;
  22812. line-height: 36px;
  22813. color: rgb(82, 82, 82);
  22814. }
  22815. .elist_input .elist_input_box .remove {
  22816. height: 20px;
  22817. width: 20px;
  22818. background-size: 100% 100%;
  22819. background-position: unset;
  22820. margin-left: 5px;
  22821. }
  22822. .elist_input_box >>> .el-rate {
  22823. display: flex;
  22824. height: 36px;
  22825. align-items: center;
  22826. }
  22827. .elist_input_box .elist_inptu_text {
  22828. min-height: 50px;
  22829. /* width: 500px;
  22830. max-height: 150px; */
  22831. width: 100%;
  22832. line-height: 50px;
  22833. color: rgb(82, 82, 82);
  22834. overflow: auto;
  22835. text-indent: 5px;
  22836. background: #f7f6f9;
  22837. border-radius: 10px;
  22838. }
  22839. .elist_input_box .elist_inptu_text input {
  22840. width: 500px;
  22841. }
  22842. .elist_input_box >>> .el-rate__icon {
  22843. font-size: 24px;
  22844. }
  22845. .isClick {
  22846. background: #4d9def;
  22847. }
  22848. .bzBox {
  22849. display: flex;
  22850. flex-direction: row;
  22851. align-items: center;
  22852. }
  22853. .bzBox .yCss {
  22854. width: 7px;
  22855. height: 7px;
  22856. background: #fff;
  22857. margin: 0 16px 0 6px;
  22858. border-radius: 50%;
  22859. border: 5px solid #3681fc;
  22860. z-index: 99;
  22861. }
  22862. .bzBox > div:nth-child(2) {
  22863. font-size: 18px;
  22864. font-weight: bold;
  22865. color: #0e1e33;
  22866. }
  22867. .navTitile {
  22868. padding: 0 0px 0 15px;
  22869. font-size: 16px;
  22870. font-weight: bold;
  22871. color: #0e1e33;
  22872. height: 40px;
  22873. line-height: 40px;
  22874. }
  22875. .isTypeOne {
  22876. width: 240px;
  22877. height: 170px;
  22878. /* border: 1px solid #f8f8f8; */
  22879. border-radius: 10px;
  22880. box-shadow: 0 0 6px 1px #dfdada;
  22881. }
  22882. .e_add_top {
  22883. display: flex;
  22884. justify-content: space-between;
  22885. padding: 10px 20px;
  22886. border-radius: 3px;
  22887. background: #fff;
  22888. }
  22889. .e_add_title2 {
  22890. display: flex;
  22891. align-items: center;
  22892. }
  22893. .e_add_title2 span {
  22894. width: 40px;
  22895. }
  22896. .e_add_title {
  22897. display: flex;
  22898. align-items: center;
  22899. color: #b8b8b8;
  22900. font-size: 18px;
  22901. position: relative;
  22902. height: 40px;
  22903. width: 100%;
  22904. }
  22905. .e_add_title span {
  22906. margin-right: 10px;
  22907. }
  22908. .e_add_title .el_input {
  22909. width: 300px;
  22910. }
  22911. .e_add_title >>> .el-input__inner {
  22912. width: 400px;
  22913. }
  22914. /* .e_add_btn {
  22915. } */
  22916. .e_add_content {
  22917. display: flex;
  22918. width: 100%;
  22919. max-width: 650px;
  22920. height: 550px;
  22921. }
  22922. .e_add_list {
  22923. background: #fff;
  22924. height: 500px;
  22925. width: 210px;
  22926. position: relative;
  22927. margin: 15px 5px 0 0;
  22928. flex-shrink: 0;
  22929. display: flex;
  22930. flex-direction: column;
  22931. }
  22932. .e_add_list_title {
  22933. font-size: 20px;
  22934. width: 100%;
  22935. box-sizing: border-box;
  22936. padding: 15px 40px;
  22937. text-align: center;
  22938. border-bottom: 1px solid #eaeaea;
  22939. position: relative;
  22940. display: flex;
  22941. align-items: center;
  22942. justify-content: center;
  22943. height: 57px;
  22944. background: #f6f6f6;
  22945. }
  22946. .e_add_list_title span {
  22947. overflow: hidden;
  22948. white-space: nowrap;
  22949. text-overflow: ellipsis;
  22950. }
  22951. .e_add_list_title img {
  22952. position: absolute;
  22953. right: 15px;
  22954. width: 25px;
  22955. cursor: pointer;
  22956. top: 50%;
  22957. transform: translateY(-50%);
  22958. }
  22959. .e_add_list_body {
  22960. height: calc(100% - 187px);
  22961. overflow: auto;
  22962. }
  22963. .e_add_list_child {
  22964. width: 100%;
  22965. display: flex;
  22966. align-items: center;
  22967. justify-content: center;
  22968. position: relative;
  22969. box-sizing: border-box;
  22970. padding: 15px 40px;
  22971. text-align: center;
  22972. }
  22973. .e_add_list_child span {
  22974. overflow: hidden;
  22975. white-space: nowrap;
  22976. text-overflow: ellipsis;
  22977. cursor: pointer;
  22978. }
  22979. .e_add_list_child img {
  22980. position: absolute;
  22981. right: 10px;
  22982. width: 21px;
  22983. cursor: pointer;
  22984. top: 50%;
  22985. transform: translateY(-50%);
  22986. }
  22987. .e_add_list_child + .e_add_list_child {
  22988. border-top: 1px solid #eaeaea;
  22989. }
  22990. .e_add_list_child .active {
  22991. color: #409eff;
  22992. }
  22993. .e_add_list_btn {
  22994. position: absolute;
  22995. bottom: 0;
  22996. height: 50px;
  22997. background: rgb(120, 120, 254);
  22998. width: 100%;
  22999. color: #fff;
  23000. font-size: 16px;
  23001. text-align: center;
  23002. line-height: 50px;
  23003. cursor: pointer;
  23004. }
  23005. .e_add_list_detail {
  23006. position: absolute;
  23007. bottom: 0;
  23008. height: 130px;
  23009. background: rgb(120, 120, 254);
  23010. width: 100%;
  23011. color: #fff;
  23012. font-size: 16px;
  23013. display: flex;
  23014. align-items: center;
  23015. justify-content: center;
  23016. }
  23017. .e_add_list_detail textarea {
  23018. height: 90%;
  23019. width: 95%;
  23020. border: none;
  23021. resize: none;
  23022. outline: none;
  23023. padding: 5px;
  23024. box-sizing: border-box;
  23025. }
  23026. .e_add_list_pbox {
  23027. width: 100%;
  23028. max-width: 650px;
  23029. /* height: 600px; */
  23030. }
  23031. .e_add_list_pbox_title {
  23032. height: 50px;
  23033. background: #fff;
  23034. display: flex;
  23035. align-items: center;
  23036. width: 100%;
  23037. box-sizing: border-box;
  23038. padding: 0 20px;
  23039. }
  23040. .type_title {
  23041. font-size: 18px;
  23042. font-weight: 700;
  23043. }
  23044. .type_content {
  23045. font-size: 16px;
  23046. /* margin-left: 30px; */
  23047. }
  23048. .type_content span + span {
  23049. margin-left: 20px;
  23050. }
  23051. .type_content span {
  23052. cursor: pointer;
  23053. padding-bottom: 5px;
  23054. box-sizing: border-box;
  23055. }
  23056. .type_content .active {
  23057. color: #409eff;
  23058. border-bottom: 2px solid #409eff;
  23059. }
  23060. .e_add_list_pbox_content {
  23061. height: calc(100% - 50px);
  23062. display: flex;
  23063. align-items: center;
  23064. width: 100%;
  23065. background: #fff;
  23066. }
  23067. .evaCss {
  23068. display: flex;
  23069. flex-direction: row;
  23070. flex-wrap: nowrap;
  23071. align-items: flex-start;
  23072. padding: 0 0 20px;
  23073. }
  23074. .cru_line {
  23075. position: absolute;
  23076. bottom: 0px;
  23077. transition: all 0.5s;
  23078. left: 0px;
  23079. width: 125px;
  23080. margin-left: -25px;
  23081. }
  23082. .isNoMessage {
  23083. width: 20%;
  23084. margin: 25% auto 0;
  23085. }
  23086. .isNoMessage > img {
  23087. width: 100%;
  23088. height: 100%;
  23089. }
  23090. .fullStyle >>> .el-dialog__body {
  23091. height: 100% !important;
  23092. }
  23093. .fullStyle >>> .el-dialog,
  23094. .fullStyle {
  23095. width: 100% !important;
  23096. max-width: 100% !important;
  23097. height: 100% !important;
  23098. margin: 0 !important;
  23099. }
  23100. .full_diy >>> .el-dialog {
  23101. margin: 0 !important;
  23102. height: 100%;
  23103. padding: 4px;
  23104. }
  23105. .full_diy >>> .el-dialog__body {
  23106. height: calc(100% - 100px);
  23107. }
  23108. .full_diy2 >>> .el-dialog__body {
  23109. height: calc(100% - 50px);
  23110. padding: 0;
  23111. }
  23112. .switchCss {
  23113. /* width: 100%; */
  23114. display: flex;
  23115. flex-direction: row;
  23116. flex-wrap: nowrap;
  23117. align-items: center;
  23118. /* justify-content: center; */
  23119. }
  23120. .isClickNav {
  23121. /* color: #499eef; */
  23122. color: #000;
  23123. }
  23124. .commentImg {
  23125. width: 25px;
  23126. height: 25px;
  23127. cursor: pointer;
  23128. }
  23129. .commentImg > img {
  23130. width: 100%;
  23131. height: 100%;
  23132. }
  23133. .comment {
  23134. background: #f9f9f9;
  23135. border-radius: 0 0 4px 4px;
  23136. display: flex;
  23137. flex-direction: row;
  23138. flex-wrap: nowrap;
  23139. align-items: center;
  23140. justify-content: flex-end;
  23141. height: 35px;
  23142. }
  23143. .commentList {
  23144. display: flex;
  23145. flex-direction: row;
  23146. flex-wrap: nowrap;
  23147. align-items: center;
  23148. justify-content: center;
  23149. align-content: center;
  23150. /* margin-left: 15px; */
  23151. /* margin-left: 8px; */
  23152. }
  23153. .scoreImg {
  23154. width: 17px;
  23155. height: 17px;
  23156. }
  23157. .studentDetail {
  23158. display: flex;
  23159. flex-direction: row;
  23160. flex-wrap: nowrap;
  23161. /* align-items: center; */
  23162. align-items: flex-start;
  23163. }
  23164. .tx {
  23165. width: 50px;
  23166. }
  23167. .tx > img {
  23168. width: 100%;
  23169. height: 100%;
  23170. }
  23171. .nameAndTime {
  23172. display: flex;
  23173. flex-direction: column;
  23174. flex-wrap: nowrap;
  23175. align-items: flex-start;
  23176. margin-left: 10px;
  23177. }
  23178. .worksAnswer {
  23179. color: #4078dd;
  23180. margin: 10px 0;
  23181. font-size: 16px;
  23182. position: relative;
  23183. }
  23184. .worksAnswer > img {
  23185. width: 500px;
  23186. height: 300px;
  23187. object-fit: contain;
  23188. margin: 0 auto;
  23189. display: block;
  23190. }
  23191. .commentTop {
  23192. border-bottom: 1px solid #eaeaea;
  23193. padding-bottom: 10px;
  23194. }
  23195. .commentBox {
  23196. padding-top: 15px;
  23197. }
  23198. .pl {
  23199. font-size: 18px;
  23200. }
  23201. .plPerson {
  23202. width: 100%;
  23203. }
  23204. .plName {
  23205. display: flex;
  23206. flex-direction: row;
  23207. flex-wrap: nowrap;
  23208. align-items: baseline;
  23209. color: #78787a;
  23210. width: 100%;
  23211. }
  23212. .deleteComment {
  23213. cursor: pointer;
  23214. margin-left: auto;
  23215. color: #237ade;
  23216. }
  23217. .plContent {
  23218. margin-top: 5px;
  23219. }
  23220. .evalCss {
  23221. background: #fff;
  23222. font-size: 18px;
  23223. }
  23224. .nav {
  23225. color: #9d9d9d;
  23226. padding: 5px 0 15px 20px;
  23227. }
  23228. .middleBox {
  23229. padding: 5px 0 15px 20px;
  23230. }
  23231. .pfBox {
  23232. padding-bottom: 30px;
  23233. }
  23234. .nameAndrate {
  23235. display: flex;
  23236. flex-direction: row;
  23237. flex-wrap: nowrap;
  23238. align-items: center;
  23239. padding-bottom: 10px;
  23240. height: 30px;
  23241. line-height: 30px;
  23242. }
  23243. .nameAndrate > div {
  23244. margin-left: 10px;
  23245. color: #000;
  23246. height: 30px;
  23247. }
  23248. .nameAndrate >>> .el-rate__icon {
  23249. font-size: 28px !important;
  23250. }
  23251. .pfBox > div:nth-child(2) {
  23252. background: #f7f6f9;
  23253. width: 400px;
  23254. min-height: 45px;
  23255. border-radius: 10px;
  23256. font-size: 16px;
  23257. display: flex;
  23258. flex-wrap: wrap;
  23259. align-items: center;
  23260. padding: 10px 20px;
  23261. box-sizing: border-box;
  23262. color: #000;
  23263. }
  23264. .bz {
  23265. display: flex;
  23266. flex-direction: row;
  23267. flex-wrap: nowrap;
  23268. align-items: flex-start;
  23269. }
  23270. .bz > div {
  23271. padding: 0 10px;
  23272. }
  23273. .select_box2_title {
  23274. background: #fff;
  23275. border-radius: 5px;
  23276. padding: 15px 10px;
  23277. box-sizing: border-box;
  23278. margin-bottom: 10px;
  23279. display: flex;
  23280. flex-direction: row;
  23281. flex-wrap: nowrap;
  23282. align-items: center;
  23283. }
  23284. .select_box2_title > div:nth-child(2) {
  23285. margin-left: 10px;
  23286. color: #c4c4c4;
  23287. }
  23288. .select_box2_box {
  23289. display: flex;
  23290. height: 500px;
  23291. }
  23292. .select_box2_img {
  23293. width: calc(100% - 310px);
  23294. height: 100%;
  23295. overflow: auto;
  23296. background: #fff;
  23297. border-radius: 5px;
  23298. }
  23299. .select_box2_img img {
  23300. width: 100%;
  23301. }
  23302. .select_box2_answer {
  23303. background: #fff;
  23304. margin-left: 10px;
  23305. border-radius: 5px;
  23306. width: 300px;
  23307. overflow: auto;
  23308. height: 90%;
  23309. display: flex;
  23310. flex-direction: column;
  23311. align-items: flex-start;
  23312. padding-top: 10px;
  23313. box-sizing: border-box;
  23314. position: relative;
  23315. }
  23316. .select_answer_title {
  23317. padding: 0 0 15px 20px;
  23318. color: #c4c4c4;
  23319. }
  23320. .select_box2_answer_box {
  23321. margin: 0 0 10px 20px;
  23322. width: 85%;
  23323. display: flex;
  23324. flex-direction: row;
  23325. flex-wrap: nowrap;
  23326. align-items: center;
  23327. }
  23328. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23329. color: #000;
  23330. }
  23331. .upAnswerCss {
  23332. position: absolute;
  23333. bottom: 15px;
  23334. right: 15px;
  23335. }
  23336. .upAnswerCss >>> .el-button {
  23337. width: 95px;
  23338. height: 35px;
  23339. line-height: 35px;
  23340. padding: 0;
  23341. }
  23342. .rightWidthCss {
  23343. width: 60%;
  23344. display: flex;
  23345. flex-direction: row;
  23346. align-items: flex-start;
  23347. }
  23348. .rightAnswer {
  23349. display: flex;
  23350. flex-direction: row;
  23351. flex-wrap: nowrap;
  23352. align-items: center;
  23353. color: red;
  23354. margin-bottom: 31px;
  23355. }
  23356. .rightAnswerCss {
  23357. display: flex;
  23358. flex-direction: column;
  23359. flex-wrap: nowrap;
  23360. padding-top: 60px;
  23361. }
  23362. .blueCss {
  23363. color: #767de1;
  23364. margin-left: 10px;
  23365. }
  23366. .redCss {
  23367. color: red;
  23368. }
  23369. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23370. color: rgb(0 123 255) !important;
  23371. }
  23372. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23373. color: rgb(0 123 255) !important;
  23374. }
  23375. .zuoyeYulan {
  23376. padding-top: 0;
  23377. font-size: 18px;
  23378. display: flex;
  23379. align-items: flex-end;
  23380. }
  23381. .buttonA {
  23382. margin-left: 10px;
  23383. padding: 0;
  23384. }
  23385. .displayBox {
  23386. margin-bottom: 10px;
  23387. display: block;
  23388. border-bottom: 3px solid #eee;
  23389. display: flex;
  23390. align-items: center;
  23391. }
  23392. .easy_comment {
  23393. width: calc(100% - 90px);
  23394. margin-left: 10px;
  23395. display: flex;
  23396. flex-wrap: wrap;
  23397. }
  23398. .easy_comment > div {
  23399. border: 1px solid #4a4a4a;
  23400. color: #666;
  23401. border-radius: 15px;
  23402. padding: 5px 10px;
  23403. font-size: 16px;
  23404. margin-bottom: 10px;
  23405. margin-right: 5px;
  23406. cursor: pointer;
  23407. }
  23408. .easy_comment div:hover {
  23409. border: 1px solid #f7ba2a;
  23410. color: #c69217;
  23411. }
  23412. .xuan_right_box {
  23413. padding: 10px 0;
  23414. background: #f0f4fa;
  23415. margin: 0 15px 0 25px;
  23416. border-bottom-left-radius: 5px;
  23417. border-bottom-right-radius: 5px;
  23418. width: 91.5%;
  23419. }
  23420. .tool_right_box {
  23421. display: flex;
  23422. align-items: center;
  23423. }
  23424. .tool_right_box >>> .katex {
  23425. font-size: 16px;
  23426. }
  23427. .tool_right_box + .tool_right_box {
  23428. margin-top: 10px;
  23429. }
  23430. .right_box_xuan {
  23431. border-radius: 5px;
  23432. padding: 5px;
  23433. margin-left: 10px;
  23434. min-width: 95px;
  23435. background: #fff;
  23436. color: #0061ff;
  23437. border: 1px solid #0061ff;
  23438. font-size: 14px;
  23439. }
  23440. .pButton:hover {
  23441. opacity: 1 !important;
  23442. }
  23443. .pButton {
  23444. position: fixed;
  23445. text-align: center;
  23446. cursor: pointer;
  23447. z-index: 999;
  23448. right: 20px;
  23449. top: 110px;
  23450. width: 50px;
  23451. height: 50px;
  23452. display: flex;
  23453. align-items: center;
  23454. justify-content: center;
  23455. border-radius: 5px;
  23456. }
  23457. .pzClass {
  23458. width: calc(100% - 340px);
  23459. }
  23460. .newDialogCss {
  23461. /* position: fixed;
  23462. right: 5%;
  23463. top: 50%;
  23464. width: 340px;
  23465. transform: translateY(-50%);
  23466. height: 60%;
  23467. box-shadow: 0px 0 8px 0px #555555;
  23468. border-radius: 15px;
  23469. z-index: 999; */
  23470. position: fixed;
  23471. right: 20px;
  23472. top: 101px;
  23473. width: 330px;
  23474. height: calc(100% - 80px);
  23475. z-index: 999;
  23476. background: #fff;
  23477. border-top-right-radius: 0px;
  23478. border-bottom-right-radius: 0px;
  23479. overflow: hidden;
  23480. }
  23481. .newDialogCss>.scoreList{
  23482. width:100%;
  23483. height:100%;
  23484. box-sizing:border-box;
  23485. padding:10px 15px;
  23486. overflow:auto;
  23487. padding-bottom:80px;
  23488. }
  23489. .pzTop {
  23490. color: #fff;
  23491. background: #000;
  23492. display: flex;
  23493. flex-direction: row;
  23494. flex-wrap: nowrap;
  23495. align-items: center;
  23496. justify-content: space-between;
  23497. height: 40px;
  23498. border-radius: 15px 15px 0 0;
  23499. user-select: none;
  23500. }
  23501. .pzTop2 .checkbox {
  23502. display: flex;
  23503. align-items: center;
  23504. padding: 5px 10px;
  23505. flex: 0 0 auto;
  23506. font-weight: bold;
  23507. border-bottom: 1px solid #eee;
  23508. justify-content: space-between;
  23509. }
  23510. .checkbox>.cb-tabList{
  23511. display:flex;
  23512. align-items:center;
  23513. }
  23514. .cb-tabList>div{
  23515. margin-right:20px;
  23516. font-weight:400;
  23517. cursor:pointer;
  23518. }
  23519. .cb-tabList>.cb-tabItem{
  23520. color:#1684FC;
  23521. position:relative;
  23522. }
  23523. .cb-tabItem::after{
  23524. content:"";
  23525. width:100%;
  23526. height:2px;
  23527. background:#1684FC;
  23528. position:absolute;
  23529. bottom:-5px;
  23530. left:0
  23531. }
  23532. .pzTop2 .check {
  23533. text-align: center;
  23534. cursor: pointer;
  23535. box-sizing: border-box;
  23536. display: flex;
  23537. }
  23538. .pzTop2 img {
  23539. width: 25px;
  23540. cursor: pointer;
  23541. }
  23542. .pzTop > div:nth-child(1) {
  23543. padding-left: 10px;
  23544. }
  23545. .pzTop > div:nth-child(2) {
  23546. width: 15px;
  23547. height: 15px;
  23548. padding-right: 10px;
  23549. cursor: pointer;
  23550. }
  23551. .pzTop > div:nth-child(2) > img {
  23552. width: 100%;
  23553. height: 100%;
  23554. }
  23555. .pzBox,
  23556. .noPzBox {
  23557. height: calc(100% - 60px);
  23558. /* background: #ededed; */
  23559. background: #fff;
  23560. /* border-radius: 0 0 15px 15px; */
  23561. }
  23562. .noPzBox {
  23563. display: flex;
  23564. flex-direction: column;
  23565. flex-wrap: nowrap;
  23566. justify-content: center;
  23567. align-items: center;
  23568. }
  23569. .pzList {
  23570. background: #f7f7f7;
  23571. width: 90%;
  23572. margin: 0 auto 15px;
  23573. border-radius: 5px;
  23574. }
  23575. .pzNavTop {
  23576. display: flex;
  23577. flex-direction: row;
  23578. flex-wrap: nowrap;
  23579. padding: 10px 10px 0 10px;
  23580. align-items: center;
  23581. }
  23582. .pzDelete {
  23583. cursor: pointer;
  23584. margin-left: auto;
  23585. font-size: 14px;
  23586. color: #afafaf;
  23587. }
  23588. .pzNavTop > div:nth-child(1) {
  23589. background: #3760af;
  23590. width: 35px;
  23591. height: 35px;
  23592. color: #fff;
  23593. text-align: center;
  23594. line-height: 35px;
  23595. border-radius: 50%;
  23596. font-size: 14px;
  23597. }
  23598. .pzNavTop > div:nth-child(2) {
  23599. font-size: 18px;
  23600. color: #959595;
  23601. margin-left: 5px;
  23602. }
  23603. .pzContent {
  23604. padding: 10px;
  23605. word-break: break-word;
  23606. }
  23607. .pzContent audio {
  23608. width: 100%;
  23609. }
  23610. .pzContent audio::-webkit-media-controls-panel {
  23611. background: #fff;
  23612. }
  23613. .pzContent >>> img {
  23614. max-width: 100%;
  23615. }
  23616. .pzListBox {
  23617. padding-top: 15px;
  23618. height: calc(100% - 110px);
  23619. overflow: auto;
  23620. }
  23621. .addPzButton {
  23622. position: relative;
  23623. margin-top: 3px;
  23624. width: 100%;
  23625. }
  23626. .addPzButton .img1 {
  23627. position: absolute;
  23628. top: 50%;
  23629. right: 25px;
  23630. transform: translateY(-50%);
  23631. height: 100%;
  23632. display: flex;
  23633. align-items: center;
  23634. }
  23635. .addPzButton .img1 div {
  23636. display: flex;
  23637. }
  23638. .addPzButton .img1 div img {
  23639. width: 28px;
  23640. margin-left: 10px;
  23641. cursor: pointer;
  23642. }
  23643. .addPzButton .img1 div span {
  23644. font-size: 14px;
  23645. margin: 4px 0 0 3px;
  23646. color: #afafaf;
  23647. }
  23648. .addPz {
  23649. background: #4b79ce;
  23650. width: 100px;
  23651. color: #fff;
  23652. font-size: 12px;
  23653. height: 30px;
  23654. margin: 0 auto;
  23655. text-align: center;
  23656. line-height: 30px;
  23657. border-radius: 10px;
  23658. cursor: pointer;
  23659. }
  23660. .addDialogCss {
  23661. position: fixed;
  23662. width: 600px;
  23663. height: 70%;
  23664. min-height: 450px;
  23665. box-shadow: 0px 0 8px 0px #555555;
  23666. border-radius: 15px;
  23667. z-index: 999;
  23668. left: 50%;
  23669. top: 50%;
  23670. margin: -18% 0 0 -300px;
  23671. }
  23672. .teacherPz {
  23673. display: flex;
  23674. flex-direction: row;
  23675. align-items: center;
  23676. flex-wrap: nowrap;
  23677. }
  23678. .teacherPzImg {
  23679. width: 30px;
  23680. height: 30px;
  23681. }
  23682. .teacherPzImg > img {
  23683. width: 100%;
  23684. height: 100%;
  23685. }
  23686. .addPzBox {
  23687. height: calc(100% - 40px);
  23688. background: #ededed;
  23689. border-bottom-left-radius: 15px;
  23690. border-bottom-right-radius: 15px;
  23691. }
  23692. .pzAudioClass {
  23693. margin: 15px 14px;
  23694. background: #fff;
  23695. height: 100%;
  23696. display: flex;
  23697. justify-content: center;
  23698. align-items: center;
  23699. }
  23700. .pzConText {
  23701. width: 95%;
  23702. height: 100%;
  23703. margin: 10px auto 0;
  23704. border: none;
  23705. background: #fff;
  23706. border-radius: 0px;
  23707. }
  23708. .pzConText >>> .text {
  23709. height: calc(100% - 82px);
  23710. }
  23711. .addTextCss {
  23712. background: #4b79ce;
  23713. width: 80px;
  23714. height: 30px;
  23715. text-align: center;
  23716. color: #fff;
  23717. line-height: 30px;
  23718. border-radius: 10px;
  23719. margin: 10px auto 0;
  23720. cursor: pointer;
  23721. }
  23722. .pzConText:focus-visible {
  23723. border: none !important;
  23724. }
  23725. .maxWidth {
  23726. width: 1000px;
  23727. }
  23728. .noPz {
  23729. width: 150px;
  23730. margin: 0 auto 20%;
  23731. }
  23732. .noPz > img {
  23733. width: 100%;
  23734. height: 100%;
  23735. }
  23736. .timeAndReply {
  23737. display: flex;
  23738. flex-direction: row;
  23739. flex-wrap: nowrap;
  23740. justify-content: space-between;
  23741. align-items: center;
  23742. font-size: 14px;
  23743. box-sizing: border-box;
  23744. padding: 0 10px 10px 0px;
  23745. }
  23746. .timeAndReply .time {
  23747. color: #bfbfbf;
  23748. padding: 0 0 0 10px;
  23749. box-sizing: border-box;
  23750. }
  23751. .timeAndReply > div:last-child {
  23752. cursor: pointer;
  23753. color: #777;
  23754. }
  23755. /* table 样式 */
  23756. .cont >>> table {
  23757. border-top: 1px solid #ccc;
  23758. border-left: 1px solid #ccc;
  23759. }
  23760. .cont >>> table td,
  23761. .cont >>> table th {
  23762. border-bottom: 1px solid #ccc;
  23763. border-right: 1px solid #ccc;
  23764. /* padding: 20px 5px; */
  23765. padding: 5px 10px;
  23766. max-width: 0px;
  23767. height: 30px;
  23768. vertical-align: baseline;
  23769. box-sizing: border-box;
  23770. }
  23771. .cont >>> table th {
  23772. border-bottom: 2px solid #ccc;
  23773. text-align: center;
  23774. }
  23775. /* blockquote 样式 */
  23776. .cont >>> blockquote {
  23777. display: block;
  23778. border-left: 8px solid #d0e5f2;
  23779. padding: 5px 10px;
  23780. margin: 10px 0;
  23781. line-height: 1.4;
  23782. font-size: 100%;
  23783. background-color: #f1f1f1;
  23784. }
  23785. /* code 样式 */
  23786. .cont >>> code {
  23787. display: inline-block;
  23788. /* *display: inline; */
  23789. zoom: 1;
  23790. background-color: #f1f1f1;
  23791. border-radius: 3px;
  23792. padding: 3px 5px;
  23793. margin: 0 3px;
  23794. }
  23795. .cont >>> pre code {
  23796. display: block;
  23797. }
  23798. /* ul ol 样式 */
  23799. .cont >>> ul,
  23800. ol {
  23801. margin: 10px 0 10px 20px;
  23802. }
  23803. .addPzCheck {
  23804. display: flex;
  23805. flex-direction: row;
  23806. flex-wrap: nowrap;
  23807. padding: 10px 15px 0;
  23808. }
  23809. .addPzCheck span {
  23810. cursor: pointer;
  23811. padding-bottom: 5px;
  23812. font-weight: bold;
  23813. }
  23814. .addPzCheck span + span {
  23815. margin-left: 10px;
  23816. }
  23817. .addPzCheck .isChooseActive {
  23818. color: #3e88f4;
  23819. border-bottom: 2px solid #2f80f3;
  23820. }
  23821. /* code 样式 */
  23822. .cont {
  23823. /* -webkit-user-modify: read-write; */
  23824. overflow-wrap: break-word;
  23825. -webkit-line-break: after-white-space;
  23826. word-break: break-word;
  23827. white-space: pre-line;
  23828. }
  23829. .scoreBox,
  23830. .scoreDetailBox {
  23831. display: flex;
  23832. align-items: center;
  23833. justify-content: flex-start;
  23834. margin-top: 20px;
  23835. font-size: 18px;
  23836. width: 100%;
  23837. }
  23838. .scoreBox .t,
  23839. .scoreDetailBox .t {
  23840. margin-right: 10px;
  23841. min-width: 100px;
  23842. text-align: right;
  23843. }
  23844. .scoreDetailBox {
  23845. align-items: flex-start;
  23846. }
  23847. .scoreDetailBox >>> .el-textarea {
  23848. width: calc(100% - 200px);
  23849. }
  23850. .scoreBox >>> .el-input {
  23851. width: 130px;
  23852. font-size: 38px;
  23853. }
  23854. .scoreBox >>> .el-input__inner {
  23855. height: 60px;
  23856. }
  23857. .answerScore {
  23858. position: absolute;
  23859. top: 10px;
  23860. right: 10px;
  23861. background: #0000008f;
  23862. border-radius: 5px;
  23863. padding: 3px 5px;
  23864. font-size: 14px;
  23865. color: #fff;
  23866. cursor: pointer;
  23867. }
  23868. .open_box .switch_box {
  23869. width: 100%;
  23870. margin: 0 auto;
  23871. display: flex;
  23872. justify-content: space-between;
  23873. }
  23874. .open_box .switch_box + .switch_box {
  23875. margin-top: 10px;
  23876. }
  23877. .deleteImg,.deleteImg1 {
  23878. width: 25px !important;
  23879. height: 25px !important;
  23880. cursor: pointer;
  23881. position: absolute;
  23882. top: 10px;
  23883. right: 10px;
  23884. }
  23885. .deleteImg2 {
  23886. width: 23px !important;
  23887. height: 23px !important;
  23888. top: 5px;
  23889. right: 5px;
  23890. }
  23891. .deleteImg1{
  23892. width: 23px !important;
  23893. height: 23px !important;
  23894. top: 5px !important;
  23895. right: 30px !important;
  23896. }
  23897. .rightW {
  23898. right: 40px;
  23899. }
  23900. .drawPBox {
  23901. display: flex;
  23902. flex-direction: column;
  23903. position: relative;
  23904. }
  23905. .drawPBox span {
  23906. font-size: 18px;
  23907. color: #606266;
  23908. padding-bottom: 10px;
  23909. margin: 10px 0;
  23910. border-bottom: 1px solid #eaeaea;
  23911. }
  23912. .drawPBox img {
  23913. width: 500px;
  23914. height: 300px;
  23915. object-fit: contain;
  23916. cursor: pointer;
  23917. margin: 0 auto;
  23918. }
  23919. .sentenBox {
  23920. background: #fff;
  23921. height: 450px;
  23922. overflow: auto;
  23923. background-image: url("../assets/icon/conSentences/stuBg.png");
  23924. background-position: 102%;
  23925. background-repeat: no-repeat;
  23926. background-size: 60%;
  23927. }
  23928. .addSen {
  23929. background: #409efe;
  23930. width: 90px;
  23931. color: #fff;
  23932. height: 35px;
  23933. text-align: center;
  23934. line-height: 35px;
  23935. border-radius: 5px;
  23936. float: right;
  23937. margin: 10px 20px 0 0;
  23938. cursor: pointer;
  23939. }
  23940. .sentenTop {
  23941. display: flex;
  23942. flex-direction: row;
  23943. flex-wrap: nowrap;
  23944. align-items: center;
  23945. padding: 55px 0 0 20px;
  23946. box-sizing: border-box;
  23947. }
  23948. .sentenTop > div:nth-child(2) {
  23949. width: 300px;
  23950. margin: 0 15px;
  23951. }
  23952. .sentenTop > div:nth-child(3) {
  23953. background: #409efe;
  23954. color: #fff;
  23955. width: 65px;
  23956. height: 35px;
  23957. text-align: center;
  23958. line-height: 35px;
  23959. border-radius: 5px;
  23960. cursor: pointer;
  23961. }
  23962. .cardList,
  23963. .cardList1 {
  23964. padding: 10px 0 10px 0;
  23965. display: flex;
  23966. flex-direction: row;
  23967. flex-wrap: wrap;
  23968. align-items: center;
  23969. box-sizing: border-box;
  23970. border-bottom: 1px solid #f4f4f4;
  23971. width: 98%;
  23972. margin: 0 auto;
  23973. min-width: 60%;
  23974. max-width: 85%;
  23975. }
  23976. .cardList1 {
  23977. padding: 10px 0 10px 10px !important;
  23978. margin: 0 !important;
  23979. }
  23980. .cardBox {
  23981. display: flex;
  23982. flex-direction: row;
  23983. flex-wrap: wrap;
  23984. align-items: center;
  23985. align-content: center;
  23986. }
  23987. .cardBox > div {
  23988. margin-bottom: 10px;
  23989. }
  23990. .isCard,
  23991. .isChooseCard,
  23992. .noCard,
  23993. .isCard1 {
  23994. min-width: 130px;
  23995. width: auto;
  23996. height: 60px;
  23997. text-align: center;
  23998. line-height: 60px;
  23999. font-size: 20px;
  24000. cursor: pointer;
  24001. background-image: url("../assets/icon/conSentences/titleBorder.png");
  24002. background-size: cover;
  24003. transition: all 2s;
  24004. margin-right: 20px;
  24005. background-size: 100% 100%;
  24006. padding: 0 20px;
  24007. box-sizing: border-box;
  24008. }
  24009. .isCard > div,
  24010. .noCard > div,
  24011. .isCard1 > div {
  24012. white-space: nowrap;
  24013. overflow: hidden;
  24014. text-overflow: ellipsis;
  24015. width: 100%;
  24016. margin: 0 auto;
  24017. }
  24018. .noCard {
  24019. background-image: none;
  24020. }
  24021. .isCard1 {
  24022. background-image: url("../assets/icon/conSentences/answerBorder.png");
  24023. }
  24024. .isChooseCard {
  24025. background-image: none;
  24026. border: 1px dashed #b9b9b9;
  24027. border-radius: 10px;
  24028. }
  24029. .card {
  24030. width: 130px;
  24031. height: 60px;
  24032. }
  24033. .card > img {
  24034. width: 100%;
  24035. height: 100%;
  24036. }
  24037. .rightCardBox {
  24038. margin: 10px 0 0 10px;
  24039. }
  24040. .rightCardBox > div:nth-child(1) {
  24041. margin-bottom: 10px;
  24042. }
  24043. .cardCss {
  24044. display: flex;
  24045. flex-direction: column;
  24046. flex-wrap: nowrap;
  24047. align-items: center;
  24048. border-bottom: 3px solid #b4c3d3;
  24049. padding: 0 0 5px 0;
  24050. margin-right: 10px;
  24051. }
  24052. .cardCss > div:nth-child(2) {
  24053. background: #5b7b9d;
  24054. color: #fff;
  24055. width: 20px;
  24056. height: 20px;
  24057. border-radius: 50%;
  24058. text-align: center;
  24059. line-height: 20px;
  24060. }
  24061. .isWrong {
  24062. display: flex;
  24063. flex-direction: row;
  24064. flex-wrap: nowrap;
  24065. align-content: center;
  24066. align-items: center;
  24067. }
  24068. .answerRight {
  24069. width: 25%;
  24070. }
  24071. .isTj {
  24072. display: flex;
  24073. flex-direction: row;
  24074. flex-wrap: nowrap;
  24075. align-items: center;
  24076. }
  24077. .isTj > div:nth-child(2) {
  24078. color: #727070;
  24079. margin-left: 10px;
  24080. }
  24081. .isTjImg {
  24082. width: 30px;
  24083. height: 30px;
  24084. }
  24085. .isTjImg > img {
  24086. width: 100%;
  24087. height: 100%;
  24088. }
  24089. .cardAnswerBox {
  24090. font-size: 18px;
  24091. width: 97%;
  24092. border: 5px;
  24093. padding: 0;
  24094. border-radius: 5px;
  24095. margin: 10px auto;
  24096. word-break: break-word;
  24097. }
  24098. .w_name {
  24099. margin-bottom: 10px;
  24100. }
  24101. .w_name span {
  24102. font-size: 16px;
  24103. }
  24104. .w_teachert {
  24105. width: 50px !important;
  24106. position: absolute;
  24107. height: auto !important;
  24108. z-index: 10;
  24109. right: 25px;
  24110. top: -25px;
  24111. }
  24112. /* .group_workBox {
  24113. } */
  24114. .group_workBox + .group_workBox {
  24115. margin-top: 20px;
  24116. }
  24117. .group_box {
  24118. padding-bottom: 20px;
  24119. border-bottom: 2px solid #f0f0f0;
  24120. margin-top: 10px;
  24121. }
  24122. .group_title {
  24123. display: flex;
  24124. align-items: center;
  24125. justify-content: space-between;
  24126. width: 95%;
  24127. }
  24128. .group_name {
  24129. background-image: url(../assets/icon/groupN.png);
  24130. width: 220px;
  24131. background-size: 100% 100%;
  24132. height: 67px;
  24133. padding: 0 20px 0 43px;
  24134. box-sizing: border-box;
  24135. line-height: 63px;
  24136. color: #fff;
  24137. overflow: hidden;
  24138. white-space: nowrap;
  24139. text-overflow: ellipsis;
  24140. }
  24141. .group_work {
  24142. width: 100%;
  24143. padding: 0 10px;
  24144. box-sizing: border-box;
  24145. display: flex;
  24146. flex-wrap: wrap;
  24147. }
  24148. .g_d_box {
  24149. display: flex;
  24150. flex-flow: wrap;
  24151. justify-content: space-around;
  24152. }
  24153. .g_d_box .isChair {
  24154. background-image: url(../assets/avatar.png) !important;
  24155. }
  24156. .g_d_group {
  24157. width: 500px;
  24158. margin-bottom: 80px;
  24159. }
  24160. .g_d_group_chair {
  24161. display: flex;
  24162. align-items: center;
  24163. justify-content: center;
  24164. }
  24165. .g_d_group_chair > div + div {
  24166. margin-left: 30px;
  24167. }
  24168. .g_d_group_chair > div,
  24169. .g_d_group_chair2 > div {
  24170. display: flex;
  24171. flex-direction: column;
  24172. align-items: center;
  24173. }
  24174. .g_d_group_chair > div > span:nth-child(1),
  24175. .g_d_group_chair2 > div > span:nth-child(1) {
  24176. background-image: url(../assets/icon/chair.png);
  24177. width: 50px;
  24178. height: 50px;
  24179. display: block;
  24180. background-size: 100% 100%;
  24181. }
  24182. .g_d_group_tableBox {
  24183. display: flex;
  24184. align-items: center;
  24185. justify-content: center;
  24186. }
  24187. .g_d_group_chair2 {
  24188. display: flex;
  24189. flex-direction: column;
  24190. align-items: center;
  24191. justify-content: center;
  24192. }
  24193. .g_d_group_chair2 > div + div {
  24194. margin-top: 10px;
  24195. }
  24196. .g_d_group_table {
  24197. background-image: url(../assets/icon/groupBg.png);
  24198. width: 354px;
  24199. height: 196px;
  24200. background-size: 100% 100%;
  24201. display: flex;
  24202. align-items: center;
  24203. justify-content: center;
  24204. flex-direction: column;
  24205. color: #fff;
  24206. }
  24207. .g_d_group_table > div:nth-child(1) {
  24208. font-size: 24px;
  24209. margin-bottom: 5px;
  24210. }
  24211. .g_d_group_table > div:nth-child(2) div {
  24212. cursor: pointer;
  24213. background: #2e77bf;
  24214. padding: 4px 10px;
  24215. border-radius: 5px;
  24216. }
  24217. /* .groupBox {
  24218. } */
  24219. .groupContent + .groupContent {
  24220. margin-top: 30px;
  24221. }
  24222. .groupTitle {
  24223. font-size: 24px;
  24224. color: rgb(80, 80, 80);
  24225. margin-bottom: 20px;
  24226. }
  24227. .groupName {
  24228. display: flex;
  24229. align-items: center;
  24230. }
  24231. .groupn {
  24232. font-size: 15px;
  24233. margin-right: 10px;
  24234. }
  24235. .groupName + .groupName {
  24236. margin-top: 15px;
  24237. }
  24238. .groupBtn {
  24239. margin-left: 10px;
  24240. }
  24241. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24242. text-align: left;
  24243. }
  24244. .g_d_btnBox {
  24245. display: flex;
  24246. justify-content: flex-end;
  24247. align-items: center;
  24248. margin-bottom: 20px;
  24249. }
  24250. .updateChair {
  24251. position: relative;
  24252. }
  24253. .updateChairBtn {
  24254. position: absolute;
  24255. width: 50px;
  24256. height: 50px;
  24257. overflow: hidden;
  24258. /* display: flex; */
  24259. align-items: center;
  24260. justify-content: center;
  24261. background: #00000087;
  24262. color: #fff;
  24263. border-radius: 50px;
  24264. display: none;
  24265. cursor: pointer;
  24266. }
  24267. .updateChair:hover .updateChairBtn {
  24268. display: flex;
  24269. }
  24270. .group_staic_box {
  24271. display: flex;
  24272. padding: 30px 40px 10px;
  24273. flex-wrap: wrap;
  24274. }
  24275. .group_staic {
  24276. /* width: 50%; */
  24277. margin-bottom: 20px;
  24278. display: flex;
  24279. align-items: center;
  24280. }
  24281. .group_staic span:nth-child(1) {
  24282. width: 150px;
  24283. text-align: right;
  24284. margin-right: 15px;
  24285. }
  24286. .group_staic span:nth-child(2) {
  24287. background: rgb(0 123 255);
  24288. color: #fff;
  24289. border-radius: 5px;
  24290. padding: 5px;
  24291. }
  24292. .codeFileBox {
  24293. height: 300px;
  24294. background: #fff;
  24295. display: flex;
  24296. align-items: center;
  24297. justify-content: center;
  24298. }
  24299. .codeFileBox img {
  24300. width: 200px;
  24301. margin: 0;
  24302. height: auto;
  24303. }
  24304. .codeFileBox div {
  24305. background: rgb(80, 142, 226);
  24306. color: #fff;
  24307. padding: 10px 20px;
  24308. border-radius: 25px;
  24309. cursor: pointer;
  24310. margin-left: 15px;
  24311. }
  24312. .radioBox {
  24313. display: flex;
  24314. flex-direction: column;
  24315. flex-wrap: nowrap;
  24316. align-items: flex-start;
  24317. }
  24318. .radioBox > div {
  24319. margin: 10px 0 0 10px;
  24320. }
  24321. /* .radioBox >>> .el-radio__input,
  24322. .radioBox >>> .el-checkbox__inner {
  24323. margin-left: 10px;
  24324. } */
  24325. .radioBox >>> .el-radio__label,
  24326. .radioBox >>> .el-checkbox__label {
  24327. display: flex;
  24328. align-items: center;
  24329. width: 100%;
  24330. }
  24331. .radioBox >>> .el-radio__label > span {
  24332. width: 100%;
  24333. display: -webkit-box;
  24334. overflow: hidden;
  24335. white-space: normal !important;
  24336. text-overflow: ellipsis;
  24337. word-wrap: break-word;
  24338. }
  24339. .inImg {
  24340. width: 100px;
  24341. cursor: pointer;
  24342. }
  24343. .inImg > img {
  24344. width: 100%;
  24345. height: 100%;
  24346. object-fit: cover;
  24347. }
  24348. .timuImgBox {
  24349. margin: 10px 0;
  24350. display: flex;
  24351. flex-direction: column;
  24352. flex-wrap: wrap;
  24353. align-items: flex-start;
  24354. }
  24355. .timuImg {
  24356. width: 150px;
  24357. margin: 5px 0;
  24358. cursor: pointer;
  24359. }
  24360. .timuImg > img {
  24361. width: 100%;
  24362. height: 100%;
  24363. object-fit: cover;
  24364. }
  24365. .worksTop {
  24366. display: flex;
  24367. flex-direction: row;
  24368. align-items: flex-end;
  24369. }
  24370. .worksTitle{
  24371. display: flex;
  24372. flex-direction: row;
  24373. flex-wrap: nowrap;
  24374. align-items: center;
  24375. }
  24376. .worksTitle::before,.worksTop::before{
  24377. content: '';
  24378. display: block;
  24379. width: 3px;
  24380. height: 20px;
  24381. background: #0061FF;
  24382. border-radius: 3px;
  24383. margin: 0 5px 0 0;
  24384. }
  24385. .corOpen {
  24386. margin: 0 0 0 10px;
  24387. font-size: 14px;
  24388. cursor: pointer;
  24389. color: #505050;
  24390. }
  24391. .corOpen:hover {
  24392. color: #499eef;
  24393. }
  24394. .navCorOpenBox {
  24395. display: flex;
  24396. flex-direction: row;
  24397. align-items: center;
  24398. justify-content: space-between;
  24399. height: 55px;
  24400. background: #ffffff;
  24401. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24402. border-radius: 8px 8px 0px 0px;
  24403. z-index: 9;
  24404. position: relative;
  24405. }
  24406. .navCorOpen {
  24407. padding-right: 15px;
  24408. cursor: pointer;
  24409. width: 45px;
  24410. display: flex;
  24411. }
  24412. .navCorOpen > img {
  24413. width: 100%;
  24414. height: 100%;
  24415. }
  24416. .mlImg {
  24417. width: 40px !important;
  24418. min-width: 40px;
  24419. cursor: pointer;
  24420. transform: rotate(180deg);
  24421. }
  24422. .mlImg > img {
  24423. width: 100%;
  24424. height: 100%;
  24425. }
  24426. .navLeftCss {
  24427. width: 100% !important;
  24428. left: 0 !important;
  24429. }
  24430. .isContentCss {
  24431. width: 100% !important;
  24432. }
  24433. .isAllWidth {
  24434. width: 100% !important;
  24435. }
  24436. .group_switch {
  24437. margin-right: 10px;
  24438. height: 30px;
  24439. display: flex;
  24440. align-items: center;
  24441. }
  24442. .group_switch > span {
  24443. margin-right: 5px;
  24444. }
  24445. .fileC_box {
  24446. padding-top: 15px;
  24447. }
  24448. .fileC_box > .fileC_title {
  24449. padding: 10px 5px 14px 10px;
  24450. border-top: 1px solid #cad1dc;
  24451. font-size: 14px;
  24452. font-weight: 400;
  24453. color: #cad1dc;
  24454. width: calc(100% - 20px);
  24455. margin: 0 auto;
  24456. box-sizing: border-box;
  24457. }
  24458. .pl_select_box {
  24459. height: 40px;
  24460. line-height: 40px;
  24461. width: 100%;
  24462. cursor: pointer;
  24463. padding: 0 20px;
  24464. box-sizing: border-box;
  24465. border-radius: 5px;
  24466. border: 1px solid #d6d6d6;
  24467. white-space: nowrap;
  24468. overflow: hidden;
  24469. text-overflow: ellipsis;
  24470. background: #fff;
  24471. text-align: left;
  24472. }
  24473. .newButton {
  24474. width: 102px;
  24475. height: 36px;
  24476. background: #e7ebf1;
  24477. border-radius: 4px;
  24478. color: #0e1e33;
  24479. font-weight: 400;
  24480. font-size: 14px;
  24481. border: none;
  24482. float: right;
  24483. margin-left: 10px;
  24484. }
  24485. .el-table >>> .even_row {
  24486. background-color: #f0f4fa;
  24487. }
  24488. .stageBoxCss,
  24489. .stageBoxIsCss {
  24490. display: flex;
  24491. flex-direction: row;
  24492. flex-wrap: nowrap;
  24493. align-items: center;
  24494. height: 50px;
  24495. border-bottom: 1px solid #e2f5fc;
  24496. cursor: pointer;
  24497. width: 100%;
  24498. }
  24499. .stageBoxIsCss {
  24500. background: #0061ff;
  24501. color: #fff;
  24502. border-radius: 8px;
  24503. }
  24504. .stageItemTitle {
  24505. display: flex;
  24506. flex-direction: row;
  24507. flex-wrap: nowrap;
  24508. align-items: center;
  24509. margin-left: 15px;
  24510. width: calc(100% - 50px);
  24511. }
  24512. /* .stageNav{ */
  24513. /* font-weight: bold; */
  24514. /* } */
  24515. .stageItemTitle > div:first-child {
  24516. min-width: 55px;
  24517. }
  24518. .stageItemTitle > div:last-child {
  24519. max-width: 242px;
  24520. white-space: nowrap;
  24521. overflow: hidden;
  24522. text-overflow: ellipsis;
  24523. word-break: break-word;
  24524. width: calc(100% - 55px);
  24525. }
  24526. .closeTri,
  24527. .closeTri1 {
  24528. min-width: 15px;
  24529. width: 15px;
  24530. height: 15px;
  24531. transition: all .5s;
  24532. }
  24533. .closeTri1 {
  24534. padding-left: 10px;
  24535. cursor: pointer;
  24536. }
  24537. .closeTri > img,
  24538. .closeTri1 > img {
  24539. width: 100%;
  24540. height: 100%;
  24541. /* transition: all .5s; */
  24542. }
  24543. .noToolBlue {
  24544. min-width: 10px;
  24545. width: 10px;
  24546. height: 10px;
  24547. background: #0061ff;
  24548. border-radius: 50%;
  24549. margin-left: 13px;
  24550. }
  24551. .stageChild,
  24552. .toolChild {
  24553. height: 0;
  24554. overflow: hidden;
  24555. transition: all 0.5s;
  24556. }
  24557. /* .toolChild { */
  24558. /* margin: 0 0 0 17px;
  24559. padding: 0 0 0 20px;
  24560. border-left: 1px solid #d7d7d7; */
  24561. /* } */
  24562. .toolChild > div + div{
  24563. margin-top:5px;
  24564. }
  24565. .gjCss {
  24566. display: flex;
  24567. flex-direction: row;
  24568. flex-wrap: nowrap;
  24569. align-items: center;
  24570. padding: 10px 0 10px 25px;
  24571. box-sizing: border-box;
  24572. font-size: 14px;
  24573. cursor: pointer;
  24574. border-radius:5px;
  24575. }
  24576. .gjCss > div:nth-child(1){
  24577. flex-shrink: 0;
  24578. }
  24579. .toolChild > div {
  24580. position: relative;
  24581. width:100%;
  24582. }
  24583. /* .toolChild > div::before { */
  24584. /* content: "";
  24585. width: 15px;
  24586. height: 1px;
  24587. background: #cad1dc;
  24588. position: absolute;
  24589. top: 24px;
  24590. left: -20px;
  24591. display: block; */
  24592. /* } */
  24593. .isGjCss {
  24594. /* color: #0061ff; */
  24595. color:#fff;
  24596. background: rgb(55, 129, 252);
  24597. /* background-color: #e0eafb !important;
  24598. color: #0061ff !important; */
  24599. }
  24600. .navItem {
  24601. background: #ffffff;
  24602. border-radius: 4px;
  24603. width: 100%;
  24604. margin: 10px auto;
  24605. position: relative;
  24606. height: 40px;
  24607. display: flex;
  24608. flex-direction: row;
  24609. flex-wrap: nowrap;
  24610. align-items: center;
  24611. }
  24612. .navItemList {
  24613. display: flex;
  24614. flex-direction: row;
  24615. flex-wrap: nowrap;
  24616. align-items: center;
  24617. padding: 0 13px;
  24618. cursor: pointer;
  24619. width: calc(100% - 60px);
  24620. height: 100%;
  24621. }
  24622. .navItemList > div:first-child {
  24623. /* min-width: 60px; */
  24624. min-width:fit-content;
  24625. }
  24626. .navItemList > div:last-child {
  24627. width: calc(100% - 80px);
  24628. white-space: nowrap;
  24629. overflow: hidden;
  24630. text-overflow: ellipsis;
  24631. word-break: break-word;
  24632. }
  24633. /* .isItemList > div {
  24634. color: #fff !important;
  24635. } */
  24636. .tool_work_box {
  24637. width: 100%;
  24638. padding: 0 37px 0;
  24639. box-sizing: border-box;
  24640. }
  24641. .tool_box {
  24642. width: 100%;
  24643. padding: 0 0 0 20px;
  24644. }
  24645. .tool_type_box {
  24646. display: flex;
  24647. flex-direction: row;
  24648. align-items: baseline;
  24649. flex-wrap: nowrap;
  24650. justify-content: flex-start;
  24651. position: relative;
  24652. }
  24653. .toolSort {
  24654. display: flex;
  24655. flex-direction: row;
  24656. flex-wrap: wrap;
  24657. justify-content: flex-start;
  24658. align-items: flex-start;
  24659. padding: 0 0 15px 0;
  24660. }
  24661. .toolSort > div {
  24662. margin: 0 10px 0 0;
  24663. width: 135px;
  24664. box-sizing: border-box;
  24665. border: 2px solid transparent;
  24666. }
  24667. .tools {
  24668. width: 100%;
  24669. display: flex;
  24670. flex-direction: column;
  24671. flex-wrap: nowrap;
  24672. align-items: flex-start;
  24673. }
  24674. .whiteBIcon {
  24675. width: fit-content;
  24676. cursor: pointer;
  24677. display: flex;
  24678. flex-direction: column;
  24679. flex-wrap: nowrap;
  24680. align-items: center;
  24681. font-size: 14px;
  24682. }
  24683. .tool:hover {
  24684. border: 2px solid #a5c7ff;
  24685. border-radius: 5px;
  24686. }
  24687. .whiteBIcon > img {
  24688. width: 65px;
  24689. height: 100%;
  24690. }
  24691. .whiteBIcon > img {
  24692. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  24693. border-radius: 15px;
  24694. }
  24695. .check {
  24696. /* width: 20px;
  24697. height: 20px; */
  24698. cursor: pointer;
  24699. margin: 10px 0;
  24700. position: absolute;
  24701. right: 2px;
  24702. top: -5px;
  24703. }
  24704. .noChoose,
  24705. .isChoose {
  24706. width: 15px;
  24707. height: 15px;
  24708. border-radius: 50%;
  24709. border: 1px solid #adadad;
  24710. }
  24711. .isChoose {
  24712. border: 4px solid #0363ff !important;
  24713. width: 10px;
  24714. height: 10px;
  24715. }
  24716. .isToolChoose {
  24717. border: 2px solid #5394ff !important;
  24718. border-radius: 5px;
  24719. box-shadow: 0 0 6px 0px #5394ff;
  24720. }
  24721. .checkDiv {
  24722. display: flex;
  24723. align-items: center;
  24724. }
  24725. .checkDiv span {
  24726. margin-left: 5px;
  24727. color: #858585;
  24728. }
  24729. .check img {
  24730. width: 20px;
  24731. height: 20px;
  24732. }
  24733. .lockTaskIcon {
  24734. width: 20px;
  24735. height: 20px;
  24736. position: absolute;
  24737. right: 10px;
  24738. top: 5px;
  24739. }
  24740. .lockTaskIcon > img {
  24741. width: 100%;
  24742. height: 100%;
  24743. }
  24744. .pick_box {
  24745. display: flex;
  24746. align-items: flex-start;
  24747. flex-wrap: wrap;
  24748. }
  24749. .selectBox {
  24750. width: 110px;
  24751. margin-left: 10px;
  24752. margin: 0 10px 0 auto;
  24753. }
  24754. .selectBox >>> .el-input__inner {
  24755. height: 30px;
  24756. line-height: 30px;
  24757. }
  24758. .selectBox >>> .el-input__icon {
  24759. line-height: 30px;
  24760. }
  24761. .sentenceTitle {
  24762. display: flex;
  24763. flex-direction: row;
  24764. flex-wrap: nowrap;
  24765. align-items: center;
  24766. }
  24767. .sentenceTitle::before {
  24768. content: attr(index);
  24769. background: #3681fc;
  24770. border-radius: 50%;
  24771. color: #fff;
  24772. width: 25px;
  24773. height: 25px;
  24774. min-width: 25px;
  24775. min-height: 25px;
  24776. text-align: center;
  24777. line-height: 25px;
  24778. margin-right: 5px;
  24779. }
  24780. .hfBox {
  24781. padding: 10px;
  24782. box-sizing: border-box;
  24783. }
  24784. .whoReplyWho {
  24785. display: flex;
  24786. flex-direction: row;
  24787. flex-wrap: nowrap;
  24788. align-items: baseline;
  24789. justify-content: flex-start;
  24790. }
  24791. .hfBottom {
  24792. display: flex;
  24793. flex-direction: row;
  24794. flex-wrap: nowrap;
  24795. align-items: center;
  24796. justify-content: space-between;
  24797. font-size: 14px;
  24798. }
  24799. .deleteHfItem {
  24800. cursor: pointer;
  24801. width: 20px;
  24802. height: 20px;
  24803. }
  24804. .deleteHfItem > img {
  24805. width: 100%;
  24806. height: 100%;
  24807. }
  24808. .whoReplyWho > .hfImg {
  24809. width: 12px;
  24810. height: 12px;
  24811. margin: 0 5px;
  24812. }
  24813. .whoReplyWho > .hfImg > img {
  24814. width: 100%;
  24815. height: 100%;
  24816. }
  24817. .hfContent {
  24818. padding-top: 10px;
  24819. box-sizing: border-box;
  24820. display: -webkit-box;
  24821. overflow: hidden;
  24822. white-space: normal !important;
  24823. text-overflow: ellipsis;
  24824. word-wrap: break-word;
  24825. -webkit-box-orient: vertical;
  24826. }
  24827. .hfTime {
  24828. text-align: left;
  24829. box-sizing: border-box;
  24830. padding: 10px 0 10px 0px;
  24831. color: #bfbfbf;
  24832. font-size: 14px;
  24833. }
  24834. .btnAllNT {
  24835. position: fixed;
  24836. bottom: 100px;
  24837. right: 40px;
  24838. z-index: 999;
  24839. display: flex;
  24840. flex-direction: row;
  24841. }
  24842. .btnAllNT > img {
  24843. cursor: pointer;
  24844. width: 80px;
  24845. }
  24846. .toolMask {
  24847. position: fixed;
  24848. width: 100%;
  24849. height: 100%;
  24850. background: #3f3c3c;
  24851. opacity: 0.5;
  24852. top: 0;
  24853. left: 0;
  24854. z-index: 999;
  24855. }
  24856. .addToolCss {
  24857. position: fixed;
  24858. z-index: 999;
  24859. background: #fff;
  24860. right: 5%;
  24861. bottom: 18%;
  24862. min-width: 1035px;
  24863. min-height: 300px;
  24864. border-radius: 10px;
  24865. box-shadow: 0 0 8px 1px #b2b2b2;
  24866. }
  24867. .toolTop {
  24868. display: flex;
  24869. flex-direction: row;
  24870. flex-wrap: nowrap;
  24871. justify-content: space-between;
  24872. align-items: center;
  24873. padding: 20px;
  24874. }
  24875. .toolTop > div:nth-child(2) {
  24876. width: 15px;
  24877. height: 15px;
  24878. padding-right: 10px;
  24879. cursor: pointer;
  24880. }
  24881. .toolTop > div:nth-child(2) > img {
  24882. width: 100%;
  24883. height: 100%;
  24884. }
  24885. .fullStyle>>>.el-dialog__body {
  24886. height: calc(100% - 125px) !important;
  24887. box-sizing: border-box;
  24888. padding: 30px 0 !important;
  24889. background: #fff !important;
  24890. }
  24891. .fullStyle>>>.el-dialog {
  24892. width: 100% !important;
  24893. max-width: 100% !important;
  24894. height: 100% !important;
  24895. margin: 0 !important;
  24896. }
  24897. .fullStyle {
  24898. width: 100% !important;
  24899. max-width: 100% !important;
  24900. height: 100% !important;
  24901. margin: 0 auto !important;
  24902. }
  24903. .fullStyle>>>.el-dialog__footer{
  24904. background: #fff !important;
  24905. }
  24906. .engUpBox {
  24907. width: 100%;
  24908. height: 100%;
  24909. }
  24910. .engTitle,
  24911. .engText {
  24912. display: flex;
  24913. flex-direction: row;
  24914. flex-wrap: nowrap;
  24915. align-items: flex-start;
  24916. padding: 0 20px 20px 20px;
  24917. box-sizing: border-box;
  24918. }
  24919. .engTitle > .div:first-child,
  24920. .engText > div:first-child {
  24921. min-width: 75px;
  24922. }
  24923. .correctBox{
  24924. width: 100%;
  24925. display: flex;
  24926. flex-direction: row;
  24927. flex-wrap: nowrap;
  24928. align-items: flex-start;
  24929. }
  24930. .oldBox{
  24931. width: 50%;
  24932. height: 100%;
  24933. display: flex;
  24934. flex-direction: column;
  24935. flex-wrap: nowrap;
  24936. align-items: center;
  24937. border-top: 1px solid #d9d9d9;
  24938. border-left: 1px solid #d9d9d9;
  24939. border-right: 1px solid #d9d9d9;
  24940. }
  24941. .oldBox>div:first-child{
  24942. width: 100%;
  24943. text-align: center;
  24944. background: #d9d9d9;
  24945. height: 35px;
  24946. line-height: 35px;
  24947. font-weight: bold;
  24948. }
  24949. .oldText{
  24950. width: 100%;
  24951. height: calc(100% - 35px);
  24952. overflow: auto;
  24953. margin: 10px 0;
  24954. display: flex;
  24955. flex-direction: column;
  24956. flex-wrap: nowrap;
  24957. align-content: center;
  24958. align-items: center;
  24959. }
  24960. .detailBox{
  24961. width: 50%;
  24962. padding: 10px;
  24963. background: #f6f6f6;
  24964. border-radius: 5px;
  24965. }
  24966. .oldDetail,.oldDetail1{
  24967. padding-bottom: 30px;
  24968. }
  24969. .oldImg{
  24970. width:30px;
  24971. height: 30px;
  24972. }
  24973. .oldImg>img{
  24974. width: 100%;
  24975. height: 100%;
  24976. }
  24977. .allName{
  24978. min-width: 200px;
  24979. white-space: nowrap;
  24980. overflow: hidden;
  24981. text-overflow: ellipsis;
  24982. word-break: break-word;
  24983. cursor: pointer;
  24984. text-align: center;
  24985. border: 1px solid #bcc2cc;
  24986. box-sizing: border-box;
  24987. }
  24988. .engUpTop{
  24989. max-height: 300px;
  24990. overflow: auto;
  24991. }
  24992. .isUpdateToolDetailClass{
  24993. padding: 0 !important;
  24994. }
  24995. .isUpdateToolDetailClass textarea{
  24996. padding:12px;
  24997. font-size: 16px;
  24998. min-height:100%;
  24999. width: 100%;
  25000. box-sizing:border-box;
  25001. outline: none;
  25002. border:none;
  25003. line-height: 30px;
  25004. resize: none;
  25005. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25006. color: #838383;
  25007. }
  25008. .show_taskD {
  25009. min-width: fit-content;
  25010. margin-left: 10px;
  25011. display: flex;
  25012. align-items: center;
  25013. font-size: 14px;
  25014. cursor: pointer;
  25015. color: #717c8d;
  25016. }
  25017. .show_taskD > img {
  25018. width: 15px;
  25019. margin-right: 5px;
  25020. transition: 0.2s all;
  25021. transform: rotate(-90deg);
  25022. }
  25023. .show_taskD.show > img {
  25024. transform: rotate(0deg);
  25025. }
  25026. .correctCss{
  25027. position: absolute;
  25028. bottom: -70px;
  25029. background: #409eff;
  25030. color: #fff;
  25031. }
  25032. .dialog_diyCopy >>> .el-dialog__header {
  25033. display: none !important;
  25034. }
  25035. .dialog_diyCopy >>> .el-dialog__body {
  25036. padding: 0 !important;
  25037. height: 100% !important;
  25038. }
  25039. .confirmOpenDigCss > div{
  25040. font-size: 14px;
  25041. color: rgba(0, 0, 0, 0.6);
  25042. }
  25043. .confirmOpenDigCss >>> .el-dialog{
  25044. border-radius: 6px;
  25045. }
  25046. .confirmOpenDigCss >>> .el-dialog__body{
  25047. padding: 25px !important;
  25048. }
  25049. .confirmOpenDigCss > span{
  25050. font-size: 16px;
  25051. font-weight: 600;
  25052. color: rgba(0, 0, 0, 0.8);
  25053. }
  25054. div::-webkit-scrollbar {
  25055. width: 10px;
  25056. height: 6px;
  25057. }
  25058. .Ovh{
  25059. margin: 5px 0;
  25060. width: 4em;
  25061. -webkit-line-clamp: 2;
  25062. display: -webkit-box;
  25063. -webkit-box-orient: vertical;
  25064. overflow: hidden;
  25065. text-overflow: ellipsis;
  25066. }
  25067. .renderedFor >>> .katex {
  25068. font-size: 18px;
  25069. width: 100%;
  25070. white-space: normal;
  25071. font-family: '黑体' !important;
  25072. }
  25073. .renderedFor >>> .katex .base{
  25074. display: inline !important;
  25075. display: contents !important;
  25076. }
  25077. .renderedFor>>> .katex .base .cjk_fallback{
  25078. white-space: normal !important;
  25079. display: inline !important;
  25080. }
  25081. .notop >>> .vjs-fluid{
  25082. padding-top: 0 !important;
  25083. }
  25084. </style>