studyStudent.vue 1.0 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- 上课模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <!-- <div class="btnAllNT">
  16. <img
  17. v-if="
  18. courseDetail.userid == userid ||
  19. (courseDetail.course_teacher &&
  20. courseDetail.course_teacher.indexOf(userid) != -1)
  21. "
  22. src="../../assets/icon/learn/addTool.png"
  23. @click="openToolAll"
  24. style="position: relative"
  25. />
  26. <img
  27. src="../../assets/icon/learn/last.png"
  28. @click="nextOrpreSteps(0)"
  29. />
  30. <img
  31. src="../../assets/icon/learn/next.png"
  32. @click="nextOrpreSteps(1)"
  33. />
  34. <img
  35. src="../../assets/icon/learn/return.png"
  36. @click.stop="
  37. goTo(
  38. '/courseDetail?userid=' +
  39. userid +
  40. '&oid=' +
  41. oid +
  42. '&org=' +
  43. org +
  44. '&cid=' +
  45. classId +
  46. '&courseId=' +
  47. id +
  48. '&tType=' +
  49. tType +
  50. '&screenType=' +
  51. screenType
  52. )
  53. "
  54. />
  55. </div> -->
  56. <div
  57. class="pButton"
  58. style="left: 0; top: 140px"
  59. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  60. @click="setContent2(true)"
  61. >
  62. <!-- 批 , getCourseDetail()-->
  63. <img
  64. src="../../assets/icon/newIcons/isRight.png"
  65. style="width: 45px"
  66. alt=""
  67. />
  68. </div>
  69. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  70. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  71. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  72. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  73. <div
  74. style="
  75. max-width: calc(100% - 40px);
  76. width: auto;
  77. white-space: nowrap;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. word-break: break-word;
  81. display: block;
  82. "
  83. >
  84. <el-tooltip
  85. effect="light"
  86. :content="courseDetail.title"
  87. placement="top"
  88. >
  89. <div class="ctitle">
  90. {{ courseDetail.title }}
  91. </div>
  92. </el-tooltip>
  93. </div>
  94. <el-tooltip effect="light" :content="lang.ssCollapse" placement="top">
  95. <div class="mlImg" @click="setContent2(false)">
  96. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  97. </div>
  98. </el-tooltip>
  99. </div>
  100. <div
  101. class="inviteBox"
  102. v-if="tcid && inviteCode"
  103. style="padding: 0 0 8px 0"
  104. >
  105. <div>
  106. <span>{{ lang.ssInviteCodeLabel }}{{ Code2 ? Code2 + inviteCode : inviteCode }}</span>
  107. <!-- <span>识别码:{{ inviteCode }}</span> -->
  108. </div>
  109. </div>
  110. </div>
  111. <div class="cru_selectBox">
  112. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  113. <div class="stageChild" :class="{ navActive: item.isOpen }">
  114. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  115. <div
  116. class="navItem"
  117. :class="{
  118. openTaskActive:
  119. navIndex == taskCount &&
  120. nav.id == navId &&
  121. stageIndex == courseType,
  122. }"
  123. >
  124. <div v-if="nav.tool[0].tool != undefined">
  125. <div
  126. class="closeTri1"
  127. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  128. @click="openTask(stageIndex, navIndex, nav.id)"
  129. >
  130. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  131. </div>
  132. <div
  133. class="closeTri1"
  134. v-else
  135. @click="openTask(stageIndex, navIndex, nav.id)"
  136. >
  137. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  138. </div>
  139. </div>
  140. <div v-else class="noToolBlue"></div>
  141. <div
  142. @click="openTask(stageIndex, navIndex, nav.id)"
  143. class="navItemList"
  144. :class="{
  145. isItemList:
  146. navIndex == taskCount &&
  147. nav.id == navId &&
  148. stageIndex == courseType,
  149. }"
  150. >
  151. <div>{{ lang.ssTaskNum.replace(/\*/g, navIndex + 1) }}</div>
  152. <el-tooltip
  153. effect="light"
  154. :content="nav.taskName"
  155. placement="top"
  156. >
  157. <div
  158. :style="{
  159. width:
  160. IsLookOpen && !nav.isLook
  161. ? 'calc(100% - 75px)'
  162. : 'auto',
  163. }"
  164. >
  165. {{ nav.taskName }}
  166. </div>
  167. </el-tooltip>
  168. </div>
  169. <div class="lockTaskIcon">
  170. <img
  171. src="../../assets/lock.png"
  172. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  173. courseDetail.course_teacher.indexOf(userid) ==-1"
  174. alt=""
  175. />
  176. </div>
  177. </div>
  178. <div
  179. v-if="nav.tool[0].tool != undefined"
  180. class="toolChild"
  181. :class="{ toolActive: nav.isOpen }"
  182. >
  183. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  184. <div
  185. class="gjCss"
  186. :class="{
  187. isGjCss: t.isTool,
  188. }"
  189. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  190. >
  191. <div>{{ lang.ssToolNum.replace(/\*/g, toolIndex2 + 1) }}</div>
  192. <div v-if="t.tool == 58">{{ lang.ssSimulateDrive }}</div>
  193. <div v-if="t.tool == 59">{{ lang.ssPathSearch }}</div>
  194. <div v-if="t.tool == 60">{{ lang.ssDeepLearning }}</div>
  195. <div v-if="t.tool == 10">{{ lang.ssCountdown }}</div>
  196. <div v-if="t.tool == 65">{{ lang.ssPickPerson }}</div>
  197. <div v-if="t.tool == 7">{{ lang.ssMindGrid }}</div>
  198. <div v-if="t.tool == 1">{{ lang.ssWhiteboard }}</div>
  199. <div v-if="t.tool == 52">{{ lang.ssDocument }}</div>
  200. <div v-if="t.tool == 3">{{ lang.ssMindMap }}</div>
  201. <div v-if="t.tool == 48">{{ lang.ssTable }}</div>
  202. <div v-if="t.tool == 49">{{ lang.ssStudentGroup }}</div>
  203. <div v-if="t.tool == 4">{{ lang.ssSurvey }}</div>
  204. <div v-if="t.tool == 45">{{ lang.ssChoice }}</div>
  205. <div v-if="t.tool == 15">{{ lang.ssQa }}</div>
  206. <div v-if="t.tool == 16">{{ lang.ssHomework }}</div>
  207. <div v-if="t.tool == 50">{{ lang.ssBatchUpload }}</div>
  208. <div v-if="t.tool == 41">{{ lang.ssMatch }}</div>
  209. <div v-if="t.tool == 47">{{ lang.ssSort }}</div>
  210. <div v-if="t.tool == 40">{{ lang.ssPersonalEval }}</div>
  211. <div v-if="t.tool == 18">{{ lang.ssTraining }}</div>
  212. <div v-if="t.tool == 21">{{ lang.ssAiotBlockly }}</div>
  213. <div v-if="t.tool == 23">{{ lang.ssAiPython }}</div>
  214. <div v-if="t.tool == 24">{{ lang.ssAiBlockly }}</div>
  215. <div v-if="t.tool == 32">{{ lang.ssCodeEdit }}</div>
  216. <div v-if="t.tool == 57">{{ lang.ssCocoPi }}</div>
  217. <div v-if="t.tool == 63">{{ lang.ssTurtle }}</div>
  218. <div v-if="t.tool == 28">{{ lang.ssTranslate }}</div>
  219. <div v-if="t.tool == 31">{{ lang.ssDigitalBoard }}</div>
  220. <div v-if="t.tool == 39">{{ lang.ssGeogebra }}</div>
  221. <div v-if="t.tool == 66">{{ lang.ssFormula }}</div>
  222. <div v-if="t.tool == 67">{{ lang.ssMolecule }}</div>
  223. <div v-if="t.tool == 68">{{ lang.ssTimeline }}</div>
  224. <div v-if="t.tool == 69">{{ lang.ssEnglishWrite }}</div>
  225. <div v-if="t.tool == 70">{{ lang.ssEnglishSpeak }}</div>
  226. <div v-if="t.tool == 25">{{ lang.ssGoalManage }}</div>
  227. <div v-if="t.tool == 26">{{ lang.ssCourseDesign }}</div>
  228. <div v-if="t.tool == 62">{{ lang.ssInteractiveVideo }}</div>
  229. <div v-if="t.tool == 71">{{ lang.ssAiAgent }}</div>
  230. <div v-if="t.tool == 72">{{ lang.ssAppCenter }}</div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  240. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  241. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  242. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  243. <div>{{ lang.ssTask }}{{ taskCount + 1 }}</div>
  244. <el-tooltip
  245. effect="light"
  246. :content="
  247. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  248. "
  249. placement="top"
  250. >
  251. <div>
  252. {{
  253. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  254. .task
  255. }}
  256. </div>
  257. </el-tooltip>
  258. </div>
  259. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  260. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)">
  261. <div class="btnLeft">
  262. <el-tooltip effect="light" :content="lang.ssRefresh" placement="top">
  263. <div class="reBtnIcon" @click="refreshCourse">
  264. <span>{{ lang.ssRefresh }}</span>
  265. </div>
  266. </el-tooltip>
  267. <el-tooltip effect="light" :content="lang.ssComment" placement="top">
  268. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  269. <span>{{ lang.ssComment }}</span>
  270. </div>
  271. </el-tooltip>
  272. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  273. <el-tooltip effect="light" :content="lang.ssRecord" placement="top">
  274. <div class="vedioIcon" @click="startRecording">
  275. <span>{{ lang.ssRecord }}</span>
  276. </div>
  277. </el-tooltip>
  278. </div>
  279. <div v-else-if="tType == 1 || tType == 4">
  280. <el-tooltip effect="light" :content="lang.ssDownload" placement="top">
  281. <div class="vedioIcon1" @click="stopRecording">
  282. <span>{{ lang.ssDownload }}</span>
  283. </div>
  284. </el-tooltip>
  285. </div>
  286. </div>
  287. <div class="btnRight">
  288. <div
  289. class="last"
  290. @click="nextOrpreSteps(0)"
  291. v-if="!(IsFollow && tType == 2)"
  292. @mouseover="isHovered = true"
  293. @mouseout="isHovered = false"
  294. >
  295. <div class="lastImg">
  296. <img
  297. :src="
  298. isHovered
  299. ? require('../../assets/icon/newIcons/whiteLast.png')
  300. : require('../../assets/icon/newIcons/last.png')
  301. "
  302. alt=""
  303. />
  304. </div>
  305. <div class="lastText">{{ lang.ssPrevious }}</div>
  306. </div>
  307. <div
  308. class="last"
  309. @click="nextOrpreSteps(1)"
  310. v-if="!(IsFollow && tType == 2)"
  311. @mouseover="isHovered1 = true"
  312. @mouseout="isHovered1 = false"
  313. >
  314. <div class="lastText">{{ lang.ssNext }}</div>
  315. <div class="lastImg">
  316. <img
  317. :src="
  318. isHovered1
  319. ? require('../../assets/icon/newIcons/whiteNext.png')
  320. : require('../../assets/icon/newIcons/next.png')
  321. "
  322. alt=""
  323. />
  324. </div>
  325. </div>
  326. <div
  327. class="last"
  328. @click="juriVisible = true"
  329. v-if="tType == 1"
  330. @mouseover="isHovered2 = true"
  331. @mouseout="isHovered2 = false"
  332. >
  333. <div class="lastImg">
  334. <img
  335. :src="
  336. isHovered2
  337. ? require('../../assets/icon/newIcons/whiteLock.png')
  338. : require('../../assets/icon/newIcons/lock.png')
  339. "
  340. alt=""
  341. />
  342. </div>
  343. <div class="lastText">{{ lang.ssPermission }}</div>
  344. </div>
  345. <div
  346. class="returnBtn1 returnIcon"
  347. @click.stop="
  348. goTo(
  349. '/courseDetail?userid=' +
  350. userid +
  351. '&oid=' +
  352. oid +
  353. '&org=' +
  354. org +
  355. '&cid=' +
  356. classId +
  357. '&courseId=' +
  358. id +
  359. '&tType=' +
  360. tType +
  361. '&screenType=' +
  362. screenType
  363. )
  364. "
  365. >
  366. <div class="lastImg">
  367. <img src="../../assets/icon/newIcon/return.png" alt="" />
  368. </div>
  369. <div class="lastText" style="color: #000">{{ lang.ssReturn }}</div>
  370. </div>
  371. </div>
  372. <!-- <div
  373. class="returnBtn lockIcon"
  374. @click="juriVisible = true"
  375. v-if="tType == 1"
  376. >
  377. 权限
  378. </div>
  379. <div
  380. class="returnBtn vedioIcon"
  381. @click="startRecording"
  382. v-if="!videoStart && (tType == 1 || tType == 4)"
  383. >
  384. 录制
  385. </div>
  386. <div
  387. class="returnBtn"
  388. @click="stopRecording"
  389. v-else-if="tType == 1 || tType == 4"
  390. style="background: #ee5255"
  391. >
  392. 下载
  393. </div>
  394. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  395. 评论
  396. </div>
  397. <div
  398. class="returnBtn"
  399. @click="nextOrpreSteps(0)"
  400. v-if="!(IsFollow && tType == 2)"
  401. >
  402. 上一步
  403. </div>
  404. <div
  405. class="returnBtn"
  406. @click="nextOrpreSteps(1)"
  407. v-if="!(IsFollow && tType == 2)"
  408. >
  409. 下一步
  410. </div>
  411. <div class="returnBtn" @click="refreshCourse">刷新</div>
  412. <div
  413. class="returnBtn returnIcon"
  414. @click.stop="
  415. goTo(
  416. '/courseDetail?userid=' +
  417. userid +
  418. '&oid=' +
  419. oid +
  420. '&org=' +
  421. org +
  422. '&cid=' +
  423. classId +
  424. '&courseId=' +
  425. id +
  426. '&tType=' +
  427. tType +
  428. '&screenType=' +
  429. screenType
  430. )
  431. "
  432. >
  433. 返回
  434. </div> -->
  435. </div>
  436. </div>
  437. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  438. .taskDetail3 && -->
  439. <div
  440. class="isNoMessage"
  441. v-if="
  442. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  443. .chapterData.length == 0 &&
  444. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  445. .toolChoose[0].tool.length == 0 &&
  446. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  447. .taskDetail == '' &&
  448. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  449. .eList &&
  450. !(
  451. courseDetail.userid == userid ||
  452. (courseDetail.course_teacher &&
  453. courseDetail.course_teacher.indexOf(userid) != -1)
  454. )
  455. "
  456. >
  457. <img src="../../assets/icon/isNoMessage.png" alt />
  458. </div>
  459. <div class="study_top" :style="tType=='2'?'width:calc(100% - 10px)':''" :class="{ pzClass: pzDialog }">
  460. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  461. .taskDetail3 || -->
  462. <div
  463. class="vedioBox"
  464. v-if="
  465. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  466. .taskDetail != '' ||
  467. vChapterData[0].length > 0 ||
  468. fileC[0].length > 0) && (tType == 1 || (tType == 2 && IsStulook))
  469. "
  470. style="border-radius: 0 0 20px 20px"
  471. >
  472. <!-- <div
  473. class="taskBox"
  474. v-if="
  475. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  476. .taskDetail3
  477. "
  478. >
  479. <div
  480. style="
  481. display: flex;
  482. flex-wrap: nowrap;
  483. flex-direction: column;
  484. position: relative;
  485. "
  486. >
  487. <div
  488. style="
  489. padding: 15px 0;
  490. line-height: 29px;
  491. font-size: 18px;
  492. color: #0e1e33;
  493. "
  494. class="cont"
  495. v-if="
  496. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  497. .taskDetail3 != ''
  498. "
  499. v-html="
  500. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  501. .taskDetail3
  502. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  503. taskCount
  504. ].taskDetail3)
  505. : '暂无描述'
  506. "
  507. ></div>
  508. </div>
  509. </div> -->
  510. <div
  511. class="taskBox"
  512. v-if="
  513. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  514. .taskDetail != ''
  515. "
  516. >
  517. <div
  518. style="
  519. display: flex;
  520. flex-wrap: nowrap;
  521. flex-direction: column;
  522. position: relative;
  523. "
  524. class="renderedFor"
  525. >
  526. <div
  527. style="
  528. padding: 15px 0;
  529. line-height: 29px;
  530. font-size: 18px;
  531. color: #0e1e33;
  532. "
  533. class="cont"
  534. v-if="
  535. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  536. .taskDetail != ''
  537. "
  538. v-html="
  539. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  540. .taskDetail
  541. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  542. taskCount
  543. ].taskDetail
  544. : lang.ssNoDesc
  545. "
  546. ></div>
  547. </div>
  548. </div>
  549. <div
  550. class="student_head"
  551. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  552. >
  553. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  554. <div
  555. :class="
  556. contentDialog == false
  557. ? 'box_course isContentCss'
  558. : 'box_course'
  559. "
  560. v-if="
  561. vChapterData.length > 0 &&
  562. vChapterData[0] &&
  563. showType !== ''
  564. "
  565. >
  566. <div class="wheel" style="height: auto" v-if="showType === 0">
  567. <div
  568. class="workd_media"
  569. style="height: 650px; width: calc(100% - 50px)"
  570. >
  571. <video-player
  572. class="video-player vjs-custom-skin notop"
  573. :class="contentDialog == false ? 'isAllWidth' : ''"
  574. :playsinline="true"
  575. :options="playerO[0]"
  576. @play="onPlayerPlay($event)"
  577. style="width: 100%; height: 650px; margin: 0 0 0 30px"
  578. ></video-player>
  579. </div>
  580. </div>
  581. <div
  582. class="wheel"
  583. v-if="showType == 1"
  584. style="
  585. box-shadow: 0 0 6px 1px #f2f2f2;
  586. width: 95%;
  587. margin: 0 auto;
  588. background: #f1f1f1;
  589. "
  590. >
  591. <div class="title">{{ lang.ssViewDoc }}</div>
  592. <el-form class="textBox">
  593. <el-form-item class="textTitle">
  594. <div style="font-size: 22px">
  595. {{ text.name }}
  596. </div>
  597. </el-form-item>
  598. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  599. <div v-html="text.url" class="textContent cont"></div>
  600. </el-form>
  601. </div>
  602. <div
  603. class="wheel"
  604. v-if="
  605. pptImgUrl1.indexOf(
  606. 'https://view.officeapps.live.com/op/view.aspx?src='
  607. ) != -1 && showType == 2
  608. "
  609. style="width: 95%; margin: 0 auto"
  610. >
  611. <iframe
  612. style="width: 100%; height: 100%; border: none"
  613. :src="pptImgUrl1"
  614. ></iframe>
  615. </div>
  616. <div
  617. class="wheel"
  618. v-else-if="showType == 2"
  619. style="width: 95%; margin: 0 auto"
  620. >
  621. <iframe
  622. style="width: 100%; height: 100%; border: none"
  623. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  624. :key="diffKey"
  625. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  626. :src="pptImgUrl1"
  627. ></iframe>
  628. <iframe
  629. style="width: 100%; height: 100%; border: none"
  630. security="restricted"
  631. v-else
  632. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  633. :src="pptImgUrl1"
  634. ></iframe>
  635. </div>
  636. <div
  637. class="wheel"
  638. v-if="showType === 16"
  639. style="width: 95%; margin: 0 auto"
  640. >
  641. <iframe
  642. style="width: 100%; height: 100%; border: none"
  643. :src="pptImgUrl1"
  644. ></iframe>
  645. </div>
  646. <div
  647. class="wheel"
  648. v-if="showType == 3"
  649. style="width: 95%; margin: 0 auto"
  650. >
  651. <pdf
  652. :pdfUrl="pptImgUrl1"
  653. style="width: 100%; height: 100%; overflow: auto"
  654. ></pdf>
  655. </div>
  656. <div
  657. class="wheel"
  658. v-if="showType == 4"
  659. style="width: 95%; margin: 0 auto"
  660. >
  661. <el-image
  662. :src="pptImgUrl1"
  663. fit="contain"
  664. style="width: 100%; height: 100%; cursor: pointer"
  665. @click="previewImg(pptImgUrl1)"
  666. ></el-image>
  667. </div>
  668. </div>
  669. <div
  670. class="pButton"
  671. style="position: absolute; right: 20px; top: 0; z-index: 998"
  672. v-if="!contentDialog"
  673. @click="setContent(true)"
  674. >
  675. <!-- 批 -->
  676. <img
  677. src="../../assets/icon/newIcons/isLeft.png"
  678. style="width: 45px"
  679. alt=""
  680. />
  681. </div>
  682. <div
  683. v-if="contentDialog == true"
  684. :style="{
  685. width:
  686. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  687. showType === ''
  688. ? 'calc(100%)'
  689. : '300px',
  690. margin:
  691. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  692. showType === ''
  693. ? '0 15px'
  694. : '0 15px 0 0',
  695. }"
  696. >
  697. <div
  698. class="vedioList"
  699. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  700. style="height: 650px"
  701. >
  702. <div class="navCorOpenBox">
  703. <div class="navTitile">{{ lang.ssContentList }}</div>
  704. <div class="navCorOpen" @click="setContent(false)">
  705. <img
  706. src="../../assets/icon/newIcons/isRight.png"
  707. alt=""
  708. />
  709. </div>
  710. </div>
  711. <div class="navBox">
  712. <div
  713. v-show="
  714. vChapterData[0].length > 0 || fileC[0].length > 0
  715. "
  716. style="padding: 10px 0 25px 0"
  717. >
  718. <div
  719. class="vedioTimeBox"
  720. v-for="(vitem, vindex) in vChapterData[0]"
  721. :key="vindex + '1'"
  722. >
  723. <div class="navListItem" v-if="vitem.type == 2">
  724. <div
  725. @click="lookVedio(vitem.url, vindex)"
  726. class="navText"
  727. :class="isClickNav == vindex ? 'isClickNav' : ''"
  728. >
  729. <span v-if="vitem.text">{{ vitem.text }}-</span
  730. >{{ vitem.name }}
  731. </div>
  732. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  733. <img
  734. src="../../assets/icon/newIcon/down.png"
  735. alt
  736. />
  737. </div> -->
  738. </div>
  739. <div class="navListItem" v-if="vitem.type == 6">
  740. <div
  741. @click="lookText(0, vindex)"
  742. class="navText"
  743. :class="isClickNav == vindex ? 'isClickNav' : ''"
  744. >
  745. {{ vitem.name }}.doc
  746. </div>
  747. <div
  748. class="downIcon"
  749. @click="checkFileFull1(vitem.type, vitem)"
  750. >
  751. <img
  752. src="../../assets/icon/newIcon/allScreen.png"
  753. alt
  754. />
  755. </div>
  756. </div>
  757. <div
  758. class="navListItem"
  759. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  760. >
  761. <div
  762. @click="doUrl(vitem.url, vindex)"
  763. class="navText"
  764. :class="isClickNav == vindex ? 'isClickNav' : ''"
  765. >
  766. {{ vitem.title ? vitem.title : vitem.url }}
  767. </div>
  768. <div
  769. class="downIcon"
  770. @click="checkFileFull1(vitem.type, vitem)"
  771. >
  772. <img
  773. src="../../assets/icon/newIcon/allScreen.png"
  774. alt
  775. />
  776. </div>
  777. </div>
  778. <div class="navListItem" v-if="vitem.type == 3">
  779. <div
  780. @click="downFile(vitem, vindex)"
  781. class="navText"
  782. :class="isClickNav == vindex ? 'isClickNav' : ''"
  783. >
  784. <span v-if="vitem.text">{{ vitem.text }}-</span
  785. >{{ vitem.name }}
  786. </div>
  787. <div
  788. class="downIcon"
  789. @click="checkFileFull1(vitem.type, vitem)"
  790. >
  791. <img
  792. src="../../assets/icon/newIcon/allScreen.png"
  793. alt
  794. />
  795. </div>
  796. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  797. <img
  798. src="../../assets/icon/newIcon/down.png"
  799. alt
  800. />
  801. </div> -->
  802. </div>
  803. <div class="navListItem" v-if="vitem.type == 12">
  804. <div class="navText" @click="downloadFile2(vitem)">
  805. <span v-if="vitem.text">{{ vitem.text }}-</span
  806. >{{ vitem.name }}
  807. </div>
  808. <div
  809. class="downIcon"
  810. @click="checkFileFull1(vitem.type, vitem)"
  811. >
  812. <img
  813. src="../../assets/icon/newIcon/allScreen.png"
  814. alt
  815. />
  816. </div>
  817. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  818. <img
  819. src="../../assets/icon/newIcon/down.png"
  820. alt
  821. />
  822. </div> -->
  823. </div>
  824. <div class="navListItem" v-if="vitem.type == 13">
  825. <div
  826. class="navText"
  827. @click="checkPhoto(vitem, vindex)"
  828. :class="isClickNav == vindex ? 'isClickNav' : ''"
  829. >
  830. {{ vitem.name }}
  831. </div>
  832. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  833. <img
  834. src="../../assets/icon/newIcon/down.png"
  835. alt
  836. />
  837. </div> -->
  838. </div>
  839. <div class="navListItem" v-if="vitem.type == 16">
  840. <div
  841. class="navText"
  842. @click="checkHtml(vitem, vindex)"
  843. :class="isClickNav == vindex ? 'isClickNav' : ''"
  844. >
  845. {{ vitem.name }}
  846. </div>
  847. <div
  848. class="downIcon"
  849. @click="checkFileFull1(vitem.type, vitem)"
  850. >
  851. <img
  852. src="../../assets/icon/newIcon/allScreen.png"
  853. alt
  854. />
  855. </div>
  856. </div>
  857. <div class="navListItem" v-if="vitem.type == 17">
  858. <div
  859. class="navText"
  860. @click="checkHtml(vitem, vindex)"
  861. :class="isClickNav == vindex ? 'isClickNav' : ''"
  862. >
  863. {{ vitem.name }}
  864. </div>
  865. <div
  866. class="downIcon"
  867. @click="checkFileFull1(vitem.type, vitem)"
  868. >
  869. <img
  870. src="../../assets/icon/newIcon/allScreen.png"
  871. alt
  872. />
  873. </div>
  874. </div>
  875. </div>
  876. <div class="fileC_box" v-if="fileC[0].length > 0">
  877. <div class="fileC_title">{{ lang.ssNoPreview }}</div>
  878. <div
  879. class="vedioTimeBox"
  880. v-for="(vitem, vindex) in fileC[0]"
  881. :key="vindex + '1'"
  882. >
  883. <div class="navListItem" v-if="vitem.type == 12">
  884. <div class="navText" style="color: #acb4bf">
  885. <span v-if="vitem.text">{{ vitem.text }}-</span
  886. >{{ vitem.name }}
  887. </div>
  888. <div
  889. class="downIcon"
  890. @click="downloadFile2(vitem)"
  891. >
  892. <img
  893. src="../../assets/icon/newIcon/down.png"
  894. alt
  895. />
  896. </div>
  897. </div>
  898. </div>
  899. </div>
  900. </div>
  901. </div>
  902. </div>
  903. </div>
  904. </div>
  905. <div style="width: calc(100% - 315px)">
  906. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  907. <!-- <el-button
  908. type="primary"
  909. class="newButton"
  910. @click="checkFileFull(showType, pptImgUrl1)"
  911. >全屏查看</el-button
  912. >
  913. <el-button
  914. type="primary"
  915. class="newButton"
  916. @click="downloadFile(pptImgUrl1)"
  917. v-if="showType != 2"
  918. >文件下载</el-button
  919. > -->
  920. <el-button
  921. v-if="
  922. showType == 2 &&
  923. pptImgUrl1.indexOf(
  924. 'https://view.officeapps.live.com/op/view.aspx?src='
  925. ) == -1
  926. "
  927. type="primary"
  928. class="newButton"
  929. @click="openLine(pptImgUrl1)"
  930. >{{ lang.ssOpenLink }}
  931. </el-button>
  932. </div>
  933. <!-- <div
  934. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  935. v-if="showType == 1"
  936. >
  937. <el-button
  938. type="primary"
  939. class="newButton"
  940. @click="checkFileFull(showType, text)"
  941. >全屏查看</el-button
  942. >
  943. </div> -->
  944. </div>
  945. </div>
  946. </div>
  947. <div class="student_body" v-resize="resize">
  948. <div
  949. class="vedioBox"
  950. :style="{
  951. borderRadius:
  952. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  953. .taskDetail == '' &&
  954. vChapterData[taskCount].length == 0 &&
  955. fileC[taskCount].length == 0
  956. ? '0 0 20px 20px'
  957. : '20px',
  958. }"
  959. v-if="
  960. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  961. .toolChoose[0].tool &&
  962. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  963. .toolChoose[0].tool.length > 0
  964. "
  965. >
  966. <div
  967. class="toolHeng2"
  968. style="position: relative"
  969. v-if="
  970. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  971. .toolChoose[0].tool &&
  972. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  973. .toolChoose[0].tool.length &&
  974. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  975. .toolChoose[0].tool.length > 0
  976. "
  977. >
  978. <div class="workNav">{{ lang.ssWorkArea }}</div>
  979. <div
  980. class="filebox"
  981. style="flex-wrap: nowrap"
  982. v-for="(tool, toolIndex) in chapInfoList[courseType]
  983. .chapterInfo[0].taskJson[taskCount].toolChoose"
  984. :key="toolIndex"
  985. >
  986. <div class="bzBox">
  987. <div class="yCss"></div>
  988. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  989. {{ lang.ssTool }}{{ toolIndex + 1 }}
  990. </div>
  991. <div
  992. v-if="timeWorkList[toolIndex].length > 0"
  993. style="margin: 0 0 0 10px"
  994. >
  995. {{
  996. timeWorkList[toolIndex][0].time
  997. ? lang.ssTimeLabel + timeWorkList[toolIndex][0].time
  998. : ""
  999. }}
  1000. </div>
  1001. </div>
  1002. <div class="toolBox">
  1003. <div>
  1004. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  1005. :key="indexTool"-->
  1006. <!-- <div class="iframeBox">
  1007. <div
  1008. class="addPoint isBorder"
  1009. v-for="(tooC, toolCIndex) in tool.tool"
  1010. :key="toolCIndex"
  1011. >
  1012. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  1013. <div
  1014. class="iframeName"
  1015. >
  1016. 电子白板
  1017. </div>
  1018. <iframe
  1019. src="https://iwb.cocorobo.cn/"
  1020. ref="whiteBoard"
  1021. ></iframe>
  1022. </div>
  1023. </div>
  1024. </div>-->
  1025. <div class="noiframeBox">
  1026. <div
  1027. class="addPoint"
  1028. v-for="(tooC, toolCIndex) in tool.tool"
  1029. :key="toolCIndex"
  1030. >
  1031. <div v-if="tooC == 1">
  1032. <img
  1033. src="../../assets/icon/secondToolList/whiteBoard.png"
  1034. alt
  1035. @click="addTools(tooC, toolIndex, taskCount)"
  1036. />
  1037. <div style="margin: 5px 0">{{ lang.ssWhiteboard }}</div>
  1038. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1039. style="position: absolute;right: 33px;top: -30px;">
  1040. {{ lang.ssAnalyze }}
  1041. </div>
  1042. </div>
  1043. <div v-if="tooC == 3">
  1044. <img
  1045. src="../../assets/icon/secondToolList/mindMapping.png"
  1046. alt
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. />
  1049. <div style="margin: 5px 0">{{ lang.ssMindMap }}</div>
  1050. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1051. style="position: absolute;right: 33px;top: -30px;">
  1052. {{ lang.ssAnalyze }}
  1053. </div>
  1054. </div>
  1055. <div v-if="tooC == 6">
  1056. <img
  1057. src="../../assets/icon/secondToolList/doc.png"
  1058. alt
  1059. @click="addTools(tooC, toolIndex, taskCount)"
  1060. />
  1061. <div style="margin: 5px 0">{{ lang.ssCoDoc }}</div>
  1062. </div>
  1063. <div v-if="tooC == 7">
  1064. <img
  1065. src="../../assets/icon/secondToolList/mindNetwork.png"
  1066. alt
  1067. @click="addTools(tooC, toolIndex, taskCount)"
  1068. />
  1069. <div style="margin: 5px 0">{{ lang.ssMindGrid }}</div>
  1070. <!-- && worksStudent[toolIndex].length>0 -->
  1071. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1072. style="position: absolute;right: 33px;top: -30px;">
  1073. {{ lang.ssAnalyze }}
  1074. </div>
  1075. </div>
  1076. <div v-if="tooC == 8">
  1077. <img
  1078. src="../../assets/icon/secondToolList/library.png"
  1079. alt
  1080. @click="addTools(tooC, toolIndex, taskCount)"
  1081. />
  1082. <div style="margin: 5px 0">{{ lang.ssMaterialLib }}</div>
  1083. </div>
  1084. <div v-if="tooC == 17">
  1085. <img
  1086. src="../../assets/icon/secondToolList/library.png"
  1087. alt
  1088. @click="addTools(tooC, toolIndex, taskCount)"
  1089. />
  1090. <div style="margin: 5px 0">{{ lang.ssLearningMaterial }}</div>
  1091. </div>
  1092. <div v-if="tooC == 2">
  1093. <img
  1094. @click="addTools(tooC, toolIndex, taskCount)"
  1095. src="../../assets/icon/secondToolList/note.png"
  1096. alt
  1097. />
  1098. <div style="margin: 5px 0">{{ lang.ssNote }}</div>
  1099. </div>
  1100. <div v-if="tooC == 4">
  1101. <img
  1102. @click="addTools(tooC, toolIndex, taskCount)"
  1103. src="../../assets/icon/thirdToolList/ask.png"
  1104. alt
  1105. />
  1106. <div style="margin: 5px 0">{{ lang.ssSurvey }}</div>
  1107. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1108. style="position: absolute;right: 153px;top: -30px;">
  1109. {{ lang.ssAnalyze }}
  1110. </div>
  1111. <div
  1112. class="upload_toolBtn"
  1113. v-if="tType === '1'"
  1114. @click="
  1115. openStatisticalAnalysis(
  1116. tooC,
  1117. toolIndex,
  1118. taskCount,
  1119. 45
  1120. )
  1121. "
  1122. style="position: absolute;right: 33px;top: -30px;"
  1123. >
  1124. {{ lang.ssStatisticalAnalysis }}
  1125. </div>
  1126. </div>
  1127. <div v-if="tooC == 45">
  1128. <img
  1129. @click="addTools(tooC, toolIndex, taskCount)"
  1130. src="../../assets/icon/thirdToolList/choose.png"
  1131. alt
  1132. />
  1133. <div style="margin: 5px 0">{{ lang.ssChoice }}</div>
  1134. <!-- &&worksStudent[toolIndex].length > 0 -->
  1135. <div
  1136. class="upload_toolBtn"
  1137. v-if="tType == 1"
  1138. @click="
  1139. openChoseWorksDetailDialog(
  1140. tooC,
  1141. toolIndex,
  1142. taskCount,45
  1143. )
  1144. "
  1145. style="position: absolute;right: 33px;top: -30px;"
  1146. >
  1147. {{ lang.ssAnalyze }}
  1148. </div>
  1149. </div>
  1150. <!-- <div v-if="tooC == 5">
  1151. <img
  1152. @click="addTools(tooC, toolIndex, taskCount)"
  1153. src="../../assets/icon/thirdToolList/score.png"
  1154. alt
  1155. />
  1156. <div style="margin: 5px 0">量规评分</div>
  1157. </div> -->
  1158. <div v-if="tooC == 10">
  1159. <img
  1160. @click="addTools(tooC, toolIndex, taskCount)"
  1161. src="../../assets/icon/thirdToolList/time.png"
  1162. alt
  1163. />
  1164. <div style="margin: 5px 0">{{ lang.ssCountdown }}</div>
  1165. </div>
  1166. <div v-if="tooC == 15">
  1167. <img
  1168. @click="addTools(tooC, toolIndex, taskCount)"
  1169. src="../../assets/icon/thirdToolList/answer.png"
  1170. alt
  1171. />
  1172. <div style="margin: 5px 0">{{ lang.ssQa }}</div>
  1173. <div class="upload_toolBtn" v-if="tType == 1"
  1174. :style="{ right: lang.lang == 'com' ? '220px' : '135px' }"
  1175. @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1176. style="position: absolute;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1177. {{ lang.ssAnalyze }}
  1178. </div>
  1179. </div>
  1180. <div v-if="tooC == 26">
  1181. <img
  1182. @click="addTools(tooC, toolIndex, taskCount)"
  1183. src="../../assets/icon/thirdToolList/courseDesign.png"
  1184. alt
  1185. />
  1186. <div style="margin: 5px 0">{{ lang.ssCourseDesign }}</div>
  1187. </div>
  1188. <div v-if="tooC == 18">
  1189. <img
  1190. @click="addTools(tooC, toolIndex, taskCount)"
  1191. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1192. alt
  1193. />
  1194. <div style="margin: 5px 0">{{ lang.ssTrainingServer }}</div>
  1195. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1196. style="position: absolute;right: 33px;top: -30px;">
  1197. {{ lang.ssAnalyze }}
  1198. </div>
  1199. </div>
  1200. <div v-if="tooC == 16">
  1201. <img
  1202. @click="addTools(tooC, toolIndex, taskCount)"
  1203. src="../../assets/icon/thirdToolList/work.png"
  1204. alt
  1205. />
  1206. <div style="margin: 5px 0">{{ lang.ssHomework }}</div>
  1207. </div>
  1208. <div v-if="tooC == 50">
  1209. <img
  1210. @click="addTools(tooC, toolIndex, taskCount)"
  1211. src="../../assets/icon/thirdToolList/plwork.png"
  1212. alt
  1213. />
  1214. <div style="margin: 5px 0">{{ lang.ssBatchUpload }}</div>
  1215. </div>
  1216. <div v-if="tooC == 21">
  1217. <img
  1218. @click="addTools(tooC, toolIndex, taskCount)"
  1219. src="../../assets/icon/fourthToolList/program.png"
  1220. alt
  1221. />
  1222. <div style="margin: 5px 0">AIoT Blockly</div>
  1223. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1224. style="position: absolute;right: 33px;top: -30px;">
  1225. {{ lang.ssAnalyze }}
  1226. </div>
  1227. </div>
  1228. <!-- <div v-if="tooC == 22">
  1229. <img
  1230. @click="addTools(tooC, toolIndex, taskCount)"
  1231. src="../../assets/icon/fourthToolList/program.png"
  1232. alt
  1233. />
  1234. <div style="margin: 5px 0">AI体验</div>
  1235. </div> -->
  1236. <div v-if="tooC == 23">
  1237. <img
  1238. @click="addTools(tooC, toolIndex, taskCount)"
  1239. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1240. alt
  1241. />
  1242. <div style="margin: 5px 0">AI Python</div>
  1243. </div>
  1244. <div v-if="tooC == 24">
  1245. <img
  1246. @click="addTools(tooC, toolIndex, taskCount)"
  1247. src="../../assets/icon/fourthToolList/AIprogram.png"
  1248. alt
  1249. />
  1250. <div style="margin: 5px 0">AI Blockly</div>
  1251. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1252. style="position: absolute;right: 33px;top: -30px;">
  1253. {{ lang.ssAnalyze }}
  1254. </div>
  1255. </div>
  1256. <div v-if="tooC == 25">
  1257. <img
  1258. @click="addTools(tooC, toolIndex, taskCount)"
  1259. src="../../assets/icon/thirdToolList/evalua.png"
  1260. alt
  1261. />
  1262. <div style="margin: 5px 0">{{ lang.ssGoalManage }}</div>
  1263. </div>
  1264. <div v-if="tooC == 31">
  1265. <img
  1266. @click="addTools(tooC, toolIndex, taskCount)"
  1267. src="../../assets/icon/secondToolList/networkPanel.png"
  1268. alt
  1269. />
  1270. <div style="margin: 5px 0">{{ lang.ssMathBoard }}</div>
  1271. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1272. style="position: absolute;right: 33px;top: -30px;">
  1273. {{ lang.ssAnalyze }}
  1274. </div>
  1275. </div>
  1276. <div v-if="tooC == 28">
  1277. <img
  1278. @click="addTools(tooC, toolIndex, taskCount)"
  1279. src="../../assets/icon/secondToolList/translation.png"
  1280. alt
  1281. />
  1282. <div style="margin: 5px 0">{{ lang.ssTranslate }}</div>
  1283. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1284. style="position: absolute;right: 33px;top: -30px;">
  1285. {{ lang.ssAnalyze }}
  1286. </div>
  1287. </div>
  1288. <div v-if="tooC == 37">
  1289. <img
  1290. @click="addTools(tooC, toolIndex, taskCount)"
  1291. src="../../assets/icon/secondToolList/mohe.png"
  1292. alt
  1293. />
  1294. <div style="margin: 5px 0">{{ lang.ssMohe }}</div>
  1295. </div>
  1296. <div v-if="tooC == 38">
  1297. <img
  1298. @click="addTools(tooC, toolIndex, taskCount)"
  1299. src="../../assets/icon/secondToolList/24game.png"
  1300. alt
  1301. />
  1302. <div style="margin: 5px 0">{{ lang.ss24Game }}</div>
  1303. </div>
  1304. <div v-if="tooC == 39">
  1305. <img
  1306. @click="addTools(tooC, toolIndex, taskCount)"
  1307. src="../../assets/icon/secondToolList/GeoGebra.png"
  1308. alt
  1309. />
  1310. <div style="margin: 5px 0">GeoGebra</div>
  1311. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1312. style="position: absolute;right: 33px;top: -30px;">
  1313. {{ lang.ssAnalyze }}
  1314. </div>
  1315. </div>
  1316. <div v-if="tooC == 32">
  1317. <img
  1318. @click="addTools(tooC, toolIndex, taskCount)"
  1319. src="../../assets/icon/thirdToolList/code.png"
  1320. alt
  1321. />
  1322. <div style="margin: 5px 0">{{ lang.ssCodeEdit }}</div>
  1323. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1324. style="position: absolute;right: 153px;top: -42px;">
  1325. {{ lang.ssAnalyze }}
  1326. </div>
  1327. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1328. style="position: absolute;left: 110px;bottom: 30px;">
  1329. 上传文件
  1330. <input type="file" accept="*" style="display: none"
  1331. @change="beforeUpload1($event, 7, toolIndex)" />
  1332. </div> -->
  1333. </div>
  1334. <div v-if="tooC == 40">
  1335. <img
  1336. @click="addTools(tooC, toolIndex, taskCount)"
  1337. src="../../assets/icon/secondToolList/eval.png"
  1338. alt
  1339. />
  1340. <div style="margin: 5px 0">{{ lang.ssPersonalEval }}</div>
  1341. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1342. style="position: absolute;right: 33px;top: -30px;">
  1343. {{ lang.ssAnalyze }}
  1344. </div>
  1345. </div>
  1346. <div v-if="tooC == 41">
  1347. <img
  1348. @click="addTools(tooC, toolIndex, taskCount)"
  1349. src="../../assets/icon/thirdToolList/select.png"
  1350. alt
  1351. />
  1352. <div style="margin: 5px 0">{{ lang.ssMatch }}</div>
  1353. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1354. style="position: absolute;right: 33px;top: -30px;">
  1355. {{ lang.ssAnalyze }}
  1356. </div>
  1357. </div>
  1358. <div v-if="tooC == 44">
  1359. <img
  1360. @click="addTools(tooC, toolIndex, taskCount)"
  1361. src="../../assets/icon/thirdToolList/hanClass.png"
  1362. alt
  1363. />
  1364. <div style="margin: 5px 0">{{ lang.ssHanziPalace }}</div>
  1365. </div>
  1366. <div v-if="tooC == 47">
  1367. <img
  1368. @click="addTools(tooC, toolIndex, taskCount)"
  1369. src="../../assets/icon/fourthToolList/conSentences.png"
  1370. alt
  1371. />
  1372. <div style="margin: 5px 0">{{ lang.ssSort }}</div>
  1373. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1374. style="position: absolute;right: 33px;top: -30px;">
  1375. {{ lang.ssAnalyze }}
  1376. </div>
  1377. </div>
  1378. <div v-if="tooC == 48">
  1379. <img
  1380. @click="addTools(tooC, toolIndex, taskCount)"
  1381. src="../../assets/icon/fourthToolList/table.png"
  1382. alt
  1383. />
  1384. <div style="margin: 5px 0">{{ lang.ssTable }}</div>
  1385. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1386. style="position: absolute;right: 33px;top: -30px;">
  1387. {{ lang.ssAnalyze }}
  1388. </div>
  1389. </div>
  1390. <div v-if="tooC == 52">
  1391. <img
  1392. @click="addTools(tooC, toolIndex, taskCount)"
  1393. src="../../assets/icon/fourthToolList/text.png"
  1394. alt
  1395. />
  1396. <div style="margin: 5px 0">{{ lang.ssDocument }}</div>
  1397. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1398. style="position: absolute;right: 33px;top: -30px;">
  1399. {{ lang.ssAnalyze }}
  1400. </div>
  1401. </div>
  1402. <div v-if="tooC == 49">
  1403. <img
  1404. @click="addTools(tooC, toolIndex, taskCount)"
  1405. src="../../assets/icon/fourthToolList/group.png"
  1406. alt
  1407. />
  1408. <div style="margin: 5px 0">{{ lang.ssStudentGroup }}</div>
  1409. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1410. style="position: absolute;right: 33px;top: -30px;">
  1411. {{ lang.ssAnalyze }}
  1412. </div>
  1413. </div>
  1414. <div v-if="tooC == 57">
  1415. <img
  1416. @click="addTools(tooC, toolIndex, taskCount)"
  1417. src="../../assets/icon/fourthToolList/cocopi.png"
  1418. alt
  1419. />
  1420. <div style="margin: 5px 0">CocoPi</div>
  1421. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1422. style="position: absolute;right: 33px;top: -30px;">
  1423. {{ lang.ssAnalyze }}
  1424. </div>
  1425. </div>
  1426. <div v-if="tooC == 58">
  1427. <img
  1428. @click="addTools(tooC, toolIndex, taskCount)"
  1429. src="../../assets/icon/fourthToolList/car.png"
  1430. alt
  1431. />
  1432. <div style="margin: 5px 0">{{ lang.ssSimulateDrive }}</div>
  1433. </div>
  1434. <div v-if="tooC == 59">
  1435. <img
  1436. @click="addTools(tooC, toolIndex, taskCount)"
  1437. src="../../assets/icon/fourthToolList/lineSearch.png"
  1438. alt
  1439. />
  1440. <div style="margin: 5px 0">{{ lang.ssPathSearch }}</div>
  1441. </div>
  1442. <div v-if="tooC == 60">
  1443. <img
  1444. @click="addTools(tooC, toolIndex, taskCount)"
  1445. src="../../assets/icon/fourthToolList/deepLearning.png"
  1446. alt
  1447. />
  1448. <div style="margin: 5px 0">{{ lang.ssDeepLearning }}</div>
  1449. </div>
  1450. <div v-if="tooC == 61">
  1451. <img
  1452. @click="addTools(tooC, toolIndex, taskCount)"
  1453. src="../../assets/icon/fourthToolList/allHistory.png"
  1454. alt
  1455. />
  1456. <div style="margin: 5px 0">{{ lang.ssAllHistory }}</div>
  1457. </div>
  1458. <div v-if="tooC == 62">
  1459. <img
  1460. @click="addTools(tooC, toolIndex, taskCount)"
  1461. src="../../assets/icon/fourthToolList/interVideo.png"
  1462. alt
  1463. />
  1464. <div style="margin: 5px 0">{{ lang.ssInteractiveVideo }}</div>
  1465. </div>
  1466. <div v-if="tooC == 63">
  1467. <img
  1468. @click="addTools(tooC, toolIndex, taskCount)"
  1469. src="../../assets/icon/fourthToolList/Wood.png"
  1470. alt
  1471. />
  1472. <div style="margin: 5px 0">{{ lang.ssTurtle }}</div>
  1473. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1474. style="position: absolute;right: 33px;top: -30px;">
  1475. {{ lang.ssAnalyze }}
  1476. </div>
  1477. </div>
  1478. <div v-if="tooC == 71">
  1479. <img
  1480. @click="addTools(tooC, toolIndex, taskCount)"
  1481. src="../../assets/icon/fourthToolList/chatgpt.png"
  1482. alt
  1483. />
  1484. <div style="margin: 5px 0">{{ lang.ssAiAgent }}</div>
  1485. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1486. style="position: absolute;right: 33px;top: -30px;">
  1487. {{ lang.ssAnalyze }}
  1488. </div>
  1489. </div>
  1490. <div v-if="tooC == 72">
  1491. <img
  1492. style="height: 85px;object-fit: cover;"
  1493. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1494. @click="addTools(tooC, toolIndex, taskCount)"
  1495. :src="tool.appJson.json.icon"
  1496. alt
  1497. />
  1498. <img
  1499. v-else
  1500. @click="addTools(tooC, toolIndex, taskCount)"
  1501. src="../../assets/icon/firstToolList/appStore.png"
  1502. alt
  1503. />
  1504. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : lang.ssAppCenter" placement="top" effect="dark">
  1505. <!-- content to trigger tooltip here -->
  1506. <div class="Ovh">
  1507. {{tool.appJson && tool.appJson.name ? tool.appJson.name : lang.ssAppCenter}}
  1508. </div>
  1509. </el-tooltip>
  1510. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1511. style="position: absolute;right: 33px;top: -30px;">
  1512. {{ lang.ssAnalyze }}
  1513. </div>
  1514. </div>
  1515. <div v-if="tooC == 65">
  1516. <img
  1517. @click="addTools(tooC, toolIndex, taskCount)"
  1518. src="../../assets/icon/firstToolList/pickPeople.png"
  1519. alt
  1520. />
  1521. <div style="margin: 5px 0">{{ lang.ssPickPerson }}</div>
  1522. </div>
  1523. <div v-if="tooC == 66">
  1524. <img
  1525. @click="addTools(tooC, toolIndex, taskCount)"
  1526. src="../../assets/icon/secondToolList/formulaEdi.png"
  1527. alt
  1528. />
  1529. <div style="margin: 5px 0">{{ lang.ssFormula }}</div>
  1530. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,36)"
  1531. style="position: absolute;right: 33px;top: -30px;">
  1532. {{ lang.ssAnalyze }}
  1533. </div>
  1534. </div>
  1535. <div v-if="tooC == 67">
  1536. <img
  1537. @click="addTools(tooC, toolIndex, taskCount)"
  1538. src="../../assets/icon/secondToolList/molStr.png"
  1539. alt
  1540. />
  1541. <div style="margin: 5px 0">{{ lang.ssMolecule }}</div>
  1542. </div>
  1543. <div v-if="tooC == 68">
  1544. <img
  1545. @click="addTools(tooC, toolIndex, taskCount)"
  1546. src="../../assets/icon/secondToolList/timeAxis.png"
  1547. alt
  1548. />
  1549. <div style="margin: 5px 0">{{ lang.ssTimeline }}</div>
  1550. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1551. style="position: absolute;right: 33px;top: -30px;">
  1552. 分析
  1553. </div> -->
  1554. </div>
  1555. <div v-if="tooC == 69">
  1556. <img
  1557. @click="addTools(tooC, toolIndex, taskCount)"
  1558. src="../../assets/icon/secondToolList/english.png"
  1559. alt
  1560. />
  1561. <div style="margin: 5px 0">{{ lang.ssEnglishWrite }}</div>
  1562. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1563. style="position: absolute;right: 33px;top: -30px;">
  1564. {{ lang.ssAnalyze }}
  1565. </div>
  1566. </div>
  1567. <div v-if="tooC == 70">
  1568. <img
  1569. @click="addTools(tooC, toolIndex, taskCount)"
  1570. src="../../assets/icon/thirdToolList/englishVoice.png"
  1571. alt
  1572. />
  1573. <div style="margin: 5px 0">{{ lang.ssEnglishSpeak }}</div>
  1574. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1575. style="position: absolute;right: 33px;top: -30px;">
  1576. {{ lang.ssAnalyze }}
  1577. </div>
  1578. </div>
  1579. </div>
  1580. </div>
  1581. </div>
  1582. <div
  1583. class="tooldetail renderedFor"
  1584. v-if="tool.toolDetail != ''"
  1585. :class="{
  1586. isUpdateToolDetailClass: toolDetailIndex == toolIndex
  1587. }"
  1588. >
  1589. <!-- <div class="toolTitle">工具描述</div> -->
  1590. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1591. <div
  1592. style="height:100%;"
  1593. v-html="tool.toolDetail"
  1594. v-if="toolDetailIndex != toolIndex"
  1595. ></div>
  1596. <div v-else @click.stop="" style="height:100%;">
  1597. <textarea
  1598. @change="
  1599. () => {
  1600. $forceUpdate();
  1601. }
  1602. "
  1603. class="checkTextArea"
  1604. rows="3"
  1605. v-autoHeight="70"
  1606. type="text"
  1607. :placeholder="lang.ssEnterTaskDesc"
  1608. v-model="updateToolDetailInner"
  1609. ></textarea>
  1610. </div>
  1611. </div>
  1612. <el-button
  1613. type="primary"
  1614. v-if="tool.tool[0] == 32"
  1615. style="position: absolute; right: 30px; top: -45px"
  1616. @click="addImg($event)"
  1617. >{{ lang.ssUploadHomework }}<input
  1618. type="file"
  1619. accept="*"
  1620. style="display: none"
  1621. @change="beforeUpload1($event, 7, toolIndex)"
  1622. /></el-button>
  1623. <el-button
  1624. type="primary"
  1625. v-if="tool.tool[0] == 15"
  1626. style="position: absolute; right: 30px; top: -45px"
  1627. @click="openWordCloud(toolIndex)"
  1628. >{{ lang.ssGenerateWordCloud }}</el-button
  1629. >
  1630. <el-button
  1631. type="primary"
  1632. v-if="
  1633. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1634. "
  1635. style="position: absolute; right: 30px; top: -45px"
  1636. @click="uploadWorks(toolIndex)"
  1637. >{{ lang.ssExportHomework }}</el-button
  1638. >
  1639. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1640. position: absolute;
  1641. right: 30px;
  1642. transform: translateY(-130%);
  1643. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1644. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1645. </div>
  1646. <div
  1647. v-if="
  1648. tType &&
  1649. tType == 2 &&
  1650. !sIsOpen &&
  1651. tool.tool.indexOf(16) != -1
  1652. "
  1653. class="worksBox"
  1654. >
  1655. <div
  1656. class="zuoyeYulan"
  1657. v-if="workStudent[toolIndex].length > 0"
  1658. >
  1659. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  1660. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">{{ lang.ssMyEvaluation }}</el-button> -->
  1661. </div>
  1662. <div
  1663. class="worksDetailBox"
  1664. v-if="workStudent[toolIndex].length > 0"
  1665. >
  1666. <div
  1667. class="works"
  1668. style="
  1669. width: 200px;
  1670. height: 140px;
  1671. margin: 10px 10px 10px 0;
  1672. box-shadow: 0 0 6px 1px #dfdada;
  1673. "
  1674. v-for="(w, wIndex) in workStudent[toolIndex]"
  1675. :key="wIndex"
  1676. >
  1677. <div class="workImg" v-if="w.type == 0">
  1678. <img
  1679. :src="w.works"
  1680. @click="previewImg(w.works, w)"
  1681. alt
  1682. />
  1683. <div
  1684. class="answerScore"
  1685. v-if="w.score"
  1686. @click.stop="openScore(w)"
  1687. :class="{
  1688. rightW:
  1689. w.userid == userid || tType == 1 || tType == 4
  1690. }"
  1691. >
  1692. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1693. </div>
  1694. <div
  1695. class="answerScore"
  1696. @click.stop="openScore(w)"
  1697. v-else-if="courseDetail.userid == userid"
  1698. :class="{
  1699. rightW:
  1700. w.userid == userid || tType == 1 || tType == 4
  1701. }"
  1702. >
  1703. {{ lang.ssMarkScore }}
  1704. </div>
  1705. <div
  1706. class="stuLookScore"
  1707. v-if="
  1708. w.userid == userid ||
  1709. (tType == 1 &&
  1710. courseDetail.state == 6 &&
  1711. ((chapInfoList[courseType].chapterInfo[0]
  1712. .taskJson[taskCount].eList &&
  1713. chapInfoList[courseType].chapterInfo[0]
  1714. .taskJson[taskCount].eList.length) ||
  1715. (tool.eList && tool.eList.length)))
  1716. "
  1717. >
  1718. <el-popover
  1719. placement="top"
  1720. width="318"
  1721. trigger="hover"
  1722. >
  1723. <markScore
  1724. :loading="AIloading[toolIndex][wIndex].loading"
  1725. :markScoreVisible="markScoreVisible"
  1726. :ref="`markSco${toolIndex}${wIndex}`"
  1727. @updateLoading="updateLoading"
  1728. @updateDocSco="updateDocSco"
  1729. @refreshOther="refreshOther"
  1730. @markScoreDig="markScoreDig"
  1731. :tool="tool"
  1732. :wIndex="wIndex"
  1733. :scoCon="w"
  1734. :toolIndex="toolIndex"
  1735. :key="refreshKey"
  1736. :stage="courseType"
  1737. :task="taskCount"
  1738. :scoTit="
  1739. chapInfoList[courseType].chapterInfo[0]
  1740. .taskJson[taskCount].eList
  1741. "
  1742. >
  1743. </markScore>
  1744. <div
  1745. @click="
  1746. markScoreDig2(
  1747. w.sName,
  1748. worksStudent,
  1749. w.userid,
  1750. toolIndex,
  1751. chapInfoList[courseType].chapterInfo[0]
  1752. .taskJson[taskCount].eList,
  1753. AIloading[toolIndex][wIndex].loading,
  1754. tool
  1755. )
  1756. "
  1757. slot="reference"
  1758. >
  1759. <span v-if="AIloading[toolIndex][wIndex].sco">
  1760. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  1761. </span>
  1762. <span v-else>
  1763. {{ lang.ssMarkScore }}
  1764. </span>
  1765. </div>
  1766. </el-popover>
  1767. </div>
  1768. <img
  1769. class="deleteImg"
  1770. src="../../assets/deleteworks.png"
  1771. v-if="
  1772. w.userid == userid || tType == 1 || tType == 4
  1773. "
  1774. @click.stop="deleteWorks(w.wid)"
  1775. alt
  1776. />
  1777. </div>
  1778. <div class="workImg" v-if="w.type == 1">
  1779. <img :src="word" @click="openFile(w.works)" alt />
  1780. <div
  1781. class="answerScore"
  1782. v-if="w.score"
  1783. @click.stop="openScore(w)"
  1784. :class="{
  1785. rightW:
  1786. w.userid == userid || tType == 1 || tType == 4
  1787. }"
  1788. >
  1789. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1790. </div>
  1791. <div
  1792. class="answerScore"
  1793. @click.stop="openScore(w)"
  1794. v-else-if="courseDetail.userid == userid"
  1795. :class="{
  1796. rightW:
  1797. w.userid == userid || tType == 1 || tType == 4
  1798. }"
  1799. >
  1800. {{ lang.ssMarkScore }}
  1801. </div>
  1802. <div
  1803. class="stuLookScore"
  1804. v-if="
  1805. w.userid == userid ||
  1806. (tType == 1 &&
  1807. courseDetail.state == 6 &&
  1808. ((chapInfoList[courseType].chapterInfo[0]
  1809. .taskJson[taskCount].eList &&
  1810. chapInfoList[courseType].chapterInfo[0]
  1811. .taskJson[taskCount].eList.length) ||
  1812. (tool.eList && tool.eList.length)))
  1813. "
  1814. >
  1815. <el-popover
  1816. placement="top"
  1817. width="318"
  1818. trigger="hover"
  1819. >
  1820. <markScore
  1821. :loading="AIloading[toolIndex][wIndex].loading"
  1822. :markScoreVisible="markScoreVisible"
  1823. :ref="`markSco${toolIndex}${wIndex}`"
  1824. @updateLoading="updateLoading"
  1825. @updateDocSco="updateDocSco"
  1826. @refreshOther="refreshOther"
  1827. @markScoreDig="markScoreDig"
  1828. :tool="tool"
  1829. :wIndex="wIndex"
  1830. :scoCon="w"
  1831. :toolIndex="toolIndex"
  1832. :key="refreshKey"
  1833. :stage="courseType"
  1834. :task="taskCount"
  1835. :scoTit="
  1836. chapInfoList[courseType].chapterInfo[0]
  1837. .taskJson[taskCount].eList
  1838. "
  1839. >
  1840. </markScore>
  1841. <div
  1842. @click="
  1843. markScoreDig2(
  1844. w.sName,
  1845. worksStudent,
  1846. w.userid,
  1847. toolIndex,
  1848. chapInfoList[courseType].chapterInfo[0]
  1849. .taskJson[taskCount].eList,
  1850. AIloading[toolIndex][wIndex].loading,
  1851. tool
  1852. )
  1853. "
  1854. slot="reference"
  1855. >
  1856. <span v-if="AIloading[toolIndex][wIndex].sco">
  1857. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  1858. </span>
  1859. <span v-else>
  1860. {{ lang.ssMarkScore }}
  1861. </span>
  1862. </div>
  1863. </el-popover>
  1864. </div>
  1865. <img
  1866. class="deleteImg"
  1867. src="../../assets/deleteworks.png"
  1868. v-if="
  1869. w.userid == userid || tType == 1 || tType == 4
  1870. "
  1871. @click.stop="deleteWorks(w.wid)"
  1872. alt
  1873. />
  1874. </div>
  1875. <div class="workImg" v-if="w.type == 3">
  1876. <img
  1877. style="cursor: pointer"
  1878. :src="video"
  1879. @click="openVideo(w)"
  1880. alt
  1881. />
  1882. <div
  1883. class="answerScore"
  1884. v-if="w.score"
  1885. @click.stop="openScore(w)"
  1886. :class="{
  1887. rightW:
  1888. w.userid == userid || tType == 1 || tType == 4
  1889. }"
  1890. >
  1891. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1892. </div>
  1893. <div
  1894. class="answerScore"
  1895. @click.stop="openScore(w)"
  1896. v-else-if="courseDetail.userid == userid"
  1897. :class="{
  1898. rightW:
  1899. w.userid == userid || tType == 1 || tType == 4
  1900. }"
  1901. >
  1902. {{ lang.ssMarkScore }}
  1903. </div>
  1904. <div
  1905. class="stuLookScore"
  1906. v-if="
  1907. w.userid == userid ||
  1908. (tType == 1 &&
  1909. courseDetail.state == 6 &&
  1910. ((chapInfoList[courseType].chapterInfo[0]
  1911. .taskJson[taskCount].eList &&
  1912. chapInfoList[courseType].chapterInfo[0]
  1913. .taskJson[taskCount].eList.length) ||
  1914. (tool.eList && tool.eList.length)))
  1915. "
  1916. >
  1917. <el-popover
  1918. placement="top"
  1919. width="318"
  1920. trigger="hover"
  1921. >
  1922. <markScore
  1923. :loading="AIloading[toolIndex][wIndex].loading"
  1924. :markScoreVisible="markScoreVisible"
  1925. :ref="`markSco${toolIndex}${wIndex}`"
  1926. @updateLoading="updateLoading"
  1927. @updateDocSco="updateDocSco"
  1928. @refreshOther="refreshOther"
  1929. @markScoreDig="markScoreDig"
  1930. :tool="tool"
  1931. :wIndex="wIndex"
  1932. :scoCon="w"
  1933. :toolIndex="toolIndex"
  1934. :key="refreshKey"
  1935. :stage="courseType"
  1936. :task="taskCount"
  1937. :scoTit="
  1938. chapInfoList[courseType].chapterInfo[0]
  1939. .taskJson[taskCount].eList
  1940. "
  1941. >
  1942. </markScore>
  1943. <div
  1944. @click="
  1945. markScoreDig2(
  1946. w.sName,
  1947. worksStudent,
  1948. w.userid,
  1949. toolIndex,
  1950. chapInfoList[courseType].chapterInfo[0]
  1951. .taskJson[taskCount].eList,
  1952. AIloading[toolIndex][wIndex].loading,
  1953. tool
  1954. )
  1955. "
  1956. slot="reference"
  1957. >
  1958. <span v-if="AIloading[toolIndex][wIndex].sco">
  1959. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  1960. </span>
  1961. <span v-else>
  1962. {{ lang.ssMarkScore }}
  1963. </span>
  1964. </div>
  1965. </el-popover>
  1966. </div>
  1967. <img
  1968. class="deleteImg"
  1969. src="../../assets/deleteworks.png"
  1970. v-if="
  1971. w.userid == userid || tType == 1 || tType == 4
  1972. "
  1973. @click.stop="deleteWorks(w.wid)"
  1974. alt
  1975. />
  1976. </div>
  1977. <div class="workImg" v-if="w.type == 12">
  1978. <img
  1979. style="cursor: pointer"
  1980. :src="word2"
  1981. @click="downloadFile(w.works,w.userid)"
  1982. alt
  1983. />
  1984. <div
  1985. class="answerScore"
  1986. v-if="w.score"
  1987. @click.stop="openScore(w)"
  1988. :class="{
  1989. rightW:
  1990. w.userid == userid || tType == 1 || tType == 4
  1991. }"
  1992. >
  1993. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  1994. </div>
  1995. <div
  1996. class="answerScore"
  1997. @click.stop="openScore(w)"
  1998. v-else-if="courseDetail.userid == userid"
  1999. :class="{
  2000. rightW:
  2001. w.userid == userid || tType == 1 || tType == 4
  2002. }"
  2003. >
  2004. {{ lang.ssMarkScore }}
  2005. </div>
  2006. <div
  2007. class="stuLookScore"
  2008. v-if="
  2009. w.userid == userid ||
  2010. (tType == 1 &&
  2011. courseDetail.state == 6 &&
  2012. ((chapInfoList[courseType].chapterInfo[0]
  2013. .taskJson[taskCount].eList &&
  2014. chapInfoList[courseType].chapterInfo[0]
  2015. .taskJson[taskCount].eList.length) ||
  2016. (tool.eList && tool.eList.length)))
  2017. "
  2018. >
  2019. <el-popover
  2020. placement="top"
  2021. width="318"
  2022. trigger="hover"
  2023. >
  2024. <markScore
  2025. :loading="AIloading[toolIndex][wIndex].loading"
  2026. :markScoreVisible="markScoreVisible"
  2027. :ref="`markSco${toolIndex}${wIndex}`"
  2028. @updateLoading="updateLoading"
  2029. @updateDocSco="updateDocSco"
  2030. @refreshOther="refreshOther"
  2031. @markScoreDig="markScoreDig"
  2032. :tool="tool"
  2033. :wIndex="wIndex"
  2034. :scoCon="w"
  2035. :toolIndex="toolIndex"
  2036. :key="refreshKey"
  2037. :stage="courseType"
  2038. :task="taskCount"
  2039. :scoTit="
  2040. chapInfoList[courseType].chapterInfo[0]
  2041. .taskJson[taskCount].eList
  2042. "
  2043. >
  2044. </markScore>
  2045. <div
  2046. @click="
  2047. markScoreDig2(
  2048. w.sName,
  2049. worksStudent,
  2050. w.userid,
  2051. toolIndex,
  2052. chapInfoList[courseType].chapterInfo[0]
  2053. .taskJson[taskCount].eList,
  2054. AIloading[toolIndex][wIndex].loading,
  2055. tool
  2056. )
  2057. "
  2058. slot="reference"
  2059. >
  2060. <span v-if="AIloading[toolIndex][wIndex].sco">
  2061. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  2062. </span>
  2063. <span v-else>
  2064. {{ lang.ssMarkScore }}
  2065. </span>
  2066. </div>
  2067. </el-popover>
  2068. </div>
  2069. <img
  2070. class="deleteImg"
  2071. src="../../assets/deleteworks.png"
  2072. v-if="
  2073. w.userid == userid || tType == 1 || tType == 4
  2074. "
  2075. @click.stop="deleteWorks(w.wid)"
  2076. alt
  2077. />
  2078. </div>
  2079. <div class="worksName">
  2080. <div>{{ w.sName }}</div>
  2081. </div>
  2082. </div>
  2083. </div>
  2084. </div>
  2085. <div
  2086. v-if="
  2087. tType &&
  2088. tType == 2 &&
  2089. !sIsOpen &&
  2090. tool.tool.indexOf(32) != -1
  2091. "
  2092. class="worksBox"
  2093. >
  2094. <div
  2095. class="zuoyeYulan"
  2096. v-if="workStudent[toolIndex].length > 0"
  2097. >
  2098. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2099. </div>
  2100. <div
  2101. class="worksDetailBox"
  2102. v-if="workStudent[toolIndex].length > 0"
  2103. >
  2104. <div
  2105. class="works"
  2106. style="
  2107. width: 200px;
  2108. height: 140px;
  2109. margin: 10px 10px 10px 0;
  2110. box-shadow: 0 0 6px 1px #dfdada;
  2111. "
  2112. v-for="(w, wIndex) in workStudent[toolIndex]"
  2113. :key="wIndex"
  2114. >
  2115. <div class="workImg">
  2116. <img
  2117. :src="word2"
  2118. @click="downloadFile(w.works,w.userid)"
  2119. alt
  2120. />
  2121. <div
  2122. class="answerScore"
  2123. v-if="w.score"
  2124. @click.stop="openScore(w)"
  2125. :class="{
  2126. rightW:
  2127. w.userid == userid || tType == 1 || tType == 4
  2128. }"
  2129. >
  2130. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2131. </div>
  2132. <div
  2133. class="answerScore"
  2134. @click.stop="openScore(w)"
  2135. v-else-if="courseDetail.userid == userid"
  2136. :class="{
  2137. rightW:
  2138. w.userid == userid || tType == 1 || tType == 4
  2139. }"
  2140. >
  2141. {{ lang.ssMarkScore }}
  2142. </div>
  2143. <img
  2144. class="deleteImg"
  2145. src="../../assets/deleteworks.png"
  2146. v-if="
  2147. w.userid == userid || tType == 1 || tType == 4
  2148. "
  2149. @click.stop="deleteWorks(w.wid)"
  2150. alt
  2151. />
  2152. </div>
  2153. <div class="worksName">
  2154. <div>{{ w.sName }}</div>
  2155. </div>
  2156. </div>
  2157. </div>
  2158. </div>
  2159. <div
  2160. v-if="
  2161. tType &&
  2162. tType == 2 &&
  2163. !sIsOpen &&
  2164. tool.tool.indexOf(57) != -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. </div>
  2174. <div
  2175. class="worksDetailBox"
  2176. v-if="workStudent[toolIndex].length > 0"
  2177. >
  2178. <div
  2179. class="works"
  2180. style="
  2181. width: 200px;
  2182. height: 140px;
  2183. margin: 10px 10px 10px 0;
  2184. box-shadow: 0 0 6px 1px #dfdada;
  2185. "
  2186. v-for="(w, wIndex) in workStudent[toolIndex]"
  2187. :key="wIndex"
  2188. >
  2189. <div class="workImg">
  2190. <img
  2191. :src="word2"
  2192. @click="downloadFile(w.works,w.userid)"
  2193. v-if="w.type == 12"
  2194. alt
  2195. />
  2196. <img
  2197. :src="word2"
  2198. @click="
  2199. openCocoPi(57, toolIndex, w.userid, w.sName)
  2200. "
  2201. v-else-if="w.type == 15"
  2202. alt
  2203. />
  2204. <div
  2205. class="answerScore"
  2206. v-if="w.score"
  2207. @click.stop="openScore(w)"
  2208. :class="{
  2209. rightW:
  2210. w.userid == userid || tType == 1 || tType == 4
  2211. }"
  2212. >
  2213. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2214. </div>
  2215. <div
  2216. class="answerScore"
  2217. @click.stop="openScore(w)"
  2218. v-else-if="courseDetail.userid == userid"
  2219. :class="{
  2220. rightW:
  2221. w.userid == userid || tType == 1 || tType == 4
  2222. }"
  2223. >
  2224. {{ lang.ssMarkScore }}
  2225. </div>
  2226. <img
  2227. class="deleteImg"
  2228. src="../../assets/deleteworks.png"
  2229. v-if="
  2230. w.userid == userid || tType == 1 || tType == 4
  2231. "
  2232. @click.stop="deleteWorks(w.wid)"
  2233. alt
  2234. />
  2235. </div>
  2236. <div class="worksName">
  2237. <div>{{ w.sName }}</div>
  2238. </div>
  2239. </div>
  2240. </div>
  2241. </div>
  2242. <div
  2243. v-if="
  2244. tType &&
  2245. tType == 2 &&
  2246. !sIsOpen &&
  2247. tool.tool.indexOf(4) != -1
  2248. "
  2249. class="worksBox"
  2250. >
  2251. <div
  2252. class="zuoyeYulan"
  2253. v-if="workStudent[toolIndex].length > 0"
  2254. >
  2255. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2256. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">{{ lang.ssMyEvaluation }}</el-button> -->
  2257. </div>
  2258. <div
  2259. class="worksDetailBox"
  2260. v-if="workStudent[toolIndex].length > 0"
  2261. >
  2262. <div
  2263. class="isWorksName2"
  2264. v-for="(w, wIndex) in workStudent[toolIndex]"
  2265. :key="wIndex"
  2266. @click="
  2267. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2268. "
  2269. >
  2270. {{ w.sName }}
  2271. <img
  2272. class="deleteImg deleteImg2"
  2273. src="../../assets/deleteworks.png"
  2274. v-if="w.userid == userid || tType == 1 || tType == 4"
  2275. @click.stop="deleteWorks(w.wid)"
  2276. alt
  2277. />
  2278. </div>
  2279. <!-- <div
  2280. class="works"
  2281. style="
  2282. width: 200px;
  2283. height: 140px;
  2284. border-radius: 10px;
  2285. box-shadow: 0 0 6px 1px #dfdada;
  2286. overflow: hidden;
  2287. "
  2288. v-for="(w, wIndex) in workStudent[toolIndex]"
  2289. :key="wIndex"
  2290. >
  2291. <div class="workImg">
  2292. <img
  2293. src="../../assets/icon/works/noImg.png"
  2294. @click="
  2295. openTools(
  2296. 4,
  2297. toolIndex,
  2298. taskCount,
  2299. w.works,
  2300. w.sName
  2301. )
  2302. "
  2303. alt
  2304. />
  2305. </div>
  2306. <div class="worksName">
  2307. <div>{{ w.sName }}</div>
  2308. <div>{{ w.time }}</div>
  2309. </div>
  2310. </div> -->
  2311. </div>
  2312. </div>
  2313. <div
  2314. v-if="
  2315. tType &&
  2316. ((tType == 2 && sIsOpen == true) ||
  2317. tType == 1 ||
  2318. tType == 4) &&
  2319. tool.tool.indexOf(62) != -1
  2320. "
  2321. class="worksBox"
  2322. >
  2323. <div
  2324. class="zuoyeYulan"
  2325. v-if="
  2326. worksStudent.length &&
  2327. worksStudent[toolIndex].length > 0
  2328. "
  2329. >
  2330. <div class="worksTop">
  2331. <div>{{ lang.ssHomeworkPreview }}</div>
  2332. <div
  2333. class="corOpen"
  2334. @click="contract(toolIndex)"
  2335. v-if="
  2336. isCloseList[toolIndex].isCloseBoolean &&
  2337. isCloseList[toolIndex].isClose == 0
  2338. "
  2339. >
  2340. {{ lang.ssFold }}
  2341. </div>
  2342. <div
  2343. class="corOpen"
  2344. @click="contract(toolIndex)"
  2345. v-if="isCloseList[toolIndex].isClose == 1"
  2346. >
  2347. {{ lang.ssExpand }}
  2348. </div>
  2349. </div>
  2350. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2351. </div>
  2352. <div>
  2353. <div
  2354. :id="'tool-' + toolIndex"
  2355. :style="{
  2356. height:
  2357. isCloseList[toolIndex].isClose == 1
  2358. ? retrnToolHeight('tool-' + toolIndex)
  2359. : 'auto',
  2360. overflow:
  2361. isCloseList[toolIndex].isClose == 1
  2362. ? 'hidden'
  2363. : 'unset'
  2364. }"
  2365. class="worksDetailBox"
  2366. v-if="
  2367. worksStudent.length &&
  2368. worksStudent[toolIndex].length > 0
  2369. "
  2370. >
  2371. <div
  2372. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2373. :key="wIndex"
  2374. class="isWorksName2"
  2375. @click="
  2376. openTools(
  2377. 62,
  2378. toolIndex,
  2379. taskCount,
  2380. w.works,
  2381. w.sName
  2382. )
  2383. "
  2384. >
  2385. {{ w.sName }}
  2386. <img
  2387. class="deleteImg deleteImg2"
  2388. src="../../assets/deleteworks.png"
  2389. v-if="
  2390. w.userid == userid || tType == 1 || tType == 4
  2391. "
  2392. @click.stop="deleteWorks(w.wid)"
  2393. alt
  2394. />
  2395. </div>
  2396. </div>
  2397. </div>
  2398. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2399. {{ lang.ssNotSubmitted }}
  2400. </div>
  2401. <div
  2402. class="noWorksS"
  2403. v-if="noWorksS && noWorksS[toolIndex].length"
  2404. >
  2405. <div
  2406. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2407. :key="sIndex"
  2408. class="noWorksName"
  2409. >
  2410. <el-tooltip
  2411. effect="dark"
  2412. :content="s.student"
  2413. placement="top"
  2414. >
  2415. <span>{{ s.student }}</span>
  2416. </el-tooltip>
  2417. </div>
  2418. </div>
  2419. </div>
  2420. <div
  2421. v-if="
  2422. tType &&
  2423. tType == 2 &&
  2424. !sIsOpen &&
  2425. tool.tool.indexOf(62) != -1
  2426. "
  2427. class="worksBox"
  2428. >
  2429. <div
  2430. class="zuoyeYulan"
  2431. v-if="workStudent[toolIndex].length > 0"
  2432. >
  2433. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2434. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">{{ lang.ssMyEvaluation }}</el-button> -->
  2435. </div>
  2436. <div
  2437. class="worksDetailBox"
  2438. v-if="workStudent[toolIndex].length > 0"
  2439. >
  2440. <div
  2441. class="isWorksName2"
  2442. v-for="(w, wIndex) in workStudent[toolIndex]"
  2443. :key="wIndex"
  2444. @click="
  2445. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2446. "
  2447. >
  2448. {{ w.sName }}
  2449. <img
  2450. class="deleteImg deleteImg2"
  2451. src="../../assets/deleteworks.png"
  2452. v-if="w.userid == userid || tType == 1 || tType == 4"
  2453. @click.stop="deleteWorks(w.wid)"
  2454. alt
  2455. />
  2456. </div>
  2457. </div>
  2458. </div>
  2459. <div
  2460. v-if="
  2461. tType &&
  2462. tType == 2 &&
  2463. !sIsOpen &&
  2464. tool.tool.indexOf(45) != -1
  2465. "
  2466. class="worksBox"
  2467. >
  2468. <div
  2469. class="zuoyeYulan"
  2470. v-if="workStudent[toolIndex].length > 0"
  2471. >
  2472. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2473. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">{{ lang.ssMyEvaluation }}</el-button> -->
  2474. </div>
  2475. <div
  2476. class="worksDetailBox"
  2477. v-if="workStudent[toolIndex].length > 0"
  2478. >
  2479. <div
  2480. class="isWorksName2"
  2481. v-for="(w, wIndex) in workStudent[toolIndex]"
  2482. :key="wIndex"
  2483. @click="
  2484. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2485. "
  2486. >
  2487. {{ w.sName }}
  2488. <img
  2489. class="deleteImg deleteImg2"
  2490. src="../../assets/deleteworks.png"
  2491. v-if="w.userid == userid || tType == 1 || tType == 4"
  2492. @click.stop="deleteWorks(w.wid)"
  2493. alt
  2494. />
  2495. </div>
  2496. </div>
  2497. </div>
  2498. <div
  2499. v-if="
  2500. tType &&
  2501. tType == 2 &&
  2502. !sIsOpen &&
  2503. tool.tool.indexOf(69) != -1
  2504. "
  2505. class="worksBox"
  2506. >
  2507. <div
  2508. class="zuoyeYulan"
  2509. v-if="workStudent[toolIndex].length > 0"
  2510. >
  2511. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2512. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">{{ lang.ssMyEvaluation }}</el-button> -->
  2513. </div>
  2514. <div
  2515. class="worksDetailBox"
  2516. v-if="workStudent[toolIndex].length > 0"
  2517. >
  2518. <div
  2519. class="isWorksName2"
  2520. v-for="(w, wIndex) in workStudent[toolIndex]"
  2521. :key="wIndex"
  2522. @click="
  2523. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2524. "
  2525. >
  2526. {{ w.sName }}
  2527. <img
  2528. class="deleteImg deleteImg2"
  2529. src="../../assets/deleteworks.png"
  2530. v-if="w.userid == userid || tType == 1 || tType == 4"
  2531. @click.stop="deleteWorks(w.wid)"
  2532. alt
  2533. />
  2534. </div>
  2535. </div>
  2536. </div>
  2537. <div
  2538. v-if="
  2539. tType &&
  2540. tType == 2 &&
  2541. !sIsOpen &&
  2542. tool.tool.indexOf(15) != -1
  2543. "
  2544. class="worksBox"
  2545. >
  2546. <div
  2547. class="zuoyeYulan"
  2548. v-if="workStudent[toolIndex].length > 0"
  2549. >
  2550. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2551. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">{{ lang.ssMyEvaluation }}</el-button> -->
  2552. </div>
  2553. <div
  2554. class="worksDetailBox"
  2555. v-if="workStudent[toolIndex].length > 0"
  2556. >
  2557. <div
  2558. class="works"
  2559. v-for="(w, wIndex) in workStudent[toolIndex]"
  2560. :key="wIndex"
  2561. >
  2562. <div class="workImg">
  2563. <!-- <img
  2564. src="../../assets/icon/works/noImg.png"
  2565. @click="openTools(15, toolIndex, taskCount, w.works)"
  2566. alt=""
  2567. />-->
  2568. <div class="answerBg">
  2569. <!-- <div>{{ w.sName }}</div> -->
  2570. <el-tooltip
  2571. class="item"
  2572. effect="light"
  2573. :content="JSON.parse(w.works)[0].answer"
  2574. placement="top"
  2575. >
  2576. <div class="answerContent">
  2577. {{ JSON.parse(w.works)[0].answer }}
  2578. </div>
  2579. </el-tooltip>
  2580. <div
  2581. class="answerScore"
  2582. v-if="w.score"
  2583. @click.stop="openScore(w)"
  2584. :class="{
  2585. rightW:
  2586. w.userid == userid || tType == 1 || tType == 4
  2587. }"
  2588. >
  2589. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2590. </div>
  2591. <div
  2592. class="answerScore"
  2593. @click.stop="openScore(w)"
  2594. v-else-if="courseDetail.userid == userid"
  2595. :class="{
  2596. rightW:
  2597. w.userid == userid || tType == 1 || tType == 4
  2598. }"
  2599. >
  2600. {{ lang.ssMarkScore }}
  2601. </div>
  2602. <img
  2603. class="deleteImg"
  2604. src="../../assets/deleteworks.png"
  2605. v-if="
  2606. w.userid == userid || tType == 1 || tType == 4
  2607. "
  2608. @click.stop="deleteWorks(w.wid)"
  2609. alt
  2610. />
  2611. </div>
  2612. <div class="comment">
  2613. <div class="worksName">
  2614. <div>{{ w.sName }}</div>
  2615. </div>
  2616. </div>
  2617. </div>
  2618. </div>
  2619. </div>
  2620. </div>
  2621. <div
  2622. v-if="
  2623. tType &&
  2624. tType == 2 &&
  2625. !sIsOpen &&
  2626. tool.tool.indexOf(1) != -1
  2627. "
  2628. class="worksBox"
  2629. >
  2630. <div
  2631. class="zuoyeYulan"
  2632. v-if="workStudent[toolIndex].length > 0"
  2633. >
  2634. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2635. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">{{ lang.ssMyEvaluation }}</el-button> -->
  2636. </div>
  2637. <div
  2638. class="worksDetailBox"
  2639. v-if="workStudent[toolIndex].length > 0"
  2640. >
  2641. <div
  2642. class="works"
  2643. style="
  2644. width: 200px;
  2645. height: 140px;
  2646. margin: 10px 10px 10px 0;
  2647. box-shadow: 0 0 6px 1px #dfdada;
  2648. "
  2649. v-for="(w, wIndex) in workStudent[toolIndex]"
  2650. :key="wIndex"
  2651. >
  2652. <div class="workImg">
  2653. <img
  2654. :src="w.works"
  2655. @click="previewImg(w.works, w)"
  2656. alt
  2657. />
  2658. <div
  2659. class="answerScore"
  2660. v-if="w.score"
  2661. @click.stop="openScore(w)"
  2662. :class="{
  2663. rightW:
  2664. w.userid == userid || tType == 1 || tType == 4
  2665. }"
  2666. >
  2667. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2668. </div>
  2669. <div
  2670. class="answerScore"
  2671. @click.stop="openScore(w)"
  2672. v-else-if="courseDetail.userid == userid"
  2673. :class="{
  2674. rightW:
  2675. w.userid == userid || tType == 1 || tType == 4
  2676. }"
  2677. >
  2678. {{ lang.ssMarkScore }}
  2679. </div>
  2680. <div
  2681. class="stuLookScore"
  2682. v-if="
  2683. w.userid == userid ||
  2684. (tType == 1 &&
  2685. courseDetail.state == 6 &&
  2686. ((chapInfoList[courseType].chapterInfo[0]
  2687. .taskJson[taskCount].eList &&
  2688. chapInfoList[courseType].chapterInfo[0]
  2689. .taskJson[taskCount].eList.length) ||
  2690. (tool.eList && tool.eList.length)))
  2691. "
  2692. >
  2693. <el-popover
  2694. placement="top"
  2695. width="318"
  2696. trigger="hover"
  2697. >
  2698. <markScore
  2699. :loading="AIloading[toolIndex][wIndex].loading"
  2700. :markScoreVisible="markScoreVisible"
  2701. :ref="`markSco${toolIndex}${wIndex}`"
  2702. @updateLoading="updateLoading"
  2703. @updateDocSco="updateDocSco"
  2704. @refreshOther="refreshOther"
  2705. @markScoreDig="markScoreDig"
  2706. :tool="tool"
  2707. :wIndex="wIndex"
  2708. :scoCon="w"
  2709. :toolIndex="toolIndex"
  2710. :key="refreshKey"
  2711. :stage="courseType"
  2712. :task="taskCount"
  2713. :scoTit="
  2714. chapInfoList[courseType].chapterInfo[0]
  2715. .taskJson[taskCount].eList
  2716. "
  2717. >
  2718. </markScore>
  2719. <div
  2720. @click="
  2721. markScoreDig2(
  2722. w.sName,
  2723. worksStudent,
  2724. w.userid,
  2725. toolIndex,
  2726. chapInfoList[courseType].chapterInfo[0]
  2727. .taskJson[taskCount].eList,
  2728. AIloading[toolIndex][wIndex].loading,
  2729. tool
  2730. )
  2731. "
  2732. slot="reference"
  2733. >
  2734. <span v-if="AIloading[toolIndex][wIndex].sco">
  2735. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  2736. </span>
  2737. <span v-else>
  2738. {{ lang.ssMarkScore }}
  2739. </span>
  2740. </div>
  2741. </el-popover>
  2742. </div>
  2743. <img
  2744. class="deleteImg"
  2745. src="../../assets/deleteworks.png"
  2746. v-if="
  2747. w.userid == userid || tType == 1 || tType == 4
  2748. "
  2749. @click.stop="deleteWorks(w.wid)"
  2750. alt
  2751. />
  2752. </div>
  2753. <div class="worksName">
  2754. <div>{{ w.sName }}</div>
  2755. </div>
  2756. </div>
  2757. </div>
  2758. </div>
  2759. <div
  2760. v-if="
  2761. tType &&
  2762. tType == 2 &&
  2763. !sIsOpen &&
  2764. tool.tool.indexOf(3) != -1
  2765. "
  2766. class="worksBox"
  2767. >
  2768. <div
  2769. class="zuoyeYulan"
  2770. v-if="workStudent[toolIndex].length > 0"
  2771. >
  2772. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2773. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">{{ lang.ssMyEvaluation }}</el-button> -->
  2774. </div>
  2775. <div
  2776. class="worksDetailBox"
  2777. v-if="workStudent[toolIndex].length > 0"
  2778. >
  2779. <div
  2780. class="works"
  2781. style="
  2782. width: 200px;
  2783. height: 140px;
  2784. margin: 10px 10px 10px 0;
  2785. box-shadow: 0 0 6px 1px #dfdada;
  2786. "
  2787. v-for="(w, wIndex) in workStudent[toolIndex]"
  2788. :key="wIndex"
  2789. >
  2790. <div class="workImg">
  2791. <img
  2792. :src="w.works"
  2793. @click="previewImg(w.works, w)"
  2794. alt
  2795. />
  2796. <div
  2797. class="answerScore"
  2798. v-if="w.score"
  2799. @click.stop="openScore(w)"
  2800. :class="{
  2801. rightW:
  2802. w.userid == userid || tType == 1 || tType == 4
  2803. }"
  2804. >
  2805. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2806. </div>
  2807. <div
  2808. class="answerScore"
  2809. @click.stop="openScore(w)"
  2810. v-else-if="courseDetail.userid == userid"
  2811. :class="{
  2812. rightW:
  2813. w.userid == userid || tType == 1 || tType == 4
  2814. }"
  2815. >
  2816. {{ lang.ssMarkScore }}
  2817. </div>
  2818. <div
  2819. class="stuLookScore"
  2820. v-if="
  2821. w.userid == userid ||
  2822. (tType == 1 &&
  2823. courseDetail.state == 6 &&
  2824. ((chapInfoList[courseType].chapterInfo[0]
  2825. .taskJson[taskCount].eList &&
  2826. chapInfoList[courseType].chapterInfo[0]
  2827. .taskJson[taskCount].eList.length) ||
  2828. (tool.eList && tool.eList.length)))
  2829. "
  2830. >
  2831. <el-popover
  2832. placement="top"
  2833. width="318"
  2834. trigger="hover"
  2835. >
  2836. <markScore
  2837. :loading="AIloading[toolIndex][wIndex].loading"
  2838. :markScoreVisible="markScoreVisible"
  2839. :ref="`markSco${toolIndex}${wIndex}`"
  2840. @updateLoading="updateLoading"
  2841. @updateDocSco="updateDocSco"
  2842. @refreshOther="refreshOther"
  2843. @markScoreDig="markScoreDig"
  2844. :tool="tool"
  2845. :wIndex="wIndex"
  2846. :scoCon="w"
  2847. :toolIndex="toolIndex"
  2848. :key="refreshKey"
  2849. :stage="courseType"
  2850. :task="taskCount"
  2851. :scoTit="
  2852. chapInfoList[courseType].chapterInfo[0]
  2853. .taskJson[taskCount].eList
  2854. "
  2855. >
  2856. </markScore>
  2857. <div
  2858. @click="
  2859. markScoreDig2(
  2860. w.sName,
  2861. worksStudent,
  2862. w.userid,
  2863. toolIndex,
  2864. chapInfoList[courseType].chapterInfo[0]
  2865. .taskJson[taskCount].eList,
  2866. AIloading[toolIndex][wIndex].loading,
  2867. tool
  2868. )
  2869. "
  2870. slot="reference"
  2871. >
  2872. <span v-if="AIloading[toolIndex][wIndex].sco">
  2873. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  2874. </span>
  2875. <span v-else>
  2876. {{ lang.ssMarkScore }}
  2877. </span>
  2878. </div>
  2879. </el-popover>
  2880. </div>
  2881. <img
  2882. class="deleteImg"
  2883. src="../../assets/deleteworks.png"
  2884. v-if="
  2885. w.userid == userid || tType == 1 || tType == 4
  2886. "
  2887. @click.stop="deleteWorks(w.wid)"
  2888. alt
  2889. />
  2890. </div>
  2891. <div class="worksName">
  2892. <div>{{ w.sName }}</div>
  2893. </div>
  2894. </div>
  2895. </div>
  2896. </div>
  2897. <div
  2898. v-if="
  2899. tType &&
  2900. tType == 2 &&
  2901. !sIsOpen &&
  2902. tool.tool.indexOf(6) != -1
  2903. "
  2904. class="worksBox"
  2905. >
  2906. <div
  2907. class="zuoyeYulan"
  2908. v-if="workStudent[toolIndex].length > 0"
  2909. >
  2910. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2911. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">{{ lang.ssMyEvaluation }}</el-button> -->
  2912. </div>
  2913. <div
  2914. class="worksDetailBox"
  2915. v-if="workStudent[toolIndex].length > 0"
  2916. >
  2917. <div
  2918. class="works"
  2919. style="
  2920. width: 200px;
  2921. height: 140px;
  2922. margin: 10px 10px 10px 0;
  2923. box-shadow: 0 0 6px 1px #dfdada;
  2924. "
  2925. v-for="(w, wIndex) in workStudent[toolIndex]"
  2926. :key="wIndex"
  2927. >
  2928. <div class="workImg">
  2929. <img
  2930. :src="w.works"
  2931. @click="previewImg(w.works, w)"
  2932. alt
  2933. />
  2934. <div
  2935. class="answerScore"
  2936. v-if="w.score"
  2937. @click.stop="openScore(w)"
  2938. :class="{
  2939. rightW:
  2940. w.userid == userid || tType == 1 || tType == 4
  2941. }"
  2942. >
  2943. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  2944. </div>
  2945. <div
  2946. class="answerScore"
  2947. @click.stop="openScore(w)"
  2948. v-else-if="courseDetail.userid == userid"
  2949. :class="{
  2950. rightW:
  2951. w.userid == userid || tType == 1 || tType == 4
  2952. }"
  2953. >
  2954. {{ lang.ssMarkScore }}
  2955. </div>
  2956. <img
  2957. class="deleteImg"
  2958. src="../../assets/deleteworks.png"
  2959. v-if="
  2960. w.userid == userid || tType == 1 || tType == 4
  2961. "
  2962. @click.stop="deleteWorks(w.wid)"
  2963. alt
  2964. />
  2965. </div>
  2966. <div class="worksName">
  2967. <div>{{ w.sName }}</div>
  2968. </div>
  2969. </div>
  2970. </div>
  2971. </div>
  2972. <div
  2973. v-if="
  2974. tType &&
  2975. tType == 2 &&
  2976. !sIsOpen &&
  2977. tool.tool.indexOf(7) != -1
  2978. "
  2979. class="worksBox"
  2980. >
  2981. <div
  2982. class="zuoyeYulan"
  2983. v-if="workStudent[toolIndex].length > 0"
  2984. >
  2985. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  2986. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">{{ lang.ssMyEvaluation }}</el-button> -->
  2987. </div>
  2988. <div
  2989. class="worksDetailBox"
  2990. v-if="workStudent[toolIndex].length > 0"
  2991. >
  2992. <div
  2993. class="works"
  2994. style="
  2995. width: 200px;
  2996. height: 140px;
  2997. margin: 10px 10px 10px 0;
  2998. box-shadow: 0 0 6px 1px #dfdada;
  2999. "
  3000. v-for="(w, wIndex) in workStudent[toolIndex]"
  3001. :key="wIndex"
  3002. >
  3003. <div class="workImg">
  3004. <img
  3005. :src="w.works"
  3006. @click="previewImg(w.works, w)"
  3007. alt
  3008. />
  3009. <div
  3010. class="answerScore"
  3011. v-if="w.score"
  3012. @click.stop="openScore(w)"
  3013. :class="{
  3014. rightW:
  3015. w.userid == userid || tType == 1 || tType == 4
  3016. }"
  3017. >
  3018. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3019. </div>
  3020. <div
  3021. class="answerScore"
  3022. @click.stop="openScore(w)"
  3023. v-else-if="courseDetail.userid == userid"
  3024. :class="{
  3025. rightW:
  3026. w.userid == userid || tType == 1 || tType == 4
  3027. }"
  3028. >
  3029. {{ lang.ssMarkScore }}
  3030. </div>
  3031. <div
  3032. class="stuLookScore"
  3033. v-if="
  3034. w.userid == userid ||
  3035. (tType == 1 &&
  3036. courseDetail.state == 6 &&
  3037. ((chapInfoList[courseType].chapterInfo[0]
  3038. .taskJson[taskCount].eList &&
  3039. chapInfoList[courseType].chapterInfo[0]
  3040. .taskJson[taskCount].eList.length) ||
  3041. (tool.eList && tool.eList.length)))
  3042. "
  3043. >
  3044. <el-popover
  3045. placement="top"
  3046. width="318"
  3047. trigger="hover"
  3048. >
  3049. <markScore
  3050. :loading="AIloading[toolIndex][wIndex].loading"
  3051. :markScoreVisible="markScoreVisible"
  3052. :ref="`markSco${toolIndex}${wIndex}`"
  3053. @updateLoading="updateLoading"
  3054. @updateDocSco="updateDocSco"
  3055. @refreshOther="refreshOther"
  3056. @markScoreDig="markScoreDig"
  3057. :tool="tool"
  3058. :wIndex="wIndex"
  3059. :scoCon="w"
  3060. :toolIndex="toolIndex"
  3061. :key="refreshKey"
  3062. :stage="courseType"
  3063. :task="taskCount"
  3064. :scoTit="
  3065. chapInfoList[courseType].chapterInfo[0]
  3066. .taskJson[taskCount].eList
  3067. "
  3068. >
  3069. </markScore>
  3070. <div
  3071. @click="
  3072. markScoreDig2(
  3073. w.sName,
  3074. worksStudent,
  3075. w.userid,
  3076. toolIndex,
  3077. chapInfoList[courseType].chapterInfo[0]
  3078. .taskJson[taskCount].eList,
  3079. AIloading[toolIndex][wIndex].loading,
  3080. tool
  3081. )
  3082. "
  3083. slot="reference"
  3084. >
  3085. <span v-if="AIloading[toolIndex][wIndex].sco">
  3086. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  3087. </span>
  3088. <span v-else>
  3089. {{ lang.ssMarkScore }}
  3090. </span>
  3091. </div>
  3092. </el-popover>
  3093. </div>
  3094. <img
  3095. class="deleteImg"
  3096. src="../../assets/deleteworks.png"
  3097. v-if="
  3098. w.userid == userid || tType == 1 || tType == 4
  3099. "
  3100. @click.stop="deleteWorks(w.wid)"
  3101. alt
  3102. />
  3103. </div>
  3104. <div class="worksName">
  3105. <div>{{ w.sName }}</div>
  3106. </div>
  3107. </div>
  3108. </div>
  3109. </div>
  3110. <div
  3111. v-if="
  3112. tType &&
  3113. tType == 2 &&
  3114. !sIsOpen &&
  3115. tool.tool.indexOf(26) != -1
  3116. "
  3117. class="worksBox"
  3118. >
  3119. <div
  3120. class="zuoyeYulan"
  3121. v-if="workStudent[toolIndex].length > 0"
  3122. >
  3123. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  3124. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">{{ lang.ssMyEvaluation }}</el-button> -->
  3125. </div>
  3126. <div
  3127. class="worksDetailBox"
  3128. v-if="workStudent[toolIndex].length > 0"
  3129. >
  3130. <div
  3131. class="works"
  3132. style="
  3133. width: 200px;
  3134. height: 140px;
  3135. margin: 10px 10px 10px 0;
  3136. box-shadow: 0 0 6px 1px #dfdada;
  3137. "
  3138. v-for="(w, wIndex) in workStudent[toolIndex]"
  3139. :key="wIndex"
  3140. >
  3141. <div class="workImg">
  3142. <img
  3143. :src="w.works"
  3144. @click="previewImg(w.works, w)"
  3145. alt
  3146. />
  3147. <img
  3148. class="deleteImg"
  3149. src="../../assets/deleteworks.png"
  3150. v-if="
  3151. w.userid == userid || tType == 1 || tType == 4
  3152. "
  3153. @click.stop="deleteWorks(w.wid)"
  3154. alt
  3155. />
  3156. </div>
  3157. <div class="worksName">
  3158. <div>{{ w.sName }}</div>
  3159. </div>
  3160. </div>
  3161. </div>
  3162. </div>
  3163. <div
  3164. v-if="
  3165. tType &&
  3166. ((tType == 2 && sIsOpen == true) ||
  3167. tType == 1 ||
  3168. tType == 4) &&
  3169. tool.tool.indexOf(16) != -1
  3170. "
  3171. class="worksBox"
  3172. >
  3173. <div
  3174. class="zuoyeYulan"
  3175. style="display: flex;justify-content: space-between;align-items: center;"
  3176. v-if="
  3177. (worksStudent.length &&
  3178. worksStudent[toolIndex].length > 0) ||
  3179. (courseGroup.group && courseGroup.group.length)
  3180. "
  3181. >
  3182. <div class="worksTop">
  3183. <div>{{ lang.ssHomeworkPreview }}</div>
  3184. <div
  3185. class="corOpen"
  3186. @click="contract(toolIndex)"
  3187. v-if="
  3188. isCloseList[toolIndex].isCloseBoolean &&
  3189. isCloseList[toolIndex].isClose == 0
  3190. "
  3191. >
  3192. {{ lang.ssFold }}
  3193. </div>
  3194. <div
  3195. class="corOpen"
  3196. @click="contract(toolIndex)"
  3197. v-if="isCloseList[toolIndex].isClose == 1"
  3198. >
  3199. {{ lang.ssExpand }}
  3200. </div>
  3201. </div>
  3202. <div
  3203. style="display: flex;"
  3204. v-if="
  3205. (courseDetail.userid == userid ||
  3206. (courseDetail.course_teacher &&
  3207. courseDetail.course_teacher.indexOf(userid) !=
  3208. -1)) &&
  3209. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  3210. taskCount
  3211. ].eList &&
  3212. chapInfoList[courseType].chapterInfo[0].taskJson[
  3213. taskCount
  3214. ].eList.length) ||
  3215. (tool.eList && tool.eList.length)) &&
  3216. courseDetail.state == 6
  3217. "
  3218. >
  3219. <!-- <div style="display: flex;" v-if="courseDetail.userid == userid && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length && courseDetail.state == 6"> -->
  3220. <div
  3221. style="margin-right:10px"
  3222. class="ScoreBtn"
  3223. @click="
  3224. resetLoopEva(
  3225. worksStudent[toolIndex],
  3226. chapInfoList[courseType].chapterInfo[0].taskJson[
  3227. taskCount
  3228. ].eList,
  3229. courseType,
  3230. taskCount,
  3231. toolIndex,
  3232. tool.toolDetail,
  3233. worksStudent
  3234. )
  3235. "
  3236. >
  3237. {{ lang.ssReset }}
  3238. </div>
  3239. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  3240. <img
  3241. src="../../assets/icon/newIcons/rootImg.png"
  3242. alt=""
  3243. />
  3244. {{ lang.ssAiScore }}
  3245. </div>
  3246. <div
  3247. class="ScoreBtn"
  3248. v-else-if="!loopLoading[toolIndex].loading"
  3249. @click="
  3250. loopEva(
  3251. worksStudent[toolIndex],
  3252. chapInfoList[courseType].chapterInfo[0].taskJson[
  3253. taskCount
  3254. ].eList,
  3255. courseType,
  3256. taskCount,
  3257. toolIndex,
  3258. tool.toolDetail,
  3259. chapInfoList[courseType].chapterInfo[0].taskJson[
  3260. taskCount
  3261. ].taskDetail,
  3262. tool
  3263. )
  3264. "
  3265. >
  3266. <img
  3267. src="../../assets/icon/newIcons/rootImg.png"
  3268. alt=""
  3269. />
  3270. {{ lang.ssAiScore }}
  3271. </div>
  3272. <div class="ScoreBtn" v-else>
  3273. <img
  3274. src="../../assets/icon/newIcons/rootImg.png"
  3275. alt=""
  3276. />
  3277. {{ lang.ssScoring }}
  3278. </div>
  3279. </div>
  3280. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3281. </div>
  3282. <div
  3283. class="group_workBox"
  3284. v-for="(g, gindex) in courseGroup.group"
  3285. :key="gindex"
  3286. >
  3287. <div class="group_box">
  3288. <div class="group_title">
  3289. <el-tooltip
  3290. class="item"
  3291. effect="light"
  3292. :content="g.name"
  3293. placement="top"
  3294. >
  3295. <div class="group_name">{{ g.name }}</div>
  3296. </el-tooltip>
  3297. </div>
  3298. <div
  3299. class="group_work"
  3300. v-if="
  3301. g.works &&
  3302. g.works.length &&
  3303. g.works[toolIndex].length
  3304. "
  3305. >
  3306. <div
  3307. class="works"
  3308. style="
  3309. width: 200px;
  3310. height: 140px;
  3311. margin: 10px 10px 10px 0;
  3312. border-radius: 15px;
  3313. box-shadow: 0 0 6px 1px #dfdada;
  3314. "
  3315. v-for="(w, wIndex) in g.works[toolIndex]"
  3316. :key="wIndex"
  3317. :class="w.type == 1 ? 'isTypeOne' : ''"
  3318. >
  3319. <div class="workImg" v-if="w.type == 0">
  3320. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3321. <img
  3322. :src="w.works"
  3323. @click="previewImg(w.works, w)"
  3324. alt
  3325. />
  3326. <div
  3327. class="answerScore"
  3328. v-if="w.score"
  3329. @click.stop="openScore(w)"
  3330. :class="{
  3331. rightW:
  3332. w.userid == userid ||
  3333. tType == 1 ||
  3334. tType == 4 ||
  3335. w.ateacher == userid
  3336. }"
  3337. >
  3338. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3339. </div>
  3340. <div
  3341. class="answerScore"
  3342. @click.stop="openScore(w)"
  3343. v-else-if="courseDetail.userid == userid"
  3344. :class="{
  3345. rightW:
  3346. w.userid == userid ||
  3347. tType == 1 ||
  3348. tType == 4 ||
  3349. w.ateacher == userid
  3350. }"
  3351. >
  3352. {{ lang.ssMarkScore }}
  3353. </div>
  3354. <img
  3355. class="deleteImg"
  3356. src="../../assets/deleteworks.png"
  3357. v-if="
  3358. w.userid == userid || tType == 1 || tType == 4
  3359. "
  3360. @click.stop="deleteWorks(w.wid)"
  3361. alt
  3362. />
  3363. </div>
  3364. <div class="workImg" v-if="w.type == 1">
  3365. <img :src="word" @click="openFile(w.works)" alt />
  3366. <!-- @click="openFile(w.works)" -->
  3367. <div
  3368. class="answerScore"
  3369. v-if="w.score"
  3370. @click.stop="openScore(w)"
  3371. :class="{
  3372. rightW:
  3373. w.userid == userid ||
  3374. tType == 1 ||
  3375. tType == 4 ||
  3376. w.ateacher == userid
  3377. }"
  3378. >
  3379. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3380. </div>
  3381. <div
  3382. class="answerScore"
  3383. @click.stop="openScore(w)"
  3384. v-else-if="courseDetail.userid == userid"
  3385. :class="{
  3386. rightW:
  3387. w.userid == userid ||
  3388. tType == 1 ||
  3389. tType == 4 ||
  3390. w.ateacher == userid
  3391. }"
  3392. >
  3393. {{ lang.ssMarkScore }}
  3394. </div>
  3395. <img
  3396. class="deleteImg"
  3397. src="../../assets/deleteworks.png"
  3398. v-if="
  3399. w.userid == userid || tType == 1 || tType == 4
  3400. "
  3401. @click.stop="deleteWorks(w.wid)"
  3402. alt
  3403. />
  3404. </div>
  3405. <div class="workImg" v-if="w.type == 3">
  3406. <img
  3407. style="cursor: pointer"
  3408. :src="video"
  3409. @click="openVideo(w)"
  3410. alt
  3411. />
  3412. <!-- @click="openVideo(w.works)" -->
  3413. <div
  3414. class="answerScore"
  3415. v-if="w.score"
  3416. @click.stop="openScore(w)"
  3417. :class="{
  3418. rightW:
  3419. w.userid == userid ||
  3420. tType == 1 ||
  3421. tType == 4 ||
  3422. w.ateacher == userid
  3423. }"
  3424. >
  3425. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3426. </div>
  3427. <div
  3428. class="answerScore"
  3429. @click.stop="openScore(w)"
  3430. v-else-if="courseDetail.userid == userid"
  3431. :class="{
  3432. rightW:
  3433. w.userid == userid ||
  3434. tType == 1 ||
  3435. tType == 4 ||
  3436. w.ateacher == userid
  3437. }"
  3438. >
  3439. {{ lang.ssMarkScore }}
  3440. </div>
  3441. <img
  3442. class="deleteImg"
  3443. src="../../assets/deleteworks.png"
  3444. v-if="
  3445. w.userid == userid || tType == 1 || tType == 4
  3446. "
  3447. @click.stop="deleteWorks(w.wid)"
  3448. alt
  3449. />
  3450. </div>
  3451. <div class="workImg" v-if="w.type == 12">
  3452. <img
  3453. style="cursor: pointer"
  3454. :src="word2"
  3455. @click="downloadFile(w.works,w.userid)"
  3456. alt
  3457. />
  3458. <!-- @click="openVideo(w.works)" -->
  3459. <div
  3460. class="answerScore"
  3461. v-if="w.score"
  3462. @click.stop="openScore(w)"
  3463. :class="{
  3464. rightW:
  3465. w.userid == userid ||
  3466. tType == 1 ||
  3467. tType == 4 ||
  3468. w.ateacher == userid
  3469. }"
  3470. >
  3471. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3472. </div>
  3473. <div
  3474. class="answerScore"
  3475. @click.stop="openScore(w)"
  3476. v-else-if="courseDetail.userid == userid"
  3477. :class="{
  3478. rightW:
  3479. w.userid == userid ||
  3480. tType == 1 ||
  3481. tType == 4 ||
  3482. w.ateacher == userid
  3483. }"
  3484. >
  3485. {{ lang.ssMarkScore }}
  3486. </div>
  3487. <img
  3488. class="deleteImg"
  3489. src="../../assets/deleteworks.png"
  3490. v-if="
  3491. w.userid == userid || tType == 1 || tType == 4
  3492. "
  3493. @click.stop="deleteWorks(w.wid)"
  3494. alt
  3495. />
  3496. </div>
  3497. <div class="comment" style="min-width: 200px">
  3498. <div class="worksName">
  3499. <div>{{ w.sName }}</div>
  3500. </div>
  3501. <div class="commentList">
  3502. <div class="commentList">
  3503. <div
  3504. class="commentImg"
  3505. @click="
  3506. isLikes(
  3507. w.wid,
  3508. userid,
  3509. 1,
  3510. null,
  3511. w.isLikes,
  3512. w.sName
  3513. )
  3514. "
  3515. >
  3516. <img
  3517. :src="w.isLikes == true ? likes : noLikes"
  3518. alt=""
  3519. />
  3520. </div>
  3521. <div>{{ w.likesCount }}</div>
  3522. </div>
  3523. <div
  3524. class="commentList"
  3525. style="margin-right: 15px"
  3526. >
  3527. <div
  3528. class="commentImg"
  3529. @click="
  3530. commentOther(
  3531. w,
  3532. toolIndex,
  3533. wIndex,
  3534. null,
  3535. g.id
  3536. )
  3537. "
  3538. >
  3539. <img
  3540. src="../../assets/icon/comment/comment.png"
  3541. alt=""
  3542. />
  3543. </div>
  3544. <div>{{ w.commentCount }}</div>
  3545. </div>
  3546. </div>
  3547. </div>
  3548. </div>
  3549. </div>
  3550. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  3551. </div>
  3552. </div>
  3553. <div
  3554. :id="'tool-' + toolIndex"
  3555. :style="{
  3556. height:
  3557. isCloseList[toolIndex].isClose == 1
  3558. ? retrnToolHeight('tool-' + toolIndex)
  3559. : 'auto',
  3560. overflow:
  3561. isCloseList[toolIndex].isClose == 1
  3562. ? 'hidden'
  3563. : 'unset'
  3564. }"
  3565. class="worksDetailBox"
  3566. v-if="
  3567. worksStudent.length &&
  3568. worksStudent[toolIndex].length > 0
  3569. "
  3570. >
  3571. <div
  3572. class="works"
  3573. style="
  3574. width: 200px;
  3575. height: 140px;
  3576. margin: 10px 10px 10px 0;
  3577. border-radius: 15px;
  3578. box-shadow: 0 0 6px 1px #dfdada;
  3579. "
  3580. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3581. :key="wIndex"
  3582. :class="w.type == 1 ? 'isTypeOne' : ''"
  3583. >
  3584. <div class="workImg" v-if="w.type == 0">
  3585. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3586. <img
  3587. :src="w.works"
  3588. @click="previewImg(w.works, w)"
  3589. alt
  3590. />
  3591. <div
  3592. class="answerScore"
  3593. v-if="w.score"
  3594. @click.stop="openScore(w)"
  3595. :class="{
  3596. rightW:
  3597. w.userid == userid ||
  3598. tType == 1 ||
  3599. tType == 4 ||
  3600. w.ateacher == userid
  3601. }"
  3602. >
  3603. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3604. </div>
  3605. <div
  3606. class="answerScore"
  3607. @click.stop="openScore(w)"
  3608. v-else-if="
  3609. courseDetail.userid == userid &&
  3610. courseDetail.state != 6 &&
  3611. chapInfoList[courseType].chapterInfo[0]
  3612. .taskJson[taskCount].eList &&
  3613. chapInfoList[courseType].chapterInfo[0]
  3614. .taskJson[taskCount].eList.length
  3615. "
  3616. :class="{
  3617. rightW:
  3618. w.userid == userid ||
  3619. tType == 1 ||
  3620. tType == 4 ||
  3621. w.ateacher == userid
  3622. }"
  3623. >
  3624. {{ lang.ssMarkScore }}
  3625. </div>
  3626. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3627. <div
  3628. v-else-if="
  3629. (courseDetail.userid == userid ||
  3630. (courseDetail.course_teacher &&
  3631. courseDetail.course_teacher.indexOf(userid) !=
  3632. -1) ||
  3633. (w.userid == userid && sIsOpen)) &&
  3634. courseDetail.state == 6 &&
  3635. ((chapInfoList[courseType].chapterInfo[0]
  3636. .taskJson[taskCount].eList &&
  3637. chapInfoList[courseType].chapterInfo[0]
  3638. .taskJson[taskCount].eList.length) ||
  3639. (tool.eList && tool.eList.length))
  3640. "
  3641. >
  3642. <el-popover
  3643. placement="top"
  3644. width="318"
  3645. :disabled="AIloading[toolIndex][wIndex].loading"
  3646. trigger="hover"
  3647. >
  3648. <markScore
  3649. :loading="AIloading[toolIndex][wIndex].loading"
  3650. :markScoreVisible="markScoreVisible"
  3651. :ref="`markSco${toolIndex}${wIndex}`"
  3652. @updateLoading="updateLoading"
  3653. @updateDocSco="updateDocSco"
  3654. @refreshOther="refreshOther"
  3655. @markScoreDig="markScoreDig"
  3656. :tool="tool"
  3657. :wIndex="wIndex"
  3658. :scoCon="w"
  3659. :toolIndex="toolIndex"
  3660. :key="refreshKey"
  3661. :stage="courseType"
  3662. :task="taskCount"
  3663. :scoTit="
  3664. chapInfoList[courseType].chapterInfo[0]
  3665. .taskJson[taskCount].eList
  3666. "
  3667. >
  3668. </markScore>
  3669. <div
  3670. class="answerScore"
  3671. @click="
  3672. markScoreDig2(
  3673. w.sName,
  3674. worksStudent,
  3675. w.userid,
  3676. toolIndex,
  3677. chapInfoList[courseType].chapterInfo[0]
  3678. .taskJson[taskCount].eList,
  3679. AIloading[toolIndex][wIndex].loading,
  3680. tool
  3681. )
  3682. "
  3683. slot="reference"
  3684. :class="{
  3685. rightW:
  3686. w.userid == userid ||
  3687. tType == 1 ||
  3688. tType == 4 ||
  3689. w.ateacher == userid
  3690. }"
  3691. >
  3692. <span v-if="AIloading[toolIndex][wIndex].sco">
  3693. {{
  3694. AIloading[toolIndex][wIndex].loading
  3695. ? lang.ssScoringIn
  3696. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  3697. }}
  3698. </span>
  3699. <span v-else>
  3700. {{
  3701. AIloading[toolIndex][wIndex].loading
  3702. ? lang.ssScoringIn
  3703. : lang.ssMarkScore
  3704. }}
  3705. </span>
  3706. </div>
  3707. </el-popover>
  3708. </div>
  3709. <img
  3710. class="deleteImg"
  3711. src="../../assets/deleteworks.png"
  3712. v-if="
  3713. w.userid == userid || tType == 1 || tType == 4
  3714. "
  3715. @click.stop="deleteWorks(w.wid)"
  3716. alt
  3717. />
  3718. </div>
  3719. <div class="workImg" v-if="w.type == 1">
  3720. <img :src="word" @click="openFile(w.works)" alt />
  3721. <!-- @click="openFile(w.works)" -->
  3722. <div
  3723. class="answerScore"
  3724. v-if="w.score"
  3725. @click.stop="openScore(w)"
  3726. :class="{
  3727. rightW:
  3728. w.userid == userid ||
  3729. tType == 1 ||
  3730. tType == 4 ||
  3731. w.ateacher == userid
  3732. }"
  3733. >
  3734. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3735. </div>
  3736. <div
  3737. class="answerScore"
  3738. @click.stop="openScore(w)"
  3739. v-else-if="
  3740. courseDetail.userid == userid &&
  3741. courseDetail.state != 6 &&
  3742. chapInfoList[courseType].chapterInfo[0]
  3743. .taskJson[taskCount].eList &&
  3744. chapInfoList[courseType].chapterInfo[0]
  3745. .taskJson[taskCount].eList.length
  3746. "
  3747. :class="{
  3748. rightW:
  3749. w.userid == userid ||
  3750. tType == 1 ||
  3751. tType == 4 ||
  3752. w.ateacher == userid
  3753. }"
  3754. >
  3755. {{ lang.ssMarkScore }}
  3756. </div>
  3757. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3758. <div
  3759. v-else-if="
  3760. (courseDetail.userid == userid ||
  3761. (courseDetail.course_teacher &&
  3762. courseDetail.course_teacher.indexOf(userid) !=
  3763. -1) ||
  3764. (w.userid == userid && sIsOpen)) &&
  3765. courseDetail.state == 6 &&
  3766. ((chapInfoList[courseType].chapterInfo[0]
  3767. .taskJson[taskCount].eList &&
  3768. chapInfoList[courseType].chapterInfo[0]
  3769. .taskJson[taskCount].eList.length) ||
  3770. (tool.eList && tool.eList.length))
  3771. "
  3772. >
  3773. <el-popover
  3774. placement="top"
  3775. width="318"
  3776. :disabled="AIloading[toolIndex][wIndex].loading"
  3777. trigger="hover"
  3778. >
  3779. <markScore
  3780. :loading="AIloading[toolIndex][wIndex].loading"
  3781. :markScoreVisible="markScoreVisible"
  3782. :ref="`markSco${toolIndex}${wIndex}`"
  3783. @updateLoading="updateLoading"
  3784. @updateDocSco="updateDocSco"
  3785. @refreshOther="refreshOther"
  3786. @markScoreDig="markScoreDig"
  3787. :tool="tool"
  3788. :wIndex="wIndex"
  3789. :scoCon="w"
  3790. :toolIndex="toolIndex"
  3791. :key="refreshKey"
  3792. :stage="courseType"
  3793. :task="taskCount"
  3794. :scoTit="
  3795. chapInfoList[courseType].chapterInfo[0]
  3796. .taskJson[taskCount].eList
  3797. "
  3798. >
  3799. </markScore>
  3800. <div
  3801. class="answerScore"
  3802. @click="
  3803. markScoreDig2(
  3804. w.sName,
  3805. worksStudent,
  3806. w.userid,
  3807. toolIndex,
  3808. chapInfoList[courseType].chapterInfo[0]
  3809. .taskJson[taskCount].eList,
  3810. AIloading[toolIndex][wIndex].loading,
  3811. tool
  3812. )
  3813. "
  3814. slot="reference"
  3815. :class="{
  3816. rightW:
  3817. w.userid == userid ||
  3818. tType == 1 ||
  3819. tType == 4 ||
  3820. w.ateacher == userid
  3821. }"
  3822. >
  3823. <span v-if="AIloading[toolIndex][wIndex].sco">
  3824. {{
  3825. AIloading[toolIndex][wIndex].loading
  3826. ? lang.ssScoringIn
  3827. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  3828. }}
  3829. </span>
  3830. <span v-else>
  3831. {{
  3832. AIloading[toolIndex][wIndex].loading
  3833. ? lang.ssScoringIn
  3834. : lang.ssMarkScore
  3835. }}
  3836. </span>
  3837. </div>
  3838. </el-popover>
  3839. </div>
  3840. <img
  3841. class="deleteImg"
  3842. src="../../assets/deleteworks.png"
  3843. v-if="
  3844. w.userid == userid || tType == 1 || tType == 4
  3845. "
  3846. @click.stop="deleteWorks(w.wid)"
  3847. alt
  3848. />
  3849. </div>
  3850. <div class="workImg" v-if="w.type == 3">
  3851. <img
  3852. style="cursor: pointer"
  3853. :src="video"
  3854. @click="openVideo(w)"
  3855. alt
  3856. />
  3857. <!-- @click="openVideo(w.works)" -->
  3858. <div
  3859. class="answerScore"
  3860. v-if="w.score"
  3861. @click.stop="openScore(w)"
  3862. :class="{
  3863. rightW:
  3864. w.userid == userid ||
  3865. tType == 1 ||
  3866. tType == 4 ||
  3867. w.ateacher == userid
  3868. }"
  3869. >
  3870. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  3871. </div>
  3872. <div
  3873. class="answerScore"
  3874. @click.stop="openScore(w)"
  3875. v-else-if="
  3876. courseDetail.userid == userid &&
  3877. courseDetail.state != 6 &&
  3878. chapInfoList[courseType].chapterInfo[0]
  3879. .taskJson[taskCount].eList &&
  3880. chapInfoList[courseType].chapterInfo[0]
  3881. .taskJson[taskCount].eList.length
  3882. "
  3883. :class="{
  3884. rightW:
  3885. w.userid == userid ||
  3886. tType == 1 ||
  3887. tType == 4 ||
  3888. w.ateacher == userid
  3889. }"
  3890. >
  3891. {{ lang.ssMarkScore }}
  3892. </div>
  3893. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3894. <div
  3895. v-else-if="
  3896. (courseDetail.userid == userid ||
  3897. (courseDetail.course_teacher &&
  3898. courseDetail.course_teacher.indexOf(userid) !=
  3899. -1) ||
  3900. (w.userid == userid && sIsOpen)) &&
  3901. courseDetail.state == 6 &&
  3902. ((chapInfoList[courseType].chapterInfo[0]
  3903. .taskJson[taskCount].eList &&
  3904. chapInfoList[courseType].chapterInfo[0]
  3905. .taskJson[taskCount].eList.length) ||
  3906. (tool.eList && tool.eList.length))
  3907. "
  3908. >
  3909. <el-popover
  3910. placement="top"
  3911. width="318"
  3912. :disabled="AIloading[toolIndex][wIndex].loading"
  3913. trigger="hover"
  3914. >
  3915. <markScore
  3916. :loading="AIloading[toolIndex][wIndex].loading"
  3917. :markScoreVisible="markScoreVisible"
  3918. :ref="`markSco${toolIndex}${wIndex}`"
  3919. @updateLoading="updateLoading"
  3920. @updateDocSco="updateDocSco"
  3921. @refreshOther="refreshOther"
  3922. @markScoreDig="markScoreDig"
  3923. :tool="tool"
  3924. :wIndex="wIndex"
  3925. :scoCon="w"
  3926. :toolIndex="toolIndex"
  3927. :key="refreshKey"
  3928. :stage="courseType"
  3929. :task="taskCount"
  3930. :scoTit="
  3931. chapInfoList[courseType].chapterInfo[0]
  3932. .taskJson[taskCount].eList
  3933. "
  3934. >
  3935. </markScore>
  3936. <div
  3937. class="answerScore"
  3938. @click="
  3939. markScoreDig2(
  3940. w.sName,
  3941. worksStudent,
  3942. w.userid,
  3943. toolIndex,
  3944. chapInfoList[courseType].chapterInfo[0]
  3945. .taskJson[taskCount].eList,
  3946. AIloading[toolIndex][wIndex].loading,
  3947. tool
  3948. )
  3949. "
  3950. slot="reference"
  3951. :class="{
  3952. rightW:
  3953. w.userid == userid ||
  3954. tType == 1 ||
  3955. tType == 4 ||
  3956. w.ateacher == userid
  3957. }"
  3958. >
  3959. <span v-if="AIloading[toolIndex][wIndex].sco">
  3960. {{
  3961. AIloading[toolIndex][wIndex].loading
  3962. ? lang.ssScoringIn
  3963. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  3964. }}
  3965. </span>
  3966. <span v-else>
  3967. {{
  3968. AIloading[toolIndex][wIndex].loading
  3969. ? lang.ssScoringIn
  3970. : lang.ssMarkScore
  3971. }}
  3972. </span>
  3973. </div>
  3974. </el-popover>
  3975. </div>
  3976. <img
  3977. class="deleteImg"
  3978. src="../../assets/deleteworks.png"
  3979. v-if="
  3980. w.userid == userid || tType == 1 || tType == 4
  3981. "
  3982. @click.stop="deleteWorks(w.wid)"
  3983. alt
  3984. />
  3985. </div>
  3986. <div class="workImg" v-if="w.type == 12">
  3987. <img
  3988. style="cursor: pointer"
  3989. :src="word2"
  3990. @click="downloadFile(w.works,w.userid)"
  3991. alt
  3992. />
  3993. <!-- @click="openVideo(w.works)" -->
  3994. <div
  3995. class="answerScore"
  3996. v-if="w.score"
  3997. @click.stop="openScore(w)"
  3998. :class="{
  3999. rightW:
  4000. w.userid == userid ||
  4001. tType == 1 ||
  4002. tType == 4 ||
  4003. w.ateacher == userid
  4004. }"
  4005. >
  4006. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4007. </div>
  4008. <div
  4009. class="answerScore"
  4010. @click.stop="openScore(w)"
  4011. v-else-if="
  4012. courseDetail.userid == userid &&
  4013. courseDetail.state != 6 &&
  4014. chapInfoList[courseType].chapterInfo[0]
  4015. .taskJson[taskCount].eList &&
  4016. chapInfoList[courseType].chapterInfo[0]
  4017. .taskJson[taskCount].eList.length
  4018. "
  4019. :class="{
  4020. rightW:
  4021. w.userid == userid ||
  4022. tType == 1 ||
  4023. tType == 4 ||
  4024. w.ateacher == userid
  4025. }"
  4026. >
  4027. {{ lang.ssMarkScore }}
  4028. </div>
  4029. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  4030. <div
  4031. v-else-if="
  4032. (courseDetail.userid == userid ||
  4033. (courseDetail.course_teacher &&
  4034. courseDetail.course_teacher.indexOf(userid) !=
  4035. -1) ||
  4036. (w.userid == userid && sIsOpen)) &&
  4037. courseDetail.state == 6 &&
  4038. ((chapInfoList[courseType].chapterInfo[0]
  4039. .taskJson[taskCount].eList &&
  4040. chapInfoList[courseType].chapterInfo[0]
  4041. .taskJson[taskCount].eList.length) ||
  4042. (tool.eList && tool.eList.length))
  4043. "
  4044. >
  4045. <el-popover
  4046. placement="top"
  4047. width="318"
  4048. :disabled="AIloading[toolIndex][wIndex].loading"
  4049. trigger="hover"
  4050. >
  4051. <markScore
  4052. :loading="AIloading[toolIndex][wIndex].loading"
  4053. :markScoreVisible="markScoreVisible"
  4054. :ref="`markSco${toolIndex}${wIndex}`"
  4055. @updateLoading="updateLoading"
  4056. @updateDocSco="updateDocSco"
  4057. @refreshOther="refreshOther"
  4058. @markScoreDig="markScoreDig"
  4059. :tool="tool"
  4060. :wIndex="wIndex"
  4061. :scoCon="w"
  4062. :toolIndex="toolIndex"
  4063. :key="refreshKey"
  4064. :stage="courseType"
  4065. :task="taskCount"
  4066. :scoTit="
  4067. chapInfoList[courseType].chapterInfo[0]
  4068. .taskJson[taskCount].eList
  4069. "
  4070. >
  4071. </markScore>
  4072. <div
  4073. class="answerScore"
  4074. @click="
  4075. markScoreDig2(
  4076. w.sName,
  4077. worksStudent,
  4078. w.userid,
  4079. toolIndex,
  4080. chapInfoList[courseType].chapterInfo[0]
  4081. .taskJson[taskCount].eList,
  4082. AIloading[toolIndex][wIndex].loading,
  4083. tool
  4084. )
  4085. "
  4086. slot="reference"
  4087. :class="{
  4088. rightW:
  4089. w.userid == userid ||
  4090. tType == 1 ||
  4091. tType == 4 ||
  4092. w.ateacher == userid
  4093. }"
  4094. >
  4095. <span v-if="AIloading[toolIndex][wIndex].sco">
  4096. {{
  4097. AIloading[toolIndex][wIndex].loading
  4098. ? lang.ssScoringIn
  4099. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  4100. }}
  4101. </span>
  4102. <span v-else>
  4103. {{
  4104. AIloading[toolIndex][wIndex].loading
  4105. ? lang.ssScoringIn
  4106. : lang.ssMarkScore
  4107. }}
  4108. </span>
  4109. </div>
  4110. </el-popover>
  4111. </div>
  4112. <img
  4113. class="deleteImg"
  4114. src="../../assets/deleteworks.png"
  4115. v-if="
  4116. w.userid == userid || tType == 1 || tType == 4
  4117. "
  4118. @click.stop="deleteWorks(w.wid)"
  4119. alt
  4120. />
  4121. </div>
  4122. <div class="comment" style="min-width: 200px">
  4123. <div class="worksName">
  4124. <div>{{ w.sName }}</div>
  4125. </div>
  4126. <div class="commentList">
  4127. <div class="commentList">
  4128. <div
  4129. class="commentImg"
  4130. @click="
  4131. isLikes(
  4132. w.wid,
  4133. userid,
  4134. 1,
  4135. null,
  4136. w.isLikes,
  4137. w.sName
  4138. )
  4139. "
  4140. >
  4141. <img
  4142. :src="w.isLikes == true ? likes : noLikes"
  4143. alt=""
  4144. />
  4145. </div>
  4146. <div>{{ w.likesCount }}</div>
  4147. </div>
  4148. <div class="commentList" style="margin-right: 15px">
  4149. <div
  4150. class="commentImg"
  4151. @click="commentOther(w, toolIndex, wIndex)"
  4152. >
  4153. <img
  4154. src="../../assets/icon/comment/comment.png"
  4155. alt=""
  4156. />
  4157. </div>
  4158. <div>{{ w.commentCount }}</div>
  4159. </div>
  4160. </div>
  4161. </div>
  4162. </div>
  4163. </div>
  4164. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4165. {{ lang.ssNotSubmitted }}
  4166. </div>
  4167. <div
  4168. class="noWorksS"
  4169. v-if="noWorksS && noWorksS[toolIndex].length"
  4170. >
  4171. <div
  4172. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4173. :key="sIndex"
  4174. class="noWorksName"
  4175. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4176. >
  4177. <el-tooltip
  4178. effect="dark"
  4179. :content="s.student"
  4180. placement="top"
  4181. >
  4182. <span>{{ s.student }}</span>
  4183. </el-tooltip>
  4184. </div>
  4185. </div>
  4186. </div>
  4187. <div
  4188. v-if="
  4189. tType &&
  4190. ((tType == 2 && sIsOpen == true) ||
  4191. tType == 1 ||
  4192. tType == 4) &&
  4193. tool.tool.indexOf(70) != -1
  4194. "
  4195. class="worksBox"
  4196. >
  4197. <div
  4198. class="zuoyeYulan"
  4199. v-if="
  4200. worksStudent.length &&
  4201. worksStudent[toolIndex].length > 0
  4202. "
  4203. >
  4204. <div class="worksTop">
  4205. <div>{{ lang.ssHomeworkPreview }}</div>
  4206. <div
  4207. class="corOpen"
  4208. @click="contract(toolIndex)"
  4209. v-if="
  4210. isCloseList[toolIndex].isCloseBoolean &&
  4211. isCloseList[toolIndex].isClose == 0
  4212. "
  4213. >
  4214. {{ lang.ssFold }}
  4215. </div>
  4216. <div
  4217. class="corOpen"
  4218. @click="contract(toolIndex)"
  4219. v-if="isCloseList[toolIndex].isClose == 1"
  4220. >
  4221. {{ lang.ssExpand }}
  4222. </div>
  4223. </div>
  4224. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4225. </div>
  4226. <div
  4227. :id="'tool-' + toolIndex"
  4228. :style="{
  4229. height:
  4230. isCloseList[toolIndex].isClose == 1
  4231. ? retrnToolHeight('tool-' + toolIndex)
  4232. : 'auto',
  4233. overflow:
  4234. isCloseList[toolIndex].isClose == 1
  4235. ? 'hidden'
  4236. : 'unset'
  4237. }"
  4238. class="worksDetailBox"
  4239. v-if="
  4240. worksStudent.length &&
  4241. worksStudent[toolIndex].length > 0
  4242. "
  4243. >
  4244. <div
  4245. class="works"
  4246. style="
  4247. width: 200px;
  4248. height: 140px;
  4249. margin: 10px 10px 10px 0;
  4250. border-radius: 15px;
  4251. box-shadow: 0 0 6px 1px #dfdada;
  4252. "
  4253. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4254. :key="wIndex"
  4255. :class="w.type == 1 ? 'isTypeOne' : ''"
  4256. >
  4257. <div
  4258. class="workImg"
  4259. @click.stop="openScore(w, toolIndex)"
  4260. >
  4261. <img :src="word" alt />
  4262. <img
  4263. class="deleteImg"
  4264. src="../../assets/deleteworks.png"
  4265. v-if="
  4266. w.userid == userid || tType == 1 || tType == 4
  4267. "
  4268. @click.stop="deleteWorks(w.wid)"
  4269. alt
  4270. />
  4271. </div>
  4272. <div class="comment" style="min-width: 200px">
  4273. <div class="worksName">
  4274. <div>{{ w.sName }}</div>
  4275. </div>
  4276. </div>
  4277. </div>
  4278. </div>
  4279. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4280. {{ lang.ssNotSubmitted }}
  4281. </div>
  4282. <div
  4283. class="noWorksS"
  4284. v-if="noWorksS && noWorksS[toolIndex].length"
  4285. >
  4286. <div
  4287. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4288. :key="sIndex"
  4289. class="noWorksName"
  4290. >
  4291. <el-tooltip
  4292. effect="dark"
  4293. :content="s.student"
  4294. placement="top"
  4295. >
  4296. <span>{{ s.student }}</span>
  4297. </el-tooltip>
  4298. </div>
  4299. </div>
  4300. </div>
  4301. <div
  4302. v-if="
  4303. tType &&
  4304. tType == 2 &&
  4305. !sIsOpen &&
  4306. tool.tool.indexOf(70) != -1
  4307. "
  4308. class="worksBox"
  4309. >
  4310. <div
  4311. class="zuoyeYulan"
  4312. v-if="workStudent[toolIndex].length > 0"
  4313. >
  4314. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  4315. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">{{ lang.ssMyEvaluation }}</el-button> -->
  4316. </div>
  4317. <div
  4318. class="worksDetailBox"
  4319. v-if="workStudent[toolIndex].length > 0"
  4320. >
  4321. <div
  4322. class="works"
  4323. style="
  4324. width: 200px;
  4325. height: 140px;
  4326. margin: 10px 10px 10px 0;
  4327. box-shadow: 0 0 6px 1px #dfdada;
  4328. "
  4329. v-for="(w, wIndex) in workStudent[toolIndex]"
  4330. :key="wIndex"
  4331. >
  4332. <div
  4333. class="workImg"
  4334. @click.stop="openScore(w, toolIndex)"
  4335. >
  4336. <img :src="word" alt />
  4337. <img
  4338. class="deleteImg"
  4339. src="../../assets/deleteworks.png"
  4340. v-if="
  4341. w.userid == userid || tType == 1 || tType == 4
  4342. "
  4343. @click.stop="deleteWorks(w.wid)"
  4344. alt
  4345. />
  4346. </div>
  4347. <div class="worksName">
  4348. <div>{{ w.sName }}</div>
  4349. </div>
  4350. </div>
  4351. </div>
  4352. </div>
  4353. <div
  4354. v-if="
  4355. tType &&
  4356. ((tType == 2 && sIsOpen == true) ||
  4357. tType == 1 ||
  4358. tType == 4) &&
  4359. tool.tool.indexOf(32) != -1
  4360. "
  4361. class="worksBox"
  4362. >
  4363. <div
  4364. class="zuoyeYulan"
  4365. v-if="
  4366. worksStudent.length &&
  4367. worksStudent[toolIndex].length > 0
  4368. "
  4369. >
  4370. <div class="worksTop">
  4371. <div>{{ lang.ssHomeworkPreview }}</div>
  4372. <div
  4373. class="corOpen"
  4374. @click="contract(toolIndex)"
  4375. v-if="
  4376. isCloseList[toolIndex].isCloseBoolean &&
  4377. isCloseList[toolIndex].isClose == 0
  4378. "
  4379. >
  4380. {{ lang.ssFold }}
  4381. </div>
  4382. <div
  4383. class="corOpen"
  4384. @click="contract(toolIndex)"
  4385. v-if="isCloseList[toolIndex].isClose == 1"
  4386. >
  4387. {{ lang.ssExpand }}
  4388. </div>
  4389. </div>
  4390. </div>
  4391. <div
  4392. :id="'tool-' + toolIndex"
  4393. :style="{
  4394. height:
  4395. isCloseList[toolIndex].isClose == 1
  4396. ? retrnToolHeight('tool-' + toolIndex)
  4397. : 'auto',
  4398. overflow:
  4399. isCloseList[toolIndex].isClose == 1
  4400. ? 'hidden'
  4401. : 'unset'
  4402. }"
  4403. class="worksDetailBox"
  4404. v-if="
  4405. worksStudent.length &&
  4406. worksStudent[toolIndex].length > 0
  4407. "
  4408. >
  4409. <div
  4410. class="works"
  4411. style="
  4412. width: 200px;
  4413. height: 140px;
  4414. margin: 10px 10px 10px 0;
  4415. border-radius: 15px;
  4416. box-shadow: 0 0 6px 1px #dfdada;
  4417. "
  4418. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4419. :key="wIndex"
  4420. :class="w.type == 1 ? 'isTypeOne' : ''"
  4421. >
  4422. <div class="workImg">
  4423. <img
  4424. :src="word2"
  4425. @click="downloadFile(w.works,w.userid)"
  4426. alt
  4427. />
  4428. <div
  4429. class="answerScore"
  4430. v-if="w.score"
  4431. @click.stop="openScore(w)"
  4432. :class="{
  4433. rightW:
  4434. w.userid == userid ||
  4435. tType == 1 ||
  4436. tType == 4 ||
  4437. w.ateacher == userid
  4438. }"
  4439. >
  4440. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4441. </div>
  4442. <div
  4443. class="answerScore"
  4444. @click.stop="openScore(w)"
  4445. v-else-if="courseDetail.userid == userid"
  4446. :class="{
  4447. rightW:
  4448. w.userid == userid ||
  4449. tType == 1 ||
  4450. tType == 4 ||
  4451. w.ateacher == userid
  4452. }"
  4453. >
  4454. {{ lang.ssMarkScore }}
  4455. </div>
  4456. <img
  4457. class="deleteImg"
  4458. src="../../assets/deleteworks.png"
  4459. v-if="
  4460. w.userid == userid || tType == 1 || tType == 4
  4461. "
  4462. @click.stop="deleteWorks(w.wid)"
  4463. alt
  4464. />
  4465. </div>
  4466. <div class="comment" style="min-width: 200px">
  4467. <div class="worksName">
  4468. <div>{{ w.sName }}</div>
  4469. </div>
  4470. <div class="commentList">
  4471. <div class="commentList">
  4472. <div
  4473. class="commentImg"
  4474. @click="
  4475. isLikes(
  4476. w.wid,
  4477. userid,
  4478. 1,
  4479. null,
  4480. w.isLikes,
  4481. w.sName
  4482. )
  4483. "
  4484. >
  4485. <img
  4486. :src="w.isLikes == true ? likes : noLikes"
  4487. alt=""
  4488. />
  4489. </div>
  4490. <div>{{ w.likesCount }}</div>
  4491. </div>
  4492. <div class="commentList" style="margin-right: 15px">
  4493. <div
  4494. class="commentImg"
  4495. @click="commentOther(w, toolIndex, wIndex)"
  4496. >
  4497. <img
  4498. src="../../assets/icon/comment/comment.png"
  4499. alt=""
  4500. />
  4501. </div>
  4502. <div>{{ w.commentCount }}</div>
  4503. </div>
  4504. </div>
  4505. </div>
  4506. </div>
  4507. </div>
  4508. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4509. {{ lang.ssNotSubmitted }}
  4510. </div>
  4511. <div
  4512. class="noWorksS"
  4513. v-if="noWorksS && noWorksS[toolIndex].length"
  4514. >
  4515. <div
  4516. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4517. :key="sIndex"
  4518. class="noWorksName"
  4519. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4520. >
  4521. <el-tooltip
  4522. effect="dark"
  4523. :content="s.student"
  4524. placement="top"
  4525. >
  4526. <span>{{ s.student }}</span>
  4527. </el-tooltip>
  4528. </div>
  4529. </div>
  4530. </div>
  4531. <div
  4532. v-if="
  4533. tType &&
  4534. ((tType == 2 && sIsOpen == true) ||
  4535. tType == 1 ||
  4536. tType == 4) &&
  4537. tool.tool.indexOf(57) != -1
  4538. "
  4539. class="worksBox"
  4540. >
  4541. <div
  4542. class="zuoyeYulan"
  4543. v-if="
  4544. worksStudent.length &&
  4545. worksStudent[toolIndex].length > 0
  4546. "
  4547. >
  4548. <div class="worksTop">
  4549. <div>{{ lang.ssHomeworkPreview }}</div>
  4550. <div
  4551. class="corOpen"
  4552. @click="contract(toolIndex)"
  4553. v-if="
  4554. isCloseList[toolIndex].isCloseBoolean &&
  4555. isCloseList[toolIndex].isClose == 0
  4556. "
  4557. >
  4558. {{ lang.ssFold }}
  4559. </div>
  4560. <div
  4561. class="corOpen"
  4562. @click="contract(toolIndex)"
  4563. v-if="isCloseList[toolIndex].isClose == 1"
  4564. >
  4565. {{ lang.ssExpand }}
  4566. </div>
  4567. </div>
  4568. </div>
  4569. <div
  4570. :id="'tool-' + toolIndex"
  4571. :style="{
  4572. height:
  4573. isCloseList[toolIndex].isClose == 1
  4574. ? retrnToolHeight('tool-' + toolIndex)
  4575. : 'auto',
  4576. overflow:
  4577. isCloseList[toolIndex].isClose == 1
  4578. ? 'hidden'
  4579. : 'unset'
  4580. }"
  4581. class="worksDetailBox"
  4582. v-if="
  4583. worksStudent.length &&
  4584. worksStudent[toolIndex].length > 0
  4585. "
  4586. >
  4587. <div
  4588. class="works"
  4589. style="
  4590. width: 200px;
  4591. height: 140px;
  4592. margin: 10px 10px 10px 0;
  4593. border-radius: 15px;
  4594. box-shadow: 0 0 6px 1px #dfdada;
  4595. "
  4596. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4597. :key="wIndex"
  4598. :class="w.type == 1 ? 'isTypeOne' : ''"
  4599. >
  4600. <div class="workImg">
  4601. <img
  4602. :src="word2"
  4603. @click="downloadFile(w.works,w.userid)"
  4604. v-if="w.type == 12"
  4605. alt
  4606. />
  4607. <img
  4608. :src="word2"
  4609. @click="
  4610. openCocoPi(57, toolIndex, w.userid, w.sName)
  4611. "
  4612. v-else-if="w.type == 15"
  4613. alt
  4614. />
  4615. <div
  4616. class="answerScore"
  4617. v-if="w.score"
  4618. @click.stop="openScore(w)"
  4619. :class="{
  4620. rightW:
  4621. w.userid == userid ||
  4622. tType == 1 ||
  4623. tType == 4 ||
  4624. w.ateacher == userid
  4625. }"
  4626. >
  4627. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4628. </div>
  4629. <div
  4630. class="answerScore"
  4631. @click.stop="openScore(w)"
  4632. v-else-if="
  4633. courseDetail.userid == userid &&
  4634. courseDetail.state != 6 &&
  4635. chapInfoList[courseType].chapterInfo[0]
  4636. .taskJson[taskCount].eList &&
  4637. chapInfoList[courseType].chapterInfo[0]
  4638. .taskJson[taskCount].eList.length
  4639. "
  4640. :class="{
  4641. rightW:
  4642. w.userid == userid ||
  4643. tType == 1 ||
  4644. tType == 4 ||
  4645. w.ateacher == userid
  4646. }"
  4647. >
  4648. {{ lang.ssMarkScore }}
  4649. </div>
  4650. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  4651. <div
  4652. v-else-if="
  4653. (courseDetail.userid == userid ||
  4654. (courseDetail.course_teacher &&
  4655. courseDetail.course_teacher.indexOf(userid) !=
  4656. -1) ||
  4657. (w.userid == userid && sIsOpen)) &&
  4658. courseDetail.state == 6 &&
  4659. ((chapInfoList[courseType].chapterInfo[0]
  4660. .taskJson[taskCount].eList &&
  4661. chapInfoList[courseType].chapterInfo[0]
  4662. .taskJson[taskCount].eList.length) ||
  4663. (tool.eList && tool.eList.length))
  4664. "
  4665. >
  4666. <el-popover
  4667. placement="top"
  4668. width="318"
  4669. :disabled="AIloading[toolIndex][wIndex].loading"
  4670. trigger="hover"
  4671. >
  4672. <markScore
  4673. :loading="AIloading[toolIndex][wIndex].loading"
  4674. :markScoreVisible="markScoreVisible"
  4675. :ref="`markSco${toolIndex}${wIndex}`"
  4676. @updateLoading="updateLoading"
  4677. @updateDocSco="updateDocSco"
  4678. @refreshOther="refreshOther"
  4679. @markScoreDig="markScoreDig"
  4680. :tool="tool"
  4681. :wIndex="wIndex"
  4682. :scoCon="w"
  4683. :toolIndex="toolIndex"
  4684. :key="refreshKey"
  4685. :stage="courseType"
  4686. :task="taskCount"
  4687. :scoTit="
  4688. chapInfoList[courseType].chapterInfo[0]
  4689. .taskJson[taskCount].eList
  4690. "
  4691. >
  4692. </markScore>
  4693. <div
  4694. class="answerScore"
  4695. @click="
  4696. markScoreDig2(
  4697. w.sName,
  4698. worksStudent,
  4699. w.userid,
  4700. toolIndex,
  4701. chapInfoList[courseType].chapterInfo[0]
  4702. .taskJson[taskCount].eList,
  4703. AIloading[toolIndex][wIndex].loading,
  4704. tool
  4705. )
  4706. "
  4707. slot="reference"
  4708. :class="{
  4709. rightW:
  4710. w.userid == userid ||
  4711. tType == 1 ||
  4712. tType == 4 ||
  4713. w.ateacher == userid
  4714. }"
  4715. >
  4716. <span v-if="AIloading[toolIndex][wIndex].sco">
  4717. {{
  4718. AIloading[toolIndex][wIndex].loading
  4719. ? lang.ssScoringIn
  4720. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  4721. }}
  4722. </span>
  4723. <span v-else>
  4724. {{
  4725. AIloading[toolIndex][wIndex].loading
  4726. ? lang.ssScoringIn
  4727. : lang.ssMarkScore
  4728. }}
  4729. </span>
  4730. </div>
  4731. </el-popover>
  4732. </div>
  4733. <img
  4734. class="deleteImg"
  4735. src="../../assets/deleteworks.png"
  4736. v-if="
  4737. w.userid == userid || tType == 1 || tType == 4
  4738. "
  4739. @click.stop="deleteWorks(w.wid)"
  4740. alt
  4741. />
  4742. </div>
  4743. <div class="comment" style="min-width: 200px">
  4744. <div class="worksName">
  4745. <div>{{ w.sName }}</div>
  4746. </div>
  4747. <div class="commentList">
  4748. <div class="commentList">
  4749. <div
  4750. class="commentImg"
  4751. @click="
  4752. isLikes(
  4753. w.wid,
  4754. userid,
  4755. 1,
  4756. null,
  4757. w.isLikes,
  4758. w.sName
  4759. )
  4760. "
  4761. >
  4762. <img
  4763. :src="w.isLikes == true ? likes : noLikes"
  4764. alt=""
  4765. />
  4766. </div>
  4767. <div>{{ w.likesCount }}</div>
  4768. </div>
  4769. <div class="commentList" style="margin-right: 15px">
  4770. <div
  4771. class="commentImg"
  4772. @click="commentOther(w, toolIndex, wIndex)"
  4773. >
  4774. <img
  4775. src="../../assets/icon/comment/comment.png"
  4776. alt=""
  4777. />
  4778. </div>
  4779. <div>{{ w.commentCount }}</div>
  4780. </div>
  4781. </div>
  4782. </div>
  4783. </div>
  4784. </div>
  4785. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4786. {{ lang.ssNotSubmitted }}
  4787. </div>
  4788. <div
  4789. class="noWorksS"
  4790. v-if="noWorksS && noWorksS[toolIndex].length"
  4791. >
  4792. <div
  4793. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4794. :key="sIndex"
  4795. class="noWorksName"
  4796. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4797. >
  4798. <el-tooltip
  4799. effect="dark"
  4800. :content="s.student"
  4801. placement="top"
  4802. >
  4803. <span>{{ s.student }}</span>
  4804. </el-tooltip>
  4805. </div>
  4806. </div>
  4807. </div>
  4808. <div
  4809. v-if="
  4810. tType &&
  4811. ((tType == 2 && sIsOpen == true) ||
  4812. tType == 1 ||
  4813. tType == 4) &&
  4814. tool.tool.indexOf(72) != -1
  4815. "
  4816. class="worksBox"
  4817. >
  4818. <div
  4819. class="zuoyeYulan"
  4820. style="display: flex;justify-content: space-between;align-items: center;"
  4821. v-if="
  4822. worksStudent.length &&
  4823. worksStudent[toolIndex].length > 0
  4824. "
  4825. >
  4826. <div class="worksTop">
  4827. <div>{{ lang.ssHomeworkPreview }}</div>
  4828. <div
  4829. class="corOpen"
  4830. @click="contract(toolIndex)"
  4831. v-if="
  4832. isCloseList[toolIndex].isCloseBoolean &&
  4833. isCloseList[toolIndex].isClose == 0
  4834. "
  4835. >
  4836. {{ lang.ssFold }}
  4837. </div>
  4838. <div
  4839. class="corOpen"
  4840. @click="contract(toolIndex)"
  4841. v-if="isCloseList[toolIndex].isClose == 1"
  4842. >
  4843. {{ lang.ssExpand }}
  4844. </div>
  4845. </div>
  4846. <div
  4847. style="display: flex;"
  4848. v-if="
  4849. (courseDetail.userid == userid ||
  4850. (courseDetail.course_teacher &&
  4851. courseDetail.course_teacher.indexOf(userid) !=
  4852. -1)) &&
  4853. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  4854. taskCount
  4855. ].eList &&
  4856. chapInfoList[courseType].chapterInfo[0].taskJson[
  4857. taskCount
  4858. ].eList.length) ||
  4859. (tool.eList && tool.eList.length)) &&
  4860. courseDetail.state == 6
  4861. "
  4862. >
  4863. <!-- <div style="display: flex;" v-if="courseDetail.userid == userid && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length)) && courseDetail.state == 6"> -->
  4864. <div
  4865. @click="
  4866. resetLoopEva(
  4867. worksStudent[toolIndex],
  4868. chapInfoList[courseType].chapterInfo[0].taskJson[
  4869. taskCount
  4870. ].eList,
  4871. courseType,
  4872. taskCount,
  4873. toolIndex,
  4874. tool.toolDetail,
  4875. tool
  4876. )
  4877. "
  4878. style="margin-right:10px"
  4879. class="ScoreBtn"
  4880. >
  4881. {{ lang.ssReset }}
  4882. </div>
  4883. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  4884. <img
  4885. src="../../assets/icon/newIcons/rootImg.png"
  4886. alt=""
  4887. />
  4888. {{ lang.ssAiScore }}
  4889. </div>
  4890. <div
  4891. class="ScoreBtn"
  4892. v-else-if="!loopLoading[toolIndex].loading"
  4893. @click="
  4894. loopEva(
  4895. worksStudent[toolIndex],
  4896. chapInfoList[courseType].chapterInfo[0].taskJson[
  4897. taskCount
  4898. ].eList,
  4899. courseType,
  4900. taskCount,
  4901. toolIndex,
  4902. tool.toolDetail,
  4903. chapInfoList[courseType].chapterInfo[0].taskJson[
  4904. taskCount
  4905. ].taskDetail,
  4906. tool
  4907. )
  4908. "
  4909. >
  4910. <img
  4911. src="../../assets/icon/newIcons/rootImg.png"
  4912. alt=""
  4913. />
  4914. {{ lang.ssAiScore }}
  4915. </div>
  4916. <div class="ScoreBtn" v-else>
  4917. <img
  4918. src="../../assets/icon/newIcons/rootImg.png"
  4919. alt=""
  4920. />
  4921. {{ lang.ssScoring }}
  4922. </div>
  4923. </div>
  4924. </div>
  4925. <div
  4926. :id="'tool-' + toolIndex"
  4927. :style="{
  4928. height:
  4929. isCloseList[toolIndex].isClose == 1
  4930. ? retrnToolHeight('tool-' + toolIndex)
  4931. : 'auto',
  4932. overflow:
  4933. isCloseList[toolIndex].isClose == 1
  4934. ? 'hidden'
  4935. : 'unset'
  4936. }"
  4937. class="worksDetailBox"
  4938. v-if="
  4939. worksStudent.length &&
  4940. worksStudent[toolIndex].length > 0
  4941. "
  4942. >
  4943. <div
  4944. class="works"
  4945. style="
  4946. width: 200px;
  4947. height: 140px;
  4948. margin: 10px 10px 10px 0;
  4949. border-radius: 15px;
  4950. box-shadow: 0 0 6px 1px #dfdada;
  4951. "
  4952. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4953. :key="wIndex"
  4954. :class="w.type == 1 ? 'isTypeOne' : ''"
  4955. >
  4956. <div class="workImg">
  4957. <!-- <img
  4958. :src="word2"
  4959. @click="downloadFile(w.works)"
  4960. v-if="w.type == 12"
  4961. alt
  4962. /> -->
  4963. <img
  4964. :src="word2"
  4965. @click="
  4966. openCocoFlow(w)
  4967. "
  4968. alt
  4969. />
  4970. <div
  4971. class="answerScore"
  4972. v-if="w.score"
  4973. @click.stop="openScore(w)"
  4974. :class="{
  4975. rightW:
  4976. w.userid == userid ||
  4977. tType == 1 ||
  4978. tType == 4 ||
  4979. w.ateacher == userid
  4980. }"
  4981. >
  4982. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  4983. </div>
  4984. <div
  4985. class="answerScore"
  4986. @click.stop="openScore(w)"
  4987. v-else-if="
  4988. courseDetail.userid == userid &&
  4989. courseDetail.state != 5 &&
  4990. chapInfoList[courseType].chapterInfo[0]
  4991. .taskJson[taskCount].eList &&
  4992. chapInfoList[courseType].chapterInfo[0]
  4993. .taskJson[taskCount].eList.length
  4994. "
  4995. :class="{
  4996. rightW:
  4997. w.userid == userid ||
  4998. tType == 1 ||
  4999. tType == 4 ||
  5000. w.ateacher == userid
  5001. }"
  5002. >
  5003. {{ lang.ssMarkScore }}
  5004. </div>
  5005. <div
  5006. v-else-if="
  5007. (courseDetail.userid == userid ||
  5008. (courseDetail.course_teacher &&
  5009. courseDetail.course_teacher.indexOf(userid) !=
  5010. -1) ||
  5011. (w.userid == userid && sIsOpen)) &&
  5012. courseDetail.state == 6 &&
  5013. ((chapInfoList[courseType].chapterInfo[0]
  5014. .taskJson[taskCount].eList &&
  5015. chapInfoList[courseType].chapterInfo[0]
  5016. .taskJson[taskCount].eList.length) ||
  5017. (tool.eList && tool.eList.length))
  5018. "
  5019. >
  5020. <!-- <div
  5021. class="answerScore"
  5022. @click="markScoreDig(w.userid,toolIndex)"
  5023. :class="{
  5024. rightW:
  5025. w.userid == userid ||
  5026. tType == 1 ||
  5027. tType == 4 ||
  5028. w.ateacher == userid,
  5029. }"
  5030. >
  5031. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  5032. </div> -->
  5033. <!-- @show="handleShow(toolIndex,wIndex)"
  5034. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  5035. <el-popover
  5036. placement="top"
  5037. width="318"
  5038. :disabled="AIloading[toolIndex][wIndex].loading"
  5039. trigger="hover"
  5040. >
  5041. <markScore
  5042. :loading="AIloading[toolIndex][wIndex].loading"
  5043. :markScoreVisible="markScoreVisible"
  5044. :ref="`markSco${toolIndex}${wIndex}`"
  5045. @updateLoading="updateLoading"
  5046. @updateDocSco="updateDocSco"
  5047. @refreshOther="refreshOther"
  5048. @markScoreDig="markScoreDig"
  5049. :tool="tool"
  5050. :wIndex="wIndex"
  5051. :scoCon="w"
  5052. :toolIndex="toolIndex"
  5053. :key="refreshKey"
  5054. :stage="courseType"
  5055. :task="taskCount"
  5056. :scoTit="
  5057. chapInfoList[courseType].chapterInfo[0]
  5058. .taskJson[taskCount].eList
  5059. "
  5060. >
  5061. </markScore>
  5062. <div
  5063. class="answerScore"
  5064. @click="
  5065. markScoreDig2(
  5066. w.sName,
  5067. worksStudent,
  5068. w.userid,
  5069. toolIndex,
  5070. chapInfoList[courseType].chapterInfo[0]
  5071. .taskJson[taskCount].eList,
  5072. AIloading[toolIndex][wIndex].loading,
  5073. tool
  5074. )
  5075. "
  5076. slot="reference"
  5077. :class="{
  5078. rightW:
  5079. w.userid == userid ||
  5080. tType == 1 ||
  5081. tType == 4 ||
  5082. w.ateacher == userid
  5083. }"
  5084. >
  5085. <span v-if="AIloading[toolIndex][wIndex].sco">
  5086. {{
  5087. AIloading[toolIndex][wIndex].loading
  5088. ? lang.ssScoringIn
  5089. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  5090. }}
  5091. </span>
  5092. <span v-else>
  5093. {{
  5094. AIloading[toolIndex][wIndex].loading
  5095. ? lang.ssScoringIn
  5096. : lang.ssMarkScore
  5097. }}
  5098. </span>
  5099. </div>
  5100. </el-popover>
  5101. </div>
  5102. <img
  5103. class="deleteImg"
  5104. src="../../assets/deleteworks.png"
  5105. v-if="
  5106. w.userid == userid || tType == 1 || tType == 4
  5107. "
  5108. @click.stop="deleteWorks(w.wid)"
  5109. alt
  5110. />
  5111. </div>
  5112. <div class="comment" style="min-width: 200px">
  5113. <div class="worksName">
  5114. <div>{{ w.sName }}</div>
  5115. </div>
  5116. <div class="commentList">
  5117. <div class="commentList">
  5118. <div
  5119. class="commentImg"
  5120. @click="
  5121. isLikes(
  5122. w.wid,
  5123. userid,
  5124. 1,
  5125. null,
  5126. w.isLikes,
  5127. w.sName
  5128. )
  5129. "
  5130. >
  5131. <img
  5132. :src="w.isLikes == true ? likes : noLikes"
  5133. alt=""
  5134. />
  5135. </div>
  5136. <div>{{ w.likesCount }}</div>
  5137. </div>
  5138. <div class="commentList" style="margin-right: 15px">
  5139. <div
  5140. class="commentImg"
  5141. @click="commentOther(w, toolIndex, wIndex)"
  5142. >
  5143. <img
  5144. src="../../assets/icon/comment/comment.png"
  5145. alt=""
  5146. />
  5147. </div>
  5148. <div>{{ w.commentCount }}</div>
  5149. </div>
  5150. </div>
  5151. </div>
  5152. </div>
  5153. </div>
  5154. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5155. {{ lang.ssNotSubmitted }}
  5156. </div>
  5157. <div
  5158. class="noWorksS"
  5159. v-if="noWorksS && noWorksS[toolIndex].length"
  5160. >
  5161. <div
  5162. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5163. :key="sIndex"
  5164. class="noWorksName2"
  5165. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  5166. >
  5167. <el-tooltip
  5168. effect="dark"
  5169. :content="s.student"
  5170. placement="top"
  5171. >
  5172. <span>{{ s.student }}</span>
  5173. </el-tooltip>
  5174. </div>
  5175. </div>
  5176. </div>
  5177. <div
  5178. v-if="
  5179. tType &&
  5180. tType == 2 &&
  5181. !sIsOpen &&
  5182. tool.tool.indexOf(72) != -1
  5183. "
  5184. class="worksBox"
  5185. >
  5186. <div
  5187. class="zuoyeYulan"
  5188. v-if="workStudent[toolIndex].length > 0"
  5189. >
  5190. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  5191. </div>
  5192. <div
  5193. class="worksDetailBox"
  5194. v-if="workStudent[toolIndex].length > 0"
  5195. >
  5196. <div
  5197. class="works"
  5198. style="
  5199. width: 200px;
  5200. height: 140px;
  5201. margin: 10px 10px 10px 0;
  5202. box-shadow: 0 0 6px 1px #dfdada;
  5203. "
  5204. v-for="(w, wIndex) in workStudent[toolIndex]"
  5205. :key="wIndex"
  5206. >
  5207. <div class="workImg">
  5208. <!-- <img
  5209. :src="word2"
  5210. @click="downloadFile(w.works)"
  5211. v-if="w.type == 12"
  5212. alt
  5213. /> -->
  5214. <img
  5215. :src="word2"
  5216. @click="
  5217. openCocoFlow(w)
  5218. "
  5219. alt
  5220. />
  5221. <div
  5222. class="answerScore"
  5223. v-if="w.score"
  5224. @click.stop="openScore(w)"
  5225. :class="{
  5226. rightW:
  5227. w.userid == userid || tType == 1 || tType == 4
  5228. }"
  5229. >
  5230. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5231. </div>
  5232. <div
  5233. class="answerScore"
  5234. @click.stop="openScore(w)"
  5235. v-else-if="courseDetail.userid == userid"
  5236. :class="{
  5237. rightW:
  5238. w.userid == userid || tType == 1 || tType == 4
  5239. }"
  5240. >
  5241. {{ lang.ssMarkScore }}
  5242. </div>
  5243. <div
  5244. class="stuLookScore"
  5245. v-if="
  5246. w.userid == userid ||
  5247. (tType == 1 &&
  5248. courseDetail.state == 6 &&
  5249. ((chapInfoList[courseType].chapterInfo[0]
  5250. .taskJson[taskCount].eList &&
  5251. chapInfoList[courseType].chapterInfo[0]
  5252. .taskJson[taskCount].eList.length) ||
  5253. (tool.eList && tool.eList.length)))
  5254. "
  5255. >
  5256. <el-popover
  5257. placement="top"
  5258. width="318"
  5259. trigger="hover"
  5260. >
  5261. <markScore
  5262. :loading="AIloading[toolIndex][wIndex].loading"
  5263. :markScoreVisible="markScoreVisible"
  5264. :ref="`markSco${toolIndex}${wIndex}`"
  5265. @updateLoading="updateLoading"
  5266. @updateDocSco="updateDocSco"
  5267. @refreshOther="refreshOther"
  5268. @markScoreDig="markScoreDig"
  5269. :tool="tool"
  5270. :wIndex="wIndex"
  5271. :scoCon="w"
  5272. :toolIndex="toolIndex"
  5273. :key="refreshKey"
  5274. :stage="courseType"
  5275. :task="taskCount"
  5276. :scoTit="
  5277. chapInfoList[courseType].chapterInfo[0]
  5278. .taskJson[taskCount].eList
  5279. "
  5280. >
  5281. </markScore>
  5282. <div
  5283. @click="
  5284. markScoreDig2(
  5285. w.sName,
  5286. worksStudent,
  5287. w.userid,
  5288. toolIndex,
  5289. chapInfoList[courseType].chapterInfo[0]
  5290. .taskJson[taskCount].eList,
  5291. AIloading[toolIndex][wIndex].loading,
  5292. tool
  5293. )
  5294. "
  5295. slot="reference"
  5296. >
  5297. <span v-if="AIloading[toolIndex][wIndex].sco">
  5298. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  5299. </span>
  5300. <span v-else>
  5301. {{ lang.ssMarkScore }}
  5302. </span>
  5303. </div>
  5304. </el-popover>
  5305. </div>
  5306. <img
  5307. class="deleteImg"
  5308. src="../../assets/deleteworks.png"
  5309. v-if="
  5310. w.userid == userid || tType == 1 || tType == 4
  5311. "
  5312. @click.stop="deleteWorks(w.wid)"
  5313. alt
  5314. />
  5315. </div>
  5316. <div class="worksName">
  5317. <div>{{ w.sName }}</div>
  5318. </div>
  5319. </div>
  5320. </div>
  5321. </div>
  5322. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  5323. <div
  5324. style="display: flex;justify-content: space-between;align-items: center;"
  5325. >
  5326. <div
  5327. class="zuoyeYulan"
  5328. v-if="
  5329. worksStudent.length &&
  5330. worksStudent[toolIndex].length > 0
  5331. "
  5332. >
  5333. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  5334. <div
  5335. class="corOpen"
  5336. @click="contract(toolIndex)"
  5337. v-if="
  5338. isCloseList[toolIndex].isCloseBoolean &&
  5339. isCloseList[toolIndex].isClose == 0
  5340. "
  5341. >
  5342. {{ lang.ssFold }}
  5343. </div>
  5344. <div
  5345. class="corOpen"
  5346. @click="contract(toolIndex)"
  5347. v-if="isCloseList[toolIndex].isClose == 1"
  5348. >
  5349. {{ lang.ssExpand }}
  5350. </div>
  5351. </div>
  5352. <div
  5353. style="display: flex;"
  5354. v-if="
  5355. (courseDetail.userid == userid ||
  5356. (courseDetail.course_teacher &&
  5357. courseDetail.course_teacher.indexOf(userid) !=
  5358. -1)) &&
  5359. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  5360. taskCount
  5361. ].eList &&
  5362. chapInfoList[courseType].chapterInfo[0].taskJson[
  5363. taskCount
  5364. ].eList.length) ||
  5365. (tool.eList && tool.eList.length)) &&
  5366. courseDetail.state == 6
  5367. "
  5368. >
  5369. <!-- <div style="display: flex;" v-if="courseDetail.userid == userid && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length && courseDetail.state == 6 "> -->
  5370. <div
  5371. style="margin-right:10px"
  5372. class="ScoreBtn"
  5373. @click="
  5374. resetLoopEva(
  5375. worksStudent[toolIndex],
  5376. chapInfoList[courseType].chapterInfo[0].taskJson[
  5377. taskCount
  5378. ].eList,
  5379. courseType,
  5380. taskCount,
  5381. toolIndex,
  5382. tool.toolDetail,
  5383. worksStudent
  5384. )
  5385. "
  5386. >
  5387. {{ lang.ssReset }}
  5388. </div>
  5389. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  5390. <img
  5391. src="../../assets/icon/newIcons/rootImg.png"
  5392. alt=""
  5393. />
  5394. {{ lang.ssAiScore }}
  5395. </div>
  5396. <div
  5397. class="ScoreBtn"
  5398. v-else-if="!loopLoading[toolIndex].loading"
  5399. @click="
  5400. loopEva(
  5401. worksStudent[toolIndex],
  5402. chapInfoList[courseType].chapterInfo[0].taskJson[
  5403. taskCount
  5404. ].eList,
  5405. courseType,
  5406. taskCount,
  5407. toolIndex,
  5408. tool.toolDetail,
  5409. chapInfoList[courseType].chapterInfo[0].taskJson[
  5410. taskCount
  5411. ].taskDetail,
  5412. tool
  5413. )
  5414. "
  5415. >
  5416. <img
  5417. src="../../assets/icon/newIcons/rootImg.png"
  5418. alt=""
  5419. />
  5420. {{ lang.ssAiScore }}
  5421. </div>
  5422. <div class="ScoreBtn" v-else>
  5423. <img
  5424. src="../../assets/icon/newIcons/rootImg.png"
  5425. alt=""
  5426. />
  5427. {{ lang.ssScoring }}
  5428. </div>
  5429. </div>
  5430. </div>
  5431. <div
  5432. :id="'tool-' + toolIndex"
  5433. :style="{
  5434. height:
  5435. isCloseList[toolIndex].isClose == 1
  5436. ? retrnToolHeight('tool-' + toolIndex)
  5437. : 'auto',
  5438. overflow:
  5439. isCloseList[toolIndex].isClose == 1
  5440. ? 'hidden'
  5441. : 'unset'
  5442. }"
  5443. class="worksDetailBox"
  5444. v-if="
  5445. worksStudent.length &&
  5446. worksStudent[toolIndex].length > 0
  5447. "
  5448. >
  5449. <div
  5450. class="works"
  5451. style="
  5452. width: 200px;
  5453. height: 140px;
  5454. margin: 10px 10px 10px 0;
  5455. border-radius: 15px;
  5456. box-shadow: 0 0 6px 1px #dfdada;
  5457. "
  5458. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5459. :key="wIndex"
  5460. :class="w.type == 1 ? 'isTypeOne' : ''"
  5461. >
  5462. <div class="workImg" v-if="w.type == 0">
  5463. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  5464. <img
  5465. :src="w.works"
  5466. @click="previewImg(w.works, w)"
  5467. alt
  5468. />
  5469. <div
  5470. class="answerScore"
  5471. v-if="w.score"
  5472. @click.stop="openScore(w)"
  5473. :class="{
  5474. rightW:
  5475. w.userid == userid ||
  5476. tType == 1 ||
  5477. tType == 4 ||
  5478. w.ateacher == userid
  5479. }"
  5480. >
  5481. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5482. </div>
  5483. <div
  5484. class="answerScore"
  5485. @click.stop="openScore(w)"
  5486. v-else-if="
  5487. courseDetail.userid == userid &&
  5488. courseDetail.state != 6 &&
  5489. chapInfoList[courseType].chapterInfo[0]
  5490. .taskJson[taskCount].eList &&
  5491. chapInfoList[courseType].chapterInfo[0]
  5492. .taskJson[taskCount].eList.length
  5493. "
  5494. :class="{
  5495. rightW:
  5496. w.userid == userid ||
  5497. tType == 1 ||
  5498. tType == 4 ||
  5499. w.ateacher == userid
  5500. }"
  5501. >
  5502. {{ lang.ssMarkScore }}
  5503. </div>
  5504. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  5505. <div
  5506. v-else-if="
  5507. (courseDetail.userid == userid ||
  5508. (courseDetail.course_teacher &&
  5509. courseDetail.course_teacher.indexOf(userid) !=
  5510. -1) ||
  5511. (w.userid == userid && sIsOpen)) &&
  5512. courseDetail.state == 6 &&
  5513. ((chapInfoList[courseType].chapterInfo[0]
  5514. .taskJson[taskCount].eList &&
  5515. chapInfoList[courseType].chapterInfo[0]
  5516. .taskJson[taskCount].eList.length) ||
  5517. (tool.eList && tool.eList.length))
  5518. "
  5519. >
  5520. <el-popover
  5521. placement="top"
  5522. width="318"
  5523. :disabled="AIloading[toolIndex][wIndex].loading"
  5524. trigger="hover"
  5525. >
  5526. <markScore
  5527. :loading="AIloading[toolIndex][wIndex].loading"
  5528. :markScoreVisible="markScoreVisible"
  5529. :ref="`markSco${toolIndex}${wIndex}`"
  5530. @updateLoading="updateLoading"
  5531. @updateDocSco="updateDocSco"
  5532. @refreshOther="refreshOther"
  5533. @markScoreDig="markScoreDig"
  5534. :tool="tool"
  5535. :wIndex="wIndex"
  5536. :scoCon="w"
  5537. :toolIndex="toolIndex"
  5538. :key="refreshKey"
  5539. :stage="courseType"
  5540. :task="taskCount"
  5541. :scoTit="
  5542. chapInfoList[courseType].chapterInfo[0]
  5543. .taskJson[taskCount].eList
  5544. "
  5545. >
  5546. </markScore>
  5547. <div
  5548. class="answerScore"
  5549. @click="
  5550. markScoreDig2(
  5551. w.sName,
  5552. worksStudent,
  5553. w.userid,
  5554. toolIndex,
  5555. chapInfoList[courseType].chapterInfo[0]
  5556. .taskJson[taskCount].eList,
  5557. AIloading[toolIndex][wIndex].loading,
  5558. tool
  5559. )
  5560. "
  5561. slot="reference"
  5562. :class="{
  5563. rightW:
  5564. w.userid == userid ||
  5565. tType == 1 ||
  5566. tType == 4 ||
  5567. w.ateacher == userid
  5568. }"
  5569. >
  5570. <span v-if="AIloading[toolIndex][wIndex].sco">
  5571. {{
  5572. AIloading[toolIndex][wIndex].loading
  5573. ? lang.ssScoringIn
  5574. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  5575. }}
  5576. </span>
  5577. <span v-else>
  5578. {{
  5579. AIloading[toolIndex][wIndex].loading
  5580. ? lang.ssScoringIn
  5581. : lang.ssMarkScore
  5582. }}
  5583. </span>
  5584. </div>
  5585. </el-popover>
  5586. </div>
  5587. <img
  5588. class="deleteImg"
  5589. src="../../assets/deleteworks.png"
  5590. v-if="
  5591. w.userid == userid || tType == 1 || tType == 4
  5592. "
  5593. @click.stop="deleteWorks(w.wid)"
  5594. alt
  5595. />
  5596. </div>
  5597. <div
  5598. class="workImg"
  5599. style="cursor: pointer"
  5600. v-if="w.type == 1"
  5601. >
  5602. <img :src="word" @click="openFile(w.works)" alt />
  5603. <!-- @click="openFile(w.works)" -->
  5604. <div
  5605. class="answerScore"
  5606. v-if="w.score"
  5607. @click.stop="openScore(w)"
  5608. :class="{
  5609. rightW:
  5610. w.userid == userid ||
  5611. tType == 1 ||
  5612. tType == 4 ||
  5613. w.ateacher == userid
  5614. }"
  5615. >
  5616. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5617. </div>
  5618. <div
  5619. class="answerScore"
  5620. @click.stop="openScore(w)"
  5621. v-else-if="
  5622. courseDetail.userid == userid &&
  5623. courseDetail.state != 6 &&
  5624. chapInfoList[courseType].chapterInfo[0]
  5625. .taskJson[taskCount].eList &&
  5626. chapInfoList[courseType].chapterInfo[0]
  5627. .taskJson[taskCount].eList.length
  5628. "
  5629. :class="{
  5630. rightW:
  5631. w.userid == userid ||
  5632. tType == 1 ||
  5633. tType == 4 ||
  5634. w.ateacher == userid
  5635. }"
  5636. >
  5637. {{ lang.ssMarkScore }}
  5638. </div>
  5639. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  5640. <div
  5641. v-else-if="
  5642. (courseDetail.userid == userid ||
  5643. (courseDetail.course_teacher &&
  5644. courseDetail.course_teacher.indexOf(userid) !=
  5645. -1) ||
  5646. (w.userid == userid && sIsOpen)) &&
  5647. courseDetail.state == 6 &&
  5648. ((chapInfoList[courseType].chapterInfo[0]
  5649. .taskJson[taskCount].eList &&
  5650. chapInfoList[courseType].chapterInfo[0]
  5651. .taskJson[taskCount].eList.length) ||
  5652. (tool.eList && tool.eList.length))
  5653. "
  5654. >
  5655. <el-popover
  5656. placement="top"
  5657. width="318"
  5658. :disabled="AIloading[toolIndex][wIndex].loading"
  5659. trigger="hover"
  5660. >
  5661. <markScore
  5662. :loading="AIloading[toolIndex][wIndex].loading"
  5663. :markScoreVisible="markScoreVisible"
  5664. :ref="`markSco${toolIndex}${wIndex}`"
  5665. @updateLoading="updateLoading"
  5666. @updateDocSco="updateDocSco"
  5667. @refreshOther="refreshOther"
  5668. @markScoreDig="markScoreDig"
  5669. :tool="tool"
  5670. :wIndex="wIndex"
  5671. :scoCon="w"
  5672. :toolIndex="toolIndex"
  5673. :key="refreshKey"
  5674. :stage="courseType"
  5675. :task="taskCount"
  5676. :scoTit="
  5677. chapInfoList[courseType].chapterInfo[0]
  5678. .taskJson[taskCount].eList
  5679. "
  5680. >
  5681. </markScore>
  5682. <div
  5683. class="answerScore"
  5684. @click="
  5685. markScoreDig2(
  5686. w.sName,
  5687. worksStudent,
  5688. w.userid,
  5689. toolIndex,
  5690. chapInfoList[courseType].chapterInfo[0]
  5691. .taskJson[taskCount].eList,
  5692. AIloading[toolIndex][wIndex].loading,
  5693. tool
  5694. )
  5695. "
  5696. slot="reference"
  5697. :class="{
  5698. rightW:
  5699. w.userid == userid ||
  5700. tType == 1 ||
  5701. tType == 4 ||
  5702. w.ateacher == userid
  5703. }"
  5704. >
  5705. <span v-if="AIloading[toolIndex][wIndex].sco">
  5706. {{
  5707. AIloading[toolIndex][wIndex].loading
  5708. ? lang.ssScoringIn
  5709. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  5710. }}
  5711. </span>
  5712. <span v-else>
  5713. {{
  5714. AIloading[toolIndex][wIndex].loading
  5715. ? lang.ssScoringIn
  5716. : lang.ssMarkScore
  5717. }}
  5718. </span>
  5719. </div>
  5720. </el-popover>
  5721. </div>
  5722. <img
  5723. class="deleteImg"
  5724. src="../../assets/deleteworks.png"
  5725. v-if="
  5726. w.userid == userid || tType == 1 || tType == 4
  5727. "
  5728. @click.stop="deleteWorks(w.wid)"
  5729. alt
  5730. />
  5731. </div>
  5732. <div class="workImg" v-if="w.type == 3">
  5733. <img
  5734. style="cursor: pointer"
  5735. :src="video"
  5736. @click="openVideo(w)"
  5737. alt
  5738. />
  5739. <!-- @click="openVideo(w.works)" -->
  5740. <div
  5741. class="answerScore"
  5742. v-if="w.score"
  5743. @click.stop="openScore(w)"
  5744. :class="{
  5745. rightW:
  5746. w.userid == userid ||
  5747. tType == 1 ||
  5748. tType == 4 ||
  5749. w.ateacher == userid
  5750. }"
  5751. >
  5752. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  5753. </div>
  5754. <div
  5755. class="answerScore"
  5756. @click.stop="openScore(w)"
  5757. v-else-if="
  5758. courseDetail.userid == userid &&
  5759. courseDetail.state != 6 &&
  5760. chapInfoList[courseType].chapterInfo[0]
  5761. .taskJson[taskCount].eList &&
  5762. chapInfoList[courseType].chapterInfo[0]
  5763. .taskJson[taskCount].eList.length
  5764. "
  5765. :class="{
  5766. rightW:
  5767. w.userid == userid ||
  5768. tType == 1 ||
  5769. tType == 4 ||
  5770. w.ateacher == userid
  5771. }"
  5772. >
  5773. {{ lang.ssMarkScore }}
  5774. </div>
  5775. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  5776. <div
  5777. v-else-if="
  5778. (courseDetail.userid == userid ||
  5779. (courseDetail.course_teacher &&
  5780. courseDetail.course_teacher.indexOf(userid) !=
  5781. -1) ||
  5782. (w.userid == userid && sIsOpen)) &&
  5783. courseDetail.state == 6 &&
  5784. ((chapInfoList[courseType].chapterInfo[0]
  5785. .taskJson[taskCount].eList &&
  5786. chapInfoList[courseType].chapterInfo[0]
  5787. .taskJson[taskCount].eList.length) ||
  5788. (tool.eList && tool.eList.length))
  5789. "
  5790. >
  5791. <el-popover
  5792. placement="top"
  5793. width="318"
  5794. :disabled="AIloading[toolIndex][wIndex].loading"
  5795. trigger="hover"
  5796. >
  5797. <markScore
  5798. :loading="AIloading[toolIndex][wIndex].loading"
  5799. :markScoreVisible="markScoreVisible"
  5800. :ref="`markSco${toolIndex}${wIndex}`"
  5801. @updateLoading="updateLoading"
  5802. @updateDocSco="updateDocSco"
  5803. @refreshOther="refreshOther"
  5804. @markScoreDig="markScoreDig"
  5805. :tool="tool"
  5806. :wIndex="wIndex"
  5807. :scoCon="w"
  5808. :toolIndex="toolIndex"
  5809. :key="refreshKey"
  5810. :stage="courseType"
  5811. :task="taskCount"
  5812. :scoTit="
  5813. chapInfoList[courseType].chapterInfo[0]
  5814. .taskJson[taskCount].eList
  5815. "
  5816. >
  5817. </markScore>
  5818. <div
  5819. class="answerScore"
  5820. @click="
  5821. markScoreDig2(
  5822. w.sName,
  5823. worksStudent,
  5824. w.userid,
  5825. toolIndex,
  5826. chapInfoList[courseType].chapterInfo[0]
  5827. .taskJson[taskCount].eList,
  5828. AIloading[toolIndex][wIndex].loading,
  5829. tool
  5830. )
  5831. "
  5832. slot="reference"
  5833. :class="{
  5834. rightW:
  5835. w.userid == userid ||
  5836. tType == 1 ||
  5837. tType == 4 ||
  5838. w.ateacher == userid
  5839. }"
  5840. >
  5841. <span v-if="AIloading[toolIndex][wIndex].sco">
  5842. {{
  5843. AIloading[toolIndex][wIndex].loading
  5844. ? lang.ssScoringIn
  5845. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  5846. }}
  5847. </span>
  5848. <span v-else>
  5849. {{
  5850. AIloading[toolIndex][wIndex].loading
  5851. ? lang.ssScoringIn
  5852. : lang.ssMarkScore
  5853. }}
  5854. </span>
  5855. </div>
  5856. </el-popover>
  5857. </div>
  5858. <img
  5859. class="deleteImg"
  5860. src="../../assets/deleteworks.png"
  5861. v-if="
  5862. w.userid == userid || tType == 1 || tType == 4
  5863. "
  5864. @click.stop="deleteWorks(w.wid)"
  5865. alt
  5866. />
  5867. </div>
  5868. <div class="comment" style="min-width: 200px">
  5869. <div class="worksName">
  5870. <div
  5871. style="cursor: pointer"
  5872. @click="
  5873. openSname(w.sName, w.wid, toolIndex, w.userid)
  5874. "
  5875. >
  5876. {{ w.sName }}
  5877. </div>
  5878. </div>
  5879. <div class="commentList">
  5880. <div class="commentList">
  5881. <div
  5882. class="commentImg"
  5883. @click="
  5884. isLikes(
  5885. w.wid,
  5886. userid,
  5887. 1,
  5888. null,
  5889. w.isLikes,
  5890. w.sName
  5891. )
  5892. "
  5893. >
  5894. <img
  5895. :src="w.isLikes == true ? likes : noLikes"
  5896. alt=""
  5897. />
  5898. </div>
  5899. <div>{{ w.likesCount }}</div>
  5900. </div>
  5901. <div class="commentList" style="margin-right: 15px">
  5902. <div
  5903. class="commentImg"
  5904. @click="commentOther(w, toolIndex, wIndex)"
  5905. >
  5906. <img
  5907. src="../../assets/icon/comment/comment.png"
  5908. alt=""
  5909. />
  5910. </div>
  5911. <div>{{ w.commentCount }}</div>
  5912. </div>
  5913. </div>
  5914. </div>
  5915. </div>
  5916. </div>
  5917. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5918. {{ lang.ssNotSubmitted }}
  5919. </div>
  5920. <div
  5921. class="noWorksS"
  5922. v-if="noWorksS && noWorksS[toolIndex].length"
  5923. >
  5924. <div
  5925. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5926. :key="sIndex"
  5927. class="noWorksName"
  5928. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  5929. >
  5930. <el-tooltip
  5931. effect="dark"
  5932. :content="s.student"
  5933. placement="top"
  5934. >
  5935. <span>{{ s.student }}</span>
  5936. </el-tooltip>
  5937. </div>
  5938. </div>
  5939. </div>
  5940. <div
  5941. v-if="
  5942. tType &&
  5943. ((tType == 2 && sIsOpen == true) ||
  5944. tType == 1 ||
  5945. tType == 4) &&
  5946. tool.tool.indexOf(4) != -1 &&
  5947. (tool.askJson[0].answer ||
  5948. tool.askJson[0].answer === 0) &&
  5949. checkJson[toolIndex].length
  5950. "
  5951. class="xuan_right_box"
  5952. >
  5953. <div
  5954. class="tool_right_box"
  5955. v-for="(item, index) in tool.askJson"
  5956. :key="index"
  5957. >
  5958. <div style="width: calc(100% - 30px);">
  5959. <el-tooltip
  5960. effect="light"
  5961. :content="index + 1 + '、' + item.askstitle"
  5962. placement="top"
  5963. popper-class="text_tooltip"
  5964. >
  5965. <div
  5966. style="
  5967. width: calc(100% - 130px);
  5968. display: block;
  5969. white-space: nowrap;
  5970. overflow: hidden;
  5971. text-overflow: ellipsis;
  5972. word-break: break-word;
  5973. cursor: pointer;
  5974. "
  5975. >
  5976. {{ index + 1 + "、" + item.askstitle }}
  5977. </div>
  5978. </el-tooltip>
  5979. </div>
  5980. <div class="right_box_xuan">
  5981. <span>{{ lang.ssCorrectRate }}</span>
  5982. <span>{{
  5983. (checkJson[toolIndex][index].right
  5984. ? checkJson[toolIndex][index].right
  5985. : 0) + "%"
  5986. }}</span>
  5987. </div>
  5988. </div>
  5989. </div>
  5990. <div
  5991. class="xuan_right_box"
  5992. style="background: unset; padding: 0 10px"
  5993. v-if="
  5994. tType &&
  5995. ((tType == 2 && sIsOpen == true) ||
  5996. tType == 1 ||
  5997. tType == 4) &&
  5998. tool.tool.indexOf(4) != -1
  5999. "
  6000. >
  6001. <AskStatic
  6002. v-if="
  6003. worksStudent.length &&
  6004. worksStudent[toolIndex].length > 0
  6005. "
  6006. :askJSON="tool"
  6007. :checkJson="checkJson[toolIndex]"
  6008. ></AskStatic>
  6009. </div>
  6010. <div
  6011. v-if="
  6012. tType &&
  6013. ((tType == 2 && sIsOpen == true) ||
  6014. tType == 1 ||
  6015. tType == 4) &&
  6016. tool.tool.indexOf(4) != -1
  6017. "
  6018. class="worksBox"
  6019. >
  6020. <div
  6021. class="zuoyeYulan"
  6022. v-if="
  6023. worksStudent.length &&
  6024. worksStudent[toolIndex].length > 0
  6025. "
  6026. >
  6027. <div class="worksTop">
  6028. <div>{{ lang.ssHomeworkPreview }}</div>
  6029. <div
  6030. class="corOpen"
  6031. @click="contract(toolIndex)"
  6032. v-if="
  6033. isCloseList[toolIndex].isCloseBoolean &&
  6034. isCloseList[toolIndex].isClose == 0
  6035. "
  6036. >
  6037. {{ lang.ssFold }}
  6038. </div>
  6039. <div
  6040. class="corOpen"
  6041. @click="contract(toolIndex)"
  6042. v-if="isCloseList[toolIndex].isClose == 1"
  6043. >
  6044. {{ lang.ssExpand }}
  6045. </div>
  6046. </div>
  6047. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6048. </div>
  6049. <div>
  6050. <div
  6051. :id="'tool-' + toolIndex"
  6052. :style="{
  6053. height:
  6054. isCloseList[toolIndex].isClose == 1
  6055. ? retrnToolHeight('tool-' + toolIndex)
  6056. : 'auto',
  6057. overflow:
  6058. isCloseList[toolIndex].isClose == 1
  6059. ? 'hidden'
  6060. : 'unset'
  6061. }"
  6062. class="worksDetailBox"
  6063. v-if="
  6064. worksStudent.length &&
  6065. worksStudent[toolIndex].length > 0
  6066. "
  6067. >
  6068. <div
  6069. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6070. :key="wIndex"
  6071. class="isWorksName2"
  6072. @click="
  6073. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6074. "
  6075. >
  6076. {{ w.sName }}
  6077. <img
  6078. class="deleteImg deleteImg2"
  6079. src="../../assets/deleteworks.png"
  6080. v-if="
  6081. w.userid == userid || tType == 1 || tType == 4
  6082. "
  6083. @click.stop="deleteWorks(w.wid)"
  6084. alt
  6085. />
  6086. </div>
  6087. <!-- <div class="works" style="
  6088. width: 200px;
  6089. height: 140px;
  6090. border-radius: 10px;
  6091. box-shadow: 0 0 6px 1px #dfdada;
  6092. overflow: hidden;
  6093. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  6094. <div class="workImg">
  6095. <img src="../../assets/icon/works/noImg.png" @click="
  6096. openTools(
  6097. 4,
  6098. toolIndex,
  6099. taskCount,
  6100. w.works,
  6101. w.sName
  6102. )
  6103. " alt />
  6104. </div>
  6105. <div class="worksName">
  6106. <div>{{ w.sName }}</div>
  6107. <div>{{ w.time }}</div>
  6108. </div>
  6109. </div> -->
  6110. </div>
  6111. </div>
  6112. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6113. {{ lang.ssNotSubmitted }}
  6114. </div>
  6115. <div
  6116. class="noWorksS"
  6117. v-if="noWorksS && noWorksS[toolIndex].length"
  6118. >
  6119. <div
  6120. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6121. :key="sIndex"
  6122. class="noWorksName"
  6123. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6124. >
  6125. <el-tooltip
  6126. effect="dark"
  6127. :content="s.student"
  6128. placement="top"
  6129. >
  6130. <span>{{ s.student }}</span>
  6131. </el-tooltip>
  6132. </div>
  6133. </div>
  6134. </div>
  6135. <div
  6136. v-if="
  6137. tType &&
  6138. ((tType == 2 && sIsOpen == true) ||
  6139. tType == 1 ||
  6140. tType == 4) &&
  6141. tool.tool.indexOf(45) != -1 &&
  6142. (tool.testJson.testJson[0].answer ||
  6143. tool.testJson.testJson[0].answer === 0) &&
  6144. checkJson[toolIndex].length
  6145. "
  6146. class="xuan_right_box"
  6147. >
  6148. <div
  6149. class="tool_right_box"
  6150. v-for="(item, index) in tool.testJson.testJson"
  6151. :key="index"
  6152. >
  6153. <div class="right_box_xuan" style="margin-right: 10px">
  6154. <span>{{ lang.ssCorrectRate }}</span>
  6155. <span>{{
  6156. (checkJson[toolIndex][index].right
  6157. ? checkJson[toolIndex][index].right
  6158. : 0) + "%"
  6159. }}</span>
  6160. </div>
  6161. <div style="width: calc(100% - 30px);">
  6162. <el-tooltip
  6163. effect="light"
  6164. :content="index + 1 + '、' + item.teststitle"
  6165. placement="top"
  6166. popper-class="text_tooltip"
  6167. >
  6168. <div
  6169. style="
  6170. width: calc(100% - 130px);
  6171. display: flex;
  6172. white-space: nowrap;
  6173. overflow: hidden;
  6174. text-overflow: ellipsis;
  6175. word-break: break-word;
  6176. cursor: pointer;
  6177. "
  6178. class="renderedFor"
  6179. >
  6180. {{ index + 1 + "、" }} <span v-html="item.teststitle"></span>
  6181. </div>
  6182. </el-tooltip>
  6183. </div>
  6184. </div>
  6185. </div>
  6186. <div
  6187. class="xuan_right_box"
  6188. style="background: unset; padding: 0 10px; width: 91.5%"
  6189. v-if="
  6190. tType &&
  6191. ((tType == 2 && sIsOpen == true) ||
  6192. tType == 1 ||
  6193. tType == 4) &&
  6194. tool.tool.indexOf(45) != -1
  6195. "
  6196. >
  6197. <AskStatic2
  6198. v-if="
  6199. worksStudent.length &&
  6200. worksStudent[toolIndex].length > 0
  6201. "
  6202. :askJSON="tool"
  6203. :checkJson="checkJson[toolIndex]"
  6204. ></AskStatic2>
  6205. </div>
  6206. <div
  6207. v-if="
  6208. tType &&
  6209. ((tType == 2 && sIsOpen == true) ||
  6210. tType == 1 ||
  6211. tType == 4) &&
  6212. tool.tool.indexOf(45) != -1
  6213. "
  6214. class="worksBox"
  6215. >
  6216. <div
  6217. class="zuoyeYulan"
  6218. v-if="
  6219. worksStudent.length &&
  6220. worksStudent[toolIndex].length > 0
  6221. "
  6222. >
  6223. <div class="worksTop">
  6224. <div>{{ lang.ssHomeworkPreview }}</div>
  6225. <div
  6226. class="corOpen"
  6227. @click="contract(toolIndex)"
  6228. v-if="
  6229. isCloseList[toolIndex].isCloseBoolean &&
  6230. isCloseList[toolIndex].isClose == 0
  6231. "
  6232. >
  6233. {{ lang.ssFold }}
  6234. </div>
  6235. <div
  6236. class="corOpen"
  6237. @click="contract(toolIndex)"
  6238. v-if="isCloseList[toolIndex].isClose == 1"
  6239. >
  6240. {{ lang.ssExpand }}
  6241. </div>
  6242. </div>
  6243. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6244. </div>
  6245. <div>
  6246. <div
  6247. :id="'tool-' + toolIndex"
  6248. :style="{
  6249. height:
  6250. isCloseList[toolIndex].isClose == 1
  6251. ? retrnToolHeight('tool-' + toolIndex)
  6252. : 'auto',
  6253. overflow:
  6254. isCloseList[toolIndex].isClose == 1
  6255. ? 'hidden'
  6256. : 'unset'
  6257. }"
  6258. class="worksDetailBox"
  6259. v-if="
  6260. worksStudent.length &&
  6261. worksStudent[toolIndex].length > 0
  6262. "
  6263. >
  6264. <div
  6265. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6266. :key="wIndex"
  6267. class="isWorksName2"
  6268. @click="
  6269. openTools(
  6270. 45,
  6271. toolIndex,
  6272. taskCount,
  6273. w.works,
  6274. w.sName
  6275. )
  6276. "
  6277. >
  6278. {{ w.sName }}
  6279. <img
  6280. class="deleteImg deleteImg2"
  6281. src="../../assets/deleteworks.png"
  6282. v-if="
  6283. w.userid == userid || tType == 1 || tType == 4
  6284. "
  6285. @click.stop="deleteWorks(w.wid)"
  6286. alt
  6287. />
  6288. </div>
  6289. </div>
  6290. </div>
  6291. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6292. {{ lang.ssNotSubmitted }}
  6293. </div>
  6294. <div
  6295. class="noWorksS"
  6296. v-if="noWorksS && noWorksS[toolIndex].length"
  6297. >
  6298. <div
  6299. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6300. :key="sIndex"
  6301. class="noWorksName"
  6302. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  6303. >
  6304. <el-tooltip
  6305. effect="dark"
  6306. :content="s.student"
  6307. placement="top"
  6308. >
  6309. <span>{{ s.student }}</span>
  6310. </el-tooltip>
  6311. </div>
  6312. </div>
  6313. </div>
  6314. <div
  6315. v-if="
  6316. tType &&
  6317. ((tType == 2 && sIsOpen == true) ||
  6318. tType == 1 ||
  6319. tType == 4) &&
  6320. tool.tool.indexOf(69) != -1
  6321. "
  6322. class="worksBox"
  6323. >
  6324. <div
  6325. class="zuoyeYulan"
  6326. v-if="
  6327. worksStudent.length &&
  6328. worksStudent[toolIndex].length > 0
  6329. "
  6330. >
  6331. <div class="worksTop">
  6332. <div>{{ lang.ssHomeworkPreview }}</div>
  6333. <div
  6334. class="corOpen"
  6335. @click="contract(toolIndex)"
  6336. v-if="
  6337. isCloseList[toolIndex].isCloseBoolean &&
  6338. isCloseList[toolIndex].isClose == 0
  6339. "
  6340. >
  6341. {{ lang.ssFold }}
  6342. </div>
  6343. <div
  6344. class="corOpen"
  6345. @click="contract(toolIndex)"
  6346. v-if="isCloseList[toolIndex].isClose == 1"
  6347. >
  6348. {{ lang.ssExpand }}
  6349. </div>
  6350. </div>
  6351. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6352. </div>
  6353. <div>
  6354. <div
  6355. :id="'tool-' + toolIndex"
  6356. :style="{
  6357. height:
  6358. isCloseList[toolIndex].isClose == 1
  6359. ? retrnToolHeight('tool-' + toolIndex)
  6360. : 'auto',
  6361. overflow:
  6362. isCloseList[toolIndex].isClose == 1
  6363. ? 'hidden'
  6364. : 'unset'
  6365. }"
  6366. class="worksDetailBox"
  6367. v-if="
  6368. worksStudent.length &&
  6369. worksStudent[toolIndex].length > 0
  6370. "
  6371. >
  6372. <div
  6373. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6374. :key="wIndex"
  6375. class="isWorksName2"
  6376. style="width: 160px;height: 65px;line-height: 65px;"
  6377. @click="
  6378. openTools(
  6379. 69,
  6380. toolIndex,
  6381. taskCount,
  6382. w.works,
  6383. w.sName,
  6384. w.wid
  6385. )
  6386. "
  6387. >
  6388. {{ w.sName }}
  6389. <img
  6390. class="deleteImg1"
  6391. src="../../assets/evaEnglish.png"
  6392. @click.stop="openEnglishEva(w.wid, toolIndex)"
  6393. alt
  6394. v-if="
  6395. (courseDetail &&
  6396. (courseDetail.userid == userid ||
  6397. (courseDetail.course_teacher &&
  6398. courseDetail.course_teacher.indexOf(
  6399. userid
  6400. ) != -1))) ||
  6401. w.aiCode || w.teacherCode
  6402. "
  6403. />
  6404. <img
  6405. class="deleteImg deleteImg2"
  6406. src="../../assets/deleteworks.png"
  6407. v-if="
  6408. w.userid == userid || tType == 1 || tType == 4
  6409. "
  6410. @click.stop="deleteWorks(w.wid)"
  6411. alt
  6412. />
  6413. </div>
  6414. </div>
  6415. </div>
  6416. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6417. {{ lang.ssNotSubmitted }}
  6418. </div>
  6419. <div
  6420. class="noWorksS"
  6421. v-if="noWorksS && noWorksS[toolIndex].length"
  6422. >
  6423. <div
  6424. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6425. :key="sIndex"
  6426. class="noWorksName"
  6427. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  6428. >
  6429. <el-tooltip
  6430. effect="dark"
  6431. :content="s.student"
  6432. placement="top"
  6433. >
  6434. <span>{{ s.student }}</span>
  6435. </el-tooltip>
  6436. </div>
  6437. </div>
  6438. </div>
  6439. <div
  6440. v-if="
  6441. tType &&
  6442. ((tType == 2 && sIsOpen == true) ||
  6443. tType == 1 ||
  6444. tType == 4) &&
  6445. tool.tool.indexOf(15) != -1
  6446. "
  6447. class="worksBox"
  6448. >
  6449. <div
  6450. class="zuoyeYulan"
  6451. v-if="
  6452. (worksStudent.length &&
  6453. worksStudent[toolIndex].length > 0) ||
  6454. (courseGroup.group && courseGroup.group.length)
  6455. "
  6456. >
  6457. <div class="worksTop">
  6458. <div>{{ lang.ssHomeworkPreview }}</div>
  6459. <div
  6460. class="corOpen"
  6461. @click="contract(toolIndex)"
  6462. v-if="
  6463. isCloseList[toolIndex].isCloseBoolean &&
  6464. isCloseList[toolIndex].isClose == 0
  6465. "
  6466. >
  6467. {{ lang.ssFold }}
  6468. </div>
  6469. <div
  6470. class="corOpen"
  6471. @click="contract(toolIndex)"
  6472. v-if="isCloseList[toolIndex].isClose == 1"
  6473. >
  6474. {{ lang.ssExpand }}
  6475. </div>
  6476. </div>
  6477. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6478. </div>
  6479. <div
  6480. class="group_workBox"
  6481. v-for="(g, gindex) in courseGroup.group"
  6482. :key="gindex"
  6483. >
  6484. <div class="group_box">
  6485. <div class="group_title">
  6486. <el-tooltip
  6487. class="item"
  6488. effect="light"
  6489. :content="g.name"
  6490. placement="top"
  6491. >
  6492. <div class="group_name">{{ g.name }}</div>
  6493. </el-tooltip>
  6494. </div>
  6495. <div
  6496. class="group_work"
  6497. v-if="
  6498. g.works &&
  6499. g.works.length &&
  6500. g.works[toolIndex].length
  6501. "
  6502. >
  6503. <div
  6504. class="works"
  6505. v-for="(w, wIndex) in g.works[toolIndex]"
  6506. :key="wIndex"
  6507. >
  6508. <div
  6509. class="workImg"
  6510. style="
  6511. border-radius: 15px;
  6512. box-shadow: 0px 0px 5px 5px #eee;
  6513. "
  6514. >
  6515. <div
  6516. class="answerBg"
  6517. style="border-radius: 15px 15px 0 0"
  6518. @click="
  6519. commentOther(w, toolIndex, wIndex, null, g.id)
  6520. "
  6521. >
  6522. <div class="answerContent">
  6523. {{ JSON.parse(w.works)[0].answer }}
  6524. </div>
  6525. <div
  6526. class="answerScore"
  6527. v-if="w.score"
  6528. @click.stop="openScore(w)"
  6529. :class="{
  6530. rightW:
  6531. w.userid == userid ||
  6532. tType == 1 ||
  6533. tType == 4
  6534. }"
  6535. >
  6536. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  6537. </div>
  6538. <div
  6539. class="answerScore"
  6540. @click.stop="openScore(w)"
  6541. v-else-if="
  6542. courseDetail.userid == userid &&
  6543. courseDetail.state != 6 &&
  6544. chapInfoList[courseType].chapterInfo[0]
  6545. .taskJson[taskCount].eList &&
  6546. chapInfoList[courseType].chapterInfo[0]
  6547. .taskJson[taskCount].eList.length
  6548. "
  6549. :class="{
  6550. rightW:
  6551. w.userid == userid ||
  6552. tType == 1 ||
  6553. tType == 4
  6554. }"
  6555. >
  6556. {{ lang.ssMarkScore }}
  6557. </div>
  6558. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  6559. <div
  6560. v-else-if="
  6561. (courseDetail.userid == userid ||
  6562. (courseDetail.course_teacher &&
  6563. courseDetail.course_teacher.indexOf(
  6564. userid
  6565. ) != -1) ||
  6566. (w.userid == userid && sIsOpen)) &&
  6567. courseDetail.state == 6 &&
  6568. ((chapInfoList[courseType].chapterInfo[0]
  6569. .taskJson[taskCount].eList &&
  6570. chapInfoList[courseType].chapterInfo[0]
  6571. .taskJson[taskCount].eList.length) ||
  6572. (tool.eList && tool.eList.length))
  6573. "
  6574. >
  6575. <el-popover
  6576. placement="top"
  6577. width="318"
  6578. :disabled="
  6579. AIloading[toolIndex][wIndex].loading
  6580. "
  6581. trigger="hover"
  6582. >
  6583. <markScore
  6584. :loading="
  6585. AIloading[toolIndex][wIndex].loading
  6586. "
  6587. :markScoreVisible="markScoreVisible"
  6588. :ref="`markSco${toolIndex}${wIndex}`"
  6589. @updateLoading="updateLoading"
  6590. @updateDocSco="updateDocSco"
  6591. @refreshOther="refreshOther"
  6592. @markScoreDig="markScoreDig"
  6593. :tool="tool"
  6594. :wIndex="wIndex"
  6595. :scoCon="w"
  6596. :toolIndex="toolIndex"
  6597. :key="refreshKey"
  6598. :stage="courseType"
  6599. :task="taskCount"
  6600. :scoTit="
  6601. chapInfoList[courseType].chapterInfo[0]
  6602. .taskJson[taskCount].eList
  6603. "
  6604. >
  6605. </markScore>
  6606. <div
  6607. class="answerScore"
  6608. @click.stop="
  6609. markScoreDig2(
  6610. w.sName,
  6611. worksStudent,
  6612. w.userid,
  6613. toolIndex,
  6614. chapInfoList[courseType]
  6615. .chapterInfo[0].taskJson[taskCount]
  6616. .eList,
  6617. AIloading[toolIndex][wIndex].loading,
  6618. tool
  6619. )
  6620. "
  6621. slot="reference"
  6622. :class="{
  6623. rightW:
  6624. w.userid == userid ||
  6625. tType == 1 ||
  6626. tType == 4 ||
  6627. w.ateacher == userid
  6628. }"
  6629. >
  6630. <span
  6631. v-if="AIloading[toolIndex][wIndex].sco"
  6632. >
  6633. {{
  6634. AIloading[toolIndex][wIndex].loading
  6635. ? lang.ssScoringIn
  6636. : AIloading[toolIndex][wIndex].sco +
  6637. lang.ssScore
  6638. }}
  6639. </span>
  6640. <span v-else>
  6641. {{
  6642. AIloading[toolIndex][wIndex].loading
  6643. ? lang.ssScoringIn
  6644. : lang.ssMarkScore
  6645. }}
  6646. </span>
  6647. </div>
  6648. </el-popover>
  6649. </div>
  6650. <img
  6651. class="deleteImg"
  6652. src="../../assets/deleteworks.png"
  6653. v-if="
  6654. w.userid == userid ||
  6655. tType == 1 ||
  6656. tType == 4
  6657. "
  6658. @click.stop="deleteWorks(w.wid)"
  6659. alt
  6660. />
  6661. </div>
  6662. <div class="comment">
  6663. <div class="worksName">
  6664. <div>{{ w.sName }}</div>
  6665. </div>
  6666. <div class="commentList">
  6667. <div
  6668. class="commentImg"
  6669. @click="
  6670. isLikes(
  6671. w.wid,
  6672. userid,
  6673. 1,
  6674. null,
  6675. w.isLikes,
  6676. w.sName
  6677. )
  6678. "
  6679. >
  6680. <img
  6681. :src="w.isLikes == true ? likes : noLikes"
  6682. alt=""
  6683. />
  6684. </div>
  6685. <div>{{ w.likesCount }}</div>
  6686. </div>
  6687. <div
  6688. class="commentList"
  6689. style="margin-right: 15px"
  6690. >
  6691. <div
  6692. class="commentImg"
  6693. @click="
  6694. commentOther(
  6695. w,
  6696. toolIndex,
  6697. wIndex,
  6698. null,
  6699. g.id
  6700. )
  6701. "
  6702. >
  6703. <img
  6704. src="../../assets/icon/comment/comment.png"
  6705. alt=""
  6706. />
  6707. </div>
  6708. <div>{{ w.commentCount }}</div>
  6709. </div>
  6710. </div>
  6711. </div>
  6712. </div>
  6713. </div>
  6714. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  6715. </div>
  6716. </div>
  6717. <div
  6718. :id="'tool-' + toolIndex"
  6719. :style="{
  6720. height:
  6721. isCloseList[toolIndex].isClose == 1
  6722. ? retrnToolHeight('tool-' + toolIndex)
  6723. : 'auto',
  6724. overflow:
  6725. isCloseList[toolIndex].isClose == 1
  6726. ? 'hidden'
  6727. : 'unset'
  6728. }"
  6729. class="worksDetailBox"
  6730. v-if="
  6731. worksStudent.length &&
  6732. worksStudent[toolIndex].length > 0
  6733. "
  6734. >
  6735. <div
  6736. class="works"
  6737. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6738. :key="wIndex"
  6739. >
  6740. <div
  6741. class="workImg"
  6742. style="
  6743. border-radius: 15px;
  6744. box-shadow: 0px 0px 5px 5px #eee;
  6745. "
  6746. >
  6747. <!-- <img
  6748. src="../../assets/icon/works/noImg.png"
  6749. @click="openTools(15, toolIndex, taskCount, w.works)"
  6750. alt=""
  6751. />-->
  6752. <div
  6753. class="answerBg"
  6754. style="border-radius: 15px 15px 0 0"
  6755. @click="commentOther(w, toolIndex, wIndex)"
  6756. >
  6757. <!-- <div>{{ w.sName }}</div> -->
  6758. <div class="answerContent">
  6759. {{ JSON.parse(w.works)[0].answer }}
  6760. </div>
  6761. <div
  6762. class="answerScore"
  6763. v-if="w.score"
  6764. @click.stop="openScore(w)"
  6765. :class="{
  6766. rightW:
  6767. w.userid == userid || tType == 1 || tType == 4
  6768. }"
  6769. >
  6770. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  6771. </div>
  6772. <div
  6773. class="answerScore"
  6774. @click.stop="openScore(w)"
  6775. v-else-if="
  6776. courseDetail.userid == userid &&
  6777. courseDetail.state != 6 &&
  6778. chapInfoList[courseType].chapterInfo[0]
  6779. .taskJson[taskCount].eList &&
  6780. chapInfoList[courseType].chapterInfo[0]
  6781. .taskJson[taskCount].eList.length
  6782. "
  6783. :class="{
  6784. rightW:
  6785. w.userid == userid || tType == 1 || tType == 4
  6786. }"
  6787. >
  6788. {{ lang.ssMarkScore }}
  6789. </div>
  6790. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  6791. <div
  6792. v-else-if="
  6793. (courseDetail.userid == userid ||
  6794. (courseDetail.course_teacher &&
  6795. courseDetail.course_teacher.indexOf(
  6796. userid
  6797. ) != -1) ||
  6798. (w.userid == userid && sIsOpen)) &&
  6799. courseDetail.state == 6 &&
  6800. ((chapInfoList[courseType].chapterInfo[0]
  6801. .taskJson[taskCount].eList &&
  6802. chapInfoList[courseType].chapterInfo[0]
  6803. .taskJson[taskCount].eList.length) ||
  6804. (tool.eList && tool.eList.length))
  6805. "
  6806. >
  6807. <el-popover
  6808. placement="top"
  6809. width="318"
  6810. :disabled="AIloading[toolIndex][wIndex].loading"
  6811. trigger="hover"
  6812. >
  6813. <markScore
  6814. :loading="
  6815. AIloading[toolIndex][wIndex].loading
  6816. "
  6817. :markScoreVisible="markScoreVisible"
  6818. :ref="`markSco${toolIndex}${wIndex}`"
  6819. @updateLoading="updateLoading"
  6820. @updateDocSco="updateDocSco"
  6821. @refreshOther="refreshOther"
  6822. @markScoreDig="markScoreDig"
  6823. :tool="tool"
  6824. :wIndex="wIndex"
  6825. :scoCon="w"
  6826. :toolIndex="toolIndex"
  6827. :key="refreshKey"
  6828. :stage="courseType"
  6829. :task="taskCount"
  6830. :scoTit="
  6831. chapInfoList[courseType].chapterInfo[0]
  6832. .taskJson[taskCount].eList
  6833. "
  6834. >
  6835. </markScore>
  6836. <div
  6837. class="answerScore"
  6838. @click.stop="
  6839. markScoreDig2(
  6840. w.sName,
  6841. worksStudent,
  6842. w.userid,
  6843. toolIndex,
  6844. chapInfoList[courseType].chapterInfo[0]
  6845. .taskJson[taskCount].eList,
  6846. AIloading[toolIndex][wIndex].loading,
  6847. tool
  6848. )
  6849. "
  6850. slot="reference"
  6851. :class="{
  6852. rightW:
  6853. w.userid == userid ||
  6854. tType == 1 ||
  6855. tType == 4 ||
  6856. w.ateacher == userid
  6857. }"
  6858. >
  6859. <span v-if="AIloading[toolIndex][wIndex].sco">
  6860. {{
  6861. AIloading[toolIndex][wIndex].loading
  6862. ? lang.ssScoringIn
  6863. : AIloading[toolIndex][wIndex].sco +
  6864. lang.ssScore
  6865. }}
  6866. </span>
  6867. <span v-else>
  6868. {{
  6869. AIloading[toolIndex][wIndex].loading
  6870. ? lang.ssScoringIn
  6871. : lang.ssMarkScore
  6872. }}
  6873. </span>
  6874. </div>
  6875. </el-popover>
  6876. </div>
  6877. <img
  6878. class="deleteImg"
  6879. src="../../assets/deleteworks.png"
  6880. v-if="
  6881. w.userid == userid || tType == 1 || tType == 4
  6882. "
  6883. @click.stop="deleteWorks(w.wid)"
  6884. alt
  6885. />
  6886. </div>
  6887. <div class="comment">
  6888. <div class="worksName">
  6889. <div>{{ w.sName }}</div>
  6890. </div>
  6891. <div class="commentList">
  6892. <div
  6893. class="commentImg"
  6894. @click="
  6895. isLikes(
  6896. w.wid,
  6897. userid,
  6898. 1,
  6899. null,
  6900. w.isLikes,
  6901. w.sName
  6902. )
  6903. "
  6904. >
  6905. <img
  6906. :src="w.isLikes == true ? likes : noLikes"
  6907. alt=""
  6908. />
  6909. </div>
  6910. <div>{{ w.likesCount }}</div>
  6911. </div>
  6912. <div class="commentList" style="margin-right: 15px">
  6913. <div
  6914. class="commentImg"
  6915. @click="commentOther(w, toolIndex, wIndex)"
  6916. >
  6917. <img
  6918. src="../../assets/icon/comment/comment.png"
  6919. alt=""
  6920. />
  6921. </div>
  6922. <div>{{ w.commentCount }}</div>
  6923. </div>
  6924. </div>
  6925. </div>
  6926. </div>
  6927. </div>
  6928. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6929. {{ lang.ssNotSubmitted }}
  6930. </div>
  6931. <div
  6932. class="noWorksS"
  6933. v-if="noWorksS && noWorksS[toolIndex].length"
  6934. >
  6935. <div
  6936. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6937. :key="sIndex"
  6938. class="noWorksName"
  6939. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6940. >
  6941. <el-tooltip
  6942. effect="dark"
  6943. :content="s.student"
  6944. placement="top"
  6945. >
  6946. <span>{{ s.student }}</span>
  6947. </el-tooltip>
  6948. </div>
  6949. </div>
  6950. </div>
  6951. <div
  6952. v-if="
  6953. tType &&
  6954. ((tType == 2 && sIsOpen == true) ||
  6955. tType == 1 ||
  6956. tType == 4) &&
  6957. tool.tool.indexOf(1) != -1
  6958. "
  6959. class="worksBox"
  6960. >
  6961. <div
  6962. class="zuoyeYulan"
  6963. style="display: flex;justify-content: space-between;align-items: center;"
  6964. v-if="
  6965. (worksStudent.length &&
  6966. worksStudent[toolIndex].length > 0) ||
  6967. (courseGroup.group && courseGroup.group.length)
  6968. "
  6969. >
  6970. <div class="worksTop">
  6971. <div>{{ lang.ssHomeworkPreview }}</div>
  6972. <div
  6973. class="corOpen"
  6974. @click="contract(toolIndex)"
  6975. v-if="
  6976. isCloseList[toolIndex].isCloseBoolean &&
  6977. isCloseList[toolIndex].isClose == 0
  6978. "
  6979. >
  6980. {{ lang.ssFold }}
  6981. </div>
  6982. <div
  6983. class="corOpen"
  6984. @click="contract(toolIndex)"
  6985. v-if="isCloseList[toolIndex].isClose == 1"
  6986. >
  6987. {{ lang.ssExpand }}
  6988. </div>
  6989. </div>
  6990. <div
  6991. style="display: flex;"
  6992. v-if="
  6993. (courseDetail.userid == userid ||
  6994. (courseDetail.course_teacher &&
  6995. courseDetail.course_teacher.indexOf(userid) !=
  6996. -1)) &&
  6997. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6998. taskCount
  6999. ].eList &&
  7000. chapInfoList[courseType].chapterInfo[0].taskJson[
  7001. taskCount
  7002. ].eList.length) ||
  7003. (tool.eList && tool.eList.length)) &&
  7004. courseDetail.state == 6
  7005. "
  7006. >
  7007. <div
  7008. style="margin-right:10px"
  7009. class="ScoreBtn"
  7010. @click="
  7011. resetLoopEva(
  7012. worksStudent[toolIndex],
  7013. chapInfoList[courseType].chapterInfo[0].taskJson[
  7014. taskCount
  7015. ].eList,
  7016. courseType,
  7017. taskCount,
  7018. toolIndex,
  7019. tool.toolDetail,
  7020. worksStudent
  7021. )
  7022. "
  7023. >
  7024. {{ lang.ssReset }}
  7025. </div>
  7026. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7027. <img
  7028. src="../../assets/icon/newIcons/rootImg.png"
  7029. alt=""
  7030. />
  7031. {{ lang.ssAiScore }}
  7032. </div>
  7033. <div
  7034. class="ScoreBtn"
  7035. v-else-if="!loopLoading[toolIndex].loading"
  7036. @click="
  7037. loopEva(
  7038. worksStudent[toolIndex],
  7039. chapInfoList[courseType].chapterInfo[0].taskJson[
  7040. taskCount
  7041. ].eList,
  7042. courseType,
  7043. taskCount,
  7044. toolIndex,
  7045. tool.toolDetail,
  7046. chapInfoList[courseType].chapterInfo[0].taskJson[
  7047. taskCount
  7048. ].taskDetail,
  7049. tool
  7050. )
  7051. "
  7052. >
  7053. <img
  7054. src="../../assets/icon/newIcons/rootImg.png"
  7055. alt=""
  7056. />
  7057. {{ lang.ssAiScore }}
  7058. </div>
  7059. <div class="ScoreBtn" v-else>
  7060. <img
  7061. src="../../assets/icon/newIcons/rootImg.png"
  7062. alt=""
  7063. />
  7064. {{ lang.ssScoring }}
  7065. </div>
  7066. </div>
  7067. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7068. </div>
  7069. <div
  7070. class="group_workBox"
  7071. v-for="(g, gindex) in courseGroup.group"
  7072. :key="gindex"
  7073. >
  7074. <div class="group_box">
  7075. <div class="group_title">
  7076. <el-tooltip
  7077. class="item"
  7078. effect="light"
  7079. :content="g.name"
  7080. placement="top"
  7081. >
  7082. <div class="group_name">{{ g.name }}</div>
  7083. </el-tooltip>
  7084. </div>
  7085. <div
  7086. class="group_work"
  7087. v-if="
  7088. g.works &&
  7089. g.works.length &&
  7090. g.works[toolIndex].length
  7091. "
  7092. >
  7093. <div
  7094. class="works"
  7095. style="
  7096. width: 200px;
  7097. height: 140px;
  7098. margin: 10px 10px 10px 0;
  7099. border-radius: 15px;
  7100. box-shadow: 0 0 6px 1px #dfdada;
  7101. "
  7102. v-for="(w, wIndex) in g.works[toolIndex]"
  7103. :key="wIndex"
  7104. :class="w.type == 1 ? 'isTypeOne' : ''"
  7105. >
  7106. <div class="workImg">
  7107. <img
  7108. :src="w.works"
  7109. @click="previewImg(w.works, w)"
  7110. alt
  7111. />
  7112. <div
  7113. class="answerScore"
  7114. v-if="w.score"
  7115. @click.stop="openScore(w)"
  7116. :class="{
  7117. rightW:
  7118. w.userid == userid ||
  7119. tType == 1 ||
  7120. tType == 4
  7121. }"
  7122. >
  7123. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7124. </div>
  7125. <div
  7126. class="answerScore"
  7127. @click.stop="openScore(w)"
  7128. v-else-if="courseDetail.userid == userid"
  7129. :class="{
  7130. rightW:
  7131. w.userid == userid ||
  7132. tType == 1 ||
  7133. tType == 4
  7134. }"
  7135. >
  7136. {{ lang.ssMarkScore }}
  7137. </div>
  7138. <img
  7139. class="deleteImg"
  7140. src="../../assets/deleteworks.png"
  7141. v-if="
  7142. w.userid == userid || tType == 1 || tType == 4
  7143. "
  7144. @click.stop="deleteWorks(w.wid)"
  7145. alt
  7146. />
  7147. </div>
  7148. <div class="comment" style="min-width: 200px">
  7149. <div class="worksName">
  7150. <div>{{ w.sName }}</div>
  7151. </div>
  7152. <div class="commentList">
  7153. <div class="commentList">
  7154. <div
  7155. class="commentImg"
  7156. @click="
  7157. isLikes(
  7158. w.wid,
  7159. userid,
  7160. 1,
  7161. null,
  7162. w.isLikes,
  7163. w.sName
  7164. )
  7165. "
  7166. >
  7167. <img
  7168. :src="w.isLikes == true ? likes : noLikes"
  7169. alt=""
  7170. />
  7171. </div>
  7172. <div>{{ w.likesCount }}</div>
  7173. </div>
  7174. <div
  7175. class="commentList"
  7176. style="margin-right: 15px"
  7177. >
  7178. <div
  7179. class="commentImg"
  7180. @click="
  7181. commentOther(
  7182. w,
  7183. toolIndex,
  7184. wIndex,
  7185. null,
  7186. g.id
  7187. )
  7188. "
  7189. >
  7190. <img
  7191. src="../../assets/icon/comment/comment.png"
  7192. alt=""
  7193. />
  7194. </div>
  7195. <div>{{ w.commentCount }}</div>
  7196. </div>
  7197. </div>
  7198. </div>
  7199. </div>
  7200. </div>
  7201. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  7202. </div>
  7203. </div>
  7204. <div
  7205. :id="'tool-' + toolIndex"
  7206. :style="{
  7207. height:
  7208. isCloseList[toolIndex].isClose == 1
  7209. ? retrnToolHeight('tool-' + toolIndex)
  7210. : 'auto',
  7211. overflow:
  7212. isCloseList[toolIndex].isClose == 1
  7213. ? 'hidden'
  7214. : 'unset'
  7215. }"
  7216. class="worksDetailBox"
  7217. v-if="
  7218. worksStudent.length &&
  7219. worksStudent[toolIndex].length > 0
  7220. "
  7221. >
  7222. <div
  7223. class="works"
  7224. style="
  7225. width: 200px;
  7226. height: 140px;
  7227. margin: 10px 10px 10px 0;
  7228. border-radius: 15px;
  7229. box-shadow: 0 0 6px 1px #dfdada;
  7230. "
  7231. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7232. :key="wIndex"
  7233. >
  7234. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  7235. <div class="workImg">
  7236. <img
  7237. :src="w.works"
  7238. @click="previewImg(w.works, w)"
  7239. alt
  7240. />
  7241. <div
  7242. class="answerScore"
  7243. v-if="w.score"
  7244. @click.stop="openScore(w)"
  7245. :class="{
  7246. rightW:
  7247. w.userid == userid || tType == 1 || tType == 4
  7248. }"
  7249. >
  7250. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7251. </div>
  7252. <div
  7253. class="answerScore"
  7254. @click.stop="openScore(w)"
  7255. v-else-if="
  7256. courseDetail.userid == userid &&
  7257. courseDetail.state != 6 &&
  7258. chapInfoList[courseType].chapterInfo[0]
  7259. .taskJson[taskCount].eList &&
  7260. chapInfoList[courseType].chapterInfo[0]
  7261. .taskJson[taskCount].eList.length
  7262. "
  7263. :class="{
  7264. rightW:
  7265. w.userid == userid || tType == 1 || tType == 4
  7266. }"
  7267. >
  7268. {{ lang.ssMarkScore }}
  7269. </div>
  7270. <div
  7271. v-else-if="
  7272. (courseDetail.userid == userid ||
  7273. (courseDetail.course_teacher &&
  7274. courseDetail.course_teacher.indexOf(userid) !=
  7275. -1) ||
  7276. (courseDetail.course_teacher &&
  7277. courseDetail.course_teacher.indexOf(userid) !=
  7278. -1) ||
  7279. (courseDetail.course_teacher &&
  7280. courseDetail.course_teacher.indexOf(userid) !=
  7281. -1) ||
  7282. (w.userid == userid && sIsOpen)) &&
  7283. courseDetail.state == 6 &&
  7284. ((chapInfoList[courseType].chapterInfo[0]
  7285. .taskJson[taskCount].eList &&
  7286. chapInfoList[courseType].chapterInfo[0]
  7287. .taskJson[taskCount].eList.length) ||
  7288. (tool.eList && tool.eList.length))
  7289. "
  7290. >
  7291. <el-popover
  7292. placement="top"
  7293. width="318"
  7294. :disabled="AIloading[toolIndex][wIndex].loading"
  7295. trigger="hover"
  7296. >
  7297. <markScore
  7298. :loading="AIloading[toolIndex][wIndex].loading"
  7299. :markScoreVisible="markScoreVisible"
  7300. :ref="`markSco${toolIndex}${wIndex}`"
  7301. @updateLoading="updateLoading"
  7302. @updateDocSco="updateDocSco"
  7303. @refreshOther="refreshOther"
  7304. @markScoreDig="markScoreDig"
  7305. :tool="tool"
  7306. :wIndex="wIndex"
  7307. :scoCon="w"
  7308. :toolIndex="toolIndex"
  7309. :key="refreshKey"
  7310. :stage="courseType"
  7311. :task="taskCount"
  7312. :scoTit="
  7313. chapInfoList[courseType].chapterInfo[0]
  7314. .taskJson[taskCount].eList
  7315. "
  7316. >
  7317. </markScore>
  7318. <div
  7319. class="answerScore"
  7320. @click="
  7321. markScoreDig2(
  7322. w.sName,
  7323. worksStudent,
  7324. w.userid,
  7325. toolIndex,
  7326. chapInfoList[courseType].chapterInfo[0]
  7327. .taskJson[taskCount].eList,
  7328. AIloading[toolIndex][wIndex].loading,
  7329. tool
  7330. )
  7331. "
  7332. slot="reference"
  7333. :class="{
  7334. rightW:
  7335. w.userid == userid ||
  7336. tType == 1 ||
  7337. tType == 4 ||
  7338. w.ateacher == userid
  7339. }"
  7340. >
  7341. <span v-if="AIloading[toolIndex][wIndex].sco">
  7342. {{
  7343. AIloading[toolIndex][wIndex].loading
  7344. ? lang.ssScoringIn
  7345. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  7346. }}
  7347. </span>
  7348. <span v-else>
  7349. {{
  7350. AIloading[toolIndex][wIndex].loading
  7351. ? lang.ssScoringIn
  7352. : lang.ssMarkScore
  7353. }}
  7354. </span>
  7355. </div>
  7356. </el-popover>
  7357. </div>
  7358. <img
  7359. class="deleteImg"
  7360. src="../../assets/deleteworks.png"
  7361. v-if="
  7362. w.userid == userid || tType == 1 || tType == 4
  7363. "
  7364. @click.stop="deleteWorks(w.wid)"
  7365. alt
  7366. />
  7367. </div>
  7368. <div class="comment" style="min-width: 200px">
  7369. <div class="worksName">
  7370. <div>{{ w.sName }}</div>
  7371. </div>
  7372. <div class="commentList">
  7373. <div class="commentList">
  7374. <div
  7375. class="commentImg"
  7376. @click="
  7377. isLikes(
  7378. w.wid,
  7379. userid,
  7380. 1,
  7381. null,
  7382. w.isLikes,
  7383. w.sName
  7384. )
  7385. "
  7386. >
  7387. <img
  7388. :src="w.isLikes == true ? likes : noLikes"
  7389. alt=""
  7390. />
  7391. </div>
  7392. <div>{{ w.likesCount }}</div>
  7393. </div>
  7394. <div class="commentList" style="margin-right: 15px">
  7395. <div
  7396. class="commentImg"
  7397. @click="commentOther(w, toolIndex, wIndex)"
  7398. >
  7399. <img
  7400. src="../../assets/icon/comment/comment.png"
  7401. alt=""
  7402. />
  7403. </div>
  7404. <div>{{ w.commentCount }}</div>
  7405. </div>
  7406. </div>
  7407. </div>
  7408. </div>
  7409. </div>
  7410. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7411. {{ lang.ssNotSubmitted }}
  7412. </div>
  7413. <div
  7414. class="noWorksS"
  7415. v-if="noWorksS && noWorksS[toolIndex].length"
  7416. >
  7417. <div
  7418. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7419. :key="sIndex"
  7420. class="noWorksName"
  7421. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  7422. >
  7423. <el-tooltip
  7424. effect="dark"
  7425. :content="s.student"
  7426. placement="top"
  7427. >
  7428. <span>{{ s.student }}</span>
  7429. </el-tooltip>
  7430. </div>
  7431. </div>
  7432. </div>
  7433. <div
  7434. v-if="
  7435. tType &&
  7436. ((tType == 2 && sIsOpen == true) ||
  7437. tType == 1 ||
  7438. tType == 4) &&
  7439. tool.tool.indexOf(3) != -1
  7440. "
  7441. class="worksBox"
  7442. >
  7443. <div
  7444. class="zuoyeYulan"
  7445. style="display: flex;justify-content: space-between;align-items: center;"
  7446. v-if="
  7447. (worksStudent.length &&
  7448. worksStudent[toolIndex].length > 0) ||
  7449. (courseGroup.group && courseGroup.group.length)
  7450. "
  7451. >
  7452. <div class="worksTop">
  7453. <div>{{ lang.ssHomeworkPreview }}</div>
  7454. <div
  7455. class="corOpen"
  7456. @click="contract(toolIndex)"
  7457. v-if="
  7458. isCloseList[toolIndex].isCloseBoolean &&
  7459. isCloseList[toolIndex].isClose == 0
  7460. "
  7461. >
  7462. {{ lang.ssFold }}
  7463. </div>
  7464. <div
  7465. class="corOpen"
  7466. @click="contract(toolIndex)"
  7467. v-if="isCloseList[toolIndex].isClose == 1"
  7468. >
  7469. {{ lang.ssExpand }}
  7470. </div>
  7471. </div>
  7472. <div
  7473. style="display: flex;"
  7474. v-if="
  7475. (courseDetail.userid == userid ||
  7476. (courseDetail.course_teacher &&
  7477. courseDetail.course_teacher.indexOf(userid) !=
  7478. -1)) &&
  7479. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7480. taskCount
  7481. ].eList &&
  7482. chapInfoList[courseType].chapterInfo[0].taskJson[
  7483. taskCount
  7484. ].eList.length) ||
  7485. (tool.eList && tool.eList.length)) &&
  7486. courseDetail.state == 6
  7487. "
  7488. >
  7489. <div
  7490. style="margin-right:10px"
  7491. class="ScoreBtn"
  7492. @click="
  7493. resetLoopEva(
  7494. worksStudent[toolIndex],
  7495. chapInfoList[courseType].chapterInfo[0].taskJson[
  7496. taskCount
  7497. ].eList,
  7498. courseType,
  7499. taskCount,
  7500. toolIndex,
  7501. tool.toolDetail,
  7502. worksStudent
  7503. )
  7504. "
  7505. >
  7506. {{ lang.ssReset }}
  7507. </div>
  7508. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7509. <img
  7510. src="../../assets/icon/newIcons/rootImg.png"
  7511. alt=""
  7512. />
  7513. {{ lang.ssAiScore }}
  7514. </div>
  7515. <div
  7516. class="ScoreBtn"
  7517. v-else-if="!loopLoading[toolIndex].loading"
  7518. @click="
  7519. loopEva(
  7520. worksStudent[toolIndex],
  7521. chapInfoList[courseType].chapterInfo[0].taskJson[
  7522. taskCount
  7523. ].eList,
  7524. courseType,
  7525. taskCount,
  7526. toolIndex,
  7527. tool.toolDetail,
  7528. chapInfoList[courseType].chapterInfo[0].taskJson[
  7529. taskCount
  7530. ].taskDetail,
  7531. tool
  7532. )
  7533. "
  7534. >
  7535. <img
  7536. src="../../assets/icon/newIcons/rootImg.png"
  7537. alt=""
  7538. />
  7539. {{ lang.ssAiScore }}
  7540. </div>
  7541. <div class="ScoreBtn" v-else>
  7542. <img
  7543. src="../../assets/icon/newIcons/rootImg.png"
  7544. alt=""
  7545. />
  7546. {{ lang.ssScoring }}
  7547. </div>
  7548. </div>
  7549. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7550. </div>
  7551. <div
  7552. class="group_workBox"
  7553. v-for="(g, gindex) in courseGroup.group"
  7554. :key="gindex"
  7555. >
  7556. <div class="group_box">
  7557. <div class="group_title">
  7558. <el-tooltip
  7559. class="item"
  7560. effect="light"
  7561. :content="g.name"
  7562. placement="top"
  7563. >
  7564. <div class="group_name">{{ g.name }}</div>
  7565. </el-tooltip>
  7566. </div>
  7567. <div
  7568. class="group_work"
  7569. v-if="
  7570. g.works &&
  7571. g.works.length &&
  7572. g.works[toolIndex].length
  7573. "
  7574. >
  7575. <div
  7576. class="works"
  7577. style="
  7578. width: 200px;
  7579. height: 140px;
  7580. margin: 10px 10px 10px 0;
  7581. border-radius: 15px;
  7582. box-shadow: 0 0 6px 1px #dfdada;
  7583. "
  7584. v-for="(w, wIndex) in g.works[toolIndex]"
  7585. :key="wIndex"
  7586. :class="w.type == 1 ? 'isTypeOne' : ''"
  7587. >
  7588. <div class="workImg">
  7589. <img
  7590. :src="w.works"
  7591. @click="previewImg(w.works, w)"
  7592. alt
  7593. />
  7594. <div
  7595. class="answerScore"
  7596. v-if="w.score"
  7597. @click.stop="openScore(w)"
  7598. :class="{
  7599. rightW:
  7600. w.userid == userid ||
  7601. tType == 1 ||
  7602. tType == 4
  7603. }"
  7604. >
  7605. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7606. </div>
  7607. <div
  7608. class="answerScore"
  7609. @click.stop="openScore(w)"
  7610. v-else-if="courseDetail.userid == userid"
  7611. :class="{
  7612. rightW:
  7613. w.userid == userid ||
  7614. tType == 1 ||
  7615. tType == 4
  7616. }"
  7617. >
  7618. {{ lang.ssMarkScore }}
  7619. </div>
  7620. <img
  7621. class="deleteImg"
  7622. src="../../assets/deleteworks.png"
  7623. v-if="
  7624. w.userid == userid || tType == 1 || tType == 4
  7625. "
  7626. @click.stop="deleteWorks(w.wid)"
  7627. alt
  7628. />
  7629. </div>
  7630. <div class="comment" style="min-width: 200px">
  7631. <div class="worksName">
  7632. <div>{{ w.sName }}</div>
  7633. </div>
  7634. <div class="commentList">
  7635. <div class="commentList">
  7636. <div
  7637. class="commentImg"
  7638. @click="
  7639. isLikes(
  7640. w.wid,
  7641. userid,
  7642. 1,
  7643. null,
  7644. w.isLikes,
  7645. w.sName
  7646. )
  7647. "
  7648. >
  7649. <img
  7650. :src="w.isLikes == true ? likes : noLikes"
  7651. alt=""
  7652. />
  7653. </div>
  7654. <div>{{ w.likesCount }}</div>
  7655. </div>
  7656. <div
  7657. class="commentList"
  7658. style="margin-right: 15px"
  7659. >
  7660. <div
  7661. class="commentImg"
  7662. @click="
  7663. commentOther(
  7664. w,
  7665. toolIndex,
  7666. wIndex,
  7667. null,
  7668. g.id
  7669. )
  7670. "
  7671. >
  7672. <img
  7673. src="../../assets/icon/comment/comment.png"
  7674. alt=""
  7675. />
  7676. </div>
  7677. <div>{{ w.commentCount }}</div>
  7678. </div>
  7679. </div>
  7680. </div>
  7681. </div>
  7682. </div>
  7683. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  7684. </div>
  7685. </div>
  7686. <div
  7687. :id="'tool-' + toolIndex"
  7688. :style="{
  7689. height:
  7690. isCloseList[toolIndex].isClose == 1
  7691. ? retrnToolHeight('tool-' + toolIndex)
  7692. : 'auto',
  7693. overflow:
  7694. isCloseList[toolIndex].isClose == 1
  7695. ? 'hidden'
  7696. : 'unset'
  7697. }"
  7698. class="worksDetailBox"
  7699. v-if="
  7700. worksStudent.length &&
  7701. worksStudent[toolIndex].length > 0
  7702. "
  7703. >
  7704. <div
  7705. class="works"
  7706. style="
  7707. width: 200px;
  7708. height: 140px;
  7709. margin: 10px 10px 10px 0;
  7710. border-radius: 15px;
  7711. box-shadow: 0 0 6px 1px #dfdada;
  7712. "
  7713. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7714. :key="wIndex"
  7715. >
  7716. <!-- @click="previewImg(w.works)" -->
  7717. <div class="workImg">
  7718. <img
  7719. :src="w.works"
  7720. @click="previewImg(w.works, w)"
  7721. alt
  7722. />
  7723. <div
  7724. class="answerScore"
  7725. v-if="w.score"
  7726. @click.stop="openScore(w)"
  7727. :class="{
  7728. rightW:
  7729. w.userid == userid || tType == 1 || tType == 4
  7730. }"
  7731. >
  7732. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  7733. </div>
  7734. <div
  7735. class="answerScore"
  7736. @click.stop="openScore(w)"
  7737. v-else-if="
  7738. courseDetail.userid == userid &&
  7739. courseDetail.state != 6 &&
  7740. chapInfoList[courseType].chapterInfo[0]
  7741. .taskJson[taskCount].eList &&
  7742. chapInfoList[courseType].chapterInfo[0]
  7743. .taskJson[taskCount].eList.length
  7744. "
  7745. :class="{
  7746. rightW:
  7747. w.userid == userid || tType == 1 || tType == 4
  7748. }"
  7749. >
  7750. {{ lang.ssMarkScore }}
  7751. </div>
  7752. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  7753. <div
  7754. v-else-if="
  7755. (courseDetail.userid == userid ||
  7756. (courseDetail.course_teacher &&
  7757. courseDetail.course_teacher.indexOf(userid) !=
  7758. -1) ||
  7759. (w.userid == userid && sIsOpen)) &&
  7760. courseDetail.state == 6 &&
  7761. ((chapInfoList[courseType].chapterInfo[0]
  7762. .taskJson[taskCount].eList &&
  7763. chapInfoList[courseType].chapterInfo[0]
  7764. .taskJson[taskCount].eList.length) ||
  7765. (tool.eList && tool.eList.length))
  7766. "
  7767. >
  7768. <el-popover
  7769. placement="top"
  7770. width="318"
  7771. :disabled="AIloading[toolIndex][wIndex].loading"
  7772. trigger="hover"
  7773. >
  7774. <markScore
  7775. :loading="AIloading[toolIndex][wIndex].loading"
  7776. :markScoreVisible="markScoreVisible"
  7777. :ref="`markSco${toolIndex}${wIndex}`"
  7778. @updateLoading="updateLoading"
  7779. @updateDocSco="updateDocSco"
  7780. @refreshOther="refreshOther"
  7781. @markScoreDig="markScoreDig"
  7782. :tool="tool"
  7783. :wIndex="wIndex"
  7784. :scoCon="w"
  7785. :toolIndex="toolIndex"
  7786. :key="refreshKey"
  7787. :stage="courseType"
  7788. :task="taskCount"
  7789. :scoTit="
  7790. chapInfoList[courseType].chapterInfo[0]
  7791. .taskJson[taskCount].eList
  7792. "
  7793. >
  7794. </markScore>
  7795. <div
  7796. class="answerScore"
  7797. @click="
  7798. markScoreDig2(
  7799. w.sName,
  7800. worksStudent,
  7801. w.userid,
  7802. toolIndex,
  7803. chapInfoList[courseType].chapterInfo[0]
  7804. .taskJson[taskCount].eList,
  7805. AIloading[toolIndex][wIndex].loading,
  7806. tool
  7807. )
  7808. "
  7809. slot="reference"
  7810. :class="{
  7811. rightW:
  7812. w.userid == userid ||
  7813. tType == 1 ||
  7814. tType == 4 ||
  7815. w.ateacher == userid
  7816. }"
  7817. >
  7818. <span v-if="AIloading[toolIndex][wIndex].sco">
  7819. {{
  7820. AIloading[toolIndex][wIndex].loading
  7821. ? lang.ssScoringIn
  7822. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  7823. }}
  7824. </span>
  7825. <span v-else>
  7826. {{
  7827. AIloading[toolIndex][wIndex].loading
  7828. ? lang.ssScoringIn
  7829. : lang.ssMarkScore
  7830. }}
  7831. </span>
  7832. </div>
  7833. </el-popover>
  7834. </div>
  7835. <img
  7836. class="deleteImg"
  7837. src="../../assets/deleteworks.png"
  7838. v-if="
  7839. w.userid == userid || tType == 1 || tType == 4
  7840. "
  7841. @click.stop="deleteWorks(w.wid)"
  7842. alt
  7843. />
  7844. </div>
  7845. <div class="comment" style="min-width: 200px">
  7846. <div class="worksName">
  7847. <div>{{ w.sName }}</div>
  7848. </div>
  7849. <div class="commentList">
  7850. <div class="commentList">
  7851. <div
  7852. class="commentImg"
  7853. @click="
  7854. isLikes(
  7855. w.wid,
  7856. userid,
  7857. 1,
  7858. null,
  7859. w.isLikes,
  7860. w.sName
  7861. )
  7862. "
  7863. >
  7864. <img
  7865. :src="w.isLikes == true ? likes : noLikes"
  7866. alt=""
  7867. />
  7868. </div>
  7869. <div>{{ w.likesCount }}</div>
  7870. </div>
  7871. <div class="commentList" style="margin-right: 15px">
  7872. <div
  7873. class="commentImg"
  7874. @click="commentOther(w, toolIndex, wIndex)"
  7875. >
  7876. <img
  7877. src="../../assets/icon/comment/comment.png"
  7878. alt=""
  7879. />
  7880. </div>
  7881. <div>{{ w.commentCount }}</div>
  7882. </div>
  7883. </div>
  7884. </div>
  7885. </div>
  7886. </div>
  7887. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7888. {{ lang.ssNotSubmitted }}
  7889. </div>
  7890. <div
  7891. class="noWorksS"
  7892. v-if="noWorksS && noWorksS[toolIndex].length"
  7893. >
  7894. <div
  7895. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7896. :key="sIndex"
  7897. class="noWorksName"
  7898. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7899. >
  7900. <el-tooltip
  7901. effect="dark"
  7902. :content="s.student"
  7903. placement="top"
  7904. >
  7905. <span>{{ s.student }}</span>
  7906. </el-tooltip>
  7907. </div>
  7908. </div>
  7909. </div>
  7910. <div
  7911. v-if="
  7912. tType &&
  7913. ((tType == 2 && sIsOpen == true) ||
  7914. tType == 1 ||
  7915. tType == 4) &&
  7916. tool.tool.indexOf(6) != -1
  7917. "
  7918. class="worksBox"
  7919. >
  7920. <div
  7921. class="zuoyeYulan"
  7922. v-if="
  7923. (worksStudent.length &&
  7924. worksStudent[toolIndex].length > 0) ||
  7925. (courseGroup.group && courseGroup.group.length)
  7926. "
  7927. >
  7928. <div class="worksTop">
  7929. <div>{{ lang.ssHomeworkPreview }}</div>
  7930. <div
  7931. class="corOpen"
  7932. @click="contract(toolIndex)"
  7933. v-if="
  7934. isCloseList[toolIndex].isCloseBoolean &&
  7935. isCloseList[toolIndex].isClose == 0
  7936. "
  7937. >
  7938. {{ lang.ssFold }}
  7939. </div>
  7940. <div
  7941. class="corOpen"
  7942. @click="contract(toolIndex)"
  7943. v-if="isCloseList[toolIndex].isClose == 1"
  7944. >
  7945. {{ lang.ssExpand }}
  7946. </div>
  7947. </div>
  7948. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7949. </div>
  7950. <div
  7951. class="group_workBox"
  7952. v-for="(g, gindex) in courseGroup.group"
  7953. :key="gindex"
  7954. >
  7955. <div class="group_box">
  7956. <div class="group_title">
  7957. <el-tooltip
  7958. class="item"
  7959. effect="light"
  7960. :content="g.name"
  7961. placement="top"
  7962. >
  7963. <div class="group_name">{{ g.name }}</div>
  7964. </el-tooltip>
  7965. </div>
  7966. <div
  7967. class="group_work"
  7968. v-if="
  7969. g.works &&
  7970. g.works.length &&
  7971. g.works[toolIndex].length
  7972. "
  7973. >
  7974. <div
  7975. class="works"
  7976. style="
  7977. width: 200px;
  7978. height: 140px;
  7979. margin: 10px 10px 10px 0;
  7980. border-radius: 15px;
  7981. box-shadow: 0 0 6px 1px #dfdada;
  7982. "
  7983. v-for="(w, wIndex) in g.works[toolIndex]"
  7984. :key="wIndex"
  7985. :class="w.type == 1 ? 'isTypeOne' : ''"
  7986. >
  7987. <div class="workImg">
  7988. <img
  7989. :src="w.works"
  7990. @click="previewImg(w.works, w)"
  7991. alt
  7992. />
  7993. <div
  7994. class="answerScore"
  7995. v-if="w.score"
  7996. @click.stop="openScore(w)"
  7997. :class="{
  7998. rightW:
  7999. w.userid == userid ||
  8000. tType == 1 ||
  8001. tType == 4
  8002. }"
  8003. >
  8004. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  8005. </div>
  8006. <div
  8007. class="answerScore"
  8008. @click.stop="openScore(w)"
  8009. v-else-if="courseDetail.userid == userid"
  8010. :class="{
  8011. rightW:
  8012. w.userid == userid ||
  8013. tType == 1 ||
  8014. tType == 4
  8015. }"
  8016. >
  8017. {{ lang.ssMarkScore }}
  8018. </div>
  8019. <img
  8020. class="deleteImg"
  8021. src="../../assets/deleteworks.png"
  8022. v-if="
  8023. w.userid == userid || tType == 1 || tType == 4
  8024. "
  8025. @click.stop="deleteWorks(w.wid)"
  8026. alt
  8027. />
  8028. </div>
  8029. <div class="comment" style="min-width: 200px">
  8030. <div class="worksName">
  8031. <div>{{ w.sName }}</div>
  8032. </div>
  8033. <div class="commentList">
  8034. <div class="commentList">
  8035. <div
  8036. class="commentImg"
  8037. @click="
  8038. isLikes(
  8039. w.wid,
  8040. userid,
  8041. 1,
  8042. null,
  8043. w.isLikes,
  8044. w.sName
  8045. )
  8046. "
  8047. >
  8048. <img
  8049. :src="w.isLikes == true ? likes : noLikes"
  8050. alt=""
  8051. />
  8052. </div>
  8053. <div>{{ w.likesCount }}</div>
  8054. </div>
  8055. <div
  8056. class="commentList"
  8057. style="margin-right: 15px"
  8058. >
  8059. <div
  8060. class="commentImg"
  8061. @click="
  8062. commentOther(
  8063. w,
  8064. toolIndex,
  8065. wIndex,
  8066. null,
  8067. g.id
  8068. )
  8069. "
  8070. >
  8071. <img
  8072. src="../../assets/icon/comment/comment.png"
  8073. alt=""
  8074. />
  8075. </div>
  8076. <div>{{ w.commentCount }}</div>
  8077. </div>
  8078. </div>
  8079. </div>
  8080. </div>
  8081. </div>
  8082. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  8083. </div>
  8084. </div>
  8085. <div
  8086. :id="'tool-' + toolIndex"
  8087. :style="{
  8088. height:
  8089. isCloseList[toolIndex].isClose == 1
  8090. ? retrnToolHeight('tool-' + toolIndex)
  8091. : 'auto',
  8092. overflow:
  8093. isCloseList[toolIndex].isClose == 1
  8094. ? 'hidden'
  8095. : 'unset'
  8096. }"
  8097. class="worksDetailBox"
  8098. v-if="
  8099. worksStudent.length &&
  8100. worksStudent[toolIndex].length > 0
  8101. "
  8102. >
  8103. <div
  8104. class="works"
  8105. style="
  8106. width: 200px;
  8107. height: 140px;
  8108. margin: 10px 10px 10px 0;
  8109. border-radius: 15px;
  8110. box-shadow: 0 0 6px 1px #dfdada;
  8111. "
  8112. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8113. :key="wIndex"
  8114. >
  8115. <!-- @click="previewImg(w.works)" -->
  8116. <div class="workImg">
  8117. <img
  8118. :src="w.works"
  8119. @click="previewImg(w.works, w)"
  8120. alt
  8121. />
  8122. <div
  8123. class="answerScore"
  8124. v-if="w.score"
  8125. @click.stop="openScore(w)"
  8126. :class="{
  8127. rightW:
  8128. w.userid == userid || tType == 1 || tType == 4
  8129. }"
  8130. >
  8131. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  8132. </div>
  8133. <div
  8134. class="answerScore"
  8135. @click.stop="openScore(w)"
  8136. v-else-if="courseDetail.userid == userid"
  8137. :class="{
  8138. rightW:
  8139. w.userid == userid || tType == 1 || tType == 4
  8140. }"
  8141. >
  8142. {{ lang.ssMarkScore }}
  8143. </div>
  8144. <img
  8145. class="deleteImg"
  8146. src="../../assets/deleteworks.png"
  8147. v-if="
  8148. w.userid == userid || tType == 1 || tType == 4
  8149. "
  8150. @click.stop="deleteWorks(w.wid)"
  8151. alt
  8152. />
  8153. </div>
  8154. <div class="comment" style="min-width: 200px">
  8155. <div class="worksName">
  8156. <div>{{ w.sName }}</div>
  8157. </div>
  8158. <div class="commentList">
  8159. <div class="commentList">
  8160. <div
  8161. class="commentImg"
  8162. @click="
  8163. isLikes(
  8164. w.wid,
  8165. userid,
  8166. 1,
  8167. null,
  8168. w.isLikes,
  8169. w.sName
  8170. )
  8171. "
  8172. >
  8173. <img
  8174. :src="w.isLikes == true ? likes : noLikes"
  8175. alt=""
  8176. />
  8177. </div>
  8178. <div>{{ w.likesCount }}</div>
  8179. </div>
  8180. <div class="commentList" style="margin-right: 15px">
  8181. <div
  8182. class="commentImg"
  8183. @click="commentOther(w, toolIndex, wIndex)"
  8184. >
  8185. <img
  8186. src="../../assets/icon/comment/comment.png"
  8187. alt=""
  8188. />
  8189. </div>
  8190. <div>{{ w.commentCount }}</div>
  8191. </div>
  8192. </div>
  8193. </div>
  8194. </div>
  8195. </div>
  8196. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8197. {{ lang.ssNotSubmitted }}
  8198. </div>
  8199. <div
  8200. class="noWorksS"
  8201. v-if="noWorksS && noWorksS[toolIndex].length"
  8202. >
  8203. <div
  8204. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8205. :key="sIndex"
  8206. class="noWorksName"
  8207. >
  8208. <el-tooltip
  8209. effect="dark"
  8210. :content="s.student"
  8211. placement="top"
  8212. >
  8213. <span>{{ s.student }}</span>
  8214. </el-tooltip>
  8215. </div>
  8216. </div>
  8217. </div>
  8218. <div
  8219. v-if="
  8220. tType &&
  8221. ((tType == 2 && sIsOpen == true) ||
  8222. tType == 1 ||
  8223. tType == 4) &&
  8224. tool.tool.indexOf(7) != -1
  8225. "
  8226. class="worksBox"
  8227. >
  8228. <div
  8229. class="zuoyeYulan"
  8230. style="display: flex;justify-content: space-between;align-items: center;"
  8231. v-if="
  8232. (worksStudent.length &&
  8233. worksStudent[toolIndex].length > 0) ||
  8234. (courseGroup.group && courseGroup.group.length)
  8235. "
  8236. >
  8237. <div class="worksTop">
  8238. <div>{{ lang.ssHomeworkPreview }}</div>
  8239. <div
  8240. class="corOpen"
  8241. @click="contract(toolIndex)"
  8242. v-if="
  8243. isCloseList[toolIndex].isCloseBoolean &&
  8244. isCloseList[toolIndex].isClose == 0
  8245. "
  8246. >
  8247. {{ lang.ssFold }}
  8248. </div>
  8249. <div
  8250. class="corOpen"
  8251. @click="contract(toolIndex)"
  8252. v-if="isCloseList[toolIndex].isClose == 1"
  8253. >
  8254. {{ lang.ssExpand }}
  8255. </div>
  8256. </div>
  8257. <div
  8258. style="display: flex;"
  8259. v-if="
  8260. (courseDetail.userid == userid ||
  8261. (courseDetail.course_teacher &&
  8262. courseDetail.course_teacher.indexOf(userid) !=
  8263. -1)) &&
  8264. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  8265. taskCount
  8266. ].eList &&
  8267. chapInfoList[courseType].chapterInfo[0].taskJson[
  8268. taskCount
  8269. ].eList.length) ||
  8270. (tool.eList && tool.eList.length)) &&
  8271. courseDetail.state == 6
  8272. "
  8273. >
  8274. <div
  8275. style="margin-right:10px"
  8276. class="ScoreBtn"
  8277. @click="
  8278. resetLoopEva(
  8279. worksStudent[toolIndex],
  8280. chapInfoList[courseType].chapterInfo[0].taskJson[
  8281. taskCount
  8282. ].eList,
  8283. courseType,
  8284. taskCount,
  8285. toolIndex,
  8286. tool.toolDetail,
  8287. worksStudent
  8288. )
  8289. "
  8290. >
  8291. {{ lang.ssReset }}
  8292. </div>
  8293. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  8294. <img
  8295. src="../../assets/icon/newIcons/rootImg.png"
  8296. alt=""
  8297. />
  8298. {{ lang.ssAiScore }}
  8299. </div>
  8300. <div
  8301. class="ScoreBtn"
  8302. v-else-if="!loopLoading[toolIndex].loading"
  8303. @click="
  8304. loopEva(
  8305. worksStudent[toolIndex],
  8306. chapInfoList[courseType].chapterInfo[0].taskJson[
  8307. taskCount
  8308. ].eList,
  8309. courseType,
  8310. taskCount,
  8311. toolIndex,
  8312. tool.toolDetail,
  8313. chapInfoList[courseType].chapterInfo[0].taskJson[
  8314. taskCount
  8315. ].taskDetail,
  8316. tool
  8317. )
  8318. "
  8319. >
  8320. <img
  8321. src="../../assets/icon/newIcons/rootImg.png"
  8322. alt=""
  8323. />
  8324. {{ lang.ssAiScore }}
  8325. </div>
  8326. <div class="ScoreBtn" v-else>
  8327. <img
  8328. src="../../assets/icon/newIcons/rootImg.png"
  8329. alt=""
  8330. />
  8331. {{ lang.ssScoring }}
  8332. </div>
  8333. </div>
  8334. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8335. </div>
  8336. <div
  8337. class="group_workBox"
  8338. v-for="(g, gindex) in courseGroup.group"
  8339. :key="gindex"
  8340. >
  8341. <div class="group_box">
  8342. <div class="group_title">
  8343. <el-tooltip
  8344. class="item"
  8345. effect="light"
  8346. :content="g.name"
  8347. placement="top"
  8348. >
  8349. <div class="group_name">{{ g.name }}</div>
  8350. </el-tooltip>
  8351. </div>
  8352. <div
  8353. class="group_work"
  8354. v-if="
  8355. g.works &&
  8356. g.works.length &&
  8357. g.works[toolIndex].length
  8358. "
  8359. >
  8360. <div
  8361. class="works"
  8362. style="
  8363. width: 200px;
  8364. height: 140px;
  8365. margin: 10px 10px 10px 0;
  8366. border-radius: 15px;
  8367. box-shadow: 0 0 6px 1px #dfdada;
  8368. "
  8369. v-for="(w, wIndex) in g.works[toolIndex]"
  8370. :key="wIndex"
  8371. :class="w.type == 1 ? 'isTypeOne' : ''"
  8372. >
  8373. <div class="workImg">
  8374. <img
  8375. :src="w.works"
  8376. @click="previewImg(w.works, w)"
  8377. alt
  8378. />
  8379. <div
  8380. class="answerScore"
  8381. v-if="w.score"
  8382. @click.stop="openScore(w)"
  8383. :class="{
  8384. rightW:
  8385. w.userid == userid ||
  8386. tType == 1 ||
  8387. tType == 4
  8388. }"
  8389. >
  8390. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  8391. </div>
  8392. <div
  8393. class="answerScore"
  8394. @click.stop="openScore(w)"
  8395. v-else-if="courseDetail.userid == userid"
  8396. :class="{
  8397. rightW:
  8398. w.userid == userid ||
  8399. tType == 1 ||
  8400. tType == 4
  8401. }"
  8402. >
  8403. {{ lang.ssMarkScore }}
  8404. </div>
  8405. <img
  8406. class="deleteImg"
  8407. src="../../assets/deleteworks.png"
  8408. v-if="
  8409. w.userid == userid || tType == 1 || tType == 4
  8410. "
  8411. @click.stop="deleteWorks(w.wid)"
  8412. alt
  8413. />
  8414. </div>
  8415. <div class="comment" style="min-width: 200px">
  8416. <div class="worksName">
  8417. <div>{{ w.sName }}</div>
  8418. </div>
  8419. <div class="commentList">
  8420. <div class="commentList">
  8421. <div
  8422. class="commentImg"
  8423. @click="
  8424. isLikes(
  8425. w.wid,
  8426. userid,
  8427. 1,
  8428. null,
  8429. w.isLikes,
  8430. w.sName
  8431. )
  8432. "
  8433. >
  8434. <img
  8435. :src="w.isLikes == true ? likes : noLikes"
  8436. alt=""
  8437. />
  8438. </div>
  8439. <div>{{ w.likesCount }}</div>
  8440. </div>
  8441. <div
  8442. class="commentList"
  8443. style="margin-right: 15px"
  8444. >
  8445. <div
  8446. class="commentImg"
  8447. @click="
  8448. commentOther(
  8449. w,
  8450. toolIndex,
  8451. wIndex,
  8452. null,
  8453. g.id
  8454. )
  8455. "
  8456. >
  8457. <img
  8458. src="../../assets/icon/comment/comment.png"
  8459. alt=""
  8460. />
  8461. </div>
  8462. <div>{{ w.commentCount }}</div>
  8463. </div>
  8464. </div>
  8465. </div>
  8466. </div>
  8467. </div>
  8468. <div class="group_work" v-else>{{ lang.ssNoHomework }}</div>
  8469. </div>
  8470. </div>
  8471. <div
  8472. :id="'tool-' + toolIndex"
  8473. :style="{
  8474. height:
  8475. isCloseList[toolIndex].isClose == 1
  8476. ? retrnToolHeight('tool-' + toolIndex)
  8477. : 'auto',
  8478. overflow:
  8479. isCloseList[toolIndex].isClose == 1
  8480. ? 'hidden'
  8481. : 'unset'
  8482. }"
  8483. class="worksDetailBox"
  8484. v-if="
  8485. worksStudent.length &&
  8486. worksStudent[toolIndex].length > 0
  8487. "
  8488. >
  8489. <div
  8490. class="works"
  8491. style="
  8492. width: 200px;
  8493. height: 140px;
  8494. margin: 10px 10px 10px 0;
  8495. border-radius: 15px;
  8496. box-shadow: 0 0 6px 1px #dfdada;
  8497. "
  8498. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8499. :key="wIndex"
  8500. >
  8501. <!-- @click="previewImg(w.works)" -->
  8502. <div class="workImg">
  8503. <img
  8504. :src="w.works"
  8505. @click="previewImg(w.works, w)"
  8506. alt
  8507. />
  8508. <div
  8509. class="answerScore"
  8510. v-if="w.score"
  8511. @click.stop="openScore(w)"
  8512. :class="{
  8513. rightW:
  8514. w.userid == userid || tType == 1 || tType == 4
  8515. }"
  8516. >
  8517. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  8518. </div>
  8519. <div
  8520. class="answerScore"
  8521. @click.stop="openScore(w)"
  8522. v-else-if="
  8523. courseDetail.userid == userid &&
  8524. courseDetail.state != 6 &&
  8525. chapInfoList[courseType].chapterInfo[0]
  8526. .taskJson[taskCount].eList &&
  8527. chapInfoList[courseType].chapterInfo[0]
  8528. .taskJson[taskCount].eList.length
  8529. "
  8530. :class="{
  8531. rightW:
  8532. w.userid == userid || tType == 1 || tType == 4
  8533. }"
  8534. >
  8535. {{ lang.ssMarkScore }}
  8536. </div>
  8537. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  8538. <div
  8539. v-else-if="
  8540. (courseDetail.userid == userid ||
  8541. (courseDetail.course_teacher &&
  8542. courseDetail.course_teacher.indexOf(userid) !=
  8543. -1) ||
  8544. (w.userid == userid && sIsOpen)) &&
  8545. courseDetail.state == 6 &&
  8546. ((chapInfoList[courseType].chapterInfo[0]
  8547. .taskJson[taskCount].eList &&
  8548. chapInfoList[courseType].chapterInfo[0]
  8549. .taskJson[taskCount].eList.length) ||
  8550. (tool.eList && tool.eList.length))
  8551. "
  8552. >
  8553. <el-popover
  8554. placement="top"
  8555. width="318"
  8556. :disabled="AIloading[toolIndex][wIndex].loading"
  8557. trigger="hover"
  8558. >
  8559. <markScore
  8560. :loading="AIloading[toolIndex][wIndex].loading"
  8561. :markScoreVisible="markScoreVisible"
  8562. :ref="`markSco${toolIndex}${wIndex}`"
  8563. @updateLoading="updateLoading"
  8564. @updateDocSco="updateDocSco"
  8565. @refreshOther="refreshOther"
  8566. @markScoreDig="markScoreDig"
  8567. :tool="tool"
  8568. :wIndex="wIndex"
  8569. :scoCon="w"
  8570. :toolIndex="toolIndex"
  8571. :key="refreshKey"
  8572. :stage="courseType"
  8573. :task="taskCount"
  8574. :scoTit="
  8575. chapInfoList[courseType].chapterInfo[0]
  8576. .taskJson[taskCount].eList
  8577. "
  8578. >
  8579. </markScore>
  8580. <div
  8581. class="answerScore"
  8582. @click="
  8583. markScoreDig2(
  8584. w.sName,
  8585. worksStudent,
  8586. w.userid,
  8587. toolIndex,
  8588. chapInfoList[courseType].chapterInfo[0]
  8589. .taskJson[taskCount].eList,
  8590. AIloading[toolIndex][wIndex].loading,
  8591. tool
  8592. )
  8593. "
  8594. slot="reference"
  8595. :class="{
  8596. rightW:
  8597. w.userid == userid ||
  8598. tType == 1 ||
  8599. tType == 4 ||
  8600. w.ateacher == userid
  8601. }"
  8602. >
  8603. <span v-if="AIloading[toolIndex][wIndex].sco">
  8604. {{
  8605. AIloading[toolIndex][wIndex].loading
  8606. ? lang.ssScoringIn
  8607. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  8608. }}
  8609. </span>
  8610. <span v-else>
  8611. {{
  8612. AIloading[toolIndex][wIndex].loading
  8613. ? lang.ssScoringIn
  8614. : lang.ssMarkScore
  8615. }}
  8616. </span>
  8617. </div>
  8618. </el-popover>
  8619. </div>
  8620. <img
  8621. class="deleteImg"
  8622. src="../../assets/deleteworks.png"
  8623. v-if="
  8624. w.userid == userid || tType == 1 || tType == 4
  8625. "
  8626. @click.stop="deleteWorks(w.wid)"
  8627. alt
  8628. />
  8629. </div>
  8630. <div class="comment" style="min-width: 200px">
  8631. <div class="worksName">
  8632. <div>{{ w.sName }}</div>
  8633. </div>
  8634. <div class="commentList">
  8635. <div class="commentList">
  8636. <div
  8637. class="commentImg"
  8638. @click="
  8639. isLikes(
  8640. w.wid,
  8641. userid,
  8642. 1,
  8643. null,
  8644. w.isLikes,
  8645. w.sName
  8646. )
  8647. "
  8648. >
  8649. <img
  8650. :src="w.isLikes == true ? likes : noLikes"
  8651. alt=""
  8652. />
  8653. </div>
  8654. <div>{{ w.likesCount }}</div>
  8655. </div>
  8656. <div class="commentList" style="margin-right: 15px">
  8657. <div
  8658. class="commentImg"
  8659. @click="commentOther(w, toolIndex, wIndex)"
  8660. >
  8661. <img
  8662. src="../../assets/icon/comment/comment.png"
  8663. alt=""
  8664. />
  8665. </div>
  8666. <div>{{ w.commentCount }}</div>
  8667. </div>
  8668. </div>
  8669. </div>
  8670. </div>
  8671. </div>
  8672. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8673. {{ lang.ssNotSubmitted }}
  8674. </div>
  8675. <div
  8676. class="noWorksS"
  8677. v-if="noWorksS && noWorksS[toolIndex].length"
  8678. >
  8679. <div
  8680. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8681. :key="sIndex"
  8682. class="noWorksName"
  8683. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  8684. >
  8685. <el-tooltip
  8686. effect="dark"
  8687. :content="s.student"
  8688. placement="top"
  8689. >
  8690. <span>{{ s.student }}</span>
  8691. </el-tooltip>
  8692. </div>
  8693. </div>
  8694. </div>
  8695. <div
  8696. v-if="
  8697. tType &&
  8698. ((tType == 2 && sIsOpen == true) ||
  8699. tType == 1 ||
  8700. tType == 4) &&
  8701. tool.tool.indexOf(26) != -1
  8702. "
  8703. class="worksBox"
  8704. >
  8705. <div
  8706. class="zuoyeYulan"
  8707. v-if="
  8708. worksStudent.length &&
  8709. worksStudent[toolIndex].length > 0
  8710. "
  8711. >
  8712. <div class="worksTop">
  8713. <div>{{ lang.ssHomeworkPreview }}</div>
  8714. <div
  8715. class="corOpen"
  8716. @click="contract(toolIndex)"
  8717. v-if="
  8718. isCloseList[toolIndex].isCloseBoolean &&
  8719. isCloseList[toolIndex].isClose == 0
  8720. "
  8721. >
  8722. {{ lang.ssFold }}
  8723. </div>
  8724. <div
  8725. class="corOpen"
  8726. @click="contract(toolIndex)"
  8727. v-if="isCloseList[toolIndex].isClose == 1"
  8728. >
  8729. {{ lang.ssExpand }}
  8730. </div>
  8731. </div>
  8732. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8733. </div>
  8734. <div
  8735. :id="'tool-' + toolIndex"
  8736. :style="{
  8737. height:
  8738. isCloseList[toolIndex].isClose == 1
  8739. ? retrnToolHeight('tool-' + toolIndex)
  8740. : 'auto',
  8741. overflow:
  8742. isCloseList[toolIndex].isClose == 1
  8743. ? 'hidden'
  8744. : 'unset'
  8745. }"
  8746. class="worksDetailBox"
  8747. v-if="
  8748. worksStudent.length &&
  8749. worksStudent[toolIndex].length > 0
  8750. "
  8751. >
  8752. <div
  8753. class="works"
  8754. style="width: 240px; height: 140px; overflow: hidden"
  8755. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8756. :key="wIndex"
  8757. :class="w.type == 1 ? 'isTypeOne' : ''"
  8758. >
  8759. <div class="workImg" v-if="w.type == 0">
  8760. <img
  8761. :src="w.works"
  8762. @click="previewImg(w.works, w)"
  8763. alt
  8764. />
  8765. <img
  8766. class="deleteImg"
  8767. src="../../assets/deleteworks.png"
  8768. v-if="
  8769. w.userid == userid || tType == 1 || tType == 4
  8770. "
  8771. @click.stop="deleteWorks(w.wid)"
  8772. alt
  8773. />
  8774. </div>
  8775. <div class="workImg" v-if="w.type == 1">
  8776. <img :src="word" @click="openFile(w.works)" alt />
  8777. <img
  8778. class="deleteImg"
  8779. src="../../assets/deleteworks.png"
  8780. v-if="
  8781. w.userid == userid || tType == 1 || tType == 4
  8782. "
  8783. @click.stop="deleteWorks(w.wid)"
  8784. alt
  8785. />
  8786. </div>
  8787. <div class="worksName">
  8788. <div>{{ w.sName }}</div>
  8789. </div>
  8790. </div>
  8791. </div>
  8792. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8793. {{ lang.ssNotSubmitted }}
  8794. </div>
  8795. <div
  8796. class="noWorksS"
  8797. v-if="noWorksS && noWorksS[toolIndex].length"
  8798. >
  8799. <div
  8800. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8801. :key="sIndex"
  8802. class="noWorksName"
  8803. >
  8804. <el-tooltip
  8805. effect="dark"
  8806. :content="s.student"
  8807. placement="top"
  8808. >
  8809. <span>{{ s.student }}</span>
  8810. </el-tooltip>
  8811. </div>
  8812. </div>
  8813. </div>
  8814. <div
  8815. v-if="
  8816. tType &&
  8817. ((tType == 2 && sIsOpen == true) ||
  8818. tType == 1 ||
  8819. tType == 4) &&
  8820. tool.tool.indexOf(40) != -1
  8821. "
  8822. class="worksBox"
  8823. >
  8824. <div
  8825. class="zuoyeYulan"
  8826. v-if="
  8827. worksStudent.length &&
  8828. worksStudent[toolIndex].length > 0
  8829. "
  8830. >
  8831. <div class="worksTop">
  8832. <div>{{ lang.ssHomeworkPreview }}</div>
  8833. <div
  8834. class="corOpen"
  8835. @click="contract(toolIndex)"
  8836. v-if="
  8837. isCloseList[toolIndex].isCloseBoolean &&
  8838. isCloseList[toolIndex].isClose == 0
  8839. "
  8840. >
  8841. {{ lang.ssFold }}
  8842. </div>
  8843. <div
  8844. class="corOpen"
  8845. @click="contract(toolIndex)"
  8846. v-if="isCloseList[toolIndex].isClose == 1"
  8847. >
  8848. {{ lang.ssExpand }}
  8849. </div>
  8850. </div>
  8851. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8852. </div>
  8853. <div
  8854. :id="'tool-' + toolIndex"
  8855. :style="{
  8856. height:
  8857. isCloseList[toolIndex].isClose == 1
  8858. ? retrnToolHeight('tool-' + toolIndex)
  8859. : 'auto',
  8860. overflow:
  8861. isCloseList[toolIndex].isClose == 1
  8862. ? 'hidden'
  8863. : 'unset'
  8864. }"
  8865. class="worksDetailBox"
  8866. v-if="
  8867. worksStudent.length &&
  8868. worksStudent[toolIndex].length > 0
  8869. "
  8870. >
  8871. <div
  8872. class="works"
  8873. style="
  8874. width: 200px;
  8875. height: 140px;
  8876. margin: 10px 10px 10px 0;
  8877. border-radius: 15px;
  8878. box-shadow: 0 0 6px 1px #dfdada;
  8879. "
  8880. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8881. :key="wIndex"
  8882. :class="w.type == 1 ? 'isTypeOne' : ''"
  8883. >
  8884. <div class="workImg">
  8885. <img
  8886. src="../../assets/icon/works/noImg.png"
  8887. @click="openPj(w.works, toolIndex)"
  8888. alt
  8889. />
  8890. <img
  8891. class="deleteImg"
  8892. src="../../assets/deleteworks.png"
  8893. v-if="
  8894. w.userid == userid || tType == 1 || tType == 4
  8895. "
  8896. @click.stop="deleteWorks(w.wid)"
  8897. alt
  8898. />
  8899. </div>
  8900. <div class="comment" style="min-width: 200px">
  8901. <div class="worksName">
  8902. <div>{{ w.sName }}</div>
  8903. </div>
  8904. <div class="commentList">
  8905. <div class="commentList">
  8906. <div
  8907. class="commentImg"
  8908. @click="
  8909. isLikes(
  8910. w.wid,
  8911. userid,
  8912. 1,
  8913. null,
  8914. w.isLikes,
  8915. w.sName
  8916. )
  8917. "
  8918. >
  8919. <img
  8920. :src="w.isLikes == true ? likes : noLikes"
  8921. alt=""
  8922. />
  8923. </div>
  8924. <div>{{ w.likesCount }}</div>
  8925. </div>
  8926. <div class="commentList" style="margin-right: 15px">
  8927. <div
  8928. class="commentImg"
  8929. @click="commentOther(w, toolIndex, wIndex)"
  8930. >
  8931. <img
  8932. src="../../assets/icon/comment/comment.png"
  8933. alt=""
  8934. />
  8935. </div>
  8936. <div>{{ w.commentCount }}</div>
  8937. </div>
  8938. </div>
  8939. </div>
  8940. </div>
  8941. </div>
  8942. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8943. {{ lang.ssNotSubmitted }}
  8944. </div>
  8945. <div
  8946. class="noWorksS"
  8947. v-if="noWorksS && noWorksS[toolIndex].length"
  8948. >
  8949. <div
  8950. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8951. :key="sIndex"
  8952. class="noWorksName"
  8953. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8954. >
  8955. <el-tooltip
  8956. effect="dark"
  8957. :content="s.student"
  8958. placement="top"
  8959. >
  8960. <span>{{ s.student }}</span>
  8961. </el-tooltip>
  8962. </div>
  8963. </div>
  8964. </div>
  8965. <div
  8966. v-if="
  8967. tType &&
  8968. tType == 2 &&
  8969. !sIsOpen &&
  8970. tool.tool.indexOf(40) != -1
  8971. "
  8972. class="worksBox"
  8973. >
  8974. <div
  8975. class="zuoyeYulan"
  8976. v-if="workStudent[toolIndex].length > 0"
  8977. >
  8978. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  8979. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">{{ lang.ssMyEvaluation }}</el-button> -->
  8980. </div>
  8981. <div
  8982. class="worksDetailBox"
  8983. v-if="workStudent[toolIndex].length > 0"
  8984. >
  8985. <div
  8986. class="works"
  8987. style="
  8988. width: 200px;
  8989. height: 140px;
  8990. margin: 10px 10px 10px 0;
  8991. "
  8992. v-for="(w, wIndex) in workStudent[toolIndex]"
  8993. :key="wIndex"
  8994. >
  8995. <div class="workImg">
  8996. <img
  8997. src="../../assets/icon/works/noImg.png"
  8998. @click="openPj(w.works, toolIndex)"
  8999. alt
  9000. />
  9001. <img
  9002. class="deleteImg"
  9003. src="../../assets/deleteworks.png"
  9004. v-if="
  9005. w.userid == userid || tType == 1 || tType == 4
  9006. "
  9007. @click.stop="deleteWorks(w.wid)"
  9008. alt
  9009. />
  9010. </div>
  9011. <div class="worksName">
  9012. <div>{{ w.sName }}</div>
  9013. </div>
  9014. </div>
  9015. </div>
  9016. </div>
  9017. <div
  9018. v-if="
  9019. tType &&
  9020. ((tType == 2 && sIsOpen == true) ||
  9021. tType == 1 ||
  9022. tType == 4) &&
  9023. tool.tool.indexOf(41) != -1
  9024. "
  9025. >
  9026. <AnswerData2
  9027. v-if="
  9028. worksStudent.length &&
  9029. worksStudent[toolIndex].length > 0
  9030. "
  9031. :problemJson="tool.selectJson.answer"
  9032. :people="worksStudent[toolIndex]"
  9033. ></AnswerData2>
  9034. </div>
  9035. <div
  9036. v-if="
  9037. tType &&
  9038. ((tType == 2 && sIsOpen == true) ||
  9039. tType == 1 ||
  9040. tType == 4) &&
  9041. tool.tool.indexOf(41) != -1
  9042. "
  9043. class="worksBox"
  9044. >
  9045. <div
  9046. class="zuoyeYulan"
  9047. v-if="
  9048. worksStudent.length &&
  9049. worksStudent[toolIndex].length > 0
  9050. "
  9051. >
  9052. <div class="worksTop">
  9053. <div>{{ lang.ssHomeworkPreview }}</div>
  9054. <div
  9055. class="corOpen"
  9056. @click="contract(toolIndex)"
  9057. v-if="
  9058. isCloseList[toolIndex].isCloseBoolean &&
  9059. isCloseList[toolIndex].isClose == 0
  9060. "
  9061. >
  9062. {{ lang.ssFold }}
  9063. </div>
  9064. <div
  9065. class="corOpen"
  9066. @click="contract(toolIndex)"
  9067. v-if="isCloseList[toolIndex].isClose == 1"
  9068. >
  9069. {{ lang.ssExpand }}
  9070. </div>
  9071. </div>
  9072. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9073. </div>
  9074. <div
  9075. :id="'tool-' + toolIndex"
  9076. :style="{
  9077. height:
  9078. isCloseList[toolIndex].isClose == 1
  9079. ? retrnToolHeight('tool-' + toolIndex)
  9080. : 'auto',
  9081. overflow:
  9082. isCloseList[toolIndex].isClose == 1
  9083. ? 'hidden'
  9084. : 'unset'
  9085. }"
  9086. class="worksDetailBox"
  9087. v-if="
  9088. worksStudent.length &&
  9089. worksStudent[toolIndex].length > 0
  9090. "
  9091. >
  9092. <div
  9093. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9094. :key="wIndex"
  9095. class="isWorksName2"
  9096. @click="openXz(w, toolIndex)"
  9097. >
  9098. {{ w.sName }}
  9099. <img
  9100. class="deleteImg deleteImg2"
  9101. src="../../assets/deleteworks.png"
  9102. v-if="w.userid == userid || tType == 1 || tType == 4"
  9103. @click.stop="deleteWorks(w.wid)"
  9104. alt
  9105. />
  9106. </div>
  9107. <!-- <div
  9108. class="works"
  9109. style="
  9110. width: 200px;
  9111. height: 140px;
  9112. margin: 10px 10px 10px 0;
  9113. border-radius: 15px;
  9114. box-shadow: 0 0 6px 1px #dfdada;
  9115. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  9116. :class="w.type == 5 ? 'isTypeOne' : ''">
  9117. <div class="workImg">
  9118. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  9119. </div>
  9120. <div class="worksName">
  9121. <div>{{ w.sName }}</div>
  9122. </div>
  9123. </div> -->
  9124. </div>
  9125. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9126. {{ lang.ssNotSubmitted }}
  9127. </div>
  9128. <div
  9129. class="noWorksS"
  9130. v-if="noWorksS && noWorksS[toolIndex].length"
  9131. >
  9132. <div
  9133. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9134. :key="sIndex"
  9135. class="noWorksName"
  9136. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  9137. >
  9138. <el-tooltip
  9139. effect="dark"
  9140. :content="s.student"
  9141. placement="top"
  9142. >
  9143. <span>{{ s.student }}</span>
  9144. </el-tooltip>
  9145. </div>
  9146. </div>
  9147. </div>
  9148. <div
  9149. v-if="
  9150. tType &&
  9151. tType == 2 &&
  9152. !sIsOpen &&
  9153. tool.tool.indexOf(41) != -1
  9154. "
  9155. class="worksBox"
  9156. >
  9157. <div
  9158. class="zuoyeYulan"
  9159. v-if="workStudent[toolIndex].length > 0"
  9160. >
  9161. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  9162. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">{{ lang.ssMyEvaluation }}</el-button> -->
  9163. </div>
  9164. <div
  9165. class="worksDetailBox"
  9166. v-if="workStudent[toolIndex].length > 0"
  9167. >
  9168. <div
  9169. class="works"
  9170. style="
  9171. width: 200px;
  9172. height: 140px;
  9173. margin: 10px 10px 10px 0;
  9174. "
  9175. v-for="(w, wIndex) in workStudent[toolIndex]"
  9176. :key="wIndex"
  9177. >
  9178. <div class="workImg">
  9179. <img
  9180. src="../../assets/icon/works/noImg.png"
  9181. @click="openXz(w, toolIndex)"
  9182. alt
  9183. />
  9184. <img
  9185. class="deleteImg"
  9186. src="../../assets/deleteworks.png"
  9187. v-if="
  9188. w.userid == userid || tType == 1 || tType == 4
  9189. "
  9190. @click.stop="deleteWorks(w.wid)"
  9191. alt
  9192. />
  9193. </div>
  9194. <div class="worksName">
  9195. <div>{{ w.sName }}</div>
  9196. </div>
  9197. </div>
  9198. </div>
  9199. </div>
  9200. <div v-if="false" class="xuan_right_box">
  9201. <div
  9202. class="tool_right_box"
  9203. v-for="(item, index) in tool.sentenceList"
  9204. :key="index"
  9205. >
  9206. <div>
  9207. <span
  9208. style="word-break: break-all; white-space: normal"
  9209. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  9210. >
  9211. </div>
  9212. <div class="right_box_xuan">
  9213. <span>{{ lang.ssCorrectRate }}</span>
  9214. <span>{{
  9215. (checkJson[toolIndex][index].right
  9216. ? checkJson[toolIndex][index].right
  9217. : 0) + "%"
  9218. }}</span>
  9219. </div>
  9220. <div class="right_box_xuan">
  9221. <span>{{ lang.ssRightPerson }}</span>
  9222. <span>{{
  9223. checkJson[toolIndex][index].rightPerson.length
  9224. }}</span>
  9225. </div>
  9226. </div>
  9227. </div>
  9228. <div
  9229. v-if="
  9230. tType &&
  9231. ((tType == 2 && sIsOpen == true) ||
  9232. tType == 1 ||
  9233. tType == 4) &&
  9234. tool.tool.indexOf(47) != -1
  9235. "
  9236. >
  9237. <!-- <AnswerData
  9238. v-if="
  9239. checkJson[toolIndex].length &&
  9240. (tool.sentenceList || tool.sentenceList.length > 0)
  9241. "
  9242. :people="checkJson[toolIndex]"
  9243. ></AnswerData> -->
  9244. <sortToolWorkShow v-if="
  9245. worksStudent[toolIndex].length
  9246. "
  9247. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  9248. </div>
  9249. <div
  9250. v-if="
  9251. tType &&
  9252. tType == 2 &&
  9253. !sIsOpen &&
  9254. tool.tool.indexOf(47) != -1
  9255. "
  9256. class="worksBox"
  9257. >
  9258. <div
  9259. class="zuoyeYulan"
  9260. v-if="workStudent[toolIndex].length > 0"
  9261. >
  9262. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  9263. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">{{ lang.ssMyEvaluation }}</el-button> -->
  9264. </div>
  9265. <div
  9266. class="worksDetailBox"
  9267. v-if="workStudent[toolIndex].length > 0"
  9268. >
  9269. <div
  9270. class="works"
  9271. style="
  9272. width: 200px;
  9273. height: 140px;
  9274. margin: 10px 10px 10px 0;
  9275. "
  9276. v-for="(w, wIndex) in workStudent[toolIndex]"
  9277. :key="wIndex"
  9278. >
  9279. <!-- @click="openXz(w, toolIndex)" -->
  9280. <div class="workImg" @click="openSen(w, toolIndex)">
  9281. <img src="../../assets/icon/works/noImg.png" alt />
  9282. <img
  9283. class="deleteImg"
  9284. src="../../assets/deleteworks.png"
  9285. v-if="
  9286. w.userid == userid || tType == 1 || tType == 4
  9287. "
  9288. @click.stop="deleteWorks(w.wid)"
  9289. alt
  9290. />
  9291. </div>
  9292. <div class="worksName">
  9293. <div>
  9294. {{ w.sName }}
  9295. </div>
  9296. </div>
  9297. </div>
  9298. </div>
  9299. </div>
  9300. <div
  9301. v-if="
  9302. tType &&
  9303. ((tType == 2 && sIsOpen == true) ||
  9304. tType == 1 ||
  9305. tType == 4) &&
  9306. tool.tool.indexOf(47) != -1
  9307. "
  9308. class="worksBox"
  9309. >
  9310. <div
  9311. class="zuoyeYulan"
  9312. v-if="
  9313. worksStudent.length &&
  9314. worksStudent[toolIndex].length > 0
  9315. "
  9316. >
  9317. <div class="worksTop">
  9318. <div>{{ lang.ssHomeworkPreview }}</div>
  9319. <div
  9320. class="corOpen"
  9321. @click="contract(toolIndex)"
  9322. v-if="
  9323. isCloseList[toolIndex].isCloseBoolean &&
  9324. isCloseList[toolIndex].isClose == 0
  9325. "
  9326. >
  9327. {{ lang.ssFold }}
  9328. </div>
  9329. <div
  9330. class="corOpen"
  9331. @click="contract(toolIndex)"
  9332. v-if="isCloseList[toolIndex].isClose == 1"
  9333. >
  9334. {{ lang.ssExpand }}
  9335. </div>
  9336. </div>
  9337. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9338. </div>
  9339. <div
  9340. :id="'tool-' + toolIndex"
  9341. :style="{
  9342. height:
  9343. isCloseList[toolIndex].isClose == 1
  9344. ? retrnToolHeight('tool-' + toolIndex)
  9345. : 'auto',
  9346. overflow:
  9347. isCloseList[toolIndex].isClose == 1
  9348. ? 'hidden'
  9349. : 'unset'
  9350. }"
  9351. class="worksDetailBox"
  9352. v-if="
  9353. worksStudent.length &&
  9354. worksStudent[toolIndex].length > 0
  9355. "
  9356. >
  9357. <!-- @click="openXz(w, toolIndex)" -->
  9358. <div
  9359. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9360. :key="wIndex"
  9361. class="isWorksName2"
  9362. @click="openSen(w, toolIndex)"
  9363. >
  9364. {{ w.sName }}
  9365. <img
  9366. class="deleteImg deleteImg2"
  9367. src="../../assets/deleteworks.png"
  9368. v-if="w.userid == userid || tType == 1 || tType == 4"
  9369. @click.stop="deleteWorks(w.wid)"
  9370. alt
  9371. />
  9372. </div>
  9373. </div>
  9374. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9375. {{ lang.ssNotSubmitted }}
  9376. </div>
  9377. <div
  9378. class="noWorksS"
  9379. v-if="noWorksS && noWorksS[toolIndex].length"
  9380. >
  9381. <div
  9382. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9383. :key="sIndex"
  9384. class="noWorksName"
  9385. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  9386. >
  9387. <el-tooltip
  9388. effect="dark"
  9389. :content="s.student"
  9390. placement="top"
  9391. >
  9392. <span>{{ s.student }}</span>
  9393. </el-tooltip>
  9394. </div>
  9395. </div>
  9396. </div>
  9397. <div
  9398. v-if="
  9399. tType &&
  9400. ((tType == 2 && sIsOpen == true) ||
  9401. tType == 1 ||
  9402. tType == 4) &&
  9403. tool.tool.indexOf(48) != -1
  9404. "
  9405. class="worksBox"
  9406. >
  9407. <div
  9408. class="zuoyeYulan"
  9409. style="display: flex;justify-content: space-between;align-items: center;"
  9410. v-if="
  9411. worksStudent.length &&
  9412. worksStudent[toolIndex].length > 0
  9413. "
  9414. >
  9415. <div class="worksTop">
  9416. <div>{{ lang.ssHomeworkPreview }}</div>
  9417. <div
  9418. class="corOpen"
  9419. @click="contract(toolIndex)"
  9420. v-if="
  9421. isCloseList[toolIndex].isCloseBoolean &&
  9422. isCloseList[toolIndex].isClose == 0
  9423. "
  9424. >
  9425. {{ lang.ssFold }}
  9426. </div>
  9427. <div
  9428. class="corOpen"
  9429. @click="contract(toolIndex)"
  9430. v-if="isCloseList[toolIndex].isClose == 1"
  9431. >
  9432. {{ lang.ssExpand }}
  9433. </div>
  9434. </div>
  9435. <div
  9436. style="display: flex;"
  9437. v-if="
  9438. (courseDetail.userid == userid ||
  9439. (courseDetail.course_teacher &&
  9440. courseDetail.course_teacher.indexOf(userid) !=
  9441. -1)) &&
  9442. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9443. taskCount
  9444. ].eList &&
  9445. chapInfoList[courseType].chapterInfo[0].taskJson[
  9446. taskCount
  9447. ].eList.length) ||
  9448. (tool.eList && tool.eList.length)) &&
  9449. courseDetail.state == 6
  9450. "
  9451. >
  9452. <div
  9453. style="margin-right:10px"
  9454. class="ScoreBtn"
  9455. @click="
  9456. resetLoopEva(
  9457. worksStudent[toolIndex],
  9458. chapInfoList[courseType].chapterInfo[0].taskJson[
  9459. taskCount
  9460. ].eList,
  9461. courseType,
  9462. taskCount,
  9463. toolIndex,
  9464. tool.toolDetail,
  9465. worksStudent
  9466. )
  9467. "
  9468. >
  9469. {{ lang.ssReset }}
  9470. </div>
  9471. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9472. <img
  9473. src="../../assets/icon/newIcons/rootImg.png"
  9474. alt=""
  9475. />
  9476. {{ lang.ssAiScore }}
  9477. </div>
  9478. <div
  9479. class="ScoreBtn"
  9480. v-else-if="!loopLoading[toolIndex].loading"
  9481. @click="
  9482. loopEva(
  9483. worksStudent[toolIndex],
  9484. chapInfoList[courseType].chapterInfo[0].taskJson[
  9485. taskCount
  9486. ].eList,
  9487. courseType,
  9488. taskCount,
  9489. toolIndex,
  9490. tool.toolDetail,
  9491. chapInfoList[courseType].chapterInfo[0].taskJson[
  9492. taskCount
  9493. ].taskDetail,
  9494. tool
  9495. )
  9496. "
  9497. >
  9498. <img
  9499. src="../../assets/icon/newIcons/rootImg.png"
  9500. alt=""
  9501. />
  9502. {{ lang.ssAiScore }}
  9503. </div>
  9504. <div class="ScoreBtn" v-else>
  9505. <img
  9506. src="../../assets/icon/newIcons/rootImg.png"
  9507. alt=""
  9508. />
  9509. {{ lang.ssScoring }}
  9510. </div>
  9511. </div>
  9512. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9513. </div>
  9514. <div
  9515. :id="'tool-' + toolIndex"
  9516. :style="{
  9517. height:
  9518. isCloseList[toolIndex].isClose == 1
  9519. ? retrnToolHeight('tool-' + toolIndex)
  9520. : 'auto',
  9521. overflow:
  9522. isCloseList[toolIndex].isClose == 1
  9523. ? 'hidden'
  9524. : 'unset'
  9525. }"
  9526. class="worksDetailBox"
  9527. v-if="
  9528. worksStudent.length &&
  9529. worksStudent[toolIndex].length > 0
  9530. "
  9531. >
  9532. <div
  9533. class="works"
  9534. style="
  9535. width: 200px;
  9536. height: 140px;
  9537. margin: 10px 10px 10px 0;
  9538. border-radius: 15px;
  9539. box-shadow: 0 0 6px 1px #dfdada;
  9540. "
  9541. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9542. :key="wIndex"
  9543. :class="w.type == 1 ? 'isTypeOne' : ''"
  9544. >
  9545. <div class="workImg">
  9546. <img :src="word" @click="openTable(w)" alt />
  9547. <!-- @click="openFile(w.works)" -->
  9548. <div
  9549. class="answerScore"
  9550. v-if="w.score"
  9551. @click.stop="openScore(w)"
  9552. :class="{
  9553. rightW:
  9554. w.userid == userid ||
  9555. tType == 1 ||
  9556. tType == 4 ||
  9557. w.ateacher == userid
  9558. }"
  9559. >
  9560. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  9561. </div>
  9562. <div
  9563. class="answerScore"
  9564. @click.stop="openScore(w)"
  9565. v-else-if="
  9566. courseDetail.userid == userid &&
  9567. courseDetail.state != 6 &&
  9568. chapInfoList[courseType].chapterInfo[0]
  9569. .taskJson[taskCount].eList &&
  9570. chapInfoList[courseType].chapterInfo[0]
  9571. .taskJson[taskCount].eList.length
  9572. "
  9573. :class="{
  9574. rightW:
  9575. w.userid == userid ||
  9576. tType == 1 ||
  9577. tType == 4 ||
  9578. w.ateacher == userid
  9579. }"
  9580. >
  9581. {{ lang.ssMarkScore }}
  9582. </div>
  9583. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  9584. <div
  9585. v-else-if="
  9586. (courseDetail.userid == userid ||
  9587. (courseDetail.course_teacher &&
  9588. courseDetail.course_teacher.indexOf(userid) !=
  9589. -1) ||
  9590. (w.userid == userid && sIsOpen)) &&
  9591. courseDetail.state == 6 &&
  9592. ((chapInfoList[courseType].chapterInfo[0]
  9593. .taskJson[taskCount].eList &&
  9594. chapInfoList[courseType].chapterInfo[0]
  9595. .taskJson[taskCount].eList.length) ||
  9596. (tool.eList && tool.eList.length))
  9597. "
  9598. >
  9599. <el-popover
  9600. placement="top"
  9601. width="318"
  9602. :disabled="AIloading[toolIndex][wIndex].loading"
  9603. trigger="hover"
  9604. >
  9605. <markScore
  9606. :loading="AIloading[toolIndex][wIndex].loading"
  9607. :markScoreVisible="markScoreVisible"
  9608. :ref="`markSco${toolIndex}${wIndex}`"
  9609. @updateLoading="updateLoading"
  9610. @updateDocSco="updateDocSco"
  9611. @refreshOther="refreshOther"
  9612. @markScoreDig="markScoreDig"
  9613. :tool="tool"
  9614. :wIndex="wIndex"
  9615. :scoCon="w"
  9616. :toolIndex="toolIndex"
  9617. :key="refreshKey"
  9618. :stage="courseType"
  9619. :task="taskCount"
  9620. :scoTit="
  9621. chapInfoList[courseType].chapterInfo[0]
  9622. .taskJson[taskCount].eList
  9623. "
  9624. >
  9625. </markScore>
  9626. <div
  9627. class="answerScore"
  9628. @click="
  9629. markScoreDig2(
  9630. w.sName,
  9631. worksStudent,
  9632. w.userid,
  9633. toolIndex,
  9634. chapInfoList[courseType].chapterInfo[0]
  9635. .taskJson[taskCount].eList,
  9636. AIloading[toolIndex][wIndex].loading,
  9637. tool
  9638. )
  9639. "
  9640. slot="reference"
  9641. :class="{
  9642. rightW:
  9643. w.userid == userid ||
  9644. tType == 1 ||
  9645. tType == 4 ||
  9646. w.ateacher == userid
  9647. }"
  9648. >
  9649. <span v-if="AIloading[toolIndex][wIndex].sco">
  9650. {{
  9651. AIloading[toolIndex][wIndex].loading
  9652. ? lang.ssScoringIn
  9653. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  9654. }}
  9655. </span>
  9656. <span v-else>
  9657. {{
  9658. AIloading[toolIndex][wIndex].loading
  9659. ? lang.ssScoringIn
  9660. : lang.ssMarkScore
  9661. }}
  9662. </span>
  9663. </div>
  9664. </el-popover>
  9665. </div>
  9666. <img
  9667. class="deleteImg"
  9668. src="../../assets/deleteworks.png"
  9669. v-if="
  9670. w.userid == userid || tType == 1 || tType == 4
  9671. "
  9672. @click.stop="deleteWorks(w.wid)"
  9673. alt
  9674. />
  9675. </div>
  9676. <div class="comment" style="min-width: 200px">
  9677. <div class="worksName">
  9678. <div>{{ w.sName }}</div>
  9679. </div>
  9680. <div class="commentList">
  9681. <div class="commentList">
  9682. <div
  9683. class="commentImg"
  9684. @click="
  9685. isLikes(
  9686. w.wid,
  9687. userid,
  9688. 1,
  9689. null,
  9690. w.isLikes,
  9691. w.sName
  9692. )
  9693. "
  9694. >
  9695. <img
  9696. :src="w.isLikes == true ? likes : noLikes"
  9697. alt=""
  9698. />
  9699. </div>
  9700. <div>{{ w.likesCount }}</div>
  9701. </div>
  9702. <div class="commentList" style="margin-right: 15px">
  9703. <div
  9704. class="commentImg"
  9705. @click="commentOther(w, toolIndex, wIndex)"
  9706. >
  9707. <img
  9708. src="../../assets/icon/comment/comment.png"
  9709. alt=""
  9710. />
  9711. </div>
  9712. <div>{{ w.commentCount }}</div>
  9713. </div>
  9714. </div>
  9715. </div>
  9716. </div>
  9717. </div>
  9718. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9719. {{ lang.ssNotSubmitted }}
  9720. </div>
  9721. <div
  9722. class="noWorksS"
  9723. v-if="noWorksS && noWorksS[toolIndex].length"
  9724. >
  9725. <div
  9726. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9727. :key="sIndex"
  9728. class="noWorksName"
  9729. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  9730. >
  9731. <el-tooltip
  9732. effect="dark"
  9733. :content="s.student"
  9734. placement="top"
  9735. >
  9736. <span>{{ s.student }}</span>
  9737. </el-tooltip>
  9738. </div>
  9739. </div>
  9740. </div>
  9741. <div
  9742. v-if="
  9743. tType &&
  9744. tType == 2 &&
  9745. !sIsOpen &&
  9746. tool.tool.indexOf(48) != -1
  9747. "
  9748. class="worksBox"
  9749. >
  9750. <div
  9751. class="zuoyeYulan"
  9752. v-if="workStudent[toolIndex].length > 0"
  9753. >
  9754. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  9755. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">{{ lang.ssMyEvaluation }}</el-button> -->
  9756. </div>
  9757. <div
  9758. class="worksDetailBox"
  9759. v-if="workStudent[toolIndex].length > 0"
  9760. >
  9761. <div
  9762. class="works"
  9763. style="
  9764. width: 200px;
  9765. height: 140px;
  9766. margin: 10px 10px 10px 0;
  9767. box-shadow: 0 0 6px 1px #dfdada;
  9768. "
  9769. v-for="(w, wIndex) in workStudent[toolIndex]"
  9770. :key="wIndex"
  9771. >
  9772. <div class="workImg">
  9773. <img :src="word" @click="openTable(w)" alt />
  9774. <div
  9775. class="answerScore"
  9776. v-if="w.score"
  9777. @click.stop="openScore(w)"
  9778. :class="{
  9779. rightW:
  9780. w.userid == userid || tType == 1 || tType == 4
  9781. }"
  9782. >
  9783. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  9784. </div>
  9785. <div
  9786. class="answerScore"
  9787. @click.stop="openScore(w)"
  9788. v-else-if="courseDetail.userid == userid"
  9789. :class="{
  9790. rightW:
  9791. w.userid == userid || tType == 1 || tType == 4
  9792. }"
  9793. >
  9794. {{ lang.ssMarkScore }}
  9795. </div>
  9796. <div
  9797. class="stuLookScore"
  9798. v-if="
  9799. w.userid == userid ||
  9800. (tType == 1 &&
  9801. courseDetail.state == 6 &&
  9802. ((chapInfoList[courseType].chapterInfo[0]
  9803. .taskJson[taskCount].eList &&
  9804. chapInfoList[courseType].chapterInfo[0]
  9805. .taskJson[taskCount].eList.length) ||
  9806. (tool.eList && tool.eList.length)))
  9807. "
  9808. >
  9809. <el-popover
  9810. placement="top"
  9811. width="318"
  9812. trigger="hover"
  9813. >
  9814. <markScore
  9815. :loading="AIloading[toolIndex][wIndex].loading"
  9816. :markScoreVisible="markScoreVisible"
  9817. :ref="`markSco${toolIndex}${wIndex}`"
  9818. @updateLoading="updateLoading"
  9819. @updateDocSco="updateDocSco"
  9820. @refreshOther="refreshOther"
  9821. @markScoreDig="markScoreDig"
  9822. :tool="tool"
  9823. :wIndex="wIndex"
  9824. :scoCon="w"
  9825. :toolIndex="toolIndex"
  9826. :key="refreshKey"
  9827. :stage="courseType"
  9828. :task="taskCount"
  9829. :scoTit="
  9830. chapInfoList[courseType].chapterInfo[0]
  9831. .taskJson[taskCount].eList
  9832. "
  9833. >
  9834. </markScore>
  9835. <div
  9836. @click="
  9837. markScoreDig2(
  9838. w.sName,
  9839. worksStudent,
  9840. w.userid,
  9841. toolIndex,
  9842. chapInfoList[courseType].chapterInfo[0]
  9843. .taskJson[taskCount].eList,
  9844. AIloading[toolIndex][wIndex].loading,
  9845. tool
  9846. )
  9847. "
  9848. slot="reference"
  9849. >
  9850. <span v-if="AIloading[toolIndex][wIndex].sco">
  9851. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  9852. </span>
  9853. <span v-else>
  9854. {{ lang.ssMarkScore }}
  9855. </span>
  9856. </div>
  9857. </el-popover>
  9858. </div>
  9859. <img
  9860. class="deleteImg"
  9861. src="../../assets/deleteworks.png"
  9862. v-if="
  9863. w.userid == userid || tType == 1 || tType == 4
  9864. "
  9865. @click.stop="deleteWorks(w.wid)"
  9866. alt
  9867. />
  9868. </div>
  9869. <div class="worksName">
  9870. <div>{{ w.sName }}</div>
  9871. </div>
  9872. </div>
  9873. </div>
  9874. </div>
  9875. <div
  9876. v-if="
  9877. tType &&
  9878. ((tType == 2 && sIsOpen == true) ||
  9879. tType == 1 ||
  9880. tType == 4) &&
  9881. tool.tool.indexOf(52) != -1
  9882. "
  9883. class="worksBox"
  9884. >
  9885. <div
  9886. class="zuoyeYulan"
  9887. style="display: flex;justify-content: space-between;align-items: center;"
  9888. v-if="
  9889. worksStudent.length &&
  9890. worksStudent[toolIndex].length > 0
  9891. "
  9892. >
  9893. <div class="worksTop">
  9894. <div>{{ lang.ssHomeworkPreview }}</div>
  9895. <div
  9896. class="corOpen"
  9897. @click="contract(toolIndex)"
  9898. v-if="
  9899. isCloseList[toolIndex].isCloseBoolean &&
  9900. isCloseList[toolIndex].isClose == 0
  9901. "
  9902. >
  9903. {{ lang.ssFold }}
  9904. </div>
  9905. <div
  9906. class="corOpen"
  9907. @click="contract(toolIndex)"
  9908. v-if="isCloseList[toolIndex].isClose == 1"
  9909. >
  9910. {{ lang.ssExpand }}
  9911. </div>
  9912. </div>
  9913. <div
  9914. style="display: flex;"
  9915. v-if="
  9916. (courseDetail.userid == userid ||
  9917. (courseDetail.course_teacher &&
  9918. courseDetail.course_teacher.indexOf(userid) !=
  9919. -1)) &&
  9920. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9921. taskCount
  9922. ].eList &&
  9923. chapInfoList[courseType].chapterInfo[0].taskJson[
  9924. taskCount
  9925. ].eList.length) ||
  9926. (tool.eList && tool.eList.length)) &&
  9927. courseDetail.state == 6
  9928. "
  9929. >
  9930. <!-- <div style="display: flex;" v-if="courseDetail.userid == userid && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length)) && courseDetail.state == 6"> -->
  9931. <div
  9932. @click="
  9933. resetLoopEva(
  9934. worksStudent[toolIndex],
  9935. chapInfoList[courseType].chapterInfo[0].taskJson[
  9936. taskCount
  9937. ].eList,
  9938. courseType,
  9939. taskCount,
  9940. toolIndex,
  9941. tool.toolDetail,
  9942. tool
  9943. )
  9944. "
  9945. style="margin-right:10px"
  9946. class="ScoreBtn"
  9947. >
  9948. {{ lang.ssReset }}
  9949. </div>
  9950. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9951. <img
  9952. src="../../assets/icon/newIcons/rootImg.png"
  9953. alt=""
  9954. />
  9955. {{ lang.ssAiScore }}
  9956. </div>
  9957. <div
  9958. class="ScoreBtn"
  9959. v-else-if="!loopLoading[toolIndex].loading"
  9960. @click="
  9961. loopEva(
  9962. worksStudent[toolIndex],
  9963. chapInfoList[courseType].chapterInfo[0].taskJson[
  9964. taskCount
  9965. ].eList,
  9966. courseType,
  9967. taskCount,
  9968. toolIndex,
  9969. tool.toolDetail,
  9970. chapInfoList[courseType].chapterInfo[0].taskJson[
  9971. taskCount
  9972. ].taskDetail,
  9973. tool
  9974. )
  9975. "
  9976. >
  9977. <img
  9978. src="../../assets/icon/newIcons/rootImg.png"
  9979. alt=""
  9980. />
  9981. {{ lang.ssAiScore }}
  9982. </div>
  9983. <div class="ScoreBtn" v-else>
  9984. <img
  9985. src="../../assets/icon/newIcons/rootImg.png"
  9986. alt=""
  9987. />
  9988. {{ lang.ssScoring }}
  9989. </div>
  9990. </div>
  9991. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">{{ lang.ssMyEvaluation }}</el-button> -->
  9992. </div>
  9993. <div
  9994. :id="'tool-' + toolIndex"
  9995. :style="{
  9996. height:
  9997. isCloseList[toolIndex].isClose == 1
  9998. ? retrnToolHeight('tool-' + toolIndex)
  9999. : 'auto',
  10000. overflow:
  10001. isCloseList[toolIndex].isClose == 1
  10002. ? 'hidden'
  10003. : 'unset'
  10004. }"
  10005. class="worksDetailBox"
  10006. v-if="
  10007. worksStudent.length &&
  10008. worksStudent[toolIndex].length > 0
  10009. "
  10010. >
  10011. <div
  10012. class="works"
  10013. style="
  10014. width: 200px;
  10015. height: 140px;
  10016. margin: 10px 10px 10px 0;
  10017. border-radius: 15px;
  10018. box-shadow: 0 0 6px 1px #dfdada;
  10019. "
  10020. v-for="(w, wIndex) in worksStudent[toolIndex]"
  10021. :key="wIndex"
  10022. :class="w.type == 1 ? 'isTypeOne' : ''"
  10023. >
  10024. <div class="workImg">
  10025. <img :src="word" @click="openWord(w)" alt />
  10026. <!-- @click="openFile(w.works)" -->
  10027. <div
  10028. class="answerScore"
  10029. v-if="w.score"
  10030. @click.stop="openScore(w)"
  10031. :class="{
  10032. rightW:
  10033. w.userid == userid ||
  10034. tType == 1 ||
  10035. tType == 4 ||
  10036. w.ateacher == userid
  10037. }"
  10038. >
  10039. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  10040. </div>
  10041. <div
  10042. class="answerScore"
  10043. @click.stop="openScore(w)"
  10044. v-else-if="
  10045. courseDetail.userid == userid &&
  10046. courseDetail.state != 6 &&
  10047. chapInfoList[courseType].chapterInfo[0]
  10048. .taskJson[taskCount].eList &&
  10049. chapInfoList[courseType].chapterInfo[0]
  10050. .taskJson[taskCount].eList.length
  10051. "
  10052. :class="{
  10053. rightW:
  10054. w.userid == userid ||
  10055. tType == 1 ||
  10056. tType == 4 ||
  10057. w.ateacher == userid
  10058. }"
  10059. >
  10060. {{ lang.ssMarkScore }}
  10061. </div>
  10062. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  10063. <div
  10064. v-else-if="
  10065. (courseDetail.userid == userid ||
  10066. (courseDetail.course_teacher &&
  10067. courseDetail.course_teacher.indexOf(userid) !=
  10068. -1) ||
  10069. (w.userid == userid && sIsOpen)) &&
  10070. courseDetail.state == 6 &&
  10071. ((chapInfoList[courseType].chapterInfo[0]
  10072. .taskJson[taskCount].eList &&
  10073. chapInfoList[courseType].chapterInfo[0]
  10074. .taskJson[taskCount].eList.length) ||
  10075. (tool.eList && tool.eList.length))
  10076. "
  10077. >
  10078. <!-- <div
  10079. class="answerScore"
  10080. @click="markScoreDig(w.userid,toolIndex)"
  10081. :class="{
  10082. rightW:
  10083. w.userid == userid ||
  10084. tType == 1 ||
  10085. tType == 4 ||
  10086. w.ateacher == userid,
  10087. }"
  10088. >
  10089. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco : lang.ssMarkScore }}
  10090. </div> -->
  10091. <!-- @show="handleShow(toolIndex,wIndex)"
  10092. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  10093. <el-popover
  10094. placement="top"
  10095. width="318"
  10096. :disabled="AIloading[toolIndex][wIndex].loading"
  10097. trigger="hover"
  10098. >
  10099. <markScore
  10100. :loading="AIloading[toolIndex][wIndex].loading"
  10101. :markScoreVisible="markScoreVisible"
  10102. :ref="`markSco${toolIndex}${wIndex}`"
  10103. @updateLoading="updateLoading"
  10104. @updateDocSco="updateDocSco"
  10105. @refreshOther="refreshOther"
  10106. @markScoreDig="markScoreDig"
  10107. :tool="tool"
  10108. :wIndex="wIndex"
  10109. :scoCon="w"
  10110. :toolIndex="toolIndex"
  10111. :key="refreshKey"
  10112. :stage="courseType"
  10113. :task="taskCount"
  10114. :scoTit="
  10115. chapInfoList[courseType].chapterInfo[0]
  10116. .taskJson[taskCount].eList
  10117. "
  10118. >
  10119. </markScore>
  10120. <div
  10121. class="answerScore"
  10122. @click="
  10123. markScoreDig2(
  10124. w.sName,
  10125. worksStudent,
  10126. w.userid,
  10127. toolIndex,
  10128. chapInfoList[courseType].chapterInfo[0]
  10129. .taskJson[taskCount].eList,
  10130. AIloading[toolIndex][wIndex].loading,
  10131. tool
  10132. )
  10133. "
  10134. slot="reference"
  10135. :class="{
  10136. rightW:
  10137. w.userid == userid ||
  10138. tType == 1 ||
  10139. tType == 4 ||
  10140. w.ateacher == userid
  10141. }"
  10142. >
  10143. <span v-if="AIloading[toolIndex][wIndex].sco">
  10144. {{
  10145. AIloading[toolIndex][wIndex].loading
  10146. ? lang.ssScoringIn
  10147. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  10148. }}
  10149. </span>
  10150. <span v-else>
  10151. {{
  10152. AIloading[toolIndex][wIndex].loading
  10153. ? lang.ssScoringIn
  10154. : lang.ssMarkScore
  10155. }}
  10156. </span>
  10157. </div>
  10158. </el-popover>
  10159. </div>
  10160. <img
  10161. class="deleteImg"
  10162. src="../../assets/deleteworks.png"
  10163. v-if="
  10164. w.userid == userid || tType == 1 || tType == 4
  10165. "
  10166. @click.stop="deleteWorks(w.wid)"
  10167. alt
  10168. />
  10169. </div>
  10170. <div class="comment" style="min-width: 200px">
  10171. <div class="worksName">
  10172. <div>{{ w.sName }}</div>
  10173. </div>
  10174. <div class="commentList">
  10175. <div class="commentList">
  10176. <div
  10177. class="commentImg"
  10178. @click="
  10179. isLikes(
  10180. w.wid,
  10181. userid,
  10182. 1,
  10183. null,
  10184. w.isLikes,
  10185. w.sName
  10186. )
  10187. "
  10188. >
  10189. <img
  10190. :src="w.isLikes == true ? likes : noLikes"
  10191. alt=""
  10192. />
  10193. </div>
  10194. <div>{{ w.likesCount }}</div>
  10195. </div>
  10196. <div class="commentList" style="margin-right: 15px">
  10197. <div
  10198. class="commentImg"
  10199. @click="commentOther(w, toolIndex, wIndex)"
  10200. >
  10201. <img
  10202. src="../../assets/icon/comment/comment.png"
  10203. alt=""
  10204. />
  10205. </div>
  10206. <div>{{ w.commentCount }}</div>
  10207. </div>
  10208. </div>
  10209. </div>
  10210. </div>
  10211. </div>
  10212. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  10213. {{ lang.ssNotSubmitted }}
  10214. </div>
  10215. <div
  10216. class="noWorksS"
  10217. v-if="noWorksS && noWorksS[toolIndex].length"
  10218. >
  10219. <div
  10220. v-for="(s, sIndex) in noWorksS[toolIndex]"
  10221. :key="sIndex"
  10222. class="noWorksName"
  10223. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  10224. >
  10225. <el-tooltip
  10226. effect="dark"
  10227. :content="s.student"
  10228. placement="top"
  10229. >
  10230. <span>{{ s.student }}</span>
  10231. </el-tooltip>
  10232. </div>
  10233. </div>
  10234. </div>
  10235. <div
  10236. v-if="
  10237. tType &&
  10238. tType == 2 &&
  10239. !sIsOpen &&
  10240. tool.tool.indexOf(52) != -1
  10241. "
  10242. class="worksBox"
  10243. >
  10244. <div
  10245. class="zuoyeYulan"
  10246. v-if="workStudent[toolIndex].length > 0"
  10247. >
  10248. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  10249. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">{{ lang.ssMyEvaluation }}</el-button> -->
  10250. </div>
  10251. <div
  10252. class="worksDetailBox"
  10253. v-if="workStudent[toolIndex].length > 0"
  10254. >
  10255. <div
  10256. class="works"
  10257. style="
  10258. width: 200px;
  10259. height: 140px;
  10260. margin: 10px 10px 10px 0;
  10261. box-shadow: 0 0 6px 1px #dfdada;
  10262. "
  10263. v-for="(w, wIndex) in workStudent[toolIndex]"
  10264. :key="wIndex"
  10265. >
  10266. <div class="workImg">
  10267. <img :src="word" @click="openWord(w)" alt />
  10268. <div
  10269. class="answerScore"
  10270. v-if="w.score"
  10271. @click.stop="openScore(w)"
  10272. :class="{
  10273. rightW:
  10274. w.userid == userid || tType == 1 || tType == 4
  10275. }"
  10276. >
  10277. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  10278. </div>
  10279. <div
  10280. class="answerScore"
  10281. @click.stop="openScore(w)"
  10282. v-else-if="courseDetail.userid == userid"
  10283. :class="{
  10284. rightW:
  10285. w.userid == userid || tType == 1 || tType == 4
  10286. }"
  10287. >
  10288. {{ lang.ssMarkScore }}
  10289. </div>
  10290. <div
  10291. class="stuLookScore"
  10292. v-if="
  10293. w.userid == userid ||
  10294. (tType == 1 &&
  10295. courseDetail.state == 6 &&
  10296. ((chapInfoList[courseType].chapterInfo[0]
  10297. .taskJson[taskCount].eList &&
  10298. chapInfoList[courseType].chapterInfo[0]
  10299. .taskJson[taskCount].eList.length) ||
  10300. (tool.eList && tool.eList.length)))
  10301. "
  10302. >
  10303. <el-popover
  10304. placement="top"
  10305. width="318"
  10306. trigger="hover"
  10307. >
  10308. <markScore
  10309. :loading="AIloading[toolIndex][wIndex].loading"
  10310. :markScoreVisible="markScoreVisible"
  10311. :ref="`markSco${toolIndex}${wIndex}`"
  10312. @updateLoading="updateLoading"
  10313. @updateDocSco="updateDocSco"
  10314. @refreshOther="refreshOther"
  10315. @markScoreDig="markScoreDig"
  10316. :tool="tool"
  10317. :wIndex="wIndex"
  10318. :scoCon="w"
  10319. :toolIndex="toolIndex"
  10320. :key="refreshKey"
  10321. :stage="courseType"
  10322. :task="taskCount"
  10323. :scoTit="
  10324. chapInfoList[courseType].chapterInfo[0]
  10325. .taskJson[taskCount].eList
  10326. "
  10327. >
  10328. </markScore>
  10329. <div
  10330. @click="
  10331. markScoreDig2(
  10332. w.sName,
  10333. worksStudent,
  10334. w.userid,
  10335. toolIndex,
  10336. chapInfoList[courseType].chapterInfo[0]
  10337. .taskJson[taskCount].eList,
  10338. AIloading[toolIndex][wIndex].loading,
  10339. tool
  10340. )
  10341. "
  10342. slot="reference"
  10343. >
  10344. <span v-if="AIloading[toolIndex][wIndex].sco">
  10345. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  10346. </span>
  10347. <span v-else>
  10348. {{ lang.ssMarkScore }}
  10349. </span>
  10350. </div>
  10351. </el-popover>
  10352. </div>
  10353. <img
  10354. class="deleteImg"
  10355. src="../../assets/deleteworks.png"
  10356. v-if="
  10357. w.userid == userid || tType == 1 || tType == 4
  10358. "
  10359. @click.stop="deleteWorks(w.wid)"
  10360. alt
  10361. />
  10362. </div>
  10363. <div class="worksName">
  10364. <div>{{ w.sName }}</div>
  10365. </div>
  10366. </div>
  10367. </div>
  10368. </div>
  10369. <div
  10370. v-if="tool.tool.indexOf(49) != -1"
  10371. class="xuan_right_box"
  10372. style="margin: 0 15px 0 25px; width: 93%"
  10373. >
  10374. <div
  10375. v-if="courseDetail.userid == userid"
  10376. style="
  10377. display: flex;
  10378. justify-content: flex-end;
  10379. margin-right: 10px;
  10380. "
  10381. >
  10382. <el-button
  10383. type="primary"
  10384. size="small"
  10385. @click="addTools(49, toolIndex, taskCount)"
  10386. >{{ lang.ssGroupSetting }}</el-button
  10387. >
  10388. </div>
  10389. <div
  10390. v-if="groupStudentUid[toolIndex]"
  10391. class="group_staic_box"
  10392. >
  10393. <div
  10394. v-for="(gp, gd) in tool.groupJson.group"
  10395. :key="gd"
  10396. class="group_staic"
  10397. >
  10398. <span> {{ gp.name }}</span>
  10399. <span>
  10400. {{ lang.ssCurrentCountNum.replace(/\*/g, groupStudentUid[toolIndex][gd].length) }}</span
  10401. >
  10402. </div>
  10403. </div>
  10404. </div>
  10405. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  10406. <div
  10407. class="zuoyeYulan"
  10408. v-if="
  10409. worksStudent.length &&
  10410. worksStudent[toolIndex].length > 0
  10411. "
  10412. >
  10413. <span class="worksTitle">{{ lang.ssHomeworkPreview }}</span>
  10414. </div>
  10415. <div>
  10416. <div
  10417. class="group_workBox"
  10418. v-for="(g, gindex) in tool.groupJson.group"
  10419. :key="gindex"
  10420. >
  10421. <div
  10422. class="group_box"
  10423. v-if="
  10424. groupStudentUid[toolIndex] &&
  10425. worksStudent[toolIndex] &&
  10426. (worksStudent[toolIndex][gindex].length ||
  10427. groupStudentUid[toolIndex][gindex].indexOf(
  10428. userid
  10429. ) != -1)
  10430. "
  10431. >
  10432. <div class="group_title">
  10433. <el-tooltip
  10434. class="item"
  10435. effect="light"
  10436. :content="g.name"
  10437. placement="top"
  10438. >
  10439. <div class="group_name">{{ g.name }}</div>
  10440. </el-tooltip>
  10441. <el-button
  10442. type="primary"
  10443. v-if="
  10444. groupStudentUid[toolIndex][gindex].indexOf(
  10445. userid
  10446. ) != -1
  10447. "
  10448. @click="groupUpload(toolIndex, taskCount, gindex)"
  10449. >{{ lang.ssUploadHomework }}</el-button
  10450. >
  10451. </div>
  10452. <div class="group_work">
  10453. <div
  10454. class="works"
  10455. style="
  10456. width: 200px;
  10457. height: 140px;
  10458. margin: 10px 10px 10px 0;
  10459. border-radius: 15px;
  10460. box-shadow: 0 0 6px 1px #dfdada;
  10461. "
  10462. v-for="(w, wIndex) in worksStudent[toolIndex][
  10463. gindex
  10464. ]"
  10465. :key="wIndex"
  10466. :class="w.type == 1 ? 'isTypeOne' : ''"
  10467. >
  10468. <div class="workImg" v-if="w.type == 0">
  10469. <el-image
  10470. crossorigin="anonymous"
  10471. allow="*"
  10472. :src="w.works"
  10473. @click="previewImg(w.works, w)"
  10474. alt
  10475. />
  10476. <div
  10477. class="answerScore"
  10478. style="right: 70px;"
  10479. v-if="w.score"
  10480. @click.stop="openScore(w)"
  10481. :class="{
  10482. rightW:
  10483. w.userid == userid ||
  10484. tType == 1 ||
  10485. tType == 4 ||
  10486. w.ateacher == userid
  10487. }"
  10488. >
  10489. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  10490. </div>
  10491. <div
  10492. class="answerScore"
  10493. style="right: 70px;"
  10494. @click.stop="openScore(w)"
  10495. v-else-if="courseDetail.userid == userid"
  10496. :class="{
  10497. rightW:
  10498. w.userid == userid ||
  10499. tType == 1 ||
  10500. tType == 4 ||
  10501. w.ateacher == userid
  10502. }"
  10503. >
  10504. {{ lang.ssMarkScore }}
  10505. </div>
  10506. <img class="xiaz" @click="downloadimg(w.works)" style="right: 40px;" src="../../assets/icon/works/xiaz.png" alt="">
  10507. <img
  10508. class="deleteImg"
  10509. src="../../assets/deleteworks.png"
  10510. v-if="
  10511. w.userid == userid ||
  10512. tType == 1 ||
  10513. tType == 4
  10514. "
  10515. @click.stop="deleteWorks(w.wid)"
  10516. alt
  10517. />
  10518. </div>
  10519. <div class="workImg" v-if="w.type == 1">
  10520. <img
  10521. :src="word"
  10522. @click="openFile(w.works)"
  10523. alt
  10524. />
  10525. <!-- @click="openFile(w.works)" -->
  10526. <div
  10527. class="answerScore"
  10528. style="right: 70px;"
  10529. v-if="w.score"
  10530. @click.stop="openScore(w)"
  10531. :class="{
  10532. rightW:
  10533. w.userid == userid ||
  10534. tType == 1 ||
  10535. tType == 4 ||
  10536. w.ateacher == userid
  10537. }"
  10538. >
  10539. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  10540. </div>
  10541. <div
  10542. class="answerScore"
  10543. style="right: 70px;"
  10544. @click.stop="openScore(w)"
  10545. v-else-if="courseDetail.userid == userid"
  10546. :class="{
  10547. rightW:
  10548. w.userid == userid ||
  10549. tType == 1 ||
  10550. tType == 4 ||
  10551. w.ateacher == userid
  10552. }"
  10553. >
  10554. {{ lang.ssMarkScore }}
  10555. </div>
  10556. <img class="xiaz" @click="downloadFile(w.works,w.userid)" style="right: 40px;" src="../../assets/icon/works/xiaz.png" alt="">
  10557. <img
  10558. class="deleteImg"
  10559. src="../../assets/deleteworks.png"
  10560. v-if="
  10561. w.userid == userid ||
  10562. tType == 1 ||
  10563. tType == 4
  10564. "
  10565. @click.stop="deleteWorks(w.wid)"
  10566. alt
  10567. />
  10568. </div>
  10569. <div class="workImg" v-if="w.type == 3">
  10570. <img
  10571. style="cursor: pointer"
  10572. :src="video"
  10573. @click="openVideo(w)"
  10574. alt
  10575. />
  10576. <!-- @click="openVideo(w.works)" -->
  10577. <div
  10578. class="answerScore"
  10579. style="right: 70px;"
  10580. v-if="w.score"
  10581. @click.stop="openScore(w)"
  10582. :class="{
  10583. rightW:
  10584. w.userid == userid ||
  10585. tType == 1 ||
  10586. tType == 4 ||
  10587. w.ateacher == userid
  10588. }"
  10589. >
  10590. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  10591. </div>
  10592. <div
  10593. class="answerScore"
  10594. style="right: 70px;"
  10595. @click.stop="openScore(w)"
  10596. v-else-if="courseDetail.userid == userid"
  10597. :class="{
  10598. rightW:
  10599. w.userid == userid ||
  10600. tType == 1 ||
  10601. tType == 4 ||
  10602. w.ateacher == userid
  10603. }"
  10604. >
  10605. {{ lang.ssMarkScore }}
  10606. </div>
  10607. <img class="xiaz" @click="downloadFile(w.works,w.userid)" style="right: 40px;" src="../../assets/icon/works/xiaz.png" alt="">
  10608. <img
  10609. class="deleteImg"
  10610. src="../../assets/deleteworks.png"
  10611. v-if="
  10612. w.userid == userid ||
  10613. tType == 1 ||
  10614. tType == 4
  10615. "
  10616. @click.stop="deleteWorks(w.wid)"
  10617. alt
  10618. />
  10619. </div>
  10620. <div class="workImg" v-if="w.type == 12">
  10621. <img
  10622. style="cursor: pointer"
  10623. :src="word2"
  10624. @click="downloadFile(w.works,w.userid)"
  10625. alt
  10626. />
  10627. <!-- @click="openVideo(w.works)" -->
  10628. <div
  10629. class="answerScore"
  10630. v-if="w.score"
  10631. @click.stop="openScore(w)"
  10632. :class="{
  10633. rightW:
  10634. w.userid == userid ||
  10635. tType == 1 ||
  10636. tType == 4 ||
  10637. w.ateacher == userid
  10638. }"
  10639. >
  10640. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  10641. </div>
  10642. <div
  10643. class="answerScore"
  10644. @click.stop="openScore(w)"
  10645. v-else-if="courseDetail.userid == userid"
  10646. :class="{
  10647. rightW:
  10648. w.userid == userid ||
  10649. tType == 1 ||
  10650. tType == 4 ||
  10651. w.ateacher == userid
  10652. }"
  10653. >
  10654. {{ lang.ssMarkScore }}
  10655. </div>
  10656. <img
  10657. class="deleteImg"
  10658. src="../../assets/deleteworks.png"
  10659. v-if="
  10660. w.userid == userid ||
  10661. tType == 1 ||
  10662. tType == 4
  10663. "
  10664. @click.stop="deleteWorks(w.wid)"
  10665. alt
  10666. />
  10667. </div>
  10668. <div class="comment" style="min-width: 200px">
  10669. <div class="worksName">
  10670. <div>{{ w.sName }}</div>
  10671. </div>
  10672. <div class="commentList">
  10673. <div class="commentList">
  10674. <div
  10675. class="commentImg"
  10676. @click="
  10677. isLikes(
  10678. w.wid,
  10679. userid,
  10680. 1,
  10681. null,
  10682. w.isLikes,
  10683. w.sName
  10684. )
  10685. "
  10686. >
  10687. <img
  10688. :src="
  10689. w.isLikes == true ? likes : noLikes
  10690. "
  10691. alt=""
  10692. />
  10693. </div>
  10694. <div>{{ w.likesCount }}</div>
  10695. </div>
  10696. <div
  10697. class="commentList"
  10698. style="margin-right: 15px"
  10699. >
  10700. <div
  10701. class="commentImg"
  10702. @click="
  10703. commentOther(
  10704. w,
  10705. toolIndex,
  10706. wIndex,
  10707. gindex
  10708. )
  10709. "
  10710. >
  10711. <img
  10712. src="../../assets/icon/comment/comment.png"
  10713. alt=""
  10714. />
  10715. </div>
  10716. <div>{{ w.commentCount }}</div>
  10717. </div>
  10718. </div>
  10719. </div>
  10720. </div>
  10721. </div>
  10722. </div>
  10723. </div>
  10724. </div>
  10725. </div>
  10726. <div
  10727. style="width:92%;margin: 0 0 0 40px;"
  10728. v-if="
  10729. courseDetail.state == 6 && tool.eList && tool.eList.length
  10730. "
  10731. >
  10732. <evaTable :eList="tool.eList"></evaTable>
  10733. </div>
  10734. </div>
  10735. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  10736. {{ lang.ssUpFile }}
  10737. <input
  10738. type="file"
  10739. accept="image/png, image/gif, image/jpeg"
  10740. style="display: none"
  10741. @change="beforeUpload1($event, 2, index)"
  10742. />
  10743. </div>-->
  10744. </div>
  10745. </div>
  10746. <div
  10747. class="vedioBox"
  10748. style="margin-top: 10px; border-radius: 20px"
  10749. v-if="
  10750. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10751. .eList &&
  10752. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10753. .eList.length &&
  10754. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10755. .eList.length > 0 &&
  10756. tType != 2
  10757. "
  10758. >
  10759. <div
  10760. class="queTop"
  10761. style="
  10762. font-size: 20px;
  10763. padding: 15px 0 15px 37px;
  10764. font-weight: bold;
  10765. "
  10766. >
  10767. <!-- <div class="question" style="width: 30px">
  10768. <img src="../assets/icon/toolIcon.png" alt />
  10769. </div>
  10770. <div class="queTitle">
  10771. <div>工具</div>
  10772. </div>-->
  10773. {{ lang.ssEvaluate }}
  10774. </div>
  10775. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  10776. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  10777. <el-table
  10778. :data="
  10779. chapInfoList[courseType].chapterInfo[0].taskJson[
  10780. taskCount
  10781. ].eList
  10782. "
  10783. :header-cell-style="{ background: '#F0F4FA' }"
  10784. :row-class-name="tableRowClassName"
  10785. border
  10786. stripe
  10787. style="width: 100%"
  10788. >
  10789. <el-table-column
  10790. :label="lang.ssEvalName"
  10791. align="center"
  10792. >
  10793. <template slot-scope="scope"
  10794. ><div>{{ scope.row.value }}</div></template
  10795. >
  10796. </el-table-column>
  10797. <el-table-column
  10798. :label="lang.ssEvalDesc"
  10799. align="center"
  10800. >
  10801. <template slot-scope="scope"
  10802. ><div>
  10803. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  10804. </div></template
  10805. >
  10806. </el-table-column>
  10807. <el-table-column :label="lang.ssTarget" align="center">
  10808. <template slot-scope="scope"
  10809. ><div>
  10810. {{
  10811. scope.row.target
  10812. ? scope.row.target[scope.row.target.length - 1]
  10813. : "-"
  10814. }}
  10815. </div></template
  10816. ></el-table-column
  10817. >
  10818. </el-table>
  10819. <!-- <div
  10820. v-for="(eItem, eIndex) in chapInfoList[courseType]
  10821. .chapterInfo[0].taskJson[taskCount].eList"
  10822. :key="eIndex"
  10823. class="elist_input_box"
  10824. >
  10825. <div style="width: 95%">
  10826. <div
  10827. style="
  10828. display: flex;
  10829. flex-direction: row;
  10830. flex-wrap: nowrap;
  10831. align-items: center;
  10832. "
  10833. >
  10834. <div style="max-width: calc(100% - 285px)">
  10835. <span>{{ eItem.value }}</span>
  10836. </div>
  10837. <div
  10838. style="
  10839. padding-left: 25px;
  10840. display: flex;
  10841. flex-direction: row;
  10842. align-items: center;
  10843. "
  10844. >
  10845. <el-rate
  10846. v-model="eItem.score"
  10847. :colors="colors"
  10848. disabled
  10849. ></el-rate>
  10850. </div>
  10851. </div>
  10852. <div class="elist_inptu_text" style="padding-left: 10px">
  10853. <span v-if="eItem.detail != ''">{{
  10854. eItem.detail
  10855. }}</span>
  10856. <span v-else style="color: #b2b1b3; font-size: 14px"
  10857. >暂无描述...</span
  10858. >
  10859. </div>
  10860. </div>
  10861. </div> -->
  10862. </div>
  10863. <div
  10864. v-if="evalua"
  10865. style="
  10866. border: 1px solid #e5e5e5;
  10867. max-width: 650px;
  10868. width: 100%;
  10869. margin-top: 20px;
  10870. box-shadow: 3px 1px 15px 3px #e0e0e0;
  10871. "
  10872. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  10873. >
  10874. <div class="e_add_top">
  10875. <div class="e_add_title" style="width: 100%">
  10876. <!-- <span>目标管理名称</span> -->
  10877. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  10878. <img
  10879. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  10880. src="../../assets/line.png"
  10881. class="cru_line"
  10882. style="
  10883. width: 125px;
  10884. height: 20px;
  10885. bottom: -10px;
  10886. left: 5px;
  10887. "
  10888. />
  10889. <!-- <el-input
  10890. v-model="eTitle"
  10891. placeholder="请输入名称"
  10892. @change="setMindData"
  10893. ></el-input>-->
  10894. <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>
  10895. <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>
  10896. </div>
  10897. </div>
  10898. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  10899. <div class="e_add_list_pbox">
  10900. <div class="e_add_list_pbox_title">
  10901. <!-- <span class="type_title">切换模式</span> -->
  10902. <div class="type_content">
  10903. <span
  10904. :class="{ active: typeMode == 1 }"
  10905. @click="typeMode = 1"
  10906. >{{ lang.ssTargetTree }}</span
  10907. >
  10908. <span
  10909. :class="{ active: typeMode == 2 }"
  10910. @click="typeMode = 2"
  10911. >{{ lang.ssTargetCompass }}</span
  10912. >
  10913. <!-- <span
  10914. :class="{ active: typeMode == 3 }"
  10915. @click="typeMode = 3"
  10916. >目标看板</span
  10917. > -->
  10918. </div>
  10919. </div>
  10920. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  10921. <Mind
  10922. :showBar="false"
  10923. :mindData="data"
  10924. style="width: 100%"
  10925. v-show="typeMode == 1"
  10926. ></Mind>
  10927. <Sunburst
  10928. :Josn="eJson"
  10929. :num="eJSONNum"
  10930. style="width: 100%"
  10931. v-if="typeMode == 2"
  10932. ></Sunburst>
  10933. <SeeBoard
  10934. :Josn="eJson"
  10935. :num="eJSONNum"
  10936. :ename="eTitle"
  10937. style="width: 100%"
  10938. v-if="typeMode == 3"
  10939. >
  10940. </SeeBoard>
  10941. </div>
  10942. </div>
  10943. </div>
  10944. </div>
  10945. </div>
  10946. </div>
  10947. <!-- <div
  10948. class="project_box"
  10949. style="margin-top: 15px; padding-bottom: 30px"
  10950. >
  10951. <div
  10952. style="
  10953. display: flex;
  10954. flex-wrap: nowrap;
  10955. flex-direction: column;
  10956. position: relative;
  10957. "
  10958. >
  10959. <div class="queTop">
  10960. <div class="question">
  10961. <img src="../../assets/icon/homeWork.png" alt="" />
  10962. </div>
  10963. <div class="queTitle">
  10964. <div>作业提交<span>(提交图文视频等)</span></div>
  10965. <div>:任务:{{ task.task }}</div>
  10966. </div>
  10967. </div>
  10968. <div class="ediBottom">
  10969. <div
  10970. class="addEditor"
  10971. style="margin-top: 23px"
  10972. @click="openAddWork"
  10973. v-if="!isNoHomeWork"
  10974. >
  10975. 选择文件
  10976. </div>
  10977. <div
  10978. class="addEditor"
  10979. style="margin-top: 23px"
  10980. @click="openAddWork"
  10981. v-else
  10982. >
  10983. 已提交
  10984. </div>
  10985. </div>
  10986. </div>
  10987. </div>-->
  10988. </div>
  10989. </div>
  10990. <el-dialog
  10991. :title="lang.ssHomework"
  10992. :visible.sync="dialogVisible"
  10993. :append-to-body="true"
  10994. width="500px"
  10995. :before-close="handleClose"
  10996. class="dialog_change"
  10997. >
  10998. <div class="marginT">
  10999. <div>{{ lang.ssUploadHomework }}</div>
  11000. <div style="display: flex; gap: 10px">
  11001. <div
  11002. class="chapter_add"
  11003. @click="addImg($event)"
  11004. v-if="studyJuri[0].cover.length == 0"
  11005. >
  11006. <div class="up_photo">
  11007. <img src="../../assets/icon/uploadImg.png" alt />
  11008. </div>
  11009. <!-- <input
  11010. type="file"
  11011. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11012. style="display: none"
  11013. @change="beforeUpload1($event, 1)"
  11014. /> -->
  11015. <input
  11016. type="file"
  11017. accept="*"
  11018. style="display: none"
  11019. @change="beforeUpload1($event, 1)"
  11020. />
  11021. <!-- <input
  11022. type="file"
  11023. accept="image/*"
  11024. capture="camera"
  11025. style="display: none"
  11026. @change="beforeUpload1($event, 1)"
  11027. /> -->
  11028. </div>
  11029. <div
  11030. class="chapter_add"
  11031. @click="addImg($event)"
  11032. v-if="studyJuri[0].cover.length == 0"
  11033. >
  11034. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11035. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11036. </div>
  11037. <input
  11038. type="file"
  11039. accept="image/*"
  11040. capture="camera"
  11041. style="display: none"
  11042. @change="beforeUpload1($event, 1)"
  11043. />
  11044. </div>
  11045. </div>
  11046. <div
  11047. class="chapter_add"
  11048. style="
  11049. display: flex;
  11050. width: 100%;
  11051. flex-direction: row;
  11052. flex-wrap: wrap;
  11053. justify-content: flex-start;
  11054. padding: 15px 0;
  11055. "
  11056. v-if="studyJuri[0].cover.length > 0"
  11057. >
  11058. <div class="upCover">
  11059. <img
  11060. :src="studyJuri[0].cover[0].url"
  11061. alt
  11062. v-if="fileType == 0"
  11063. />
  11064. <img :src="word" alt v-else-if="fileType == 1" />
  11065. <img :src="video" alt v-else-if="fileType == 2" />
  11066. <img :src="word2" alt v-else-if="fileType == 3" />
  11067. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11068. <div class="deleteWord" @click="clean(1)">
  11069. <img src="../../assets/icon/deleteWorks.png" alt />
  11070. </div>
  11071. </div>
  11072. </div>
  11073. </div>
  11074. <div
  11075. class="upload_send"
  11076. @click="addCourseWorksCopy(taskCount)"
  11077. v-if="!proVisible"
  11078. >
  11079. {{ lang.ssSubmit }}
  11080. </div>
  11081. </el-dialog>
  11082. </div>
  11083. </div>
  11084. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  11085. <classRoomHelper v-if="!['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  11086. '/courseDetail?userid=' +
  11087. userid +
  11088. '&oid=' +
  11089. oid +
  11090. '&org=' +
  11091. org +
  11092. '&cid=' +
  11093. classId +
  11094. '&courseId=' +
  11095. id +
  11096. '&tType=' +
  11097. tType +
  11098. '&screenType=' +
  11099. screenType+
  11100. '&role=' +
  11101. role
  11102. )"></classRoomHelper>
  11103. <studentClassRoomHelper v-else-if="['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  11104. '/courseDetail?userid=' +
  11105. userid +
  11106. '&oid=' +
  11107. oid +
  11108. '&org=' +
  11109. org +
  11110. '&cid=' +
  11111. classId +
  11112. '&courseId=' +
  11113. id +
  11114. '&tType=' +
  11115. tType +
  11116. '&screenType=' +
  11117. screenType+
  11118. '&role=' +
  11119. role
  11120. )"></studentClassRoomHelper>
  11121. <div
  11122. class="pButton"
  11123. @click="(pzDialog = true), selectPz()"
  11124. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  11125. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  11126. >
  11127. <!-- 批 -->
  11128. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  11129. </div>
  11130. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  11131. <div class="pzTop2">
  11132. <!-- <div>评论</div>
  11133. <div @click="pzDialog = false">
  11134. <img src="../../assets/close1.png" alt="" />
  11135. </div> -->
  11136. <div class="checkbox">
  11137. <!-- <div class="check" style="font-size: 25px; position: unset">
  11138. 评论
  11139. </div> -->
  11140. <div class="cb-tabList">
  11141. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">{{ lang.ssComment }}</div>
  11142. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  11143. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  11144. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">{{ lang.ssTotalEval }}</div>
  11145. </div>
  11146. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  11147. <el-option :label="lang.ssTimeDesc" :value="1"></el-option>
  11148. <el-option :label="lang.ssTimeAsc" :value="2"></el-option>
  11149. <el-option :label="lang.ssMyComment" :value="3"></el-option>
  11150. </el-select>
  11151. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  11152. </div>
  11153. </div>
  11154. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  11155. <div class="pzListBox" v-if="pzList && pzList.length">
  11156. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  11157. <div class="pzNavTop">
  11158. <div>{{ lang.ssEval }}</div>
  11159. <div>
  11160. {{
  11161. pz.username && pz.username.length > 5
  11162. ? pz.username.substring(0, 5) + "..."
  11163. : pz.username
  11164. }}{{ lang.ssCommentOf }}
  11165. </div>
  11166. <div
  11167. class="pzDelete"
  11168. v-if="pz.userid == userid"
  11169. @click="deletePz(pz.id)"
  11170. >
  11171. {{ lang.ssDelete }}
  11172. </div>
  11173. </div>
  11174. <div
  11175. @click="checkImg(getImgList(pz.content))"
  11176. class="pzContent cont"
  11177. v-html="pz.content"
  11178. v-if="pz.type == '1'"
  11179. ></div>
  11180. <div class="pzContent" v-if="pz.type == '2'">
  11181. <audio :src="pz.content" controls="controls" ref="audio">
  11182. Your browser does not support the audio element.
  11183. </audio>
  11184. </div>
  11185. <div class="pzContent" v-if="pz.type == '3'">
  11186. <img
  11187. :src="pz.content"
  11188. style="width: 90%; margin: 0 auto; display: block"
  11189. @click="previewImg(pz.content)"
  11190. />
  11191. </div>
  11192. <div class="timeAndReply">
  11193. <div class="time">
  11194. {{ pz.time }}
  11195. </div>
  11196. <div @click="setReplyIndex(pz.id, pzIndex)">{{ lang.ssReply }}</div>
  11197. </div>
  11198. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  11199. <div
  11200. v-for="(h, hIndex) in pz.hfList"
  11201. :key="hIndex"
  11202. class="hfItem"
  11203. >
  11204. <div class="whoReplyWho">
  11205. <div class="hfName">{{ h.username }}</div>
  11206. <div class="hfImg">
  11207. <img src="../../assets/icon/newIcons/right.png" alt="" />
  11208. </div>
  11209. <div class="hfName">{{ pz.username }}</div>
  11210. </div>
  11211. <div class="hfContent" v-html="h.content"></div>
  11212. <div class="hfBottom">
  11213. <div class="hfTime">{{ h.time }}</div>
  11214. <div
  11215. class="deleteHfItem"
  11216. @click="deleteReply(h.id)"
  11217. v-if="userid == h.userid"
  11218. >
  11219. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  11220. </div>
  11221. </div>
  11222. </div>
  11223. </div>
  11224. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  11225. <div class="replyInput">
  11226. <el-input v-model="reply[pzIndex]"></el-input>
  11227. </div>
  11228. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  11229. </div> -->
  11230. </div>
  11231. </div>
  11232. <div class="noPz" v-else>
  11233. <img src="../../assets/icon/noPz.png" alt="" />
  11234. </div>
  11235. <div class="addPzButton">
  11236. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  11237. {{ lang.ssAddComment }}
  11238. </div>
  11239. <!-- <div class="img1">
  11240. <div @click="(addPzDialog = true), (pzType = 2)">
  11241. <img src="../../assets/audio.png" /><span>音频</span>
  11242. </div>
  11243. </div> -->
  11244. </div>
  11245. </div>
  11246. <div class="scoreList" v-if="commentTagShow==1">
  11247. <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"/>
  11248. </div>
  11249. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  11250. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  11251. </div>
  11252. </div>
  11253. <div
  11254. v-if="toolDialogVisible == true"
  11255. class="toolMask"
  11256. @click="toolDialogVisible = false"
  11257. ></div>
  11258. <div v-if="toolDialogVisible == true" class="addToolCss">
  11259. <div class="toolTop">
  11260. <div style="font-weight: bold">{{ lang.ssNewTool }}</div>
  11261. <div @click="toolDialogVisible = false">
  11262. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  11263. </div>
  11264. </div>
  11265. <div class="tool_box">
  11266. <div class="tool_type_box">
  11267. <div class="chooseWho">
  11268. <div
  11269. :class="toolType == 0 ? 'isChooseActive' : ''"
  11270. @click="(toolType = 0), $forceUpdate()"
  11271. >
  11272. {{ lang.ssInteract }}
  11273. </div>
  11274. <div
  11275. :class="toolType == 1 ? 'isChooseActive' : ''"
  11276. @click="(toolType = 1), $forceUpdate()"
  11277. >
  11278. {{ lang.ssThinking }}
  11279. </div>
  11280. <div
  11281. :class="toolType == 2 ? 'isChooseActive' : ''"
  11282. @click="(toolType = 2), $forceUpdate()"
  11283. >
  11284. {{ lang.ssEvalType }}
  11285. </div>
  11286. <div
  11287. :class="toolType == 3 ? 'isChooseActive' : ''"
  11288. @click="(toolType = 3), $forceUpdate()"
  11289. >
  11290. {{ lang.ssProgram }}
  11291. </div>
  11292. <div
  11293. :class="toolType == 5 ? 'isChooseActive' : ''"
  11294. @click="(toolType = 5), $forceUpdate()"
  11295. >
  11296. {{ lang.ssSubject }}
  11297. </div>
  11298. </div>
  11299. </div>
  11300. <div>
  11301. <div class="toolSort" v-if="toolType == 0">
  11302. <div
  11303. class="tool"
  11304. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  11305. @click="addTools2(10)"
  11306. >
  11307. <div class="whiteBIcon">
  11308. <img src="../../assets/icon/thirdToolList/time.png" alt />
  11309. <div style="margin: 5px 0">{{ lang.ssCountdown }}</div>
  11310. </div>
  11311. <div class="check">
  11312. <div
  11313. v-if="checktoolArray.indexOf(10) == -1"
  11314. class="noChoose"
  11315. ></div>
  11316. <div v-else class="isChoose"></div>
  11317. </div>
  11318. </div>
  11319. <div
  11320. class="tool"
  11321. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  11322. @click="addTools2(65)"
  11323. >
  11324. <div class="whiteBIcon">
  11325. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  11326. <div style="margin: 5px 0">{{ lang.ssPickPerson }}</div>
  11327. </div>
  11328. <div class="check">
  11329. <div
  11330. v-if="checktoolArray.indexOf(65) == -1"
  11331. class="noChoose"
  11332. ></div>
  11333. <div v-else class="isChoose"></div>
  11334. </div>
  11335. </div>
  11336. </div>
  11337. <div class="toolSort" v-if="toolType == 1">
  11338. <div
  11339. class="tool"
  11340. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  11341. @click="addTools2(7)"
  11342. >
  11343. <div class="whiteBIcon">
  11344. <img
  11345. src="../../assets/icon/secondToolList/mindNetwork.png"
  11346. alt
  11347. />
  11348. <div style="margin: 5px 0">{{ lang.ssMindGrid }}</div>
  11349. </div>
  11350. <div class="check">
  11351. <div
  11352. v-if="checktoolArray.indexOf(7) == -1"
  11353. class="noChoose"
  11354. ></div>
  11355. <div v-else class="isChoose"></div>
  11356. </div>
  11357. </div>
  11358. <div
  11359. class="tool"
  11360. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  11361. @click="addTools2(1)"
  11362. >
  11363. <div class="whiteBIcon">
  11364. <img
  11365. src="../../assets/icon/secondToolList/whiteBoard.png"
  11366. alt
  11367. />
  11368. <div style="margin: 5px 0">{{ lang.ssWhiteboard }}</div>
  11369. </div>
  11370. <div class="check">
  11371. <div
  11372. v-if="checktoolArray.indexOf(1) == -1"
  11373. class="noChoose"
  11374. ></div>
  11375. <div v-else class="isChoose"></div>
  11376. </div>
  11377. </div>
  11378. <div
  11379. class="tool"
  11380. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  11381. @click="addTools2(52)"
  11382. >
  11383. <div class="whiteBIcon">
  11384. <img src="../../assets/icon/fourthToolList/text.png" alt />
  11385. <div style="margin: 5px 0">{{ lang.ssDocument }}</div>
  11386. </div>
  11387. <div class="check">
  11388. <div
  11389. v-if="checktoolArray.indexOf(52) == -1"
  11390. class="noChoose"
  11391. ></div>
  11392. <div v-else class="isChoose"></div>
  11393. </div>
  11394. </div>
  11395. <div
  11396. class="tool"
  11397. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  11398. @click="addTools2(3)"
  11399. >
  11400. <div class="whiteBIcon">
  11401. <img
  11402. src="../../assets/icon/secondToolList/mindMapping.png"
  11403. alt
  11404. />
  11405. <div style="margin: 5px 0">{{ lang.ssMindMap }}</div>
  11406. </div>
  11407. <div class="check">
  11408. <div
  11409. v-if="checktoolArray.indexOf(3) == -1"
  11410. class="noChoose"
  11411. ></div>
  11412. <div v-else class="isChoose"></div>
  11413. </div>
  11414. </div>
  11415. <div
  11416. class="tool"
  11417. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  11418. @click="addTools2(48)"
  11419. >
  11420. <div class="whiteBIcon">
  11421. <img src="../../assets/icon/fourthToolList/table.png" alt />
  11422. <div style="margin: 5px 0">{{ lang.ssTable }}</div>
  11423. </div>
  11424. <div class="check">
  11425. <div
  11426. v-if="checktoolArray.indexOf(48) == -1"
  11427. class="noChoose"
  11428. ></div>
  11429. <div v-else class="isChoose"></div>
  11430. </div>
  11431. </div>
  11432. </div>
  11433. <div class="toolSort" v-if="toolType == 6">
  11434. <div v-show="tooC == 49">
  11435. <img
  11436. @click="addTools(tooC, toolIndex, taskCount)"
  11437. src="../../assets/icon/fourthToolList/group.png"
  11438. alt
  11439. />
  11440. <div style="margin: 5px 0">{{ lang.ssStudentGroup }}</div>
  11441. </div>
  11442. </div>
  11443. <div class="toolSort" v-if="toolType == 2">
  11444. <div
  11445. class="tool"
  11446. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  11447. @click="addTools2(16)"
  11448. >
  11449. <div class="whiteBIcon">
  11450. <img src="../../assets/icon/thirdToolList/work.png" alt />
  11451. <div style="margin: 5px 0">{{ lang.ssHomework }}</div>
  11452. </div>
  11453. <div class="check">
  11454. <div
  11455. v-if="checktoolArray.indexOf(16) == -1"
  11456. class="noChoose"
  11457. ></div>
  11458. <div v-else class="isChoose"></div>
  11459. </div>
  11460. </div>
  11461. <div
  11462. class="tool"
  11463. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  11464. @click="addTools2(50)"
  11465. >
  11466. <div class="whiteBIcon">
  11467. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  11468. <div style="margin: 5px 0">{{ lang.ssBatchUpload }}</div>
  11469. </div>
  11470. <div class="check">
  11471. <div
  11472. v-if="checktoolArray.indexOf(50) == -1"
  11473. class="noChoose"
  11474. ></div>
  11475. <div v-else class="isChoose"></div>
  11476. </div>
  11477. </div>
  11478. </div>
  11479. <div class="toolSort" v-if="toolType == 3">
  11480. <div
  11481. class="tool"
  11482. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  11483. @click="addTools2(18)"
  11484. >
  11485. <div class="whiteBIcon">
  11486. <img
  11487. src="../../assets/icon/thirdToolList/trainPlatform.png"
  11488. alt
  11489. />
  11490. <div style="margin: 5px 0">{{ lang.ssTraining }}</div>
  11491. </div>
  11492. <div class="check">
  11493. <div
  11494. v-if="checktoolArray.indexOf(18) == -1"
  11495. class="noChoose"
  11496. ></div>
  11497. <div v-else class="isChoose"></div>
  11498. </div>
  11499. </div>
  11500. <div
  11501. class="tool"
  11502. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  11503. @click="addTools2(21)"
  11504. >
  11505. <div class="whiteBIcon">
  11506. <img src="../../assets/icon/fourthToolList/program.png" alt />
  11507. <div style="margin: 5px 0">AIoT Blockly</div>
  11508. </div>
  11509. <div class="check">
  11510. <div
  11511. v-if="checktoolArray.indexOf(21) == -1"
  11512. class="noChoose"
  11513. ></div>
  11514. <div v-else class="isChoose"></div>
  11515. </div>
  11516. </div>
  11517. <div
  11518. class="tool"
  11519. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  11520. @click="addTools2(23)"
  11521. >
  11522. <div class="whiteBIcon">
  11523. <img
  11524. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  11525. alt
  11526. />
  11527. <div style="margin: 5px 0">AI Python</div>
  11528. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  11529. style="position: absolute;right: 33px;top: -30px;">
  11530. {{ lang.ssAnalyze }}
  11531. </div>
  11532. </div>
  11533. <div class="check">
  11534. <div
  11535. v-if="checktoolArray.indexOf(23) == -1"
  11536. class="noChoose"
  11537. ></div>
  11538. <div v-else class="isChoose"></div>
  11539. </div>
  11540. </div>
  11541. <div
  11542. class="tool"
  11543. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  11544. @click="addTools2(24)"
  11545. >
  11546. <div class="whiteBIcon">
  11547. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  11548. <div style="margin: 5px 0">AI Blockly</div>
  11549. </div>
  11550. <div class="check">
  11551. <div
  11552. v-if="checktoolArray.indexOf(24) == -1"
  11553. class="noChoose"
  11554. ></div>
  11555. <div v-else class="isChoose"></div>
  11556. </div>
  11557. </div>
  11558. <div
  11559. class="tool"
  11560. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  11561. @click="addTools2(32)"
  11562. >
  11563. <div class="whiteBIcon">
  11564. <img src="../../assets/icon/thirdToolList/code.png" alt />
  11565. <div style="margin: 5px 0">{{ lang.ssCodeEdit }}</div>
  11566. </div>
  11567. <div class="check">
  11568. <div
  11569. v-if="checktoolArray.indexOf(32) == -1"
  11570. class="noChoose"
  11571. ></div>
  11572. <div v-else class="isChoose"></div>
  11573. </div>
  11574. </div>
  11575. <div
  11576. class="tool"
  11577. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  11578. @click="addTools2(57)"
  11579. >
  11580. <div class="whiteBIcon">
  11581. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  11582. <div style="margin: 5px 0">CocoPi</div>
  11583. </div>
  11584. <div class="check">
  11585. <div
  11586. v-if="checktoolArray.indexOf(57) == -1"
  11587. class="noChoose"
  11588. ></div>
  11589. <div v-else class="isChoose"></div>
  11590. </div>
  11591. </div>
  11592. <div
  11593. class="tool"
  11594. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  11595. @click="addTools2(63)"
  11596. >
  11597. <div class="whiteBIcon">
  11598. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  11599. <div style="margin: 5px 0">{{ lang.ssTurtle }}</div>
  11600. </div>
  11601. <div class="check">
  11602. <div
  11603. v-if="checktoolArray.indexOf(63) == -1"
  11604. class="noChoose"
  11605. ></div>
  11606. <div v-else class="isChoose"></div>
  11607. </div>
  11608. </div>
  11609. <div
  11610. class="tool"
  11611. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  11612. @click="addTools2(71)"
  11613. >
  11614. <div class="whiteBIcon">
  11615. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  11616. <div style="margin: 5px 0">{{ lang.ssAiAgent }}</div>
  11617. </div>
  11618. <div class="check">
  11619. <div
  11620. v-if="checktoolArray.indexOf(71) == -1"
  11621. class="noChoose"
  11622. ></div>
  11623. <div v-else class="isChoose"></div>
  11624. </div>
  11625. </div>
  11626. </div>
  11627. <div class="toolSort" v-if="toolType == 7">
  11628. <div
  11629. class="tool"
  11630. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  11631. @click="addTools2(40)"
  11632. >
  11633. <div class="whiteBIcon">
  11634. <img src="../../assets/icon/secondToolList/eval.png" alt />
  11635. <div style="margin: 5px 0">{{ lang.ssPersonalEval }}</div>
  11636. </div>
  11637. <div class="check">
  11638. <div
  11639. v-if="checktoolArray.indexOf(40) == -1"
  11640. class="noChoose"
  11641. ></div>
  11642. <div v-else class="isChoose"></div>
  11643. </div>
  11644. </div>
  11645. </div>
  11646. <div class="toolSort" v-if="toolType == 5">
  11647. <div
  11648. class="tool"
  11649. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  11650. @click="addTools2(28)"
  11651. >
  11652. <div class="whiteBIcon">
  11653. <img
  11654. src="../../assets/icon/secondToolList/translation.png"
  11655. alt
  11656. />
  11657. <div style="margin: 5px 0">{{ lang.ssTranslate }}</div>
  11658. </div>
  11659. <div class="check">
  11660. <div
  11661. v-if="checktoolArray.indexOf(28) == -1"
  11662. class="noChoose"
  11663. ></div>
  11664. <div v-else class="isChoose"></div>
  11665. </div>
  11666. </div>
  11667. <div
  11668. class="tool"
  11669. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  11670. @click="addTools2(31)"
  11671. >
  11672. <div class="whiteBIcon">
  11673. <img
  11674. src="../../assets/icon/secondToolList/networkPanel.png"
  11675. alt
  11676. />
  11677. <div style="margin: 5px 0">{{ lang.ssDigitalBoard }}</div>
  11678. </div>
  11679. <div class="check">
  11680. <div
  11681. v-if="checktoolArray.indexOf(31) == -1"
  11682. class="noChoose"
  11683. ></div>
  11684. <div v-else class="isChoose"></div>
  11685. </div>
  11686. </div>
  11687. <div
  11688. class="tool"
  11689. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  11690. @click="addTools2(39)"
  11691. >
  11692. <div class="whiteBIcon">
  11693. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  11694. <div style="margin: 5px 0">GeoGebra</div>
  11695. </div>
  11696. <div class="check">
  11697. <div
  11698. v-if="checktoolArray.indexOf(39) == -1"
  11699. class="noChoose"
  11700. ></div>
  11701. <div v-else class="isChoose"></div>
  11702. </div>
  11703. </div>
  11704. <div
  11705. class="tool"
  11706. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  11707. @click="addTools2(66)"
  11708. >
  11709. <div class="whiteBIcon">
  11710. <img
  11711. src="../../assets/icon/secondToolList/formulaEdi.png"
  11712. alt
  11713. />
  11714. <div style="margin: 5px 0">{{ lang.ssFormula }}</div>
  11715. </div>
  11716. <div class="check">
  11717. <div
  11718. v-if="checktoolArray.indexOf(66) == -1"
  11719. class="noChoose"
  11720. ></div>
  11721. <div v-else class="isChoose"></div>
  11722. </div>
  11723. </div>
  11724. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  11725. <div class="whiteBIcon" @click="addTools2(67)">
  11726. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  11727. <div style="margin: 5px 0">分子结构</div>
  11728. </div>
  11729. <div class="check" @click="addTools2(67)">
  11730. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  11731. <div v-else class="isChoose"></div>
  11732. </div>
  11733. </div> -->
  11734. <div
  11735. class="tool"
  11736. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  11737. @click="addTools2(68)"
  11738. >
  11739. <div class="whiteBIcon">
  11740. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  11741. <div style="margin: 5px 0">{{ lang.ssTimeline }}</div>
  11742. </div>
  11743. <div class="check">
  11744. <div
  11745. v-if="checktoolArray.indexOf(68) == -1"
  11746. class="noChoose"
  11747. ></div>
  11748. <div v-else class="isChoose"></div>
  11749. </div>
  11750. </div>
  11751. <!-- <div
  11752. class="tool"
  11753. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  11754. @click="addTools2(69)"
  11755. >
  11756. <div class="whiteBIcon">
  11757. <img src="../../assets/icon/secondToolList/english.png" alt />
  11758. <div style="margin: 5px 0">英语写作</div>
  11759. </div>
  11760. <div class="check">
  11761. <div
  11762. v-if="checktoolArray.indexOf(69) == -1"
  11763. class="noChoose"
  11764. ></div>
  11765. <div v-else class="isChoose"></div>
  11766. </div>
  11767. </div> -->
  11768. </div>
  11769. <div class="toolSort" v-if="toolType == 4">
  11770. <div
  11771. class="tool"
  11772. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  11773. @click="addTools2(26)"
  11774. >
  11775. <div class="whiteBIcon">
  11776. <img
  11777. src="../../assets/icon/thirdToolList/courseDesign.png"
  11778. alt
  11779. />
  11780. <div style="margin: 5px 0">{{ lang.ssCourseDesign }}</div>
  11781. </div>
  11782. <div class="check">
  11783. <div
  11784. v-if="checktoolArray.indexOf(26) == -1"
  11785. class="noChoose"
  11786. ></div>
  11787. <div v-else class="isChoose"></div>
  11788. </div>
  11789. </div>
  11790. <div
  11791. class="tool"
  11792. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  11793. @click="addTools2(25)"
  11794. >
  11795. <div class="whiteBIcon">
  11796. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  11797. <div style="margin: 5px 0">{{ lang.ssGoalManage }}</div>
  11798. </div>
  11799. <div class="check">
  11800. <div
  11801. v-if="checktoolArray.indexOf(25) == -1"
  11802. class="noChoose"
  11803. ></div>
  11804. <div v-else class="isChoose"></div>
  11805. </div>
  11806. </div>
  11807. </div>
  11808. </div>
  11809. </div>
  11810. <span
  11811. slot="footer"
  11812. class="dialog-footer"
  11813. style="display: block; text-align: center; padding: 0 0 10px 0"
  11814. >
  11815. <el-button @click="toolDialogVisible = false">{{ lang.ssCancel }}</el-button>
  11816. <el-button type="primary" @click.stop="addToolChoose">{{ lang.ssConfirm }}</el-button>
  11817. </span>
  11818. </div>
  11819. <div
  11820. v-if="replyDialogVisible == true"
  11821. class="addDialogCss"
  11822. v-el-drag-dialog
  11823. >
  11824. <div class="pzTop">
  11825. <div class="teacherPz">
  11826. <div class="teacherPzImg">
  11827. <img src="../../assets/icon/teacherPz.png" alt="" />
  11828. </div>
  11829. <div style="margin-left: 10px; height: 25px">{{ lang.ssAddReply }}</div>
  11830. </div>
  11831. <div @click="replyDialogVisible = false">
  11832. <img src="../../assets/close1.png" class="pzClose" alt="" />
  11833. </div>
  11834. </div>
  11835. <div class="addPzBox">
  11836. <!-- <div class="addPzCheck">
  11837. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  11838. >文本</span
  11839. >
  11840. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  11841. >音频</span
  11842. >
  11843. </div> -->
  11844. <div style="height: calc(100% - 50px)">
  11845. <editor-bar
  11846. class="binfo_input pzConText"
  11847. style="width: 100% !important; margin: 0 auto"
  11848. :placeholder="lang.ssEnterReply"
  11849. v-model="reply"
  11850. @change="change"
  11851. ></editor-bar>
  11852. </div>
  11853. <div class="addTextCss" @click="addHf">{{ lang.ssConfirm }}</div>
  11854. </div>
  11855. </div>
  11856. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  11857. <div class="pzTop">
  11858. <div class="teacherPz">
  11859. <div class="teacherPzImg">
  11860. <img src="../../assets/icon/teacherPz.png" alt="" />
  11861. </div>
  11862. <div style="margin-left: 10px; height: 25px">{{ lang.ssTeacherComment }}</div>
  11863. </div>
  11864. <div @click="addPzDialog = false">
  11865. <img src="../../assets/close1.png" class="pzClose" alt="" />
  11866. </div>
  11867. </div>
  11868. <div class="addPzBox">
  11869. <div class="addPzCheck">
  11870. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  11871. >{{ lang.ssText }}</span
  11872. >
  11873. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">{{ lang.ssImage }}</span> -->
  11874. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  11875. >{{ lang.ssAudio }}</span
  11876. >
  11877. </div>
  11878. <div style="height: calc(100% - 95px)">
  11879. <!-- <textarea class="binfo_input pzConText" cols :placeholder="lang.ssEnterProjectKeyQuestion" v-model="pzConText"
  11880. v-if="pzType == 1"></textarea> -->
  11881. <editor-bar
  11882. class="binfo_input pzConText"
  11883. style="width: 100% !important"
  11884. :placeholder="lang.ssEnterTaskDesc"
  11885. v-model="pzConText"
  11886. @change="change"
  11887. v-if="pzType == 1"
  11888. ></editor-bar>
  11889. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  11890. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  11891. <div @click="addImg($event)">
  11892. <el-button type="primary">{{ lang.ssUploadImage }}</el-button>
  11893. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  11894. @change="beforeUpload1($event, 4)" />
  11895. </div>
  11896. </div> -->
  11897. </div>
  11898. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  11899. {{ lang.ssConfirm }}
  11900. </div>
  11901. </div>
  11902. </div>
  11903. <div v-if="proVisible" class="mask">
  11904. <div class="progressBox">
  11905. <!-- <div id="closePro" class="closeCss">
  11906. <img src="../../assets/icon/close.png" alt />
  11907. </div> -->
  11908. <div class="lbox">
  11909. <img src="../../assets/loading.gif" />{{ lang.ssUploading }}
  11910. </div>
  11911. <div style="margin-bottom: 10px">
  11912. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  11913. </div>
  11914. <el-progress
  11915. :text-inside="true"
  11916. :stroke-width="20"
  11917. :percentage="progress"
  11918. style="width: 80%"
  11919. ></el-progress>
  11920. </div>
  11921. </div>
  11922. <div v-if="proVisible2" class="mask">
  11923. <div class="progressBox">
  11924. <div class="lbox">
  11925. <img src="../../assets/loading.gif" />{{ lang.ssUploading }}
  11926. </div>
  11927. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  11928. </div>
  11929. </div>
  11930. <el-dialog :visible.sync="pictureDialog" size="tiny">
  11931. <img width="100%" :src="dialogImageUrl" alt />
  11932. </el-dialog>
  11933. <el-dialog
  11934. :title="noteName != '' ? noteName : lang.ssViewSurvey"
  11935. :visible.sync="dialogVisible5"
  11936. :append-to-body="true"
  11937. width="1000px"
  11938. :before-close="handleClose"
  11939. class="dialog_diy dialog_diy3"
  11940. >
  11941. <div>
  11942. <div
  11943. class="a_add_title"
  11944. style="
  11945. display: flex;
  11946. flex-direction: row;
  11947. align-items: center;
  11948. justify-content: center;
  11949. "
  11950. >
  11951. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitle }}:</div>
  11952. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  11953. </div>
  11954. <div class="a_addBox">
  11955. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  11956. {{ lang.ssQuestionContent }}
  11957. </div>
  11958. <div
  11959. class="a_add_box"
  11960. v-for="(item1, index1) in askJson.askCount"
  11961. :key="index1"
  11962. >
  11963. <div class="a_add_head">
  11964. <div style="display: flex">
  11965. <span class="askIndex"> {{ index1 + 1 }}</span>
  11966. <div>{{ lang.ssQuestionColon }}{{ askJson.askJson[index1].askstitle }}</div>
  11967. </div>
  11968. <img
  11969. v-if="askJson.askJson[index1].img"
  11970. :src="askJson.askJson[index1].img"
  11971. style="height: 300px; margin-top: 10px; max-width: 100%"
  11972. />
  11973. </div>
  11974. <div class="a_add_body">
  11975. <div class="a_add_input">
  11976. <el-radio-group
  11977. v-model="radio[index1]"
  11978. v-if="
  11979. askJson.askJson[index1].type == '1' ||
  11980. !askJson.askJson[index1].type
  11981. "
  11982. >
  11983. <el-radio
  11984. v-for="(item2, checkIndex) in askJson.askJson[index1]
  11985. .checkList"
  11986. :key="checkIndex"
  11987. :label="checkIndex"
  11988. :disabled="isAnswer"
  11989. class="redioStyle"
  11990. ><span v-html="item2"></span
  11991. ></el-radio>
  11992. </el-radio-group>
  11993. <el-checkbox-group
  11994. v-model="radio[index1]"
  11995. v-if="askJson.askJson[index1].type == '2'"
  11996. >
  11997. <el-checkbox
  11998. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  11999. .checkList"
  12000. :key="checkIndex1"
  12001. :label="checkIndex1"
  12002. :disabled="isAnswer"
  12003. class="redioStyle"
  12004. ><span v-html="item2"></span>
  12005. </el-checkbox>
  12006. </el-checkbox-group>
  12007. </div>
  12008. </div>
  12009. </div>
  12010. </div>
  12011. </div>
  12012. <span slot="footer" class="dialog-footer">
  12013. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  12014. >{{ lang.ssCancel }}</el-button
  12015. >
  12016. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  12017. >{{ lang.ssConfirm }}</el-button
  12018. >
  12019. </span>
  12020. </el-dialog>
  12021. <el-dialog
  12022. :title="noteName != '' ? noteName : lang.ssViewSurvey"
  12023. :visible.sync="dialogVisible5Teacher"
  12024. :append-to-body="true"
  12025. width="1000px"
  12026. :before-close="handleClose"
  12027. class="dialog_diy dialog_diy3"
  12028. >
  12029. <div>
  12030. <div class="w_name">
  12031. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  12032. </div>
  12033. <div
  12034. class="a_add_title"
  12035. style="
  12036. display: flex;
  12037. flex-direction: row;
  12038. align-items: center;
  12039. justify-content: center;
  12040. "
  12041. >
  12042. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitle }}:</div>
  12043. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12044. </div>
  12045. <div class="a_addBox">
  12046. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12047. {{ lang.ssQuestionContent }}
  12048. </div>
  12049. <div
  12050. class="a_add_box"
  12051. v-for="(item1, index1) in askJson.askCount"
  12052. :key="index1"
  12053. >
  12054. <div class="a_add_head">
  12055. <div style="display: flex">
  12056. <span class="askIndex">{{ index1 + 1 }}</span>
  12057. <div>{{ lang.ssQuestionColon }}{{ askJson.askJson[index1].askstitle }}</div>
  12058. </div>
  12059. <img
  12060. v-if="askJson.askJson[index1].img"
  12061. :src="askJson.askJson[index1].img"
  12062. style="height: 300px; margin-top: 10px; max-width: 100%"
  12063. />
  12064. </div>
  12065. <div class="a_add_body">
  12066. <div class="a_add_input">
  12067. <el-radio-group
  12068. v-model="radio[index1]"
  12069. v-if="
  12070. askJson.askJson[index1].type == '1' ||
  12071. !askJson.askJson[index1].type
  12072. "
  12073. >
  12074. <el-radio
  12075. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12076. .checkList"
  12077. :key="checkIndex"
  12078. :label="checkIndex"
  12079. :disabled="isAnswer"
  12080. class="redioStyle"
  12081. ><span v-html="item2"></span
  12082. ></el-radio>
  12083. </el-radio-group>
  12084. <el-checkbox-group
  12085. v-model="radio[index1]"
  12086. v-if="askJson.askJson[index1].type == '2'"
  12087. >
  12088. <el-checkbox
  12089. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12090. .checkList"
  12091. :key="checkIndex1"
  12092. :label="checkIndex1"
  12093. :disabled="isAnswer"
  12094. class="redioStyle"
  12095. ><span v-html="item2"></span>
  12096. </el-checkbox>
  12097. </el-checkbox-group>
  12098. </div>
  12099. </div>
  12100. </div>
  12101. </div>
  12102. </div>
  12103. <span slot="footer" class="dialog-footer">
  12104. <el-button
  12105. @click="dialogVisible5Teacher = false"
  12106. v-show="noteName == ''"
  12107. >{{ lang.ssCancel }}</el-button
  12108. >
  12109. <el-button
  12110. type="primary"
  12111. @click="addStudentAskTeacher"
  12112. v-show="noteName == ''"
  12113. >{{ lang.ssConfirm }}</el-button
  12114. >
  12115. </span>
  12116. </el-dialog>
  12117. <el-dialog
  12118. :title="noteName != '' ? noteName : lang.ssViewChoice"
  12119. :visible.sync="dialogVisibleChoice"
  12120. :append-to-body="true"
  12121. width="1000px"
  12122. :before-close="handleClose"
  12123. class="dialog_diy dialog_diy3"
  12124. >
  12125. <div>
  12126. <!-- <div class="a_add_title" style="
  12127. display: flex;
  12128. flex-direction: row;
  12129. align-items: center;
  12130. justify-content: center;
  12131. ">
  12132. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitle }}:</div>
  12133. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  12134. </div> -->
  12135. <div class="a_addBox">
  12136. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12137. {{ lang.ssQuestionContent }}
  12138. </div>
  12139. <div
  12140. class="a_add_box"
  12141. v-for="(item1, index1) in testJson.testCount"
  12142. :key="index1"
  12143. >
  12144. <div class="a_add_head">
  12145. <div style="display: flex;">
  12146. <span class="askIndex">{{ index1 + 1 }}</span>
  12147. <div
  12148. v-if="testJson.testJson[index1].type == '1'"
  12149. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12150. >
  12151. ({{ lang.ssSingleChoice }})
  12152. </div>
  12153. <div
  12154. v-if="testJson.testJson[index1].type == '2'"
  12155. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12156. >
  12157. ({{ lang.ssMultiChoice }})
  12158. </div>
  12159. <div class="renderedFor">{{ lang.ssQuestionColon }}<span v-html="testJson.testJson[index1].teststitle"></span></div>
  12160. </div>
  12161. <img
  12162. v-if="testJson.testJson[index1].img"
  12163. :src="testJson.testJson[index1].img"
  12164. style="height: 300px; margin-top: 10px; max-width: 100%"
  12165. />
  12166. </div>
  12167. <div
  12168. class="timuImgBox"
  12169. v-if="
  12170. testJson.testJson[index1].timuList &&
  12171. testJson.testJson[index1].timuList.length
  12172. "
  12173. >
  12174. <div
  12175. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12176. :key="tIndex"
  12177. class="timuImg"
  12178. @click.stop="previewImg(timg.src)"
  12179. >
  12180. <img :src="timg.src" alt="" />
  12181. </div>
  12182. </div>
  12183. <div class="a_add_body">
  12184. <div class="a_add_input">
  12185. <el-radio-group
  12186. v-model="radio[index1]"
  12187. v-if="testJson.testJson[index1].type == '1'"
  12188. >
  12189. <div class="radioBox">
  12190. <el-radio
  12191. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12192. .checkList"
  12193. :key="checkIndex"
  12194. :label="checkIndex"
  12195. :disabled="isAnswer"
  12196. class="redioStyle"
  12197. >
  12198. <div
  12199. style="margin-right: 10px"
  12200. v-if="item2 && item2.imgType && item2.imgType == 1"
  12201. >
  12202. <div class="inImg" @click.stop="previewImg(item2.src)">
  12203. <img :src="item2.src" alt="" />
  12204. </div>
  12205. </div>
  12206. <span v-else v-html="item2"></span>
  12207. </el-radio>
  12208. </div>
  12209. </el-radio-group>
  12210. <el-checkbox-group
  12211. v-model="radio[index1]"
  12212. v-if="testJson.testJson[index1].type == '2'"
  12213. >
  12214. <div class="radioBox">
  12215. <el-checkbox
  12216. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12217. .checkList"
  12218. :key="checkIndex"
  12219. :label="checkIndex"
  12220. :disabled="isAnswer"
  12221. class="redioStyle"
  12222. >
  12223. <div
  12224. style="margin-right: 10px"
  12225. v-if="item2 && item2.imgType && item2.imgType == 1"
  12226. >
  12227. <div class="inImg" @click.stop="previewImg(item2.src)">
  12228. <img :src="item2.src" alt="" />
  12229. </div>
  12230. </div>
  12231. <span v-else v-html="item2"></span>
  12232. </el-checkbox>
  12233. </div>
  12234. </el-checkbox-group>
  12235. </div>
  12236. </div>
  12237. </div>
  12238. </div>
  12239. </div>
  12240. <span slot="footer" class="dialog-footer">
  12241. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  12242. >{{ lang.ssCancel }}</el-button
  12243. >
  12244. <el-button
  12245. type="primary"
  12246. @click="addStudentTest"
  12247. v-show="noteName == ''"
  12248. >{{ lang.ssConfirm }}</el-button
  12249. >
  12250. </span>
  12251. </el-dialog>
  12252. <el-dialog
  12253. :title="noteName != '' ? noteName : lang.ssViewChoice"
  12254. :visible.sync="dialogVisibleChoiceTeacher"
  12255. :append-to-body="true"
  12256. width="1000px"
  12257. :before-close="handleClose"
  12258. class="dialog_diy dialog_diy3"
  12259. >
  12260. <div>
  12261. <div class="w_name">
  12262. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  12263. </div>
  12264. <div class="a_addBox">
  12265. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12266. {{ lang.ssQuestionContent }}
  12267. </div>
  12268. <div
  12269. class="a_add_box"
  12270. v-for="(item1, index1) in testJson.testCount"
  12271. :key="index1"
  12272. >
  12273. <div class="a_add_head">
  12274. <div style="display: flex">
  12275. <span class="askIndex">{{ index1 + 1 }}</span>
  12276. <div
  12277. v-if="testJson.testJson[index1].type == '1'"
  12278. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12279. >
  12280. ({{ lang.ssSingleChoice }})
  12281. </div>
  12282. <div
  12283. v-if="testJson.testJson[index1].type == '2'"
  12284. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12285. >
  12286. ({{ lang.ssMultiChoice }})
  12287. </div>
  12288. <div>{{ lang.ssQuestionColon }}{{ testJson.testJson[index1].teststitle }}</div>
  12289. </div>
  12290. <img
  12291. v-if="testJson.testJson[index1].img"
  12292. :src="testJson.testJson[index1].img"
  12293. style="height: 300px; margin-top: 10px; max-width: 100%"
  12294. />
  12295. </div>
  12296. <div
  12297. class="timuImgBox"
  12298. v-if="
  12299. testJson.testJson[index1].timuList &&
  12300. testJson.testJson[index1].timuList.length
  12301. "
  12302. >
  12303. <div
  12304. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12305. :key="tIndex"
  12306. class="timuImg"
  12307. @click.stop="previewImg(timg.src)"
  12308. >
  12309. <img :src="timg.src" alt="" />
  12310. </div>
  12311. </div>
  12312. <div class="a_add_body">
  12313. <div class="a_add_input">
  12314. <el-radio-group
  12315. v-model="radio[index1]"
  12316. v-if="testJson.testJson[index1].type == '1'"
  12317. >
  12318. <div class="radioBox">
  12319. <el-radio
  12320. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12321. .checkList"
  12322. :key="checkIndex"
  12323. :label="checkIndex"
  12324. :disabled="isAnswer"
  12325. class="redioStyle"
  12326. >
  12327. <div
  12328. style="margin-right: 10px"
  12329. v-if="item2 && item2.imgType && item2.imgType == 1"
  12330. >
  12331. <div class="inImg" @click.stop="previewImg(item2.src)">
  12332. <img :src="item2.src" alt="" />
  12333. </div>
  12334. </div>
  12335. <span v-else v-html="item2"></span>
  12336. </el-radio>
  12337. </div>
  12338. </el-radio-group>
  12339. <el-checkbox-group
  12340. v-model="radio[index1]"
  12341. v-if="testJson.testJson[index1].type == '2'"
  12342. >
  12343. <div class="radioBox">
  12344. <el-checkbox
  12345. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12346. .checkList"
  12347. :key="checkIndex"
  12348. :label="checkIndex"
  12349. :disabled="isAnswer"
  12350. class="redioStyle"
  12351. >
  12352. <div
  12353. style="margin-right: 10px"
  12354. v-if="item2 && item2.imgType && item2.imgType == 1"
  12355. >
  12356. <div class="inImg" @click.stop="previewImg(item2.src)">
  12357. <img :src="item2.src" alt="" />
  12358. </div>
  12359. </div>
  12360. <span v-else v-html="item2"></span>
  12361. </el-checkbox>
  12362. </div>
  12363. </el-checkbox-group>
  12364. </div>
  12365. </div>
  12366. </div>
  12367. </div>
  12368. </div>
  12369. <span slot="footer" class="dialog-footer">
  12370. <el-button
  12371. @click="dialogVisibleChoiceTeacher = false"
  12372. v-show="noteName == ''"
  12373. >{{ lang.ssCancel }}</el-button
  12374. >
  12375. <el-button
  12376. type="primary"
  12377. @click="addStudentTestTeacher"
  12378. v-show="noteName == ''"
  12379. >{{ lang.ssConfirm }}</el-button
  12380. >
  12381. </span>
  12382. </el-dialog>
  12383. <el-dialog
  12384. :title="lang.ssViewRichText"
  12385. :visible.sync="dialogVisible1"
  12386. :append-to-body="true"
  12387. width="500px"
  12388. :before-close="handleClose"
  12389. class="dialog_diy textCss"
  12390. >
  12391. <el-form style="font-size: 20px">
  12392. <el-form-item :label="lang.ssTextTitle" class="textTitle">
  12393. <div style="font-size: 20px">{{ text.name }}</div>
  12394. </el-form-item>
  12395. <div>{{ lang.ssRichTextContent }}</div>
  12396. <div
  12397. v-html="text.url"
  12398. style="font-size: 18px; padding: 40px 0 0 0"
  12399. ></div>
  12400. </el-form>
  12401. <span slot="footer" class="dialog-footer">
  12402. <el-button type="primary" @click="dialogVisible1 = false"
  12403. >{{ lang.ssConfirm }}</el-button
  12404. >
  12405. </span>
  12406. </el-dialog>
  12407. <el-dialog
  12408. :title="lang.ssFilePreview"
  12409. :visible.sync="dialogVisible3"
  12410. width="50%"
  12411. :before-close="handleClose"
  12412. class="dialog_diy"
  12413. :class="{ fullStyle: full }"
  12414. >
  12415. <div slot="title" class="header-title">
  12416. <div style="color: #fff">{{ lang.ssFilePreview }}</div>
  12417. <div style="position: absolute; top: 19px; right: 50px">
  12418. <img
  12419. src="../../assets/full.png"
  12420. style="height: 16px; cursor: pointer"
  12421. alt=""
  12422. @click="fullTools"
  12423. />
  12424. </div>
  12425. </div>
  12426. <pdf
  12427. v-if="showPDF"
  12428. :pdfUrl="pptImgUrl"
  12429. style="width: 100%; height: 520px; overflow: auto"
  12430. :class="{ fullStyle: full }"
  12431. ></pdf>
  12432. <iframe
  12433. v-else
  12434. :src="pptImgUrl"
  12435. frameborder="0"
  12436. width="100%"
  12437. height="600"
  12438. :class="{ fullStyle: full }"
  12439. ></iframe>
  12440. </el-dialog>
  12441. <el-dialog
  12442. :title="lang.ssFilePreview"
  12443. :visible.sync="dialogVisible6"
  12444. width="50%"
  12445. :before-close="handleClose"
  12446. class="dialog_diy"
  12447. >
  12448. <iframe
  12449. :src="pptImgUrl1"
  12450. frameborder="0"
  12451. width="100%"
  12452. height="600"
  12453. ></iframe>
  12454. </el-dialog>
  12455. <el-dialog
  12456. :title="lang.ssPrompt"
  12457. :visible.sync="dialogVisible4"
  12458. :append-to-body="true"
  12459. width="800px"
  12460. :before-close="handleClose"
  12461. class="dialog_diy notice"
  12462. >
  12463. <div>{{ lang.ssFeatureNotAvail }}</div>
  12464. <el-button type="primary" @click="dialogVisible4 = false">{{ lang.ssConfirm }}</el-button>
  12465. </el-dialog>
  12466. <el-dialog
  12467. :title="lang.ssQa"
  12468. :visible.sync="answerDialogVisible"
  12469. :append-to-body="true"
  12470. width="800px"
  12471. :before-close="handleClose"
  12472. class="dialog_diy"
  12473. >
  12474. <div>
  12475. <div
  12476. style="
  12477. display: flex;
  12478. flex-wrap: nowrap;
  12479. flex-direction: column;
  12480. position: relative;
  12481. "
  12482. >
  12483. <div class="queTop" style="padding: 20px 0 20px 0">
  12484. <div class="question">
  12485. <img src="../../assets/icon/question.png" alt />
  12486. </div>
  12487. <div class="queTitle">
  12488. <div style="min-width: 60px">{{ lang.ssQuestionTitleColon }}</div>
  12489. <div>{{ answerQ }}</div>
  12490. </div>
  12491. </div>
  12492. <div class="ediBottom">
  12493. <textarea
  12494. rows="6"
  12495. class="binfo_input"
  12496. cols
  12497. style="width: 95%; height: 120px"
  12498. v-model="questionAnswer"
  12499. ></textarea>
  12500. </div>
  12501. </div>
  12502. </div>
  12503. <div slot="footer">
  12504. <el-button @click="answerDialogVisible = false">{{ lang.ssCancel }}</el-button>
  12505. <el-button type="primary" @click="addQuestion">{{ lang.ssSubmit }}</el-button>
  12506. </div>
  12507. </el-dialog>
  12508. <el-dialog
  12509. :title="lang.ssQa"
  12510. :visible.sync="answerDialogVisibleTeacher"
  12511. :append-to-body="true"
  12512. width="800px"
  12513. :before-close="handleClose"
  12514. class="dialog_diy"
  12515. >
  12516. <div>
  12517. <div class="w_name">
  12518. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  12519. </div>
  12520. <div
  12521. style="
  12522. display: flex;
  12523. flex-wrap: nowrap;
  12524. flex-direction: column;
  12525. position: relative;
  12526. "
  12527. >
  12528. <div class="queTop" style="padding: 20px 0 20px 0">
  12529. <div class="question">
  12530. <img src="../../assets/icon/question.png" alt />
  12531. </div>
  12532. <div class="queTitle">
  12533. <div style=" min-width: 60px">{{ lang.ssQuestionTitleColon }}</div>
  12534. <div>{{ answerQ }}</div>
  12535. </div>
  12536. </div>
  12537. <div class="ediBottom">
  12538. <textarea
  12539. rows="6"
  12540. class="binfo_input"
  12541. cols
  12542. style="width: 95%; height: 120px"
  12543. v-model="questionAnswer"
  12544. ></textarea>
  12545. </div>
  12546. </div>
  12547. </div>
  12548. <div slot="footer">
  12549. <el-button @click="answerDialogVisibleTeacher = false">{{ lang.ssCancel }}</el-button>
  12550. <el-button type="primary" @click="addQuestionTeacher">{{ lang.ssSubmit }}</el-button>
  12551. </div>
  12552. </el-dialog>
  12553. <el-dialog
  12554. :title="lang.ssCountdown"
  12555. :visible.sync="timeDialogVisible"
  12556. :append-to-body="true"
  12557. width="800px"
  12558. :before-close="handleClose"
  12559. class="dialog_diy"
  12560. >
  12561. <div>
  12562. <div style="margin-bottom: 20px; color: #999">
  12563. {{ lang.ssCountdownHint }}
  12564. </div>
  12565. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  12566. </div>
  12567. <div slot="footer">
  12568. <el-button @click="timeDialogVisible = false">{{ lang.ssCloseBtn }}</el-button>
  12569. </div>
  12570. </el-dialog>
  12571. <el-dialog
  12572. :title="lang.ssPermissionSetting"
  12573. :visible.sync="juriVisible"
  12574. :append-to-body="true"
  12575. width="400px"
  12576. :before-close="handleClose"
  12577. class="dialog_diy"
  12578. >
  12579. <div>
  12580. <div class="open_box">
  12581. <div class="switch_box">
  12582. <span>{{ lang.ssAllowViewAllHomework }}</span>
  12583. <el-switch
  12584. v-model="sIsOpen"
  12585. active-text=""
  12586. class="switchCss"
  12587. @change="updateSLook"
  12588. ></el-switch>
  12589. </div>
  12590. <div
  12591. class="switch_box"
  12592. v-if="
  12593. (courseDetail.userid == userid ||
  12594. (courseDetail.course_teacher &&
  12595. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  12596. "
  12597. >
  12598. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  12599. <span>{{ lang.ssProhibitViewStage }}</span>
  12600. <el-switch
  12601. v-model="IsLookOpen"
  12602. active-text=""
  12603. class="switchCss"
  12604. @change="updateLookOpen"
  12605. ></el-switch>
  12606. </div>
  12607. <div class="switch_box" v-if=" (courseDetail.userid == userid ||
  12608. (courseDetail.course_teacher &&
  12609. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen">
  12610. <span>{{ lang.ssEnableFollowMode }}</span>
  12611. <el-switch
  12612. v-model="IsFollow"
  12613. active-text=""
  12614. class="switchCss"
  12615. @change="updateFollow"
  12616. ></el-switch>
  12617. </div>
  12618. <div class="switch_box" v-if="courseDetail.userid == userid">
  12619. <span>{{ lang.ssAllowViewContent }}</span>
  12620. <el-switch
  12621. v-model="IsStulook"
  12622. active-text=""
  12623. class="switchCss"
  12624. @change="updateIsStulook"
  12625. ></el-switch>
  12626. </div>
  12627. </div>
  12628. </div>
  12629. <div slot="footer">
  12630. <el-button
  12631. style="background: #409efe; color: #fff"
  12632. @click="juriVisible = false"
  12633. >{{ lang.ssCloseBtn }}</el-button
  12634. >
  12635. </div>
  12636. </el-dialog>
  12637. <el-dialog
  12638. :title="lang.ssViewVideo"
  12639. :visible.sync="videoVisible"
  12640. :append-to-body="true"
  12641. width="1000px"
  12642. :before-close="handleClose"
  12643. class="dialog_diy1"
  12644. >
  12645. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  12646. <video-player
  12647. class="video-player vjs-custom-skin"
  12648. :playsinline="true"
  12649. :options="videoDetail"
  12650. @play="onPlayerPlay($event)"
  12651. style="width: 100%; height: 100%"
  12652. ></video-player>
  12653. </div>
  12654. <div slot="footer">
  12655. <el-button
  12656. style="background: #409efe; color: #fff"
  12657. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  12658. >
  12659. {{ lang.ssCloseBtn }}</el-button
  12660. >
  12661. </div>
  12662. </el-dialog>
  12663. <el-dialog
  12664. :title="lang.ssViewDetails"
  12665. :visible.sync="commentDialogVisible"
  12666. :append-to-body="true"
  12667. width="800px"
  12668. :before-close="handleClose"
  12669. class="dialog_diy"
  12670. >
  12671. <div class="commentTop">
  12672. <div class="studentDetail">
  12673. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  12674. <div class="nameAndTime">
  12675. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  12676. <div>{{ commentDetail.time }}</div>
  12677. </div>
  12678. <div
  12679. class="returnBtn"
  12680. style="margin-left: auto; width: 80px"
  12681. v-if="
  12682. commentDetail.works &&
  12683. commentDetail.type == 0 &&
  12684. (tType == 1 || tType == 4)
  12685. "
  12686. @click="
  12687. showPicturePaint(
  12688. commentDetail.img ? commentDetail.img : commentDetail.works
  12689. )
  12690. "
  12691. >
  12692. {{ lang.ssTeacherAnnotation }}
  12693. </div>
  12694. </div>
  12695. <div
  12696. class="worksAnswer"
  12697. v-if="commentDetail.works && commentDetail.type == 2"
  12698. >
  12699. {{ JSON.parse(commentDetail.works)[0].answer }}
  12700. </div>
  12701. <div
  12702. class="worksAnswer"
  12703. v-if="commentDetail.works && commentDetail.type == 1"
  12704. >
  12705. <img
  12706. src="../../assets/teacherWork.png"
  12707. v-if="commentDetail.ateacher"
  12708. class="w_teachert"
  12709. />
  12710. <pdf
  12711. v-if="showPDF"
  12712. :pdfUrl="pptImgUrl"
  12713. style="width: 100%; height: 520px; overflow: auto"
  12714. :class="{ fullStyle: full }"
  12715. ></pdf>
  12716. <iframe
  12717. v-else
  12718. :src="pptImgUrl"
  12719. frameborder="0"
  12720. width="100%"
  12721. height="600"
  12722. :class="{ fullStyle: full }"
  12723. ></iframe>
  12724. </div>
  12725. <div
  12726. class="worksAnswer"
  12727. v-if="commentDetail.works && commentDetail.type == 0"
  12728. >
  12729. <img
  12730. src="../../assets/teacherWork.png"
  12731. v-if="commentDetail.ateacher"
  12732. class="w_teachert"
  12733. style="right: 105px"
  12734. />
  12735. <img
  12736. :src="commentDetail.works"
  12737. alt=""
  12738. @click="previewImg(commentDetail.works)"
  12739. />
  12740. </div>
  12741. <div
  12742. class="worksAnswer"
  12743. v-if="commentDetail.works && commentDetail.type == 3"
  12744. >
  12745. <img
  12746. src="../../assets/teacherWork.png"
  12747. v-if="commentDetail.ateacher"
  12748. class="w_teachert"
  12749. />
  12750. <video-player
  12751. class="video-player vjs-custom-skin"
  12752. :playsinline="true"
  12753. :options="videoDetail"
  12754. @play="onPlayerPlay($event)"
  12755. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  12756. ></video-player>
  12757. </div>
  12758. <div
  12759. class="worksAnswer"
  12760. v-if="commentDetail.works && commentDetail.type == 10"
  12761. >
  12762. <div class="cont" v-html="commentDetail.works.text"></div>
  12763. </div>
  12764. <div
  12765. class="worksAnswer codeFileBox"
  12766. v-if="commentDetail.works && commentDetail.type == 12"
  12767. @click="downloadFile(commentDetail.works)"
  12768. >
  12769. <img src="../../assets/icon/codeFile.png" />
  12770. <div>{{ lang.ssClickDownloadFile }}</div>
  12771. </div>
  12772. <div
  12773. class="worksAnswer codeFileBox"
  12774. v-if="commentDetail.works && commentDetail.type == 15"
  12775. @click="
  12776. openCocoPi(
  12777. 57,
  12778. commentIndexJson.toolIndex,
  12779. commentDetail.userid,
  12780. commentDetail.sName
  12781. )
  12782. "
  12783. >
  12784. <img src="../../assets/icon/codeFile.png" />
  12785. <div>{{ lang.ssClickOpenCocoPi }}</div>
  12786. </div>
  12787. <div
  12788. class="worksAnswer"
  12789. v-if="commentDetail.works && commentDetail.type == 13"
  12790. >
  12791. <div v-html="JSON.parse(commentDetail.works).text"></div>
  12792. </div>
  12793. <div
  12794. class="worksAnswer"
  12795. v-if="commentDetail.works && commentDetail.type == 4"
  12796. >
  12797. <div class="evalCss">
  12798. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  12799. <div class="middleBox" v-if="eScore.eStar">
  12800. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  12801. <div class="nameAndrate">
  12802. <div>{{ e.value }}</div>
  12803. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  12804. </div>
  12805. <div v-if="e.detail">{{ e.detail }}</div>
  12806. </div>
  12807. <div class="bz">
  12808. <textarea
  12809. disabled
  12810. rows="4"
  12811. class="pj"
  12812. style="
  12813. padding: 10px 5px;
  12814. width: 70%;
  12815. background: #f7f6f9;
  12816. font-size: 14px;
  12817. text-indent: 10px;
  12818. color: #000;
  12819. "
  12820. cols
  12821. v-model="eScore.eBzText"
  12822. :placeholder="lang.ssEnterEvalContent"
  12823. ></textarea>
  12824. </div>
  12825. </div>
  12826. </div>
  12827. </div>
  12828. <div class="comment">
  12829. <div class="commentList">
  12830. <div class="commentImg">
  12831. <img
  12832. @click="
  12833. isLikes(
  12834. commentDetail.wid,
  12835. userid,
  12836. 1,
  12837. null,
  12838. commentDetail.isLikes,
  12839. commentDetail.sName
  12840. )
  12841. "
  12842. :src="commentDetail.isLikes == true ? likes : noLikes"
  12843. alt=""
  12844. />
  12845. </div>
  12846. <div>{{ commentDetail.likesCount }}</div>
  12847. </div>
  12848. <div class="commentList">
  12849. <div class="commentImg">
  12850. <img src="../../assets/icon/comment/comment.png" alt="" />
  12851. </div>
  12852. <div>{{ commentDetail.commentCount }}</div>
  12853. </div>
  12854. </div>
  12855. <div class="drawPBox" v-if="commentDetail.img">
  12856. <span>{{ lang.ssTeacherAnnotation }}</span>
  12857. <img
  12858. :src="commentDetail.img"
  12859. alt=""
  12860. @click="previewImg(commentDetail.img)"
  12861. />
  12862. <span
  12863. class="deleteImg"
  12864. v-if="tType == 1 || tType == 4"
  12865. @click.stop="deletePicturePaint(commentDetail.wid)"
  12866. style="
  12867. font-size: 14px;
  12868. width: auto !important;
  12869. color: #b4b4b4;
  12870. top: unset;
  12871. bottom: 0;
  12872. border: none;
  12873. padding: 0;
  12874. height: auto !important;
  12875. margin: 0;
  12876. "
  12877. >{{ lang.ssDelete }}</span
  12878. >
  12879. </div>
  12880. </div>
  12881. <div class="commentBox">
  12882. <div class="pl">{{ lang.ssCommentLabel }}</div>
  12883. <div style="max-height: 200px; overflow: auto">
  12884. <div
  12885. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  12886. style="padding: 10px 0 0 0"
  12887. >
  12888. <div
  12889. class="studentDetail"
  12890. style="padding-top: 10px"
  12891. v-for="(co, coIndex) in commentDetail.commentJson"
  12892. :key="coIndex"
  12893. >
  12894. <div class="tx" style="min-width: 50px">
  12895. <img src="../../assets/avatar.png" alt="" />
  12896. </div>
  12897. <div class="plPerson">
  12898. <div class="plName">
  12899. <div>{{ co.commentPeople }}</div>
  12900. <div style="margin-left: 5px">
  12901. {{ co.commentTime }}
  12902. </div>
  12903. <div
  12904. class="deleteComment"
  12905. v-if="userid == co.userid"
  12906. @click="deleteComment(co.wid)"
  12907. >
  12908. {{ lang.ssDelete }}
  12909. </div>
  12910. </div>
  12911. <div class="plContent">{{ co.commentText }}</div>
  12912. </div>
  12913. </div>
  12914. </div>
  12915. <div v-else style="padding: 10px 0 0 0">{{ lang.ssNoComments }}</div>
  12916. </div>
  12917. </div>
  12918. <div style="margin-top: 10px">
  12919. <div class="displayBox">
  12920. <div
  12921. style="
  12922. color: #556db4;
  12923. font-size: 14px;
  12924. font-weight: bold;
  12925. padding-bottom: 10px;
  12926. "
  12927. >
  12928. {{ lang.ssEvaluation }}
  12929. </div>
  12930. <div class="easy_comment" v-if="false">
  12931. <div
  12932. v-for="(p, pIndex) in PlTextList"
  12933. :key="pIndex"
  12934. @click="fastText(p, 1)"
  12935. >
  12936. {{ p }}
  12937. </div>
  12938. </div>
  12939. </div>
  12940. <div>
  12941. <textarea
  12942. rows="3"
  12943. class="pj"
  12944. style="padding: 10px 5px"
  12945. cols
  12946. v-model="commentText"
  12947. :placeholder="lang.ssEnterComment"
  12948. ></textarea>
  12949. </div>
  12950. </div>
  12951. <div slot="footer">
  12952. <el-button
  12953. @click="
  12954. (commentDialogVisible = false),
  12955. (commentIndexJson = {}),
  12956. videoDetail.sources && videoDetail.sources[0]
  12957. ? (videoDetail.sources[0].src = '')
  12958. : ''
  12959. "
  12960. >{{ lang.ssCancel }}</el-button
  12961. >
  12962. <el-button
  12963. type="primary"
  12964. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  12965. >{{ lang.ssConfirm }}</el-button
  12966. >
  12967. </div>
  12968. </el-dialog>
  12969. <el-dialog
  12970. :title="lang.ssViewDoc"
  12971. :visible.sync="fullDialogVisible"
  12972. :append-to-body="true"
  12973. width="100%"
  12974. :before-close="handleClose"
  12975. :show-close="false"
  12976. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  12977. >
  12978. <div slot="title" class="header-title">
  12979. <div v-if="fulltype == 4" style="color: #fff">{{ lang.ssAIApplication }}</div>
  12980. <div v-else style="color: #fff">{{ lang.ssViewDoc }}</div>
  12981. <div
  12982. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  12983. style="
  12984. cursor: pointer;
  12985. position: absolute;
  12986. top: 20px;
  12987. right: 20px;
  12988. color: #fff;
  12989. "
  12990. >
  12991. {{ lang.ssExitFullscreen }}
  12992. </div>
  12993. </div>
  12994. <div style="height: 100%;position: relative;">
  12995. <el-button
  12996. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  12997. size="medium"
  12998. type="primary"
  12999. @click="
  13000. () => {
  13001. (fullDialogVisible = false),
  13002. changeSplitScreenBehavior({ code: 99 });
  13003. }
  13004. "
  13005. style="
  13006. cursor: pointer;
  13007. position: absolute;
  13008. top: 10px;
  13009. right: 20px;
  13010. color: #fff;
  13011. "
  13012. >
  13013. {{ lang.ssExitFullscreen }}
  13014. </el-button>
  13015. <div
  13016. class="wheel"
  13017. v-if="fulltype == 1"
  13018. style="
  13019. box-shadow: 0 0 6px 1px #f2f2f2;
  13020. height:100%;
  13021. width: 100%;
  13022. background: #f1f1f1;
  13023. "
  13024. >
  13025. <div class="title" style="width: 100%; box-sizing: border-box">
  13026. {{ lang.ssViewDoc }}
  13027. </div>
  13028. <el-form class="textBox" style="height: 90%">
  13029. <el-form-item class="textTitle">
  13030. <div style="font-size: 22px">
  13031. {{ fullUrl.name }}
  13032. </div>
  13033. </el-form-item>
  13034. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  13035. <div
  13036. v-html="fullUrl.url"
  13037. class="textContent"
  13038. style="height: auto"
  13039. ></div>
  13040. </el-form>
  13041. </div>
  13042. <div
  13043. class="wheel"
  13044. v-else-if="
  13045. (fulltype == 2 || fulltype == 4) &&
  13046. fullUrl.indexOf(
  13047. 'https://view.officeapps.live.com/op/view.aspx?src='
  13048. ) != -1
  13049. "
  13050. style="width: 100%;height:100%; margin: 0 auto"
  13051. >
  13052. <iframe
  13053. style="width: 100%; height: 100%; border: none"
  13054. :src="fullUrl"
  13055. ></iframe>
  13056. </div>
  13057. <iframe
  13058. style="width: 100%; height: 100%; border: none"
  13059. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  13060. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo.cn')!=-1)"
  13061. :src="fullUrl"
  13062. ></iframe>
  13063. <iframe
  13064. style="width: 100%; height: 100%; border: none"
  13065. security="restricted"
  13066. v-else-if="(fulltype == 2 || fulltype == 4)"
  13067. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13068. :src="fullUrl"
  13069. ></iframe>
  13070. <pdf
  13071. v-else-if="fulltype == 3"
  13072. :pdfUrl="fullUrl"
  13073. style="width: 100%; height: 100%; overflow: auto"
  13074. ></pdf>
  13075. <iframe
  13076. style="width: 100%; height: 100%; border: none"
  13077. security="restricted"
  13078. v-if="(fulltype == 16) && (fullUrl.indexOf('cocorobo.cn')!=-1)"
  13079. :src="fullUrl"
  13080. ></iframe>
  13081. <iframe
  13082. style="width: 100%; height: 100%; border: none"
  13083. security="restricted"
  13084. v-else
  13085. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13086. :src="fullUrl"
  13087. ></iframe>
  13088. </div>
  13089. <!-- <div slot="footer">
  13090. <el-button @click="fullDialogVisible = false">{{ lang.ssCloseBtn }}</el-button>
  13091. </div> -->
  13092. </el-dialog>
  13093. <el-dialog
  13094. :title="lang.ssPersonalEval"
  13095. :visible.sync="studentEvalDialogVisible"
  13096. :append-to-body="true"
  13097. width="800px"
  13098. :before-close="handleClose"
  13099. class="dialog_diy"
  13100. >
  13101. <div class="evalCss">
  13102. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  13103. <div class="middleBox" v-if="eScore.eStar">
  13104. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13105. <div class="nameAndrate">
  13106. <div>{{ e.value }}</div>
  13107. <el-rate
  13108. v-model="eScore.eStar[eIndex]"
  13109. :disabled="isStar"
  13110. ></el-rate>
  13111. </div>
  13112. <div v-if="e.detail">{{ e.detail }}</div>
  13113. </div>
  13114. <div class="easy_comment" v-if="false">
  13115. <div
  13116. v-for="(p, pIndex) in PlTextList"
  13117. :key="pIndex"
  13118. @click="fastText(p, 2)"
  13119. >
  13120. {{ p }}
  13121. </div>
  13122. </div>
  13123. <div class="bz">
  13124. <textarea
  13125. :disabled="isStar"
  13126. rows="4"
  13127. class="pj"
  13128. style="
  13129. padding: 10px 5px;
  13130. width: 70%;
  13131. background: #f7f6f9;
  13132. font-size: 14px;
  13133. text-indent: 10px;
  13134. "
  13135. cols
  13136. v-model="eScore.eBzText"
  13137. :placeholder="lang.ssEnterEvalContent"
  13138. ></textarea>
  13139. </div>
  13140. </div>
  13141. </div>
  13142. <div slot="footer">
  13143. <el-button @click="studentEvalDialogVisible = false">{{ lang.ssCancel }}</el-button>
  13144. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  13145. >{{ lang.ssConfirm }}</el-button
  13146. >
  13147. </div>
  13148. </el-dialog>
  13149. <el-dialog
  13150. :title="lang.ssPersonalEval"
  13151. :visible.sync="studentEvalDialogVisibleTeacher"
  13152. :append-to-body="true"
  13153. width="800px"
  13154. :before-close="handleClose"
  13155. class="dialog_diy"
  13156. >
  13157. <div class="w_name">
  13158. {{ lang.ssStudentName }}<span>{{ sStudent.student }}</span>
  13159. </div>
  13160. <div class="evalCss">
  13161. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  13162. <div class="middleBox" v-if="eScore.eStar">
  13163. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13164. <div class="nameAndrate">
  13165. <div>{{ e.value }}</div>
  13166. <el-rate
  13167. v-model="eScore.eStar[eIndex]"
  13168. :disabled="isStar"
  13169. ></el-rate>
  13170. </div>
  13171. <div v-if="e.detail">{{ e.detail }}</div>
  13172. </div>
  13173. <div class="easy_comment" v-if="false">
  13174. <div
  13175. v-for="(p, pIndex) in PlTextList"
  13176. :key="pIndex"
  13177. @click="fastText(p, 2)"
  13178. >
  13179. {{ p }}
  13180. </div>
  13181. </div>
  13182. <div class="bz">
  13183. <textarea
  13184. :disabled="isStar"
  13185. rows="4"
  13186. class="pj"
  13187. style="
  13188. padding: 10px 5px;
  13189. width: 70%;
  13190. background: #f7f6f9;
  13191. font-size: 14px;
  13192. text-indent: 10px;
  13193. "
  13194. cols
  13195. v-model="eScore.eBzText"
  13196. :placeholder="lang.ssEnterEvalContent"
  13197. ></textarea>
  13198. </div>
  13199. </div>
  13200. </div>
  13201. <div slot="footer">
  13202. <el-button @click="studentEvalDialogVisibleTeacher = false"
  13203. >{{ lang.ssCancel }}</el-button
  13204. >
  13205. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  13206. >{{ lang.ssConfirm }}</el-button
  13207. >
  13208. </div>
  13209. </el-dialog>
  13210. <el-dialog
  13211. :title="lang.ssMatch"
  13212. :visible.sync="dialogVisibleSelect"
  13213. :append-to-body="true"
  13214. width="90%"
  13215. :before-close="handleClose"
  13216. class="dialog_diy dialog_diy3"
  13217. >
  13218. <div v-if="selectJson">
  13219. <div class="select_box2">
  13220. <div class="select_box2_title">
  13221. <div>{{ lang.ssMatch }}</div>
  13222. <div>{{ lang.ssSelectCorrespondingAnswer }}</div>
  13223. </div>
  13224. <div class="select_box2_box">
  13225. <div class="select_box2_img">
  13226. <img
  13227. :src="selectJson.url"
  13228. @click="previewImg(selectJson.url)"
  13229. alt=""
  13230. />
  13231. </div>
  13232. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13233. <div style="padding-top: 15px">
  13234. <div class="select_answer_title" v-if="isSelect">
  13235. {{ selectAnswer.stu }}
  13236. </div>
  13237. <div class="select_answer_title" v-else>
  13238. {{ lang.ssSelectAnswerByQuestion }}
  13239. </div>
  13240. <div
  13241. class="select_box2_answer_box"
  13242. v-for="(item2, checkIndex) in selectJson.select"
  13243. :key="checkIndex"
  13244. >
  13245. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13246. <el-select
  13247. :disabled="isSelect"
  13248. v-model="selectAnswer.answer[checkIndex]"
  13249. :placeholder="lang.ssSelectCorrectAnswer"
  13250. >
  13251. <el-option
  13252. v-for="(e, eIndex) in selectJson.select"
  13253. :key="eIndex"
  13254. :label="e"
  13255. :value="eIndex"
  13256. >
  13257. </el-option>
  13258. </el-select>
  13259. </div>
  13260. </div>
  13261. <div
  13262. class="rightAnswerCss"
  13263. v-if="isSelect && (tType == 1 || tType == 4)"
  13264. >
  13265. <div
  13266. v-for="(a, aIndex) in selectJson.answer"
  13267. :key="aIndex"
  13268. class="rightAnswer"
  13269. >
  13270. <div
  13271. v-if="selectAnswer.answer[aIndex] === a"
  13272. style="color: #767de1"
  13273. >
  13274. {{ lang.ssAnswerCorrect }}
  13275. </div>
  13276. <div v-else>{{ lang.ssAnswerWrong }}</div>
  13277. <div
  13278. style="margin-left: 10px"
  13279. v-if="selectAnswer.answer[aIndex] !== a"
  13280. >
  13281. {{ lang.ssCorrectAnswer }}
  13282. </div>
  13283. <div
  13284. :class="
  13285. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13286. "
  13287. >
  13288. {{ selectJson.select[a] }}
  13289. </div>
  13290. </div>
  13291. </div>
  13292. </div>
  13293. <div class="upAnswerCss">
  13294. <el-button
  13295. type="primary"
  13296. @click="addSelectAnswer"
  13297. v-if="!isSelect"
  13298. >{{ lang.ssSubmitAnswer }}</el-button
  13299. >
  13300. </div>
  13301. </div>
  13302. </div>
  13303. </div>
  13304. </el-dialog>
  13305. <el-dialog
  13306. :title="lang.ssMatch"
  13307. :visible.sync="dialogVisibleSelectTeacher"
  13308. :append-to-body="true"
  13309. width="90%"
  13310. :before-close="handleClose"
  13311. class="dialog_diy dialog_diy3"
  13312. >
  13313. <div v-if="selectJson">
  13314. <div class="w_name">
  13315. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  13316. </div>
  13317. <div class="select_box2">
  13318. <div class="select_box2_title">
  13319. <div>{{ lang.ssMatch }}</div>
  13320. <div>{{ lang.ssSelectCorrespondingAnswer }}</div>
  13321. </div>
  13322. <div class="select_box2_box">
  13323. <div class="select_box2_img">
  13324. <img
  13325. :src="selectJson.url"
  13326. @click="previewImg(selectJson.url)"
  13327. alt=""
  13328. />
  13329. </div>
  13330. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13331. <div style="padding-top: 15px">
  13332. <div class="select_answer_title" v-if="isSelect">
  13333. {{ selectAnswer.stu }}
  13334. </div>
  13335. <div class="select_answer_title" v-else>
  13336. {{ lang.ssSelectAnswerByQuestion }}
  13337. </div>
  13338. <div
  13339. class="select_box2_answer_box"
  13340. v-for="(item2, checkIndex) in selectJson.select"
  13341. :key="checkIndex"
  13342. >
  13343. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13344. <el-select
  13345. :disabled="isSelect"
  13346. v-model="selectAnswer.answer[checkIndex]"
  13347. :placeholder="lang.ssSelectCorrectAnswer"
  13348. >
  13349. <el-option
  13350. v-for="(e, eIndex) in selectJson.select"
  13351. :key="eIndex"
  13352. :label="e"
  13353. :value="eIndex"
  13354. >
  13355. </el-option>
  13356. </el-select>
  13357. </div>
  13358. </div>
  13359. <div
  13360. class="rightAnswerCss"
  13361. v-if="isSelect && (tType == 1 || tType == 4)"
  13362. >
  13363. <div
  13364. v-for="(a, aIndex) in selectJson.answer"
  13365. :key="aIndex"
  13366. class="rightAnswer"
  13367. >
  13368. <div
  13369. v-if="selectAnswer.answer[aIndex] === a"
  13370. style="color: #767de1"
  13371. >
  13372. {{ lang.ssAnswerCorrect }}
  13373. </div>
  13374. <div v-else>{{ lang.ssAnswerWrong }}</div>
  13375. <div
  13376. style="margin-left: 10px"
  13377. v-if="selectAnswer.answer[aIndex] !== a"
  13378. >
  13379. {{ lang.ssCorrectAnswer }}
  13380. </div>
  13381. <div
  13382. :class="
  13383. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13384. "
  13385. >
  13386. {{ selectJson.select[a] }}
  13387. </div>
  13388. </div>
  13389. </div>
  13390. </div>
  13391. <div class="upAnswerCss">
  13392. <el-button
  13393. type="primary"
  13394. @click="addSelectAnswerTeacher"
  13395. v-if="!isSelect"
  13396. >{{ lang.ssSubmitAnswer }}</el-button
  13397. >
  13398. </div>
  13399. </div>
  13400. </div>
  13401. </div>
  13402. </el-dialog>
  13403. <el-dialog
  13404. :title="lang.ssTeacherScoring"
  13405. :visible.sync="dialogVisibleScore"
  13406. :append-to-body="true"
  13407. width="800px"
  13408. :before-close="handleClose"
  13409. class="dialog_diy"
  13410. >
  13411. <div>
  13412. <div class="studentDetail">
  13413. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  13414. <div class="nameAndTime">
  13415. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  13416. <div>{{ commentDetail.time }}</div>
  13417. </div>
  13418. </div>
  13419. <div
  13420. class="worksAnswer"
  13421. v-if="commentDetail.works && commentDetail.type == 2"
  13422. >
  13423. {{ JSON.parse(commentDetail.works)[0].answer }}
  13424. </div>
  13425. <div
  13426. class="worksAnswer"
  13427. v-if="commentDetail.works && commentDetail.type == 1"
  13428. >
  13429. <pdf
  13430. v-if="showPDF"
  13431. :pdfUrl="pptImgUrl"
  13432. style="width: 100%; height: 520px; overflow: auto"
  13433. :class="{ fullStyle: full }"
  13434. ></pdf>
  13435. <iframe
  13436. v-else
  13437. :src="pptImgUrl"
  13438. frameborder="0"
  13439. width="100%"
  13440. height="600"
  13441. :class="{ fullStyle: full }"
  13442. ></iframe>
  13443. </div>
  13444. <div
  13445. class="worksAnswer"
  13446. v-if="commentDetail.works && commentDetail.type == 0"
  13447. >
  13448. <img
  13449. :src="commentDetail.works"
  13450. alt=""
  13451. @click="previewImg(commentDetail.works)"
  13452. />
  13453. </div>
  13454. <div
  13455. class="worksAnswer"
  13456. v-if="commentDetail.works && commentDetail.type == 3"
  13457. >
  13458. <video-player
  13459. class="video-player vjs-custom-skin"
  13460. :playsinline="true"
  13461. :options="videoDetail"
  13462. @play="onPlayerPlay($event)"
  13463. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13464. ></video-player>
  13465. </div>
  13466. <div
  13467. class="worksAnswer codeFileBox"
  13468. v-if="commentDetail.works && commentDetail.type == 12"
  13469. @click="downloadFile(commentDetail.works)"
  13470. >
  13471. <img src="../../assets/icon/codeFile.png" />
  13472. <div>{{ lang.ssClickDownloadFile }}</div>
  13473. </div>
  13474. <div
  13475. class="worksAnswer codeFileBox"
  13476. v-if="commentDetail.works && commentDetail.type == 15"
  13477. @click="
  13478. openCocoPi(
  13479. 57,
  13480. commentIndexJson.toolIndex,
  13481. commentDetail.userid,
  13482. commentDetail.sName
  13483. )
  13484. "
  13485. >
  13486. <img src="../../assets/icon/codeFile.png" />
  13487. <div>{{ lang.ssClickOpenCocoPi }}</div>
  13488. </div>
  13489. <div
  13490. class="worksAnswer"
  13491. v-if="commentDetail.works && commentDetail.type == 13"
  13492. >
  13493. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13494. </div>
  13495. <div class="scoreBox">
  13496. <span class="t">{{ lang.ssEnterScore }}</span>
  13497. <el-input-number
  13498. :disabled="courseDetail.userid != userid"
  13499. v-model="wScore"
  13500. :controls="false"
  13501. :min="0"
  13502. :max="100"
  13503. ></el-input-number>
  13504. </div>
  13505. <div class="scoreDetailBox">
  13506. <span class="t">{{ lang.ssScoringComment }}</span>
  13507. <el-input
  13508. type="textarea"
  13509. :rows="5"
  13510. :disabled="courseDetail.userid != userid"
  13511. resize="none"
  13512. v-model="scoreDetail"
  13513. :placeholder="lang.ssEnterStudentEvaluation"
  13514. >
  13515. </el-input>
  13516. </div>
  13517. </div>
  13518. <span slot="footer" class="dialog-footer">
  13519. <el-button
  13520. @click="
  13521. (dialogVisibleScore = false),
  13522. (commentIndexJson = {}),
  13523. videoDetail.sources && videoDetail.sources[0]
  13524. ? (videoDetail.sources[0].src = '')
  13525. : ''
  13526. "
  13527. >{{ lang.ssCancel }}</el-button
  13528. >
  13529. <el-button
  13530. type="primary"
  13531. v-if="courseDetail.userid == userid"
  13532. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  13533. >{{ lang.ssConfirm }}
  13534. </el-button>
  13535. </span>
  13536. </el-dialog>
  13537. <el-dialog
  13538. :title="lang.ssSort"
  13539. :visible.sync="dialogVisibleSentence"
  13540. :append-to-body="true"
  13541. width="1000px"
  13542. :before-close="handleClose"
  13543. class="dialog_diy dialog_diy3"
  13544. >
  13545. <div>
  13546. <div class="sentenBox">
  13547. <div
  13548. v-for="(st, stIndex) in sentenceList"
  13549. :key="stIndex"
  13550. style="padding-bottom: 20px"
  13551. >
  13552. <div
  13553. style="padding: 15px 0 10px 20px"
  13554. class="sentenceTitle"
  13555. :index="stIndex + 1"
  13556. >
  13557. {{ lang.ssQuestion }}{{ stIndex + 1 }}:{{ lang.ssSelectCorrectOrder }}
  13558. </div>
  13559. <div class="cardList" v-if="st.chooseSenList">
  13560. <div class="cardBox">
  13561. <div
  13562. v-for="(r, rIndex) in st.chooseSenList"
  13563. :key="rIndex"
  13564. @click="returnCard(r, stIndex, rIndex)"
  13565. >
  13566. <el-tooltip
  13567. class="item"
  13568. effect="light"
  13569. :content="r"
  13570. placement="top"
  13571. v-if="r != '' && r != undefined"
  13572. >
  13573. <div
  13574. :class="{
  13575. isCard: r,
  13576. isChooseCard: r == '' || r == undefined,
  13577. }"
  13578. >
  13579. <div>{{ r }}</div>
  13580. </div>
  13581. </el-tooltip>
  13582. <div
  13583. :class="{
  13584. isCard: r,
  13585. isChooseCard: r == '' || r == undefined,
  13586. }"
  13587. v-else
  13588. >
  13589. <div>{{ r }}</div>
  13590. </div>
  13591. </div>
  13592. </div>
  13593. </div>
  13594. <div class="cardList" v-if="st.addChangeSen">
  13595. <div class="cardBox">
  13596. <div
  13597. v-for="(s, sIndex) in st.addChangeSen"
  13598. :key="sIndex"
  13599. @click="setRightAnswer(s, stIndex, sIndex)"
  13600. >
  13601. <el-tooltip
  13602. class="item"
  13603. effect="light"
  13604. :content="s"
  13605. placement="top"
  13606. v-if="s != '' && s != undefined"
  13607. >
  13608. <div
  13609. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13610. >
  13611. <div>{{ s }}</div>
  13612. </div>
  13613. </el-tooltip>
  13614. <div
  13615. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13616. v-else
  13617. >
  13618. <div>{{ s }}</div>
  13619. </div>
  13620. </div>
  13621. </div>
  13622. </div>
  13623. </div>
  13624. </div>
  13625. </div>
  13626. <span slot="footer" class="dialog-footer">
  13627. <el-button @click="dialogVisibleSentence = false">{{ lang.ssCancel }}</el-button>
  13628. <el-button type="primary" @click="addSenWorks">{{ lang.ssConfirm }}</el-button>
  13629. </span>
  13630. </el-dialog>
  13631. <el-dialog
  13632. :title="lang.ssSort"
  13633. :visible.sync="dialogVisibleSentenceTeacher"
  13634. :append-to-body="true"
  13635. width="1000px"
  13636. :before-close="handleClose"
  13637. class="dialog_diy dialog_diy3"
  13638. >
  13639. <div>
  13640. <div class="w_name">
  13641. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  13642. </div>
  13643. <div class="sentenBox">
  13644. <div
  13645. v-for="(st, stIndex) in sentenceList"
  13646. :key="stIndex"
  13647. style="padding-bottom: 20px"
  13648. >
  13649. <div
  13650. style="padding: 15px 0 10px 20px"
  13651. class="sentenceTitle"
  13652. :index="stIndex + 1"
  13653. >
  13654. {{ lang.ssQuestion }}{{ stIndex + 1 }}:{{ lang.ssSelectCorrectOrder }}
  13655. </div>
  13656. <div class="cardList" v-if="st.chooseSenList">
  13657. <div class="cardBox">
  13658. <div
  13659. v-for="(r, rIndex) in st.chooseSenList"
  13660. :key="rIndex"
  13661. @click="returnCard(r, stIndex, rIndex)"
  13662. >
  13663. <el-tooltip
  13664. class="item"
  13665. effect="light"
  13666. :content="r"
  13667. placement="top"
  13668. v-if="r != '' && r != undefined"
  13669. >
  13670. <div
  13671. :class="{
  13672. isCard: r,
  13673. isChooseCard: r == '' || r == undefined,
  13674. }"
  13675. >
  13676. <div>{{ r }}</div>
  13677. </div>
  13678. </el-tooltip>
  13679. <div
  13680. :class="{
  13681. isCard: r,
  13682. isChooseCard: r == '' || r == undefined,
  13683. }"
  13684. v-else
  13685. >
  13686. <div>{{ r }}</div>
  13687. </div>
  13688. </div>
  13689. </div>
  13690. </div>
  13691. <div class="cardList" v-if="st.addChangeSen">
  13692. <div class="cardBox">
  13693. <div
  13694. v-for="(s, sIndex) in st.addChangeSen"
  13695. :key="sIndex"
  13696. @click="setRightAnswer(s, stIndex, sIndex)"
  13697. >
  13698. <el-tooltip
  13699. class="item"
  13700. effect="light"
  13701. :content="s"
  13702. placement="top"
  13703. v-if="s != '' && s != undefined"
  13704. >
  13705. <div
  13706. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13707. >
  13708. <div>{{ s }}</div>
  13709. </div>
  13710. </el-tooltip>
  13711. <div
  13712. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13713. v-else
  13714. >
  13715. <div>{{ s }}</div>
  13716. </div>
  13717. </div>
  13718. </div>
  13719. </div>
  13720. </div>
  13721. </div>
  13722. </div>
  13723. <span slot="footer" class="dialog-footer">
  13724. <el-button @click="dialogVisibleSentenceTeacher = false"
  13725. >{{ lang.ssCancel }}</el-button
  13726. >
  13727. <el-button type="primary" @click="addSenWorksTeacher">{{ lang.ssConfirm }}</el-button>
  13728. </span>
  13729. </el-dialog>
  13730. <el-dialog
  13731. :title="lang.ssSort"
  13732. :visible.sync="dialogVisibleSentence1"
  13733. :append-to-body="true"
  13734. width="1000px"
  13735. :before-close="handleClose"
  13736. class="dialog_diy dialog_diy3"
  13737. >
  13738. <div>
  13739. <div class="sentenBox">
  13740. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13741. {{ sentenceList1.stuName }}{{ lang.ssHomeworkOf }}
  13742. </div>
  13743. <div
  13744. v-for="(st, stIndex) in sentenceList1"
  13745. :key="stIndex"
  13746. style="padding-bottom: 20px"
  13747. >
  13748. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13749. {{ lang.ssQuestionNum.replace(/\*/g, stIndex + 1) }}
  13750. </div>
  13751. <div class="isWrong">
  13752. <div class="cardList1" v-if="st.chooseSenList">
  13753. <div class="cardBox">
  13754. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  13755. <el-tooltip
  13756. class="item"
  13757. effect="light"
  13758. :content="s"
  13759. placement="top"
  13760. >
  13761. <div class="isCard">
  13762. <div>{{ s }}</div>
  13763. </div>
  13764. </el-tooltip>
  13765. </div>
  13766. </div>
  13767. <div class="cardAnswerBox">
  13768. {{ lang.ssFormSentence }}{{ st.chooseSenList.join(" ") }}
  13769. </div>
  13770. </div>
  13771. <div v-if="tType == 2" class="isTj">
  13772. <div class="isTjImg">
  13773. <img src="../../assets/icon/conSentences/right.png" alt="" />
  13774. </div>
  13775. <div>{{ lang.ssSubmitted }}</div>
  13776. </div>
  13777. <div
  13778. class="answerRight isTj"
  13779. v-if="
  13780. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  13781. (tType == 1 || tType == 4)
  13782. "
  13783. >
  13784. <div class="isTjImg">
  13785. <img src="../../assets/icon/conSentences/right.png" alt="" />
  13786. </div>
  13787. <div>{{ lang.ssAnswerCorrect }}</div>
  13788. </div>
  13789. <div
  13790. class="answerRight isTj"
  13791. v-if="
  13792. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  13793. (tType == 1 || tType == 4)
  13794. "
  13795. >
  13796. <div class="isTjImg">
  13797. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  13798. </div>
  13799. <div>{{ lang.ssAnswerWrong }}</div>
  13800. </div>
  13801. </div>
  13802. <div
  13803. v-if="
  13804. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  13805. (tType == 1 || tType == 4)
  13806. "
  13807. >
  13808. <div style="padding: 15px 0 10px 20px">{{ lang.ssCorrectAnswerBelow }}</div>
  13809. <div
  13810. class="cardList"
  13811. v-if="st.rightAnswer"
  13812. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  13813. >
  13814. <div class="cardBox">
  13815. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  13816. <el-tooltip
  13817. class="item"
  13818. effect="light"
  13819. :content="r"
  13820. placement="top"
  13821. >
  13822. <div class="isCard1">
  13823. <div>{{ r }}</div>
  13824. </div>
  13825. </el-tooltip>
  13826. </div>
  13827. </div>
  13828. <div class="cardAnswerBox">
  13829. {{ lang.ssFormSentence }}{{ st.rightAnswer.join(" ") }}
  13830. </div>
  13831. </div>
  13832. </div>
  13833. </div>
  13834. </div>
  13835. </div>
  13836. <span slot="footer" class="dialog-footer">
  13837. <el-button @click="dialogVisibleSentence1 = false">{{ lang.ssCancel }}</el-button>
  13838. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  13839. >{{ lang.ssConfirm }}</el-button
  13840. >
  13841. </span>
  13842. </el-dialog>
  13843. <el-dialog
  13844. :title="lang.ssTeacherSubmitWork"
  13845. :visible.sync="dialogVisibleWorks"
  13846. :append-to-body="true"
  13847. width="500px"
  13848. :before-close="handleClose"
  13849. class="dialog_change"
  13850. >
  13851. <div class="marginT">
  13852. <div class="w_name">
  13853. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  13854. </div>
  13855. <div>{{ lang.ssUpFile }}</div>
  13856. <div style="display: flex; gap: 10px">
  13857. <div
  13858. class="chapter_add"
  13859. @click="addImg($event)"
  13860. v-if="studyJuri[0].cover.length == 0"
  13861. >
  13862. <div class="up_photo">
  13863. <img src="../../assets/icon/uploadImg.png" alt />
  13864. </div>
  13865. <!-- <input
  13866. type="file"
  13867. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  13868. style="display: none"
  13869. @change="beforeUpload1($event, 1)"
  13870. /> -->
  13871. <input
  13872. type="file"
  13873. accept="*"
  13874. style="display: none"
  13875. @change="beforeUpload1($event, 1)"
  13876. />
  13877. <!-- <input
  13878. type="file"
  13879. accept="image/*"
  13880. capture="camera"
  13881. style="display: none"
  13882. @change="beforeUpload1($event, 1)"
  13883. /> -->
  13884. </div>
  13885. <div
  13886. class="chapter_add"
  13887. @click="addImg($event)"
  13888. v-if="studyJuri[0].cover.length == 0"
  13889. >
  13890. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  13891. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  13892. </div>
  13893. <input
  13894. type="file"
  13895. accept="image/*"
  13896. capture="camera"
  13897. style="display: none"
  13898. @change="beforeUpload1($event, 1)"
  13899. />
  13900. </div>
  13901. </div>
  13902. <!-- capture="camera" -->
  13903. <div
  13904. class="chapter_add"
  13905. style="
  13906. display: flex;
  13907. width: 100%;
  13908. flex-direction: row;
  13909. flex-wrap: wrap;
  13910. justify-content: flex-start;
  13911. padding: 15px 0;
  13912. "
  13913. v-if="studyJuri[0].cover.length > 0"
  13914. >
  13915. <div class="upCover">
  13916. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  13917. <img :src="word" alt v-else-if="fileType == 1" />
  13918. <img :src="video" alt v-else-if="fileType == 2" />
  13919. <img :src="word2" alt v-else-if="fileType == 3" />
  13920. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  13921. <div class="deleteWord" @click="clean(1)">
  13922. <img src="../../assets/icon/deleteWorks.png" alt />
  13923. </div>
  13924. </div>
  13925. </div>
  13926. </div>
  13927. <div
  13928. class="upload_send"
  13929. @click="addCourseWorksTeacher(taskCount)"
  13930. v-if="!proVisible"
  13931. >
  13932. {{ lang.ssSubmit }}
  13933. </div>
  13934. </el-dialog>
  13935. <ImgDraw
  13936. :drawShow="drawShow"
  13937. @closeDraw="closeDraw"
  13938. @addImgDraw="addImgDraw"
  13939. :bg="bg"
  13940. ></ImgDraw>
  13941. <el-dialog
  13942. :title="lang.ssTable"
  13943. :visible.sync="dialogVisibleTable"
  13944. :append-to-body="true"
  13945. width="95%"
  13946. :before-close="handleClose"
  13947. class="dialog_diy"
  13948. >
  13949. <el-form>
  13950. <div
  13951. style="
  13952. display: flex;
  13953. align-items: center;
  13954. justify-content: space-between;
  13955. "
  13956. >
  13957. <span>{{ lang.ssTableContent }}</span>
  13958. <el-button type="primary" size="small" @click="returnTableText"
  13959. >{{ lang.ssRestoreTemplate }}</el-button
  13960. >
  13961. </div>
  13962. <Table
  13963. v-model="tableJson.text"
  13964. @change="change"
  13965. v-if="dialogVisibleTable"
  13966. ></Table>
  13967. </el-form>
  13968. <span slot="footer" class="dialog-footer">
  13969. <el-button @click="dialogVisibleTable = false">{{ lang.ssCancel }}</el-button>
  13970. <el-button type="primary" @click="addTableWorks">{{ lang.ssConfirm }}</el-button>
  13971. </span>
  13972. </el-dialog>
  13973. <el-dialog
  13974. :title="lang.ssTable"
  13975. :visible.sync="dialogVisibleTableTeacher"
  13976. :append-to-body="true"
  13977. width="95%"
  13978. :before-close="handleClose"
  13979. class="dialog_diy"
  13980. >
  13981. <el-form>
  13982. <div class="w_name">
  13983. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  13984. </div>
  13985. <div>{{ lang.ssTableContent }}</div>
  13986. <Table
  13987. v-model="tableJson.text"
  13988. @change="change"
  13989. v-if="dialogVisibleTableTeacher"
  13990. ></Table>
  13991. </el-form>
  13992. <span slot="footer" class="dialog-footer">
  13993. <el-button @click="dialogVisibleTableTeacher = false">{{ lang.ssCancel }}</el-button>
  13994. <el-button type="primary" @click="addTableWorksTeacher">{{ lang.ssConfirm }}</el-button>
  13995. </span>
  13996. </el-dialog>
  13997. <el-dialog
  13998. :title="lang.ssDocument"
  13999. :visible.sync="dialogVisibleWord"
  14000. :append-to-body="true"
  14001. width="95%"
  14002. :before-close="handleClose"
  14003. class="dialog_diy"
  14004. >
  14005. <el-form>
  14006. <div
  14007. style="
  14008. display: flex;
  14009. align-items: center;
  14010. justify-content: space-between;
  14011. "
  14012. >
  14013. <span>{{ lang.ssDocumentContent }}</span>
  14014. <el-button type="primary" size="small" @click="returnWordText"
  14015. >{{ lang.ssRestoreTemplate }}</el-button
  14016. >
  14017. </div>
  14018. <editor-bar
  14019. v-model="wordJson.text"
  14020. v-if="dialogVisibleWord"
  14021. ></editor-bar>
  14022. </el-form>
  14023. <span slot="footer" class="dialog-footer">
  14024. <el-button @click="dialogVisibleWord = false">{{ lang.ssCancel }}</el-button>
  14025. <el-button type="primary" @click="addWordWorks">{{ lang.ssConfirm }}</el-button>
  14026. </span>
  14027. </el-dialog>
  14028. <el-dialog
  14029. :title="lang.ssDocument"
  14030. :visible.sync="dialogVisibleWordTeacher"
  14031. :append-to-body="true"
  14032. width="95%"
  14033. :before-close="handleClose"
  14034. class="dialog_diy"
  14035. >
  14036. <el-form>
  14037. <div class="w_name">
  14038. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  14039. </div>
  14040. <div>{{ lang.ssDocumentContent }}</div>
  14041. <editor-bar
  14042. v-model="wordJson.text"
  14043. v-if="dialogVisibleWordTeacher"
  14044. ></editor-bar>
  14045. </el-form>
  14046. <span slot="footer" class="dialog-footer">
  14047. <el-button @click="dialogVisibleWordTeacher = false">{{ lang.ssCancel }}</el-button>
  14048. <el-button type="primary" @click="addWordWorksTeacher">{{ lang.ssConfirm }}</el-button>
  14049. </span>
  14050. </el-dialog>
  14051. <el-dialog
  14052. :title="lang.ssTable"
  14053. :visible.sync="dialogVisibleTable2"
  14054. :append-to-body="true"
  14055. width="95%"
  14056. :before-close="handleClose"
  14057. class="dialog_diy"
  14058. >
  14059. <el-form>
  14060. <div class="cont" v-html="tableJson.text"></div>
  14061. </el-form>
  14062. <span slot="footer" class="dialog-footer">
  14063. <el-button @click="dialogVisibleTable2 = false">{{ lang.ssCloseBtn }}</el-button>
  14064. </span>
  14065. </el-dialog>
  14066. <el-dialog
  14067. :title="lang.ssDocument"
  14068. :visible.sync="dialogVisibleTable3"
  14069. :append-to-body="true"
  14070. width="95%"
  14071. :before-close="handleClose"
  14072. class="dialog_diy"
  14073. >
  14074. <el-form>
  14075. <div class="cont" v-html="tableJson.text"></div>
  14076. </el-form>
  14077. <span slot="footer" class="dialog-footer">
  14078. <el-button @click="dialogVisibleTable3 = false">{{ lang.ssCloseBtn }}</el-button>
  14079. </span>
  14080. </el-dialog>
  14081. <el-dialog
  14082. :title="lang.ssGroupSetting"
  14083. :visible.sync="dialogVisibleGroup"
  14084. :append-to-body="true"
  14085. width="95%"
  14086. :before-close="handleClose"
  14087. class="dialog_diy"
  14088. >
  14089. <div v-if="dialogVisibleGroup">
  14090. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  14091. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  14092. {{ lang.ssOpenSeatTip }}
  14093. </div>
  14094. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  14095. @click="lockChair">
  14096. 锁定位置
  14097. </div>
  14098. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  14099. 解锁位置
  14100. </div> -->
  14101. <div class="group_switch">
  14102. <span>{{ lang.ssOpenSeat }}</span>
  14103. <el-switch
  14104. v-model="islock"
  14105. active-text=""
  14106. class="switchCss"
  14107. @change="lockChair"
  14108. ></el-switch>
  14109. </div>
  14110. <div
  14111. type="primary"
  14112. @click="updateGroup"
  14113. class="returnBtn"
  14114. style="background-color: #225bc7"
  14115. >
  14116. {{ lang.ssGroupSetting }}
  14117. </div>
  14118. </div>
  14119. <div>
  14120. <div
  14121. class="g_d_box"
  14122. v-if="groupJson.group && groupStudent[toolindex]"
  14123. >
  14124. <div
  14125. class="g_d_group"
  14126. v-for="(g, gindex) in groupJson.group"
  14127. :key="gindex"
  14128. >
  14129. <div class="g_d_group_chair">
  14130. <div v-if="groupJson.number > 1">
  14131. <span
  14132. :class="{
  14133. isChair:
  14134. groupStudent[toolindex][gindex] &&
  14135. groupStudent[toolindex][gindex][0],
  14136. updateChair:
  14137. courseDetail.userid == userid &&
  14138. groupStudent[toolindex][gindex] &&
  14139. groupStudent[toolindex][gindex][0] &&
  14140. groupJson.islock == 2,
  14141. }"
  14142. ><span
  14143. class="updateChairBtn"
  14144. @click="
  14145. updateGroupChair(
  14146. groupStudent[toolindex][gindex] &&
  14147. groupStudent[toolindex][gindex][0]
  14148. )
  14149. "
  14150. >{{ lang.ssModify }}</span
  14151. ></span
  14152. ><span>{{
  14153. groupStudent[toolindex][gindex] &&
  14154. groupStudent[toolindex][gindex][0]
  14155. ? groupStudent[toolindex][gindex] &&
  14156. groupStudent[toolindex][gindex][0].name
  14157. : lang.ssEmptyPosition
  14158. }}</span>
  14159. </div>
  14160. <div v-if="groupJson.number > 4">
  14161. <span
  14162. :class="{
  14163. isChair:
  14164. groupStudent[toolindex][gindex] &&
  14165. groupStudent[toolindex][gindex][4],
  14166. updateChair:
  14167. courseDetail.userid == userid &&
  14168. groupStudent[toolindex][gindex] &&
  14169. groupStudent[toolindex][gindex][4] &&
  14170. groupJson.islock == 2,
  14171. }"
  14172. ><span
  14173. class="updateChairBtn"
  14174. @click="
  14175. updateGroupChair(
  14176. groupStudent[toolindex][gindex] &&
  14177. groupStudent[toolindex][gindex][4]
  14178. )
  14179. "
  14180. >{{ lang.ssModify }}</span
  14181. ></span
  14182. ><span>{{
  14183. groupStudent[toolindex][gindex] &&
  14184. groupStudent[toolindex][gindex][4]
  14185. ? groupStudent[toolindex][gindex] &&
  14186. groupStudent[toolindex][gindex][4].name
  14187. : lang.ssEmptyPosition
  14188. }}</span>
  14189. </div>
  14190. <div v-if="groupJson.number > 8">
  14191. <span
  14192. :class="{
  14193. isChair:
  14194. groupStudent[toolindex][gindex] &&
  14195. groupStudent[toolindex][gindex][8],
  14196. updateChair:
  14197. courseDetail.userid == userid &&
  14198. groupStudent[toolindex][gindex] &&
  14199. groupStudent[toolindex][gindex][8] &&
  14200. groupJson.islock == 2,
  14201. }"
  14202. ><span
  14203. class="updateChairBtn"
  14204. @click="
  14205. updateGroupChair(
  14206. groupStudent[toolindex][gindex] &&
  14207. groupStudent[toolindex][gindex][8]
  14208. )
  14209. "
  14210. >{{ lang.ssModify }}</span
  14211. ></span
  14212. ><span>{{
  14213. groupStudent[toolindex][gindex] &&
  14214. groupStudent[toolindex][gindex][8]
  14215. ? groupStudent[toolindex][gindex] &&
  14216. groupStudent[toolindex][gindex][8].name
  14217. : lang.ssEmptyPosition
  14218. }}</span>
  14219. </div>
  14220. </div>
  14221. <div class="g_d_group_tableBox">
  14222. <div class="g_d_group_chair2">
  14223. <div v-if="groupJson.number > 2">
  14224. <span
  14225. :class="{
  14226. isChair:
  14227. groupStudent[toolindex][gindex] &&
  14228. groupStudent[toolindex][gindex][2],
  14229. updateChair:
  14230. courseDetail.userid == userid &&
  14231. groupStudent[toolindex][gindex] &&
  14232. groupStudent[toolindex][gindex][2] &&
  14233. groupJson.islock == 2,
  14234. }"
  14235. ><span
  14236. class="updateChairBtn"
  14237. @click="
  14238. updateGroupChair(
  14239. groupStudent[toolindex][gindex] &&
  14240. groupStudent[toolindex][gindex][2]
  14241. )
  14242. "
  14243. >{{ lang.ssModify }}</span
  14244. ></span
  14245. ><span>{{
  14246. groupStudent[toolindex][gindex] &&
  14247. groupStudent[toolindex][gindex][2]
  14248. ? groupStudent[toolindex][gindex] &&
  14249. groupStudent[toolindex][gindex][2].name
  14250. : lang.ssEmptyPosition
  14251. }}</span>
  14252. </div>
  14253. <div v-if="groupJson.number > 6">
  14254. <span
  14255. :class="{
  14256. isChair:
  14257. groupStudent[toolindex][gindex] &&
  14258. groupStudent[toolindex][gindex][6],
  14259. updateChair:
  14260. courseDetail.userid == userid &&
  14261. groupStudent[toolindex][gindex] &&
  14262. groupStudent[toolindex][gindex][6] &&
  14263. groupJson.islock == 2,
  14264. }"
  14265. ><span
  14266. class="updateChairBtn"
  14267. @click="
  14268. updateGroupChair(
  14269. groupStudent[toolindex][gindex] &&
  14270. groupStudent[toolindex][gindex][6]
  14271. )
  14272. "
  14273. >{{ lang.ssModify }}</span
  14274. ></span
  14275. ><span>{{
  14276. groupStudent[toolindex][gindex] &&
  14277. groupStudent[toolindex][gindex][6]
  14278. ? groupStudent[toolindex][gindex] &&
  14279. groupStudent[toolindex][gindex][6].name
  14280. : lang.ssEmptyPosition
  14281. }}</span>
  14282. </div>
  14283. </div>
  14284. <div class="g_d_group_table">
  14285. <div>
  14286. {{ g.name }}
  14287. </div>
  14288. <div>
  14289. <div
  14290. v-if="
  14291. courseDetail.userid == userid && groupJson.islock == 2
  14292. "
  14293. @click="deleteGroupChair(gindex)"
  14294. >
  14295. {{ lang.ssRemoveMember }}
  14296. </div>
  14297. <div
  14298. @click="selectGroup(gindex)"
  14299. v-else-if="
  14300. groupStudentUid[toolindex] &&
  14301. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  14302. "
  14303. >
  14304. {{ lang.ssJoinGroup }}
  14305. </div>
  14306. <div
  14307. @click="
  14308. exitGroup(
  14309. groupStudent[toolindex][gindex] &&
  14310. groupStudent[toolindex][gindex][
  14311. groupStudentUid[toolindex][gindex].indexOf(userid)
  14312. ].id
  14313. )
  14314. "
  14315. v-else-if="
  14316. groupStudentUid[toolindex] &&
  14317. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  14318. "
  14319. >
  14320. {{ lang.ssExitGroup }}
  14321. </div>
  14322. </div>
  14323. </div>
  14324. <div class="g_d_group_chair2">
  14325. <div v-if="groupJson.number > 3">
  14326. <span
  14327. :class="{
  14328. isChair:
  14329. groupStudent[toolindex][gindex] &&
  14330. groupStudent[toolindex][gindex][3],
  14331. updateChair:
  14332. courseDetail.userid == userid &&
  14333. groupStudent[toolindex][gindex] &&
  14334. groupStudent[toolindex][gindex][3] &&
  14335. groupJson.islock == 2,
  14336. }"
  14337. ><span
  14338. class="updateChairBtn"
  14339. @click="
  14340. updateGroupChair(
  14341. groupStudent[toolindex][gindex] &&
  14342. groupStudent[toolindex][gindex][3]
  14343. )
  14344. "
  14345. >{{ lang.ssModify }}</span
  14346. ></span
  14347. ><span>{{
  14348. groupStudent[toolindex][gindex] &&
  14349. groupStudent[toolindex][gindex][3]
  14350. ? groupStudent[toolindex][gindex] &&
  14351. groupStudent[toolindex][gindex][3].name
  14352. : lang.ssEmptyPosition
  14353. }}</span>
  14354. </div>
  14355. <div v-if="groupJson.number > 7">
  14356. <span
  14357. :class="{
  14358. isChair:
  14359. groupStudent[toolindex][gindex] &&
  14360. groupStudent[toolindex][gindex][7],
  14361. updateChair:
  14362. courseDetail.userid == userid &&
  14363. groupStudent[toolindex][gindex] &&
  14364. groupStudent[toolindex][gindex][7] &&
  14365. groupJson.islock == 2,
  14366. }"
  14367. ><span
  14368. class="updateChairBtn"
  14369. @click="
  14370. updateGroupChair(
  14371. groupStudent[toolindex][gindex] &&
  14372. groupStudent[toolindex][gindex][7]
  14373. )
  14374. "
  14375. >{{ lang.ssModify }}</span
  14376. ></span
  14377. ><span>{{
  14378. groupStudent[toolindex][gindex] &&
  14379. groupStudent[toolindex][gindex][7]
  14380. ? groupStudent[toolindex][gindex] &&
  14381. groupStudent[toolindex][gindex][7].name
  14382. : lang.ssEmptyPosition
  14383. }}</span>
  14384. </div>
  14385. </div>
  14386. </div>
  14387. <div class="g_d_group_chair">
  14388. <div v-if="groupJson.number > 1">
  14389. <span
  14390. :class="{
  14391. isChair:
  14392. groupStudent[toolindex][gindex] &&
  14393. groupStudent[toolindex][gindex][1],
  14394. updateChair:
  14395. courseDetail.userid == userid &&
  14396. groupStudent[toolindex][gindex] &&
  14397. groupStudent[toolindex][gindex][1] &&
  14398. groupJson.islock == 2,
  14399. }"
  14400. ><span
  14401. class="updateChairBtn"
  14402. @click="
  14403. updateGroupChair(
  14404. groupStudent[toolindex][gindex] &&
  14405. groupStudent[toolindex][gindex][1]
  14406. )
  14407. "
  14408. >{{ lang.ssModify }}</span
  14409. ></span
  14410. ><span>{{
  14411. groupStudent[toolindex][gindex] &&
  14412. groupStudent[toolindex][gindex][1]
  14413. ? groupStudent[toolindex][gindex] &&
  14414. groupStudent[toolindex][gindex][1].name
  14415. : lang.ssEmptyPosition
  14416. }}</span>
  14417. </div>
  14418. <div v-if="groupJson.number > 5">
  14419. <span
  14420. :class="{
  14421. isChair:
  14422. groupStudent[toolindex][gindex] &&
  14423. groupStudent[toolindex][gindex][5],
  14424. updateChair:
  14425. courseDetail.userid == userid &&
  14426. groupStudent[toolindex][gindex] &&
  14427. groupStudent[toolindex][gindex][5] &&
  14428. groupJson.islock == 2,
  14429. }"
  14430. ><span
  14431. class="updateChairBtn"
  14432. @click="
  14433. updateGroupChair(
  14434. groupStudent[toolindex][gindex] &&
  14435. groupStudent[toolindex][gindex][5]
  14436. )
  14437. "
  14438. >{{ lang.ssModify }}</span
  14439. ></span
  14440. ><span>{{
  14441. groupStudent[toolindex][gindex] &&
  14442. groupStudent[toolindex][gindex][5]
  14443. ? groupStudent[toolindex][gindex] &&
  14444. groupStudent[toolindex][gindex][5].name
  14445. : lang.ssEmptyPosition
  14446. }}</span>
  14447. </div>
  14448. <div v-if="groupJson.number > 9">
  14449. <span
  14450. :class="{
  14451. isChair:
  14452. groupStudent[toolindex][gindex] &&
  14453. groupStudent[toolindex][gindex][9],
  14454. updateChair:
  14455. courseDetail.userid == userid &&
  14456. groupStudent[toolindex][gindex] &&
  14457. groupStudent[toolindex][gindex][9] &&
  14458. groupJson.islock == 2,
  14459. }"
  14460. ><span
  14461. class="updateChairBtn"
  14462. @click="
  14463. updateGroupChair(
  14464. groupStudent[toolindex][gindex] &&
  14465. groupStudent[toolindex][gindex][9]
  14466. )
  14467. "
  14468. >{{ lang.ssModify }}</span
  14469. ></span
  14470. ><span>{{
  14471. groupStudent[toolindex][gindex] &&
  14472. groupStudent[toolindex][gindex][9]
  14473. ? groupStudent[toolindex][gindex] &&
  14474. groupStudent[toolindex][gindex][9].name
  14475. : lang.ssEmptyPosition
  14476. }}</span>
  14477. </div>
  14478. </div>
  14479. </div>
  14480. </div>
  14481. </div>
  14482. </div>
  14483. <span slot="footer" class="dialog-footer">
  14484. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  14485. </span>
  14486. </el-dialog>
  14487. <el-dialog
  14488. :title="lang.ssGroupSetting"
  14489. :visible.sync="dialogVisibleGroup2"
  14490. :append-to-body="true"
  14491. width="650px"
  14492. :before-close="handleClose"
  14493. class="dialog_diy"
  14494. >
  14495. <div class="groupBox">
  14496. <div v-if="groupJson2.group" class="groupContent">
  14497. <div class="groupTitle">{{ lang.ssSetGroupCountAndName }}</div>
  14498. <div
  14499. v-for="(item, index) in groupJson2.group"
  14500. :key="index"
  14501. class="groupName"
  14502. >
  14503. <span class="groupn">{{ lang.ssGroupNameFormat.replace(/\*/g, index + 1) }}</span>
  14504. <el-input
  14505. v-model="item.name"
  14506. :placeholder="lang.ssEnterName"
  14507. style="width: 250px"
  14508. ></el-input>
  14509. <!-- <div class="groupBtn">
  14510. <el-button type="primary" size="small" @click="addGroup(index)">
  14511. {{ lang.ssAdd }}</el-button>
  14512. <el-button type="primary" size="small" @click="deleteGroup(index)"
  14513. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  14514. </div> -->
  14515. </div>
  14516. </div>
  14517. <div class="groupContent">
  14518. <div class="groupTitle">{{ lang.ssSetGroupMemberCount }}</div>
  14519. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  14520. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  14521. <el-input
  14522. v-model="groupJson2.number"
  14523. style="width: 150px"
  14524. :placeholder="lang.ssEnterNumber2To10"
  14525. @change="numberPan"
  14526. ></el-input>
  14527. </div>
  14528. </div>
  14529. <span slot="footer" class="dialog-footer">
  14530. <el-button @click="dialogVisibleGroup2 = false">{{ lang.ssCancel }}</el-button>
  14531. <el-button type="primary" @click="updateGroupJson">{{ lang.ssConfirm }}</el-button>
  14532. </span>
  14533. </el-dialog>
  14534. <el-dialog
  14535. :title="lang.ssHomework"
  14536. :visible.sync="dialogVisibleGroupWork"
  14537. :append-to-body="true"
  14538. width="500px"
  14539. :before-close="handleClose"
  14540. class="dialog_change"
  14541. >
  14542. <div class="marginT">
  14543. <div>{{ lang.ssUpFile }}</div>
  14544. <div
  14545. class="chapter_add"
  14546. @click="addImg($event)"
  14547. v-if="studyJuri[0].cover.length == 0"
  14548. >
  14549. <div class="up_photo">
  14550. <img src="../../assets/icon/uploadImg.png" alt />
  14551. </div>
  14552. <!-- <input
  14553. type="file"
  14554. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14555. style="display: none"
  14556. @change="beforeUpload1($event, 1)"
  14557. /> -->
  14558. <input
  14559. type="file"
  14560. accept="*"
  14561. style="display: none"
  14562. @change="beforeUpload1($event, 1)"
  14563. />
  14564. </div>
  14565. <!-- capture="camera" -->
  14566. <div
  14567. class="chapter_add"
  14568. style="
  14569. display: flex;
  14570. width: 100%;
  14571. flex-direction: row;
  14572. flex-wrap: wrap;
  14573. justify-content: flex-start;
  14574. padding: 15px 0;
  14575. "
  14576. v-if="studyJuri[0].cover.length > 0"
  14577. >
  14578. <div class="upCover">
  14579. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14580. <img :src="word" alt v-else-if="fileType == 1" />
  14581. <img :src="video" alt v-else-if="fileType == 2" />
  14582. <img :src="word2" alt v-else-if="fileType == 3" />
  14583. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14584. <div class="deleteWord" @click="clean(1)">
  14585. <img src="../../assets/icon/deleteWorks.png" alt />
  14586. </div>
  14587. </div>
  14588. </div>
  14589. </div>
  14590. <div
  14591. class="upload_send"
  14592. @click="addCourseWorks2(taskCount)"
  14593. v-if="!proVisible"
  14594. >
  14595. {{ lang.ssSubmit }}
  14596. </div>
  14597. </el-dialog>
  14598. <el-dialog
  14599. :title="lang.ssModifyGroup"
  14600. :visible.sync="dialogVisibleUpdateGroup"
  14601. :append-to-body="true"
  14602. width="350px"
  14603. :before-close="handleClose"
  14604. class="dialog_diy"
  14605. >
  14606. <div>
  14607. <h2>
  14608. {{ this.updateGroupUser.name }}
  14609. </h2>
  14610. <div style="color: rgb(171 171 171); margin-top: 10px">
  14611. {{ lang.ssSelectGroupToJoin }}
  14612. </div>
  14613. <el-radio-group v-model="checkChair">
  14614. <el-radio
  14615. style="display: block; margin-top: 20px"
  14616. v-for="(item, index) in updateGroupArray"
  14617. :label="item.label"
  14618. :key="index"
  14619. >{{ item.name }}</el-radio
  14620. >
  14621. </el-radio-group>
  14622. </div>
  14623. <span slot="footer" class="dialog-footer">
  14624. <el-button @click="dialogVisibleUpdateGroup = false">{{ lang.ssCancel }}</el-button>
  14625. <el-button type="primary" @click="updateChair">{{ lang.ssConfirm }}</el-button>
  14626. </span>
  14627. </el-dialog>
  14628. <el-dialog
  14629. :title="lang.ssRemoveMember"
  14630. :visible.sync="dialogVisibleDeleteGroup"
  14631. :append-to-body="true"
  14632. width="350px"
  14633. :before-close="handleClose"
  14634. class="dialog_diy"
  14635. >
  14636. <div>
  14637. <h2>
  14638. {{ this.deleteGroupArray.name }}
  14639. </h2>
  14640. <div style="color: rgb(171 171 171); margin-top: 10px">
  14641. {{ lang.ssSelectMemberToDelete }}
  14642. </div>
  14643. <el-checkbox-group v-model="checkDeleteGroup">
  14644. <el-checkbox
  14645. style="display: flex; margin-top: 20px"
  14646. v-for="(item, index) in deleteGroupUser"
  14647. :label="item.userid"
  14648. :key="index"
  14649. >{{ item.name }}</el-checkbox
  14650. >
  14651. </el-checkbox-group>
  14652. </div>
  14653. <span slot="footer" class="dialog-footer">
  14654. <el-button @click="dialogVisibleDeleteGroup = false">{{ lang.ssCancel }}</el-button>
  14655. <el-button type="primary" @click="deleteChair">{{ lang.ssConfirm }}</el-button>
  14656. </span>
  14657. </el-dialog>
  14658. <el-dialog
  14659. :title="lang.ssBatchUpload"
  14660. :visible.sync="dialogVisiblePl"
  14661. :append-to-body="true"
  14662. width="700px"
  14663. :before-close="handleClose"
  14664. class="dialog_change"
  14665. >
  14666. <div class="marginT">
  14667. <div class="plworkBox">
  14668. <div
  14669. class="chapter_add"
  14670. style="
  14671. display: flex;
  14672. width: 150px;
  14673. flex-direction: row;
  14674. flex-wrap: wrap;
  14675. justify-content: flex-start;
  14676. margin: 0 10px 10px 0;
  14677. "
  14678. v-for="(item, index) in plworkFile"
  14679. :key="index"
  14680. >
  14681. <div class="upCover2">
  14682. <img
  14683. :src="item.url"
  14684. alt
  14685. v-if="item.fileType == 1"
  14686. @click="previewImg(item.url)"
  14687. />
  14688. <img :src="word" alt v-else-if="item.fileType == 4" />
  14689. <img :src="video" alt v-else />
  14690. <!-- <span class="picName">{{ item.name }}</span> -->
  14691. <!-- <el-input
  14692. v-model="item.username"
  14693. :placeholder="lang.ssEnterStudentNamePlaceholder"
  14694. style="margin-top: 10px"
  14695. ></el-input> -->
  14696. <div
  14697. class="pl_select_box"
  14698. @click="
  14699. getUpdateMore(true, checkUpload(), item.username, index)
  14700. "
  14701. >
  14702. {{ getSName(item.username) }}
  14703. </div>
  14704. <!-- <el-select
  14705. style="margin-top: 10px"
  14706. v-model="item.username"
  14707. filterable
  14708. allow-create
  14709. :placeholder="lang.ssSelectStudentPlaceholder"
  14710. >
  14711. <el-option
  14712. v-for="item1 in checkUpload()"
  14713. :key="item1.userid"
  14714. :label="item1.name ? item1.name : item1.username"
  14715. :value="item1.userid"
  14716. >
  14717. </el-option>
  14718. </el-select> -->
  14719. <div class="deleteWord" @click="clean2(index)">
  14720. <img src="../../assets/icon/deleteWorks.png" alt />
  14721. </div>
  14722. </div>
  14723. </div>
  14724. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  14725. <div class="up_photo2">
  14726. <img src="../../assets/icon/plwork.png" alt />
  14727. <span>{{ lang.ssClickUploadFile }}</span>
  14728. </div>
  14729. <input
  14730. type="file"
  14731. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14732. multiple="multiple"
  14733. style="display: none"
  14734. @change="beforeUpload3($event, 6)"
  14735. />
  14736. </div>
  14737. </div>
  14738. </div>
  14739. <!-- capture="camera" -->
  14740. <div
  14741. class="upload_send"
  14742. @click="addCourseWorksPl(taskCount)"
  14743. v-if="!proVisible2"
  14744. >
  14745. {{ lang.ssSubmit }}
  14746. </div>
  14747. </el-dialog>
  14748. <el-dialog
  14749. :title="lang.ssModifyName"
  14750. :visible.sync="dialogVisibleSname"
  14751. width="500px"
  14752. :before-close="handleClose"
  14753. class="dialog_diy"
  14754. center
  14755. >
  14756. <div
  14757. style="
  14758. text-align: center;
  14759. display: flex;
  14760. align-items: center;
  14761. justify-content: center;
  14762. "
  14763. >
  14764. <span class="tian1">{{ lang.ssName }}</span>
  14765. <div
  14766. class="pl_select_box"
  14767. style="margin-left: 10px; width: 200px"
  14768. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  14769. >
  14770. {{ getSName(worksSName) }}
  14771. </div>
  14772. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  14773. :placeholder="lang.ssSelectStudentPlaceholder">
  14774. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  14775. :value="item.userid">
  14776. </el-option>
  14777. </el-select> -->
  14778. <!-- <el-input
  14779. v-model="worksSName"
  14780. style="width: 250px; margin: 15px 0px"
  14781. ></el-input> -->
  14782. </div>
  14783. <span slot="footer" class="dialog-footer">
  14784. <el-button @click="dialogVisibleSname = false">{{ lang.ssCancel }}</el-button>
  14785. <el-button type="primary" @click="updateName">{{ lang.ssConfirm }}</el-button>
  14786. </span>
  14787. </el-dialog>
  14788. <el-dialog
  14789. :title="lang.ssEnglishWrite"
  14790. :visible.sync="engDialogVisible"
  14791. :append-to-body="true"
  14792. width="800px"
  14793. :before-close="handleClose"
  14794. class="dialog_diy"
  14795. >
  14796. <onlineWrite
  14797. v-if="engDialogVisible"
  14798. :englishList="englishList"
  14799. :myAnswerList1="myAnswerList1"
  14800. ref="engJson"
  14801. ></onlineWrite>
  14802. <span slot="footer" class="dialog-footer" style="text-align: center;">
  14803. <el-button @click="engDialogVisible = false">{{ lang.ssCancelBtn }}</el-button>
  14804. <el-button type="primary" @click="addEnglishWork">{{ lang.ssConfirmBtn }}</el-button>
  14805. </span>
  14806. </el-dialog>
  14807. <el-dialog
  14808. :title="lang.ssEnglishWrite"
  14809. :visible.sync="engUpdateDialogVisible"
  14810. :append-to-body="true"
  14811. width="800px"
  14812. :before-close="handleClose"
  14813. class="dialog_diy fullStyle"
  14814. >
  14815. <div class="engUpBox">
  14816. <div class="engUpTop">
  14817. <div class="engTitle">
  14818. <div>{{ lang.ssEssayTitle }}</div>
  14819. <div>{{ englishList1.engTitle }}</div>
  14820. </div>
  14821. <div class="engText">
  14822. <div>{{ lang.ssEssayContent }}</div>
  14823. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  14824. </div>
  14825. </div>
  14826. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  14827. <div class="oldBox">
  14828. <div class="oldMes">{{ lang.ssOriginalAuthor }}{{ noteName }} )</div>
  14829. <div class="oldText">
  14830. <div class="detailBox">
  14831. <div class="oldDetail">
  14832. <div>{{ lang.ssTitleColon }}</div>
  14833. <div>{{ oldEnglishJson.engTitle }} </div>
  14834. </div>
  14835. <div class="oldDetail1">
  14836. <div>{{ lang.ssContentColon }}</div>
  14837. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  14838. </div>
  14839. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  14840. <div>{{ lang.ssImageColon }}</div>
  14841. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  14842. </div>
  14843. </div>
  14844. </div>
  14845. </div>
  14846. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  14847. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  14848. <div class="oldText">
  14849. <div class="detailBox" style="position: relative;">
  14850. <div class="oldDetail">
  14851. <div>{{ lang.ssTitleColon }}</div>
  14852. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  14853. <div v-else v-html="newEnglishList.engTitle"></div>
  14854. </div>
  14855. <div class="oldDetail">
  14856. <div>{{ lang.ssContentColon }}</div>
  14857. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  14858. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  14859. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  14860. </div>
  14861. <div style="position: absolute;bottom: -25px;">{{ lang.ssNoteRedDeleteGreenAdd }}</div>
  14862. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  14863. <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>
  14864. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirm }}</el-button>
  14865. </div>
  14866. </div>
  14867. </div>
  14868. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  14869. <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">
  14870. <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>
  14871. <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>
  14872. </div>
  14873. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  14874. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  14875. <div class="detailBox" style="position: relative;">
  14876. <div class="oldDetail">
  14877. <div>{{ lang.ssTitleColon }}</div>
  14878. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  14879. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  14880. </div>
  14881. <div class="oldDetail">
  14882. <div>{{ lang.ssContentColon }}</div>
  14883. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  14884. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  14885. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  14886. </div>
  14887. <div style="position: absolute;bottom: -25px;">{{ lang.ssNoteRedDeleteGreenAdd }}</div>
  14888. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  14889. <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>
  14890. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirm }}</el-button>
  14891. </div>
  14892. </div>
  14893. <div class="oldText" v-else-if="newEngIndex == -1">
  14894. <div class="detailBox" style="position: relative;">
  14895. <div class="oldDetail">
  14896. <div>{{ lang.ssTitleColon }}</div>
  14897. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  14898. <div v-else v-html="newEnglishList.engTitle"></div>
  14899. </div>
  14900. <div class="oldDetail">
  14901. <div>{{ lang.ssContentColon }}</div>
  14902. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  14903. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  14904. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  14905. </div>
  14906. <div style="position: absolute;bottom: -25px;">{{ lang.ssNoteRedDeleteGreenAdd }}</div>
  14907. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  14908. <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>
  14909. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirm }}</el-button>
  14910. </div>
  14911. </div>
  14912. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  14913. <div class="detailBox" style="position: relative;">
  14914. <div class="oldDetail">
  14915. <div>{{ lang.ssTitleColon }}</div>
  14916. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  14917. <div v-else>
  14918. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  14919. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  14920. </div>
  14921. </div>
  14922. <div class="oldDetail">
  14923. <div>{{ lang.ssContentColon }}</div>
  14924. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  14925. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  14926. <div v-else>
  14927. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  14928. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  14929. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  14930. </div>
  14931. </div>
  14932. <div style="position: absolute;bottom: -25px;">{{ lang.ssNoteRedDeleteGreenAdd }}</div>
  14933. <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>
  14934. <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>
  14935. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirm }}</el-button>
  14936. </div>
  14937. </div>
  14938. </div>
  14939. </div>
  14940. </div>
  14941. <span slot="footer" class="dialog-footer">
  14942. <el-button @click="engUpdateDialogVisible = false">{{ lang.ssCancelBtn }}</el-button>
  14943. <el-button type="primary" @click="addCorrect">{{ lang.ssConfirmBtn }}</el-button>
  14944. </span>
  14945. </el-dialog>
  14946. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  14947. <interVideo
  14948. :dialogVisibleVideo.sync="dialogVisibleVideo"
  14949. :videoJson="videoJson"
  14950. :userid="userid"
  14951. :id="id"
  14952. :courseType="courseType"
  14953. :taskCount="taskCount"
  14954. :toolindex="toolindex"
  14955. :videoType="videoType"
  14956. ></interVideo>
  14957. <UpdateMore
  14958. :dialogVisibleMember.sync="dialogVisibleMember"
  14959. :cList="uploadStudentJuri"
  14960. :userid="userid"
  14961. :searchTN="worksSName2"
  14962. @setPlname="setPlname"
  14963. ></UpdateMore>
  14964. <!-- <wordCloud
  14965. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  14966. :data="wordCloudData"
  14967. ></wordCloud> -->
  14968. <el-dialog
  14969. :title="lang.ssWordCloud"
  14970. :visible.sync="dialogVisibleWordCloud"
  14971. width="30%"
  14972. class="dialog_diy"
  14973. :before-close="handleClose">
  14974. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  14975. </el-dialog>
  14976. <el-dialog
  14977. :title="lang.ssPickPerson"
  14978. :visible.sync="dialogVisiblePickPeople"
  14979. width="650px"
  14980. :before-close="handleClose"
  14981. class="dialog_diy"
  14982. center
  14983. >
  14984. <div class="pick_box">
  14985. <div
  14986. class="noWorksName"
  14987. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  14988. v-for="(item, index) in uploadStudentJuri"
  14989. :key="index"
  14990. @click="pickStudent(item)"
  14991. >
  14992. {{ item.name }}
  14993. </div>
  14994. </div>
  14995. </el-dialog>
  14996. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  14997. :englishVoiceJson='englishVoiceJson'
  14998. :userid="userid"
  14999. :id="id"
  15000. :courseType="courseType"
  15001. :taskCount="taskCount"
  15002. :toolindex="toolindex"
  15003. @selectSWorks="selectSWorks"
  15004. @selectStudent="selectStudent"
  15005. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  15006. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  15007. :userid="userid"
  15008. :dialogVisibleENScore.sync='dialogVisibleENScore'
  15009. :commentDetail="commentDetail"
  15010. :courseDetail="courseDetail"
  15011. :wScore="wScore"
  15012. :scoreDetail="scoreDetail"
  15013. @selectSWorks="selectSWorks"
  15014. @selectStudent="selectStudent"></checkEnglishVoice>
  15015. <el-dialog
  15016. :title="lang.ssTeacherScoring"
  15017. :visible.sync="markScoreVisible"
  15018. :append-to-body="true"
  15019. width="1000px"
  15020. :fullscreen="markfullscreen"
  15021. :before-close="markScorehandleClose"
  15022. class="markScore_diy"
  15023. >
  15024. <div slot="title">
  15025. <div class="markScore_diyTit">
  15026. <div>{{ tType == 1 ? lang.ssTeacherScoring : lang.ssHomeworkDialog }}</div>
  15027. <div @click="markFullScreenBtn" style="cursor: pointer;">
  15028. <img src="../../assets/icon/newIcons/fullScreen.png" alt="" />
  15029. </div>
  15030. </div>
  15031. </div>
  15032. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  15033. <!-- @updateDocSco="updateDocSco" -->
  15034. <markDialog
  15035. :key="markScoreVisible.toString()"
  15036. :uid="markScoreUid"
  15037. :toolIndex="markScoretoolIndex"
  15038. :stage="courseType"
  15039. :task="taskCount"
  15040. :taskDetail="
  15041. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail
  15042. "
  15043. :tool="toolListS"
  15044. :languageSetting="languageSetting"
  15045. :scoTit="markScoreTit"
  15046. :tType="tType"
  15047. :sIsOpen="sIsOpen"
  15048. :markScoreworksStudent="markScoreworksStudent"
  15049. :markScoreVisible="markScoreVisible"
  15050. ></markDialog>
  15051. </el-dialog>
  15052. <!-- 查看Txt,md等文件 -->
  15053. <el-dialog
  15054. :title="lang.ssFilePreview"
  15055. :visible.sync="dialogVisibleTxt"
  15056. width="50%"
  15057. :before-close="handleCloseTxt"
  15058. class="dialog_diy"
  15059. :class="{ fullStyle: full }"
  15060. >
  15061. <div slot="title" class="header-title">
  15062. <div style="color: #fff">{{ lang.ssFilePreview }}</div>
  15063. <div style="position: absolute; top: 19px; right: 50px">
  15064. <img
  15065. src="../../assets/full.png"
  15066. style="height: 16px; cursor: pointer"
  15067. alt=""
  15068. @click="fullTools"
  15069. />
  15070. </div>
  15071. </div>
  15072. <div>{{ TxtMd }}</div>
  15073. </el-dialog>
  15074. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  15075. <choseWorksDetailDialog
  15076. ref="choseWorksDetailDialogRef"
  15077. :worksStudentData="worksStudent"
  15078. :noWorksSData="noWorksS"
  15079. :chapInfoListData="chapInfoList"
  15080. :courseType="courseType"
  15081. :taskCount="taskCount"
  15082. :tType="tType"
  15083. :sIsOpen="sIsOpen"
  15084. :courseDetail="courseDetail"
  15085. :groupStudent2="groupStudent"
  15086. :groupStudentUid2="groupStudentUid"
  15087. :oid="oid"
  15088. :org="org"
  15089. @getCourseDetail="getCourseDetail"
  15090. @selectSLook="selectSLook"
  15091. @selectSWorks="selectSWorks"
  15092. @selectStudent="selectStudent"
  15093. @openWord="openWord"
  15094. @openScore="openScore"
  15095. @deleteWorks="deleteWorks"
  15096. @openTools="openTools"
  15097. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  15098. />
  15099. <el-dialog
  15100. :visible.sync="confirmOpenDig"
  15101. width="500px"
  15102. :modal="false"
  15103. class="confirmOpenDigCss dialog_diyCopy"
  15104. :before-close="handleClose">
  15105. <div style="display: flex;align-items: center;">
  15106. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  15107. <span>"{{ courseDetail.title }}"{{ lang.ssCourseStarted }}</span>
  15108. </div>
  15109. <div style="margin: 20px 0 35px;">
  15110. <div style="margin-bottom: 10px;">{{ lang.ssFollowTeacherLearning }}</div>
  15111. <div>{{ lang.ssStudyHard }}</div>
  15112. </div>
  15113. <div style="text-align: center;">
  15114. <el-button type="primary" style="width: 95%;" @click="confirmOpen">{{ lang.ssStartLearningBtn }}</el-button>
  15115. </div>
  15116. </el-dialog>
  15117. <appStoreC ref="appStoreC"
  15118. :sStudent="sStudent"
  15119. :courseType="courseType"
  15120. :taskCount="taskCount"
  15121. :toolindex="toolindex"
  15122. @selectSWorks="selectSWorks"
  15123. @selectStudent="selectStudent"
  15124. ></appStoreC>
  15125. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  15126. </div>
  15127. </template>
  15128. <script>
  15129. import "../../common/aws-sdk-2.235.1.min.js";
  15130. // import pdf from "../components/pdf3";
  15131. import pdf from "../components/vpdf";
  15132. import AskStatic from "../components/askStatic";
  15133. import AskStatic2 from "../components/askStatic2";
  15134. import AnswerData2 from "../components/answerData2";
  15135. import AnswerData from "../components/answerData";
  15136. import sortToolWorkShow from "../components/sortToolWorkShow.vue";
  15137. import EditorBar from "../tools/wangEnduit.vue";
  15138. import Table from "../tools/table.vue";
  15139. import Time from "../tools/time.vue";
  15140. import Mind from "../tools/jsmind.vue";
  15141. import Sunburst from "../tools/sunburst";
  15142. import SeeBoard from "../tools/seeBoard";
  15143. import * as imageConversion from "image-conversion";
  15144. import Audio from "../components/audio.vue";
  15145. import ImgDraw from "../tools/imgDraw/imgDraw";
  15146. import { Empty } from "element-ui";
  15147. import RecordRTC from "recordrtc";
  15148. import interVideo from "../interVideo/index.vue";
  15149. import UpdateMore from "../updateMore/updateMore.vue";
  15150. import wordCloud from "../wordCloud/index.vue";
  15151. import axios from "axios";
  15152. import JSZip from "jszip";
  15153. import FileSaver from "file-saver";
  15154. import onlineWrite from "./commpont/onlineWrite";
  15155. import englishEva from "../components/englishEva";
  15156. import * as Diff from 'diff'
  15157. import EnglishVoice from '../EnglishVoice2/index.vue'
  15158. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  15159. import correctText from '../components/correctText.vue'
  15160. import scoreItem from '../scoreList/scoreItem.vue'
  15161. import scoreZong from '../scoreZong/index.vue'
  15162. import classRoomHelper from '../classRoomHelper/index.vue'
  15163. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  15164. import MarkdownIt from "markdown-it";
  15165. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  15166. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  15167. import { v4 as uuidv4 } from "uuid";
  15168. import markScore from "../easy2/commpont/markScore";
  15169. import markDialog from "../easy2/commpont/markDialog";
  15170. import evaTable from "../easy2/commpont/evaTable";
  15171. import choseWordCloud from '../components/choseWordCloud.vue'
  15172. import appStoreC from "../components/appStoreC.vue";
  15173. import cocoFlowDia from "../components/cocoFlowDia.vue";
  15174. import { myMixin } from "@/mixins/mixin.js"
  15175. import { tools as toolsList } from "@/common/tools2.js";
  15176. import katex from 'katex'
  15177. import 'katex/dist/katex.min.css'
  15178. var OpenCC = require("opencc-js");
  15179. let converter = OpenCC.Converter({
  15180. from: "hk",
  15181. to: "cn"
  15182. });
  15183. const getFile = (url) => {
  15184. return new Promise((resolve, reject) => {
  15185. var credentials = {
  15186. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15187. secretAccessKey: "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",
  15188. }; //秘钥形式的登录上传
  15189. window.AWS.config.update(credentials);
  15190. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15191. let url2 = url;
  15192. let _url2 = "";
  15193. if (
  15194. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  15195. ) {
  15196. _url2 = url2.split(
  15197. "https://view.officeapps.live.com/op/view.aspx?src="
  15198. )[1];
  15199. } else {
  15200. _url2 = url2;
  15201. }
  15202. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  15203. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  15204. var params = {
  15205. Bucket: "ccrb",
  15206. Key: name
  15207. };
  15208. s3.getObject(params, function (err, data) {
  15209. if (err) {
  15210. console.log(err, err.stack)
  15211. resolve({ data: 1 });
  15212. }else {
  15213. resolve({ data: data.Body });
  15214. console.log(data);
  15215. } // sxuccessful response
  15216. });
  15217. // axios({
  15218. // method: "get",
  15219. // url,
  15220. // responseType: "blob",
  15221. // })
  15222. // .then((data) => {
  15223. // resolve({ data: data.data });
  15224. // })
  15225. // .catch((error) => {
  15226. // resolve({ data: 1 });
  15227. // // reject(error.toString());
  15228. // });
  15229. });
  15230. };
  15231. export default {
  15232. mixins: [ myMixin ],
  15233. components: {
  15234. choseWordCloud,
  15235. EditorBar,
  15236. Time,
  15237. pdf,
  15238. AskStatic,
  15239. AskStatic2,
  15240. Mind,
  15241. Sunburst,
  15242. SeeBoard,
  15243. AnswerData2,
  15244. AnswerData,
  15245. sortToolWorkShow,
  15246. Audio,
  15247. ImgDraw,
  15248. Table,
  15249. interVideo,
  15250. UpdateMore,
  15251. wordCloud,
  15252. onlineWrite,
  15253. englishEva,
  15254. EnglishVoice,
  15255. checkEnglishVoice,
  15256. correctText,
  15257. scoreItem,
  15258. classRoomHelper,
  15259. scoreZong,
  15260. markScore,
  15261. markDialog,
  15262. evaTable,
  15263. statisticalAnalysis,
  15264. choseWorksDetailDialog,
  15265. appStoreC,
  15266. cocoFlowDia,
  15267. studentClassRoomHelper
  15268. },
  15269. data() {
  15270. return {
  15271. // 学校或者组织随机码
  15272. Code2:'',
  15273. // 是否允许学生查看内容资料 2不可以 1可以
  15274. IsStulook:false,
  15275. homeWorkLoading:false,
  15276. toolsList: toolsList,
  15277. wordCloudKey: 0,
  15278. bg: null,
  15279. drawShow: false,
  15280. dialogVisible: false,
  15281. dialogVisiblePl: false,
  15282. commentDialogVisible: false,
  15283. dialogVisibleMember: false,
  15284. dialogVisibleWordCloud: false,
  15285. videoVisible: false,
  15286. isStar: false,
  15287. studentEvalDialogVisible: false,
  15288. studentEvalDialogVisibleTeacher: false,
  15289. dialogVisibleSelect: false,
  15290. dialogVisibleSelectTeacher: false,
  15291. dialogVisibleScore: false,
  15292. dialogVisibleENScore: false,
  15293. dialogVisibleSentence: false,
  15294. dialogVisibleSentenceTeacher: false,
  15295. dialogVisibleSentence1: false,
  15296. dialogVisibleWorks: false,
  15297. dialogVisibleTable: false,
  15298. dialogVisibleTableTeacher: false,
  15299. dialogVisibleWord: false,
  15300. dialogVisibleWordTeacher: false,
  15301. dialogVisibleTable2: false,
  15302. dialogVisibleTable3: false,
  15303. dialogVisibleGroupWork: false,
  15304. dialogVisibleUpdateGroup: false,
  15305. dialogVisibleDeleteGroup: false,
  15306. dialogVisibleSname: false,
  15307. dialogVisibleVideo: false,
  15308. dialogVisiblePickPeople: false,
  15309. worksSName: "",
  15310. classJuri: [],
  15311. uploadStudentJuri: [],
  15312. uploadCid: "",
  15313. snameWid: "",
  15314. sStudent: {},
  15315. sTool: "",
  15316. bzText: "",
  15317. commentDetail: [],
  15318. selectAnswer: [],
  15319. videoDetail: {},
  15320. selectJson: {},
  15321. eScore: { eBzText: "", eStar: [] },
  15322. id: this.$route.query.courseId,
  15323. userid: this.$route.query.userid,
  15324. classId: this.$route.query.cid,
  15325. role: this.$route.query.role,
  15326. // courseTypeLine: this.$route.query.type,
  15327. oid: this.$route.query.oid,
  15328. org: this.$route.query.org,
  15329. tType: this.$route.query.tType,
  15330. courseType: this.$route.query.type,
  15331. screenType: this.$route.query.screenType,
  15332. tcid2: this.$route.query.tcid,
  15333. tcid: "",
  15334. pptImgUrl: "",
  15335. pptImgUrl1: "",
  15336. commentText: "",
  15337. full: false,
  15338. sIsOpen: false,
  15339. IsLookOpen: false,
  15340. IsFollow: false,
  15341. pzDialog: false,
  15342. contentDialog: false,
  15343. mlDialog: false,
  15344. type: 1,
  15345. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  15346. sentenceList1: [],
  15347. tableJson: [],
  15348. tableJsonO: [],
  15349. wordJson: [],
  15350. wordJsonO: [],
  15351. vedio: [],
  15352. text: [],
  15353. textList: [],
  15354. line: [],
  15355. lineList: [],
  15356. chapTools: [],
  15357. chapToolList: [],
  15358. file: [],
  15359. fileC: [],
  15360. vedioTime: [],
  15361. upToolImg: "",
  15362. preTime: 0,
  15363. rateList: {
  15364. ca: 0,
  15365. },
  15366. rateParams: [],
  15367. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  15368. studyJuri: [
  15369. {
  15370. content: "",
  15371. cover: [],
  15372. upVedio: [],
  15373. upFile: [],
  15374. },
  15375. ],
  15376. isClose: 0,
  15377. plworkFile: [],
  15378. mr: require("../../assets/vedioPic.png"),
  15379. word: require("../../assets/icon/isWord.png"),
  15380. word2: require("../../assets/icon/word2.png"),
  15381. video: require("../../assets/icon/isVideo.png"),
  15382. noLikes: require("../../assets/icon/comment/noLikes.png"),
  15383. likes: require("../../assets/icon/comment/likes.png"),
  15384. scoreImg: require("../../assets/score.png"),
  15385. courseDetail: {},
  15386. reply: "",
  15387. isSelect: false,
  15388. chapInfo: [],
  15389. chapInfoList: [],
  15390. taskCount: 0,
  15391. imgList: [],
  15392. noImgList: [],
  15393. pzList: [],
  15394. timeWorkList: [],
  15395. PlTextList: [
  15396. "Excellent!",
  15397. "nice!",
  15398. this.lang.ssVeryCreative,
  15399. this.lang.ssNotBad,
  15400. this.lang.ssKeepTrying,
  15401. ],
  15402. isClickNav: "",
  15403. navId: "",
  15404. playerOptions: {
  15405. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15406. autoplay: false, //如果true,浏览器准备好时开始回放。
  15407. muted: false, // 默认情况下将会消除任何音频。
  15408. loop: false, // 导致视频一结束就重新开始。
  15409. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15410. language: "zh-CN",
  15411. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15412. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15413. sources: [
  15414. {
  15415. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15416. src: "", //url地址require("../../../assets/media/aaa.mp4")
  15417. },
  15418. ],
  15419. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15420. // poster: dataRes.imgUrl, //你的封面地址
  15421. notSupportedMessage: this.lang.ssVideoNotSupported, //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15422. controlBar: {
  15423. timeDivider: true, //当前时间和持续时间的分隔符
  15424. durationDisplay: true, //显示持续时间
  15425. remainingTimeDisplay: false, //是否显示剩余时间功能
  15426. fullscreenToggle: true, //全屏按钮
  15427. },
  15428. },
  15429. playerOptions1: {
  15430. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15431. autoplay: false, //如果true,浏览器准备好时开始回放。
  15432. muted: false, // 默认情况下将会消除任何音频。
  15433. loop: false, // 导致视频一结束就重新开始。
  15434. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15435. language: "zh-CN",
  15436. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15437. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15438. sources: [
  15439. {
  15440. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15441. src: "", //url地址require("../../../assets/media/aaa.mp4")
  15442. },
  15443. ],
  15444. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15445. // poster: dataRes.imgUrl, //你的封面地址
  15446. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15447. controlBar: {
  15448. timeDivider: true, //当前时间和持续时间的分隔符
  15449. durationDisplay: true, //显示持续时间
  15450. remainingTimeDisplay: false, //是否显示剩余时间功能
  15451. fullscreenToggle: true, //全屏按钮
  15452. },
  15453. },
  15454. playerO: {},
  15455. noneBtnImg: false,
  15456. proVisible: false,
  15457. proVisible2: false,
  15458. progress: 0,
  15459. isFinishSize: 0,
  15460. isAllSize: 0,
  15461. questionAnswer: "",
  15462. answerQ: "", //问答标题
  15463. rateJson: [],
  15464. wbCount: 0,
  15465. wordCount: 0,
  15466. mindCount: 0,
  15467. askCount: 0,
  15468. noteCount: 0,
  15469. mindNetWorkCount: 0,
  15470. libraryCount: 0,
  15471. workCount: 0,
  15472. timeCount: 0,
  15473. answerCount: 0,
  15474. trainCount: 0,
  15475. evalCount: 0,
  15476. dialogImageUrl: "",
  15477. pictureDialog: false,
  15478. toolTypeList: [],
  15479. dialogVisible1: false,
  15480. dialogVisible2: false,
  15481. dialogVisible3: false,
  15482. dialogVisible6: false,
  15483. dialogVisible4: false,
  15484. isNoHomeWork: false,
  15485. dialogVisible5: false,
  15486. dialogVisible5Teacher: false,
  15487. dialogVisibleChoice: false,
  15488. dialogVisibleChoiceTeacher: false,
  15489. answerDialogVisible: false,
  15490. answerDialogVisibleTeacher: false,
  15491. juriVisible: false,
  15492. timeDialogVisible: false,
  15493. replyDialogVisible: false,
  15494. toolDialogVisible: false,
  15495. engDialogVisible: false,
  15496. engUpdateDialogVisible:false,
  15497. engEvaDialogVisible: false,
  15498. evaEngJson: {
  15499. teacherJson: {},
  15500. studentJson: {},
  15501. message: {},
  15502. },
  15503. isNoUserid:false,
  15504. engListLength:0,
  15505. engWid:"",
  15506. newEnglishList:{
  15507. engTitle:"",
  15508. engText:"",
  15509. },
  15510. newEnglishList1:[],
  15511. oldEnglishJson:{},
  15512. oldEnglishJson1:{},
  15513. englishList1:{},
  15514. englishList:{},
  15515. myAnswerList1:{},
  15516. topHeight:0,
  15517. newEngIndex:-1,
  15518. englishToolIndex:0,
  15519. userMes:{},
  15520. englishToolIndex:0,
  15521. replyIndex: 0,
  15522. replyPid: "",
  15523. radio: [],
  15524. isAsk: false,
  15525. askJson: {
  15526. askCount: 1,
  15527. askTitle: "",
  15528. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  15529. },
  15530. testJson: {},
  15531. englishList: {},
  15532. topHeight:0,
  15533. checkJson: [],
  15534. askList: [],
  15535. answerList: [],
  15536. navList: [],
  15537. addPzDialog: false,
  15538. pzConText: "",
  15539. worksStudent: [],
  15540. isCloseList: [],
  15541. workStudent: [],
  15542. groupStudent: [],
  15543. groupStudentUid: [],
  15544. noWorksS: [],
  15545. isWorksS: [],
  15546. noWorksStudent: [],
  15547. toolindex: 0,
  15548. toolDetailIndex: null,
  15549. groupIndex: 0,
  15550. workTypeB: false,
  15551. workTypeC: false,
  15552. isAnswer: false,
  15553. isHovered: false,
  15554. isHovered1: false,
  15555. isHovered2: false,
  15556. commentTagShow:0,
  15557. timer: null,
  15558. timer2: null,
  15559. opertimer: null,
  15560. showType: '',
  15561. fileType: 0,
  15562. showPDF: false,
  15563. noteName: "",
  15564. evaJuri: [],
  15565. evalua: "",
  15566. eTitle: "",
  15567. eName: "",
  15568. eJson: {},
  15569. fid: "", //一级
  15570. sid: "", //二级
  15571. tid: "", //二级
  15572. typeMode: 1,
  15573. eJSONNum: 0,
  15574. Etype: 1,
  15575. data: {
  15576. meta: {
  15577. name: "example",
  15578. author: "dd@163.com",
  15579. version: "0.2",
  15580. },
  15581. format: "node_array",
  15582. data: [{ id: "root", isroot: true, topic: "" }],
  15583. },
  15584. fullDialogVisible: false,
  15585. fulltype: "",
  15586. fullUrl: "",
  15587. commentIndexJson: {},
  15588. Stbodywidth: 0,
  15589. ispzType: 0,
  15590. pzType: 1,
  15591. wScore: 0,
  15592. scoreDetail: "",
  15593. videoStart: false,
  15594. recorder: null,
  15595. groupJson: {},
  15596. islock: false,
  15597. groupJson2: {},
  15598. dialogVisibleGroup: false,
  15599. dialogVisibleGroup2: false,
  15600. updateGroupArray: [],
  15601. updateGroupUser: {},
  15602. deleteGroupUser: [],
  15603. deleteGroupArray: {},
  15604. checkChair: "",
  15605. checkDeleteGroup: [],
  15606. inviteCode: "",
  15607. courseGroupStudent: [],
  15608. courseGroupStudentUid: [],
  15609. courseGroup: {},
  15610. isGroup: false,
  15611. toolIndex: null,
  15612. tool: {},
  15613. isWorkTool: [
  15614. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  15615. ], //, 40
  15616. videoJson: {},
  15617. videoType:0,
  15618. toolType: 0,
  15619. checktoolArray: [],
  15620. vChapterData: [],
  15621. isUpdateToolDetail: false,
  15622. isUpdateToolDetail1: false,
  15623. updateToolDetailInner: "",
  15624. checkboxList: [],
  15625. plIndex: "",
  15626. worksSName2: "",
  15627. worksSid: "",
  15628. wordCloudData: [],
  15629. isPickStudent: [],
  15630. pzStype: 1,
  15631. myAnList: {},
  15632. downLoading: false,
  15633. greyType: false,
  15634. correctWord: [],
  15635. EnglishVoiceDialog: false,
  15636. englishVoiceJson: {},
  15637. englishVoiceJsonWork:[],
  15638. scoreList:{
  15639. listdata:[],
  15640. isScoreList:[],
  15641. },
  15642. classRoomHelperWidth: '85px',
  15643. orgArray:[],
  15644. oidArray:[],
  15645. splitScreenData:{
  15646. isOpen:false,
  15647. userId:"",
  15648. uid:"",
  15649. myUid:"",
  15650. loading:false,
  15651. behavior:null,
  15652. },
  15653. confirmOpenDig:false,
  15654. confirmOpenDigData:'',
  15655. refreshKey: 0,
  15656. AIloading: [],
  15657. worksStudentCopy: [],
  15658. loopLoading: [],
  15659. markScoreVisible: false,
  15660. markScoretoolIndex: 0,
  15661. markScoreUid: "",
  15662. markScoreTit: {},
  15663. markfullscreen: false,
  15664. xianObj: ["DOCX", "MD", "TXT", "PDF", "JPG", "PNG"],
  15665. markScoreworksStudent: [],
  15666. finalMarkList: -1,
  15667. isaiNum: 0,
  15668. dialogVisibleTxt: false,
  15669. TxtMd: "",
  15670. languageSetting: 0, //0中文 1繁体 2英文
  15671. toolListS: [],
  15672. commentDetailCopy: "",
  15673. diffKey:"1",
  15674. getCourseGroupLoading: false,
  15675. selectSWorksLoading:false,
  15676. selectStudentLoading:false,
  15677. selectSLookLoading:false,
  15678. getPickLoading:false,
  15679. selectPzLoading:false,
  15680. getSplitScreenDataLoading:false,
  15681. };
  15682. },
  15683. watch:{
  15684. taskCount(newVal) {
  15685. console.log('newVal',newVal);
  15686. this.AIloading = [];
  15687. this.loopLoading = [];
  15688. this.worksStudent.forEach((e, index) => {
  15689. this.loopLoading.push({ loading: false });
  15690. this.AIloading.push([]);
  15691. e.forEach(k => {
  15692. this.AIloading[index].push({ loading: false, sco: 0 });
  15693. });
  15694. });
  15695. if(this.tType == 1){
  15696. this.refreshAssembly();
  15697. }
  15698. },
  15699. worksStudent: {
  15700. handler(newVal, oldVal) {
  15701. // const sum1 = newVal.reduce((total, subArr) => total + subArr.length, 0);
  15702. // const sum2 = oldVal.reduce((total, subArr) => total + subArr.length, 0);
  15703. // console.log('worksStudent',sum1,sum2);
  15704. if(JSON.stringify(newVal) != JSON.stringify(oldVal)){
  15705. this.AIloading = [];
  15706. this.loopLoading = [];
  15707. this.worksStudent.forEach((e, index) => {
  15708. this.loopLoading.push({ loading: false });
  15709. this.AIloading.push([]);
  15710. e.forEach(k => {
  15711. this.AIloading[index].push({ loading: false, sco: 0 });
  15712. });
  15713. });
  15714. if(this.tType == 1){
  15715. this.refreshAssembly();
  15716. }
  15717. }
  15718. },
  15719. deep:true,
  15720. }
  15721. },
  15722. methods: {
  15723. // 获取学校或组织随机码
  15724. getCode2(){
  15725. let params = {
  15726. oid: this.oid,
  15727. org: this.org
  15728. };
  15729. this.ajax
  15730. .get(this.$store.state.api + "getCode2", params)
  15731. .then(res => {
  15732. this.Code2 = res.data[0] && res.data[0][0] && res.data[0][0].code2 ? res.data[0][0].code2 : ''
  15733. })
  15734. .catch(err => {
  15735. console.error(err);
  15736. });
  15737. },
  15738. //查看应用中心作业
  15739. openCocoFlow(w){
  15740. this.$refs.cocoFlowDiaRef.openAppWork(w)
  15741. },
  15742. getAIJ() {
  15743. this.ajax.get(this.$store.state.api + "getAIJ", "").then(res => {
  15744. let oid = res.data[0];
  15745. let org = res.data[1];
  15746. let oidArray = [];
  15747. let orgArray = [];
  15748. oid.forEach(i => oidArray.push(i.oid));
  15749. org.forEach(i => orgArray.push(i.oid));
  15750. this.orgArray = orgArray;
  15751. this.oidArray = oidArray;
  15752. });
  15753. },
  15754. // 评分弹框全屏
  15755. markFullScreenBtn() {
  15756. this.markfullscreen = !this.markfullscreen;
  15757. },
  15758. insertMemorandum(_html) {
  15759. //保存行为操作
  15760. //variable
  15761. //btn
  15762. let params = [
  15763. {
  15764. uid: this.userid,
  15765. courseId: this.id + (this.tcid2 ? this.tcid2 : ""),
  15766. content: _html
  15767. }
  15768. ];
  15769. console.log(params);
  15770. this.ajax
  15771. .post(
  15772. this.$store.state.api + "insert_systemOperation_countdownBehavior",
  15773. params
  15774. )
  15775. .then(res => {
  15776. if (res.data == 1) {
  15777. console.log("保存操作成功");
  15778. } else {
  15779. console.log("保存操作失败");
  15780. }
  15781. })
  15782. .catch(e => {
  15783. console.log("保存操作失败");
  15784. console.log(e);
  15785. });
  15786. },
  15787. // 获取文档id
  15788. createFileid(url) {
  15789. let _this = this;
  15790. return new Promise((resolve, reject) => {
  15791. try {
  15792. _this.ajax
  15793. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  15794. url: url
  15795. })
  15796. .then(res => {
  15797. let _data = res.data.FunctionResponse;
  15798. if (_data.result && _data.result.id) {
  15799. resolve(_data.result.id);
  15800. } else {
  15801. resolve(1);
  15802. }
  15803. })
  15804. .catch(function(error) {
  15805. resolve(1);
  15806. });
  15807. } catch (e) {
  15808. resolve(1);
  15809. }
  15810. });
  15811. },
  15812. // 一键重置
  15813. resetLoopEva(con, tit, stage, task, toolIndex, toolDetail, worksStudent) {
  15814. let jude = false;
  15815. this.AIloading.forEach((e, index) => {
  15816. if (index == toolIndex) {
  15817. e.forEach(k => {
  15818. if (k.loading == true) jude = true;
  15819. });
  15820. }
  15821. });
  15822. if (jude) return this.$message.info(this.lang.ssAIScoringInProgress);
  15823. this.$confirm(this.lang.ssConfirmReset)
  15824. .then(_ => {
  15825. this.allEmptyScoBtn(con, stage, task, toolIndex);
  15826. })
  15827. .catch(_ => {});
  15828. },
  15829. // 一键重置
  15830. async allEmptyScoBtn(con, stage, task, toolIndex) {
  15831. for (let index = 0; index < con.length; index++) {
  15832. await this.allEmptySco(con[index].userid, stage, task, toolIndex);
  15833. }
  15834. this.$message.success(this.lang.ssResetCompleted);
  15835. this.worksStudent.forEach((e, index) => {
  15836. if (toolIndex == index) {
  15837. console.log("6666");
  15838. e.forEach((i, inx) => {
  15839. let mk = `markSco${index}${inx}`;
  15840. this.$refs[mk][0].getData();
  15841. });
  15842. }
  15843. });
  15844. },
  15845. // 一键重置
  15846. allEmptySco(uid, stage, task, toolIndex) {
  15847. let params = [
  15848. {
  15849. cid: this.id,
  15850. uid: uid,
  15851. s: stage,
  15852. t: task,
  15853. tool: toolIndex ? toolIndex : ""
  15854. }
  15855. ];
  15856. return new Promise(resolve => {
  15857. this.ajax
  15858. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  15859. .then(res => {
  15860. resolve(1);
  15861. })
  15862. .catch(err => {
  15863. console.error(err);
  15864. });
  15865. }).catch(error => {
  15866. console.log(error);
  15867. });
  15868. },
  15869. // AI评分循环打分
  15870. async loopEva(
  15871. con,
  15872. tit,
  15873. stage,
  15874. task,
  15875. toolIndex,
  15876. toolDetail,
  15877. taskDetail,
  15878. toolList
  15879. ) {
  15880. let jude = false;
  15881. this.AIloading.forEach((e, index) => {
  15882. if (index == toolIndex) {
  15883. e.forEach(k => {
  15884. if (k.loading == true) jude = true;
  15885. });
  15886. }
  15887. });
  15888. if (jude) return this.$message.info(this.lang.ssNoConcurrentAIScoring);
  15889. this.AIloading.forEach((e, index) => {
  15890. if (index == toolIndex) {
  15891. e.forEach(k => {
  15892. k.loading = true;
  15893. });
  15894. }
  15895. });
  15896. this.loopLoading[toolIndex].loading = true;
  15897. let laws = "";
  15898. let std = "";
  15899. let text = "";
  15900. if (toolList && toolList.eList && toolList.eList.length) {
  15901. for (let i = 0; i < toolList.eList.length; i++) {
  15902. if (toolList.eList[i].isai == 1) {
  15903. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  15904. }
  15905. }
  15906. for (let i = 0; i < toolList.eList.length; i++) {
  15907. if (toolList.eList[i].isai == 1) {
  15908. let a = toolList.eList[i].detail;
  15909. if (isNaN(parseFloat(a)) && a) {
  15910. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  15911. } else {
  15912. var result = a;
  15913. }
  15914. std += `纬度${i}:“${result}”, \n`;
  15915. }
  15916. }
  15917. for (let i = 0; i < toolList.eList.length; i++) {
  15918. if (toolList.eList[i].isai == 1) {
  15919. let a = toolList.eList[i].detail;
  15920. if (isNaN(parseFloat(a)) && a) {
  15921. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  15922. } else {
  15923. var result = a;
  15924. }
  15925. text += `{'${result}' : '评价等级0-5(数字)'},`;
  15926. }
  15927. }
  15928. } else {
  15929. let titRule = 0;
  15930. let titRule2 = 0;
  15931. tit.forEach((e, index) => {
  15932. if (!e.isai) {
  15933. e.isai = 1;
  15934. }
  15935. });
  15936. tit.forEach((e, index) => {
  15937. if (e.isai == 1) {
  15938. titRule2++;
  15939. if (e.rule) {
  15940. titRule++;
  15941. }
  15942. }
  15943. });
  15944. if (titRule != titRule2) {
  15945. this.AIloading.forEach((e, index) => {
  15946. if (index == toolIndex) {
  15947. e.forEach(k => {
  15948. k.loading = false;
  15949. });
  15950. }
  15951. });
  15952. this.loopLoading[toolIndex].loading = false;
  15953. this.$message.info(this.lang.ssDetailGenerating);
  15954. return;
  15955. }
  15956. for (let i = 0; i < tit.length; i++) {
  15957. if (tit[i].isai == 1) {
  15958. laws += ` 细则${i}:${tit[i].rule}, \n`;
  15959. }
  15960. }
  15961. for (let i = 0; i < tit.length; i++) {
  15962. if (tit[i].isai == 1) {
  15963. let a = tit[i].detail;
  15964. if (isNaN(parseFloat(a)) && a) {
  15965. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  15966. } else {
  15967. var result = a;
  15968. }
  15969. std += `纬度${i}:“${result}”, \n`;
  15970. }
  15971. }
  15972. for (let i = 0; i < tit.length; i++) {
  15973. if (tit[i].isai == 1) {
  15974. let a = tit[i].detail;
  15975. if (isNaN(parseFloat(a)) && a) {
  15976. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  15977. } else {
  15978. var result = a;
  15979. }
  15980. text += `{'${result}' : '评价等级0-5(数字)'},`;
  15981. }
  15982. }
  15983. }
  15984. let forAllList = [];
  15985. // console.log('con',con)
  15986. for (let i = 0; i < con.length; i++) {
  15987. let _fileid = "";
  15988. let wok = con[i].works;
  15989. // console.log('con',con);
  15990. // console.log('con[i].type',con[i].type);
  15991. if (con[i].type == 0 || con[i].type == 1 || con[i].type == 12) {
  15992. let a = wok.slice(wok.lastIndexOf(".") + 1);
  15993. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  15994. _fileid = await this.createFileid(con[i].works);
  15995. } else {
  15996. this.AIloading[toolIndex][i].loading = false;
  15997. continue;
  15998. }
  15999. }
  16000. // console.log('con[i].type',con[i])
  16001. // console.log('con[i].type',con[i].type)
  16002. if (_fileid == 1 || con[i].type == 3) {
  16003. this.AIloading[toolIndex][i].loading = false;
  16004. continue;
  16005. }
  16006. let msg = ''
  16007. if(con[i].type == 20){
  16008. msg = `#NOTICE#
  16009. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16010. - 深入理解教育评价标准,准确判断对话内容是否符合要求。
  16011. - 具备较强的文本分析能力,从对话中有效提取评价相关信息。
  16012. - 拥有客观公正的态度,确保评分结果公平合理。
  16013. - 能够清晰准确地表达评语,使学生和教师易于理解。
  16014. - 熟悉各类学习作业的要求和重点,为评价提供依据。
  16015. - 掌握一定的教育教学知识,更好地分析对话在教育场景中的意义。
  16016. Language: ${this.getLang()}
  16017. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16018. Instruction: Based on the context, follow "Format example", write content.
  16019. #目标#
  16020. 你要结合<作业内容><评价标准>和该标准对应的<等级>写评语。
  16021. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16022. #评分资料#
  16023. 评价标准:${std}
  16024. 评价细则:${laws}
  16025. 等级:${text}
  16026. 作业内容:${_fileid ? "上传的文件内容" : con[i].works}
  16027. 具体你步骤如下:
  16028. 1. 作业内容审查:仔细阅读需要评价的作业内容,标记出可能与评价相关的部分,如知识点的回答准确性、回答的完整性、语言表达的规范性等。
  16029. 2. 掌握评价标准:阅读理解并掌握评价标准的结构与内容,包括评价维度、不同等级以及对应的评价细则的内容为评价标准。
  16030. 3. 评分计算:针对提取的作业内容按照确定的评价标准,对标记出的评价相关部分进行量化打分,输出评分结果。
  16031. 4. 评语生成:根据评分结果和对话中的具体情况,撰写评语,指出优点和不足之处,以帮助学生自查作业并为教师提供评价和指导依据。
  16032. ### 理论框架
  16033. ### 教育目标分类理论
  16034. 1. 基本原理:
  16035. - 将教育目标按照不同的层次分类,如认知领域、情感领域和动作技能领域等。
  16036. - 有助于明确教学活动期望达成的目标类型。
  16037. - 为评价教学成果提供了分类框架。
  16038. 2. 具体应用:
  16039. - 分析对话中涉及的目标类型,判断是否符合预期的教育目标。
  16040. - 依据不同目标类型的要求,评估对话对学生相应能力的促进作用。
  16041. - 对比不同对话内容在目标达成度上的差异进行评分。
  16042. ### 教学评价理论
  16043. 1. 基本原理:
  16044. - 关注教学过程和结果的评价,包括对教师教学行为和学生学习成果的评价。
  16045. - 从多个维度进行评价,如教学内容、教学方法、学习效果等。
  16046. - 强调评价的客观性、全面性和发展性。
  16047. 2. 具体应用:
  16048. - 从对话中提取与教学内容、方法相关的信息进行评价。
  16049. - 考量对话对学生学习效果的影响来给出评分。
  16050. - 根据评价结果提出改进和发展的建议。
  16051. ### 对话分析理论
  16052. 1. 基本原理:
  16053. - 着重对对话结构、话语功能、交互模式等进行分析。
  16054. - 揭示对话中的信息流动、话语权分配等情况。
  16055. - 有助于理解对话参与者之间的关系和互动效果。
  16056. 2. 具体应用:
  16057. - 剖析“小可ai助手”与学生对话的结构合理性。
  16058. - 分析话语功能是否有助于学习和评价目的。
  16059. - 根据交互模式判断对话是否有利于学生参与和学习,从而给出评分。
  16060. #输出格式#
  16061. [${text}{'comment':'评语(150个汉字左右)'}]
  16062. 注意检查输出评语不超过50字`
  16063. }else{
  16064. msg = `NOTICE
  16065. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16066. Language: ${this.getLang()}
  16067. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16068. Instruction: Based on the context, follow "Format example", write content.
  16069. #目标#
  16070. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  16071. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  16072. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  16073. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  16074. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16075. #评分资料#
  16076. 评价标准:${std}
  16077. 评价细则:${laws}
  16078. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
  16079. 任务描述:${taskDetail}
  16080. 工具描述:${toolDetail}
  16081. #输出要求#
  16082. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  16083. “评语”控制在150字左右。
  16084. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  16085. #输出格式#
  16086. [${text}{'comment':'评语(150个汉字左右)'}]
  16087. `;
  16088. }
  16089. let mk = `markSco${toolIndex}${i}`;
  16090. let mkAwit = this.$refs[mk][0].aiupdetaSco(
  16091. msg,
  16092. con[i].userid,
  16093. stage,
  16094. task,
  16095. _fileid,
  16096. con[i].type
  16097. );
  16098. forAllList.push(mkAwit);
  16099. }
  16100. Promise.all(forAllList)
  16101. .then(values => {
  16102. console.log("values", values);
  16103. this.$message({
  16104. message: this.lang.ssEvaluationSuccess,
  16105. type: "success"
  16106. });
  16107. // this.refreshKey++
  16108. // this.worksStudent.forEach((e,index)=>{
  16109. // if(toolIndex == index){
  16110. // e.forEach((i,inx)=>{
  16111. // let mk = `markSco${index}${inx}`
  16112. // this.$refs[mk][0].getData()
  16113. // })
  16114. // }
  16115. // })
  16116. this.AIloading[toolIndex].forEach(e => {
  16117. e.loading = false;
  16118. });
  16119. this.loopLoading[toolIndex].loading = false;
  16120. })
  16121. .catch(reason => {
  16122. console.error("reason", reason);
  16123. // 输出“失败原因”
  16124. });
  16125. },
  16126. // 获取评价细则
  16127. againEva(i, k) {
  16128. let msg = `NOTICE
  16129. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  16130. Language: ${this.getLang()}
  16131. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  16132. Instruction: Based on the context, follow "Format example", write content.
  16133. #Context
  16134. ##要求
  16135. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  16136. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  16137. ##制定标准资料
  16138. 评价维度:${
  16139. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value
  16140. }
  16141. 维度描述:${
  16142. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail
  16143. }
  16144. # Format example
  16145. ==
  16146. 0 星,作业内容与作业要求无关;
  16147. 1 星,没有识别问题和需求;
  16148. 2 星,问题或需求没有被清晰理解或准确识别;
  16149. 3 星,问题或需求的一部分被识别;
  16150. 4 星,问题或需求的大部分被识别;
  16151. 5 星,问题或需求都被识别。
  16152. ==
  16153. `;
  16154. let params = {
  16155. assistant_id: "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
  16156. message: [
  16157. { type: "text", text: msg.replaceAll("\n", " ").replaceAll("*", "") }
  16158. ],
  16159. session_name: uuidv4(),
  16160. userId: this.userid,
  16161. file_ids: [],
  16162. model: "gpt-4o-2024-11-20"
  16163. };
  16164. // console.log('params',params);
  16165. this.ajax
  16166. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  16167. .then(response => {
  16168. let data = response.data.FunctionResponse;
  16169. // console.log("data", data);
  16170. if (data.message) {
  16171. let content = data.message;
  16172. var regex = new RegExp("==([^=]+)==");
  16173. let match = content.match(regex);
  16174. if (match) {
  16175. content = match[1].trim().replaceAll(" ", "");
  16176. // 获取匹配到的内容并去除两端空格
  16177. // console.log('contentInsideDoubleEquals', content);
  16178. if (
  16179. content.indexOf("0星") == -1 ||
  16180. content.indexOf("2星") == -1 ||
  16181. content.indexOf("3星") == -1 ||
  16182. content.indexOf("4星") == -1 ||
  16183. content.indexOf("5星") == -1
  16184. ) {
  16185. console.log("未有星级。");
  16186. this.againEva(i, k);
  16187. return;
  16188. }
  16189. // return
  16190. } else {
  16191. console.log("未找到匹配的内容。");
  16192. this.againEva(i, k);
  16193. return;
  16194. }
  16195. let elist = JSON.parse(
  16196. JSON.stringify(
  16197. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]
  16198. )
  16199. );
  16200. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  16201. elist.rule = JSON.parse(
  16202. JSON.stringify(content.replaceAll("#", ""))
  16203. );
  16204. this.$set(
  16205. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,
  16206. k,
  16207. elist
  16208. );
  16209. this.$forceUpdate();
  16210. let params2 = [
  16211. {
  16212. cid: this.id,
  16213. chapters: JSON.stringify(this.chapInfoList),
  16214. uid: this.userid,
  16215. unitIndex: this.courseType
  16216. }
  16217. ];
  16218. this.ajax
  16219. .post(this.$store.state.api + "updateWorkNew4", params2)
  16220. .then(res => {
  16221. this.getCourseDetail(2);
  16222. this.$forceUpdate();
  16223. })
  16224. .catch(err => {
  16225. this.$message.error(this.lang.ssNetworkPoor);
  16226. console.error(err);
  16227. });
  16228. // 进行进一步处理或解析outputContent
  16229. // } else {
  16230. // console.log("No match found for # Output section.");
  16231. // }
  16232. }
  16233. })
  16234. .catch(error => {
  16235. console.log(error);
  16236. });
  16237. },
  16238. // 关闭评分弹框
  16239. markScorehandleClose(done) {
  16240. // this.refreshKey++
  16241. this.worksStudent.forEach((e, index) => {
  16242. if (this.markScoretoolIndex == index) {
  16243. e.forEach((i, inx) => {
  16244. let mk = `markSco${index}${inx}`;
  16245. if (this.$refs[mk] && this.$refs[mk][0]) {
  16246. this.$refs[mk][0].getData();
  16247. }
  16248. });
  16249. }
  16250. });
  16251. done();
  16252. },
  16253. // 关闭txtMd预览弹框
  16254. handleCloseTxt(done) {
  16255. this.TxtMd = "";
  16256. done();
  16257. },
  16258. // Txt,Md作业查看
  16259. lookTxt(val) {
  16260. this.dialogVisibleTxt = true;
  16261. this.TxtMd = "";
  16262. getFile(val).then(res => {
  16263. this.TxtMd = res.data;
  16264. });
  16265. },
  16266. // 组件刷新
  16267. refreshAssembly() {
  16268. this.refreshKey++;
  16269. },
  16270. updateLoading(payload) {
  16271. this.AIloading[payload.val][payload.val2].loading = payload.val3;
  16272. },
  16273. handleShow(toolIndex, val) {
  16274. let mk = `markSco${toolIndex}${val}`;
  16275. // console.log(mk);
  16276. this.$refs[mk][0].getData();
  16277. },
  16278. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  16279. markScoreDig2(uname, worksStudent, uid, tidx, titlist, val = 0, toolList) {
  16280. // console.log('this.AIloading',this.AIloading)
  16281. let jude = false;
  16282. this.AIloading.forEach((e, index) => {
  16283. if (index == tidx) {
  16284. e.forEach(k => {
  16285. if (k.loading == true) jude = true;
  16286. });
  16287. }
  16288. });
  16289. if (jude) return this.$message.info(this.lang.ssAIEvaluatingInProgress);
  16290. if (val) return;
  16291. // console.log(uname,worksStudent,uid,tidx,titlist)
  16292. this.markScoreTit = titlist;
  16293. this.markScoreUid = uid;
  16294. this.toolListS = toolList;
  16295. this.markScoretoolIndex = tidx;
  16296. this.markScoreworksStudent = worksStudent;
  16297. this.markfullscreen = false;
  16298. this.markScoreVisible = true;
  16299. if (this.tType == 1) {
  16300. this.insertMemorandum(
  16301. `查看<span class="variable">${uname}</span>的作业`
  16302. );
  16303. }
  16304. },
  16305. // 点击markScore显示评分框
  16306. markScoreDig(data) {
  16307. // console.log('data',data)
  16308. let jude = false;
  16309. this.AIloading.forEach((e, index) => {
  16310. if (index == data.val2) {
  16311. e.forEach(k => {
  16312. if (k.loading == true) jude = true;
  16313. });
  16314. }
  16315. });
  16316. if (jude) return this.$message.info(this.lang.ssAIEvaluatingInProgress);
  16317. this.markScoreTit = data.tit;
  16318. this.markScoreUid = data.val;
  16319. this.markScoretoolIndex = data.val2;
  16320. this.markfullscreen = false;
  16321. this.markScoreVisible = true;
  16322. this.insertMemorandum(
  16323. `查看<span class="variable">${data.uname}</span>的作业`
  16324. );
  16325. },
  16326. // 刷新其他组件分数
  16327. refreshOther(v) {
  16328. // console.log('v',v)
  16329. this.AIloading[v.tid].forEach((e, i) => {
  16330. if (i == v.wid) {
  16331. e.loading = false;
  16332. }
  16333. });
  16334. // this.worksStudent.forEach((e,index)=>{
  16335. // if(toolIndex != index){
  16336. // e.forEach((i,inx)=>{
  16337. // let mk = `markSco${index}${inx}`
  16338. // this.$refs[mk][0].getData()
  16339. // })
  16340. // }
  16341. // })
  16342. },
  16343. updateDocSco(payload) {
  16344. // console.log('payload',payload)
  16345. this.AIloading[payload.val][payload.val2].sco = payload.val3;
  16346. },
  16347. gx(){
  16348. this.$forceUpdate();
  16349. },
  16350. isUpdateCorrect(t,p){
  16351. if(this.greyType == false){
  16352. this.isUpdateText = t;
  16353. this.greyType = true;
  16354. }else{
  16355. if(p == 1){
  16356. this.newEnglishList.engText = this.isUpdateText;
  16357. }else if(p == 2){
  16358. this.oldEnglishJson1.engText = this.isUpdateText;
  16359. }else if(p == 3){
  16360. this.newEnglishList.engText = this.isUpdateText;
  16361. }else{
  16362. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  16363. }
  16364. this.greyType = false
  16365. }
  16366. },
  16367. aiCorrect(t,p){
  16368. let aiText = "";
  16369. const loading = this.$loading.service({
  16370. background: "rgba(255, 255, 255)",
  16371. target: document.querySelectorAll(".loadingText")[0],
  16372. });
  16373. let param = {
  16374. model: "gpt-3.5-turbo",
  16375. temperature: 0,
  16376. max_tokens: 2048,
  16377. top_p: 1,
  16378. frequency_penalty: 0,
  16379. presence_penalty: 0,
  16380. messages: [
  16381. {
  16382. role: "user",
  16383. content:
  16384.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  16385. },
  16386. ],
  16387. uid: this.userid,
  16388. stream: false,
  16389. };
  16390. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  16391. (res) => {
  16392. if (
  16393. res.data.FunctionResponse &&
  16394. res.data.FunctionResponse.result &&
  16395. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  16396. ) {
  16397. this.$message.error(this.lang.ssEssayTooLongForAI);
  16398. return;
  16399. }
  16400. aiText =
  16401. res.data.FunctionResponse.choices[0].message.content;
  16402. aiText = aiText.replace(/%/g,"%25");
  16403. // let w = "";
  16404. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  16405. // for(var k = 0;k<a.length;k++){
  16406. // //diffWordsWithSpace
  16407. // if(a.length > 1){
  16408. // if(a[k].added == true){
  16409. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  16410. // }else if(a[k].removed == true){
  16411. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  16412. // }else{
  16413. // w += '<span>' + a[k].value + '</span>';
  16414. // }
  16415. // }else{
  16416. // if(p == 1){
  16417. // w = this.newEnglishList.engText;
  16418. // }else if(p == 2){
  16419. // w = this.oldEnglishJson1.engText;
  16420. // }else if(p == 3){
  16421. // w = this.newEnglishList.engText;
  16422. // }else{
  16423. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  16424. // }
  16425. // }
  16426. // }
  16427. if(p == 1){
  16428. this.newEnglishList.engText = aiText;
  16429. }else if(p == 2){
  16430. this.oldEnglishJson1.engText = aiText;
  16431. }else if(p == 3){
  16432. this.newEnglishList.engText = aiText;
  16433. }else{
  16434. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  16435. }
  16436. loading.close();
  16437. },
  16438. (err) => {
  16439. console.log(err);
  16440. loading.close();
  16441. }
  16442. );
  16443. },
  16444. addToolChoose() {
  16445. if (!this.checktoolArray.length) {
  16446. this.$message.error(this.lang.ssSelectTaskToAdd);
  16447. return;
  16448. }
  16449. if (
  16450. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16451. this.taskCount
  16452. ].toolChoose[0].tool.length
  16453. ) {
  16454. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16455. this.taskCount
  16456. ].toolChoose[0].tool = this.checktoolArray;
  16457. } else {
  16458. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16459. this.taskCount
  16460. ].toolChoose.push({
  16461. tool: this.checktoolArray,
  16462. toolDetail: "",
  16463. toolType: 0,
  16464. askCount: 1,
  16465. askTitle: "",
  16466. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  16467. });
  16468. }
  16469. let params = [
  16470. {
  16471. cid: this.id,
  16472. chapters: JSON.stringify(this.chapInfoList),
  16473. uid: this.userid,
  16474. unitIndex: this.courseType,
  16475. },
  16476. ];
  16477. this.ajax
  16478. .post(this.$store.state.api + "updateWorkNew4", params)
  16479. .then((res) => {
  16480. this.$message({
  16481. message: this.lang.ssAddSuccess,
  16482. type: "success",
  16483. });
  16484. this.checktoolArray = [];
  16485. this.getCourseDetail(2);
  16486. this.checkBz(
  16487. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16488. this.taskCount
  16489. ].toolChoose.length - 1
  16490. );
  16491. this.toolDialogVisible = false;
  16492. this.refreshCourse();
  16493. this.$forceUpdate();
  16494. })
  16495. .catch((err) => {
  16496. console.error(err);
  16497. });
  16498. },
  16499. checkBz(index) {
  16500. this.isUpdateToolDetail = false;
  16501. this.$forceUpdate();
  16502. setTimeout(() => {
  16503. document.scrollingElement.scrollTop =
  16504. document.querySelectorAll(".filebox")[index].offsetTop +
  16505. document.querySelector(".student_body").offsetTop;
  16506. }, 500);
  16507. },
  16508. updateToolDetail(i, type) {
  16509. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  16510. this.toolDetailIndex = i
  16511. this.isUpdateToolDetail1 = true;
  16512. setTimeout(() => {
  16513. this.updateToolDetailInner = JSON.parse(
  16514. JSON.stringify(
  16515. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16516. this.taskCount
  16517. ].toolChoose[i].toolDetail
  16518. )
  16519. );
  16520. document.querySelector(".checkTextArea").focus();
  16521. }, 0);
  16522. } else if((this.isUpdateToolDetail1 && type != 2)){
  16523. // this.toolDetailIndex = i;
  16524. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16525. this.taskCount
  16526. ].toolChoose[i].toolDetail = JSON.parse(
  16527. JSON.stringify(this.updateToolDetailInner)
  16528. );
  16529. let params = [
  16530. {
  16531. cid: this.id,
  16532. chapters: JSON.stringify(this.chapInfoList),
  16533. uid: this.userid,
  16534. unitIndex: this.courseType,
  16535. },
  16536. ];
  16537. this.ajax
  16538. .post(this.$store.state.api + "updateWorkNew4", params)
  16539. .then((res) => {
  16540. this.isUpdateToolDetail1 = false;
  16541. this.$message({
  16542. message: this.lang.ssModifySuccess,
  16543. type: "success",
  16544. });
  16545. this.toolDetailIndex = null;
  16546. this.updateToolDetailInner = "";
  16547. this.getCourseDetail(2);
  16548. this.$forceUpdate();
  16549. })
  16550. .catch((err) => {
  16551. console.error(err);
  16552. });
  16553. } else if((this.isUpdateToolDetail1 && type == 2)){
  16554. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16555. this.taskCount
  16556. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  16557. JSON.stringify(this.updateToolDetailInner)
  16558. );
  16559. let params = [
  16560. {
  16561. cid: this.id,
  16562. chapters: JSON.stringify(this.chapInfoList),
  16563. uid: this.userid,
  16564. unitIndex: this.courseType,
  16565. },
  16566. ];
  16567. this.ajax
  16568. .post(this.$store.state.api + "updateWorkNew4", params)
  16569. .then((res) => {
  16570. this.$message({
  16571. message: this.lang.ssModifySuccess,
  16572. type: "success",
  16573. });
  16574. this.toolDetailIndex = i;
  16575. this.isUpdateToolDetail1 = true;
  16576. setTimeout(() => {
  16577. this.updateToolDetailInner = JSON.parse(
  16578. JSON.stringify(
  16579. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16580. this.taskCount
  16581. ].toolChoose[i].toolDetail
  16582. )
  16583. );
  16584. document.querySelector(".checkTextArea").focus();
  16585. }, 0);
  16586. this.getCourseDetail(2);
  16587. this.$forceUpdate();
  16588. })
  16589. .catch((err) => {
  16590. console.error(err);
  16591. });
  16592. }
  16593. },
  16594. jumpGj(i, j, k, l) {
  16595. // this.refreshAssembly();
  16596. for (var z = 0; z < this.navList.length; z++) {
  16597. for (var q = 0; q < this.navList[z].task.length; q++) {
  16598. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16599. this.navList[z].task[q].tool[w].isTool = false;
  16600. }
  16601. }
  16602. }
  16603. console.log(this.navList);
  16604. this.navList[i].task[j].tool[k].isTool =
  16605. !this.navList[i].task[j].tool[k].isTool;
  16606. var a = document.scrollingElement;
  16607. let target = document.querySelector(`#gj${k}`);
  16608. if (target) {
  16609. // target.scrollIntoView(true);
  16610. // setTimeout(() => {
  16611. // a.scrollTop = a.scrollTop - 150;
  16612. // }, 0);
  16613. target.scrollIntoView();
  16614. setTimeout(()=>{
  16615. let scrollBody = document.querySelector('.body_student').parentElement
  16616. scrollBody.scrollTop = scrollBody.scrollTop - 100
  16617. }, 0);
  16618. }
  16619. this.navId = ""
  16620. let flag = this.courseType == i;
  16621. let flag2 = this.taskCount == j
  16622. if (l) {
  16623. this.courseType = i;
  16624. // this.navId = l;
  16625. this.taskCount = j;
  16626. this.selectPz();
  16627. this.getHomeWork();
  16628. this.getCourseDetail(2);
  16629. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  16630. if(flag){
  16631. if(flag2){
  16632. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  16633. }else{
  16634. 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>`)
  16635. }
  16636. }else{
  16637. 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>`)
  16638. }
  16639. }
  16640. if ((this.courseDetail.userid == this.userid ||
  16641. (this.courseDetail.course_teacher &&
  16642. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
  16643. this.IsFollow) {
  16644. this.setCTask();
  16645. }
  16646. // var b = this.$refs["bz" + k][0];
  16647. // a.scrollTop = b.offsetTop;
  16648. },
  16649. addTools2(i) {
  16650. if (i == 4) {
  16651. // this.openTools2(4);
  16652. this.$message.error(this.lang.ssNotAvailable);
  16653. return;
  16654. }
  16655. if (i == 45) {
  16656. // this.openTools2(45);
  16657. this.$message.error(this.lang.ssNotAvailable);
  16658. return;
  16659. }
  16660. if (i == 47) {
  16661. // this.openTools2(47);
  16662. this.$message.error(this.lang.ssNotAvailable);
  16663. return;
  16664. }
  16665. if (i == 49) {
  16666. // this.openTools2(49);
  16667. this.$message.error(this.lang.ssNotAvailable);
  16668. return;
  16669. }
  16670. if (i == 62) {
  16671. // this.openTools(itemTaskIndex, 62, toolIndex);
  16672. this.$message.error(this.lang.ssNotAvailable);
  16673. return;
  16674. }
  16675. if (i == 15) {
  16676. // this.openTools(itemTaskIndex, 15, toolIndex);
  16677. this.$message.error(this.lang.ssNotAvailable);
  16678. return;
  16679. }
  16680. if (i == 40) {
  16681. // this.openTools(itemTaskIndex, 40, toolIndex);
  16682. this.$message.error(this.lang.ssNotAvailable);
  16683. return;
  16684. }
  16685. if (i == 41) {
  16686. // this.openTools(itemTaskIndex, 41, toolIndex);
  16687. this.$message.error(this.lang.ssNotAvailable);
  16688. return;
  16689. }
  16690. if (i == 42) {
  16691. // this.openTools(itemTaskIndex, 42, toolIndex);
  16692. this.$message.error(this.lang.ssNotAvailable);
  16693. return;
  16694. }
  16695. if (this.checktoolArray.length > 0) {
  16696. if (this.checktoolArray.indexOf(i) != -1) {
  16697. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  16698. } else {
  16699. this.checktoolArray = [];
  16700. this.checktoolArray.push(i);
  16701. }
  16702. } else {
  16703. this.checktoolArray.push(i);
  16704. }
  16705. this.$forceUpdate();
  16706. },
  16707. jump() {
  16708. window.topU.postMessage({ tools: "43" }, "*");
  16709. },
  16710. getUpdateMore(f, checkboxList, searchTN, index) {
  16711. this.dialogVisibleMember = f;
  16712. this.checkboxList = checkboxList;
  16713. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  16714. this.plIndex = index;
  16715. },
  16716. setPlname(a) {
  16717. if (this.plworkFile.length) {
  16718. this.plworkFile[this.plIndex].username = a;
  16719. } else {
  16720. this.worksSName = a;
  16721. }
  16722. this.dialogVisibleMember = false;
  16723. },
  16724. previewImg(url,w) {
  16725. this.$hevueImgPreview(url);
  16726. if(w){
  16727. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  16728. }
  16729. },
  16730. checkImg(list) {
  16731. if (!list.length) {
  16732. return;
  16733. }
  16734. this.$hevueImgPreview({
  16735. multiple: true, // 开启多图预览模式
  16736. imgList: list, // 需要预览的多图数组
  16737. });
  16738. },
  16739. change(val) {
  16740. console.log(val);
  16741. },
  16742. goTo(path) {
  16743. this.$router.push(path);
  16744. },
  16745. handlePictureCardPreview(url) {
  16746. this.dialogImageUrl = url;
  16747. this.pictureDialog = true;
  16748. },
  16749. clean(type) {
  16750. if (type == 1) {
  16751. this.studyJuri[0].cover.splice(0, 1);
  16752. } else if (type == 2) {
  16753. this.studyJuri[0].upVedio.splice(0, 1);
  16754. } else {
  16755. this.studyJuri[0].upFile.splice(0, 1);
  16756. }
  16757. },
  16758. clean2(index) {
  16759. this.plworkFile.splice(index, 1);
  16760. },
  16761. handleClose(done) {
  16762. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  16763. this.videoDetail.sources[0].src = "";
  16764. }
  16765. this.commentIndexJson = {};
  16766. this.changeSplitScreenBehavior({code:99})
  16767. done();
  16768. },
  16769. fullTools() {
  16770. this.full = !this.full;
  16771. },
  16772. imgChange(file, fileList, type) {
  16773. if (type == 1) {
  16774. var _tmp = this.studyJuri[0].cover;
  16775. } else if (type == 2) {
  16776. var _tmp = this.studyJuri[0].upVedio;
  16777. } else {
  16778. var _tmp = this.studyJuri[0].upFile;
  16779. }
  16780. this.noneBtnImg = _tmp.length >= 1;
  16781. },
  16782. setContent(bool) {
  16783. this.contentDialog = bool;
  16784. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  16785. document.querySelector(".workd_media").style.height = "650px";
  16786. } else if (document.querySelector(".workd_media")) {
  16787. document.querySelector(".workd_media").style.height = "auto";
  16788. }
  16789. },
  16790. setContent2(bool) {
  16791. this.mlDialog = bool;
  16792. if (
  16793. bool &&
  16794. this.contentDialog &&
  16795. document.querySelector(".workd_media")
  16796. ) {
  16797. document.querySelector(".workd_media").style.height = "650px";
  16798. } else if (document.querySelector(".workd_media")) {
  16799. document.querySelector(".workd_media").style.height = "auto";
  16800. }
  16801. },
  16802. openToolAll() {
  16803. this.toolDialogVisible = true;
  16804. },
  16805. addImg(e) {
  16806. var el = e.currentTarget;
  16807. // this.$message.success('触发上传')
  16808. el.getElementsByTagName("input")[0].click();
  16809. e.target.value = "";
  16810. },
  16811. addSelectAnswer() {
  16812. let params = [
  16813. {
  16814. uid: this.userid,
  16815. cid: this.id,
  16816. stage: this.courseType,
  16817. task: this.taskCount,
  16818. tool: this.toolindex,
  16819. content: this.selectAnswer.answer,
  16820. type: 7,
  16821. },
  16822. ];
  16823. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  16824. this.homeWorkLoading = true
  16825. this.ajax
  16826. .post(this.$store.state.api + "addCourseWorks", params)
  16827. .then((res) => {
  16828. this.$message({
  16829. message: this.lang.ssSubmitSuccess,
  16830. type: "success",
  16831. });
  16832. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  16833. setTimeout(() => {
  16834. this.homeWorkLoading = false
  16835. }, 500);
  16836. this.dialogVisibleSelect = false;
  16837. // this.selectAnswer = {};
  16838. this.selectSWorks();
  16839. this.selectStudent();
  16840. })
  16841. .catch((err) => {
  16842. setTimeout(() => {
  16843. this.homeWorkLoading = false
  16844. }, 500);
  16845. this.$message.error(this.lang.ssSubmitFailed);
  16846. console.error(err);
  16847. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  16848. });
  16849. },
  16850. addSelectAnswerTeacher() {
  16851. let params = [
  16852. {
  16853. uid: this.sStudent.userid,
  16854. cid: this.id,
  16855. stage: this.courseType,
  16856. task: this.taskCount,
  16857. tool: this.toolindex,
  16858. content: this.selectAnswer.answer,
  16859. type: 7,
  16860. },
  16861. ];
  16862. this.ajax
  16863. .post(this.$store.state.api + "addCourseWorks", params)
  16864. .then((res) => {
  16865. this.$message({
  16866. message: this.lang.ssSubmitSuccess,
  16867. type: "success",
  16868. });
  16869. this.dialogVisibleSelectTeacher = false;
  16870. // this.selectAnswer = {};
  16871. this.selectSWorks();
  16872. this.selectStudent();
  16873. })
  16874. .catch((err) => {
  16875. this.$message.error(this.lang.ssSubmitFailed);
  16876. console.error(err);
  16877. });
  16878. },
  16879. addSenWorks() {
  16880. for (var i = 0; i < this.sentenceList.length; i++) {
  16881. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  16882. if (
  16883. this.sentenceList[i].chooseSenList[j] == undefined ||
  16884. this.sentenceList[i].chooseSenList[j] == ""
  16885. ) {
  16886. this.$message.error(this.lang.ssFillAnswersComplete);
  16887. return;
  16888. }
  16889. }
  16890. }
  16891. let params = [
  16892. {
  16893. uid: this.userid,
  16894. cid: this.id,
  16895. stage: this.courseType,
  16896. task: this.taskCount,
  16897. tool: this.toolindex,
  16898. content: JSON.stringify(this.sentenceList),
  16899. type: 9,
  16900. },
  16901. ];
  16902. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  16903. this.homeWorkLoading = true
  16904. this.ajax
  16905. .post(this.$store.state.api + "addCourseWorks", params)
  16906. .then((res) => {
  16907. this.$message({
  16908. message: this.lang.ssSubmitSuccess,
  16909. type: "success",
  16910. });
  16911. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  16912. setTimeout(() => {
  16913. this.homeWorkLoading = false
  16914. }, 500);
  16915. this.dialogVisibleSentence = false;
  16916. // this.selectAnswer = {};
  16917. this.selectSWorks();
  16918. this.selectStudent();
  16919. })
  16920. .catch((err) => {
  16921. setTimeout(() => {
  16922. this.homeWorkLoading = false
  16923. }, 500);
  16924. this.$message.error(this.lang.ssSubmitFailed);
  16925. console.error(err);
  16926. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  16927. });
  16928. },
  16929. addSenWorksTeacher() {
  16930. for (var i = 0; i < this.sentenceList.length; i++) {
  16931. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  16932. if (
  16933. this.sentenceList[i].chooseSenList[j] == undefined ||
  16934. this.sentenceList[i].chooseSenList[j] == ""
  16935. ) {
  16936. this.$message.error(this.lang.ssFillAnswersComplete);
  16937. return;
  16938. }
  16939. }
  16940. }
  16941. let params = [
  16942. {
  16943. uid: this.sStudent.userid,
  16944. cid: this.id,
  16945. stage: this.courseType,
  16946. task: this.taskCount,
  16947. tool: this.toolindex,
  16948. content: JSON.stringify(this.sentenceList),
  16949. type: 9,
  16950. },
  16951. ];
  16952. this.ajax
  16953. .post(this.$store.state.api + "addCourseWorks", params)
  16954. .then((res) => {
  16955. this.$message({
  16956. message: this.lang.ssSubmitSuccess,
  16957. type: "success",
  16958. });
  16959. this.dialogVisibleSentenceTeacher = false;
  16960. // this.selectAnswer = {};
  16961. this.selectSWorks();
  16962. this.selectStudent();
  16963. })
  16964. .catch((err) => {
  16965. this.$message.error(this.lang.ssSubmitFailed);
  16966. console.error(err);
  16967. });
  16968. },
  16969. returnTableText() {
  16970. this.$confirm(this.lang.ssConfirmRestoreTemplate, this.lang.ssPrompt, {
  16971. confirmButtonText: this.lang.ssConfirm,
  16972. cancelButtonText: this.lang.ssCancel,
  16973. type: "warning",
  16974. })
  16975. .then(() => {
  16976. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  16977. })
  16978. .catch(() => {});
  16979. },
  16980. addTableWorks() {
  16981. let params = [
  16982. {
  16983. uid: this.userid,
  16984. cid: this.id,
  16985. stage: this.courseType,
  16986. task: this.taskCount,
  16987. tool: this.toolindex,
  16988. content: JSON.stringify(this.tableJson),
  16989. type: 10,
  16990. },
  16991. ];
  16992. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  16993. this.homeWorkLoading = true
  16994. this.ajax
  16995. .post(this.$store.state.api + "addCourseWorks", params)
  16996. .then((res) => {
  16997. this.$message({
  16998. message: this.lang.ssSubmitSuccess,
  16999. type: "success",
  17000. });
  17001. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  17002. setTimeout(() => {
  17003. this.homeWorkLoading = false
  17004. }, 500);
  17005. this.dialogVisibleTable = false;
  17006. // this.selectAnswer = {};
  17007. this.selectSWorks();
  17008. this.selectStudent();
  17009. })
  17010. .catch((err) => {
  17011. this.$message.error(this.lang.ssSubmitFailed);
  17012. console.error(err);
  17013. setTimeout(() => {
  17014. this.homeWorkLoading = false
  17015. }, 500);
  17016. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  17017. });
  17018. },
  17019. tableRowClassName({ row, rowIndex }) {
  17020. if ((rowIndex + 1) % 2 === 0) {
  17021. return "even_row";
  17022. } else {
  17023. return "";
  17024. }
  17025. },
  17026. addTableWorksTeacher() {
  17027. let params = [
  17028. {
  17029. uid: this.sStudent.userid,
  17030. cid: this.id,
  17031. stage: this.courseType,
  17032. task: this.taskCount,
  17033. tool: this.toolindex,
  17034. content: JSON.stringify(this.tableJson),
  17035. type: 10,
  17036. },
  17037. ];
  17038. this.ajax
  17039. .post(this.$store.state.api + "addCourseWorks", params)
  17040. .then((res) => {
  17041. this.$message({
  17042. message: this.lang.ssSubmitSuccess,
  17043. type: "success",
  17044. });
  17045. this.dialogVisibleTableTeacher = false;
  17046. // this.selectAnswer = {};
  17047. this.selectSWorks();
  17048. this.selectStudent();
  17049. })
  17050. .catch((err) => {
  17051. this.$message.error(this.lang.ssSubmitFailed);
  17052. console.error(err);
  17053. });
  17054. },
  17055. returnWordText() {
  17056. this.$confirm(this.lang.ssConfirmRestoreTemplate, this.lang.ssPrompt, {
  17057. confirmButtonText: this.lang.ssConfirm,
  17058. cancelButtonText: this.lang.ssCancel,
  17059. type: "warning",
  17060. })
  17061. .then(() => {
  17062. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  17063. })
  17064. .catch(() => {});
  17065. },
  17066. addWordWorks() {
  17067. let params = [
  17068. {
  17069. uid: this.userid,
  17070. cid: this.id,
  17071. stage: this.courseType,
  17072. task: this.taskCount,
  17073. tool: this.toolindex,
  17074. content: JSON.stringify(this.wordJson),
  17075. type: 13,
  17076. atool: 52,
  17077. },
  17078. ];
  17079. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17080. this.homeWorkLoading = true
  17081. this.ajax
  17082. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17083. .then((res) => {
  17084. this.$message({
  17085. message: this.lang.ssSubmitSuccess,
  17086. type: "success",
  17087. });
  17088. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  17089. setTimeout(() => {
  17090. this.homeWorkLoading = false
  17091. }, 500);
  17092. this.dialogVisibleWord = false;
  17093. // this.selectAnswer = {};
  17094. this.selectSWorks();
  17095. this.selectStudent();
  17096. })
  17097. .catch((err) => {
  17098. this.$message.error(this.lang.ssSubmitFailed);
  17099. console.error(err);
  17100. setTimeout(() => {
  17101. this.homeWorkLoading = false
  17102. }, 500);
  17103. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  17104. });
  17105. },
  17106. addWordWorksTeacher() {
  17107. let params = [
  17108. {
  17109. uid: this.sStudent.userid,
  17110. cid: this.id,
  17111. stage: this.courseType,
  17112. task: this.taskCount,
  17113. tool: this.toolindex,
  17114. content: JSON.stringify(this.wordJson),
  17115. type: 13,
  17116. atool: 52,
  17117. },
  17118. ];
  17119. this.ajax
  17120. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17121. .then((res) => {
  17122. this.$message({
  17123. message: this.lang.ssSubmitSuccess,
  17124. type: "success",
  17125. });
  17126. this.dialogVisibleWordTeacher = false;
  17127. // this.selectAnswer = {};
  17128. this.selectSWorks();
  17129. this.selectStudent();
  17130. })
  17131. .catch((err) => {
  17132. this.$message.error(this.lang.ssSubmitFailed);
  17133. console.error(err);
  17134. });
  17135. },
  17136. addCourseWorksCopy(i) {
  17137. let arr = this.workStudent[this.toolindex].filter(e => {
  17138. return (e.userid = this.userid);
  17139. });
  17140. if (arr.length > 0) {
  17141. this.$confirm(this.lang.ssConfirmSubmitAgain, this.lang.ssPrompt, {
  17142. confirmButtonText: this.lang.ssConfirm,
  17143. cancelButtonText: this.lang.ssCancel,
  17144. type: "warning"
  17145. })
  17146. .then(() => {
  17147. this.addCourseWorks(i);
  17148. })
  17149. .catch(() => {});
  17150. } else {
  17151. this.addCourseWorks(i);
  17152. }
  17153. },
  17154. addCourseWorks(i) {
  17155. var typesql;
  17156. if (this.fileType === 0) {
  17157. typesql = 1;
  17158. } else if (this.fileType === 1) {
  17159. typesql = 4;
  17160. } else if (this.fileType === 2) {
  17161. typesql = 5;
  17162. } else if (this.fileType === 3) {
  17163. typesql = 12;
  17164. }
  17165. if (!this.studyJuri[0].cover[0].url) {
  17166. this.$message.error(this.lang.ssUploadFileRequired);
  17167. return;
  17168. }
  17169. let params = [
  17170. {
  17171. uid: this.userid,
  17172. cid: this.id,
  17173. stage: this.courseType,
  17174. task: i,
  17175. tool: this.toolindex,
  17176. content: this.studyJuri[0].cover[0].url,
  17177. type: typesql,
  17178. },
  17179. ];
  17180. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17181. this.homeWorkLoading = true
  17182. this.ajax
  17183. .post(this.$store.state.api + "addCourseWorksR", params)
  17184. .then((res) => {
  17185. this.$message({
  17186. message: this.lang.ssSubmitSuccess,
  17187. type: "success",
  17188. });
  17189. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  17190. setTimeout(() => {
  17191. this.homeWorkLoading = false
  17192. }, 500);
  17193. this.studyJuri[0].cover = [];
  17194. this.dialogVisible = false;
  17195. this.getCourseDetail(2);
  17196. })
  17197. .catch((err) => {
  17198. this.$message.error(this.lang.ssSubmitFailed);
  17199. console.error(err);
  17200. setTimeout(() => {
  17201. this.homeWorkLoading = false
  17202. }, 500);
  17203. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  17204. });
  17205. },
  17206. addCourseWorksPl(i) {
  17207. let _files = this.plworkFile;
  17208. var c = 1;
  17209. for (var k = 0; k < _files.length; k++) {
  17210. if (!_files[k].username) {
  17211. c = 2;
  17212. }
  17213. }
  17214. if (c == 2) {
  17215. this.$message.error(this.lang.ssEnterStudentName);
  17216. return;
  17217. }
  17218. let params = [
  17219. {
  17220. ateacher: this.userid,
  17221. cid: this.id,
  17222. stage: this.courseType,
  17223. task: i,
  17224. tool: this.toolindex,
  17225. content: JSON.stringify(_files),
  17226. },
  17227. ];
  17228. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17229. this.homeWorkLoading = true
  17230. this.ajax
  17231. .post(this.$store.state.api + "addCourseWorksPl", params)
  17232. .then((res) => {
  17233. this.$message({
  17234. message: this.lang.ssSubmitSuccess,
  17235. type: "success",
  17236. });
  17237. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  17238. setTimeout(() => {
  17239. this.homeWorkLoading = false
  17240. }, 500);
  17241. this.plworkFile = [];
  17242. this.dialogVisiblePl = false;
  17243. this.getCourseDetail(2);
  17244. })
  17245. .catch((err) => {
  17246. this.$message.error(this.lang.ssSubmitFailed);
  17247. console.error(err);
  17248. setTimeout(() => {
  17249. this.homeWorkLoading = false
  17250. }, 500);
  17251. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  17252. });
  17253. },
  17254. addCourseWorks2(i) {
  17255. var typesql;
  17256. if (this.fileType === 0) {
  17257. typesql = 0;
  17258. } else if (this.fileType === 1) {
  17259. typesql = 1;
  17260. } else if (this.fileType === 2) {
  17261. typesql = 3;
  17262. } else if (this.fileType === 3) {
  17263. typesql = 12;
  17264. }
  17265. if (!this.studyJuri[0].cover[0].url) {
  17266. this.$message.error(this.lang.ssUploadFileRequired);
  17267. return;
  17268. }
  17269. let params = [
  17270. {
  17271. uid: this.userid,
  17272. cid: this.id,
  17273. stage: this.courseType,
  17274. task: i,
  17275. tool: this.toolindex,
  17276. content: JSON.stringify({
  17277. type: typesql,
  17278. groupIndex: this.groupIndex,
  17279. url: this.studyJuri[0].cover[0].url,
  17280. }),
  17281. type: 11,
  17282. atool: 49,
  17283. text: "",
  17284. },
  17285. ];
  17286. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17287. this.homeWorkLoading = true
  17288. this.ajax
  17289. .post(this.$store.state.api + "addCourseWorks5", params)
  17290. .then((res) => {
  17291. this.$message({
  17292. message: this.lang.ssSubmitSuccess,
  17293. type: "success",
  17294. });
  17295. setTimeout(() => {
  17296. this.homeWorkLoading = false
  17297. }, 500);
  17298. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  17299. type: typesql,
  17300. groupIndex: this.groupIndex,
  17301. url: this.studyJuri[0].cover[0].url,
  17302. }),type: "course_tool_sub" }, "success")
  17303. this.studyJuri[0].cover = [];
  17304. this.dialogVisibleGroupWork = false;
  17305. this.getCourseDetail(2);
  17306. })
  17307. .catch((err) => {
  17308. this.$message.error(this.lang.ssSubmitFailed);
  17309. console.error(err);
  17310. setTimeout(() => {
  17311. this.homeWorkLoading = false
  17312. }, 500);
  17313. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  17314. type: typesql,
  17315. groupIndex: this.groupIndex,
  17316. url: this.studyJuri[0].cover[0].url,
  17317. }),type: "course_tool_sub" }, err)
  17318. });
  17319. },
  17320. addEnglishWork() {
  17321. this.myAnList = this.$refs['engJson'].myAnswerList;
  17322. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  17323. this.$message.error(this.lang.ssEnterEssayContent);
  17324. return;
  17325. }
  17326. let params = [
  17327. {
  17328. uid: this.userid,
  17329. cid: this.id,
  17330. stage: this.courseType,
  17331. task: this.taskCount,
  17332. tool: this.englishToolIndex,
  17333. content: JSON.stringify(this.myAnList),
  17334. type: 16,
  17335. atool: 69,
  17336. text: "",
  17337. },
  17338. ];
  17339. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17340. this.homeWorkLoading = true
  17341. this.ajax
  17342. .post(this.$store.state.api + "addCourseWorks5", params)
  17343. .then((res) => {
  17344. this.$message({
  17345. message: this.lang.ssSubmitSuccess,
  17346. type: "success",
  17347. });
  17348. setTimeout(() => {
  17349. this.homeWorkLoading = false
  17350. }, 500);
  17351. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  17352. data: JSON.stringify(this.myAnList),
  17353. type: "course_tool_sub" }, "success")
  17354. this.myAnList = {};
  17355. this.englishList = {};
  17356. this.englishToolIndex = 0;
  17357. this.engDialogVisible = false;
  17358. this.selectSWorks();
  17359. this.selectStudent();
  17360. })
  17361. .catch((err) => {
  17362. this.$message.error(this.lang.ssSubmitFailed);
  17363. console.error(err);
  17364. setTimeout(() => {
  17365. this.homeWorkLoading = false
  17366. }, 500);
  17367. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  17368. data: JSON.stringify(this.myAnList),
  17369. type: "course_tool_sub" }, err)
  17370. });
  17371. },
  17372. addCourseWorksGong(i, data, tool) {
  17373. let params = [
  17374. {
  17375. uid: this.userid,
  17376. cid: this.id,
  17377. stage: this.courseType,
  17378. task: this.taskCount,
  17379. tool: i,
  17380. content: data,
  17381. type: 12,
  17382. atool: tool,
  17383. text: "",
  17384. },
  17385. ];
  17386. this.ajax
  17387. .post(this.$store.state.api + "addCourseWorks5", params)
  17388. .then((res) => {
  17389. this.$message({
  17390. message: this.lang.ssSubmitSuccess,
  17391. type: "success",
  17392. });
  17393. this.studyJuri[0].cover = [];
  17394. this.selectSWorks();
  17395. this.selectStudent();
  17396. })
  17397. .catch((err) => {
  17398. this.$message.error(this.lang.ssSubmitFailed);
  17399. console.error(err);
  17400. });
  17401. },
  17402. addCourseWorksGongTeacher(i, data, tool) {
  17403. let params = [
  17404. {
  17405. uid: this.sStudent.userid,
  17406. cid: this.id,
  17407. stage: this.courseType,
  17408. task: this.taskCount,
  17409. tool: i,
  17410. content: data,
  17411. type: 12,
  17412. atool: tool,
  17413. text: "",
  17414. },
  17415. ];
  17416. this.ajax
  17417. .post(this.$store.state.api + "addCourseWorks5", params)
  17418. .then((res) => {
  17419. this.$message({
  17420. message: this.lang.ssSubmitSuccess,
  17421. type: "success",
  17422. });
  17423. this.studyJuri[0].cover = [];
  17424. this.dialogVisibleWorks = false;
  17425. this.selectSWorks();
  17426. this.selectStudent();
  17427. })
  17428. .catch((err) => {
  17429. this.$message.error(this.lang.ssSubmitFailed);
  17430. console.error(err);
  17431. });
  17432. },
  17433. addCourseWorksGongPl(i, data, tool, type) {
  17434. let params = [
  17435. {
  17436. uid: this.sStudent.userid,
  17437. cid: this.id,
  17438. stage: this.courseType,
  17439. task: this.taskCount,
  17440. tool: i,
  17441. content: data,
  17442. type: type,
  17443. atool: tool,
  17444. text: "",
  17445. },
  17446. ];
  17447. this.ajax
  17448. .post(this.$store.state.api + "addCourseWorks5", params)
  17449. .then((res) => {
  17450. this.$message({
  17451. message: this.lang.ssSubmitSuccess,
  17452. type: "success",
  17453. });
  17454. this.studyJuri[0].cover = [];
  17455. this.dialogVisibleWorks = false;
  17456. this.selectSWorks();
  17457. this.selectStudent();
  17458. })
  17459. .catch((err) => {
  17460. this.$message.error(this.lang.ssSubmitFailed);
  17461. console.error(err);
  17462. });
  17463. },
  17464. addCourseWorksTeacher(i) {
  17465. var typesql;
  17466. if (this.sTool == 32) {
  17467. this.addCourseWorksGongTeacher(
  17468. this.toolindex,
  17469. this.studyJuri[0].cover[0].url,
  17470. this.sTool
  17471. );
  17472. return;
  17473. }
  17474. if (this.fileType === 0) {
  17475. typesql = 1;
  17476. } else if (this.fileType === 1) {
  17477. typesql = 4;
  17478. } else if (this.fileType === 2) {
  17479. typesql = 5;
  17480. } else if (this.fileType === 3) {
  17481. typesql = 12;
  17482. }
  17483. if (this.sTool == 50) {
  17484. this.addCourseWorksGongPl(
  17485. this.toolindex,
  17486. this.studyJuri[0].cover[0].url,
  17487. this.sTool,
  17488. typesql
  17489. );
  17490. return;
  17491. }
  17492. if (!this.studyJuri[0].cover[0].url) {
  17493. this.$message.error(this.lang.ssUploadFileRequired);
  17494. return;
  17495. }
  17496. let params = [
  17497. {
  17498. uid: this.sStudent.userid,
  17499. cid: this.id,
  17500. stage: this.courseType,
  17501. task: i,
  17502. tool: this.toolindex,
  17503. content: this.studyJuri[0].cover[0].url,
  17504. type: typesql,
  17505. ateacher: this.userid,
  17506. },
  17507. ];
  17508. this.ajax
  17509. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17510. .then((res) => {
  17511. this.$message({
  17512. message: this.lang.ssSubmitSuccess,
  17513. type: "success",
  17514. });
  17515. this.studyJuri[0].cover = [];
  17516. this.dialogVisibleWorks = false;
  17517. this.getCourseDetail(2);
  17518. })
  17519. .catch((err) => {
  17520. this.$message.error(this.lang.ssSubmitFailed);
  17521. console.error(err);
  17522. });
  17523. },
  17524. selectUploadStudent(type) {
  17525. const loading = this.$loading.service({
  17526. background: "rgba(255, 255, 255, 0.7)",
  17527. target: document.body,
  17528. });
  17529. let params = {
  17530. cid: this.uploadCid,
  17531. oid: this.oid,
  17532. cn: "",
  17533. };
  17534. this.ajax
  17535. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17536. .then((res) => {
  17537. loading.close();
  17538. var studentK = [];
  17539. if (this.isWorksS[this.toolindex].length > 0) {
  17540. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  17541. studentK.push(this.isWorksS[this.toolindex][z].uid);
  17542. }
  17543. studentK = studentK.join(",");
  17544. }
  17545. this.uploadStudentJuri = res.data[0].filter((el) => {
  17546. return studentK.indexOf(el.userid) == -1;
  17547. });
  17548. if (this.worksSName && this.worksSid) {
  17549. this.uploadStudentJuri.push({
  17550. userid: this.worksSid,
  17551. name: this.worksSName,
  17552. });
  17553. }
  17554. if (type == 1) {
  17555. this.plworkFile = [];
  17556. this.dialogVisibleSname = true;
  17557. } else if (type == 2) {
  17558. this.dialogVisiblePl = true;
  17559. }
  17560. })
  17561. .catch((err) => {
  17562. loading.close();
  17563. console.error(err);
  17564. });
  17565. },
  17566. selectPickStudent() {
  17567. const loading = this.$loading.service({
  17568. background: "rgba(255, 255, 255, 0.7)",
  17569. target: document.body,
  17570. });
  17571. let params = {
  17572. cid: this.uploadCid,
  17573. oid: this.oid,
  17574. cn: "",
  17575. };
  17576. this.ajax
  17577. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17578. .then((res) => {
  17579. loading.close();
  17580. this.uploadStudentJuri = res.data[0];
  17581. this.dialogVisiblePickPeople = true;
  17582. })
  17583. .catch((err) => {
  17584. loading.close();
  17585. console.error(err);
  17586. });
  17587. },
  17588. arrayToArray(arrayo, arrayt) {
  17589. let array1 = arrayo;
  17590. let array2 = arrayt;
  17591. let commonElements = [];
  17592. for (let i = 0; i < array1.length; i++) {
  17593. for (let j = 0; j < array2.length; j++) {
  17594. if (array1[i] === array2[j]) {
  17595. commonElements.push(array1[i]);
  17596. }
  17597. }
  17598. }
  17599. return commonElements;
  17600. },
  17601. selectWorksStudent() {
  17602. let params = {
  17603. oid: this.oid,
  17604. cid: this.courseDetail.juri,
  17605. };
  17606. this.ajax
  17607. .get(this.$store.state.api + "selectWorksStudent", params)
  17608. .then((res) => {
  17609. var a = res.data[0];
  17610. for (var i = 0; i < this.isWorksS.length; i++) {
  17611. this.noWorksS[i] = [];
  17612. var studentK = [];
  17613. if (this.isWorksS[i].length > 0) {
  17614. for (var z = 0; z < this.isWorksS[i].length; z++) {
  17615. studentK.push(this.isWorksS[i][z].uid);
  17616. }
  17617. studentK = studentK.join(",");
  17618. for (var j = 0; j < a.length; j++) {
  17619. if (studentK.indexOf(a[j].userid) == -1) {
  17620. if (this.tcid) {
  17621. // a[j].classid.indexOf(this.tcid) != -1
  17622. if (
  17623. this.arrayToArray(
  17624. a[j].classid.split(","),
  17625. this.tcid.split(",")
  17626. ).length
  17627. ) {
  17628. this.noWorksS[i].push({
  17629. student: a[j].name,
  17630. userid: a[j].userid,
  17631. });
  17632. }
  17633. } else {
  17634. this.noWorksS[i].push({
  17635. student: a[j].name,
  17636. userid: a[j].userid,
  17637. });
  17638. }
  17639. }
  17640. }
  17641. } else {
  17642. for (var k = 0; k < a.length; k++) {
  17643. if (this.tcid) {
  17644. if (
  17645. this.arrayToArray(
  17646. a[k].classid.split(","),
  17647. this.tcid.split(",")
  17648. ).length
  17649. ) {
  17650. this.noWorksS[i].push({
  17651. student: a[k].name,
  17652. userid: a[k].userid,
  17653. });
  17654. }
  17655. } else {
  17656. this.noWorksS[i].push({
  17657. student: a[k].name,
  17658. userid: a[k].userid,
  17659. });
  17660. }
  17661. }
  17662. }
  17663. }
  17664. this.$forceUpdate();
  17665. if (
  17666. Object.keys(this.commentDetail).length &&
  17667. Object.keys(this.commentIndexJson).length &&
  17668. !this.dialogVisibleScore && !this.dialogVisibleENScore
  17669. ) {
  17670. let a = 1;
  17671. let c = this.commentIndexJson;
  17672. if (
  17673. this.commentIndexJson.gindex ||
  17674. this.commentIndexJson.gindex === 0
  17675. ) {
  17676. for (
  17677. var i = 0;
  17678. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17679. i++
  17680. ) {
  17681. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  17682. groupA: for (var k = 0; k < _el.length; k++) {
  17683. let el = _el[k];
  17684. if (el.wid == this.commentDetail.wid) {
  17685. a = 2;
  17686. this.commentOther(
  17687. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  17688. this.commentIndexJson.toolIndex,
  17689. k,
  17690. this.commentIndexJson.gindex
  17691. );
  17692. break groupA;
  17693. }
  17694. }
  17695. }
  17696. if (a === 1) {
  17697. this.commentDetail = [];
  17698. this.commentIndexJson = {};
  17699. this.commentDialogVisible = false;
  17700. this.$message(this.lang.ssHomeworkDeleted);
  17701. }
  17702. } else {
  17703. if (this.isGroup && this.commentIndexJson.gid) {
  17704. groupA: for (
  17705. var i = 0;
  17706. i < this.courseGroup.group.length;
  17707. i++
  17708. ) {
  17709. let _group = this.courseGroup.group[i];
  17710. if (_group.id == this.commentIndexJson.gid) {
  17711. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  17712. for (var k = 0; k < _el2.length; k++) {
  17713. let el2 = _el2[k];
  17714. if (el2.wid == this.commentDetail.wid) {
  17715. a = 2;
  17716. this.commentOther(
  17717. _el2[k],
  17718. this.commentIndexJson.toolIndex,
  17719. k,
  17720. null,
  17721. this.commentIndexJson.gid
  17722. );
  17723. break groupA;
  17724. }
  17725. }
  17726. }
  17727. }
  17728. }
  17729. if (a == 1) {
  17730. for (
  17731. var i = 0;
  17732. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17733. i++
  17734. ) {
  17735. let el =
  17736. this.worksStudent[this.commentIndexJson.toolIndex][i];
  17737. if (el.wid == this.commentDetail.wid) {
  17738. a = 2;
  17739. this.commentOther(
  17740. this.worksStudent[this.commentIndexJson.toolIndex][i],
  17741. this.commentIndexJson.toolIndex,
  17742. i
  17743. );
  17744. break;
  17745. }
  17746. }
  17747. }
  17748. if (a === 1) {
  17749. this.commentDetail = [];
  17750. this.commentIndexJson = {};
  17751. this.commentDialogVisible = false;
  17752. this.$message(this.lang.ssHomeworkDeleted);
  17753. }
  17754. }
  17755. }
  17756. })
  17757. .catch((err) => {
  17758. console.error(err);
  17759. });
  17760. },
  17761. selectStudent() {
  17762. if(this.selectStudentLoading) return
  17763. this.selectStudentLoading = true
  17764. //学生查看自己作业
  17765. let params = {
  17766. uid: this.userid,
  17767. cid: this.id,
  17768. s: this.courseType,
  17769. t: this.taskCount,
  17770. };
  17771. this.ajax
  17772. .get(this.$store.state.api + "selectStudentWorks", params)
  17773. .then((res) => {
  17774. var a =
  17775. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17776. this.taskCount
  17777. ].toolChoose;
  17778. var b = res.data[0];
  17779. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  17780. var y = [
  17781. "AVI",
  17782. "NAVI",
  17783. "MPEG",
  17784. "ASF",
  17785. "MOV",
  17786. "WMV",
  17787. "3GP",
  17788. "RM",
  17789. "RMVB",
  17790. "FLV",
  17791. "F4V",
  17792. "H.264",
  17793. "H.265",
  17794. "REAL VIDEO",
  17795. "MKV",
  17796. "WebM",
  17797. "HDDVD",
  17798. "MP4",
  17799. "MPG",
  17800. "M4V",
  17801. "MGV",
  17802. "OGV",
  17803. "QTM",
  17804. "STR",
  17805. "AMC",
  17806. "DVX",
  17807. "EVO",
  17808. "DAT",
  17809. "OGG",
  17810. "OGM",
  17811. ];
  17812. for (var i = 0; i < a.length; i++) {
  17813. this.workStudent[i] = [];
  17814. for (var j = 0; j < b.length; j++) {
  17815. if (i == b[j].tool) {
  17816. if (
  17817. (b[j].type == 1 ||
  17818. b[j].type == 4 ||
  17819. b[j].type == 5 ||
  17820. b[j].type == 6 ||
  17821. b[j].type == 12 ||
  17822. b[j].type == 7) &&
  17823. a[i].tool[0] != 15 &&
  17824. a[i].tool[0] != 4 &&
  17825. a[i].tool[0] != 45 &&
  17826. a[i].tool[0] != 50 &&
  17827. a[i].tool[0] != 32 &&
  17828. a[i].tool[0] != 57 &&
  17829. a[i].tool[0] != 52 &&
  17830. a[i].tool[0] != 69
  17831. ) {
  17832. if (
  17833. c.indexOf(
  17834. b[j].content
  17835. .split(".")
  17836. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  17837. ) != -1 &&
  17838. a[i].tool[0] == 16 &&
  17839. b[j].atool != 50
  17840. ) {
  17841. this.workStudent[i].push({
  17842. works: b[j].content,
  17843. sName: b[j].name,
  17844. score: b[j].score,
  17845. img: b[j].img,
  17846. type: 1,
  17847. time: b[j].time,
  17848. userid: b[j].userid,
  17849. wid: b[j].id,
  17850. });
  17851. } else if (
  17852. y.indexOf(
  17853. b[j].content
  17854. .split(".")
  17855. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  17856. ) != -1 &&
  17857. a[i].tool[0] == 16 &&
  17858. b[j].atool != 50
  17859. ) {
  17860. this.workStudent[i].push({
  17861. userid: b[j].userid,
  17862. wid: b[j].id,
  17863. works: b[j].content,
  17864. sName: b[j].name,
  17865. score: b[j].score,
  17866. img: b[j].img,
  17867. type: 3,
  17868. time: b[j].time,
  17869. });
  17870. } else if (b[j].type == 6 && b[j].atool != 50) {
  17871. this.workStudent[i].push({
  17872. userid: b[j].userid,
  17873. wid: b[j].id,
  17874. works: b[j].content,
  17875. sName: b[j].name,
  17876. score: b[j].score,
  17877. img: b[j].img,
  17878. type: 4,
  17879. time: b[j].time,
  17880. });
  17881. } else if (b[j].type == 7 && b[j].atool != 50) {
  17882. this.workStudent[i].push({
  17883. userid: b[j].userid,
  17884. wid: b[j].id,
  17885. works: b[j].content,
  17886. sName: b[j].name,
  17887. score: b[j].score,
  17888. img: b[j].img,
  17889. type: 5,
  17890. time: b[j].time,
  17891. });
  17892. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  17893. this.workStudent[i].push({
  17894. works: b[j].content,
  17895. sName: b[j].name,
  17896. score: b[j].score,
  17897. img: b[j].img,
  17898. type: 12,
  17899. time: b[j].time,
  17900. userid: b[j].userid,
  17901. wid: b[j].id,
  17902. });
  17903. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  17904. this.workStudent[i].push({
  17905. works: b[j].content,
  17906. sName: b[j].name,
  17907. score: b[j].score,
  17908. img: b[j].img,
  17909. type: 0,
  17910. time: b[j].time,
  17911. userid: b[j].userid,
  17912. wid: b[j].id,
  17913. });
  17914. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  17915. this.workStudent[i].push({
  17916. works: b[j].content,
  17917. sName: b[j].name,
  17918. score: b[j].score,
  17919. img: b[j].img,
  17920. type: 0,
  17921. time: b[j].time,
  17922. userid: b[j].userid,
  17923. wid: b[j].id,
  17924. });
  17925. }
  17926. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  17927. this.workStudent[i].push({
  17928. works: b[j].content,
  17929. sName: b[j].name,
  17930. score: b[j].score,
  17931. img: b[j].img,
  17932. type: 2,
  17933. time: b[j].time,
  17934. userid: b[j].userid,
  17935. wid: b[j].id,
  17936. });
  17937. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  17938. this.workStudent[i].push({
  17939. works: b[j].content,
  17940. sName: b[j].name,
  17941. score: b[j].score,
  17942. img: b[j].img,
  17943. type: 20,
  17944. time: b[j].time,
  17945. userid: b[j].userid,
  17946. wid: b[j].id,
  17947. });
  17948. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  17949. //问卷
  17950. this.workStudent[i].push({
  17951. works: b[j].content,
  17952. sName: b[j].name,
  17953. score: b[j].score,
  17954. img: b[j].img,
  17955. type: 2,
  17956. time: b[j].time,
  17957. userid: b[j].userid,
  17958. wid: b[j].id,
  17959. });
  17960. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  17961. //选择题
  17962. this.workStudent[i].push({
  17963. works: b[j].content,
  17964. sName: b[j].name,
  17965. score: b[j].score,
  17966. img: b[j].img,
  17967. type: 8,
  17968. time: b[j].time,
  17969. userid: b[j].userid,
  17970. wid: b[j].id,
  17971. });
  17972. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  17973. //选择题
  17974. this.workStudent[i].push({
  17975. works: b[j].content,
  17976. sName: b[j].name,
  17977. score: b[j].score,
  17978. img: b[j].img,
  17979. type: 9,
  17980. time: b[j].time,
  17981. userid: b[j].userid,
  17982. wid: b[j].id,
  17983. });
  17984. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  17985. //选择题
  17986. this.workStudent[i].push({
  17987. works: b[j].content,
  17988. sName: b[j].name,
  17989. score: b[j].score,
  17990. img: b[j].img,
  17991. type: 10,
  17992. time: b[j].time,
  17993. userid: b[j].userid,
  17994. wid: b[j].id,
  17995. });
  17996. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  17997. //选择题
  17998. this.workStudent[i].push({
  17999. works: b[j].content,
  18000. sName: b[j].name,
  18001. score: b[j].score,
  18002. img: b[j].img,
  18003. type: 13,
  18004. time: b[j].time,
  18005. userid: b[j].userid,
  18006. wid: b[j].id,
  18007. });
  18008. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  18009. //选择题
  18010. this.workStudent[i].push({
  18011. works: b[j].content,
  18012. sName: b[j].name,
  18013. score: b[j].score,
  18014. img: b[j].img,
  18015. type: 12,
  18016. time: b[j].time,
  18017. userid: b[j].userid,
  18018. wid: b[j].id,
  18019. });
  18020. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  18021. //选择题
  18022. this.workStudent[i].push({
  18023. works: b[j].content,
  18024. sName: b[j].name,
  18025. score: b[j].score,
  18026. img: b[j].img,
  18027. type: 12,
  18028. time: b[j].time,
  18029. userid: b[j].userid,
  18030. wid: b[j].id,
  18031. });
  18032. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  18033. //选择题
  18034. this.workStudent[i].push({
  18035. works: b[j].content,
  18036. sName: b[j].name,
  18037. score: b[j].score,
  18038. img: b[j].img,
  18039. type: 15,
  18040. time: b[j].time,
  18041. userid: b[j].userid,
  18042. wid: b[j].id,
  18043. });
  18044. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  18045. //英语写作
  18046. this.workStudent[i].push({
  18047. works: b[j].content,
  18048. sName: b[j].name,
  18049. score: b[j].score,
  18050. img: b[j].img,
  18051. type: 16,
  18052. time: b[j].time,
  18053. userid: b[j].userid,
  18054. wid: b[j].id,
  18055. aiCode: b[j].aiCode,
  18056. teacherCode: b[j].teacherCode
  18057. });
  18058. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  18059. //英语口语
  18060. this.workStudent[i].push({
  18061. works: b[j].content,
  18062. sName: b[j].name,
  18063. score: b[j].score,
  18064. img: b[j].img,
  18065. type: 17,
  18066. time: b[j].time,
  18067. userid: b[j].userid,
  18068. wid: b[j].id,
  18069. });
  18070. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  18071. //交互视频
  18072. this.workStudent[i].push({
  18073. works: b[j].content,
  18074. sName: b[j].name,
  18075. score: b[j].score,
  18076. img: b[j].img,
  18077. type: 14,
  18078. time: b[j].time,
  18079. userid: b[j].userid,
  18080. wid: b[j].id,
  18081. });
  18082. }
  18083. }
  18084. }
  18085. }
  18086. this.selectStudentLoading = false
  18087. })
  18088. .catch((err) => {
  18089. this.selectStudentLoading = false
  18090. console.error(err);
  18091. });
  18092. },
  18093. openVideo(w) {
  18094. this.videoDetail = {};
  18095. this.playerOptions1.sources[0].src = w.works;
  18096. this.videoDetail = this.playerOptions1;
  18097. this.videoVisible = true;
  18098. },
  18099. isLikes(wid, uid, t, c, isLikes,sName) {
  18100. if (isLikes == false) {
  18101. let params = [
  18102. {
  18103. wid: wid,
  18104. lid: uid,
  18105. t: t,
  18106. c: c,
  18107. },
  18108. ];
  18109. this.ajax
  18110. .post(this.$store.state.api + "insertComment", params)
  18111. .then((res) => {
  18112. this.$message({
  18113. message: this.lang.ssLikeSuccess,
  18114. type: "success",
  18115. });
  18116. this.selectSWorks();
  18117. this.selectStudent();
  18118. if(this.tType!=2){
  18119. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  18120. }
  18121. })
  18122. .catch((err) => {
  18123. this.$message.error(this.lang.ssLikeFailed);
  18124. console.error(err);
  18125. });
  18126. } else {
  18127. let params = {
  18128. wid: wid,
  18129. lid: uid,
  18130. type: t,
  18131. };
  18132. this.ajax
  18133. .get(this.$store.state.api + "deleteComment", params)
  18134. .then((res) => {
  18135. this.$message({
  18136. message: this.lang.ssCancelLikeSuccess,
  18137. type: "success",
  18138. });
  18139. this.selectSWorks();
  18140. this.selectStudent();
  18141. })
  18142. .catch((err) => {
  18143. console.error(err);
  18144. });
  18145. }
  18146. },
  18147. deleteComment(wid) {
  18148. this.$confirm(this.lang.ssConfirmDeleteComment, this.lang.ssPrompt, {
  18149. confirmButtonText: this.lang.ssConfirm,
  18150. cancelButtonText: this.lang.ssCancel,
  18151. type: "warning",
  18152. })
  18153. .then(() => {
  18154. let params = {
  18155. id: wid,
  18156. };
  18157. this.ajax
  18158. .get(this.$store.state.api + "deleteComment2", params)
  18159. .then((res) => {
  18160. this.$message({
  18161. message: this.lang.ssDeleteCommentSuccess,
  18162. type: "success",
  18163. });
  18164. this.selectSWorks();
  18165. this.selectStudent();
  18166. })
  18167. .catch((err) => {
  18168. console.error(err);
  18169. });
  18170. })
  18171. .catch(() => {});
  18172. },
  18173. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  18174. this.commentIndexJson = {
  18175. toolIndex: toolIndex,
  18176. wIndex: wIndex,
  18177. gindex: gindex,
  18178. gid: gid,
  18179. };
  18180. this.commentDetail = [];
  18181. this.commentDialogVisible = true;
  18182. this.commentDetail = w;
  18183. if (w.works && w.type == 1) {
  18184. // this.pptImgUrl = "";
  18185. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18186. if (
  18187. a.indexOf(
  18188. w.works
  18189. .split(".")
  18190. [w.works.split(".").length - 1].toLocaleUpperCase()
  18191. ) != -1
  18192. ) {
  18193. let _uuurl = await this.checkLink(w.works);
  18194. console.log(_uuurl)
  18195. this.pptImgUrl =
  18196. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18197. this.showPDF = false;
  18198. } else if (
  18199. w.works
  18200. .split(".")
  18201. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18202. ) {
  18203. this.pptImgUrl = w.works;
  18204. this.showPDF = true;
  18205. }
  18206. } else if (w.works && w.type == 3) {
  18207. this.videoDetail = {};
  18208. this.playerOptions1.sources[0].src = w.works;
  18209. this.videoDetail = this.playerOptions1;
  18210. // this.videoVisible = true;
  18211. } else if (w.works && w.type == 4) {
  18212. this.eScore = JSON.parse(w.works);
  18213. this.rateJson =
  18214. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18215. this.taskCount
  18216. ].toolChoose[toolIndex].rateJson;
  18217. } else if (w.works && w.type == 10) {
  18218. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  18219. } else if (w.works && w.type == 13) {
  18220. this.wordJson =
  18221. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18222. this.taskCount
  18223. ].toolChoose[toolIndex].wordJson;
  18224. }
  18225. },
  18226. async openScore(w, index) {
  18227. this.wScore = 0;
  18228. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  18229. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  18230. this.commentDetail = [];
  18231. if(w.type == 17){
  18232. this.dialogVisibleENScore = true;
  18233. }else{
  18234. this.dialogVisibleScore = true;
  18235. }
  18236. this.commentDetail = w;
  18237. if (w.works && w.type == 1) {
  18238. this.pptImgUrl = "";
  18239. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18240. if (
  18241. a.indexOf(
  18242. w.works
  18243. .split(".")
  18244. [w.works.split(".").length - 1].toLocaleUpperCase()
  18245. ) != -1
  18246. ) {
  18247. let _uuurl = await this.checkLink(w.works);
  18248. console.log(_uuurl)
  18249. this.pptImgUrl =
  18250. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18251. this.showPDF = false;
  18252. } else if (
  18253. w.works
  18254. .split(".")
  18255. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18256. ) {
  18257. this.pptImgUrl = w.works;
  18258. this.showPDF = true;
  18259. }
  18260. } else if (w.works && w.type == 3) {
  18261. this.videoDetail = {};
  18262. this.playerOptions1.sources[0].src = w.works;
  18263. this.videoDetail = this.playerOptions1;
  18264. }else if(w.type == 17){
  18265. let englishVoiceJson = {}
  18266. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18267. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  18268. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  18269. .toolChoose[index].englishVoiceJson
  18270. : {};
  18271. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18272. }
  18273. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18274. },
  18275. addComment(wid, uid, t,detail) {
  18276. if (this.commentText == "") {
  18277. this.$message.error(this.lang.ssEnterComment);
  18278. return;
  18279. }
  18280. let params2 = [
  18281. {
  18282. wid: wid,
  18283. lid: uid,
  18284. t: t,
  18285. },
  18286. ];
  18287. this.ajax
  18288. .post(this.$store.state.api + "getComment", params2)
  18289. .then((res) => {
  18290. if (res.data[0].length > 0) {
  18291. this.$message.error(this.lang.ssOnlyOneCommentPerHomework);
  18292. } else {
  18293. let params = [
  18294. {
  18295. wid: wid,
  18296. lid: uid,
  18297. t: t,
  18298. c: this.commentText,
  18299. },
  18300. ];
  18301. this.ajax
  18302. .post(this.$store.state.api + "insertComment", params)
  18303. .then((res) => {
  18304. this.$message({
  18305. message: this.lang.ssCommentSuccess,
  18306. type: "success",
  18307. });
  18308. this.commentText = "";
  18309. this.selectSWorks();
  18310. this.selectStudent();
  18311. if(this.tType!=2){
  18312. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  18313. }
  18314. })
  18315. .catch((err) => {
  18316. this.$message.error(this.lang.ssCommentFailed);
  18317. console.error(err);
  18318. });
  18319. }
  18320. })
  18321. .catch((err) => {
  18322. // this.$message.error("评论失败");
  18323. console.error(err);
  18324. });
  18325. },
  18326. scoreWork(wid,sName) {
  18327. if (this.wScore == 0) {
  18328. this.$message.error(this.lang.ssPleaseRate);
  18329. return;
  18330. }
  18331. let params = [
  18332. {
  18333. wid: wid,
  18334. score: JSON.stringify({
  18335. wScore: this.wScore,
  18336. detail: this.scoreDetail,
  18337. }),
  18338. },
  18339. ];
  18340. this.ajax
  18341. .post(this.$store.state.api + "scoreWork", params)
  18342. .then((res) => {
  18343. this.$message({
  18344. message: this.lang.ssRatingSuccess,
  18345. type: "success",
  18346. });
  18347. this.wScore = 0;
  18348. this.scoreDetail = "";
  18349. this.dialogVisibleScore = false;
  18350. this.selectSWorks();
  18351. this.selectStudent();
  18352. if(this.tType!=2){
  18353. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  18354. }
  18355. })
  18356. .catch((err) => {
  18357. this.$message.error(this.lang.ssRatingFailed);
  18358. console.error(err);
  18359. });
  18360. },
  18361. openXz(w, i) {
  18362. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18363. .taskJson[this.taskCount].toolChoose[i].selectJson
  18364. ? JSON.parse(
  18365. JSON.stringify(
  18366. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18367. this.taskCount
  18368. ].toolChoose[i].selectJson
  18369. )
  18370. )
  18371. : { url: "", select: [], answer: [] };
  18372. var a = w.works.split(",");
  18373. for (var k = 0; k < a.length; k++) {
  18374. a[k] = parseInt(a[k]);
  18375. }
  18376. this.selectAnswer = { answer: a, stu: w.sName };
  18377. this.isSelect = true;
  18378. this.dialogVisibleSelect = true;
  18379. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18380. },
  18381. openSen(w, i) {
  18382. this.sentenceList1 = JSON.parse(w.works);
  18383. this.sentenceList1.stuName = w.sName;
  18384. this.dialogVisibleSentence1 = true;
  18385. },
  18386. openPj(w, toolindex) {
  18387. this.isStar = true;
  18388. this.eScore = JSON.parse(w);
  18389. this.rateJson =
  18390. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18391. this.taskCount
  18392. ].toolChoose[toolindex].rateJson;
  18393. this.studentEvalDialogVisible = true;
  18394. },
  18395. openEnglishEva(id,i){
  18396. let params = {
  18397. wid: id
  18398. };
  18399. this.ajax
  18400. .get(this.$store.state.api + "selectEngWork", params)
  18401. .then((res) => {
  18402. this.evaEngJson.message = res.data[0][0];
  18403. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  18404. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  18405. .toolChoose[i].englishList;
  18406. this.engEvaDialogVisible = true;
  18407. })
  18408. .catch((err) => {
  18409. console.error(err);
  18410. });
  18411. },
  18412. deleteWorks(id) {
  18413. this.$confirm(this.lang.ssConfirmDeleteWork, this.lang.ssPrompt, {
  18414. confirmButtonText: this.lang.ssConfirm,
  18415. cancelButtonText: this.lang.ssCancel,
  18416. type: "warning",
  18417. })
  18418. .then(() => {
  18419. let params = [
  18420. {
  18421. id: id,
  18422. },
  18423. ];
  18424. this.ajax
  18425. .post(this.$store.state.api + "deleteCourseWork", params)
  18426. .then((res) => {
  18427. this.$message({
  18428. message: this.lang.ssDeleteSuccess,
  18429. type: "success",
  18430. });
  18431. this.selectStudent();
  18432. this.selectSWorks();
  18433. this.selectSLook();
  18434. })
  18435. .catch((err) => {
  18436. this.$message.error(this.lang.ssNetworkError);
  18437. console.error(err);
  18438. });
  18439. })
  18440. .catch(() => {});
  18441. },
  18442. noIsAi() {
  18443. this.$message.info(this.lang.ssNoAISetting);
  18444. },
  18445. getLang() {
  18446. let lang = "";
  18447. if (this.languageSetting == 0) {
  18448. lang = "Chinese.";
  18449. } else if (this.languageSetting == 1) {
  18450. lang = "Traditional Chinese.";
  18451. } else if (this.languageSetting == 2) {
  18452. lang = "English.";
  18453. }
  18454. return lang;
  18455. },
  18456. selectSWorks(gindex) {
  18457. if(this.selectSWorksLoading) return
  18458. this.selectSWorksLoading = true
  18459. //教师查看全部作业
  18460. let params = {
  18461. cid: this.id,
  18462. s: this.courseType,
  18463. t: this.taskCount
  18464. };
  18465. this.ajax
  18466. .get(this.$store.state.api + "selectSWorks", params)
  18467. .then(res => {
  18468. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18469. this.taskCount
  18470. ].toolChoose;
  18471. var b = res.data[0];
  18472. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18473. var y = [
  18474. "AVI",
  18475. "NAVI",
  18476. "MPEG",
  18477. "ASF",
  18478. "MOV",
  18479. "WMV",
  18480. "3GP",
  18481. "RM",
  18482. "RMVB",
  18483. "FLV",
  18484. "F4V",
  18485. "H.264",
  18486. "H.265",
  18487. "REAL VIDEO",
  18488. "MKV",
  18489. "WebM",
  18490. "HDDVD",
  18491. "MP4",
  18492. "MPG",
  18493. "M4V",
  18494. "MGV",
  18495. "OGV",
  18496. "QTM",
  18497. "STR",
  18498. "AMC",
  18499. "DVX",
  18500. "EVO",
  18501. "DAT",
  18502. "OGG",
  18503. "OGM"
  18504. ];
  18505. var d = res.data[1];
  18506. var e = res.data[2];
  18507. var f = res.data[3];
  18508. let _worksStudent = [];
  18509. var _worksStudent2 = [];
  18510. for (var i = 0; i < a.length; i++) {
  18511. _worksStudent[i] = [];
  18512. _worksStudent2[i] = [];
  18513. if (
  18514. !this.isCloseList[i] ||
  18515. this.isCloseList[i].isClose == undefined
  18516. ) {
  18517. this.isCloseList[i] = { isClose: 0 };
  18518. }
  18519. this.groupStudent[i] = [];
  18520. this.groupStudentUid[i] = [];
  18521. if (this.isGroup) {
  18522. for (
  18523. var groupI = 0;
  18524. groupI < this.courseGroup.group.length;
  18525. groupI++
  18526. ) {
  18527. this.courseGroup.group[groupI].works[i] = [];
  18528. }
  18529. }
  18530. this.isWorksS[i] = [];
  18531. this.checkJson[i] = [];
  18532. if (a[i].tool[0] == 49) {
  18533. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  18534. this.groupStudent[i][gA] = [];
  18535. this.groupStudentUid[i][gA] = [];
  18536. _worksStudent[i][gA] = [];
  18537. _worksStudent2[i][gA] = [];
  18538. this.isCloseList[i][gA] = [];
  18539. for (var g = 0; g < f.length; g++) {
  18540. if (
  18541. f[g].ttype == 2 &&
  18542. this.tcid &&
  18543. this.arrayToArray(
  18544. f[g].classid ? f[g].classid.split(",") : [],
  18545. this.tcid.split(",")
  18546. ).length == 0
  18547. ) {
  18548. continue;
  18549. }
  18550. let _classId = this.arrayToArray(
  18551. this.courseDetail.juri
  18552. ? this.courseDetail.juri.split(",")
  18553. : [],
  18554. this.classId ? this.classId.split(",") : []
  18555. );
  18556. if (
  18557. gA == f[g].group &&
  18558. f[g].tool == i &&
  18559. (this.arrayToArray(
  18560. f[g].classid ? f[g].classid.split(",") : [],
  18561. this.tcid.split(",")
  18562. ).length !== 0 ||
  18563. this.arrayToArray(
  18564. f[g].classid ? f[g].classid.split(",") : [],
  18565. _classId
  18566. ).length !== 0 ||
  18567. (!this.tcid && this.tType == "1") ||
  18568. this.courseDetail.juri === "" ||
  18569. f[g].ttype == 1)
  18570. ) {
  18571. this.groupStudent[i][gA].push(f[g]);
  18572. this.groupStudentUid[i][gA].push(f[g].userid);
  18573. }
  18574. }
  18575. }
  18576. this.$forceUpdate();
  18577. }
  18578. for (var j = 0; j < b.length; j++) {
  18579. if (
  18580. b[j].ttype == 2 &&
  18581. this.tcid &&
  18582. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  18583. .length == 0
  18584. ) {
  18585. continue;
  18586. }
  18587. var likesCount = 0;
  18588. var commentCount = 0;
  18589. var isLikes = false;
  18590. var commentJson = [];
  18591. var likeJson = [];
  18592. var data = b[j];
  18593. if (i == b[j].tool) {
  18594. if (data.type == 2 && a[i].tool[0] == 4) {
  18595. // if(JSON.parse(data.content)[0].anwer){
  18596. var checkL =
  18597. JSON.parse(data.content)[0].anwer instanceof Array
  18598. ? JSON.parse(data.content)[0].anwer
  18599. : JSON.parse(data.content)[0].anwer.split(",");
  18600. for (var z = 0; z < checkL.length; z++) {
  18601. if (!this.checkJson[i][z]) {
  18602. this.checkJson[i].push({
  18603. checkCount: [],
  18604. checkPerson: [],
  18605. rightPerson: []
  18606. });
  18607. }
  18608. if (!this.checkJson[i][z].checkCount.length) {
  18609. this.checkJson[i][z].checkCount = [];
  18610. let _askItemCount = JSON.parse(data.content)[0].askJson
  18611. .askJson[z].askItem;
  18612. for (var aic = 0; aic < _askItemCount; aic++) {
  18613. this.checkJson[i][z].checkCount.push(0);
  18614. }
  18615. }
  18616. if (checkL[z] instanceof Array) {
  18617. if (
  18618. JSON.parse(data.content)[0]
  18619. .anwer.sort()
  18620. .join(",") == checkL[z].sort().join(",")
  18621. ) {
  18622. this.checkJson[i][z].rightPerson.push(data.name);
  18623. }
  18624. for (var q = 0; q < checkL[z].length; q++) {
  18625. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18626. ? this.checkJson[i][z].checkPerson[
  18627. parseInt(checkL[z][q])
  18628. ].push(data.name)
  18629. : (this.checkJson[i][z].checkPerson[
  18630. parseInt(checkL[z][q])
  18631. ] = [data.name]);
  18632. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18633. ? this.checkJson[i][z].checkCount[
  18634. parseInt(checkL[z][q])
  18635. ]++
  18636. : (this.checkJson[i][z].checkCount[
  18637. parseInt(checkL[z][q])
  18638. ] = 1);
  18639. }
  18640. } else {
  18641. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  18642. this.checkJson[i][z].rightPerson.push(data.name);
  18643. }
  18644. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18645. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18646. ? this.checkJson[i][z].checkPerson[
  18647. parseInt(checkL[z])
  18648. ].push(data.name)
  18649. : (this.checkJson[i][z].checkPerson[
  18650. parseInt(checkL[z])
  18651. ] = [data.name]);
  18652. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18653. ? this.checkJson[i][z].checkCount[
  18654. parseInt(checkL[z])
  18655. ]++
  18656. : (this.checkJson[i][z].checkCount[
  18657. parseInt(checkL[z])
  18658. ] = 1);
  18659. }
  18660. }
  18661. }
  18662. } else if (data.type == 8 && a[i].tool[0] == 45) {
  18663. var checkL = JSON.parse(data.content)[0].anwer;
  18664. if(a[i].testJson.testCount != JSON.parse(data.content)[0].testJson.testCount){
  18665. continue
  18666. }
  18667. console.log(this.lang.ssChoice)
  18668. for (var z = 0; z < checkL.length; z++) {
  18669. if (!this.checkJson[i][z]) {
  18670. this.checkJson[i].push({
  18671. checkCount: [],
  18672. checkPerson: [],
  18673. rightPerson: []
  18674. });
  18675. }
  18676. if (!this.checkJson[i][z].checkCount.length) {
  18677. this.checkJson[i][z].checkCount = [];
  18678. let _askItemCount = JSON.parse(data.content)[0].testJson
  18679. .testJson[z].testItem;
  18680. for (var aic = 0; aic < _askItemCount; aic++) {
  18681. this.checkJson[i][z].checkCount.push(0);
  18682. }
  18683. }
  18684. if (checkL[z] instanceof Array) {
  18685. if (
  18686. JSON.parse(data.content)[0]
  18687. .testJson.testJson[z].answer.sort()
  18688. .join(",") == checkL[z].sort().join(",")
  18689. ) {
  18690. this.checkJson[i][z].rightPerson.push(data.name);
  18691. }
  18692. for (var q = 0; q < checkL[z].length; q++) {
  18693. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18694. ? this.checkJson[i][z].checkPerson[
  18695. parseInt(checkL[z][q])
  18696. ].push(data.name)
  18697. : (this.checkJson[i][z].checkPerson[
  18698. parseInt(checkL[z][q])
  18699. ] = [data.name]);
  18700. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18701. ? this.checkJson[i][z].checkCount[
  18702. parseInt(checkL[z][q])
  18703. ]++
  18704. : (this.checkJson[i][z].checkCount[
  18705. parseInt(checkL[z][q])
  18706. ] = 1);
  18707. }
  18708. } else {
  18709. if (
  18710. JSON.parse(data.content)[0].testJson.testJson[z]
  18711. .answer == checkL[z]
  18712. ) {
  18713. this.checkJson[i][z].rightPerson.push(data.name);
  18714. }
  18715. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18716. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18717. ? this.checkJson[i][z].checkPerson[
  18718. parseInt(checkL[z])
  18719. ].push(data.name)
  18720. : (this.checkJson[i][z].checkPerson[
  18721. parseInt(checkL[z])
  18722. ] = [data.name]);
  18723. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18724. ? this.checkJson[i][z].checkCount[
  18725. parseInt(checkL[z])
  18726. ]++
  18727. : (this.checkJson[i][z].checkCount[
  18728. parseInt(checkL[z])
  18729. ] = 1);
  18730. }
  18731. }
  18732. }
  18733. } else if (data.type == 9 && a[i].tool[0] == 47) {
  18734. var checkL = JSON.parse(data.content);
  18735. for (var z = 0; z < checkL.length; z++) {
  18736. if (!this.checkJson[i][z]) {
  18737. this.checkJson[i].push({
  18738. checkCount: [],
  18739. checkPerson: [],
  18740. rightPerson: []
  18741. });
  18742. }
  18743. this.checkJson[i][z].checkPerson.push(data.name);
  18744. if (
  18745. checkL[z].chooseSenList.toString() ==
  18746. checkL[z].rightAnswer.toString()
  18747. ) {
  18748. this.checkJson[i][z].rightPerson.push(data.name);
  18749. }
  18750. }
  18751. }
  18752. for (var k = 0; k < d.length; k++) {
  18753. //点赞
  18754. if (d[k].workId == b[j].id) {
  18755. likesCount++;
  18756. likeJson.push(d[k]);
  18757. if (d[k].likesId == this.userid) {
  18758. isLikes = true;
  18759. }
  18760. }
  18761. }
  18762. for (var l = 0; l < e.length; l++) {
  18763. //评论
  18764. if (e[l].workId == b[j].id) {
  18765. if (e[l].comment != "") {
  18766. commentCount++;
  18767. commentJson.push({
  18768. commentText: e[l].comment,
  18769. commentTime: e[l].commentTime,
  18770. commentPeople: e[l].commentPeople,
  18771. userid: e[l].userid,
  18772. wid: e[l].id
  18773. });
  18774. }
  18775. }
  18776. }
  18777. if (
  18778. (b[j].type == 1 ||
  18779. b[j].type == 4 ||
  18780. b[j].type == 5 ||
  18781. b[j].type == 6 ||
  18782. b[j].type == 12 ||
  18783. b[j].type == 7) &&
  18784. a[i].tool[0] != 15 &&
  18785. a[i].tool[0] != 4 &&
  18786. a[i].tool[0] != 45 &&
  18787. a[i].tool[0] != 50 &&
  18788. a[i].tool[0] != 32 &&
  18789. a[i].tool[0] != 57 &&
  18790. a[i].tool[0] != 52
  18791. ) {
  18792. if (
  18793. c.indexOf(
  18794. b[j].content
  18795. .split(".")
  18796. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18797. ) != -1 &&
  18798. a[i].tool[0] == 16 &&
  18799. b[j].atool != 50
  18800. ) {
  18801. let _works = {
  18802. userid: b[j].userid,
  18803. ateacher: b[j].ateacher,
  18804. wid: b[j].id,
  18805. works: b[j].content,
  18806. sName: b[j].name,
  18807. type: 1,
  18808. ttype: b[j].ttype,
  18809. time: b[j].time,
  18810. score: b[j].score,
  18811. img: b[j].img,
  18812. likesCount: likesCount,
  18813. commentCount: commentCount,
  18814. isLikes: isLikes,
  18815. commentJson: commentJson,
  18816. likeJson: likeJson
  18817. };
  18818. if (this.isGroup) {
  18819. let isGw = 1;
  18820. for (
  18821. var groupI = 0;
  18822. groupI < this.courseGroup.group.length;
  18823. groupI++
  18824. ) {
  18825. let gid = this.courseGroup.group[groupI].id;
  18826. if (
  18827. this.courseGroupStudentUid[gid].indexOf(
  18828. b[j].userid
  18829. ) != -1
  18830. ) {
  18831. isGw = 2;
  18832. this.courseGroup.group[groupI].works[i].push(_works);
  18833. break;
  18834. }
  18835. }
  18836. if (isGw == 1) {
  18837. _worksStudent[i].push(_works);
  18838. }
  18839. } else {
  18840. _worksStudent[i].push(_works);
  18841. }
  18842. _worksStudent2[i].push(_works);
  18843. this.isWorksS[i].push({
  18844. uid: b[j].userid,
  18845. sName: b[j].name
  18846. });
  18847. } else if (
  18848. y.indexOf(
  18849. b[j].content
  18850. .split(".")
  18851. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18852. ) != -1 &&
  18853. a[i].tool[0] == 16 &&
  18854. b[j].atool != 50
  18855. ) {
  18856. let _works = {
  18857. userid: b[j].userid,
  18858. ateacher: b[j].ateacher,
  18859. wid: b[j].id,
  18860. works: b[j].content,
  18861. sName: b[j].name,
  18862. type: 3,
  18863. ttype: b[j].ttype,
  18864. time: b[j].time,
  18865. score: b[j].score,
  18866. img: b[j].img,
  18867. likesCount: likesCount,
  18868. commentCount: commentCount,
  18869. isLikes: isLikes,
  18870. commentJson: commentJson,
  18871. likeJson: likeJson
  18872. };
  18873. if (this.isGroup) {
  18874. let isGw = 1;
  18875. for (
  18876. var groupI = 0;
  18877. groupI < this.courseGroup.group.length;
  18878. groupI++
  18879. ) {
  18880. let gid = this.courseGroup.group[groupI].id;
  18881. if (
  18882. this.courseGroupStudentUid[gid].indexOf(
  18883. b[j].userid
  18884. ) != -1
  18885. ) {
  18886. isGw = 2;
  18887. this.courseGroup.group[groupI].works[i].push(_works);
  18888. break;
  18889. }
  18890. }
  18891. if (isGw == 1) {
  18892. _worksStudent[i].push(_works);
  18893. }
  18894. } else {
  18895. _worksStudent[i].push(_works);
  18896. }
  18897. _worksStudent2[i].push(_works);
  18898. this.isWorksS[i].push({
  18899. uid: b[j].userid,
  18900. sName: b[j].name
  18901. });
  18902. } else if (b[j].type == 6 && b[j].atool != 50) {
  18903. let _works = {
  18904. userid: b[j].userid,
  18905. ateacher: b[j].ateacher,
  18906. wid: b[j].id,
  18907. works: b[j].content,
  18908. sName: b[j].name,
  18909. type: 4,
  18910. ttype: b[j].ttype,
  18911. time: b[j].time,
  18912. score: b[j].score,
  18913. img: b[j].img,
  18914. likesCount: likesCount,
  18915. commentCount: commentCount,
  18916. isLikes: isLikes,
  18917. commentJson: commentJson,
  18918. likeJson: likeJson
  18919. };
  18920. _worksStudent[i].push(_works);
  18921. _worksStudent2[i].push(_works);
  18922. this.isWorksS[i].push({
  18923. uid: b[j].userid,
  18924. sName: b[j].name
  18925. });
  18926. } else if (b[j].type == 7 && b[j].atool != 50) {
  18927. let _work = {
  18928. userid: b[j].userid,
  18929. ateacher: b[j].ateacher,
  18930. wid: b[j].id,
  18931. works: b[j].content,
  18932. sName: b[j].name,
  18933. type: 5,
  18934. ttype: b[j].ttype,
  18935. time: b[j].time,
  18936. score: b[j].score,
  18937. img: b[j].img,
  18938. likesCount: likesCount,
  18939. commentCount: commentCount,
  18940. isLikes: isLikes,
  18941. commentJson: commentJson,
  18942. likeJson: likeJson
  18943. };
  18944. _worksStudent[i].push(_work);
  18945. _worksStudent2[i].push(_work);
  18946. this.isWorksS[i].push({
  18947. uid: b[j].userid,
  18948. sName: b[j].name
  18949. });
  18950. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  18951. let _works = {
  18952. userid: b[j].userid,
  18953. ateacher: b[j].ateacher,
  18954. wid: b[j].id,
  18955. works: b[j].content,
  18956. sName: b[j].name,
  18957. type: 12,
  18958. ttype: b[j].ttype,
  18959. time: b[j].time,
  18960. score: b[j].score,
  18961. img: b[j].img,
  18962. likesCount: likesCount,
  18963. commentCount: commentCount,
  18964. isLikes: isLikes,
  18965. commentJson: commentJson,
  18966. likeJson: likeJson
  18967. };
  18968. if (this.isGroup) {
  18969. let isGw = 1;
  18970. for (
  18971. var groupI = 0;
  18972. groupI < this.courseGroup.group.length;
  18973. groupI++
  18974. ) {
  18975. let gid = this.courseGroup.group[groupI].id;
  18976. if (
  18977. this.courseGroupStudentUid[gid].indexOf(
  18978. b[j].userid
  18979. ) != -1
  18980. ) {
  18981. isGw = 2;
  18982. this.courseGroup.group[groupI].works[i].push(_works);
  18983. break;
  18984. }
  18985. }
  18986. if (isGw == 1) {
  18987. _worksStudent[i].push(_works);
  18988. }
  18989. } else {
  18990. _worksStudent[i].push(_works);
  18991. }
  18992. _worksStudent2[i].push(_works);
  18993. this.isWorksS[i].push({
  18994. uid: b[j].userid,
  18995. sName: b[j].name
  18996. });
  18997. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  18998. let _works = {
  18999. userid: b[j].userid,
  19000. ateacher: b[j].ateacher,
  19001. wid: b[j].id,
  19002. works: b[j].content,
  19003. sName: b[j].name,
  19004. type: 0,
  19005. ttype: b[j].ttype,
  19006. time: b[j].time,
  19007. score: b[j].score,
  19008. img: b[j].img,
  19009. likesCount: likesCount,
  19010. commentCount: commentCount,
  19011. isLikes: isLikes,
  19012. commentJson: commentJson,
  19013. likeJson: likeJson
  19014. };
  19015. if (this.isGroup) {
  19016. let isGw = 1;
  19017. for (
  19018. var groupI = 0;
  19019. groupI < this.courseGroup.group.length;
  19020. groupI++
  19021. ) {
  19022. let gid = this.courseGroup.group[groupI].id;
  19023. if (
  19024. this.courseGroupStudentUid[gid].indexOf(
  19025. b[j].userid
  19026. ) != -1
  19027. ) {
  19028. isGw = 2;
  19029. this.courseGroup.group[groupI].works[i].push(_works);
  19030. break;
  19031. }
  19032. }
  19033. if (isGw == 1) {
  19034. _worksStudent[i].push(_works);
  19035. }
  19036. } else {
  19037. _worksStudent[i].push(_works);
  19038. }
  19039. _worksStudent2[i].push(_works);
  19040. this.isWorksS[i].push({
  19041. uid: b[j].userid,
  19042. sName: b[j].name
  19043. });
  19044. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  19045. let _works = {
  19046. userid: b[j].userid,
  19047. ateacher: b[j].ateacher,
  19048. wid: b[j].id,
  19049. works: b[j].content,
  19050. sName: b[j].name,
  19051. type: 0,
  19052. ttype: b[j].ttype,
  19053. time: b[j].time,
  19054. score: b[j].score,
  19055. img: b[j].img,
  19056. likesCount: likesCount,
  19057. commentCount: commentCount,
  19058. isLikes: isLikes,
  19059. commentJson: commentJson,
  19060. likeJson: likeJson
  19061. };
  19062. if (this.isGroup) {
  19063. let isGw = 1;
  19064. for (
  19065. var groupI = 0;
  19066. groupI < this.courseGroup.group.length;
  19067. groupI++
  19068. ) {
  19069. let gid = this.courseGroup.group[groupI].id;
  19070. if (
  19071. this.courseGroupStudentUid[gid].indexOf(
  19072. b[j].userid
  19073. ) != -1
  19074. ) {
  19075. isGw = 2;
  19076. this.courseGroup.group[groupI].works[i].push(_works);
  19077. break;
  19078. }
  19079. }
  19080. if (isGw == 1) {
  19081. _worksStudent[i].push(_works);
  19082. }
  19083. } else {
  19084. _worksStudent[i].push(_works);
  19085. }
  19086. _worksStudent2[i].push(_works);
  19087. this.isWorksS[i].push({
  19088. uid: b[j].userid,
  19089. sName: b[j].name
  19090. });
  19091. }
  19092. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  19093. let _works = {
  19094. userid: b[j].userid,
  19095. ateacher: b[j].ateacher,
  19096. wid: b[j].id,
  19097. works: b[j].content,
  19098. sName: b[j].name,
  19099. type: 2,
  19100. ttype: b[j].ttype,
  19101. time: b[j].time,
  19102. score: b[j].score,
  19103. img: b[j].img,
  19104. likesCount: likesCount,
  19105. commentCount: commentCount,
  19106. isLikes: isLikes,
  19107. commentJson: commentJson,
  19108. likeJson: likeJson
  19109. };
  19110. if (this.isGroup) {
  19111. let isGw = 1;
  19112. for (
  19113. var groupI = 0;
  19114. groupI < this.courseGroup.group.length;
  19115. groupI++
  19116. ) {
  19117. let gid = this.courseGroup.group[groupI].id;
  19118. if (
  19119. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19120. -1
  19121. ) {
  19122. isGw = 2;
  19123. this.courseGroup.group[groupI].works[i].push(_works);
  19124. break;
  19125. }
  19126. }
  19127. if (isGw == 1) {
  19128. _worksStudent[i].push(_works);
  19129. }
  19130. } else {
  19131. _worksStudent[i].push(_works);
  19132. }
  19133. _worksStudent2[i].push(_works);
  19134. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19135. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  19136. let _works = {
  19137. userid: b[j].userid,
  19138. ateacher: b[j].ateacher,
  19139. wid: b[j].id,
  19140. works: b[j].content,
  19141. sName: b[j].name,
  19142. type: 20,
  19143. ttype: b[j].ttype,
  19144. time: b[j].time,
  19145. score: b[j].score,
  19146. img: b[j].img,
  19147. likesCount: likesCount,
  19148. commentCount: commentCount,
  19149. isLikes: isLikes,
  19150. commentJson: commentJson,
  19151. likeJson: likeJson
  19152. };
  19153. if (this.isGroup) {
  19154. let isGw = 1;
  19155. for (
  19156. var groupI = 0;
  19157. groupI < this.courseGroup.group.length;
  19158. groupI++
  19159. ) {
  19160. let gid = this.courseGroup.group[groupI].id;
  19161. if (
  19162. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19163. -1
  19164. ) {
  19165. isGw = 2;
  19166. this.courseGroup.group[groupI].works[i].push(_works);
  19167. break;
  19168. }
  19169. }
  19170. if (isGw == 1) {
  19171. _worksStudent[i].push(_works);
  19172. }
  19173. } else {
  19174. _worksStudent[i].push(_works);
  19175. }
  19176. _worksStudent2[i].push(_works);
  19177. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19178. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  19179. //问卷
  19180. let _work = {
  19181. userid: b[j].userid,
  19182. ateacher: b[j].ateacher,
  19183. wid: b[j].id,
  19184. works: b[j].content,
  19185. sName: b[j].name,
  19186. type: 2,
  19187. ttype: b[j].ttype,
  19188. time: b[j].time,
  19189. score: b[j].score,
  19190. img: b[j].img,
  19191. likesCount: likesCount,
  19192. commentCount: commentCount,
  19193. isLikes: isLikes,
  19194. commentJson: commentJson,
  19195. likeJson: likeJson
  19196. };
  19197. _worksStudent[i].push(_work);
  19198. _worksStudent2[i].push(_work);
  19199. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19200. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  19201. //选择题
  19202. let _work = {
  19203. userid: b[j].userid,
  19204. ateacher: b[j].ateacher,
  19205. wid: b[j].id,
  19206. works: b[j].content,
  19207. sName: b[j].name,
  19208. type: 8,
  19209. ttype: b[j].ttype,
  19210. time: b[j].time,
  19211. score: b[j].score,
  19212. img: b[j].img,
  19213. likesCount: likesCount,
  19214. commentCount: commentCount,
  19215. isLikes: isLikes,
  19216. commentJson: commentJson,
  19217. likeJson: likeJson
  19218. };
  19219. _worksStudent[i].push(_work);
  19220. _worksStudent2[i].push(_work);
  19221. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19222. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  19223. //选择题
  19224. let _work = {
  19225. userid: b[j].userid,
  19226. ateacher: b[j].ateacher,
  19227. wid: b[j].id,
  19228. works: b[j].content,
  19229. sName: b[j].name,
  19230. type: 9,
  19231. ttype: b[j].ttype,
  19232. time: b[j].time,
  19233. score: b[j].score,
  19234. img: b[j].img,
  19235. likesCount: likesCount,
  19236. commentCount: commentCount,
  19237. isLikes: isLikes,
  19238. commentJson: commentJson,
  19239. likeJson: likeJson
  19240. };
  19241. _worksStudent[i].push(_work);
  19242. _worksStudent2[i].push(_work);
  19243. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19244. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  19245. //选择题
  19246. let _work = {
  19247. userid: b[j].userid,
  19248. ateacher: b[j].ateacher,
  19249. wid: b[j].id,
  19250. works: b[j].content,
  19251. sName: b[j].name,
  19252. type: 10,
  19253. ttype: b[j].ttype,
  19254. time: b[j].time,
  19255. score: b[j].score,
  19256. img: b[j].img,
  19257. likesCount: likesCount,
  19258. commentCount: commentCount,
  19259. isLikes: isLikes,
  19260. commentJson: commentJson,
  19261. likeJson: likeJson
  19262. };
  19263. _worksStudent[i].push(_work);
  19264. _worksStudent2[i].push(_work);
  19265. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19266. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  19267. //选择题
  19268. let _work = {
  19269. userid: b[j].userid,
  19270. ateacher: b[j].ateacher,
  19271. wid: b[j].id,
  19272. works: b[j].content,
  19273. sName: b[j].name,
  19274. type: 13,
  19275. ttype: b[j].ttype,
  19276. time: b[j].time,
  19277. score: b[j].score,
  19278. img: b[j].img,
  19279. likesCount: likesCount,
  19280. commentCount: commentCount,
  19281. isLikes: isLikes,
  19282. commentJson: commentJson,
  19283. likeJson: likeJson
  19284. };
  19285. _worksStudent[i].push(_work);
  19286. _worksStudent2[i].push(_work);
  19287. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19288. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  19289. //选择题
  19290. let _work = {
  19291. userid: b[j].userid,
  19292. ateacher: b[j].ateacher,
  19293. wid: b[j].id,
  19294. works: b[j].content,
  19295. sName: b[j].name,
  19296. type: 16,
  19297. ttype: b[j].ttype,
  19298. time: b[j].time,
  19299. score: b[j].score,
  19300. img: b[j].img,
  19301. likesCount: likesCount,
  19302. commentCount: commentCount,
  19303. isLikes: isLikes,
  19304. commentJson: commentJson,
  19305. aiCode: b[j].aiCode,
  19306. teacherCode: b[j].teacherCode,
  19307. likeJson: likeJson
  19308. };
  19309. _worksStudent[i].push(_work);
  19310. _worksStudent2[i].push(_work);
  19311. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19312. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  19313. //选择题
  19314. let _work = {
  19315. userid: b[j].userid,
  19316. ateacher: b[j].ateacher,
  19317. wid: b[j].id,
  19318. works: b[j].content,
  19319. sName: b[j].name,
  19320. type: 17,
  19321. ttype: b[j].ttype,
  19322. time: b[j].time,
  19323. score: b[j].score,
  19324. img: b[j].img,
  19325. likesCount: likesCount,
  19326. commentCount: commentCount,
  19327. isLikes: isLikes,
  19328. commentJson: commentJson,
  19329. likeJson: likeJson
  19330. };
  19331. _worksStudent[i].push(_work);
  19332. _worksStudent2[i].push(_work);
  19333. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19334. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  19335. //交互视频
  19336. let _work = {
  19337. userid: b[j].userid,
  19338. ateacher: b[j].ateacher,
  19339. wid: b[j].id,
  19340. works: b[j].content,
  19341. sName: b[j].name,
  19342. type: 14,
  19343. ttype: b[j].ttype,
  19344. time: b[j].time,
  19345. score: b[j].score,
  19346. img: b[j].img,
  19347. likesCount: likesCount,
  19348. commentCount: commentCount,
  19349. isLikes: isLikes,
  19350. commentJson: commentJson,
  19351. likeJson: likeJson
  19352. };
  19353. _worksStudent[i].push(_work);
  19354. _worksStudent2[i].push(_work);
  19355. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19356. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  19357. let _gindex = JSON.parse(b[j].content);
  19358. if (
  19359. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  19360. b[j].userid
  19361. ) != -1
  19362. ) {
  19363. let _work = {
  19364. userid: b[j].userid,
  19365. ateacher: b[j].ateacher,
  19366. wid: b[j].id,
  19367. works: _gindex.url,
  19368. sName: b[j].name,
  19369. type: _gindex.type,
  19370. ttype: b[j].ttype,
  19371. time: b[j].time,
  19372. score: b[j].score,
  19373. img: b[j].img,
  19374. likesCount: likesCount,
  19375. commentCount: commentCount,
  19376. isLikes: isLikes,
  19377. commentJson: commentJson,
  19378. likeJson: likeJson
  19379. };
  19380. _worksStudent[i][_gindex.groupIndex].push(_work);
  19381. _worksStudent2[i][_gindex.groupIndex].push(_work);
  19382. }
  19383. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19384. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  19385. let _work = {
  19386. userid: b[j].userid,
  19387. ateacher: b[j].ateacher,
  19388. wid: b[j].id,
  19389. works: b[j].content,
  19390. sName: b[j].name ? b[j].name : b[j].userid,
  19391. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  19392. ttype: b[j].ttype,
  19393. time: b[j].time,
  19394. score: b[j].score,
  19395. img: b[j].img,
  19396. likesCount: likesCount,
  19397. commentCount: commentCount,
  19398. isLikes: isLikes,
  19399. commentJson: commentJson,
  19400. likeJson: likeJson
  19401. };
  19402. _worksStudent[i].push(_work);
  19403. _worksStudent2[i].push(_work);
  19404. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19405. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  19406. let _work = {
  19407. userid: b[j].userid,
  19408. ateacher: b[j].ateacher,
  19409. wid: b[j].id,
  19410. works: b[j].content,
  19411. sName: b[j].name ? b[j].name : b[j].userid,
  19412. type: 12,
  19413. ttype: b[j].ttype,
  19414. time: b[j].time,
  19415. score: b[j].score,
  19416. img: b[j].img,
  19417. likesCount: likesCount,
  19418. commentCount: commentCount,
  19419. isLikes: isLikes,
  19420. commentJson: commentJson,
  19421. likeJson: likeJson
  19422. };
  19423. _worksStudent[i].push(_work);
  19424. _worksStudent2[i].push(_work);
  19425. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19426. } else if (
  19427. a[i].tool[0] == 57 &&
  19428. b[j].atool == 57 &&
  19429. b[j].type == 12
  19430. ) {
  19431. let _work = {
  19432. userid: b[j].userid,
  19433. ateacher: b[j].ateacher,
  19434. wid: b[j].id,
  19435. works: b[j].content,
  19436. sName: b[j].name ? b[j].name : b[j].userid,
  19437. type: 12,
  19438. ttype: b[j].ttype,
  19439. time: b[j].time,
  19440. score: b[j].score,
  19441. img: b[j].img,
  19442. likesCount: likesCount,
  19443. commentCount: commentCount,
  19444. isLikes: isLikes,
  19445. commentJson: commentJson,
  19446. likeJson: likeJson
  19447. };
  19448. _worksStudent[i].push(_work);
  19449. _worksStudent2[i].push(_work);
  19450. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19451. } else if (
  19452. a[i].tool[0] == 57 &&
  19453. b[j].atool == 57 &&
  19454. b[j].type == 15
  19455. ) {
  19456. let _work = {
  19457. userid: b[j].userid,
  19458. ateacher: b[j].ateacher,
  19459. wid: b[j].id,
  19460. works: b[j].content,
  19461. sName: b[j].name ? b[j].name : b[j].userid,
  19462. type: 15,
  19463. ttype: b[j].ttype,
  19464. time: b[j].time,
  19465. score: b[j].score,
  19466. img: b[j].img,
  19467. likesCount: likesCount,
  19468. commentCount: commentCount,
  19469. isLikes: isLikes,
  19470. commentJson: commentJson,
  19471. likeJson: likeJson
  19472. };
  19473. _worksStudent[i].push(_work);
  19474. _worksStudent2[i].push(_work);
  19475. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19476. }
  19477. }
  19478. }
  19479. if (_worksStudent[i] && _worksStudent[i].length) {
  19480. _worksStudent[i] = _worksStudent[i].sort(function(a, b) {
  19481. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19482. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19483. var scoreA = parseFloat(jscoreA);
  19484. var scoreB = parseFloat(jscoreB);
  19485. if (scoreA == scoreB) {
  19486. return b.likesCount - a.likesCount;
  19487. }
  19488. return scoreB - scoreA;
  19489. });
  19490. if (this.isGroup) {
  19491. for (
  19492. var groupI = 0;
  19493. groupI < this.courseGroup.group.length;
  19494. groupI++
  19495. ) {
  19496. this.courseGroup.group[groupI].works[
  19497. i
  19498. ] = this.courseGroup.group[groupI].works[i].sort(function(
  19499. a,
  19500. b
  19501. ) {
  19502. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19503. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19504. var scoreA = parseFloat(jscoreA);
  19505. var scoreB = parseFloat(jscoreB);
  19506. if (scoreA == scoreB) {
  19507. return b.likesCount - a.likesCount;
  19508. }
  19509. return scoreB - scoreA;
  19510. });
  19511. }
  19512. }
  19513. }
  19514. }
  19515. this.timeWorkList = _worksStudent2;
  19516. for (var i = 0; i < a.length; i++) {
  19517. for (var j = 0; j < b.length; j++) {
  19518. var data = b[j];
  19519. if (i == b[j].tool) {
  19520. if (data.type == 2 || data.type == 8) {
  19521. for (var z = 0; z < this.checkJson[i].length; z++) {
  19522. this.checkJson[i][z].checkPerent = [];
  19523. this.checkJson[i][z].right = Math.round(
  19524. (this.checkJson[i][z].rightPerson.length /
  19525. parseInt(_worksStudent[i].length)) *
  19526. 100
  19527. );
  19528. let aaaa = this.checkJson[i][z];
  19529. for (
  19530. var k = 0;
  19531. k < this.checkJson[i][z].checkCount.length;
  19532. k++
  19533. ) {
  19534. this.checkJson[i][z].checkPerent.push(
  19535. Math.round(
  19536. (this.checkJson[i][z].checkCount[k] /
  19537. parseInt(_worksStudent[i].length)) *
  19538. 100
  19539. )
  19540. );
  19541. }
  19542. }
  19543. } else if (data.type == 9) {
  19544. for (var z = 0; z < this.checkJson[i].length; z++) {
  19545. this.checkJson[i][z].checkPerent = [];
  19546. this.checkJson[i][z].right = Math.round(
  19547. (this.checkJson[i][z].rightPerson.length /
  19548. this.checkJson[i][z].checkPerson.length) *
  19549. 100
  19550. );
  19551. }
  19552. }
  19553. }
  19554. }
  19555. }
  19556. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  19557. this.joinGroup(gindex);
  19558. }
  19559. this.worksStudent = _worksStudent;
  19560. this.selectWorksStudent();
  19561. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  19562. this.$nextTick(() => {
  19563. setTimeout(() => {
  19564. setTimeout(() => {
  19565. this.panToolHeight("tool-" + ci);
  19566. }, 500);
  19567. }, 0);
  19568. });
  19569. }
  19570. this.selectSWorksLoading = false
  19571. })
  19572. .catch(err => {
  19573. this.selectSWorksLoading = false
  19574. console.error(err);
  19575. });
  19576. },
  19577. pngToWhiteBg(file) {
  19578. const _file = file;
  19579. let read = new FileReader();
  19580. read.readAsDataURL(file); // 文件转base64
  19581. return new Promise((resolve, reject) => {
  19582. read.onload = (e) => {
  19583. let img = new Image();
  19584. img.src = e.target.result;
  19585. img.onload = async () => {
  19586. // 生成canvas
  19587. let canvas = document.createElement("canvas");
  19588. let context = canvas.getContext("2d");
  19589. // 绘制图片到canvas上
  19590. canvas.width = img.width;
  19591. canvas.height = img.height;
  19592. // 在canvas绘制前填充白色背景
  19593. context.fillStyle = "#fff";
  19594. context.fillRect(0, 0, canvas.width, canvas.height);
  19595. context.drawImage(img, 0, 0);
  19596. let base64 = canvas.toDataURL(file["type"], 1);
  19597. let newFile = this.dataUrlToFile(base64, _file);
  19598. resolve(newFile);
  19599. };
  19600. };
  19601. });
  19602. },
  19603. dataUrlToFile(dataurl, file) {
  19604. let arr = dataurl.split(","),
  19605. mime = arr[0].match(/:(.*?);/)[1],
  19606. bstr = atob(arr[1]),
  19607. n = bstr.length,
  19608. u8arr = new Uint8Array(n);
  19609. while (n--) {
  19610. u8arr[n] = bstr.charCodeAt(n);
  19611. }
  19612. // return new Blob([u8arr], { type: mime });
  19613. return new File([new Blob([u8arr], { type: mime })], file.name, {
  19614. type: mime,
  19615. });
  19616. },
  19617. async beforeUpload1(event, type, i) {
  19618. // this.$message.success('进入上传')
  19619. var file = "";
  19620. if (type == 5) {
  19621. file = event;
  19622. } else {
  19623. file = event.target.files[0];
  19624. }
  19625. var credentials = {
  19626. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19627. secretAccessKey: "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",
  19628. }; //秘钥形式的登录上传
  19629. window.AWS.config.update(credentials);
  19630. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19631. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  19632. var _this = this;
  19633. _this.progress = 0;
  19634. _this.proVisible = true;
  19635. _this.isFinishSize = 0;
  19636. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  19637. var b = [
  19638. "DOC",
  19639. "DOCX",
  19640. "DOCM",
  19641. "DOTM",
  19642. "DOTX",
  19643. "PPTX",
  19644. "PPSX",
  19645. "PPT",
  19646. "PPS",
  19647. "PPTM",
  19648. "POTM",
  19649. "PPAM",
  19650. "POTX",
  19651. "PPSM",
  19652. ];
  19653. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  19654. var photoA = [
  19655. "BMP",
  19656. "GIF",
  19657. "PNG",
  19658. "JPEG",
  19659. "JPEG",
  19660. "JPG",
  19661. "TIF",
  19662. "PCX",
  19663. "TGA",
  19664. "EXIF",
  19665. "FPX",
  19666. "SVG",
  19667. "APNG",
  19668. ];
  19669. // if (
  19670. // b.indexOf(
  19671. // file.name
  19672. // .split(".")
  19673. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19674. // ) != -1
  19675. // ) {
  19676. // if (file.size / 1024 / 1024 > 10) {
  19677. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  19678. // return;
  19679. // }
  19680. // } else if (
  19681. // excelA.indexOf(
  19682. // file.name
  19683. // .split(".")
  19684. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19685. // ) != "-1"
  19686. // ) {
  19687. // if (file.size / 1024 / 1024 > 5) {
  19688. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  19689. // return;
  19690. // }
  19691. // }
  19692. if (
  19693. photoA.indexOf(
  19694. file.name
  19695. .split(".")
  19696. [file.name.split(".").length - 1].toLocaleUpperCase()
  19697. ) != -1 &&
  19698. type != 4
  19699. ) {
  19700. // const blob = await imageConversion.compress(file, 0.8)
  19701. file = await this.pngToWhiteBg(file);
  19702. const blob = await imageConversion.compressAccurately(file, 256);
  19703. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  19704. file = new File([blob], file.name, { type: file.type });
  19705. }
  19706. if (file) {
  19707. var params = {
  19708. Key:
  19709. file.name.split(".")[0] +
  19710. new Date().getTime() +
  19711. "." +
  19712. file.name.split(".")[file.name.split(".").length - 1],
  19713. ContentType: file.type,
  19714. Body: file,
  19715. "Access-Control-Allow-Credentials": "*",
  19716. ACL: "public-read",
  19717. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  19718. var options = {
  19719. // partSize: 2048 * 1024 * 1024,
  19720. partSize: 1024 * 1024 * 1024,
  19721. queueSize: 2,
  19722. leavePartsOnError: true,
  19723. };
  19724. bucket
  19725. .upload(params, options)
  19726. .on("httpUploadProgress", function (evt) {
  19727. //这里可以写进度条
  19728. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  19729. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  19730. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  19731. })
  19732. .send(function (err, data) {
  19733. _this.progress = 100;
  19734. _this.isFinishSize = _this.isAllSize;
  19735. setTimeout(() => {
  19736. _this.proVisible = false;
  19737. }, 1000);
  19738. if (err) {
  19739. var a = _this.$refs.upload1.uploadFiles;
  19740. a.splice(a.length - 1, a.length);
  19741. _this.$message.error(this.lang.ssUploadFailed);
  19742. } else {
  19743. // _this.$message.success('上传成功')
  19744. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19745. var c = [
  19746. "AVI",
  19747. "NAVI",
  19748. "MPEG",
  19749. "ASF",
  19750. "MOV",
  19751. "WMV",
  19752. "3GP",
  19753. "RM",
  19754. "RMVB",
  19755. "FLV",
  19756. "F4V",
  19757. "H.264",
  19758. "H.265",
  19759. "REAL VIDEO",
  19760. "MKV",
  19761. "WebM",
  19762. "HDDVD",
  19763. "MP4",
  19764. "MPG",
  19765. "M4V",
  19766. "MGV",
  19767. "OGV",
  19768. "QTM",
  19769. "STR",
  19770. "AMC",
  19771. "DVX",
  19772. "EVO",
  19773. "DAT",
  19774. "OGG",
  19775. "OGM",
  19776. ];
  19777. if (type == 1) {
  19778. _this.studyJuri[0].cover.push({
  19779. name: file.name,
  19780. url: data.Location,
  19781. uid: file.uid,
  19782. });
  19783. if (
  19784. c.indexOf(
  19785. _this.studyJuri[0].cover[0].url
  19786. .split(".")
  19787. [
  19788. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19789. ].toLocaleUpperCase()
  19790. ) != -1
  19791. ) {
  19792. _this.fileType = 2;
  19793. } else if (
  19794. b.indexOf(
  19795. _this.studyJuri[0].cover[0].url
  19796. .split(".")
  19797. [
  19798. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19799. ].toLocaleUpperCase()
  19800. ) != -1
  19801. ) {
  19802. _this.fileType = 1;
  19803. } else if (
  19804. photoA.indexOf(
  19805. _this.studyJuri[0].cover[0].url
  19806. .split(".")
  19807. [
  19808. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19809. ].toLocaleUpperCase()
  19810. ) != -1
  19811. ) {
  19812. _this.fileType = 0;
  19813. } else {
  19814. _this.fileType = 3;
  19815. }
  19816. _this.imgChange(null, null, type);
  19817. } else if (type == 2) {
  19818. _this.upToolImg = data.Location;
  19819. _this.imgChange(null, null, type);
  19820. _this.addCourseWorks(i);
  19821. } else if (type == 4) {
  19822. _this.addPz("3", data.Location);
  19823. } else if (type == 5) {
  19824. _this.addImgDrawImG(data.Location);
  19825. } else if (type == 6) {
  19826. var _ftype = 1;
  19827. if (
  19828. c.indexOf(
  19829. data.Location.split(".")[
  19830. data.Location.split(".").length - 1
  19831. ].toLocaleUpperCase()
  19832. ) != -1
  19833. ) {
  19834. _ftype = 5;
  19835. } else if (
  19836. b.indexOf(
  19837. data.Location.split(".")[
  19838. data.Location.split(".").length - 1
  19839. ].toLocaleUpperCase()
  19840. ) != -1
  19841. ) {
  19842. _ftype = 4;
  19843. } else {
  19844. _ftype = 1;
  19845. }
  19846. _this.plworkFile.push({
  19847. name: file.name,
  19848. url: data.Location,
  19849. uid: file.uid,
  19850. fileType: _ftype,
  19851. username:
  19852. _this.plworkFile.length > 10
  19853. ? _this.plworkFile.length + 1
  19854. : "0" + (_this.plworkFile.length + 1),
  19855. });
  19856. } else if (type == 7) {
  19857. _this.addCourseWorksGong(i, data.Location, 32);
  19858. } else if (type == 8) {
  19859. _this.addCourseWorksGong(i, data.Location, 57);
  19860. }
  19861. _this.imgChange(null, null, type);
  19862. console.log(data.Location);
  19863. // _this.$message.success('上传成功'+data.Location)
  19864. }
  19865. });
  19866. }
  19867. },
  19868. async beforeUpload3(event, type, i) {
  19869. // this.$message.success('进入上传')
  19870. let file = "";
  19871. let cfindex2 = 0;
  19872. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  19873. file = event.target.files[cfindex];
  19874. var credentials = {
  19875. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19876. secretAccessKey: "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",
  19877. }; //秘钥形式的登录上传
  19878. window.AWS.config.update(credentials);
  19879. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19880. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  19881. var _this = this;
  19882. // _this.progress = 0;
  19883. _this.proVisible2 = true;
  19884. var b = [
  19885. "DOC",
  19886. "DOCX",
  19887. "DOCM",
  19888. "DOTM",
  19889. "DOTX",
  19890. "PPTX",
  19891. "PPSX",
  19892. "PPT",
  19893. "PPS",
  19894. "PPTM",
  19895. "POTM",
  19896. "PPAM",
  19897. "POTX",
  19898. "PPSM",
  19899. ];
  19900. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  19901. var photoA = [
  19902. "BMP",
  19903. "GIF",
  19904. "PNG",
  19905. "JPEG",
  19906. "JPG",
  19907. "TIF",
  19908. "PCX",
  19909. "TGA",
  19910. "EXIF",
  19911. "FPX",
  19912. "SVG",
  19913. "APNG",
  19914. ];
  19915. if (
  19916. photoA.indexOf(
  19917. file.name
  19918. .split(".")
  19919. [file.name.split(".").length - 1].toLocaleUpperCase()
  19920. ) != -1 &&
  19921. type != 4
  19922. ) {
  19923. // const blob = await imageConversion.compress(file, 0.8)
  19924. file = await this.pngToWhiteBg(file);
  19925. const blob = await imageConversion.compressAccurately(file, 256);
  19926. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  19927. file = new File([blob], file.name, { type: file.type });
  19928. }
  19929. if (file) {
  19930. var params = {
  19931. Key:
  19932. file.name.split(".")[0] +
  19933. new Date().getTime() +
  19934. "." +
  19935. file.name.split(".")[file.name.split(".").length - 1],
  19936. ContentType: file.type,
  19937. Body: file,
  19938. "Access-Control-Allow-Credentials": "*",
  19939. ACL: "public-read",
  19940. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  19941. var options = {
  19942. // partSize: 2048 * 1024 * 1024,
  19943. partSize: 1024 * 1024 * 1024,
  19944. queueSize: 2,
  19945. leavePartsOnError: true,
  19946. };
  19947. bucket
  19948. .upload(params, options)
  19949. .on("httpUploadProgress", function (evt) {
  19950. //这里可以写进度条
  19951. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  19952. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  19953. })
  19954. .send(function (err, data) {
  19955. // _this.progress = 100;
  19956. cfindex2++;
  19957. setTimeout(() => {
  19958. if (
  19959. cfindex2 == event.target.files.length - 1 ||
  19960. cfindex2 > event.target.files.length - 1
  19961. ) {
  19962. _this.proVisible2 = false;
  19963. }
  19964. }, 1000);
  19965. if (err) {
  19966. var a = _this.$refs.upload1.uploadFiles;
  19967. a.splice(a.length - 1, a.length);
  19968. _this.$message.error(this.lang.ssUploadFailed);
  19969. } else {
  19970. // _this.$message.success('上传成功')
  19971. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19972. var c = [
  19973. "AVI",
  19974. "NAVI",
  19975. "MPEG",
  19976. "ASF",
  19977. "MOV",
  19978. "WMV",
  19979. "3GP",
  19980. "RM",
  19981. "RMVB",
  19982. "FLV",
  19983. "F4V",
  19984. "H.264",
  19985. "H.265",
  19986. "REAL VIDEO",
  19987. "MKV",
  19988. "WebM",
  19989. "HDDVD",
  19990. "MP4",
  19991. "MPG",
  19992. "M4V",
  19993. "MGV",
  19994. "OGV",
  19995. "QTM",
  19996. "STR",
  19997. "AMC",
  19998. "DVX",
  19999. "EVO",
  20000. "DAT",
  20001. "OGG",
  20002. "OGM",
  20003. ];
  20004. if (type == 1) {
  20005. _this.studyJuri[0].cover.push({
  20006. name: file.name,
  20007. url: data.Location,
  20008. uid: file.uid,
  20009. });
  20010. if (
  20011. c.indexOf(
  20012. _this.studyJuri[0].cover[0].url
  20013. .split(".")
  20014. [
  20015. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20016. ].toLocaleUpperCase()
  20017. ) != -1
  20018. ) {
  20019. _this.fileType = 2;
  20020. } else if (
  20021. b.indexOf(
  20022. _this.studyJuri[0].cover[0].url
  20023. .split(".")
  20024. [
  20025. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20026. ].toLocaleUpperCase()
  20027. ) != -1
  20028. ) {
  20029. _this.fileType = 1;
  20030. } else {
  20031. _this.fileType = 0;
  20032. }
  20033. _this.imgChange(null, null, type);
  20034. } else if (type == 2) {
  20035. _this.upToolImg = data.Location;
  20036. _this.imgChange(null, null, type);
  20037. _this.addCourseWorks(i);
  20038. } else if (type == 4) {
  20039. _this.addPz("3", data.Location);
  20040. } else if (type == 5) {
  20041. _this.addImgDrawImG(data.Location);
  20042. } else if (type == 6) {
  20043. var _ftype = 1;
  20044. if (
  20045. c.indexOf(
  20046. data.Location.split(".")[
  20047. data.Location.split(".").length - 1
  20048. ].toLocaleUpperCase()
  20049. ) != -1
  20050. ) {
  20051. _ftype = 5;
  20052. } else if (
  20053. b.indexOf(
  20054. data.Location.split(".")[
  20055. data.Location.split(".").length - 1
  20056. ].toLocaleUpperCase()
  20057. ) != -1
  20058. ) {
  20059. _ftype = 4;
  20060. } else {
  20061. _ftype = 1;
  20062. }
  20063. _this.plworkFile.push({
  20064. name: file.name,
  20065. url: data.Location,
  20066. uid: file.uid,
  20067. fileType: _ftype,
  20068. username:
  20069. _this.plworkFile.length + 1 > 9
  20070. ? _this.plworkFile.length + 1
  20071. : "0" + (_this.plworkFile.length + 1),
  20072. });
  20073. }
  20074. _this.imgChange(null, null, type);
  20075. console.log(data.Location);
  20076. // _this.$message.success('上传成功'+data.Location)
  20077. }
  20078. });
  20079. }
  20080. }
  20081. },
  20082. beforeUpload2(event, type) {
  20083. var file = event.target.files[0];
  20084. var credentials = {
  20085. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20086. secretAccessKey: "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",
  20087. }; //秘钥形式的登录上传
  20088. window.AWS.config.update(credentials);
  20089. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20090. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20091. var _this = this;
  20092. _this.progress = 0;
  20093. _this.proVisible = true;
  20094. if (file) {
  20095. var params = {
  20096. Key:
  20097. file.name.split(".")[0] +
  20098. new Date().getTime() +
  20099. "." +
  20100. file.name.split(".")[file.name.split(".").length - 1],
  20101. ContentType: file.type,
  20102. Body: file,
  20103. "Access-Control-Allow-Credentials": "*",
  20104. ACL: "public-read",
  20105. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20106. var options = {
  20107. partSize: 2048 * 1024 * 1024,
  20108. queueSize: 2,
  20109. leavePartsOnError: true,
  20110. };
  20111. bucket
  20112. .upload(params, options)
  20113. .on("httpUploadProgress", function (evt) {
  20114. //这里可以写进度条
  20115. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20116. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20117. })
  20118. .send(function (err, data) {
  20119. _this.progress = 100;
  20120. setTimeout(() => {
  20121. _this.proVisible = false;
  20122. }, 1000);
  20123. if (err) {
  20124. var a = _this.$refs.upload1.uploadFiles;
  20125. a.splice(a.length - 1, a.length);
  20126. _this.$message.error(this.lang.ssUploadFailed);
  20127. } else {
  20128. if (type == 2) {
  20129. _this.studyJuri[0].upVedio.push({
  20130. name: file.name,
  20131. url: data.Location,
  20132. uid: file.uid,
  20133. });
  20134. _this.imgChange(null, null, type);
  20135. } else if (type == 3) {
  20136. _this.studyJuri[0].upFile.push({
  20137. name: file.name,
  20138. url: data.Location,
  20139. uid: file.uid,
  20140. });
  20141. _this.imgChange(null, null, type);
  20142. }
  20143. console.log(data.Location);
  20144. }
  20145. });
  20146. }
  20147. },
  20148. allScrell() {
  20149. window.topU.postMessage({ allScreen: this.screenType }, "*");
  20150. },
  20151. nextOrpreSteps(t) {
  20152. if (this.IsFollow && this.tType == 2) {
  20153. this.$message.error(this.lang.ssFollowModeOn);
  20154. return;
  20155. }
  20156. var b = this.chapInfoList.length - 1;
  20157. if (t == 0) {
  20158. if (this.courseType == 0) {
  20159. if (this.taskCount == 0) {
  20160. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  20161. if (this.IsLookOpen) {
  20162. if (
  20163. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  20164. ) {
  20165. if (
  20166. this.courseDetail.userid != this.userid &&
  20167. (!this.courseDetail.course_teacher ||
  20168. (this.courseDetail.course_teacher &&
  20169. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20170. ) {
  20171. this.$message.error(this.lang.ssTaskLocked);
  20172. } else {
  20173. this.$message.error(this.lang.ssPrevTaskLocked);
  20174. }
  20175. return;
  20176. }
  20177. }
  20178. this.navList[this.courseType].isOpen = false;
  20179. this.courseType = b;
  20180. this.taskCount =
  20181. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20182. .length - 1;
  20183. this.navList[this.courseType].isOpen = true;
  20184. } else {
  20185. this.taskCount--;
  20186. }
  20187. } else {
  20188. if (this.taskCount == 0) {
  20189. this.navList[this.courseType].isOpen = false;
  20190. this.courseType--;
  20191. this.taskCount =
  20192. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20193. .length - 1;
  20194. this.navList[this.courseType].isOpen = true;
  20195. } else {
  20196. this.taskCount--;
  20197. }
  20198. }
  20199. } else {
  20200. if (this.courseType == b) {
  20201. if (
  20202. this.taskCount ==
  20203. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20204. 1
  20205. ) {
  20206. this.navList[this.courseType].isOpen = false;
  20207. this.courseType = 0;
  20208. this.taskCount = 0;
  20209. this.navList[this.courseType].isOpen = true;
  20210. } else {
  20211. var bbb = parseInt(this.taskCount) + 1;
  20212. if (
  20213. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20214. .isLook &&
  20215. this.courseDetail.userid != this.userid &&
  20216. (!this.courseDetail.course_teacher ||
  20217. (this.courseDetail.course_teacher &&
  20218. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20219. this.IsLookOpen
  20220. ) {
  20221. this.$message.error(this.lang.ssTaskLocked);
  20222. return;
  20223. }
  20224. this.taskCount++;
  20225. if (this.IsLookOpen) {
  20226. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20227. this.taskCount
  20228. ].isLook = true;
  20229. this.addCourseState(3);
  20230. }
  20231. }
  20232. } else {
  20233. if (
  20234. this.taskCount ==
  20235. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20236. 1
  20237. ) {
  20238. var bbb = parseInt(this.courseType) + 1;
  20239. if (
  20240. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  20241. this.courseDetail.userid != this.userid &&
  20242. (!this.courseDetail.course_teacher ||
  20243. (this.courseDetail.course_teacher &&
  20244. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20245. this.IsLookOpen
  20246. ) {
  20247. this.$message.error(this.lang.ssTaskLocked);
  20248. return;
  20249. }
  20250. this.navList[this.courseType].isOpen = false;
  20251. this.courseType++;
  20252. this.taskCount = 0;
  20253. this.navList[this.courseType].isOpen = true;
  20254. } else {
  20255. var bbb = parseInt(this.taskCount) + 1;
  20256. if (
  20257. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20258. .isLook &&
  20259. this.courseDetail.userid != this.userid &&
  20260. (!this.courseDetail.course_teacher ||
  20261. (this.courseDetail.course_teacher &&
  20262. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20263. this.IsLookOpen
  20264. ) {
  20265. this.$message.error(this.lang.ssTaskLocked);
  20266. return;
  20267. }
  20268. this.taskCount++;
  20269. }
  20270. if (this.IsLookOpen) {
  20271. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20272. this.taskCount
  20273. ].isLook = true;
  20274. this.addCourseState(3);
  20275. }
  20276. }
  20277. // if (
  20278. // this.taskCount ==
  20279. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  20280. // ) {
  20281. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  20282. // } else {
  20283. // this.taskCount++;
  20284. // }
  20285. }
  20286. document.scrollingElement.scrollTop = 0;
  20287. // this.showType = 7;
  20288. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20289. // if (this.vedio[this.taskCount].length > 0) {
  20290. // var a =
  20291. // document.getElementsByClassName("box_course")[this.taskCount]
  20292. // .offsetHeight;
  20293. // document.getElementsByClassName("vedioList")[
  20294. // this.taskCount
  20295. // ].style.height = a + "px";
  20296. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  20297. // a - 40 + "px";
  20298. // }
  20299. this.isNoHomeWork = false;
  20300. (this.studyJuri = [
  20301. {
  20302. content: "",
  20303. cover: [],
  20304. upVedio: [],
  20305. upFile: [],
  20306. },
  20307. ]),
  20308. (this.radio = []);
  20309. this.isClickNav = "";
  20310. this.selectPz();
  20311. this.getHomeWork();
  20312. this.getCourseDetail(2);
  20313. this.$forceUpdate();
  20314. if ((this.courseDetail.userid == this.userid ||
  20315. (this.courseDetail.course_teacher &&
  20316. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  20317. this.setCTask();
  20318. }
  20319. },
  20320. openTask(s, n, i) {
  20321. if (this.IsFollow && this.tType == 2) {
  20322. this.$message.error(this.lang.ssFollowModeOn);
  20323. return;
  20324. }
  20325. if (this.IsLookOpen &&
  20326. this.courseDetail.userid != this.userid &&
  20327. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  20328. if (
  20329. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  20330. this.courseDetail.userid != this.userid &&
  20331. (!this.courseDetail.course_teacher ||
  20332. (this.courseDetail.course_teacher &&
  20333. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20334. ) {
  20335. this.$message.error(this.lang.ssTaskLocked);
  20336. return;
  20337. }
  20338. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  20339. if (
  20340. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  20341. .isLook
  20342. ) {
  20343. this.$message.error(this.lang.ssPrevTaskLocked);
  20344. return;
  20345. }
  20346. } else if (s > this.courseType) {
  20347. if (n > 0) {
  20348. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  20349. this.$message.error(this.lang.ssPrevTaskLocked);
  20350. return;
  20351. }
  20352. } else {
  20353. if (
  20354. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  20355. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  20356. ].isLook
  20357. ) {
  20358. this.$message.error(this.lang.ssPrevTaskLocked);
  20359. return;
  20360. }
  20361. }
  20362. }
  20363. }
  20364. if (this.navList[s].task[n].isOpen == true) {
  20365. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  20366. return;
  20367. }
  20368. let flag = this.courseType==s;
  20369. this.courseType = s;
  20370. this.navId = i;
  20371. this.taskCount = n;
  20372. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  20373. this.navList[this.courseType].task[this.taskCount].isOpen =
  20374. !this.navList[this.courseType].task[this.taskCount].isOpen;
  20375. if (this.IsLookOpen) {
  20376. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20377. this.taskCount
  20378. ].isLook = true;
  20379. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  20380. this.addCourseState(3,yym);
  20381. }
  20382. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  20383. this.isCloseList[ci].isClose = 0;
  20384. this.isCloseList[ci].isCloseBoolean = false;
  20385. this.$nextTick(()=>{
  20386. setTimeout(()=>{
  20387. setTimeout(()=>{
  20388. this.panToolHeight('tool-'+ci);
  20389. }, 0)
  20390. }, 0)
  20391. })
  20392. }
  20393. // this.showType = 7;
  20394. this.isNoHomeWork = false;
  20395. (this.studyJuri = [
  20396. {
  20397. content: "",
  20398. cover: [],
  20399. upVedio: [],
  20400. upFile: [],
  20401. },
  20402. ]),
  20403. (this.radio = []);
  20404. document.scrollingElement.scrollTop = 0;
  20405. // setTimeout(() => {
  20406. // let a = document.getElementById(i);
  20407. // if (a.offsetTop - 110 == 0) {
  20408. // window.scrollTo(0, 0);
  20409. // } else {
  20410. // window.scrollTo(0, a.offsetTop);
  20411. // }
  20412. // }, 0);
  20413. for (var z = 0; z < this.navList.length; z++) {
  20414. for (var q = 0; q < this.navList[z].task.length; q++) {
  20415. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  20416. this.navList[z].task[q].tool[w].isTool = false;
  20417. }
  20418. }
  20419. }
  20420. this.selectPz();
  20421. this.getHomeWork();
  20422. this.getCourseDetail(2);
  20423. if(flag){
  20424. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  20425. }else{
  20426. 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>`)
  20427. }
  20428. if ((this.courseDetail.userid == this.userid ||
  20429. (this.courseDetail.course_teacher &&
  20430. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  20431. this.setCTask();
  20432. }
  20433. },
  20434. get(i) {
  20435. if (this.IsFollow && this.tType == 2) {
  20436. this.$message.error(this.lang.ssFollowModeOn);
  20437. return;
  20438. }
  20439. // for(var k=0;k<this.navList.length;k++){
  20440. // this.navList[k].isOpen = false;
  20441. // }
  20442. // this.navList[i].isOpen = true;
  20443. this.navList[i].isOpen = !this.navList[i].isOpen;
  20444. if (this.navList[i].isOpen) {
  20445. this.openTask(i, 0, i + "-0");
  20446. }
  20447. },
  20448. addQuestion() {
  20449. this.answerList.push({
  20450. answerTitle: this.answerQ,
  20451. answer: this.questionAnswer,
  20452. });
  20453. let params = [
  20454. {
  20455. uid: this.userid,
  20456. cid: this.id,
  20457. stage: this.courseType,
  20458. task: this.taskCount,
  20459. tool: this.toolindex,
  20460. content: JSON.stringify(this.answerList),
  20461. type: 3,
  20462. },
  20463. ];
  20464. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  20465. this.homeWorkLoading = true
  20466. this.ajax
  20467. .post(this.$store.state.api + "addCourseWorks", params)
  20468. .then((res) => {
  20469. this.$message({
  20470. message: this.lang.ssSubmitSuccess,
  20471. type: "success",
  20472. });
  20473. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  20474. setTimeout(() => {
  20475. this.homeWorkLoading = false
  20476. }, 500);
  20477. this.answerList = [];
  20478. this.answerDialogVisible = false;
  20479. this.selectStudent();
  20480. this.selectSWorks();
  20481. this.selectSLook();
  20482. })
  20483. .catch((err) => {
  20484. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  20485. setTimeout(() => {
  20486. this.homeWorkLoading = false
  20487. }, 500);
  20488. this.$message.error(this.lang.ssSubmitFailed);
  20489. console.error(err);
  20490. });
  20491. },
  20492. addQuestionTeacher() {
  20493. this.answerList.push({
  20494. answerTitle: this.answerQ,
  20495. answer: this.questionAnswer,
  20496. });
  20497. let params = [
  20498. {
  20499. uid: this.sStudent.userid,
  20500. cid: this.id,
  20501. stage: this.courseType,
  20502. task: this.taskCount,
  20503. tool: this.toolindex,
  20504. content: JSON.stringify(this.answerList),
  20505. type: 3,
  20506. ateacher: this.userid,
  20507. },
  20508. ];
  20509. this.ajax
  20510. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  20511. .then((res) => {
  20512. this.$message({
  20513. message: this.lang.ssSubmitSuccess,
  20514. type: "success",
  20515. });
  20516. this.answerList = [];
  20517. this.questionAnswer = "";
  20518. this.answerDialogVisibleTeacher = false;
  20519. this.selectStudent();
  20520. this.selectSWorks();
  20521. this.selectSLook();
  20522. })
  20523. .catch((err) => {
  20524. this.$message.error(this.lang.ssSubmitFailed);
  20525. console.error(err);
  20526. });
  20527. },
  20528. refreshCourse() {
  20529. // window.location.reload();
  20530. this.navList = [];
  20531. this.getCourseDetail(1);
  20532. },
  20533. getCourseDetail(type, gindex) {
  20534. let loading;
  20535. if (type != 2) {
  20536. loading = this.$loading.service({
  20537. background: "rgba(255, 255, 255, 0.7)",
  20538. target: document.querySelector(".student_table"),
  20539. });
  20540. }
  20541. this.downLoading = false
  20542. // this.navList[0].isOpen = false;
  20543. // this.navList[this.courseType].isOpen = true;
  20544. // this.courseType = this.courseTypeLine;
  20545. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20546. let params = {
  20547. courseId: this.id,
  20548. };
  20549. this.ajax
  20550. .get(this.$store.state.api + "selectCourseDetail3", params)
  20551. .then((res) => {
  20552. if ((this.courseDetail.userid == this.userid ||
  20553. (this.courseDetail.course_teacher &&
  20554. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  20555. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  20556. }
  20557. if (type != 2) {
  20558. loading.close();
  20559. if (
  20560. this.courseType >
  20561. JSON.parse(res.data[0][0].chapters).length - 1
  20562. ) {
  20563. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  20564. }
  20565. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20566. .chapterInfo[0].taskJson;
  20567. var b = [
  20568. "AVI",
  20569. "NAVI",
  20570. "MPEG",
  20571. "ASF",
  20572. "MOV",
  20573. "WMV",
  20574. "3GP",
  20575. "RM",
  20576. "RMVB",
  20577. "FLV",
  20578. "F4V",
  20579. "H.264",
  20580. "H.265",
  20581. "REAL VIDEO",
  20582. "MKV",
  20583. "WebM",
  20584. "HDDVD",
  20585. "MP4",
  20586. "MPG",
  20587. "M4V",
  20588. "MGV",
  20589. "OGV",
  20590. "QTM",
  20591. "STR",
  20592. "AMC",
  20593. "DVX",
  20594. "EVO",
  20595. "DAT",
  20596. "OGG",
  20597. "OGM",
  20598. "MP3",
  20599. ];
  20600. let _chapterData = [];
  20601. for (var i = 0; i < a.length; i++) {
  20602. var c = a[i].chapterData;
  20603. this.vedio[i] = [];
  20604. this.textList[i] = [];
  20605. this.lineList[i] = [];
  20606. this.chapToolList[i] = [];
  20607. this.file[i] = [];
  20608. this.fileC[i] = [];
  20609. _chapterData[i] = c.filter((el) => {
  20610. return el.type != 12;
  20611. });
  20612. this.fileC[i] = c.filter((el) => {
  20613. return el.type == 12;
  20614. });
  20615. if (this.tType == 2) {
  20616. if (this.fileC[i].length) {
  20617. let yym1 = this.fileC[i].filter(e=>{
  20618. if(!converter(e.name).includes(converter(this.lang.ssTeachingPlan))){
  20619. return e
  20620. }
  20621. })
  20622. this.fileC[i] = yym1
  20623. }
  20624. }
  20625. // else if (c[j].type == 12) {
  20626. // this.fileC[i].push(c[j]);
  20627. // }
  20628. for (var j = 0; j < c.length; j++) {
  20629. if (c[j].type == 7) {
  20630. this.chapToolList[i].push(c[j]);
  20631. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  20632. this.lineList[i].push(c[j]);
  20633. } else if (c[j].type == 6) {
  20634. this.textList[i].push(c[j]);
  20635. } else {
  20636. if (
  20637. b.indexOf(
  20638. c[j].url
  20639. .split(".")
  20640. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  20641. ) != -1
  20642. ) {
  20643. this.vedio[i].push(c[j]);
  20644. } else {
  20645. this.file[i].push(c[j]);
  20646. }
  20647. }
  20648. }
  20649. var d = JSON.parse(JSON.stringify(this.playerOptions));
  20650. d.sources[0].src =
  20651. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  20652. this.playerO[i] = d;
  20653. }
  20654. this.courseDetail = res.data[0][0];
  20655. if(this.tType == 2){
  20656. this.tcid = this.arrayToArray(
  20657. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  20658. this.classId ? this.classId.split(",") : []
  20659. ).join(",");
  20660. }else{
  20661. this.tcid = this.arrayToArray(
  20662. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  20663. this.tcid2 ? this.tcid2.split(",") : []
  20664. ).join(",");
  20665. }
  20666. this.evalua = res.data[0][0].evaId;
  20667. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  20668. this.courseType
  20669. ];
  20670. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  20671. if (this.tcid && res.data[1].length) {
  20672. let _inviteA = [];
  20673. for (var ik = 0; ik < res.data[1].length; ik++) {
  20674. _inviteA.push({
  20675. cid: res.data[1][ik].classid,
  20676. ic: res.data[1][ik].code,
  20677. });
  20678. }
  20679. for (var ik = 0; ik < _inviteA.length; ik++) {
  20680. if (
  20681. this.arrayToArray(
  20682. _inviteA[ik].cid.split(","),
  20683. this.tcid.split(",")
  20684. ).length
  20685. ) {
  20686. this.inviteCode = _inviteA[ik].ic;
  20687. break;
  20688. }
  20689. }
  20690. }
  20691. for (var l = 0; l < this.chapInfoList.length; l++) {
  20692. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  20693. for (var m = 0; m < w.length; m++) {
  20694. w[m].id = l + "-" + m;
  20695. }
  20696. }
  20697. let taskCount = 0;
  20698. if (
  20699. _chapterData[taskCount].length &&
  20700. _chapterData[taskCount][0].type == 2
  20701. ) {
  20702. this.showType = 0;
  20703. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  20704. } else {
  20705. if (_chapterData[taskCount].length > 0) {
  20706. let _url = _chapterData[taskCount][0].url;
  20707. if (
  20708. _chapterData[taskCount][0].type == 8 ||
  20709. _chapterData[taskCount][0].type == 14 ||
  20710. _chapterData[taskCount][0].type == 15
  20711. ) {
  20712. this.showType = 2;
  20713. if (
  20714. _url.indexOf("https://") == -1 &&
  20715. _url.indexOf("http://") == -1
  20716. ) {
  20717. _url = "https://" + _url;
  20718. }
  20719. this.pptImgUrl1 = _url;
  20720. } else if (_chapterData[taskCount][0].type == 3) {
  20721. if (
  20722. _url
  20723. .split(".")
  20724. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  20725. ) {
  20726. this.showType = 3;
  20727. this.pptImgUrl1 = _url;
  20728. } else if (
  20729. this.isAssetTypeAnImage(
  20730. _url
  20731. .split(".")
  20732. [_url.split(".").length - 1].toLocaleLowerCase()
  20733. )
  20734. ) {
  20735. this.showType = 4;
  20736. this.pptImgUrl1 = _url;
  20737. } else {
  20738. this.showType = 2;
  20739. this.pptImgUrl1 =
  20740. "https://view.officeapps.live.com/op/view.aspx?src=" +
  20741. encodeURIComponent(_url);
  20742. }
  20743. } else if (_chapterData[taskCount][0].type == 13) {
  20744. this.showType = 4;
  20745. this.pptImgUrl1 = _url;
  20746. } else if (_chapterData[taskCount][0].type == 6) {
  20747. this.showType = 1;
  20748. this.text = this.textList[taskCount][0];
  20749. } else if (_chapterData[taskCount][0].type == 16) {
  20750. this.showType = 16;
  20751. this.pptImgUrl1 = _url;
  20752. } else if (_chapterData[taskCount][0].type == 17) {
  20753. this.showType = 16;
  20754. this.pptImgUrl1 = _url;
  20755. }
  20756. }
  20757. }
  20758. this.isClickNav = 0;
  20759. if (
  20760. !_chapterData[taskCount].length ||
  20761. _chapterData[taskCount][0].type == 12
  20762. ) {
  20763. this.isClickNav = "";
  20764. this.showType = "";
  20765. }
  20766. if (this.tType == 2) {
  20767. _chapterData.forEach((e,i)=>{
  20768. if (e.length) {
  20769. let yym = e.filter(k=>{
  20770. if(!converter(k.name).includes(converter(this.lang.ssTeachingPlan))){
  20771. return k
  20772. }
  20773. })
  20774. _chapterData[i] = yym
  20775. }
  20776. })
  20777. }
  20778. this.vChapterData = _chapterData;
  20779. } else {
  20780. // this.showType = 0;
  20781. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20782. .chapterInfo[0].taskJson;
  20783. var b = [
  20784. "AVI",
  20785. "NAVI",
  20786. "MPEG",
  20787. "ASF",
  20788. "MOV",
  20789. "WMV",
  20790. "3GP",
  20791. "RM",
  20792. "RMVB",
  20793. "FLV",
  20794. "F4V",
  20795. "H.264",
  20796. "H.265",
  20797. "REAL VIDEO",
  20798. "MKV",
  20799. "WebM",
  20800. "HDDVD",
  20801. "MP4",
  20802. "MPG",
  20803. "M4V",
  20804. "MGV",
  20805. "OGV",
  20806. "QTM",
  20807. "STR",
  20808. "AMC",
  20809. "DVX",
  20810. "EVO",
  20811. "DAT",
  20812. "OGG",
  20813. "OGM",
  20814. "MP3",
  20815. ];
  20816. let _chapterData = [];
  20817. for (var i = 0; i < a.length; i++) {
  20818. var c = a[i].chapterData;
  20819. this.vedio[i] = [];
  20820. this.textList[i] = [];
  20821. this.lineList[i] = [];
  20822. this.chapToolList[i] = [];
  20823. this.file[i] = [];
  20824. this.fileC[i] = [];
  20825. _chapterData[i] = c.filter((el) => {
  20826. return el.type != 12;
  20827. });
  20828. this.fileC[i] = c.filter((el) => {
  20829. return el.type == 12;
  20830. });
  20831. if (this.tType == 2) {
  20832. if (this.fileC[i].length) {
  20833. let yym1 = this.fileC[i].filter(e=>{
  20834. if(!converter(e.name).includes(converter(this.lang.ssTeachingPlan))){
  20835. return e
  20836. }
  20837. })
  20838. this.fileC[i] = yym1
  20839. }
  20840. }
  20841. for (var j = 0; j < c.length; j++) {
  20842. if (c[j].type == 7) {
  20843. this.chapToolList[i].push(c[j]);
  20844. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  20845. this.lineList[i].push(c[j]);
  20846. } else if (c[j].type == 6) {
  20847. this.textList[i].push(c[j]);
  20848. } else {
  20849. if (
  20850. b.indexOf(
  20851. c[j].url
  20852. .split(".")
  20853. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  20854. ) != -1
  20855. ) {
  20856. this.vedio[i].push(c[j]);
  20857. } else {
  20858. this.file[i].push(c[j]);
  20859. }
  20860. }
  20861. }
  20862. var d = JSON.parse(JSON.stringify(this.playerOptions));
  20863. d.sources[0].src =
  20864. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  20865. this.playerO[i] = d;
  20866. }
  20867. let taskCount = 0;
  20868. if (
  20869. _chapterData[taskCount].length &&
  20870. _chapterData[taskCount][0].type == 2
  20871. ) {
  20872. // this.showType = 0;
  20873. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  20874. } else {
  20875. if (_chapterData[taskCount].length > 0) {
  20876. let _url = _chapterData[taskCount][0].url;
  20877. if (
  20878. _chapterData[taskCount][0].type == 8 ||
  20879. _chapterData[taskCount][0].type == 14 ||
  20880. _chapterData[taskCount][0].type == 15
  20881. ) {
  20882. // this.showType = 2;
  20883. if (
  20884. _url.indexOf("https://") == -1 &&
  20885. _url.indexOf("http://") == -1
  20886. ) {
  20887. _url = "https://" + _url;
  20888. }
  20889. // this.pptImgUrl1 = _url;
  20890. } else if (_chapterData[taskCount][0].type == 3) {
  20891. if (
  20892. _url
  20893. .split(".")
  20894. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  20895. ) {
  20896. // this.showType = 3;
  20897. // this.pptImgUrl1 = _url;
  20898. } else if (
  20899. this.isAssetTypeAnImage(
  20900. _url
  20901. .split(".")
  20902. [_url.split(".").length - 1].toLocaleLowerCase()
  20903. )
  20904. ) {
  20905. // this.showType = 4;
  20906. // this.pptImgUrl1 = _url;
  20907. } else {
  20908. // this.showType = 2;
  20909. // this.pptImgUrl1 =
  20910. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  20911. // encodeURIComponent(_url);
  20912. }
  20913. } else if (_chapterData[taskCount][0].type == 13) {
  20914. // this.showType = 4;
  20915. // this.pptImgUrl1 = _url;
  20916. } else if (_chapterData[taskCount][0].type == 6) {
  20917. this.showType = 1;
  20918. this.text = this.textList[taskCount][0];
  20919. } else if (_chapterData[taskCount][0].type == 16) {
  20920. this.showType = 16;
  20921. this.pptImgUrl1 = _url;
  20922. } else if (_chapterData[taskCount][0].type == 17) {
  20923. this.showType = 16;
  20924. this.pptImgUrl1 = _url;
  20925. }
  20926. }
  20927. }
  20928. this.isClickNav = 0;
  20929. if (
  20930. !_chapterData[taskCount].length ||
  20931. _chapterData[taskCount][0].type == 12
  20932. ) {
  20933. this.isClickNav = "";
  20934. // this.showType = "";
  20935. }
  20936. if (this.tType == 2) {
  20937. _chapterData.forEach((e,i)=>{
  20938. if (e.length) {
  20939. let yym = e.filter(k=>{
  20940. if(!converter(k.name).includes(converter(this.lang.ssTeachingPlan))){
  20941. return k
  20942. }
  20943. })
  20944. _chapterData[i] = yym
  20945. }
  20946. })
  20947. }
  20948. this.vChapterData = _chapterData;
  20949. this.$forceUpdate();
  20950. }
  20951. if (res.data[0][0].setting) {
  20952. try {
  20953. this.languageSetting =
  20954. JSON.parse(res.data[0][0].setting).languageSetting ||
  20955. JSON.parse(res.data[0][0].setting).languageSetting == 0
  20956. ? JSON.parse(res.data[0][0].setting).languageSetting
  20957. : 0;
  20958. } catch (error) {
  20959. console.error(error);
  20960. }
  20961. }
  20962. // finalMarkList用来判断哪个工具为评分工具
  20963. if (this.courseDetail.state == 6) {
  20964. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  20965. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  20966. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  20967. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  20968. // // 没有的话在选其他工具为评分工具
  20969. // if(adc.length > 0){
  20970. // for (let k = chap.length - 1; k >= 0; k--) {
  20971. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  20972. // this.finalMarkList = k;
  20973. // break;
  20974. // }
  20975. // }
  20976. // }else{
  20977. // for (let k = chap.length - 1; k >= 0; k--) {
  20978. // if (chap[k].tool[0] == 7 || chap[k].tool[0] == 50 || chap[k].tool[0] == 1 || chap[k].tool[0] == 3 || chap[k].tool[0] == 48 || chap[k].tool[0] == 15 || chap[k] == 57) {
  20979. // this.finalMarkList = k;
  20980. // break;
  20981. // }
  20982. // }
  20983. // }
  20984. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  20985. // 不然会无限循环报错,会很难受
  20986. let aiSNum = 0;
  20987. if (
  20988. chapInfoListCopy[this.taskCount].eList &&
  20989. chapInfoListCopy[this.taskCount].eList.length
  20990. ) {
  20991. chapInfoListCopy[this.taskCount].eList.forEach(e => {
  20992. if (e.isai == 2) {
  20993. aiSNum++;
  20994. }
  20995. });
  20996. if (aiSNum == chapInfoListCopy[this.taskCount].eList.length) {
  20997. this.isaiNum = aiSNum;
  20998. } else {
  20999. this.isaiNum = 0;
  21000. }
  21001. // for (
  21002. // let k = 0;
  21003. // k < chapInfoListCopy[this.taskCount].eList.length;
  21004. // k++
  21005. // ) {
  21006. // if (!chapInfoListCopy[this.taskCount].eList[k].rule) {
  21007. // this.againEva(this.taskCount, k);
  21008. // }
  21009. // }
  21010. }
  21011. }
  21012. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  21013. if (type == 10) {
  21014. console.log('this.courseDetail.userid',this.courseDetail.userid);
  21015. console.log('this.userid',this.userid);
  21016. if (this.courseDetail.userid == this.userid) {
  21017. // 开局关闭学生查看内容
  21018. this.StulookMode(true)
  21019. // 开局打开跟随模式
  21020. this.followingMode(true)
  21021. }
  21022. }
  21023. // else {
  21024. // this.courseDetail = res.data[0][0];
  21025. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21026. // }
  21027. let _this = this;
  21028. if (_this.timer) {
  21029. clearInterval(_this.timer);
  21030. _this.timer = null;
  21031. }
  21032. // if (_this.timer2) {
  21033. // clearInterval(_this.timer2);
  21034. // _this.timer2 = null;
  21035. // }
  21036. if (_this.tcid) {
  21037. _this.getCourseGroup(gindex);
  21038. } else {
  21039. _this.selectSWorks(gindex);
  21040. }
  21041. _this.selectStudent();
  21042. _this.selectSLook();
  21043. _this.getPick();
  21044. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21045. // _this.setCTask();
  21046. // }
  21047. if (_this.dialogVisibleGroup) {
  21048. _this.groupJson =
  21049. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21050. _this.taskCount
  21051. ].toolChoose[_this.toolindex].groupJson;
  21052. }
  21053. _this.$nextTick(() => {
  21054. setTimeout(() => {
  21055. _this.checkEva();
  21056. }, 1000);
  21057. });
  21058. _this.timer = setInterval(function () {
  21059. // _this.getCourseDetail(2);
  21060. if (_this.tcid) {
  21061. _this.getCourseGroup();
  21062. } else {
  21063. _this.selectSWorks();
  21064. }
  21065. _this.selectStudent();
  21066. _this.selectSLook();
  21067. _this.getPick();
  21068. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21069. // _this.setCTask();
  21070. // }
  21071. if (_this.dialogVisibleGroup) {
  21072. _this.groupJson =
  21073. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21074. _this.taskCount
  21075. ].toolChoose[_this.toolindex].groupJson;
  21076. }
  21077. if (_this.tType == 4 || _this.ispzType == 4) {
  21078. _this.selectPz();
  21079. }
  21080. }, 5000);
  21081. if (_this.timer2 == null) {
  21082. _this.timer2 = setInterval(()=> {
  21083. _this.getSplitScreenData();//获取分屏数据
  21084. }, 5000);
  21085. }
  21086. _this.$nextTick(function () {
  21087. setTimeout(() => {
  21088. const element = document.getElementsByClassName("pb_body")[0];
  21089. if (element) {
  21090. element.style.minHeight = 'unset'
  21091. // 或者:element.style.removeProperty("min-height");
  21092. }
  21093. // var a =
  21094. // document.getElementsByClassName("box_course")[0].offsetHeight;
  21095. // document.getElementsByClassName("vedioList")[0].style.height =
  21096. // a + "px";
  21097. // document.getElementsByClassName("navBox")[0].style.height =
  21098. // a - 40 + "px";
  21099. // if (_this.vedio[_this.taskCount].length > 0) {
  21100. // _this.vedioTime = [];
  21101. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21102. // _this.vedioTime[i] = document.getElementsByClassName(
  21103. // "vjs-duration-display"
  21104. // )[i].textContent;
  21105. // }
  21106. // }
  21107. }, 1000);
  21108. });
  21109. })
  21110. .catch((err) => {
  21111. loading.close();
  21112. console.error(err);
  21113. });
  21114. },
  21115. getCourseGroup(gindex) {
  21116. if(this.getCourseGroupLoading) return
  21117. this.getCourseGroupLoading = true
  21118. let params = {
  21119. cid: this.id,
  21120. classid: this.tcid ? this.tcid : "1",
  21121. };
  21122. this.ajax
  21123. .get(this.$store.state.api + "getCourseGroup", params)
  21124. .then((res) => {
  21125. if (res.data && res.data[0].length) {
  21126. if (!this.isGroup) {
  21127. let courseGroup = JSON.parse(res.data[0][0].group);
  21128. courseGroup.group = courseGroup.group.filter((el) => {
  21129. el.works = [];
  21130. return el;
  21131. });
  21132. if (courseGroup.isopen == 2) {
  21133. this.isGroup = false;
  21134. this.selectSWorks(gindex);
  21135. return;
  21136. }
  21137. this.courseGroup = courseGroup;
  21138. let groupPerson = res.data[1];
  21139. let group = JSON.parse(res.data[0][0].group).group;
  21140. let courseGroupStudent = {};
  21141. let courseGroupStudentUid = {};
  21142. for (var i = 0; i < group.length; i++) {
  21143. courseGroupStudent[group[i].id] = [];
  21144. courseGroupStudentUid[group[i].id] = [];
  21145. for (var j = 0; j < groupPerson.length; j++) {
  21146. if (groupPerson[j].groupCid == group[i].id) {
  21147. courseGroupStudent[group[i].id].push(groupPerson[j]);
  21148. courseGroupStudentUid[group[i].id].push(
  21149. groupPerson[j].userid
  21150. );
  21151. }
  21152. }
  21153. }
  21154. this.courseGroupStudent = courseGroupStudent;
  21155. this.courseGroupStudentUid = courseGroupStudentUid;
  21156. }
  21157. if (this.courseGroup.isopen == 2) {
  21158. this.isGroup = false;
  21159. } else {
  21160. this.isGroup = true;
  21161. }
  21162. this.selectSWorks(gindex);
  21163. } else {
  21164. this.selectSWorks(gindex);
  21165. this.isGroup = false;
  21166. }
  21167. this.getCourseGroupLoading = false
  21168. })
  21169. .catch((err) => {
  21170. this.getCourseGroupLoading = false
  21171. // this.$message.error(this.lang.ssNetworkPoor);
  21172. console.error(err);
  21173. });
  21174. },
  21175. setOperationTime() {
  21176. let _this = this;
  21177. if (_this.opertimer) {
  21178. clearInterval(_this.opertimer);
  21179. _this.opertimer = null;
  21180. }
  21181. _this.opertimer = setInterval(() => {
  21182. _this.setoTime("600");
  21183. }, 600000);
  21184. },
  21185. setoTime(time) {
  21186. let params = [
  21187. {
  21188. uid: this.userid,
  21189. cid: this.id,
  21190. type: "2",
  21191. time: time,
  21192. },
  21193. ];
  21194. this.ajax
  21195. .post(this.$store.state.api + "addOperationTimeT2", params)
  21196. .then((res) => {})
  21197. .catch((err) => {
  21198. console.error(err);
  21199. });
  21200. },
  21201. addPz(type, content) {
  21202. if (type == "1" && this.pzConText == "") {
  21203. this.$message.error(this.lang.ssCommentEmpty);
  21204. return;
  21205. }
  21206. let params = [
  21207. {
  21208. cid: this.id,
  21209. uid: this.userid,
  21210. s: this.courseType,
  21211. t: this.taskCount,
  21212. c: type == "1" ? this.pzConText : content,
  21213. type: type,
  21214. },
  21215. ];
  21216. this.ajax
  21217. .post(this.$store.state.api + "addPz2", params)
  21218. .then((res) => {
  21219. this.$message({
  21220. message: this.lang.ssAddSuccess,
  21221. type: "success",
  21222. });
  21223. this.pzConText = "";
  21224. this.addPzDialog = false;
  21225. this.selectPz();
  21226. if(this.tType!=2){
  21227. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  21228. }
  21229. })
  21230. .catch((err) => {
  21231. this.$message.error(this.lang.ssAddFailed);
  21232. console.error(err);
  21233. });
  21234. },
  21235. setReplyIndex(id, i) {
  21236. this.replyIndex = i;
  21237. this.replyPid = id;
  21238. this.replyDialogVisible = true;
  21239. },
  21240. addHf() {
  21241. if (this.reply == "") {
  21242. this.$message.error(this.lang.ssReplyEmpty);
  21243. return;
  21244. }
  21245. let params = [
  21246. {
  21247. cid: this.id,
  21248. uid: this.userid,
  21249. s: this.courseType,
  21250. t: this.taskCount,
  21251. type: "1",
  21252. ct: 2,
  21253. pid: this.replyPid,
  21254. c: this.reply,
  21255. },
  21256. ];
  21257. this.ajax
  21258. .post(this.$store.state.api + "addHf", params)
  21259. .then((res) => {
  21260. this.reply = "";
  21261. this.$message({
  21262. message: this.lang.ssReplySuccess,
  21263. type: "success",
  21264. });
  21265. this.replyDialogVisible = false;
  21266. this.selectPz();
  21267. })
  21268. .catch((err) => {
  21269. this.$message.error(this.lang.ssReplyFailed);
  21270. console.error(err);
  21271. });
  21272. },
  21273. deletePz(id) {
  21274. this.$confirm(this.lang.ssConfirmDeleteComment, this.lang.ssPrompt, {
  21275. confirmButtonText: this.lang.ssConfirm,
  21276. cancelButtonText: this.lang.ssCancel,
  21277. type: "warning",
  21278. })
  21279. .then(() => {
  21280. let params = [
  21281. {
  21282. id: id,
  21283. },
  21284. ];
  21285. this.ajax
  21286. .post(this.$store.state.api + "deletePz", params)
  21287. .then((res) => {
  21288. this.$message({
  21289. message: this.lang.ssDeleteSuccess,
  21290. type: "success",
  21291. });
  21292. this.selectPz();
  21293. })
  21294. .catch((err) => {
  21295. this.$message.error(this.lang.ssNetworkError);
  21296. console.error(err);
  21297. });
  21298. })
  21299. .catch(() => {});
  21300. },
  21301. deleteReply(id) {
  21302. this.$confirm(this.lang.ssConfirmDeleteReply, this.lang.ssPrompt, {
  21303. confirmButtonText: this.lang.ssConfirm,
  21304. cancelButtonText: this.lang.ssCancel,
  21305. type: "warning",
  21306. })
  21307. .then(() => {
  21308. let params = [
  21309. {
  21310. id: id,
  21311. },
  21312. ];
  21313. this.ajax
  21314. .post(this.$store.state.api + "deleteReply", params)
  21315. .then((res) => {
  21316. this.$message({
  21317. message: this.lang.ssDeleteSuccess,
  21318. type: "success",
  21319. });
  21320. this.selectPz();
  21321. })
  21322. .catch((err) => {
  21323. this.$message.error(this.lang.ssNetworkError);
  21324. console.error(err);
  21325. });
  21326. })
  21327. .catch(() => {});
  21328. },
  21329. setPz() {
  21330. if (this.ispzType == 4) {
  21331. this.ispzType = 0;
  21332. this.pzDialog = false;
  21333. return;
  21334. }
  21335. this.ispzType = 4;
  21336. this.pzDialog = true;
  21337. this.selectPz();
  21338. },
  21339. selectPz() {
  21340. if(this.selectPzLoading) return
  21341. this.selectPzLoading = true
  21342. let params = {
  21343. cid: this.id,
  21344. s: this.courseType,
  21345. t: this.taskCount,
  21346. type: this.pzStype,
  21347. uid: this.userid,
  21348. };
  21349. this.ajax
  21350. .get(this.$store.state.api + "selectPzListType", params)
  21351. .then((res) => {
  21352. this.pzList = res.data[0];
  21353. var a = res.data[1];
  21354. for (var i = 0; i < a.length; i++) {
  21355. for (var j = 0; j < this.pzList.length; j++) {
  21356. if (!this.pzList[j].hfList) {
  21357. this.pzList[j].hfList = [];
  21358. }
  21359. if (a[i].pid == this.pzList[j].id) {
  21360. this.pzList[j].hfList.push(a[i]);
  21361. }
  21362. }
  21363. }
  21364. this.selectPzLoading = false
  21365. })
  21366. .catch((err) => {
  21367. this.selectPzLoading = false
  21368. console.error(err);
  21369. });
  21370. },
  21371. // selectHf() {
  21372. // let params = {
  21373. // cid: this.id,
  21374. // s: this.courseType,
  21375. // t: this.taskCount,
  21376. // };
  21377. // this.ajax
  21378. // .get(this.$store.state.api + "selectHfList", params)
  21379. // .then((res) => {
  21380. // var a = res.data[0];
  21381. // for (var i = 0; i < a.length; i++) {
  21382. // for (var j = 0; j < this.pzList.length; j++) {
  21383. // if (!this.pzList[i].hfList) {
  21384. // this.pzList[i].hfList = [];
  21385. // }
  21386. // if (a[i].pid == this.pzList[j].id) {
  21387. // this.pzList[i].hfList.push(a[i]);
  21388. // }
  21389. // }
  21390. // }
  21391. // })
  21392. // .catch((err) => {
  21393. // console.error(err);
  21394. // });
  21395. // },
  21396. updateSLook() {
  21397. let params = {
  21398. sopen: this.sIsOpen == false ? 1 : 2,
  21399. cid: this.id,
  21400. };
  21401. this.ajax
  21402. .get(this.$store.state.api + "updateCourseSLook", params)
  21403. .then((res) => {
  21404. if (this.sIsOpen == true) {
  21405. this.$message({
  21406. message: this.lang.ssPermSetSuccess,
  21407. type: "success",
  21408. });
  21409. } else {
  21410. this.$message({
  21411. message: this.lang.ssPermClosedOk,
  21412. type: "success",
  21413. });
  21414. }
  21415. })
  21416. .catch((err) => {
  21417. console.error(err);
  21418. });
  21419. },
  21420. updateIsStulook(){
  21421. let params = [
  21422. {
  21423. sopen: this.IsStulook == false ? 2 : 1,
  21424. cid: this.id
  21425. }
  21426. ];
  21427. this.ajax
  21428. .post(this.$store.state.api + "updateCourseStulook", params)
  21429. .then(res => {
  21430. if (this.IsStulook == true) {
  21431. this.$message({
  21432. message: this.lang.ssStuViewPermOn,
  21433. type: "success"
  21434. });
  21435. } else {
  21436. this.$message({
  21437. message: this.lang.ssStuViewPermOff,
  21438. type: "success"
  21439. });
  21440. }
  21441. // this.setCTask();
  21442. })
  21443. .catch(err => {
  21444. console.error(err);
  21445. });
  21446. },
  21447. updateFollow() {
  21448. let params = [
  21449. {
  21450. sopen: this.IsFollow == false ? 1 : 2,
  21451. cid: this.id,
  21452. },
  21453. ];
  21454. this.ajax
  21455. .post(this.$store.state.api + "updateCourseFollow", params)
  21456. .then((res) => {
  21457. if (this.IsFollow == true) {
  21458. this.$message({
  21459. message: this.lang.ssFollowModeOn2,
  21460. type: "success",
  21461. });
  21462. } else {
  21463. this.$message({
  21464. message: this.lang.ssFollowModeOff,
  21465. type: "success",
  21466. });
  21467. }
  21468. this.setCTask();
  21469. })
  21470. .catch((err) => {
  21471. console.error(err);
  21472. });
  21473. },
  21474. setCTask() {
  21475. let params = [
  21476. {
  21477. sopen: this.courseType + "-" + this.taskCount,
  21478. cid: this.id,
  21479. },
  21480. ];
  21481. this.ajax
  21482. .post(this.$store.state.api + "updateCourseFollowC", params)
  21483. .then((res) => {})
  21484. .catch((err) => {
  21485. console.error(err);
  21486. });
  21487. },
  21488. updateLookOpen() {
  21489. let params = [
  21490. {
  21491. sopen: this.IsLookOpen == false ? 1 : 2,
  21492. cid: this.id,
  21493. },
  21494. ];
  21495. this.ajax
  21496. .post(this.$store.state.api + "updateCourseLookOpen", params)
  21497. .then((res) => {
  21498. if (this.IsLookOpen == true) {
  21499. // if (this.courseType != 0 && this.taskCount != 0) {
  21500. // this.openTask(0, 0, "0-0");
  21501. // }
  21502. this.$message({
  21503. message: this.lang.ssPermSetSuccess,
  21504. type: "success",
  21505. });
  21506. } else {
  21507. this.$message({
  21508. message: this.lang.ssPermClosedOk,
  21509. type: "success",
  21510. });
  21511. }
  21512. this.getCourseState(2);
  21513. })
  21514. .catch((err) => {
  21515. console.error(err);
  21516. });
  21517. },
  21518. selectSLook() {
  21519. if(this.selectSLookLoading) return
  21520. this.selectSLookLoading = true
  21521. let params = {
  21522. cid: this.id,
  21523. };
  21524. this.ajax
  21525. .get(this.$store.state.api + "selectCourseSLook", params)
  21526. .then((res) => {
  21527. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  21528. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  21529. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  21530. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  21531. if (!this.IsLookOpen) {
  21532. this.setNavList();
  21533. } else {
  21534. this.getCourseState(1);
  21535. }
  21536. if ((this.IsFollow && this.tType == 2) || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)) {
  21537. this.setContent2(false);
  21538. let _followC = res.data[0][0].followC.split("-");
  21539. if (
  21540. this.courseType != _followC[0] ||
  21541. this.taskCount != _followC[1]
  21542. ) {
  21543. this.navList[this.courseType].isOpen = false;
  21544. this.courseType = _followC[0];
  21545. this.navList[this.courseType].isOpen = true;
  21546. this.taskCount = parseInt(_followC[1]);
  21547. this.navId = res.data[0][0].followC;
  21548. document.scrollingElement.scrollTop = 0;
  21549. this.getCourseDetail(2);
  21550. }
  21551. }
  21552. this.selectSLookLoading = false
  21553. })
  21554. .catch((err) => {
  21555. this.selectSLookLoading = false
  21556. console.error(err);
  21557. });
  21558. },
  21559. setNavList() {
  21560. if (this.navList.length == 0) {
  21561. this.navList = [];
  21562. var copyList = [];
  21563. for (var l = 0; l < this.chapInfoList.length; l++) {
  21564. var q = this.chapInfoList[l].dyName;
  21565. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21566. var e;
  21567. copyList.push({
  21568. dyName: q,
  21569. isOpen: l === 0 ? true : false,
  21570. task: [],
  21571. });
  21572. for (var r = 0; r < w.length; r++) {
  21573. e = w[r].task;
  21574. if (this.chapInfoList[l].easy == 1) {
  21575. copyList[l].task.push({
  21576. taskName: q,
  21577. id: l + "-" + r,
  21578. isLook: w[r].isLook,
  21579. isOpen: r === 0 ? true : false,
  21580. tool: [],
  21581. });
  21582. } else {
  21583. copyList[l].task.push({
  21584. taskName: e,
  21585. id: l + "-" + r,
  21586. isLook: w[r].isLook,
  21587. isOpen: r === 0 ? true : false,
  21588. tool: [],
  21589. });
  21590. }
  21591. var t = w[r].toolChoose;
  21592. for (var k = 0; k < t.length; k++) {
  21593. var tool = t[k].tool[0];
  21594. copyList[l].task[r].tool.push({
  21595. tool: tool,
  21596. isTool: false,
  21597. });
  21598. }
  21599. // this.navId = this.navId ? this.navId : l + "-" + r;
  21600. // this.navId = l + "-" + r;
  21601. }
  21602. }
  21603. this.navList = copyList;
  21604. this.navList[0].isOpen = false;
  21605. this.navList[this.courseType].isOpen = true;
  21606. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21607. } else {
  21608. this.setNavList2();
  21609. }
  21610. },
  21611. setNavList2() {
  21612. for (var l = 0; l < this.chapInfoList.length; l++) {
  21613. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21614. for (var r = 0; r < w.length; r++) {
  21615. this.navList[l].task[r].isLook = w[r].isLook;
  21616. }
  21617. }
  21618. if (
  21619. this.IsLookOpen &&
  21620. !this.navList[this.courseType].task[this.taskCount].isLook
  21621. ) {
  21622. this.openTask(0, 0, "0-0");
  21623. }
  21624. this.$forceUpdate();
  21625. },
  21626. getCourseState(type) {
  21627. let params = {
  21628. cid: this.id,
  21629. };
  21630. this.ajax
  21631. .get(this.$store.state.api + "getCourseState", params)
  21632. .then((res) => {
  21633. // if (res.data[0].length > 0) {
  21634. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  21635. // }
  21636. if (res.data[0].length > 0 && type == 1) {
  21637. this.chapInfoList = JSON.parse(res.data[0][0].state);
  21638. this.setNavList();
  21639. this.$forceUpdate();
  21640. } else if (res.data[0].length > 0 && type == 2) {
  21641. this.addCourseState(2);
  21642. } else {
  21643. // this.addCourseState(1);
  21644. }
  21645. })
  21646. .catch((err) => {
  21647. console.error(err);
  21648. });
  21649. },
  21650. addCourseState(type,val = '') {
  21651. let _state = val ? val : this.chapInfoList;
  21652. // this.courseType this.taskCount
  21653. if (type == 1 || type == 2) {
  21654. for (var i = 0; i < _state.length; i++) {
  21655. let el = _state[i].chapterInfo[0].taskJson;
  21656. for (var j = 0; j < el.length; j++) {
  21657. // if (i == 0 && j == 0) {
  21658. // el[j].isLook = true;
  21659. // } else {
  21660. // el[j].isLook = false;
  21661. // }
  21662. if (
  21663. this.courseType > i ||
  21664. (this.courseType == i && this.taskCount + 1 > j)
  21665. ) {
  21666. el[j].isLook = true;
  21667. } else {
  21668. el[j].isLook = false;
  21669. }
  21670. }
  21671. }
  21672. }
  21673. let params = [
  21674. {
  21675. cid: this.id,
  21676. state: JSON.stringify(_state),
  21677. },
  21678. ];
  21679. this.ajax
  21680. .post(
  21681. this.$store.state.api +
  21682. (type == 1 ? "addCourseState" : "updateCourseSate"),
  21683. params
  21684. )
  21685. .then((res) => {
  21686. if (this.IsLookOpen) {
  21687. this.setNavList();
  21688. }
  21689. if (type == 3 && type == 2) {
  21690. this.getCourseState(1);
  21691. }
  21692. })
  21693. .catch((err) => {
  21694. console.error(err);
  21695. });
  21696. },
  21697. getHomeWork() {
  21698. let params = {
  21699. cid: this.id,
  21700. stage: this.courseType,
  21701. task: this.taskCount,
  21702. uid: this.userid,
  21703. };
  21704. this.ajax
  21705. .get(this.$store.state.api + "selectWork", params)
  21706. .then((res) => {
  21707. if (res.data[0].length > 0) {
  21708. this.studyJuri = JSON.parse(res.data[0][0].content);
  21709. this.isNoHomeWork = true;
  21710. }
  21711. })
  21712. .catch((err) => {
  21713. console.error(err);
  21714. });
  21715. },
  21716. isAssetTypeAnImage(ext) {
  21717. return (
  21718. [
  21719. "png",
  21720. "jpg",
  21721. "jpeg",
  21722. "bmp",
  21723. "gif",
  21724. "webp",
  21725. "psd",
  21726. "svg",
  21727. "tiff",
  21728. ].indexOf(ext) !== -1
  21729. );
  21730. },
  21731. switchVideo(media) {
  21732. this.playerO = {};
  21733. this.playerOptions.poster = "";
  21734. this.playerOptions.sources[0].src = media;
  21735. this.playerO = this.playerOptions;
  21736. },
  21737. onPlayerPlay() {},
  21738. onPlayerTimeupdate(player) {
  21739. let gklog = player.cache_.currentTime; //当前播放的秒数
  21740. let a = player.cache_.duration; //视频的总时长
  21741. let gklog2 = parseInt(gklog);
  21742. // if(gklog2 == '3'){
  21743. // player.pause()
  21744. // setTimeout(()=>{
  21745. // player.currentTime(gklog2+1)
  21746. // player.play()
  21747. // },1000)
  21748. // }
  21749. console.log(" onPlayerTimeupdate!", gklog);
  21750. console.log(" onPlayerTimeupdate!", gklog2);
  21751. },
  21752. lookVedio(u, i) {
  21753. this.isClickNav = "";
  21754. // this.playerOptions.sources[0].src = u;
  21755. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21756. d.sources[0].src = u;
  21757. this.playerO[0] = d;
  21758. this.showType = 0;
  21759. // this.isClickNav = "video" + i;
  21760. this.isClickNav = i;
  21761. this.$forceUpdate();
  21762. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  21763. },
  21764. lookText(i, t) {
  21765. this.isClickNav = "";
  21766. // this.text = this.textList[i][t];
  21767. this.text = this.vChapterData[i][t];
  21768. // this.dialogVisible1 = true;
  21769. this.showType = 1;
  21770. // this.isClickNav = "text" + t;
  21771. this.isClickNav = t;
  21772. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  21773. },
  21774. lookTools(i, t) {
  21775. this.chapTools = this.chapToolList[i][t];
  21776. this.dialogVisible2 = true;
  21777. },
  21778. async openFile(f) {
  21779. this.pptImgUrl = "";
  21780. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  21781. if (
  21782. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  21783. -1
  21784. ) {
  21785. let _uuurl = await this.checkLink(f);
  21786. console.log(_uuurl)
  21787. this.pptImgUrl =
  21788. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  21789. this.showPDF = false;
  21790. this.dialogVisible3 = true;
  21791. } else if (
  21792. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21793. ) {
  21794. this.pptImgUrl = f;
  21795. this.showPDF = true;
  21796. this.dialogVisible3 = true;
  21797. }
  21798. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  21799. },
  21800. openTable(f) {
  21801. this.tableJson = JSON.parse(f.works);
  21802. this.dialogVisibleTable2 = true;
  21803. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  21804. },
  21805. openWord(f) {
  21806. this.tableJson = JSON.parse(f.works);
  21807. this.dialogVisibleTable3 = true;
  21808. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  21809. },
  21810. doUrl(url, i) {
  21811. this.isClickNav = "";
  21812. this.pptImgUrl1 = "";
  21813. this.showType = 2;
  21814. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  21815. url = "https://" + url;
  21816. }
  21817. this.pptImgUrl1 = "";
  21818. this.diffKey = new Date().getTime();
  21819. setTimeout(() => {
  21820. this.pptImgUrl1 = url;
  21821. }, 500);
  21822. // this.isClickNav = "line" + i;
  21823. this.isClickNav = i;
  21824. this.$forceUpdate();
  21825. },
  21826. checkPhoto(f, i) {
  21827. this.showType = 4;
  21828. this.pptImgUrl1 = f.url;
  21829. this.isClickNav = i;
  21830. this.$forceUpdate();
  21831. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  21832. },
  21833. checkHtml(f, i){
  21834. this.showType = 16;
  21835. this.pptImgUrl1 = f.url;
  21836. this.isClickNav = i;
  21837. this.$forceUpdate();
  21838. },
  21839. async downFile(f, i) {
  21840. this.isClickNav = "";
  21841. this.pptImgUrl1 = "";
  21842. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  21843. if (
  21844. a.indexOf(
  21845. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  21846. ) != -1
  21847. ) {
  21848. let _uuurl = await this.checkLink(f.url);
  21849. console.log(_uuurl)
  21850. this.pptImgUrl1 =
  21851. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  21852. // this.dialogVisible3 = true;
  21853. this.showType = 2;
  21854. } else if (
  21855. this.isAssetTypeAnImage(
  21856. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  21857. )
  21858. ) {
  21859. this.showType = 4;
  21860. this.pptImgUrl1 = f.url;
  21861. } else if (
  21862. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  21863. "PDF"
  21864. ) {
  21865. this.pptImgUrl1 = f.url;
  21866. // this.dialogVisible3 = true;
  21867. this.showType = 3;
  21868. } else {
  21869. window.open(this.file[i].url);
  21870. }
  21871. // this.isClickNav = "word" + i;
  21872. this.isClickNav = i;
  21873. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  21874. },
  21875. downFileList(i) {
  21876. window.open(this.noImgList[i].url);
  21877. },
  21878. openAddWork() {
  21879. this.dialogVisible = true;
  21880. },
  21881. addBzWorks() {
  21882. let params = [
  21883. {
  21884. uid: this.userid,
  21885. cid: this.id,
  21886. stage: this.courseType,
  21887. task: this.taskCount,
  21888. tool: this.toolindex,
  21889. content: JSON.stringify(this.eScore),
  21890. type: 6,
  21891. },
  21892. ];
  21893. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  21894. this.homeWorkLoading = true
  21895. this.ajax
  21896. .post(this.$store.state.api + "addCourseWorks", params)
  21897. .then((res) => {
  21898. this.$message({
  21899. message: this.lang.ssSubmitSuccess,
  21900. type: "success",
  21901. });
  21902. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  21903. setTimeout(() => {
  21904. this.homeWorkLoading = false
  21905. }, 500);
  21906. this.eScore = { eBzText: "", eStar: [] };
  21907. this.studentEvalDialogVisible = false;
  21908. this.selectSWorks();
  21909. })
  21910. .catch((err) => {
  21911. this.$message.error(this.lang.ssSubmitFailed);
  21912. console.error(err);
  21913. setTimeout(() => {
  21914. this.homeWorkLoading = false
  21915. }, 500);
  21916. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  21917. });
  21918. },
  21919. addBzWorksTeacher() {
  21920. let params = [
  21921. {
  21922. uid: this.sStudent.userid,
  21923. cid: this.id,
  21924. stage: this.courseType,
  21925. task: this.taskCount,
  21926. tool: this.toolindex,
  21927. content: JSON.stringify(this.eScore),
  21928. type: 6,
  21929. },
  21930. ];
  21931. this.ajax
  21932. .post(this.$store.state.api + "addCourseWorks", params)
  21933. .then((res) => {
  21934. this.$message({
  21935. message: this.lang.ssSubmitSuccess,
  21936. type: "success",
  21937. });
  21938. this.eScore = { eBzText: "", eStar: [] };
  21939. this.studentEvalDialogVisibleTeacher = false;
  21940. this.selectSWorks();
  21941. })
  21942. .catch((err) => {
  21943. this.$message.error(this.lang.ssSubmitFailed);
  21944. console.error(err);
  21945. });
  21946. },
  21947. addStudentAsk() {
  21948. if (!this.radio.length) {
  21949. this.$message.error(this.lang.ssPleaseSelectOption);
  21950. return;
  21951. }
  21952. for (var i = 0; i < this.askJson.askCount; i++) {
  21953. if (
  21954. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21955. (this.radio[i] !== 0 && !this.radio[i])
  21956. ) {
  21957. this.$message.error(this.lang.ssPleaseSelectOption);
  21958. return;
  21959. }
  21960. }
  21961. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  21962. let params = [
  21963. {
  21964. uid: this.userid,
  21965. cid: this.id,
  21966. stage: this.courseType,
  21967. task: this.taskCount,
  21968. tool: this.toolindex,
  21969. content: JSON.stringify(this.askList),
  21970. type: 2,
  21971. },
  21972. ];
  21973. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  21974. this.homeWorkLoading = true
  21975. this.ajax
  21976. .post(this.$store.state.api + "addCourseWorks", params)
  21977. .then((res) => {
  21978. this.$message({
  21979. message: this.lang.ssSubmitSuccess,
  21980. type: "success",
  21981. });
  21982. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  21983. setTimeout(() => {
  21984. this.homeWorkLoading = false
  21985. }, 500);
  21986. this.askList = [];
  21987. this.dialogVisible5 = false;
  21988. this.selectStudent();
  21989. this.selectSWorks();
  21990. this.selectSLook();
  21991. })
  21992. .catch((err) => {
  21993. this.$message.error(this.lang.ssSubmitFailed);
  21994. console.error(err);
  21995. setTimeout(() => {
  21996. this.homeWorkLoading = false
  21997. }, 500);
  21998. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  21999. });
  22000. },
  22001. addStudentAskTeacher() {
  22002. if (!this.radio.length) {
  22003. this.$message.error(this.lang.ssPleaseSelectOption);
  22004. return;
  22005. }
  22006. for (var i = 0; i < this.askJson.askCount; i++) {
  22007. if (
  22008. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22009. (this.radio[i] !== 0 && !this.radio[i])
  22010. ) {
  22011. this.$message.error(this.lang.ssPleaseSelectOption);
  22012. return;
  22013. }
  22014. }
  22015. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22016. let params = [
  22017. {
  22018. uid: this.sStudent.userid,
  22019. cid: this.id,
  22020. stage: this.courseType,
  22021. task: this.taskCount,
  22022. tool: this.toolindex,
  22023. content: JSON.stringify(this.askList),
  22024. type: 2,
  22025. },
  22026. ];
  22027. this.ajax
  22028. .post(this.$store.state.api + "addCourseWorks", params)
  22029. .then((res) => {
  22030. this.$message({
  22031. message: this.lang.ssSubmitSuccess,
  22032. type: "success",
  22033. });
  22034. this.askList = [];
  22035. this.dialogVisible5Teacher = false;
  22036. this.selectStudent();
  22037. this.selectSWorks();
  22038. this.selectSLook();
  22039. })
  22040. .catch((err) => {
  22041. this.$message.error(this.lang.ssSubmitFailed);
  22042. console.error(err);
  22043. });
  22044. },
  22045. addStudentTest() {
  22046. if (!this.radio.length) {
  22047. this.$message.error(this.lang.ssPleaseSelectOption);
  22048. return;
  22049. }
  22050. for (var i = 0; i < this.testJson.testCount; i++) {
  22051. if (
  22052. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22053. (this.radio[i] !== 0 && !this.radio[i])
  22054. ) {
  22055. this.$message.error(this.lang.ssPleaseSelectOption);
  22056. return;
  22057. }
  22058. }
  22059. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22060. let params = [
  22061. {
  22062. uid: this.userid,
  22063. cid: this.id,
  22064. stage: this.courseType,
  22065. task: this.taskCount,
  22066. tool: this.toolindex,
  22067. content: JSON.stringify(this.askList),
  22068. type: 8,
  22069. },
  22070. ];
  22071. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  22072. this.homeWorkLoading = true
  22073. this.ajax
  22074. .post(this.$store.state.api + "addCourseWorks", params)
  22075. .then((res) => {
  22076. this.$message({
  22077. message: this.lang.ssSubmitSuccess,
  22078. type: "success",
  22079. });
  22080. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  22081. setTimeout(() => {
  22082. this.homeWorkLoading = false
  22083. }, 500);
  22084. this.askList = [];
  22085. this.dialogVisibleChoice = false;
  22086. this.selectStudent();
  22087. this.selectSWorks();
  22088. this.selectSLook();
  22089. })
  22090. .catch((err) => {
  22091. this.$message.error(this.lang.ssSubmitFailed);
  22092. console.error(err);
  22093. setTimeout(() => {
  22094. this.homeWorkLoading = false
  22095. }, 500);
  22096. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  22097. });
  22098. },
  22099. addStudentTestTeacher() {
  22100. if (!this.radio.length) {
  22101. this.$message.error(this.lang.ssPleaseSelectOption);
  22102. return;
  22103. }
  22104. for (var i = 0; i < this.testJson.testCount; i++) {
  22105. if (
  22106. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22107. (this.radio[i] !== 0 && !this.radio[i])
  22108. ) {
  22109. this.$message.error(this.lang.ssPleaseSelectOption);
  22110. return;
  22111. }
  22112. }
  22113. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22114. let params = [
  22115. {
  22116. uid: this.sStudent.userid,
  22117. cid: this.id,
  22118. stage: this.courseType,
  22119. task: this.taskCount,
  22120. tool: this.toolindex,
  22121. content: JSON.stringify(this.askList),
  22122. type: 8,
  22123. },
  22124. ];
  22125. this.ajax
  22126. .post(this.$store.state.api + "addCourseWorks", params)
  22127. .then((res) => {
  22128. this.$message({
  22129. message: this.lang.ssSubmitSuccess,
  22130. type: "success",
  22131. });
  22132. this.askList = [];
  22133. this.dialogVisibleChoiceTeacher = false;
  22134. this.selectStudent();
  22135. this.selectSWorks();
  22136. this.selectSLook();
  22137. })
  22138. .catch((err) => {
  22139. this.$message.error(this.lang.ssSubmitFailed);
  22140. console.error(err);
  22141. });
  22142. },
  22143. addWork() {
  22144. if (this.studyJuri[0].content == "") {
  22145. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  22146. return;
  22147. } else if (this.studyJuri[0].cover.length == 0) {
  22148. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  22149. return;
  22150. } else if (this.studyJuri[0].upVedio.length == 0) {
  22151. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  22152. return;
  22153. }
  22154. if (this.isNoHomeWork) {
  22155. this.$confirm(
  22156. this.lang.ssAlreadySubmittedHomework,
  22157. this.lang.ssPrompt,
  22158. {
  22159. confirmButtonText: this.lang.ssConfirm,
  22160. cancelButtonText: this.lang.ssCancel,
  22161. type: "warning",
  22162. }
  22163. )
  22164. .then(() => {
  22165. let params = [
  22166. {
  22167. uid: this.userid,
  22168. cid: this.id,
  22169. stage: this.courseType,
  22170. task: this.taskCount,
  22171. content: JSON.stringify(this.studyJuri),
  22172. },
  22173. ];
  22174. this.ajax
  22175. .post(this.$store.state.api + "addWorks", params)
  22176. .then((res) => {
  22177. this.$message({
  22178. message: this.lang.ssSubmitSuccess,
  22179. type: "success",
  22180. });
  22181. this.isNoHomeWork = true;
  22182. this.dialogVisible = false;
  22183. })
  22184. .catch((err) => {
  22185. this.$message.error(this.lang.ssSubmitFailed);
  22186. console.error(err);
  22187. });
  22188. })
  22189. .catch(() => {});
  22190. } else {
  22191. let params = [
  22192. {
  22193. uid: this.userid,
  22194. cid: this.id,
  22195. stage: this.courseType,
  22196. task: this.taskCount,
  22197. content: JSON.stringify(this.studyJuri),
  22198. },
  22199. ];
  22200. this.ajax
  22201. .post(this.$store.state.api + "addWorks", params)
  22202. .then((res) => {
  22203. this.$message({
  22204. message: this.lang.ssSubmitSuccess,
  22205. type: "success",
  22206. });
  22207. this.isNoHomeWork = true;
  22208. this.dialogVisible = false;
  22209. })
  22210. .catch((err) => {
  22211. this.$message.error(this.lang.ssSubmitFailed);
  22212. console.error(err);
  22213. });
  22214. }
  22215. },
  22216. selectCount() {
  22217. let params = {
  22218. cid: this.id,
  22219. chid: this.courseType,
  22220. uid: this.userid,
  22221. };
  22222. this.ajax
  22223. .get(this.$store.state.api + "selectToolsCount", params)
  22224. .then((res) => {
  22225. for (var i = 0; i < res.data[0].length; i++) {
  22226. if (res.data[0][i].tools == 1) {
  22227. this.wbCount = res.data[0][i].count;
  22228. } else if (res.data[0][i].tools == 2) {
  22229. this.wordCount = res.data[0][i].count;
  22230. } else if (res.data[0][i].tools == 3) {
  22231. this.mindCount = res.data[0][i].count;
  22232. } else if (res.data[0][i].tools == 4) {
  22233. this.askCount = res.data[0][i].count;
  22234. } else if (res.data[0][i].tools == 6) {
  22235. this.noteCount = res.data[0][i].count;
  22236. } else if (res.data[0][i].tools == 7) {
  22237. this.mindNetWorkCount = res.data[0][i].count;
  22238. } else if (res.data[0][i].tools == 8) {
  22239. this.libraryCount = res.data[0][i].count;
  22240. } else if (res.data[0][i].tools == 16) {
  22241. this.workCount = res.data[0][i].count;
  22242. } else if (res.data[0][i].tools == 10) {
  22243. this.timeCount = res.data[0][i].count;
  22244. } else if (res.data[0][i].tools == 15) {
  22245. this.answerCount = res.data[0][i].count;
  22246. } else if (res.data[0][i].tools == 18) {
  22247. this.trainCount = res.data[0][i].count;
  22248. }
  22249. }
  22250. })
  22251. .catch((err) => {
  22252. console.error(err);
  22253. });
  22254. },
  22255. openTools(t, i, index, c, sName,id) {
  22256. var z = JSON.parse(c);
  22257. this.noteName = sName;
  22258. if (t == 4) {
  22259. this.radio = [];
  22260. this.isAnswer = false;
  22261. let b = z[0].anwer;
  22262. this.radio = b;
  22263. this.askJson = z[0].askJson;
  22264. this.isAnswer = true;
  22265. this.dialogVisible5 = true;
  22266. } else if (t == 45) {
  22267. this.radio = [];
  22268. this.isAnswer = false;
  22269. let b = z[0].anwer;
  22270. this.radio = b;
  22271. this.testJson = z[0].testJson;
  22272. this.isAnswer = true;
  22273. this.dialogVisibleChoice = true;
  22274. }else if(t == 69){
  22275. this.oldEnglishJson1 = {}
  22276. this.oldEnglishJson = {}
  22277. this.englishList1 = {}
  22278. this.newEngIndex = -1;
  22279. this.isNoUserid = false;
  22280. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22281. .toolChoose[i].englishList;
  22282. this.oldEnglishJson = z;
  22283. this.engWid = id;
  22284. this.newEnglishList = { engTitle:"",engText:"" }
  22285. this.newEnglishList1 = []
  22286. this.selectEngC(id,z);
  22287. }else if(t == 62){
  22288. this.videoType = 1;
  22289. this.videoJson = {};
  22290. this.videoJson = JSON.parse(c);
  22291. // this.videoJson =
  22292. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22293. // index
  22294. // ].toolChoose[i].videoJson;
  22295. this.dialogVisibleVideo = true;
  22296. }
  22297. // else if (t == 15) {
  22298. // this.answerQ = "";
  22299. // this.questionAnswer = "";
  22300. // this.answerQ = z[0].answerTitle;
  22301. // this.questionAnswer = z[0].answer;
  22302. // this.answerDialogVisible = true;
  22303. // }
  22304. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  22305. },
  22306. fastText(p, t) {
  22307. if (t == 1) {
  22308. this.commentText += p;
  22309. } else {
  22310. this.eScore.eBzText += p;
  22311. }
  22312. },
  22313. addTools(t, i, index) {
  22314. var a = 0;
  22315. // this.taskCount = index;
  22316. this.toolindex = i;
  22317. if (t == 1) {
  22318. if (this.wbCount > 0) {
  22319. this.updateCount(this.wbCount, t);
  22320. } else {
  22321. this.wbCount++;
  22322. a = this.wbCount;
  22323. this.toolsCount(a, t);
  22324. }
  22325. window.topU.postMessage(
  22326. {
  22327. tools: "1",
  22328. cid: this.id,
  22329. stage: this.courseType,
  22330. task: this.taskCount,
  22331. tool: i,
  22332. },
  22333. "*"
  22334. );
  22335. } else if (t == 2) {
  22336. if (this.wordCount > 0) {
  22337. this.updateCount(this.wordCount, t);
  22338. } else {
  22339. this.wordCount++;
  22340. a = this.wordCount;
  22341. this.toolsCount(a, t);
  22342. }
  22343. window.topU.postMessage({ tools: "2" }, "*");
  22344. } else if (t == 3) {
  22345. if (this.mindCount > 0) {
  22346. this.updateCount(this.mindCount, t);
  22347. } else {
  22348. this.mindCount++;
  22349. a = this.mindCount;
  22350. this.toolsCount(a, t);
  22351. }
  22352. window.topU.postMessage(
  22353. {
  22354. tools: "3",
  22355. cid: this.id,
  22356. stage: this.courseType,
  22357. task: this.taskCount,
  22358. tool: i,
  22359. },
  22360. "*"
  22361. );
  22362. } else if (t == 4) {
  22363. this.radio = [];
  22364. this.noteName = "";
  22365. this.isAnswer = false;
  22366. if (this.askCount > 0) {
  22367. this.updateCount(this.askCount, t);
  22368. } else {
  22369. this.askCount++;
  22370. a = this.askCount;
  22371. this.toolsCount(a, t);
  22372. }
  22373. if (!this.dialogVisible2) {
  22374. this.askJson.askJson =
  22375. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22376. index
  22377. ].toolChoose[i].askJson;
  22378. this.askJson.askTitle =
  22379. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22380. index
  22381. ].toolChoose[i].askTitle;
  22382. this.askJson.askCount =
  22383. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22384. index
  22385. ].toolChoose[i].askCount;
  22386. } else {
  22387. this.askJson.askJson = this.chapTools.askJson.askJson;
  22388. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22389. this.askJson.askCount = this.chapTools.askJson.askCount;
  22390. }
  22391. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22392. if (this.askJson.askJson[k].type == "2") {
  22393. this.radio.push([]);
  22394. } else {
  22395. this.radio.push("");
  22396. }
  22397. }
  22398. this.dialogVisible5 = true;
  22399. // window.topU.postMessage({ tools: "4" }, "*");
  22400. } else if (t == 45) {
  22401. this.noteName = "";
  22402. this.radio = [];
  22403. this.isAnswer = false;
  22404. if (this.askCount > 0) {
  22405. this.updateCount(this.askCount, t);
  22406. } else {
  22407. this.askCount++;
  22408. a = this.askCount;
  22409. this.toolsCount(a, t);
  22410. }
  22411. this.testJson =
  22412. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22413. index
  22414. ].toolChoose[i].testJson;
  22415. for (var k = 0; k < this.testJson.testJson.length; k++) {
  22416. if (this.testJson.testJson[k].type == "2") {
  22417. this.radio.push([]);
  22418. } else {
  22419. this.radio.push("");
  22420. }
  22421. }
  22422. this.dialogVisibleChoice = true;
  22423. // window.topU.postMessage({ tools: "4" }, "*");
  22424. } else if (t == 5) {
  22425. if (this.scoreCount > 0) {
  22426. this.updateCount(this.scoreCount, t);
  22427. } else {
  22428. this.scoreCount++;
  22429. a = this.scoreCount;
  22430. this.toolsCount(a, t);
  22431. }
  22432. this.dialogVisible4 = true;
  22433. // window.topU.postMessage({ tools: "5" }, "*");
  22434. } else if (t == 6) {
  22435. if (this.noteCount > 0) {
  22436. this.updateCount(this.noteCount, t);
  22437. } else {
  22438. this.noteCount++;
  22439. a = this.noteCount;
  22440. this.toolsCount(a, t);
  22441. }
  22442. window.topU.postMessage(
  22443. {
  22444. tools: "6",
  22445. cid: this.id,
  22446. stage: this.courseType,
  22447. task: this.taskCount,
  22448. tool: i,
  22449. },
  22450. "*"
  22451. );
  22452. } else if (t == 7) {
  22453. if (this.mindNetWorkCount > 0) {
  22454. this.updateCount(this.mindNetWorkCount, t);
  22455. } else {
  22456. this.mindNetWorkCount++;
  22457. a = this.mindNetWorkCount;
  22458. this.toolsCount(a, t);
  22459. }
  22460. window.topU.postMessage(
  22461. {
  22462. tools: "7",
  22463. cid: this.id,
  22464. stage: this.courseType,
  22465. task: this.taskCount,
  22466. tool: i,
  22467. },
  22468. "*"
  22469. );
  22470. } else if (t == 16) {
  22471. if (this.workCount > 0) {
  22472. this.updateCount(this.workCount, t);
  22473. } else {
  22474. this.workCount++;
  22475. a = this.workCount;
  22476. this.toolsCount(a, t);
  22477. }
  22478. this.dialogVisible = true;
  22479. } else if (t == 50) {
  22480. if (this.tType == 2) {
  22481. this.$message.error(this.lang.ssNotSupportedForStudents);
  22482. return;
  22483. }
  22484. this.plworkFile = [];
  22485. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  22486. if (!this.uploadCid) {
  22487. this.$message.error(
  22488. this.lang.ssBatchUploadNoClassPermission
  22489. );
  22490. return;
  22491. }
  22492. // this.uploadCid =
  22493. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22494. // index
  22495. // ].toolChoose[i].uploadJson[0];
  22496. this.selectUploadStudent(2);
  22497. } else if (t == 8) {
  22498. if (this.libraryCount > 0) {
  22499. this.updateCount(this.libraryCount, t);
  22500. } else {
  22501. this.libraryCount++;
  22502. a = this.libraryCount;
  22503. this.toolsCount(a, t);
  22504. }
  22505. window.topU.postMessage({ tools: "8" }, "*");
  22506. } else if (t == 17) {
  22507. if (this.libraryCount > 0) {
  22508. this.updateCount(this.libraryCount, t);
  22509. } else {
  22510. this.libraryCount++;
  22511. a = this.libraryCount;
  22512. this.toolsCount(a, t);
  22513. }
  22514. window.topU.postMessage({ tools: "17" }, "*");
  22515. } else if (t == 18) {
  22516. if (this.trainCount > 0) {
  22517. this.updateCount(this.trainCount, t);
  22518. } else {
  22519. this.trainCount++;
  22520. a = this.trainCount;
  22521. this.toolsCount(a, t);
  22522. }
  22523. window.topU.postMessage({ tools: "18" }, "*");
  22524. } else if (t == 10) {
  22525. if (this.timeCount > 0) {
  22526. this.updateCount(this.timeCount, t);
  22527. } else {
  22528. this.timeCount++;
  22529. a = this.timeCount;
  22530. this.toolsCount(a, t);
  22531. }
  22532. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  22533. .taskJson[index].toolChoose[i].preTime
  22534. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22535. .toolChoose[i].preTime
  22536. : "";
  22537. this.timeDialogVisible = true;
  22538. } else if (t == 15) {
  22539. this.answerQ = "";
  22540. this.questionAnswer = "";
  22541. if (this.answerCount > 0) {
  22542. this.updateCount(this.answerCount, t);
  22543. } else {
  22544. this.answerCount++;
  22545. a = this.answerCount;
  22546. this.toolsCount(a, t);
  22547. }
  22548. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22549. .taskJson[index].toolChoose[i].answerQ
  22550. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22551. .toolChoose[i].answerQ
  22552. : "";
  22553. this.answerDialogVisible = true;
  22554. } else if (t == 21) {
  22555. window.topU.postMessage({ tools: "21" }, "*");
  22556. } else if (t == 22) {
  22557. window.topU.postMessage({ tools: "22" }, "*");
  22558. } else if (t == 23) {
  22559. window.topU.postMessage({ tools: "23" }, "*");
  22560. } else if (t == 24) {
  22561. window.topU.postMessage({ tools: "24" }, "*");
  22562. } else if (t == 25) {
  22563. window.topU.postMessage({ tools: "25" }, "*");
  22564. } else if (t == 31) {
  22565. window.topU.postMessage({ tools: "31" }, "*");
  22566. } else if (t == 28) {
  22567. window.topU.postMessage({ tools: "28" }, "*");
  22568. } else if (t == 37) {
  22569. window.topU.postMessage({ tools: "37" }, "*");
  22570. } else if (t == 38) {
  22571. window.topU.postMessage({ tools: "38" }, "*");
  22572. } else if (t == 39) {
  22573. window.topU.postMessage({ tools: "39" }, "*");
  22574. } else if (t == 32) {
  22575. window.topU.postMessage({ tools: "32" }, "*");
  22576. } else if (t == 66) {
  22577. window.topU.postMessage({ tools: "66" }, "*");
  22578. } else if (t == 67) {
  22579. window.topU.postMessage({ tools: "67" }, "*");
  22580. } else if (t == 68) {
  22581. window.topU.postMessage({ tools: "68" }, "*");
  22582. } else if (t == 57) {
  22583. // window.topU.postMessage({ tools: "57" }, "*");
  22584. window.topU.postMessage(
  22585. {
  22586. tools: "57u",
  22587. cid: this.id,
  22588. stage: this.courseType,
  22589. task: this.taskCount,
  22590. tool: i,
  22591. },
  22592. "*"
  22593. );
  22594. } else if (t == 58) {
  22595. window.topU.postMessage({ tools: "58" }, "*");
  22596. } else if (t == 59) {
  22597. window.topU.postMessage({ tools: "59" }, "*");
  22598. } else if (t == 60) {
  22599. window.topU.postMessage({ tools: "60" }, "*");
  22600. } else if (t == 61) {
  22601. window.topU.postMessage({ tools: "61" }, "*");
  22602. } else if (t == 63) {
  22603. window.topU.postMessage({ tools: "63" }, "*");
  22604. } else if (t == 71) {
  22605. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  22606. // this.$message.error("该工具不可使用");
  22607. // return
  22608. // }
  22609. window.topU.postMessage({ tools: "71" }, "*");
  22610. } else if (t == 72) {
  22611. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  22612. .taskJson[index].toolChoose[i].appJson
  22613. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22614. .toolChoose[i].appJson
  22615. : "";
  22616. if(!item || !item.url){
  22617. this.$message.error(this.lang.ssAppConnectionEmpty);
  22618. return;
  22619. }
  22620. if (!document.fullscreenElement) {
  22621. this.enterFullScreen();
  22622. }
  22623. this.$refs.appStoreC.getData(item.url,this.userid)
  22624. // window.topU.postMessage({ tools: "72", data: item }, "*");
  22625. // window.open(item.url, "_blank");
  22626. } else if (t == 69) {
  22627. if (this.worksStudent[i].length) {
  22628. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22629. if (this.userid == this.worksStudent[i][k].userid) {
  22630. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  22631. break;
  22632. } else {
  22633. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  22634. }
  22635. }
  22636. } else {
  22637. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  22638. }
  22639. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  22640. .taskJson[index].toolChoose[i].englishList
  22641. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22642. .toolChoose[i].englishList
  22643. : {};
  22644. this.englishToolIndex = i;
  22645. this.myAnList = this.myAnswerList1;
  22646. this.engDialogVisible = true;
  22647. } else if (t == 70) {
  22648. if (this.worksStudent[i].length) {
  22649. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22650. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  22651. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  22652. break;
  22653. } else {
  22654. this.englishVoiceJsonWork = [];
  22655. }
  22656. }
  22657. } else {
  22658. this.englishVoiceJsonWork = [];
  22659. }
  22660. let englishVoiceJson = {}
  22661. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22662. .taskJson[index].toolChoose[i].englishVoiceJson
  22663. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22664. .toolChoose[i].englishVoiceJson
  22665. : {};
  22666. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  22667. this.EnglishVoiceDialog = true;
  22668. } else if (t == 65) {
  22669. if (this.tType == 2) {
  22670. this.$message.error(this.lang.ssNotSupportedForStudents);
  22671. return;
  22672. }
  22673. this.uploadCid = this.tcid;
  22674. if (!this.uploadCid) {
  22675. this.$message.error(
  22676. this.lang.ssNoClassPermission
  22677. );
  22678. return;
  22679. }
  22680. this.selectPickStudent();
  22681. } else if (t == 26) {
  22682. window.topU.postMessage(
  22683. {
  22684. tools: "26",
  22685. cid: this.id,
  22686. stage: this.courseType,
  22687. task: this.taskCount,
  22688. tool: i,
  22689. },
  22690. "*"
  22691. );
  22692. } else if (t == 40) {
  22693. if (this.evalCount > 0) {
  22694. this.updateCount(this.evalCount, t);
  22695. } else {
  22696. this.evalCount++;
  22697. a = this.evalCount;
  22698. this.toolsCount(a, t);
  22699. }
  22700. this.eScore = { eBzText: "", eStar: [] };
  22701. if (this.worksStudent[i].length) {
  22702. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22703. if (this.userid == this.worksStudent[i][k].userid) {
  22704. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  22705. this.rateJson =
  22706. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22707. index
  22708. ].toolChoose[i].rateJson;
  22709. break;
  22710. } else {
  22711. this.rateJson =
  22712. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22713. index
  22714. ].toolChoose[i].rateJson;
  22715. }
  22716. }
  22717. } else {
  22718. this.rateJson =
  22719. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22720. index
  22721. ].toolChoose[i].rateJson;
  22722. }
  22723. this.isStar = false;
  22724. this.studentEvalDialogVisible = true;
  22725. } else if (t == 41) {
  22726. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22727. .taskJson[index].toolChoose[i].selectJson
  22728. ? JSON.parse(
  22729. JSON.stringify(
  22730. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22731. index
  22732. ].toolChoose[i].selectJson
  22733. )
  22734. )
  22735. : { url: "", select: [], answer: [] };
  22736. if (this.worksStudent[i].length) {
  22737. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22738. if (this.userid == this.worksStudent[i][k].userid) {
  22739. var a = this.worksStudent[i][k].works.split(",");
  22740. for (var ki = 0; ki < a.length; ki++) {
  22741. a[ki] = parseInt(a[ki]);
  22742. }
  22743. this.selectAnswer = {
  22744. answer: a,
  22745. stu: this.worksStudent[i][k].sName,
  22746. };
  22747. break;
  22748. } else {
  22749. this.selectAnswer = { answer: [], stu: "" };
  22750. }
  22751. }
  22752. } else {
  22753. this.selectAnswer = { answer: [], stu: "" };
  22754. }
  22755. this.isSelect = false;
  22756. this.dialogVisibleSelect = true;
  22757. } else if (t == 44) {
  22758. window.topU.postMessage({ tools: "44" }, "*");
  22759. } else if (t == 47) {
  22760. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  22761. .taskJson[index].toolChoose[i].sentenceList
  22762. ? JSON.parse(
  22763. JSON.stringify(
  22764. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22765. index
  22766. ].toolChoose[i].sentenceList
  22767. )
  22768. )
  22769. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  22770. for (var q = 0; q < this.sentenceList.length; q++) {
  22771. this.sentenceList[q].chooseSenList = [];
  22772. this.sentenceList[q].addChangeSen = [];
  22773. this.sentenceList[q].addChangeSen = JSON.parse(
  22774. JSON.stringify(this.sentenceList[q].addSentence)
  22775. );
  22776. this.sentenceList[q].chooseSenList.length =
  22777. this.sentenceList[q].rightAnswer.length;
  22778. }
  22779. this.dialogVisibleSentence = true;
  22780. } else if (t == 48) {
  22781. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22782. .taskJson[index].toolChoose[i].tableJson
  22783. ? JSON.parse(
  22784. JSON.stringify(
  22785. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22786. index
  22787. ].toolChoose[i].tableJson
  22788. )
  22789. )
  22790. : { text: "" };
  22791. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  22792. if (this.worksStudent[i].length) {
  22793. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22794. if (this.userid == this.worksStudent[i][k].userid) {
  22795. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  22796. break;
  22797. }
  22798. }
  22799. }
  22800. this.dialogVisibleTable = true;
  22801. } else if (t == 52) {
  22802. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22803. .taskJson[index].toolChoose[i].wordJson
  22804. ? JSON.parse(
  22805. JSON.stringify(
  22806. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22807. index
  22808. ].toolChoose[i].wordJson
  22809. )
  22810. )
  22811. : { text: "" };
  22812. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  22813. if (this.worksStudent[i].length) {
  22814. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22815. if (this.userid == this.worksStudent[i][k].userid) {
  22816. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  22817. break;
  22818. }
  22819. }
  22820. }
  22821. this.dialogVisibleWord = true;
  22822. } else if (t == 49) {
  22823. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  22824. return
  22825. }
  22826. this.groupJson =
  22827. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22828. index
  22829. ].toolChoose[i].groupJson;
  22830. this.islock = this.groupJson.islock == 1 ? true : false;
  22831. this.dialogVisibleGroup = true;
  22832. } else if (t == 62) {
  22833. this.videoType = 0;
  22834. this.videoJson = {};
  22835. this.videoJson =
  22836. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22837. index
  22838. ].toolChoose[i].videoJson;
  22839. this.dialogVisibleVideo = true;
  22840. }
  22841. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  22842. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  22843. },
  22844. teacherWorkSubmit(t, i, index, s) {
  22845. console.log('t',t);
  22846. if(t == 72) return
  22847. this.sStudent = s;
  22848. this.toolindex = i;
  22849. this.sTool = t;
  22850. if (this.tType !== "1" && this.tType !== "4") {
  22851. return;
  22852. }
  22853. if (t == 16 || t == 32 || t == 50) {
  22854. this.dialogVisibleWorks = true;
  22855. } else if (t == 15) {
  22856. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22857. .taskJson[index].toolChoose[i].answerQ
  22858. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22859. .toolChoose[i].answerQ
  22860. : "";
  22861. this.questionAnswer = "";
  22862. this.answerDialogVisibleTeacher = true; //问答
  22863. } else if (t == 52) {
  22864. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22865. .taskJson[index].toolChoose[i].wordJson
  22866. ? JSON.parse(
  22867. JSON.stringify(
  22868. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22869. index
  22870. ].toolChoose[i].wordJson
  22871. )
  22872. )
  22873. : { text: "" };
  22874. if (this.worksStudent[i].length) {
  22875. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22876. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22877. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  22878. break;
  22879. }
  22880. }
  22881. }
  22882. this.dialogVisibleWordTeacher = true; //文档
  22883. } else if (t == 4) {
  22884. this.radio = [];
  22885. this.noteName = "";
  22886. this.isAnswer = false;
  22887. if (this.askCount > 0) {
  22888. this.updateCount(this.askCount, t);
  22889. } else {
  22890. this.askCount++;
  22891. a = this.askCount;
  22892. this.toolsCount(a, t);
  22893. }
  22894. if (!this.dialogVisible2) {
  22895. this.askJson.askJson =
  22896. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22897. index
  22898. ].toolChoose[i].askJson;
  22899. this.askJson.askTitle =
  22900. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22901. index
  22902. ].toolChoose[i].askTitle;
  22903. this.askJson.askCount =
  22904. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22905. index
  22906. ].toolChoose[i].askCount;
  22907. } else {
  22908. this.askJson.askJson = this.chapTools.askJson.askJson;
  22909. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22910. this.askJson.askCount = this.chapTools.askJson.askCount;
  22911. }
  22912. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22913. if (this.askJson.askJson[k].type == "2") {
  22914. this.radio.push([]);
  22915. } else {
  22916. this.radio.push("");
  22917. }
  22918. }
  22919. this.dialogVisible5Teacher = true;
  22920. } else if (t == 45) {
  22921. this.noteName = "";
  22922. this.radio = [];
  22923. this.isAnswer = false;
  22924. if (this.askCount > 0) {
  22925. this.updateCount(this.askCount, t);
  22926. } else {
  22927. this.askCount++;
  22928. a = this.askCount;
  22929. this.toolsCount(a, t);
  22930. }
  22931. this.testJson =
  22932. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22933. index
  22934. ].toolChoose[i].testJson;
  22935. for (var k = 0; k < this.testJson.testJson.length; k++) {
  22936. if (this.testJson.testJson[k].type == "2") {
  22937. this.radio.push([]);
  22938. } else {
  22939. this.radio.push("");
  22940. }
  22941. }
  22942. this.dialogVisibleChoiceTeacher = true;
  22943. } else if (t == 41) {
  22944. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22945. .taskJson[index].toolChoose[i].selectJson
  22946. ? JSON.parse(
  22947. JSON.stringify(
  22948. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22949. index
  22950. ].toolChoose[i].selectJson
  22951. )
  22952. )
  22953. : { url: "", select: [], answer: [] };
  22954. if (this.worksStudent[i].length) {
  22955. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22956. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22957. var a = this.worksStudent[i][k].works.split(",");
  22958. for (var ki = 0; ki < a.length; ki++) {
  22959. a[ki] = parseInt(a[ki]);
  22960. }
  22961. this.selectAnswer = {
  22962. answer: a,
  22963. stu: this.worksStudent[i][k].sName,
  22964. };
  22965. break;
  22966. } else {
  22967. this.selectAnswer = { answer: [], stu: "" };
  22968. }
  22969. }
  22970. } else {
  22971. this.selectAnswer = { answer: [], stu: "" };
  22972. }
  22973. this.isSelect = false;
  22974. this.dialogVisibleSelectTeacher = true;
  22975. } else if (t == 47) {
  22976. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  22977. .taskJson[index].toolChoose[i].sentenceList
  22978. ? JSON.parse(
  22979. JSON.stringify(
  22980. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22981. index
  22982. ].toolChoose[i].sentenceList
  22983. )
  22984. )
  22985. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  22986. for (var q = 0; q < this.sentenceList.length; q++) {
  22987. this.sentenceList[q].chooseSenList = [];
  22988. this.sentenceList[q].addChangeSen = [];
  22989. this.sentenceList[q].addChangeSen = JSON.parse(
  22990. JSON.stringify(this.sentenceList[q].addSentence)
  22991. );
  22992. this.sentenceList[q].chooseSenList.length =
  22993. this.sentenceList[q].rightAnswer.length;
  22994. }
  22995. this.dialogVisibleSentenceTeacher = true;
  22996. } else if (t == 48) {
  22997. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22998. .taskJson[index].toolChoose[i].tableJson
  22999. ? JSON.parse(
  23000. JSON.stringify(
  23001. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23002. index
  23003. ].toolChoose[i].tableJson
  23004. )
  23005. )
  23006. : { text: "" };
  23007. if (this.worksStudent[i].length) {
  23008. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23009. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23010. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23011. break;
  23012. }
  23013. }
  23014. }
  23015. this.dialogVisibleTableTeacher = true;
  23016. } else if (t == 40) {
  23017. if (this.evalCount > 0) {
  23018. this.updateCount(this.evalCount, t);
  23019. } else {
  23020. this.evalCount++;
  23021. a = this.evalCount;
  23022. this.toolsCount(a, t);
  23023. }
  23024. this.eScore = { eBzText: "", eStar: [] };
  23025. if (this.worksStudent[i].length) {
  23026. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23027. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23028. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23029. this.rateJson =
  23030. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23031. index
  23032. ].toolChoose[i].rateJson;
  23033. break;
  23034. } else {
  23035. this.rateJson =
  23036. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23037. index
  23038. ].toolChoose[i].rateJson;
  23039. }
  23040. }
  23041. } else {
  23042. this.rateJson =
  23043. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23044. index
  23045. ].toolChoose[i].rateJson;
  23046. }
  23047. this.isStar = false;
  23048. this.studentEvalDialogVisibleTeacher = true;
  23049. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  23050. window.topU.postMessage(
  23051. {
  23052. tools: t + "teacher",
  23053. cid: this.id,
  23054. stage: this.courseType,
  23055. task: this.taskCount,
  23056. tool: i,
  23057. student: this.sStudent,
  23058. },
  23059. "*"
  23060. );
  23061. }else if (t == 72) {
  23062. if (!document.fullscreenElement) {
  23063. this.enterFullScreen();
  23064. }
  23065. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  23066. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  23067. }
  23068. },
  23069. openCocoPi(tool, i, uid, uname) {
  23070. let student = {
  23071. userid: uid,
  23072. student: uname,
  23073. };
  23074. if (tool == 57) {
  23075. window.topU.postMessage(
  23076. {
  23077. tools: tool + "teacher",
  23078. cid: this.id,
  23079. stage: this.courseType,
  23080. task: this.taskCount,
  23081. tool: i,
  23082. student: student,
  23083. },
  23084. "*"
  23085. );
  23086. }
  23087. },
  23088. setRightAnswer(s, i, j) {
  23089. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  23090. if (
  23091. this.sentenceList[i].chooseSenList[q] == undefined ||
  23092. this.sentenceList[i].chooseSenList[q] == ""
  23093. ) {
  23094. this.sentenceList[i].chooseSenList[q] = s;
  23095. this.sentenceList[i].addChangeSen[j] = "";
  23096. break;
  23097. }
  23098. }
  23099. this.$forceUpdate();
  23100. },
  23101. returnCard(r, i, j) {
  23102. var a = this.sentenceList[i].addSentence.indexOf(r);
  23103. this.sentenceList[i].chooseSenList[j] = "";
  23104. this.sentenceList[i].addChangeSen[a] = r;
  23105. this.$forceUpdate();
  23106. },
  23107. // addSentenceTool() {
  23108. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23109. // this.taskCount
  23110. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  23111. // this.sentenceList = [
  23112. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  23113. // ];
  23114. // this.dialogVisibleSentence = false;
  23115. // },
  23116. toolsCount(a, t) {
  23117. let params = {
  23118. cid: this.id,
  23119. chid: this.courseType,
  23120. uid: this.userid,
  23121. tid: t,
  23122. count: a,
  23123. };
  23124. this.ajax
  23125. .get(this.$store.state.api + "insertToolsCount", params)
  23126. .then((res) => {
  23127. this.selectCount();
  23128. })
  23129. .catch((err) => {
  23130. console.error(err);
  23131. });
  23132. },
  23133. updateCount(c, t) {
  23134. c++;
  23135. let params = {
  23136. cid: this.id,
  23137. chid: this.courseType,
  23138. uid: this.userid,
  23139. tid: t,
  23140. count: c,
  23141. };
  23142. this.ajax
  23143. .get(this.$store.state.api + "updateToolsCount", params)
  23144. .then((res) => {
  23145. this.selectCount();
  23146. })
  23147. .catch((err) => {
  23148. console.error(err);
  23149. });
  23150. },
  23151. checkEva() {
  23152. if (this.evalua != "") {
  23153. for (var i = 0; i < this.evaJuri.length; i++) {
  23154. if (this.evalua == this.evaJuri[i].id) {
  23155. this.eTitle = this.evaJuri[i].title;
  23156. this.eJson = JSON.parse(this.evaJuri[i].content);
  23157. }
  23158. }
  23159. this.$forceUpdate();
  23160. setTimeout(() => {
  23161. this.setMindData();
  23162. }, 0);
  23163. }
  23164. },
  23165. selectEva() {
  23166. let params = {
  23167. oid: this.oid,
  23168. };
  23169. this.ajax
  23170. .get(this.$store.state.api + "selectAllEvaluation", params)
  23171. .then((res) => {
  23172. this.evaJuri = res.data[0];
  23173. })
  23174. .catch((err) => {
  23175. console.error(err);
  23176. });
  23177. },
  23178. setMindData() {
  23179. this.data.data = [];
  23180. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  23181. let _eJson = Object.keys(this.eJson);
  23182. let _e = this.eJson;
  23183. for (let i = 0; i < _eJson.length; i++) {
  23184. let element = _e[_eJson[i]];
  23185. this.data.data.push({
  23186. id: element.id,
  23187. parentid: "root",
  23188. topic: element.name,
  23189. });
  23190. let _eJsonc = Object.keys(element.child);
  23191. let _e2 = element.child;
  23192. for (let j = 0; j < _eJsonc.length; j++) {
  23193. let _ec = _e2[_eJsonc[j]];
  23194. this.data.data.push({
  23195. id: _ec.id,
  23196. parentid: element.id,
  23197. topic: _ec.name,
  23198. });
  23199. let _eJsonz = Object.keys(_ec.child);
  23200. let _e3 = _ec.child;
  23201. for (let z = 0; z < _eJsonz.length; z++) {
  23202. let _ez = _e3[_eJsonz[z]];
  23203. this.data.data.push({
  23204. id: _ez.id,
  23205. parentid: _ec.id,
  23206. topic: _ez.name,
  23207. });
  23208. }
  23209. }
  23210. }
  23211. this.$forceUpdate();
  23212. },
  23213. checkFileFull(type, url) {
  23214. this.fullDialogVisible = true;
  23215. this.fulltype = type;
  23216. this.fullUrl = url;
  23217. },
  23218. async checkFileFull1(t, f) {
  23219. this.fullDialogVisible = true;
  23220. if (t == 6) {
  23221. this.fulltype = 1;
  23222. this.fullUrl = JSON.parse(JSON.stringify(f));
  23223. } else if (t == 8) {
  23224. this.fulltype = 2;
  23225. this.fullUrl = f.url;
  23226. }else if (t == 15) {
  23227. this.fulltype = 4;
  23228. this.fullUrl = f.url;
  23229. } else if (t == 16) {
  23230. this.fulltype = 16;
  23231. this.fullUrl = f.url;
  23232. } else if (
  23233. t == 3 &&
  23234. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  23235. "PDF"
  23236. ) {
  23237. this.fulltype = 3;
  23238. this.fullUrl = f.url;
  23239. } else if (t == 3) {
  23240. this.fulltype = 2;
  23241. let _uuurl = await this.checkLink(f.url);
  23242. console.log(_uuurl)
  23243. this.fullUrl =
  23244. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  23245. }
  23246. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  23247. },
  23248. openSname(n, id, i, uid) {
  23249. this.snameWid = id;
  23250. this.worksSName = n;
  23251. this.worksSid = uid == n ? "" : uid;
  23252. this.toolindex = i;
  23253. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23254. if (!this.uploadCid) {
  23255. this.$message.error(
  23256. this.lang.ssBatchUploadNoClassPermission
  23257. );
  23258. return;
  23259. }
  23260. this.selectUploadStudent(1);
  23261. },
  23262. updateName() {
  23263. let params = {
  23264. n: this.worksSName,
  23265. cid: this.snameWid,
  23266. };
  23267. this.ajax
  23268. .get(this.$store.state.api + "updateCourseWorksName", params)
  23269. .then((res) => {
  23270. this.$message({
  23271. message: this.lang.ssModifySuccess,
  23272. type: "success",
  23273. });
  23274. this.dialogVisibleSname = false;
  23275. this.getCourseDetail(2);
  23276. this.snameWid = "";
  23277. this.worksSName = "";
  23278. })
  23279. .catch((err) => {
  23280. console.error(err);
  23281. });
  23282. },
  23283. downloadimg(img){
  23284. console.log('img',img)
  23285. fetch(img)
  23286. .then((response) => {
  23287. if (!response.ok) throw new Error('download failed')
  23288. return response.blob()
  23289. })
  23290. .then((blob) => {
  23291. const blobUrl = URL.createObjectURL(blob)
  23292. const a = document.createElement('a')
  23293. a.href = blobUrl
  23294. a.download = img.split('.')[0] + '.jpg'
  23295. document.body.appendChild(a)
  23296. a.click()
  23297. document.body.removeChild(a)
  23298. URL.revokeObjectURL(blobUrl)
  23299. })
  23300. .catch(() => {
  23301. fallbackDownload()
  23302. })
  23303. },
  23304. downloadFile2(f) {
  23305. // const loading = this.$loading.service({
  23306. // background: "rgba(255, 255, 255, 0.7)",
  23307. // target: document.body,
  23308. // text: "文件加载中...",
  23309. // });
  23310. // let url2 = f.url;
  23311. // let _url2 = "";
  23312. // if (
  23313. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23314. // ) {
  23315. // _url2 = url2.split(
  23316. // "https://view.officeapps.live.com/op/view.aspx?src="
  23317. // )[1];
  23318. // } else {
  23319. // _url2 = url2;
  23320. // }
  23321. // let params = {
  23322. // url: _url2,
  23323. // name: f.name,
  23324. // };
  23325. // this.ajax
  23326. // .get(this.$store.state.api + "download", params)
  23327. // .then((res) => {
  23328. // loading.close();
  23329. // let content = res.data.data.data;
  23330. // let ab = new ArrayBuffer(content.length);
  23331. // let view = new Uint8Array(ab);
  23332. // for (var i = 0; i < content.length; ++i) {
  23333. // view[i] = content[i];
  23334. // }
  23335. // let elink = document.createElement("a");
  23336. // elink.download = f.name;
  23337. // elink.style.display = "none";
  23338. // let blob = new Blob([ab], {
  23339. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  23340. // });
  23341. // elink.href = URL.createObjectURL(blob);
  23342. // document.body.appendChild(elink);
  23343. // elink.click();
  23344. // document.body.removeChild(elink);
  23345. // })
  23346. // .catch((err) => {
  23347. // loading.close();
  23348. // console.error(err);
  23349. // });
  23350. var credentials = {
  23351. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23352. secretAccessKey: "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",
  23353. }; //秘钥形式的登录上传
  23354. window.AWS.config.update(credentials);
  23355. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23356. let url2 = f.url;
  23357. let _url2 = "";
  23358. if (
  23359. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23360. ) {
  23361. _url2 = url2.split(
  23362. "https://view.officeapps.live.com/op/view.aspx?src="
  23363. )[1];
  23364. } else {
  23365. _url2 = url2;
  23366. }
  23367. let _this = this;
  23368. _this.downLoading = true
  23369. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23370. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  23371. var params = {
  23372. Bucket: "ccrb",
  23373. Key: name
  23374. };
  23375. s3.getObject(params, function (err, data) {
  23376. _this.downLoading = false
  23377. if (err) console.log(err, err.stack); // an error occurred
  23378. else {
  23379. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23380. let a = document.createElement("a");
  23381. a.name = f.name;
  23382. a.href = url;
  23383. a.download = f.name;
  23384. a.click();
  23385. console.log(data);
  23386. } // sxuccessful response
  23387. });
  23388. return;
  23389. // let url = f.url;
  23390. // let _url = "";
  23391. // if (
  23392. // url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23393. // ) {
  23394. // _url = url.split(
  23395. // "https://view.officeapps.live.com/op/view.aspx?src="
  23396. // )[1];
  23397. // } else {
  23398. // _url = url;
  23399. // }
  23400. // _this.downLoading = true
  23401. // // const loading = _this.$loading.service({
  23402. // // background: "rgba(255, 255, 255, 0.7)",
  23403. // // target: document.body,
  23404. // // text: "文件加载中...",
  23405. // // });
  23406. // let x = new XMLHttpRequest();
  23407. // x.open("GET", _url, true);
  23408. // x.responseType = "blob";
  23409. // x.onload = function () {
  23410. // _this.downLoading = false
  23411. // // loading.close();
  23412. // let url = window.URL.createObjectURL(new Blob([x.response]));
  23413. // let a = document.createElement("a");
  23414. // a.name = f.name;
  23415. // a.href = url;
  23416. // a.download = f.name;
  23417. // a.click();
  23418. // };
  23419. // x.send();
  23420. },
  23421. downloadFile(url,uid) {
  23422. if (this.tType == 1 || this.userid == uid) {
  23423. let hz = url.substring(url.lastIndexOf(".") + 1);
  23424. if (hz == "txt" || hz == "md") {
  23425. this.lookTxt(url);
  23426. return;
  23427. }
  23428. var credentials = {
  23429. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23430. secretAccessKey: "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",
  23431. }; //秘钥形式的登录上传
  23432. window.AWS.config.update(credentials);
  23433. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23434. let url2 = url;
  23435. let _url2 = "";
  23436. if (
  23437. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23438. ) {
  23439. _url2 = url2.split(
  23440. "https://view.officeapps.live.com/op/view.aspx?src="
  23441. )[1];
  23442. } else {
  23443. _url2 = url2;
  23444. }
  23445. const loading2 = this.$loading.service({
  23446. background: "rgba(255, 255, 255, 0.7)",
  23447. target: document.body,
  23448. text: "文件加载中...",
  23449. });
  23450. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23451. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  23452. var params = {
  23453. Bucket: "ccrb",
  23454. Key: name
  23455. };
  23456. s3.getObject(params, function (err, data) {
  23457. loading2.close();
  23458. if (err) console.log(err, err.stack); // an error occurred
  23459. else {
  23460. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23461. let a = document.createElement("a");
  23462. a.name = name;
  23463. a.href = url;
  23464. a.download = name;
  23465. a.click();
  23466. console.log(data);
  23467. } // sxuccessful response
  23468. });
  23469. }
  23470. return;
  23471. // let _this = this;
  23472. // let _url = "";
  23473. // if (
  23474. // url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23475. // ) {
  23476. // _url = url.split(
  23477. // "https://view.officeapps.live.com/op/view.aspx?src="
  23478. // )[1];
  23479. // } else {
  23480. // _url = url;
  23481. // }
  23482. // const x = new XMLHttpRequest();
  23483. // x.open("GET", _url, true);
  23484. // x.responseType = "blob";
  23485. // // this.downLoading = true
  23486. // const loading = _this.$loading.service({
  23487. // background: "rgba(255, 255, 255, 0.7)",
  23488. // target: document.body,
  23489. // text: "文件加载中...",
  23490. // });
  23491. // // _this.$message.success("文件下载中...");
  23492. // x.onload = function (e) {
  23493. // this.downLoading = false
  23494. // loading.close();
  23495. // let content = x.response;
  23496. // let elink = document.createElement("a");
  23497. // elink.download = decodeURI(
  23498. // _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23499. // );
  23500. // elink.style.display = "none";
  23501. // let blob = new Blob([content]);
  23502. // elink.href = URL.createObjectURL(blob);
  23503. // document.body.appendChild(elink);
  23504. // elink.click();
  23505. // document.body.removeChild(elink);
  23506. // };
  23507. // x.send();
  23508. },
  23509. openLine(url) {
  23510. window.open(url);
  23511. },
  23512. resize() {
  23513. if (document.getElementsByClassName("box_course").length) {
  23514. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  23515. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  23516. if (this.showType == 2 || this.showType == 3) {
  23517. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  23518. document.getElementsByClassName("navBox")[0].style.height =
  23519. a - 40 + 0+ "px";
  23520. }
  23521. } else {
  23522. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  23523. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  23524. }
  23525. }
  23526. }
  23527. this.Stbodywidth =
  23528. document.getElementsByClassName("student_body").length &&
  23529. document.getElementsByClassName("student_body")[0].offsetWidth;
  23530. },
  23531. closeDraw() {
  23532. this.bg = null;
  23533. this.drawShow = false;
  23534. },
  23535. showPicturePaint(url) {
  23536. let params = {
  23537. img: url,
  23538. };
  23539. this.ajax
  23540. .get(this.$store.state.api + "imgToBase64", params)
  23541. .then((res) => {
  23542. this.drawShow = true;
  23543. this.bg = res.data[0].img;
  23544. })
  23545. .catch((err) => {
  23546. console.error(err);
  23547. });
  23548. },
  23549. addImgDraw(base64) {
  23550. let file = { name: "批注图.png" };
  23551. let img = this.dataUrlToFile(base64, file);
  23552. this.beforeUpload1(img, 5);
  23553. },
  23554. addImgDrawImG(url) {
  23555. // console.log(url);
  23556. let params = [
  23557. {
  23558. wid: this.commentDetail.wid,
  23559. img: url,
  23560. },
  23561. ];
  23562. this.ajax
  23563. .post(this.$store.state.api + "updateCourseWorks", params)
  23564. .then((res) => {
  23565. this.$message({
  23566. message: this.lang.ssSubmitSuccess,
  23567. type: "success",
  23568. });
  23569. this.drawShow = false;
  23570. this.bg = "";
  23571. this.selectSWorks();
  23572. this.selectStudent();
  23573. })
  23574. .catch((err) => {
  23575. this.$message.error(this.lang.ssSubmitFailed);
  23576. console.error(err);
  23577. });
  23578. },
  23579. deletePicturePaint() {
  23580. this.$confirm(this.lang.ssConfirmDeleteAnnotation, this.lang.ssPrompt, {
  23581. confirmButtonText: this.lang.ssConfirm,
  23582. cancelButtonText: this.lang.ssCancel,
  23583. type: "warning",
  23584. })
  23585. .then(() => {
  23586. let params = [
  23587. {
  23588. wid: this.commentDetail.wid,
  23589. img: "",
  23590. },
  23591. ];
  23592. this.ajax
  23593. .post(this.$store.state.api + "updateCourseWorks", params)
  23594. .then((res) => {
  23595. this.$message({
  23596. message: this.lang.ssDeleteSuccess,
  23597. type: "success",
  23598. });
  23599. this.selectSWorks();
  23600. this.selectStudent();
  23601. })
  23602. .catch((err) => {
  23603. this.$message.error(this.lang.ssDeleteFailed);
  23604. console.error(err);
  23605. });
  23606. })
  23607. .catch(() => {});
  23608. },
  23609. getAudioVideo(constraintsData) {
  23610. if (navigator.mediaDevices === undefined) {
  23611. navigator.mediaDevices = {};
  23612. }
  23613. if (navigator.mediaDevices.getUserMedia === undefined) {
  23614. navigator.mediaDevices.getUserMedia = function (constraints) {
  23615. // 首先,如果有getUserMedia的话,就获得它
  23616. var getUserMedia =
  23617. navigator.getUserMedia ||
  23618. navigator.webkitGetUserMedia ||
  23619. navigator.mozGetUserMedia ||
  23620. navigator.msGetUserMedia;
  23621. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  23622. if (!getUserMedia) {
  23623. return Promise.reject({ code: 404 });
  23624. }
  23625. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  23626. return new Promise(function (resolve, reject) {
  23627. getUserMedia.call(navigator, constraints, resolve, reject);
  23628. });
  23629. };
  23630. }
  23631. return navigator.mediaDevices.getUserMedia(constraintsData);
  23632. },
  23633. /**
  23634. * 开始录制
  23635. */
  23636. startRecording(callback) {
  23637. let _function = (screenStream) => {
  23638. this.addStreamStopListener(screenStream, () => {
  23639. console.log(this.lang.ssStreamStopListening);
  23640. this.stopRecording();
  23641. this.$emit("streamStop", {});
  23642. // this.stopRecording();
  23643. });
  23644. var options = {
  23645. type: "video",
  23646. mimeType: "video/webm",
  23647. disableLogs: false,
  23648. getNativeBlob: false, // enable it for longer recordings
  23649. ignoreMutedMedia: false,
  23650. };
  23651. // this.video.srcObject = screenStream;
  23652. this.recorder = RecordRTC(screenStream, options);
  23653. this.recorder.startRecording();
  23654. this.recorder.screen = screenStream;
  23655. this.videoStart = true;
  23656. // callback(true);
  23657. };
  23658. this.getAudioVideo({ audio: true })
  23659. .then((res) => {
  23660. this.captureScreen(_function, true);
  23661. console.log(this.lang.ssPermissionGrantedSuccess);
  23662. })
  23663. .catch((err) => {
  23664. // console.log('浏览器不支持,请更换浏览器')
  23665. // } else {
  23666. this.captureScreen(_function, false);
  23667. console.log(this.lang.ssCheckMicrophone);
  23668. });
  23669. },
  23670. /**
  23671. * 停止录制
  23672. */
  23673. stopRecording(callback) {
  23674. this.recorder.stopRecording(() => {
  23675. // this.video.src = this.video.srcObject = null;
  23676. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  23677. const url = URL.createObjectURL(this.recorder.getBlob());
  23678. const a = document.createElement("a"); //this.fileName+
  23679. let videoFile = new File(
  23680. [this.recorder.getBlob()],
  23681. this.courseDetail.title + this.lang.ssScreenRecording+'.mp4',
  23682. {
  23683. type: "video/mp4",
  23684. }
  23685. );
  23686. let downloadUrl = URL.createObjectURL(videoFile);
  23687. if(this.$refs.classRoomHelperRef){
  23688. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  23689. }
  23690. document.body.appendChild(a);
  23691. a.style.display = "none";
  23692. a.href = url;
  23693. a.download = this.courseDetail.title + this.lang.ssScreenRecording+'.mp4'; //this.fileName +
  23694. a.click();
  23695. this.recorder.screen.stop();
  23696. this.recorder.destroy();
  23697. this.recorder = null;
  23698. this.videoStart = false;
  23699. // callback(false);
  23700. });
  23701. },
  23702. //初始化
  23703. captureScreen(callback, type) {
  23704. if (navigator.getDisplayMedia) {
  23705. //录制结束,文件下载
  23706. navigator
  23707. .getDisplayMedia({
  23708. video: true,
  23709. })
  23710. .then((screenStream) => {
  23711. if (type) {
  23712. navigator.mediaDevices
  23713. .getUserMedia({ audio: true })
  23714. .then((mic) => {
  23715. screenStream.addTrack(mic.getTracks()[0]);
  23716. callback(screenStream);
  23717. });
  23718. } else {
  23719. callback(screenStream);
  23720. }
  23721. })
  23722. .catch(function (error) {
  23723. console.log("error", error);
  23724. });
  23725. } else if (navigator.mediaDevices.getDisplayMedia) {
  23726. navigator.mediaDevices
  23727. .getDisplayMedia({
  23728. video: true,
  23729. })
  23730. .then((screenStream) => {
  23731. if (type) {
  23732. navigator.mediaDevices
  23733. .getUserMedia({ audio: true })
  23734. .then((mic) => {
  23735. screenStream.addTrack(mic.getTracks()[0]);
  23736. callback(screenStream);
  23737. });
  23738. } else {
  23739. callback(screenStream);
  23740. }
  23741. })
  23742. .catch(function (error) {
  23743. console.log("error", error);
  23744. });
  23745. } else {
  23746. var error = "getDisplayMedia API are not supported in this browser.";
  23747. console.log("error", error);
  23748. alert(error);
  23749. }
  23750. },
  23751. //流监听
  23752. addStreamStopListener(stream, callback) {
  23753. stream.addEventListener(
  23754. "ended",
  23755. function () {
  23756. callback();
  23757. callback = function () {};
  23758. },
  23759. false
  23760. );
  23761. stream.addEventListener(
  23762. "inactive",
  23763. function () {
  23764. callback();
  23765. callback = function () {};
  23766. },
  23767. false
  23768. );
  23769. stream.getTracks().forEach(function (track) {
  23770. track.addEventListener(
  23771. "ended",
  23772. function () {
  23773. callback();
  23774. callback = function () {};
  23775. },
  23776. false
  23777. );
  23778. track.addEventListener(
  23779. "inactive",
  23780. function () {
  23781. callback();
  23782. callback = function () {};
  23783. },
  23784. false
  23785. );
  23786. });
  23787. },
  23788. updateGroup() {
  23789. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23790. this.dialogVisibleGroup2 = true;
  23791. },
  23792. numberPan() {
  23793. if (
  23794. /[^\d]/.test(this.groupJson.number) ||
  23795. this.groupJson.number < 2 ||
  23796. this.groupJson.number > 10
  23797. ) {
  23798. this.$message.error(this.lang.ssEnterNumber2To10);
  23799. this.groupJson.number = "";
  23800. }
  23801. },
  23802. updateGroupJson() {
  23803. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  23804. if (
  23805. this.groupStudentUid[this.toolindex][i].length >
  23806. this.groupJson2.number
  23807. ) {
  23808. this.$message.error(this.lang.ssGroupLargerThanSet);
  23809. return;
  23810. }
  23811. }
  23812. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  23813. this.islock = this.groupJson.islock == 1 ? true : false;
  23814. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23815. this.taskCount
  23816. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  23817. let params = [
  23818. {
  23819. cid: this.id,
  23820. chapters: JSON.stringify(this.chapInfoList),
  23821. uid: this.userid,
  23822. unitIndex: this.courseType,
  23823. },
  23824. ];
  23825. this.ajax
  23826. .post(this.$store.state.api + "updateWorkNew4", params)
  23827. .then((res) => {
  23828. this.$message.success(this.lang.ssSettingSuccess);
  23829. this.getCourseDetail(2);
  23830. this.dialogVisibleGroup2 = false;
  23831. this.groupJson2 = {};
  23832. this.$forceUpdate();
  23833. })
  23834. .catch((err) => {
  23835. this.$message.error(this.lang.ssNetworkPoor);
  23836. console.error(err);
  23837. });
  23838. },
  23839. lockChair() {
  23840. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23841. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  23842. this.updateGroupJson();
  23843. },
  23844. selectGroup(index) {
  23845. this.getCourseDetail(2, index);
  23846. },
  23847. joinGroup(index) {
  23848. if (this.groupJson.islock == 2) {
  23849. this.$message.error(this.lang.ssPositionLockedCannotJoin);
  23850. return;
  23851. }
  23852. if (
  23853. this.groupStudent[this.toolindex][index].length >
  23854. this.groupJson.number ||
  23855. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  23856. ) {
  23857. this.$message.error(this.lang.ssPositionFullCannotJoin);
  23858. return;
  23859. }
  23860. let params = [
  23861. {
  23862. cid: this.id,
  23863. stage: this.courseType,
  23864. task: this.taskCount,
  23865. tool: this.toolindex,
  23866. g: index,
  23867. uid: this.userid,
  23868. },
  23869. ];
  23870. this.ajax
  23871. .post(this.$store.state.api + "joinGroup", params)
  23872. .then((res) => {
  23873. this.$message.success(this.lang.ssJoinSuccess);
  23874. this.getCourseDetail(2);
  23875. })
  23876. .catch((err) => {
  23877. this.$message.error(this.lang.ssNetworkPoor);
  23878. console.error(err);
  23879. });
  23880. },
  23881. exitGroup(id) {
  23882. if (this.groupJson.islock == 2) {
  23883. this.$message.error(this.lang.ssPositionLockedCannotExit);
  23884. return;
  23885. }
  23886. let params = [
  23887. {
  23888. gid: id,
  23889. },
  23890. ];
  23891. this.ajax
  23892. .post(this.$store.state.api + "exitGroup", params)
  23893. .then((res) => {
  23894. this.$message.success(this.lang.ssExitSuccess);
  23895. this.getCourseDetail(2);
  23896. })
  23897. .catch((err) => {
  23898. this.$message.error(this.lang.ssNetworkPoor);
  23899. console.error(err);
  23900. });
  23901. },
  23902. groupUpload(index, task, gindex) {
  23903. this.taskCount = task;
  23904. this.toolindex = index;
  23905. this.groupIndex = gindex;
  23906. this.dialogVisibleGroupWork = true;
  23907. },
  23908. updateGroupChair(user) {
  23909. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  23910. el.label = index;
  23911. return index != user.group;
  23912. });
  23913. this.updateGroupUser = user;
  23914. this.dialogVisibleUpdateGroup = true;
  23915. },
  23916. updateChair() {
  23917. if (
  23918. this.groupStudent[this.toolindex][this.checkChair].length >
  23919. this.groupJson.number ||
  23920. this.groupStudent[this.toolindex][this.checkChair].length ==
  23921. this.groupJson.number
  23922. ) {
  23923. this.$message.error(this.lang.ssPositionFullCannotJoin);
  23924. return;
  23925. }
  23926. let params = [
  23927. {
  23928. cid: this.id,
  23929. stage: this.courseType,
  23930. task: this.taskCount,
  23931. tool: this.toolindex,
  23932. g: this.checkChair,
  23933. uid: this.updateGroupUser.userid,
  23934. },
  23935. ];
  23936. this.ajax
  23937. .post(this.$store.state.api + "joinGroup", params)
  23938. .then((res) => {
  23939. this.$message.success(this.lang.ssModifySuccess);
  23940. this.updateGroupUser = {};
  23941. this.checkChair = "";
  23942. this.updateGroupArray = {};
  23943. this.dialogVisibleUpdateGroup = false;
  23944. this.getCourseDetail(2);
  23945. })
  23946. .catch((err) => {
  23947. this.$message.error(this.lang.ssNetworkPoor);
  23948. console.error(err);
  23949. });
  23950. },
  23951. deleteGroupChair(gindex) {
  23952. this.checkDeleteGroup = [];
  23953. this.deleteGroupUser = JSON.parse(
  23954. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  23955. );
  23956. this.deleteGroupArray = this.groupJson.group[gindex];
  23957. this.groupIndex = gindex;
  23958. this.dialogVisibleDeleteGroup = true;
  23959. },
  23960. async deleteChair() {
  23961. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  23962. const gid =
  23963. this.groupStudent[this.toolindex][this.groupIndex][
  23964. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  23965. this.checkDeleteGroup[i]
  23966. )
  23967. ];
  23968. let params = [
  23969. {
  23970. gid: gid.id,
  23971. },
  23972. ];
  23973. var a = await this.deleteChairA(params);
  23974. if (i == this.checkDeleteGroup.length - 1) {
  23975. this.$message.success(this.lang.ssExitSuccess);
  23976. this.dialogVisibleDeleteGroup = false;
  23977. this.deleteGroupUser = [];
  23978. this.deleteGroupArray = {};
  23979. this.groupIndex = "";
  23980. this.checkDeleteGroup = [];
  23981. this.getCourseDetail(2);
  23982. }
  23983. }
  23984. },
  23985. deleteChairA(params) {
  23986. return new Promise((resolve, reject) => {
  23987. this.ajax
  23988. .post(this.$store.state.api + "exitGroup", params)
  23989. .then((res) => {
  23990. resolve(1);
  23991. })
  23992. .catch((err) => {
  23993. this.$message.error(this.lang.ssNetworkPoor);
  23994. console.error(err);
  23995. });
  23996. });
  23997. },
  23998. contract(i) {
  23999. if (this.isCloseList[i].isClose == 0) {
  24000. this.isCloseList[i].isClose = 1;
  24001. } else {
  24002. this.isCloseList[i].isClose = 0;
  24003. }
  24004. this.$forceUpdate();
  24005. },
  24006. openWordCloud(toolindex) {
  24007. this.wordCloudData = '';
  24008. let array = [];
  24009. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  24010. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  24011. array.push({ name: works });
  24012. }
  24013. if (this.isGroup) {
  24014. for (var i = 0; i < this.courseGroup.group.length; i++) {
  24015. let works = this.courseGroup.group[i].works[toolindex];
  24016. for (var j = 0; j < works.length; j++) {
  24017. let answer = JSON.parse(works[j].works)[0].answer;
  24018. array.push({ name: answer });
  24019. }
  24020. }
  24021. }
  24022. let _result = ''
  24023. array.forEach(e=>{
  24024. _result +=e.name+','
  24025. })
  24026. this.wordCloudData = _result;
  24027. this.dialogVisibleWordCloud = true;
  24028. this.wordCloudKey += 1;
  24029. },
  24030. uploadWorks(i) {
  24031. this.$confirm(this.lang.ssConfirmExportHomework, this.lang.ssPrompt, {
  24032. confirmButtonText: this.lang.ssConfirm,
  24033. cancelButtonText: this.lang.ssCancel,
  24034. type: "warning",
  24035. })
  24036. .then(() => {
  24037. const loading = this.$loading.service({
  24038. background: "rgba(255, 255, 255, 0.7)",
  24039. target: document.body,
  24040. text: this.lang.ssFileLoading,
  24041. });
  24042. const _worksStudent = this.worksStudent;
  24043. let url = [];
  24044. var counts = {};
  24045. for (var l = 0; l < _worksStudent[i].length; l++) {
  24046. var item = _worksStudent[i][l];
  24047. var name = item.sName;
  24048. if (!counts.hasOwnProperty(name)) {
  24049. counts[name] = 0;
  24050. } else {
  24051. counts[name]++;
  24052. }
  24053. if (counts[name] > 0) {
  24054. item.sName += " (" + counts[name] + ")";
  24055. }
  24056. }
  24057. for (var l = 0; l < _worksStudent[i].length; l++) {
  24058. var item = _worksStudent[i][l];
  24059. if (
  24060. item.works.indexOf(
  24061. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  24062. ) !== -1 &&
  24063. item.works.indexOf("img") === -1
  24064. ) {
  24065. url.push({ name: item.sName, url: item.works });
  24066. }
  24067. }
  24068. // var toolList = [
  24069. // { name: "电子白板", tool: 1 },
  24070. // { name: "思维导图", tool: 3 },
  24071. // { name: "协同文档", tool: 6 },
  24072. // { name: "思维网格", tool: 7 },
  24073. // { name: "素材库", tool: 8 },
  24074. // { name: "学习资料", tool: 17 },
  24075. // { name: "便签", tool: 2 },
  24076. // { name: "问卷调查", tool: 4 },
  24077. // { name: "选择题", tool: 45 },
  24078. // { name: "倒计时", tool: 10 },
  24079. // { name: "问答", tool: 15 },
  24080. // { name: "课程设计", tool: 26 },
  24081. // { name: "训练服务器", tool: 18 },
  24082. // { name: "作业提交", tool: 16 },
  24083. // { name: "批量上传", tool: 50 },
  24084. // { name: "AIoT Blockly", tool: 21 },
  24085. // { name: "AI Python", tool: 23 },
  24086. // { name: "AI Blockly", tool: 24 },
  24087. // { name: "目标管理", tool: 25 },
  24088. // { name: "数学画板", tool: 31 },
  24089. // { name: "翻译", tool: 28 },
  24090. // { name: "魔盒识字", tool: 37 },
  24091. // { name: "数学画板", tool: 31 },
  24092. // { name: "24点", tool: 38 },
  24093. // { name: "GeoGebra", tool: 39 },
  24094. // { name: "源码编辑", tool: 32 },
  24095. // { name: "个人评价", tool: 40 },
  24096. // { name: "选择匹配", tool: 41 },
  24097. // { name: "汉字宫", tool: 44 },
  24098. // { name: "排序", tool: 47 },
  24099. // { name: "表格", tool: 48 },
  24100. // { name: "文档", tool: 52 },
  24101. // { name: "学生分组", tool: 49 },
  24102. // { name: "CocoPi", tool: 57 },
  24103. // { name: "模拟驾驶", tool: 58 },
  24104. // { name: "路径搜索", tool: 59 },
  24105. // { name: "深度学习", tool: 60 },
  24106. // { name: "全历史", tool: 61 },
  24107. // { name: "交互视频", tool: 62 },
  24108. // { name: "海龟编程", tool: 63 },
  24109. // { name: "挑人", tool: 65 },
  24110. // { name: "公式编辑", tool: 66 },
  24111. // { name: "分子结构", tool: 67 },
  24112. // { name: "时间轴", tool: 68 },
  24113. // ];
  24114. // var toolName = "";
  24115. // for(var w = 0;w<toolList.length;w++){
  24116. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  24117. // toolName = toolList[w].name;
  24118. // }
  24119. // }
  24120. console.log(url);
  24121. this.downLoadAll(url, loading);
  24122. })
  24123. .catch(() => {});
  24124. },
  24125. downLoadAll(url, loading) {
  24126. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  24127. const zip = new JSZip();
  24128. const cache = {};
  24129. const promises = [];
  24130. data.forEach((item) => {
  24131. const promise = getFile(item.url).then((data) => {
  24132. if (data.data != 1) {
  24133. // 下载文件, 并存成ArrayBuffer对象
  24134. const file_name =
  24135. item.name +
  24136. "." +
  24137. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  24138. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  24139. cache[file_name] = data.data;
  24140. }
  24141. });
  24142. promises.push(promise);
  24143. });
  24144. Promise.all(promises).then(() => {
  24145. zip.generateAsync({ type: "blob" }).then((content) => {
  24146. // 生成二进制流
  24147. FileSaver.saveAs(
  24148. content,
  24149. this.courseDetail.title + "-" + this.lang.ssHomeworkSubmissionTool + ".zip"
  24150. );
  24151. // 利用file-saver保存文件 自定义文件名
  24152. setTimeout(() => {
  24153. loading.close();
  24154. }, 2000);
  24155. });
  24156. });
  24157. },
  24158. pickStudent(stu) {
  24159. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  24160. return;
  24161. }
  24162. this.$confirm(this.lang.ssAskStudentToAnswer.replace(/\*/g, stu.name), this.lang.ssPrompt, {
  24163. confirmButtonText: this.lang.ssConfirm,
  24164. cancelButtonText: this.lang.ssCancel,
  24165. type: "warning",
  24166. })
  24167. .then(() => {
  24168. let params = [
  24169. {
  24170. uid: stu.userid,
  24171. cid: this.id,
  24172. stage: this.courseType,
  24173. task: this.taskCount,
  24174. tool: this.toolindex,
  24175. },
  24176. ];
  24177. this.ajax
  24178. .post(this.$store.state.api + "updateCoursePick", params)
  24179. .then((res) => {
  24180. this.$message.success(this.lang.ssOperationSuccess);
  24181. this.getPick();
  24182. })
  24183. .catch((err) => {
  24184. this.$message.error(this.lang.ssNetworkPoor);
  24185. console.error(err);
  24186. });
  24187. })
  24188. .catch(() => {});
  24189. },
  24190. selectUser(){
  24191. let params = {
  24192. userid: this.userid,
  24193. };
  24194. this.ajax
  24195. .get(this.$store.state.api + "selectUser", params)
  24196. .then((res) => {
  24197. this.userMes = res.data[0];
  24198. })
  24199. .catch((err) => {
  24200. console.error(err);
  24201. });
  24202. },
  24203. setEngText(i){
  24204. this.newEngIndex = i;
  24205. this.$forceUpdate();
  24206. },
  24207. addCorrect(){
  24208. this.$confirm(this.lang.ssConfirmSubmitCorrection, this.lang.ssPrompt, {
  24209. confirmButtonText: this.lang.ssConfirm,
  24210. showCancelButton: false,
  24211. closeOnClickModal: false,
  24212. type: "warning",
  24213. })
  24214. .then(() => {
  24215. let params = {
  24216. cid: this.id,
  24217. s: parseInt(this.courseType),
  24218. t: this.taskCount,
  24219. tool: this.toolindex,
  24220. wid: this.engWid,
  24221. c: this.userid,
  24222. 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) : "",
  24223. };
  24224. this.ajax
  24225. .get(this.$store.state.api + "addEngC", params)
  24226. .then((res) => {
  24227. this.$message.success(this.lang.ssSubmitSuccess);
  24228. this.engUpdateDialogVisible = false;
  24229. })
  24230. .catch((err) => {
  24231. console.error(err);
  24232. });
  24233. })
  24234. .catch(() => {});
  24235. },
  24236. selectEngC(id,z){
  24237. let params = {
  24238. workid: id,
  24239. };
  24240. this.ajax
  24241. .get(this.$store.state.api + "selectEngC", params)
  24242. .then((res) => {
  24243. if(res.data[0].length == 0){
  24244. this.newEnglishList.engTitle = z.engTitle;
  24245. this.newEnglishList.engText = z.engText;
  24246. }else{
  24247. var a = res.data[0];
  24248. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  24249. if(this.userMes[0].type == 2){
  24250. var snum = 0;
  24251. for(var i = 0;i<a.length;i++){
  24252. if(this.userMes[0].userid == a[i].correct){
  24253. this.newEnglishList = JSON.parse(a[i].cWork);
  24254. snum = 1;
  24255. }
  24256. }
  24257. if(snum == 0){
  24258. this.newEnglishList = { engTitle:"",engText:"" };
  24259. this.newEnglishList.engTitle = z.engTitle;
  24260. this.newEnglishList.engText = z.engText;
  24261. }
  24262. }else if(this.userMes[0].type == 1){
  24263. var num = 0;
  24264. for(var w= 0;w<a.length;w++){
  24265. if(this.userMes[0].userid == a[w].correct){
  24266. num = 1;
  24267. }
  24268. }
  24269. if(num == 0){
  24270. this.isNoUserid = true;
  24271. var c = JSON.parse(JSON.stringify(z));
  24272. this.oldEnglishJson1 = c;
  24273. }else{
  24274. this.isNoUserid = false;
  24275. }
  24276. var b = a.sort((item, index) => {
  24277. console.log(item)
  24278. if (item.correct === this.userMes[0].userid) {
  24279. return -1; // 将a移到前面
  24280. } else if (index.correct === this.userMes[0].userid) {
  24281. return 1; // 将b移到前面
  24282. } else {
  24283. return 0; // 保持默认顺序
  24284. }
  24285. });
  24286. for(var p = 0;p<b.length;p++){
  24287. for(var y = 0;y<ppp.length;y++){
  24288. if(b[p].id == ppp[y].id){
  24289. b[p].cWork = JSON.parse(ppp[y].cWork);
  24290. break
  24291. }
  24292. }
  24293. }
  24294. this.newEnglishList1 = b;
  24295. }
  24296. }
  24297. this.greyType = false;
  24298. setTimeout(() => {
  24299. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  24300. if(this.newEnglishList1.length > 0){
  24301. if(this.isNoUserid == true){
  24302. this.engListLength = this.newEnglishList1.length + 1;
  24303. this.newEngIndex = -1;
  24304. }else{
  24305. this.engListLength = this.newEnglishList1.length;
  24306. this.newEngIndex = 0;
  24307. }
  24308. }
  24309. if(this.userMes[0].type == 2){
  24310. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  24311. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  24312. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  24313. }else if(this.newEngIndex == -1){
  24314. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  24315. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  24316. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  24317. }
  24318. }, 500);
  24319. this.engUpdateDialogVisible = true;
  24320. this.$forceUpdate();
  24321. })
  24322. .catch((err) => {
  24323. console.error(err);
  24324. });
  24325. },
  24326. getPick() {
  24327. if(this.getPickLoading) return
  24328. this.getPickLoading = true
  24329. let params = {
  24330. cid: this.id,
  24331. };
  24332. this.ajax
  24333. .get(this.$store.state.api + "getPick", params)
  24334. .then((res) => {
  24335. let array = [];
  24336. for (var i = 0; i < res.data[0].length; i++) {
  24337. array.push(res.data[0][i].userid);
  24338. }
  24339. this.isPickStudent = array;
  24340. if (array.indexOf(this.userid) !== -1) {
  24341. this.$confirm(this.lang.ssSelectedByTeacher, this.lang.ssPrompt, {
  24342. confirmButtonText: this.lang.ssConfirm,
  24343. showCancelButton: false,
  24344. closeOnClickModal: false,
  24345. type: "warning",
  24346. })
  24347. .then(() => {
  24348. let pa = [
  24349. {
  24350. uid: this.userid,
  24351. cid: this.id,
  24352. },
  24353. ];
  24354. this.ajax
  24355. .post(this.$store.state.api + "deletePick", pa)
  24356. .then((res) => {
  24357. this.getPick();
  24358. })
  24359. .catch((err) => {
  24360. this.$message.error(this.lang.ssNetworkPoor);
  24361. console.error(err);
  24362. });
  24363. })
  24364. .catch(() => {});
  24365. }
  24366. this.getPickLoading = false
  24367. })
  24368. .catch((err) => {
  24369. this.getPickLoading = false
  24370. this.$message.error(this.lang.ssNetworkPoor);
  24371. console.error(err);
  24372. });
  24373. },
  24374. foldEva() {
  24375. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  24376. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  24377. } else {
  24378. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  24379. setTimeout(() => {
  24380. this.checkEva();
  24381. setTimeout(() => {
  24382. this.checkEva();
  24383. }, 500);
  24384. }, 0);
  24385. }
  24386. this.$forceUpdate();
  24387. },
  24388. panToolHeight(tool) {
  24389. var _tool = document.querySelectorAll('#'+tool)[0]
  24390. var _toolA = _tool ? _tool.offsetHeight : 0
  24391. var _toolC = 0
  24392. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  24393. let boolean2 = (_toolA > _toolC) ? true : false
  24394. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  24395. this.$forceUpdate();
  24396. },
  24397. async checkLink(url) {
  24398. // console.log(url)
  24399. let _url = url
  24400. try {
  24401. const response = await fetch(url);
  24402. if(!response.ok){
  24403. _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]))
  24404. }
  24405. // console.log(response.ok)
  24406. } catch (error) {
  24407. console.error('Error checking link:', error);
  24408. // console.log(false)
  24409. _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]))
  24410. }
  24411. // console.log(_url)
  24412. return _url
  24413. },
  24414. getScoreList(){
  24415. let params = {
  24416. cid: this.id,
  24417. };
  24418. this.ajax
  24419. .get(this.$store.state.api + "selectTestCourseByCid", params)
  24420. .then((res) => {
  24421. let result = res.data;
  24422. this.scoreList.datalist = result[0];
  24423. this.scoreList.isScoreList = result[1];
  24424. })
  24425. .catch((err) => {
  24426. console.error(err);
  24427. });
  24428. },
  24429. setClassRoomHelperWidth(width){
  24430. this.classRoomHelperWidth = width
  24431. },
  24432. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  24433. this.$refs.choseWorksDetailDialogRef.open({
  24434. toolType:tooc,
  24435. tType: this.tType,
  24436. toolIndex: toolIndex
  24437. });
  24438. this.changeSplitScreenBehavior({
  24439. code: 1,
  24440. form: {
  24441. toolType:tooc,
  24442. toolIndex: toolIndex,
  24443. courseType: this.courseType,
  24444. taskCount: this.taskCount,
  24445. type: 0
  24446. }
  24447. });
  24448. },
  24449. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  24450. this.$refs.statisticalAnalysisRef.open({
  24451. worksStudent: this.worksStudent[toolIndex],
  24452. tType: this.tType,
  24453. toolIndex: toolIndex
  24454. });
  24455. this.changeSplitScreenBehavior({
  24456. code: 2,
  24457. form: {
  24458. toolType:4,
  24459. courseType: this.courseType,
  24460. taskCount: this.taskCount,
  24461. toolIndex: toolIndex,
  24462. type: 0
  24463. }
  24464. });
  24465. },
  24466. statisticalAnalysisRefresh(toolIndex) {
  24467. this.$refs.statisticalAnalysisRef.refreshData({
  24468. worksStudent: this.worksStudent[toolIndex],
  24469. tType: this.tType,
  24470. toolIndex: toolIndex
  24471. });
  24472. },
  24473. async splitScreenBehavior(type = 0) {
  24474. // return;
  24475. if (this.splitScreenData.loading)
  24476. return this.$message.info(this.lang.ssOperationTooFast);
  24477. if (type == 0) {
  24478. //关闭分屏
  24479. this.splitScreenData.isOpen = false;
  24480. // this.splitScreenData.userId = "";
  24481. // this.splitScreenData.uid = "";
  24482. this.splitScreenData.behavior = null;
  24483. await this.updateSplitScreenData(1);
  24484. this.$message.success(this.lang.ssSplitScreenClosed);
  24485. this.studentFreePreview(false);
  24486. this.OpenJobPreview(false);
  24487. // this.followingMode(false);
  24488. } else if (type == 1) {
  24489. //开启分屏
  24490. this.splitScreenData.isOpen = true;
  24491. this.splitScreenData.userId = this.userid;
  24492. this.splitScreenData.uid = this.splitScreenData.myUid;
  24493. this.splitScreenData.behavior = null;
  24494. let status = await this.updateSplitScreenData(0);
  24495. this.changeSplitScreenBehavior({form:{}})
  24496. if (status == 1) {
  24497. this.$message.success(this.lang.ssSplitScreenOpened);
  24498. this.studentFreePreview(false);
  24499. this.OpenJobPreview(true);
  24500. // this.followingMode(true);
  24501. } else {
  24502. this.splitScreenData.isOpen = false;
  24503. this.splitScreenData.userId = "";
  24504. this.splitScreenData.uid = "";
  24505. this.splitScreenData.behavior = null;
  24506. this.$message.success(this.lang.ssSplitScreenOpenFailed);
  24507. }
  24508. }
  24509. },
  24510. enterFullScreen() {
  24511. let element = document.documentElement;
  24512. if (element.requestFullscreen) {
  24513. element.requestFullscreen();
  24514. } else if (element.mozRequestFullScreen) { /* Firefox */
  24515. element.mozRequestFullScreen();
  24516. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  24517. element.webkitRequestFullscreen();
  24518. } else if (element.msRequestFullscreen) { /* IE/Edge */
  24519. element.msRequestFullscreen();
  24520. }
  24521. },
  24522. exitFullScreen() {
  24523. if (document.exitFullscreen) {
  24524. document.exitFullscreen();
  24525. } else if (document.mozCancelFullScreen) { /* Firefox */
  24526. document.mozCancelFullScreen();
  24527. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  24528. document.webkitExitFullscreen();
  24529. } else if (document.msExitFullscreen) { /* IE/Edge */
  24530. document.msExitFullscreen();
  24531. }
  24532. },
  24533. confirmOpen(){
  24534. this.splitScreenData.isOpen = true;
  24535. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  24536. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  24537. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  24538. this.confirmOpenDig = false
  24539. if (!document.fullscreenElement) {
  24540. this.enterFullScreen();
  24541. }
  24542. // if (this.timer2) {
  24543. // clearInterval(this.timer2);
  24544. // this.timer2 = null;
  24545. // }
  24546. // this.timer2 = setInterval(()=> {
  24547. // this.getSplitScreenData();//获取分屏数据
  24548. // }, 1000);
  24549. this.$message.success(this.lang.ssSplitScreenEnabled);
  24550. },
  24551. getSplitScreenData() {
  24552. // return;
  24553. // if (this.tType != 1) return;
  24554. if(this.getSplitScreenDataLoading) return
  24555. this.getSplitScreenDataLoading = true
  24556. let params = {
  24557. cid: this.id
  24558. };
  24559. this.ajax
  24560. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  24561. .then(async res => {
  24562. let data = res.data[0][0]["splitScreenData"];
  24563. console.log("获取了分屏数:", data);
  24564. if (data) {
  24565. data = JSON.parse(data);
  24566. if (
  24567. !this.splitScreenData.isOpen &&
  24568. data.isOpen &&
  24569. this.splitScreenData.myUid == data.uid
  24570. ) {
  24571. this.splitScreenData.isOpen = false;
  24572. this.splitScreenData.userId = "";
  24573. this.splitScreenData.uid = "";
  24574. this.splitScreenData.behavior = null;
  24575. await this.updateSplitScreenData(1);
  24576. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  24577. this.confirmOpenDig = true
  24578. this.confirmOpenDigData = data
  24579. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  24580. this.splitScreenData.isOpen = false;
  24581. this.splitScreenData.userId = "";
  24582. this.splitScreenData.uid = "";
  24583. this.splitScreenData.behavior = null;
  24584. this.$message.error(this.lang.ssSplitScreenEnded);
  24585. } else if (this.splitScreenData.isOpen && data.isOpen) {
  24586. this.splitScreenData.isOpen = true;
  24587. this.splitScreenData.uid = data.uid;
  24588. this.splitScreenData.userId = data.userId;
  24589. this.splitScreenData.behavior = data.behavior;
  24590. }
  24591. this.doSplitScreenBehavior();
  24592. } else {
  24593. if (this.splitScreenData.isOpen) {
  24594. this.splitScreenData.isOpen = false;
  24595. this.splitScreenData.userId = "";
  24596. this.splitScreenData.uid = "";
  24597. this.splitScreenData.behavior = null;
  24598. this.$message.error(this.lang.ssSplitScreenEnded);
  24599. // if (this.timer2) {
  24600. // clearInterval(this.timer2);
  24601. // this.timer2 = null;
  24602. // }
  24603. // this.timer2 = setInterval(()=> {
  24604. // this.getSplitScreenData();//获取分屏数据
  24605. // }, 5000);
  24606. this.$confirm(this.lang.ssTeacherEndedSplitScreen, this.lang.ssPrompt, {
  24607. confirmButtonText: this.lang.ssConfirm, //确认按钮的文字
  24608. showCancelButton: false, //是否显示取消按钮
  24609. showClose: false, //是否显示关闭按钮
  24610. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  24611. type: "warning",
  24612. })
  24613. .then(() => {
  24614. if (document.fullscreenElement) {
  24615. this.exitFullScreen();
  24616. }
  24617. })
  24618. .catch(() => {});
  24619. }
  24620. }
  24621. this.getSplitScreenDataLoading = false
  24622. })
  24623. .catch(e => {
  24624. this.getSplitScreenDataLoading = false
  24625. console.log("获取分屏数出错:", e);
  24626. });
  24627. },
  24628. doSplitScreenBehavior() {
  24629. if (
  24630. this.splitScreenData.isOpen &&
  24631. this.splitScreenData.uid != this.splitScreenData.myUid
  24632. ) {
  24633. let behavior = this.splitScreenData.behavior;
  24634. if (behavior) {
  24635. if (behavior.code === 99) {
  24636. //初始化
  24637. this.fullDialogVisible = false;
  24638. if(this.$refs.choseWorksDetailDialogRef.show){
  24639. this.$refs.choseWorksDetailDialogRef.close();
  24640. }
  24641. if(this.$refs.statisticalAnalysisRef.show){
  24642. this.$refs.statisticalAnalysisRef.close();
  24643. }
  24644. }
  24645. if (behavior.code === 0) {
  24646. //开启内容列表弹窗
  24647. this.checkFileFull1(behavior.form.t, behavior.form.f);
  24648. }else{
  24649. this.fullDialogVisible = false;
  24650. }
  24651. if (behavior.code === 1) {
  24652. //关于选择题的作业详细的操作
  24653. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  24654. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  24655. this.courseType = behavior.form.courseType;
  24656. this.taskCount = behavior.form.taskCount;
  24657. }
  24658. this.$nextTick(() => {
  24659. if (this.$refs.choseWorksDetailDialogRef.show) {
  24660. //已经打开了
  24661. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  24662. } else {
  24663. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  24664. }
  24665. });
  24666. }else{
  24667. this.$refs.choseWorksDetailDialogRef.close()
  24668. }
  24669. if(behavior.code === 2){
  24670. if(this.$refs.statisticalAnalysisRef.show){
  24671. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  24672. }else{
  24673. this.$refs.statisticalAnalysisRef.open({
  24674. worksStudent: this.worksStudent[behavior.form.toolIndex],
  24675. tType: this.tType,
  24676. toolIndex: behavior.form.toolIndex
  24677. });
  24678. }
  24679. }else{
  24680. this.$refs.statisticalAnalysisRef.close();
  24681. }
  24682. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  24683. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  24684. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  24685. if (behavior.form.courseType != this.courseType ||
  24686. behavior.form.taskCount != this.taskCount ||
  24687. behavior.form.toolType != this.toolindex
  24688. ) {
  24689. var a = document.scrollingElement;
  24690. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  24691. if (target) {
  24692. target.scrollIntoView(true);
  24693. setTimeout(()=>{
  24694. let scrollBody = document.querySelector('.body_student').parentElement
  24695. scrollBody.scrollTop = scrollBody.scrollTop - 100
  24696. }, 0);
  24697. // setTimeout(() => {
  24698. // a.scrollTop = 0
  24699. // }, 0);
  24700. }
  24701. }
  24702. if(this.courseType !=behavior.form.courseType){
  24703. this.courseType = behavior.form.courseType;
  24704. }
  24705. if(this.taskCount !=behavior.form.taskCount){
  24706. this.taskCount = behavior.form.taskCount;
  24707. }
  24708. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  24709. this.toolindex = behavior.form.toolType;
  24710. }
  24711. // if(behavior.form.navId){
  24712. // this.navId = behavior.form.navId
  24713. // }
  24714. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  24715. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  24716. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  24717. this.getCourseDetail()
  24718. }
  24719. this.setContent2(false)
  24720. }
  24721. } else {
  24722. }
  24723. }
  24724. },
  24725. updateSplitScreenData(empty = 0) {
  24726. return new Promise(resolve => {
  24727. if(this.userid!==this.courseDetail.userid){
  24728. if(!this.courseDetail.userid){
  24729. return setTimeout(()=>{
  24730. this.updateSplitScreenData(empty)
  24731. },2000)
  24732. }
  24733. return;
  24734. };
  24735. if (
  24736. this.splitScreenData.uid == this.splitScreenData.myUid &&
  24737. this.splitScreenData.userId == this.userid
  24738. ) {
  24739. this.splitScreenData.loading = true;
  24740. let params = [
  24741. {
  24742. cid: this.id,
  24743. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  24744. }
  24745. ];
  24746. this.ajax
  24747. .post(
  24748. this.$store.state.api + "update_courseSplitScreenData",
  24749. params
  24750. )
  24751. .then(res => {
  24752. this.splitScreenData.loading = false;
  24753. if (res.data == 1) {
  24754. resolve(1);
  24755. console.log(this.lang.ssModify + this.lang.ssSplitScreenDataSuccess);
  24756. }
  24757. })
  24758. .catch(e => {
  24759. this.splitScreenData.loading = false;
  24760. console.log(this.lang.ssModify + this.lang.ssSplitScreenDataFailed, e);
  24761. resoleve(0);
  24762. });
  24763. } else if (empty == 2 && this.tType == 1) {
  24764. let params = [
  24765. {
  24766. cid: this.id,
  24767. nData: ""
  24768. }
  24769. ];
  24770. return this.ajax
  24771. .post(
  24772. this.$store.state.api + "update_courseSplitScreenData",
  24773. params
  24774. )
  24775. .then(_ => resolve(1))
  24776. .catch(_ => resolve(0));
  24777. } else {
  24778. return resolve(0);
  24779. }
  24780. });
  24781. },
  24782. changeSplitScreenBehavior(newValue) {
  24783. if (
  24784. this.splitScreenData.isOpen &&
  24785. this.splitScreenData.uid == this.splitScreenData.myUid
  24786. ) {
  24787. let _behavior = null;
  24788. if(!newValue){
  24789. _behavior = {}
  24790. }else{
  24791. _behavior = newValue
  24792. }
  24793. if(_behavior.form){
  24794. _behavior.form.taskCount = this.taskCount;
  24795. _behavior.form.courseType = this.courseType
  24796. }else{
  24797. _behavior.form = {
  24798. taskCount:this.taskCount,
  24799. courseType:this.courseType
  24800. }
  24801. }
  24802. this.splitScreenData.behavior = _behavior;
  24803. this.updateSplitScreenData(0);
  24804. }
  24805. },
  24806. studentFreePreview(flag) {
  24807. this.IsLookOpen = flag;
  24808. this.followingMode(flag)
  24809. this.updateLookOpen();
  24810. },
  24811. OpenJobPreview(flag) {
  24812. this.sIsOpen = flag;
  24813. this.updateSLook();
  24814. },
  24815. followingMode(flag) {
  24816. this.IsFollow = flag;
  24817. this.updateFollow();
  24818. },
  24819. StulookMode(flag) {
  24820. this.IsStulook = flag;
  24821. this.updateIsStulook();
  24822. },
  24823. },
  24824. directives: {
  24825. // 使用局部注册指令的方式
  24826. resize: {
  24827. // 指令的名称
  24828. bind(el, binding) {
  24829. // el为绑定的元素,binding为绑定给指令的对象
  24830. let width = "",
  24831. height = "";
  24832. function isReize() {
  24833. const style = document.defaultView.getComputedStyle(el);
  24834. if (width !== style.width || height !== style.height) {
  24835. binding.value(); // 关键
  24836. }
  24837. width = style.width;
  24838. height = style.height;
  24839. }
  24840. el.__vueSetInterval__ = setInterval(isReize, 300);
  24841. },
  24842. unbind(el) {
  24843. clearInterval(el.__vueSetInterval__);
  24844. },
  24845. },
  24846. autoHeight: {
  24847. update(el, binding) {
  24848. const { value } = binding
  24849. if (value && typeof value === 'number') {
  24850. el.style.height = `${value}px`
  24851. } else {
  24852. el.style.height = 'auto'
  24853. }
  24854. },
  24855. componentUpdated(el) {
  24856. el.style.height = `${el.scrollHeight + 5}px`
  24857. },
  24858. },
  24859. },
  24860. beforeDestroy() {
  24861. window.onresize = null;
  24862. clearInterval(this.timer);
  24863. clearInterval(this.timer2);
  24864. this.timer = null;
  24865. this.timer2 = null;
  24866. clearInterval(this.opertimer);
  24867. this.opertimer = null;
  24868. this.updateSplitScreenData(1);
  24869. },
  24870. computed: {
  24871. renderedFormula2() {
  24872. return function(val){
  24873. // 处理换行符和HTML实体
  24874. const normalized = val
  24875. .replace(/&amp;/g, '&')
  24876. .replace(/<br\/?>/g, '\n');
  24877. // 匹配行内公式($...$)和块级公式($$...$$)
  24878. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  24879. try {
  24880. return katex.renderToString(expr.trim(), {
  24881. displayMode: false,
  24882. throwOnError: false,
  24883. macros: {
  24884. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  24885. }
  24886. });
  24887. } catch (e) {
  24888. console.warn('KaTeX渲染失败:', e);
  24889. return `<span style="color:red">${expr}</span>`;
  24890. }
  24891. })
  24892. }
  24893. },
  24894. renderedFormula() {
  24895. return function(val){
  24896. try {
  24897. // 判断是否含有HTML标签,<tag ...>...</tag>
  24898. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  24899. if (!hasTag) {
  24900. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  24901. // 纯文本,整体渲染
  24902. try {
  24903. return katex.renderToString(val.trim(), {
  24904. throwOnError: false,
  24905. strict: false,
  24906. output: "htmlAndMathml"
  24907. });
  24908. } catch (e) {
  24909. return val; // 渲染失败原样输出
  24910. }
  24911. } else {
  24912. // 有标签,对每个标签内容渲染
  24913. return val.replace(
  24914. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  24915. (match, tag, attrs, inner) => {
  24916. let html;
  24917. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  24918. try {
  24919. html = katex.renderToString(inner.trim(), {
  24920. throwOnError: false,
  24921. strict: false,
  24922. output: "htmlAndMathml"
  24923. });
  24924. } catch (e) {
  24925. html = inner;
  24926. }
  24927. return `<${tag}${attrs}>${html}</${tag}>`;
  24928. }
  24929. );
  24930. }
  24931. } catch (e) {
  24932. console.error('KaTeX渲染错误:', e);
  24933. return val;
  24934. }
  24935. }
  24936. },
  24937. isAndroid() {
  24938. return /Android/i.test(navigator.userAgent);
  24939. },
  24940. getHeight(){
  24941. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  24942. },
  24943. contentConvent() {
  24944. return function (c) {
  24945. return c
  24946. ? c
  24947. .replaceAll(/\r\n/g, "<br/>")
  24948. .replaceAll(/\n/g, "<br/>")
  24949. .replaceAll(/\s/g, " &nbsp")
  24950. : "";
  24951. };
  24952. },
  24953. MarkdownT() {
  24954. return function (c) {
  24955. let md = new MarkdownIt({
  24956. html: true, // 允许渲染 HTML
  24957. linkify: true, // 自动将URL链接转化为可点击链接
  24958. typographer: true, // 启用排版规则(如替换 `"` 为 “)
  24959. });
  24960. return c
  24961. ? md.render(c) : "";
  24962. };
  24963. },
  24964. commentRight(){
  24965. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  24966. return "35px";
  24967. }
  24968. return `calc(${this.classRoomHelperWidth} + 5px)`
  24969. // if(this.$refs["classRoomHelperRef"].type==0){
  24970. // return "100px";
  24971. // }else if(this.$refs["classRoomHelperRef"].type==1){
  24972. // return "502px"
  24973. // }else{
  24974. // return "0px"
  24975. // }
  24976. },
  24977. checkUpload() {
  24978. return function () {
  24979. var studentK = [];
  24980. if (this.plworkFile.length > 0) {
  24981. for (var z = 0; z < this.plworkFile.length; z++) {
  24982. studentK.push(this.plworkFile[z].username);
  24983. }
  24984. studentK = studentK.join(",");
  24985. }
  24986. var a = this.uploadStudentJuri.filter((el) => {
  24987. return studentK.indexOf(el.userid) == -1;
  24988. });
  24989. return a;
  24990. };
  24991. },
  24992. getSName() {
  24993. return function (name) {
  24994. var check = name;
  24995. this.uploadStudentJuri.forEach((el) => {
  24996. if (el.userid == check) {
  24997. check = el.name ? el.name : el.username;
  24998. }
  24999. });
  25000. return check;
  25001. };
  25002. },
  25003. getImgList() {
  25004. return function (val) {
  25005. let srcList = []; // 定义一个数组用来接收后面的img地址
  25006. val.replace(
  25007. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  25008. function (match, capture) {
  25009. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  25010. srcList.push(capture);
  25011. }
  25012. );
  25013. return srcList;
  25014. };
  25015. },
  25016. retrnToolHeight(){
  25017. return function (tool) {
  25018. var _tool = document.querySelectorAll('#'+tool)[0]
  25019. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  25020. };
  25021. },
  25022. Correct() {
  25023. return function (c,d) {
  25024. let w = "";
  25025. let a = this.correctWord;
  25026. for(var k = 0;k<a.length;k++){
  25027. //diffWordsWithSpace
  25028. if(a.length > 1){
  25029. if(a[k].added == true){
  25030. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25031. }else if(a[k].removed == true){
  25032. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25033. }else{
  25034. w += '<span>' + a[k].value + '</span>';
  25035. }
  25036. }else{
  25037. w = c
  25038. }
  25039. console.log("👇👇!+++==")
  25040. console.log(w)
  25041. //diffChars方法
  25042. // if(w == ""){
  25043. // if(a.length > 1){
  25044. // if(a[k].added == true){
  25045. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25046. // }else if(a[k].removed == true){
  25047. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25048. // }
  25049. // }else{
  25050. // w = c
  25051. // }
  25052. // }else{
  25053. // if(k == a.length - 1){
  25054. // if(a[k].added == true){
  25055. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25056. // }else if(a[k].removed == true){
  25057. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25058. // }
  25059. // }else{
  25060. // if(a[k].added == true){
  25061. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25062. // }else if(a[k].removed == true){
  25063. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25064. // }
  25065. // }
  25066. // }
  25067. }
  25068. c = w;
  25069. return c;
  25070. };
  25071. },
  25072. },
  25073. mounted() {
  25074. document.body.addEventListener("click", (e) => {
  25075. if (this.isUpdateToolDetail1) {
  25076. this.updateToolDetail(this.toolDetailIndex);
  25077. }
  25078. });
  25079. try {
  25080. if (this.screenType == 2) {
  25081. window.topU.postMessage({ allScreen: 4 }, "*");
  25082. } else if (this.screenType == 3) {
  25083. window.topU.postMessage({ allScreen: 5 }, "*");
  25084. } else if (this.screenType == 1) {
  25085. window.topU.postMessage({ allScreen: 6 }, "*");
  25086. }
  25087. } catch (error) {
  25088. console.log(error)
  25089. }
  25090. this.getCode2()
  25091. this.setOperationTime();
  25092. this.selectEva();
  25093. this.getCourseDetail(10);
  25094. this.selectCount();
  25095. this.getHomeWork();
  25096. this.selectUser();
  25097. this.getAIJ();
  25098. this.contentDialog = false;
  25099. this.setContent2(true);
  25100. if (this.tType == 4) {
  25101. this.pzDialog = true;
  25102. this.selectPz();
  25103. }
  25104. // 获取评分列表
  25105. this.getScoreList()
  25106. this.updateSplitScreenData(2);
  25107. this.splitScreenData.myUid = uuidv4();
  25108. document.scrollingElement.scrollTop = 0;
  25109. window.addEventListener("resize", () => {
  25110. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  25111. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  25112. if (this.showType == 2 || this.showType == 3) {
  25113. document.getElementsByClassName("navBox")[0].style.height =
  25114. a - 40 + 0+ "px";
  25115. } else {
  25116. document.getElementsByClassName("navBox")[0].style.height =
  25117. a - 40 + "px";
  25118. }
  25119. });
  25120. // let _this = this;
  25121. // setTimeout(() => {
  25122. // _this.vedioTime = [];
  25123. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  25124. // _this.vedioTime[i] = document.getElementsByClassName(
  25125. // "vjs-duration-display"
  25126. // )[i].textContent;
  25127. // }
  25128. // }, 1000);
  25129. },
  25130. };
  25131. </script>
  25132. <style scoped>
  25133. @media screen and (max-width: 1280px) {
  25134. /* .courseIndex > div:first-child(2) {
  25135. width: 15% !important;
  25136. } */
  25137. /* .navText {
  25138. width: 120px !important;
  25139. } */
  25140. .evaCss {
  25141. flex-direction: column !important;
  25142. align-items: center !important;
  25143. }
  25144. .elist_input {
  25145. width: 90% !important;
  25146. }
  25147. .dialog_diy1 >>> .el-dialog {
  25148. width: 100% !important;
  25149. }
  25150. .rightWidthCss {
  25151. width: 100% !important;
  25152. }
  25153. .dialog_diy3 >>> .el-dialog {
  25154. width: 100% !important;
  25155. }
  25156. .addToolCss {
  25157. right: 0 !important;
  25158. width: 100% !important;
  25159. min-width: unset !important;
  25160. }
  25161. }
  25162. .evaCssMax {
  25163. flex-direction: column !important;
  25164. align-items: center !important;
  25165. }
  25166. /* .dialog_diy >>> .el-dialog { */
  25167. /* margin-top: 10vh !important; */
  25168. /* } */
  25169. .body_student {
  25170. width: 77%;
  25171. height: 100%;
  25172. position: absolute;
  25173. left: 22%;
  25174. top: 0;
  25175. }
  25176. .student_head {
  25177. width: 100%;
  25178. margin: 20px auto 0;
  25179. padding-bottom: 20px;
  25180. display: flex;
  25181. flex-direction: column;
  25182. flex-wrap: nowrap;
  25183. align-items: flex-start;
  25184. justify-content: flex-start;
  25185. }
  25186. .pb_left {
  25187. width: 15%;
  25188. margin-right: 10px;
  25189. background: rgb(255, 255, 255);
  25190. position: fixed;
  25191. height: calc(100% - 40px);
  25192. border-radius: 20px;
  25193. padding-bottom: 15px;
  25194. box-sizing: border-box;
  25195. }
  25196. .wheel > img,
  25197. .project > img,
  25198. .star > img,
  25199. .evaluate > img,
  25200. .up_photo > img,
  25201. .chapter_add > img,
  25202. .deleteWord > img,
  25203. .question > img,
  25204. .homework > img {
  25205. width: 100%;
  25206. height: 100%;
  25207. }
  25208. .upCover > img {
  25209. width: 131px;
  25210. height: 69px;
  25211. object-fit: cover;
  25212. }
  25213. .upCover {
  25214. width: calc(100% / 3.5);
  25215. position: relative;
  25216. margin: 0 15px 10px 0;
  25217. display: flex;
  25218. flex-direction: column;
  25219. flex-wrap: nowrap;
  25220. justify-content: center;
  25221. align-content: center;
  25222. align-items: center;
  25223. height: fit-content;
  25224. }
  25225. .upCover2 {
  25226. width: 100%;
  25227. position: relative;
  25228. margin: 0 15px 10px 0;
  25229. display: flex;
  25230. flex-direction: column;
  25231. flex-wrap: nowrap;
  25232. justify-content: center;
  25233. align-content: center;
  25234. align-items: center;
  25235. }
  25236. .upCover2 > img {
  25237. width: 100%;
  25238. height: 90px;
  25239. object-fit: contain;
  25240. }
  25241. .chapter_add {
  25242. width: 120px;
  25243. position: relative;
  25244. text-align: center;
  25245. }
  25246. .isAddThings {
  25247. margin-top: 20px;
  25248. position: relative;
  25249. text-align: center;
  25250. background: #f7f8fa;
  25251. height: 90px;
  25252. width: 90px;
  25253. display: flex;
  25254. flex-direction: column;
  25255. justify-content: center;
  25256. }
  25257. .deleteWord {
  25258. width: 22px;
  25259. height: 22px;
  25260. position: absolute;
  25261. right: -5px;
  25262. top: -5px;
  25263. cursor: pointer;
  25264. }
  25265. .box_course {
  25266. /* width: 60%; */
  25267. width: calc(100% - 300px);
  25268. }
  25269. .wheel {
  25270. width: 100%;
  25271. /* height: 100%; */
  25272. height: 650px;
  25273. }
  25274. .right_box {
  25275. display: flex;
  25276. flex-direction: column;
  25277. margin-left: 30px;
  25278. justify-content: space-around;
  25279. }
  25280. .right_box_title {
  25281. font-size: 23px;
  25282. }
  25283. .people {
  25284. display: flex;
  25285. }
  25286. .student_body {
  25287. width: 100%;
  25288. margin: 0 auto;
  25289. margin-top: 10px;
  25290. padding: 0 0 20px;
  25291. }
  25292. .study_top {
  25293. margin-top: 100px;
  25294. width: 100%;
  25295. height: auto;
  25296. padding-bottom: 20px;
  25297. margin-left: 2px;
  25298. min-height: 90%;
  25299. }
  25300. .study_top .checkbox {
  25301. display: flex;
  25302. align-items: center;
  25303. padding: 15px 0 15px 30px;
  25304. flex: 0 0 auto;
  25305. font-weight: bold;
  25306. border-bottom: 1px solid #eee;
  25307. }
  25308. .study_top .check {
  25309. padding-bottom: 5px;
  25310. text-align: center;
  25311. cursor: pointer;
  25312. height: 30px;
  25313. box-sizing: border-box;
  25314. display: flex;
  25315. }
  25316. .study_top .checked {
  25317. border-bottom: 4px solid #3fc6a0;
  25318. padding-bottom: 5px;
  25319. color: #3fc6a0;
  25320. display: flex;
  25321. height: 35px;
  25322. }
  25323. .study_top .checked > div,
  25324. .study_top .check > div {
  25325. margin-right: 5px;
  25326. }
  25327. .videoTop {
  25328. display: flex;
  25329. flex-direction: row;
  25330. justify-content: space-between;
  25331. background: #fff;
  25332. align-items: center;
  25333. width: 95%;
  25334. padding: 20px;
  25335. }
  25336. .filebox {
  25337. display: flex;
  25338. flex-wrap: wrap;
  25339. flex-direction: column;
  25340. padding: 0 0 5px;
  25341. position: relative;
  25342. }
  25343. .filebox:before {
  25344. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  25345. position: absolute;
  25346. top: 20px;
  25347. left: 13px;
  25348. border-left: 2px dotted #cad1dc;
  25349. height: calc(100% - 15px);
  25350. }
  25351. .toolHeng2 > div:last-child::before {
  25352. height: calc(100% - 43px);
  25353. }
  25354. .filebox .tooldetail {
  25355. width: calc(100%);
  25356. margin: 0px 12px;
  25357. padding: 12px;
  25358. line-height: 30px;
  25359. word-break: break-word;
  25360. background: #ffffff;
  25361. border-radius: 8px 8px 8px 8px;
  25362. opacity: 1;
  25363. border: 1px solid #cad1dc;
  25364. overflow:hidden;
  25365. box-sizing:border-box;
  25366. }
  25367. .file {
  25368. display: flex;
  25369. flex-direction: column;
  25370. align-items: center;
  25371. justify-content: center;
  25372. cursor: pointer;
  25373. width: 200px;
  25374. }
  25375. .file div {
  25376. margin-top: 10px;
  25377. width: 150px;
  25378. text-align: center;
  25379. overflow: hidden;
  25380. white-space: nowrap;
  25381. text-overflow: ellipsis;
  25382. }
  25383. .media {
  25384. display: flex;
  25385. flex-direction: column;
  25386. align-items: center;
  25387. justify-content: center;
  25388. margin: 0 20px 20px 0;
  25389. cursor: pointer;
  25390. margin: 12px 0 5px 15px;
  25391. overflow: hidden;
  25392. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  25393. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  25394. box-sizing: border-box;
  25395. }
  25396. .media img {
  25397. height: 90px;
  25398. width: 160px;
  25399. object-fit: cover;
  25400. }
  25401. .media .title {
  25402. padding: 5px;
  25403. text-align: left;
  25404. width: 100%;
  25405. box-sizing: border-box;
  25406. }
  25407. .media .btn {
  25408. width: 100%;
  25409. height: 35px;
  25410. line-height: 35px;
  25411. color: #fff;
  25412. background: #606060;
  25413. text-align: center;
  25414. overflow: hidden;
  25415. white-space: nowrap;
  25416. text-overflow: ellipsis;
  25417. }
  25418. .detail_content_top {
  25419. width: 100%;
  25420. padding: 25px 0 25px 0;
  25421. }
  25422. .detail_title {
  25423. text-align: center;
  25424. font-size: 24px;
  25425. }
  25426. .detail_time {
  25427. font-size: 13px;
  25428. padding: 15px 0 0 40px;
  25429. }
  25430. .detail_content {
  25431. line-height: 2pc;
  25432. width: 90%;
  25433. margin: 0 auto;
  25434. padding-top: 30px;
  25435. text-indent: 30px;
  25436. overflow: auto;
  25437. height: 200px;
  25438. }
  25439. .score_box >>> .el-rate {
  25440. margin-left: 10px;
  25441. }
  25442. .dialog_change >>> .el-dialog {
  25443. border-radius: 5px;
  25444. }
  25445. .dialog_change >>> .el-dialog__header {
  25446. background: #f2f2f2;
  25447. text-align: center;
  25448. }
  25449. .dialog_change >>> .el-dialog__title {
  25450. line-height: 5px;
  25451. }
  25452. .dialog_change >>> .el-dialog__body {
  25453. background: #fff;
  25454. padding: 10px 20px;
  25455. }
  25456. .score_box {
  25457. display: flex;
  25458. align-items: center;
  25459. margin-bottom: 18px;
  25460. margin-top: 20px;
  25461. }
  25462. .up_photo {
  25463. width: 120px;
  25464. cursor: pointer;
  25465. margin-top: 10px;
  25466. }
  25467. .up_photo2 {
  25468. width: 180px;
  25469. box-sizing: border-box;
  25470. min-width: 180px;
  25471. height: 180px;
  25472. max-height: 180px;
  25473. min-height: 180px;
  25474. cursor: pointer;
  25475. display: flex;
  25476. flex-direction: column;
  25477. align-items: center;
  25478. justify-content: center;
  25479. background: rgb(242, 246, 255);
  25480. /* padding: 25px; */
  25481. margin-bottom: 10px;
  25482. }
  25483. .up_photo2 img {
  25484. width: 50%;
  25485. height: auto;
  25486. }
  25487. .up_photo2 span {
  25488. color: #898989;
  25489. }
  25490. .plworkBox {
  25491. display: flex;
  25492. align-items: center;
  25493. margin-top: 10px;
  25494. flex-wrap: wrap;
  25495. }
  25496. .upload_send {
  25497. margin: 30px auto 30px;
  25498. width: 60%;
  25499. background: #3681fc;
  25500. text-align: center;
  25501. height: 35px;
  25502. line-height: 35px;
  25503. color: #fff;
  25504. border-radius: 5px;
  25505. cursor: pointer;
  25506. }
  25507. .marginT {
  25508. margin-top: 20px;
  25509. }
  25510. .cd_content_steps {
  25511. display: flex;
  25512. width: 90%;
  25513. justify-content: space-around;
  25514. border-top: 1px solid #eeeeee;
  25515. }
  25516. .cd_steps_box {
  25517. display: flex;
  25518. justify-content: center;
  25519. align-items: center;
  25520. flex-direction: column;
  25521. cursor: pointer;
  25522. }
  25523. .first {
  25524. display: flex;
  25525. align-items: center;
  25526. margin: 15px 0 20px 0;
  25527. font-size: 20px;
  25528. }
  25529. .first > div:nth-child(2) {
  25530. font-size: 16px !important;
  25531. padding-left: 10px;
  25532. line-height: 26px;
  25533. box-sizing: border-box;
  25534. }
  25535. .blue_box_one {
  25536. text-align: center;
  25537. color: #fff;
  25538. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  25539. border-radius: 7px;
  25540. margin: 10px;
  25541. cursor: pointer;
  25542. width: 95%;
  25543. height: 45px;
  25544. display: flex;
  25545. flex-direction: row;
  25546. justify-content: flex-start;
  25547. align-items: center;
  25548. }
  25549. .blue_box_one > div:nth-child(1) {
  25550. line-height: 30px;
  25551. margin: 0 5px 0 10px;
  25552. width: 30%;
  25553. min-width: 70px;
  25554. border-radius: 4px;
  25555. }
  25556. .blue_box_one > div:nth-child(2) {
  25557. white-space: nowrap;
  25558. text-overflow: ellipsis;
  25559. overflow: hidden;
  25560. word-break: break-all;
  25561. width: 70%;
  25562. text-align: left;
  25563. margin-right: 10px;
  25564. max-width: calc(100% - 85px);
  25565. }
  25566. .blue_box_one > div:nth-child(2):hover {
  25567. overflow: hidden;
  25568. text-overflow: ellipsis;
  25569. white-space: nowrap;
  25570. cursor: pointer;
  25571. }
  25572. .upFile {
  25573. margin: 0 auto;
  25574. width: 120px;
  25575. background: #3681fc;
  25576. color: #fff;
  25577. height: 30px;
  25578. text-align: center;
  25579. line-height: 30px;
  25580. border-radius: 5px;
  25581. font-size: 14px;
  25582. cursor: pointer;
  25583. }
  25584. .courseTitle {
  25585. width: 85%;
  25586. margin: 10px auto 26px auto;
  25587. display: flex;
  25588. flex-direction: row;
  25589. align-items: center;
  25590. justify-content: space-between;
  25591. text-align: center;
  25592. }
  25593. .courseTitle .ctitle {
  25594. font-size: 20px;
  25595. font-weight: bold;
  25596. color: #0e1e33;
  25597. white-space: nowrap;
  25598. overflow: hidden;
  25599. text-overflow: ellipsis;
  25600. }
  25601. .inviteBox {
  25602. font-size: 14px;
  25603. /* margin-top: 5px; */
  25604. color: #00000099;
  25605. text-align: center;
  25606. }
  25607. .courseTitle >>> .el-tooltip {
  25608. width: 100%;
  25609. white-space: nowrap;
  25610. overflow: hidden;
  25611. text-overflow: ellipsis;
  25612. word-break: break-word;
  25613. }
  25614. .ml {
  25615. margin-left: 20px;
  25616. color: #5b7dba;
  25617. border-left: 3px solid #5b7dba;
  25618. padding-left: 5px;
  25619. font-weight: bold;
  25620. }
  25621. .return {
  25622. width: 2rem;
  25623. height: 2rem;
  25624. cursor: pointer;
  25625. }
  25626. .return > img {
  25627. width: 100%;
  25628. height: 100%;
  25629. }
  25630. .returnBtn {
  25631. /* width: 86px;
  25632. height: 36px; */
  25633. background: #3681fc;
  25634. border-radius: 4px;
  25635. color: #fff;
  25636. text-align: center;
  25637. padding: 8px 10px;
  25638. /* line-height: 36px; */
  25639. margin-right: 20px;
  25640. cursor: pointer;
  25641. font-size: 14px;
  25642. font-weight: 400;
  25643. display: flex;
  25644. flex-direction: row;
  25645. flex-wrap: nowrap;
  25646. align-items: center;
  25647. justify-content: center;
  25648. }
  25649. .reBtnIcon,
  25650. .commentIcon,
  25651. .vedioIcon,
  25652. .vedioIcon1 {
  25653. /* width: 36px; */
  25654. height: 36px;
  25655. border-radius: 4px;
  25656. position: relative;
  25657. /* background: #e0eafb; */
  25658. background: #0061ff;
  25659. cursor: pointer;
  25660. margin-right: 12px;
  25661. display: flex;
  25662. align-items: center;
  25663. padding: 0 10px;
  25664. box-sizing: border-box;
  25665. font-size: 14px;
  25666. color: #fff;
  25667. }
  25668. .reBtnIcon::before,
  25669. .commentIcon::before,
  25670. .vedioIcon::before,
  25671. .vedioIcon1::before {
  25672. content: "";
  25673. display: block;
  25674. background-size: 100% 100%;
  25675. background-repeat: no-repeat;
  25676. width: 20px;
  25677. height: 20px;
  25678. margin-right: 5px;
  25679. /* position: absolute; */
  25680. /* top: 8px;
  25681. left: 8px; */
  25682. }
  25683. .vedioIcon1 {
  25684. background: #f63564;
  25685. }
  25686. .reBtnIcon::before {
  25687. background-image: url("../../assets/icon/newIcons/refresh.png");
  25688. }
  25689. .commentIcon::before {
  25690. background-image: url("../../assets/icon/newIcons/comment.png");
  25691. }
  25692. .vedioIcon::before {
  25693. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25694. }
  25695. .vedioIcon1::before {
  25696. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  25697. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25698. }
  25699. .tool {
  25700. display: flex;
  25701. flex-direction: column;
  25702. flex-wrap: nowrap;
  25703. width: 13%;
  25704. margin: 0 30px;
  25705. align-items: center;
  25706. position: relative;
  25707. padding: 10px 25px;
  25708. cursor: pointer;
  25709. }
  25710. .whiteBIcon {
  25711. width: 150px;
  25712. }
  25713. .whiteBIcon > img {
  25714. width: 100%;
  25715. height: 100%;
  25716. }
  25717. .mask {
  25718. background-color: rgba(0, 0, 0, 0);
  25719. position: fixed;
  25720. top: 0;
  25721. left: 0;
  25722. width: 100%;
  25723. height: 100%;
  25724. z-index: 20000;
  25725. display: flex;
  25726. align-items: center;
  25727. justify-content: center;
  25728. }
  25729. .progressBox {
  25730. width: 500px;
  25731. height: 180px;
  25732. background: #fff;
  25733. border-radius: 10px;
  25734. box-shadow: 0 0 6px 1px #bfbfbf;
  25735. display: flex;
  25736. align-items: center;
  25737. justify-content: center;
  25738. flex-direction: column;
  25739. position: relative;
  25740. color: #6c6c6c;
  25741. }
  25742. .progressBox >>> .el-progress-bar__outer {
  25743. background-color: #d1dfff !important;
  25744. }
  25745. .progressBox .lbox {
  25746. height: 50px;
  25747. font-size: 19px;
  25748. display: flex;
  25749. align-items: center;
  25750. color: #747474;
  25751. }
  25752. .progressBox .lbox img {
  25753. width: 40px;
  25754. margin-right: 20px;
  25755. }
  25756. .closeCss {
  25757. position: absolute;
  25758. top: 8px;
  25759. right: 8px;
  25760. cursor: pointer;
  25761. width: 20px;
  25762. height: 20px;
  25763. }
  25764. .closeCss > img {
  25765. width: 100%;
  25766. height: 100%;
  25767. }
  25768. .uploadVedio {
  25769. display: flex;
  25770. flex-direction: column;
  25771. flex-wrap: nowrap;
  25772. justify-content: center;
  25773. align-items: center;
  25774. margin: 0 15px 10px 0;
  25775. }
  25776. .uploadVedio > img {
  25777. width: 30px;
  25778. height: 30px;
  25779. }
  25780. .uploadVedio > span {
  25781. white-space: nowrap;
  25782. overflow: hidden;
  25783. text-overflow: ellipsis;
  25784. width: 75px;
  25785. margin-top: 7px;
  25786. }
  25787. .picName {
  25788. white-space: nowrap;
  25789. overflow: hidden;
  25790. text-overflow: ellipsis;
  25791. width: 75px;
  25792. margin-top: 7px;
  25793. }
  25794. .new_top {
  25795. display: flex;
  25796. background: #fff;
  25797. flex-direction: row;
  25798. justify-content: flex-start;
  25799. align-items: center;
  25800. height: 60px;
  25801. position: fixed;
  25802. top: 20px;
  25803. left: 22%;
  25804. width: 77%;
  25805. z-index: 999;
  25806. border-radius: 12px 12px 0 0;
  25807. border-bottom: 1px solid #cad1dc;
  25808. padding: 10px 0;
  25809. }
  25810. .new_topFixed {
  25811. width: 100%;
  25812. height: 40px;
  25813. position: fixed;
  25814. top: 0px;
  25815. display: block;
  25816. background: #f2f2f2;
  25817. z-index: 998;
  25818. }
  25819. .before {
  25820. position: absolute;
  25821. background: #c3dad4;
  25822. width: 6px;
  25823. height: 100%;
  25824. }
  25825. .courseIndex {
  25826. display: flex;
  25827. flex-direction: row;
  25828. align-items: center;
  25829. width: calc(100% - 745px);
  25830. }
  25831. .courseIndex > div:nth-child(1) {
  25832. margin: 0 0 0 10px;
  25833. font-size: 20px;
  25834. min-width: 100px;
  25835. font-weight: bold;
  25836. border-left: 4px solid #3363b9;
  25837. height: 32px;
  25838. text-align: center;
  25839. line-height: 35px;
  25840. }
  25841. .courseIndex > div:nth-child(2) {
  25842. font-size: 20px;
  25843. /* width: 300px; */
  25844. max-width: calc(100% - 105px);
  25845. white-space: nowrap;
  25846. overflow: hidden;
  25847. text-overflow: ellipsis;
  25848. }
  25849. .courseIndex > div:nth-child(3) {
  25850. border-bottom: 1px solid #d7d7d7;
  25851. padding-bottom: 5px;
  25852. background: #3681fc;
  25853. width: 55px;
  25854. min-width: 55px;
  25855. border-radius: 5px;
  25856. color: #fff;
  25857. text-align: center;
  25858. height: 20px;
  25859. line-height: 26px;
  25860. font-size: 14px;
  25861. margin: 0 0 0 10px;
  25862. }
  25863. .course_text {
  25864. padding: 20px 0 0 15px;
  25865. text-indent: 30px;
  25866. width: 80%;
  25867. min-height: 20px;
  25868. }
  25869. .vedioList {
  25870. background: #f2f2f2;
  25871. border: 1px solid #ececec;
  25872. /* width: 38.8%; */
  25873. /* width: 300px; */
  25874. width: 100%;
  25875. height: 445px;
  25876. border-radius: 10px;
  25877. overflow: hidden;
  25878. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  25879. }
  25880. .vedioNav {
  25881. margin: 10px 0 0 15px;
  25882. border-bottom: 1px solid #d7d7d7;
  25883. padding-bottom: 5px;
  25884. background: #3681fc;
  25885. width: 55px;
  25886. min-width: 55px;
  25887. border-radius: 5px;
  25888. color: #fff;
  25889. text-align: center;
  25890. height: 20px;
  25891. line-height: 26px;
  25892. font-size: 14px;
  25893. }
  25894. .queTop {
  25895. display: flex;
  25896. padding: 20px 0 20px 30px;
  25897. width: 100%;
  25898. flex-direction: row;
  25899. justify-content: flex-start;
  25900. align-items: center;
  25901. box-sizing: border-box;
  25902. }
  25903. .queTopTitle {
  25904. display: flex;
  25905. flex-direction: row;
  25906. flex-wrap: nowrap;
  25907. align-items: center;
  25908. font-weight: bold;
  25909. font-size: 20px;
  25910. color: rgb(14, 30, 51);
  25911. }
  25912. .queTopTitle::before {
  25913. content: "";
  25914. width: 2px;
  25915. height: 22px;
  25916. background: #3681fc;
  25917. border-radius: 3px;
  25918. display: block;
  25919. margin: 2px 6px 0 0;
  25920. }
  25921. .queTopRight {
  25922. display: flex;
  25923. flex-direction: row;
  25924. flex-wrap: nowrap;
  25925. align-items: center;
  25926. }
  25927. .queTopClose {
  25928. margin-right: 20px;
  25929. cursor: pointer;
  25930. position: relative;
  25931. display: flex;
  25932. }
  25933. .closeImg,
  25934. .openImg {
  25935. width: 25px;
  25936. height: 25px;
  25937. position: absolute;
  25938. left: -20px;
  25939. top: -1px;
  25940. }
  25941. .closeImg > img,
  25942. .openImg > img {
  25943. width: 100%;
  25944. height: 100%;
  25945. }
  25946. .question {
  25947. width: 40px;
  25948. margin-right: 10px;
  25949. margin-top: 7px;
  25950. flex-shrink: 0;
  25951. }
  25952. .queTitle {
  25953. margin-left: 5px;
  25954. font-size: 25px;
  25955. display: flex;
  25956. align-items: center;
  25957. }
  25958. .queTitle > div:nth-child(1){
  25959. width: 120px;
  25960. flex-shrink: 0;
  25961. }
  25962. .addEditor {
  25963. width: 100px;
  25964. height: 30px;
  25965. background: #42cda6;
  25966. color: #fff;
  25967. border-radius: 5px;
  25968. text-align: center;
  25969. line-height: 30px;
  25970. box-shadow: 1px 3px 6px 1px #bfbfbf;
  25971. cursor: pointer;
  25972. }
  25973. /* .vedioName {
  25974. cursor: pointer;
  25975. margin: 0px 0px 10px 5px;
  25976. white-space: nowrap;
  25977. overflow: hidden;
  25978. text-overflow: ellipsis;
  25979. width: 100%;
  25980. } */
  25981. .vedioTime {
  25982. width: 35px;
  25983. position: absolute;
  25984. color: #fff;
  25985. bottom: 0px;
  25986. right: 0px;
  25987. text-align: center;
  25988. background: #46411f;
  25989. height: 20px;
  25990. font-size: 14px;
  25991. line-height: 20px;
  25992. }
  25993. .homework {
  25994. width: 200px;
  25995. display: flex;
  25996. flex-direction: column;
  25997. flex-wrap: nowrap;
  25998. align-items: center;
  25999. cursor: pointer;
  26000. }
  26001. .homebox {
  26002. display: flex;
  26003. flex-wrap: wrap;
  26004. flex-direction: row;
  26005. justify-content: flex-start;
  26006. align-items: center;
  26007. padding: 15px 0;
  26008. }
  26009. .isChooseActive {
  26010. color: #3681fc !important;
  26011. font-weight: bold !important;
  26012. }
  26013. .chooseWho {
  26014. display: flex;
  26015. width: 100%;
  26016. flex-direction: row;
  26017. flex-wrap: nowrap;
  26018. justify-content: flex-start;
  26019. padding-bottom: 10px;
  26020. }
  26021. .chooseWho > div {
  26022. cursor: pointer;
  26023. padding-bottom: 10px;
  26024. margin: 0 30px 0 0;
  26025. font-weight: 400;
  26026. color: #0e1e33;
  26027. }
  26028. .addPoint > div > img {
  26029. cursor: pointer;
  26030. width: 85px;
  26031. border-radius: 15px;
  26032. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  26033. }
  26034. .addPoint > div {
  26035. display: flex;
  26036. flex-direction: column;
  26037. flex-wrap: nowrap;
  26038. align-items: center;
  26039. }
  26040. .isBorder > div {
  26041. margin: 0 0 10px 0;
  26042. align-items: flex-start !important;
  26043. }
  26044. .noiframeBox {
  26045. display: flex;
  26046. flex-wrap: wrap;
  26047. }
  26048. .iframeBox iframe {
  26049. width: 100%;
  26050. height: 800px;
  26051. border: none;
  26052. margin-bottom: 20px;
  26053. border: 1px solid #ccc;
  26054. }
  26055. .upload_toolBtn {
  26056. background: #3681fc;
  26057. color: #fff;
  26058. width: 110px;
  26059. text-align: center;
  26060. height: 35px;
  26061. line-height: 35px;
  26062. font-size: 14px;
  26063. border-radius: 5px;
  26064. cursor: pointer;
  26065. position: absolute;
  26066. right: 10px;
  26067. bottom: 0;
  26068. }
  26069. .binfo_input,
  26070. .pj {
  26071. font: inherit;
  26072. color: currentColor;
  26073. width: 100%;
  26074. margin: 0;
  26075. padding: 15px 14px;
  26076. display: block;
  26077. min-width: 0;
  26078. outline: none;
  26079. box-sizing: content-box;
  26080. background: none;
  26081. -webkit-tap-highlight-color: transparent;
  26082. border: 1px solid rgba(0, 0, 0, 0.23);
  26083. border-radius: 4px;
  26084. box-sizing: border-box;
  26085. resize: none;
  26086. }
  26087. .binfo_input:focus-visible {
  26088. border: 1px solid rgba(61, 103, 188);
  26089. }
  26090. .dialog_diy >>> .el-dialog__header,
  26091. .dialog_diy1 >>> .el-dialog__header {
  26092. background: #454545 !important;
  26093. padding: 15px 20px;
  26094. }
  26095. .dialog_diy >>> .el-dialog__title,
  26096. .dialog_diy1 >>> .el-dialog__title {
  26097. color: #fff;
  26098. }
  26099. .dialog_diy >>> .el-dialog__headerbtn,
  26100. .dialog_diy1 >>> .el-dialog__headerbtn {
  26101. top: 19px;
  26102. }
  26103. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  26104. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  26105. color: #fff;
  26106. }
  26107. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  26108. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  26109. color: #fff;
  26110. }
  26111. .dialog_diy1 >>> .el-dialog__body {
  26112. padding: 0;
  26113. }
  26114. .dialog_diy >>> .el-dialog__body,
  26115. .dialog_diy >>> .el-dialog__footer,
  26116. .dialog_diy1 >>> .el-dialog__footer {
  26117. background: #fafafa;
  26118. }
  26119. .markScore_diy >>> .el-dialog {
  26120. border-radius: 10px;
  26121. }
  26122. .markScore_diy >>> .el-dialog__body {
  26123. padding: 0;
  26124. height: 621px;
  26125. min-height: calc(100% - 60px);
  26126. }
  26127. .markScore_diy >>> .el-dialog__header {
  26128. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  26129. }
  26130. .markScore_diy >>> .markScore_diyTit {
  26131. width: calc(100% - 60px);
  26132. display: flex;
  26133. justify-content: space-between;
  26134. align-items: center;
  26135. }
  26136. .a_addBox {
  26137. padding: 0 0 0 15px;
  26138. }
  26139. .a_add_box {
  26140. padding: 10px;
  26141. background: #fff;
  26142. margin-bottom: 10px;
  26143. border-radius: 5px;
  26144. box-shadow: 0 0 5px 0 #d5d5d5;
  26145. }
  26146. .a_add_head {
  26147. display: flex;
  26148. align-items: flex-start;
  26149. /* justify-content: space-between; */
  26150. flex-direction: column;
  26151. /* flex-direction: row; */
  26152. margin: 10px 0 20px 0;
  26153. font-size: 18px;
  26154. width: 100%;
  26155. }
  26156. .askIndex {
  26157. background: #3681fc;
  26158. border-radius: 50%;
  26159. color: #fff;
  26160. width: 25px;
  26161. height: 25px;
  26162. min-width: 25px;
  26163. min-height: 25px;
  26164. text-align: center;
  26165. line-height: 25px;
  26166. margin-right: 5px;
  26167. }
  26168. .a_add_head .a_add_head_input {
  26169. width: 300px;
  26170. }
  26171. .a_add_head .a_add_head_div {
  26172. display: flex;
  26173. align-items: center;
  26174. justify-content: space-between;
  26175. }
  26176. .a_add_body {
  26177. display: flex;
  26178. align-items: center;
  26179. }
  26180. .a_add_input {
  26181. display: flex;
  26182. align-items: center;
  26183. flex-wrap: wrap;
  26184. width: 100%;
  26185. }
  26186. .a_add_input >>> .el-radio-group,
  26187. .a_add_input >>> .el-checkbox-group {
  26188. width: 100%;
  26189. }
  26190. .a_add_input >>> .el-radio,
  26191. .a_add_input >>> .el-checkbox {
  26192. display: flex;
  26193. flex-direction: row;
  26194. flex-wrap: nowrap;
  26195. align-items: center;
  26196. padding: 15px 0;
  26197. }
  26198. .a_add_input >>> .el-radio:not(:last-child),
  26199. .a_add_input >>> .el-checkbox:not(:last-child) {
  26200. width: 100%;
  26201. border-bottom: 1px solid #efefef;
  26202. }
  26203. .redioStyle >>> .el-radio__label {
  26204. font-size: 18px;
  26205. }
  26206. .redioStyle >>> .el-radio__label > span,
  26207. .redioStyle >>> .el-checkbox__label > span {
  26208. word-break: break-all;
  26209. white-space: normal;
  26210. }
  26211. .redioStyle >>> .el-checkbox__label {
  26212. font-size: 18px;
  26213. }
  26214. .toolHeng2 {
  26215. width: 100%;
  26216. padding-left: 15px;
  26217. box-sizing: border-box;
  26218. }
  26219. .workNav {
  26220. font-size: 20px;
  26221. font-weight: bold;
  26222. color: #0e1e33;
  26223. display: flex;
  26224. flex-direction: row;
  26225. flex-wrap: nowrap;
  26226. align-items: center;
  26227. padding: 15px 0 15px 0;
  26228. }
  26229. .workNav::before {
  26230. content: "";
  26231. width: 2px;
  26232. height: 22px;
  26233. background: #3681fc;
  26234. border-radius: 3px;
  26235. display: block;
  26236. margin: 2px 6px 0 0;
  26237. }
  26238. .toolHeng {
  26239. display: flex;
  26240. flex-direction: row;
  26241. flex-wrap: wrap;
  26242. justify-content: flex-start;
  26243. align-items: center;
  26244. width: 100%;
  26245. }
  26246. .toolHeng > div {
  26247. padding-left: 20px;
  26248. }
  26249. .isWidth {
  26250. width: 20%;
  26251. }
  26252. .textTitle {
  26253. display: flex;
  26254. flex-direction: row;
  26255. flex-wrap: nowrap;
  26256. align-items: center;
  26257. width: 95%;
  26258. }
  26259. .textTitle >>> .el-form-item__label {
  26260. font-size: 22px;
  26261. color: #918f8f;
  26262. width: 100px;
  26263. }
  26264. .textTitle >>> .el-form-item__content {
  26265. width: calc(100% - 100px);
  26266. }
  26267. .textCss >>> .el-dialog {
  26268. width: 800px !important;
  26269. height: 400px;
  26270. background: #fafafa;
  26271. }
  26272. .textCss >>> .el-dialog__body {
  26273. margin: 55px 8% 0 8%;
  26274. padding: 0 !important;
  26275. }
  26276. .textCss >>> .el-dialog__footer {
  26277. padding-top: 38px;
  26278. }
  26279. .toolsCss >>> .el-dialog__body {
  26280. padding: 20px;
  26281. }
  26282. .lineCss >>> .el-dialog__body {
  26283. display: flex;
  26284. flex-direction: row;
  26285. align-items: center;
  26286. justify-content: center;
  26287. }
  26288. .newNav {
  26289. display: flex;
  26290. flex-direction: row;
  26291. align-items: baseline;
  26292. justify-content: flex-start;
  26293. }
  26294. .navListItem {
  26295. width: calc(100% - 20px);
  26296. height: 50px;
  26297. margin: 0px auto 10px;
  26298. display: flex;
  26299. flex-direction: row;
  26300. flex-wrap: nowrap;
  26301. align-items: center;
  26302. justify-content: space-between;
  26303. background: #f0f4fa;
  26304. border-radius: 6px 6px 6px 6px;
  26305. }
  26306. .navText {
  26307. cursor: pointer;
  26308. white-space: nowrap;
  26309. overflow: hidden;
  26310. text-overflow: ellipsis;
  26311. width: 220px;
  26312. padding: 0 10px;
  26313. font-weight: 400;
  26314. color: #0e1e33;
  26315. }
  26316. .downIcon {
  26317. width: 20px;
  26318. min-width: 20px;
  26319. height: 20px;
  26320. margin-right: 15px;
  26321. cursor: pointer;
  26322. }
  26323. .downIcon > img {
  26324. width: 100%;
  26325. height: 100%;
  26326. }
  26327. .noVedio {
  26328. display: flex;
  26329. flex-direction: row;
  26330. justify-content: center;
  26331. align-content: center;
  26332. }
  26333. .noNavText {
  26334. cursor: pointer;
  26335. margin: 0px 0px 10px 5px;
  26336. width: 112px;
  26337. }
  26338. .listNoVedio {
  26339. margin: 0 0 0 30px;
  26340. width: 97%;
  26341. }
  26342. .video-player >>> .video-js {
  26343. height: 100%;
  26344. }
  26345. .hangVedioList {
  26346. width: 90% !important;
  26347. height: 150px !important;
  26348. margin: 20px 0 0 30px;
  26349. }
  26350. .hangVedio {
  26351. width: 100%;
  26352. height: 170px !important;
  26353. align-items: flex-start !important;
  26354. }
  26355. .hangHand {
  26356. height: 150px !important;
  26357. }
  26358. .twoChild {
  26359. width: 95%;
  26360. margin: 10px;
  26361. border-radius: 5px;
  26362. background: #f2f2f2;
  26363. display: flex;
  26364. flex-direction: column;
  26365. flex-wrap: nowrap;
  26366. justify-content: flex-start;
  26367. align-items: flex-start;
  26368. transition: all 0.5s;
  26369. overflow: hidden;
  26370. height: 0;
  26371. background: #e7f3ff;
  26372. }
  26373. .twoChild > div:nth-child(1) {
  26374. margin-top: 5px;
  26375. }
  26376. .navChild {
  26377. width: 100%;
  26378. cursor: pointer;
  26379. margin-bottom: 10px;
  26380. position: relative;
  26381. }
  26382. .navChild img {
  26383. position: absolute;
  26384. right: 11px;
  26385. width: 15px;
  26386. top: 50%;
  26387. transform: translateY(-50%);
  26388. }
  26389. .navActive,
  26390. .toolActive {
  26391. height: auto !important;
  26392. overflow: auto !important;
  26393. /* padding-bottom: 16px; */
  26394. }
  26395. .toolActive {
  26396. padding: 0;
  26397. }
  26398. .navTask {
  26399. display: flex;
  26400. flex-direction: row;
  26401. flex-wrap: nowrap;
  26402. align-items: center;
  26403. align-content: flex-start;
  26404. height: 40px;
  26405. justify-content: flex-start;
  26406. padding: 0 10px;
  26407. width: 100%;
  26408. box-sizing: border-box;
  26409. }
  26410. .navTaskname {
  26411. white-space: nowrap;
  26412. text-overflow: ellipsis;
  26413. overflow: hidden;
  26414. word-break: break-all;
  26415. padding-left: 5px;
  26416. }
  26417. .openTaskActive {
  26418. /* background-color: #e0eafb !important;
  26419. color: #0061ff; */
  26420. color:#fff;
  26421. background: rgb(55, 129, 252) !important;
  26422. }
  26423. .iframeName {
  26424. margin: 5px 0;
  26425. border-left: 4px solid #41c4a4;
  26426. padding-left: 4px;
  26427. }
  26428. .toolTitle {
  26429. margin: 0px 0px 20px;
  26430. font-size: 20px;
  26431. font-weight: 500;
  26432. border-left: 4px solid #41c4a4;
  26433. padding-left: 4px;
  26434. }
  26435. .cru_selectBox {
  26436. overflow: auto;
  26437. width: 95%;
  26438. margin: 17px auto 0;
  26439. height: calc(100% - 40px - 21px - 20px - 17px);
  26440. background: #fff;
  26441. border-radius: 8px;
  26442. }
  26443. .cru_selectBox::-webkit-scrollbar,
  26444. .study_top::-webkit-scrollbar,
  26445. .textContent::-webkit-scrollbar {
  26446. /*滚动条整体样式*/
  26447. width: 6px;
  26448. /*高宽分别对应横竖滚动条的尺寸*/
  26449. height: 6px;
  26450. }
  26451. /*定义滚动条轨道 内阴影+圆角*/
  26452. .cru_selectBox::-webkit-scrollbar-track,
  26453. .study_top::-webkit-scrollbar-track,
  26454. .textContent::-webkit-scrollbar {
  26455. border-radius: 10px;
  26456. background-color: #b8bdc9;
  26457. }
  26458. /*定义滑块 内阴影+圆角*/
  26459. .cru_selectBox::-webkit-scrollbar-thumb,
  26460. .study_top::-webkit-scrollbar-thumb,
  26461. .textContent::-webkit-scrollbar-thumb {
  26462. border-radius: 10px;
  26463. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  26464. background-color: #2c5ab3;
  26465. }
  26466. .vedioBox {
  26467. border-radius: 0 0 20px 20px;
  26468. background: #fff;
  26469. overflow: auto;
  26470. }
  26471. .taskBox {
  26472. width: 98%;
  26473. background: #f0f4fa;
  26474. margin: 10px auto;
  26475. padding: 0 10px;
  26476. border-radius: 4px;
  26477. box-sizing: border-box;
  26478. }
  26479. .vedioTaskBox {
  26480. width: 100%;
  26481. display: flex;
  26482. flex-direction: row;
  26483. flex-wrap: nowrap;
  26484. align-items: flex-start;
  26485. position: relative;
  26486. }
  26487. .toolBox {
  26488. margin: 15px 0 0 25px;
  26489. display: flex;
  26490. position: relative;
  26491. padding: 18px 20px;
  26492. border-top-left-radius: 5px;
  26493. border-top-right-radius: 5px;
  26494. width: 90%;
  26495. }
  26496. .btnAll {
  26497. position: absolute;
  26498. right: 0;
  26499. display: flex;
  26500. flex-direction: row;
  26501. flex-wrap: nowrap;
  26502. align-items: center;
  26503. }
  26504. .btnLeft,
  26505. .btnRight {
  26506. display: flex;
  26507. flex-direction: row;
  26508. flex-wrap: nowrap;
  26509. align-items: center;
  26510. padding: 5px 0;
  26511. }
  26512. .btnLeft {
  26513. border-right: 1px solid #cad1dc;
  26514. }
  26515. .btnLeft > .custom-tooltip {
  26516. background: #3681fc;
  26517. color: #fff;
  26518. }
  26519. .last:hover {
  26520. background: #3383fa !important;
  26521. color: #fff;
  26522. border: 1px solid #3383fa !important;
  26523. }
  26524. .last,
  26525. .returnBtn1 {
  26526. width: 90px;
  26527. height: 36px;
  26528. background: #ffffff;
  26529. border-radius: 4px;
  26530. border: 1px solid #0061ff;
  26531. color: #0061ff;
  26532. cursor: pointer;
  26533. display: flex;
  26534. flex-direction: row;
  26535. flex-wrap: nowrap;
  26536. align-items: center;
  26537. justify-content: center;
  26538. margin-left: 12px;
  26539. }
  26540. .returnBtn1 {
  26541. background: #f0f4fa;
  26542. border-radius: 4px;
  26543. border: 1px solid #cad1dc;
  26544. margin: 0 12px;
  26545. }
  26546. .lastImg {
  26547. min-width: 15px;
  26548. width: 15px;
  26549. height: 15px;
  26550. display: flex;
  26551. }
  26552. .lastText {
  26553. padding: 0 5px 0 5px;
  26554. box-sizing: border-box;
  26555. font-size: 14px;
  26556. }
  26557. .lastImg > img {
  26558. width: 100%;
  26559. height: 100%;
  26560. }
  26561. /* .vedioTimeBox {
  26562. display: flex;
  26563. flex-direction: row;
  26564. align-items: center;
  26565. flex-wrap: nowrap;
  26566. position: relative;
  26567. } */
  26568. .navBox {
  26569. background: #fff;
  26570. height: calc(100% - 40px);
  26571. overflow-y: auto;
  26572. overflow-x: hidden;
  26573. }
  26574. .worksBox {
  26575. margin: 0 0 10px 25px;
  26576. border-bottom: 1px solid #eeeeee;
  26577. padding: 18px 20px;
  26578. border-radius: 4px;
  26579. width: 90%;
  26580. }
  26581. .worksBTitle {
  26582. font-size: 20px;
  26583. padding-bottom: 15px;
  26584. border-bottom: 1px solid #eeeeee;
  26585. display: flex;
  26586. align-items: center;
  26587. }
  26588. .greenBox {
  26589. width: 5px;
  26590. height: 30px;
  26591. background: #63b6fa;
  26592. margin-right: 5px;
  26593. }
  26594. .worksDetailBox {
  26595. display: flex;
  26596. width: 100%;
  26597. flex-direction: row;
  26598. flex-wrap: wrap;
  26599. align-items: flex-end;
  26600. justify-content: flex-start;
  26601. padding: 15px 5px;
  26602. box-sizing: border-box;
  26603. }
  26604. .works {
  26605. display: flex;
  26606. flex-direction: column;
  26607. flex-wrap: nowrap;
  26608. align-items: flex-start;
  26609. justify-content: flex-start;
  26610. align-content: center;
  26611. max-width: 240px;
  26612. width: calc(100% / 3 - 10px);
  26613. height: auto;
  26614. margin-right: 10px;
  26615. margin-bottom: 10px;
  26616. overflow: hidden;
  26617. height: 140px;
  26618. box-shadow: 0 0 6px 1px #dfdada;
  26619. border-radius: 15px;
  26620. }
  26621. .workImg {
  26622. width: 100%;
  26623. /* height: calc(100% - 40px); */
  26624. height: 105px;
  26625. position: relative;
  26626. }
  26627. .workImg > img {
  26628. width: 100%;
  26629. height: 100%;
  26630. object-fit: contain;
  26631. cursor: pointer;
  26632. }
  26633. .worksName {
  26634. height: 40px;
  26635. line-height: 40px;
  26636. display: flex;
  26637. width: 100%;
  26638. flex-direction: row;
  26639. flex-wrap: nowrap;
  26640. justify-content: space-between;
  26641. align-items: center;
  26642. margin: 0 0 0 10px;
  26643. }
  26644. .worksName > div:nth-child(1) {
  26645. width: 110px;
  26646. white-space: nowrap;
  26647. overflow: hidden;
  26648. text-overflow: ellipsis;
  26649. }
  26650. .worksName > div:nth-child(2) {
  26651. color: #b7b4b5;
  26652. }
  26653. .noWorksS {
  26654. padding: 15px 0;
  26655. display: flex;
  26656. flex-direction: row;
  26657. flex-wrap: wrap;
  26658. align-items: center;
  26659. justify-content: flex-start;
  26660. }
  26661. .noWorksName,
  26662. .isWorksName,
  26663. .isWorksName2 {
  26664. background: #ddebf8;
  26665. color: #000;
  26666. width: 90px;
  26667. height: 25px;
  26668. text-align: center;
  26669. line-height: 25px;
  26670. border-radius: 4px;
  26671. margin: 10px 15px 10px 0;
  26672. white-space: nowrap;
  26673. overflow: hidden;
  26674. padding: 5px;
  26675. text-overflow: ellipsis;
  26676. cursor: pointer;
  26677. border: 1px solid #ddebf8;
  26678. }
  26679. .noWorksName {
  26680. background: #fff;
  26681. color: #0061ff;
  26682. border: 1px solid #0061ff;
  26683. }
  26684. .noWorksName > span{
  26685. max-width: 100%;
  26686. display: block;
  26687. overflow: hidden;
  26688. text-overflow: ellipsis;
  26689. white-space: nowrap;
  26690. }
  26691. .noWorksName2 {
  26692. background: #fff;
  26693. color: #0061ff;
  26694. width: 90px;
  26695. height: 25px;
  26696. text-align: center;
  26697. line-height: 25px;
  26698. border-radius: 4px;
  26699. margin: 10px 15px 10px 0;
  26700. white-space: nowrap;
  26701. overflow: hidden;
  26702. padding: 5px;
  26703. text-overflow: ellipsis;
  26704. cursor: pointer;
  26705. border: 1px solid #0061ff;
  26706. }
  26707. .noWorksName2 > span {
  26708. max-width: 100%;
  26709. display: block;
  26710. overflow: hidden;
  26711. text-overflow: ellipsis;
  26712. white-space: nowrap;
  26713. }
  26714. .isWorksName2 {
  26715. width: 100px;
  26716. height: 40px;
  26717. line-height: 40px;
  26718. position: relative;
  26719. background: #dae6f9;
  26720. }
  26721. .isWorksName {
  26722. background: #e7ebf1 !important;
  26723. width: 100px;
  26724. height: 40px;
  26725. line-height: 40px;
  26726. position: relative;
  26727. color: #acb4bf;
  26728. border: 1px solid #cad1dc !important;
  26729. }
  26730. .isSelectName,
  26731. .noWorksName:hover {
  26732. background: #3383fa !important;
  26733. color: #fff !important;
  26734. border: 1px solid #3383fa !important;
  26735. }
  26736. .title {
  26737. background: #1e5cc9;
  26738. /* width: 98%; */
  26739. height: 45px;
  26740. color: #fff;
  26741. line-height: 45px;
  26742. padding-left: 20px;
  26743. box-sizing: border-box;
  26744. }
  26745. .textBox {
  26746. font-size: 20px;
  26747. width: 90%;
  26748. display: flex;
  26749. flex-direction: column;
  26750. align-items: center;
  26751. margin: 20px auto 0;
  26752. max-height: calc(100% - 75px);
  26753. overflow: auto;
  26754. }
  26755. .textContent {
  26756. font-size: 18px;
  26757. width: 95%;
  26758. max-width: 95%;
  26759. }
  26760. .answerBg {
  26761. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  26762. background-size: 100% 100%;
  26763. width: 100%;
  26764. height: 100%;
  26765. color: #fff;
  26766. text-align: center;
  26767. display: flex;
  26768. flex-direction: column;
  26769. flex-wrap: nowrap;
  26770. align-items: center;
  26771. position: relative;
  26772. justify-content: center;
  26773. }
  26774. /* .answerBg > div:nth-child(1) { */
  26775. /* font-size: 22px;
  26776. padding: 25px 0 10px; */
  26777. /* } */
  26778. .answerContent {
  26779. width: 215px;
  26780. max-height: 60px;
  26781. word-break: break-all;
  26782. text-align: center;
  26783. /* white-space: nowrap; */
  26784. overflow: hidden;
  26785. text-overflow: ellipsis;
  26786. /* padding: 23px 0 0; */
  26787. -webkit-line-clamp: 3;
  26788. -webkit-box-orient: vertical;
  26789. display: -webkit-box;
  26790. font-size: 15px;
  26791. cursor: pointer;
  26792. }
  26793. .elist_input_box {
  26794. display: flex;
  26795. align-items: flex-start;
  26796. flex-wrap: nowrap;
  26797. padding: 10px 0 15px 30px;
  26798. flex-direction: column;
  26799. }
  26800. .elist_input {
  26801. /* width: 40%; */
  26802. width: 45%;
  26803. margin: 20px;
  26804. }
  26805. .elist_input .elist_input_box input {
  26806. font: inherit;
  26807. color: currentColor;
  26808. width: 200px;
  26809. padding: 8px 14px;
  26810. display: block;
  26811. min-width: 0;
  26812. outline: none;
  26813. border: 1px solid rgba(0, 0, 0, 0.23);
  26814. border-radius: 4px;
  26815. box-sizing: border-box;
  26816. background: #fff;
  26817. margin: 0 20px 0 0;
  26818. }
  26819. .elist_input .elist_input_box span {
  26820. height: 36px;
  26821. line-height: 36px;
  26822. color: rgb(82, 82, 82);
  26823. }
  26824. .elist_input .elist_input_box .remove {
  26825. height: 20px;
  26826. width: 20px;
  26827. background-size: 100% 100%;
  26828. background-position: unset;
  26829. margin-left: 5px;
  26830. }
  26831. .elist_input_box >>> .el-rate {
  26832. display: flex;
  26833. height: 36px;
  26834. align-items: center;
  26835. }
  26836. .elist_input_box .elist_inptu_text {
  26837. min-height: 50px;
  26838. /* width: 500px;
  26839. max-height: 150px; */
  26840. width: 100%;
  26841. line-height: 50px;
  26842. color: rgb(82, 82, 82);
  26843. overflow: auto;
  26844. text-indent: 5px;
  26845. background: #f7f6f9;
  26846. border-radius: 10px;
  26847. }
  26848. .elist_input_box .elist_inptu_text input {
  26849. width: 500px;
  26850. }
  26851. .elist_input_box >>> .el-rate__icon {
  26852. font-size: 24px;
  26853. }
  26854. .isClick {
  26855. background: #4d9def;
  26856. }
  26857. .bzBox {
  26858. display: flex;
  26859. flex-direction: row;
  26860. align-items: center;
  26861. }
  26862. .bzBox .yCss {
  26863. width: 7px;
  26864. height: 7px;
  26865. background: #fff;
  26866. margin: 0 16px 0 6px;
  26867. border-radius: 50%;
  26868. border: 5px solid #3681fc;
  26869. z-index: 99;
  26870. }
  26871. .bzBox > div:nth-child(2) {
  26872. font-size: 18px;
  26873. font-weight: bold;
  26874. color: #0e1e33;
  26875. }
  26876. .navTitile {
  26877. padding: 0 0px 0 15px;
  26878. font-size: 16px;
  26879. font-weight: bold;
  26880. color: #0e1e33;
  26881. height: 40px;
  26882. line-height: 40px;
  26883. }
  26884. .isTypeOne {
  26885. width: 240px;
  26886. height: 170px;
  26887. /* border: 1px solid #f8f8f8; */
  26888. border-radius: 10px;
  26889. box-shadow: 0 0 6px 1px #dfdada;
  26890. }
  26891. .e_add_top {
  26892. display: flex;
  26893. justify-content: space-between;
  26894. padding: 10px 20px;
  26895. border-radius: 3px;
  26896. background: #fff;
  26897. }
  26898. .e_add_title2 {
  26899. display: flex;
  26900. align-items: center;
  26901. }
  26902. .e_add_title2 span {
  26903. width: 40px;
  26904. }
  26905. .e_add_title {
  26906. display: flex;
  26907. align-items: center;
  26908. color: #b8b8b8;
  26909. font-size: 18px;
  26910. position: relative;
  26911. height: 40px;
  26912. }
  26913. .e_add_title span {
  26914. margin-right: 10px;
  26915. }
  26916. .e_add_title .el_input {
  26917. width: 300px;
  26918. }
  26919. .e_add_title >>> .el-input__inner {
  26920. width: 400px;
  26921. }
  26922. /* .e_add_btn {
  26923. } */
  26924. .e_add_content {
  26925. display: flex;
  26926. width: 100%;
  26927. max-width: 650px;
  26928. height: 550px;
  26929. }
  26930. .e_add_list {
  26931. background: #fff;
  26932. height: 500px;
  26933. width: 210px;
  26934. position: relative;
  26935. margin: 15px 5px 0 0;
  26936. flex-shrink: 0;
  26937. display: flex;
  26938. flex-direction: column;
  26939. }
  26940. .e_add_list_title {
  26941. font-size: 20px;
  26942. width: 100%;
  26943. box-sizing: border-box;
  26944. padding: 15px 40px;
  26945. text-align: center;
  26946. border-bottom: 1px solid #eaeaea;
  26947. position: relative;
  26948. display: flex;
  26949. align-items: center;
  26950. justify-content: center;
  26951. height: 57px;
  26952. background: #f6f6f6;
  26953. }
  26954. .e_add_list_title span {
  26955. overflow: hidden;
  26956. white-space: nowrap;
  26957. text-overflow: ellipsis;
  26958. }
  26959. .e_add_list_title img {
  26960. position: absolute;
  26961. right: 15px;
  26962. width: 25px;
  26963. cursor: pointer;
  26964. top: 50%;
  26965. transform: translateY(-50%);
  26966. }
  26967. .e_add_list_body {
  26968. height: calc(100% - 187px);
  26969. overflow: auto;
  26970. }
  26971. .e_add_list_child {
  26972. width: 100%;
  26973. display: flex;
  26974. align-items: center;
  26975. justify-content: center;
  26976. position: relative;
  26977. box-sizing: border-box;
  26978. padding: 15px 40px;
  26979. text-align: center;
  26980. }
  26981. .e_add_list_child span {
  26982. overflow: hidden;
  26983. white-space: nowrap;
  26984. text-overflow: ellipsis;
  26985. cursor: pointer;
  26986. }
  26987. .e_add_list_child img {
  26988. position: absolute;
  26989. right: 10px;
  26990. width: 21px;
  26991. cursor: pointer;
  26992. top: 50%;
  26993. transform: translateY(-50%);
  26994. }
  26995. .e_add_list_child + .e_add_list_child {
  26996. border-top: 1px solid #eaeaea;
  26997. }
  26998. .e_add_list_child .active {
  26999. color: #409eff;
  27000. }
  27001. .e_add_list_btn {
  27002. position: absolute;
  27003. bottom: 0;
  27004. height: 50px;
  27005. background: rgb(120, 120, 254);
  27006. width: 100%;
  27007. color: #fff;
  27008. font-size: 16px;
  27009. text-align: center;
  27010. line-height: 50px;
  27011. cursor: pointer;
  27012. }
  27013. .e_add_list_detail {
  27014. position: absolute;
  27015. bottom: 0;
  27016. height: 130px;
  27017. background: rgb(120, 120, 254);
  27018. width: 100%;
  27019. color: #fff;
  27020. font-size: 16px;
  27021. display: flex;
  27022. align-items: center;
  27023. justify-content: center;
  27024. }
  27025. .e_add_list_detail textarea {
  27026. height: 90%;
  27027. width: 95%;
  27028. border: none;
  27029. resize: none;
  27030. outline: none;
  27031. padding: 5px;
  27032. box-sizing: border-box;
  27033. }
  27034. .e_add_list_pbox {
  27035. width: 100%;
  27036. max-width: 650px;
  27037. /* height: 600px; */
  27038. }
  27039. .e_add_list_pbox_title {
  27040. height: 50px;
  27041. background: #fff;
  27042. display: flex;
  27043. align-items: center;
  27044. width: 100%;
  27045. box-sizing: border-box;
  27046. padding: 0 20px;
  27047. }
  27048. .type_title {
  27049. font-size: 18px;
  27050. font-weight: 700;
  27051. }
  27052. .type_content {
  27053. font-size: 16px;
  27054. /* margin-left: 30px; */
  27055. }
  27056. .type_content span + span {
  27057. margin-left: 20px;
  27058. }
  27059. .type_content span {
  27060. cursor: pointer;
  27061. padding-bottom: 5px;
  27062. box-sizing: border-box;
  27063. }
  27064. .type_content .active {
  27065. color: #409eff;
  27066. border-bottom: 2px solid #409eff;
  27067. }
  27068. .e_add_list_pbox_content {
  27069. height: calc(100% - 50px);
  27070. display: flex;
  27071. align-items: center;
  27072. width: 100%;
  27073. background: #fff;
  27074. }
  27075. .evaCss {
  27076. display: flex;
  27077. flex-direction: row;
  27078. flex-wrap: nowrap;
  27079. align-items: flex-start;
  27080. padding: 0 0 20px;
  27081. }
  27082. .cru_line {
  27083. position: absolute;
  27084. bottom: 0px;
  27085. transition: all 0.5s;
  27086. left: 0px;
  27087. width: 125px;
  27088. margin-left: -25px;
  27089. }
  27090. .isNoMessage {
  27091. width: 20%;
  27092. margin: 25% auto 0;
  27093. }
  27094. .isNoMessage > img {
  27095. width: 100%;
  27096. height: 100%;
  27097. }
  27098. .fullStyle >>> .el-dialog__body {
  27099. height: 100% !important;
  27100. }
  27101. .fullStyle >>> .el-dialog,
  27102. .fullStyle {
  27103. width: 100% !important;
  27104. max-width: 100% !important;
  27105. height: 100% !important;
  27106. margin: 0 !important;
  27107. }
  27108. .full_diy >>> .el-dialog {
  27109. margin: 0 !important;
  27110. height: 100%;
  27111. padding: 4px;
  27112. }
  27113. .full_diy >>> .el-dialog__body {
  27114. height: calc(100% - 100px);
  27115. }
  27116. .full_diy2 >>> .el-dialog__body {
  27117. height: calc(100% - 50px);
  27118. padding: 0;
  27119. }
  27120. .switchCss {
  27121. /* width: 100%; */
  27122. display: flex;
  27123. flex-direction: row;
  27124. flex-wrap: nowrap;
  27125. align-items: center;
  27126. /* justify-content: center; */
  27127. }
  27128. .isClickNav {
  27129. /* color: #499eef; */
  27130. color: #000;
  27131. }
  27132. .commentImg {
  27133. width: 25px;
  27134. height: 25px;
  27135. cursor: pointer;
  27136. }
  27137. .commentImg > img {
  27138. width: 100%;
  27139. height: 100%;
  27140. }
  27141. .comment {
  27142. background: #f9f9f9;
  27143. border-radius: 0 0 4px 4px;
  27144. display: flex;
  27145. flex-direction: row;
  27146. flex-wrap: nowrap;
  27147. align-items: center;
  27148. justify-content: flex-end;
  27149. height: 35px;
  27150. }
  27151. .commentList {
  27152. display: flex;
  27153. flex-direction: row;
  27154. flex-wrap: nowrap;
  27155. align-items: center;
  27156. justify-content: center;
  27157. align-content: center;
  27158. /* margin-left: 15px; */
  27159. /* margin-left: 8px; */
  27160. }
  27161. .scoreImg {
  27162. width: 17px;
  27163. height: 17px;
  27164. }
  27165. .studentDetail {
  27166. display: flex;
  27167. flex-direction: row;
  27168. flex-wrap: nowrap;
  27169. /* align-items: center; */
  27170. align-items: flex-start;
  27171. }
  27172. .tx {
  27173. width: 50px;
  27174. }
  27175. .tx > img {
  27176. width: 100%;
  27177. height: 100%;
  27178. }
  27179. .nameAndTime {
  27180. display: flex;
  27181. flex-direction: column;
  27182. flex-wrap: nowrap;
  27183. align-items: flex-start;
  27184. margin-left: 10px;
  27185. }
  27186. .worksAnswer {
  27187. color: #4078dd;
  27188. margin: 10px 0;
  27189. font-size: 16px;
  27190. position: relative;
  27191. }
  27192. .worksAnswer > img {
  27193. width: 500px;
  27194. height: 300px;
  27195. object-fit: contain;
  27196. margin: 0 auto;
  27197. display: block;
  27198. }
  27199. .commentTop {
  27200. border-bottom: 1px solid #eaeaea;
  27201. padding-bottom: 10px;
  27202. }
  27203. .commentBox {
  27204. padding-top: 15px;
  27205. }
  27206. .pl {
  27207. font-size: 18px;
  27208. }
  27209. .plPerson {
  27210. width: 100%;
  27211. }
  27212. .plName {
  27213. display: flex;
  27214. flex-direction: row;
  27215. flex-wrap: nowrap;
  27216. align-items: baseline;
  27217. color: #78787a;
  27218. width: 100%;
  27219. }
  27220. .deleteComment {
  27221. cursor: pointer;
  27222. margin-left: auto;
  27223. color: #237ade;
  27224. }
  27225. .plContent {
  27226. margin-top: 5px;
  27227. }
  27228. .evalCss {
  27229. background: #fff;
  27230. font-size: 18px;
  27231. }
  27232. .nav {
  27233. color: #9d9d9d;
  27234. padding: 5px 0 15px 20px;
  27235. }
  27236. .middleBox {
  27237. padding: 5px 0 15px 20px;
  27238. }
  27239. .pfBox {
  27240. padding-bottom: 30px;
  27241. }
  27242. .nameAndrate {
  27243. display: flex;
  27244. flex-direction: row;
  27245. flex-wrap: nowrap;
  27246. align-items: center;
  27247. padding-bottom: 10px;
  27248. height: 30px;
  27249. line-height: 30px;
  27250. }
  27251. .nameAndrate > div {
  27252. margin-left: 10px;
  27253. color: #000;
  27254. height: 30px;
  27255. }
  27256. .nameAndrate >>> .el-rate__icon {
  27257. font-size: 28px !important;
  27258. }
  27259. .pfBox > div:nth-child(2) {
  27260. background: #f7f6f9;
  27261. width: 400px;
  27262. min-height: 45px;
  27263. border-radius: 10px;
  27264. font-size: 16px;
  27265. display: flex;
  27266. flex-wrap: wrap;
  27267. align-items: center;
  27268. padding: 10px 20px;
  27269. box-sizing: border-box;
  27270. color: #000;
  27271. }
  27272. .bz {
  27273. display: flex;
  27274. flex-direction: row;
  27275. flex-wrap: nowrap;
  27276. align-items: flex-start;
  27277. }
  27278. .bz > div {
  27279. padding: 0 10px;
  27280. }
  27281. .select_box2_title {
  27282. background: #fff;
  27283. border-radius: 5px;
  27284. padding: 15px 10px;
  27285. box-sizing: border-box;
  27286. margin-bottom: 10px;
  27287. display: flex;
  27288. flex-direction: row;
  27289. flex-wrap: nowrap;
  27290. align-items: center;
  27291. }
  27292. .select_box2_title > div:nth-child(2) {
  27293. margin-left: 10px;
  27294. color: #c4c4c4;
  27295. }
  27296. .select_box2_box {
  27297. display: flex;
  27298. height: 500px;
  27299. }
  27300. .select_box2_img {
  27301. width: calc(100% - 310px);
  27302. height: 100%;
  27303. overflow: auto;
  27304. background: #fff;
  27305. border-radius: 5px;
  27306. }
  27307. .select_box2_img img {
  27308. width: 100%;
  27309. }
  27310. .select_box2_answer {
  27311. background: #fff;
  27312. margin-left: 10px;
  27313. border-radius: 5px;
  27314. width: 300px;
  27315. overflow: auto;
  27316. height: 90%;
  27317. display: flex;
  27318. flex-direction: column;
  27319. align-items: flex-start;
  27320. padding-top: 10px;
  27321. box-sizing: border-box;
  27322. position: relative;
  27323. }
  27324. .select_answer_title {
  27325. padding: 0 0 15px 20px;
  27326. color: #c4c4c4;
  27327. }
  27328. .select_box2_answer_box {
  27329. margin: 0 0 10px 20px;
  27330. width: 85%;
  27331. display: flex;
  27332. flex-direction: row;
  27333. flex-wrap: nowrap;
  27334. align-items: center;
  27335. }
  27336. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  27337. color: #000;
  27338. }
  27339. .upAnswerCss {
  27340. position: absolute;
  27341. bottom: 15px;
  27342. right: 15px;
  27343. }
  27344. .upAnswerCss >>> .el-button {
  27345. width: 95px;
  27346. height: 35px;
  27347. line-height: 35px;
  27348. padding: 0;
  27349. }
  27350. .rightWidthCss {
  27351. width: 60%;
  27352. display: flex;
  27353. flex-direction: row;
  27354. align-items: flex-start;
  27355. }
  27356. .rightAnswer {
  27357. display: flex;
  27358. flex-direction: row;
  27359. flex-wrap: nowrap;
  27360. align-items: center;
  27361. color: red;
  27362. margin-bottom: 31px;
  27363. }
  27364. .rightAnswerCss {
  27365. display: flex;
  27366. flex-direction: column;
  27367. flex-wrap: nowrap;
  27368. padding-top: 60px;
  27369. }
  27370. .blueCss {
  27371. color: #767de1;
  27372. margin-left: 10px;
  27373. }
  27374. .redCss {
  27375. color: red;
  27376. }
  27377. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  27378. color: rgb(0 123 255) !important;
  27379. }
  27380. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  27381. color: rgb(0 123 255) !important;
  27382. }
  27383. .zuoyeYulan {
  27384. padding-top: 0;
  27385. font-size: 18px;
  27386. display: flex;
  27387. align-items: flex-end;
  27388. }
  27389. .buttonA {
  27390. margin-left: 10px;
  27391. padding: 0;
  27392. }
  27393. .displayBox {
  27394. margin-bottom: 10px;
  27395. display: block;
  27396. border-bottom: 3px solid #eee;
  27397. display: flex;
  27398. align-items: center;
  27399. }
  27400. .easy_comment {
  27401. width: calc(100% - 90px);
  27402. margin-left: 10px;
  27403. display: flex;
  27404. flex-wrap: wrap;
  27405. }
  27406. .easy_comment > div {
  27407. border: 1px solid #4a4a4a;
  27408. color: #666;
  27409. border-radius: 15px;
  27410. padding: 5px 10px;
  27411. font-size: 16px;
  27412. margin-bottom: 10px;
  27413. margin-right: 5px;
  27414. cursor: pointer;
  27415. }
  27416. .easy_comment div:hover {
  27417. border: 1px solid #f7ba2a;
  27418. color: #c69217;
  27419. }
  27420. .xuan_right_box {
  27421. padding: 10px 0;
  27422. background: #f0f4fa;
  27423. margin: 0 15px 0 25px;
  27424. border-bottom-left-radius: 5px;
  27425. border-bottom-right-radius: 5px;
  27426. width: 91.5%;
  27427. }
  27428. .tool_right_box {
  27429. display: flex;
  27430. align-items: center;
  27431. }
  27432. .tool_right_box >>> .katex {
  27433. font-size: 16px;
  27434. }
  27435. .tool_right_box + .tool_right_box {
  27436. margin-top: 10px;
  27437. }
  27438. .right_box_xuan {
  27439. border-radius: 5px;
  27440. padding: 5px;
  27441. margin-left: 10px;
  27442. min-width: 95px;
  27443. background: #fff;
  27444. color: #0061ff;
  27445. border: 1px solid #0061ff;
  27446. font-size: 14px;
  27447. }
  27448. .pButton:hover {
  27449. opacity: 1 !important;
  27450. }
  27451. .pButton {
  27452. position: fixed;
  27453. text-align: center;
  27454. cursor: pointer;
  27455. z-index: 999;
  27456. right: 20px;
  27457. top: 110px;
  27458. width: 50px;
  27459. height: 50px;
  27460. display: flex;
  27461. align-items: center;
  27462. justify-content: center;
  27463. border-radius: 5px;
  27464. }
  27465. .pzClass {
  27466. width: calc(100% - 340px);
  27467. }
  27468. .newDialogCss {
  27469. /* position: fixed;
  27470. right: 5%;
  27471. top: 50%;
  27472. width: 340px;
  27473. transform: translateY(-50%);
  27474. height: 60%;
  27475. box-shadow: 0px 0 8px 0px #555555;
  27476. border-radius: 15px;
  27477. z-index: 999; */
  27478. position: fixed;
  27479. right: 20px;
  27480. top: 101px;
  27481. width: 330px;
  27482. height: calc(100% - 80px);
  27483. z-index: 999;
  27484. background: #fff;
  27485. border-top-right-radius: 0px;
  27486. border-bottom-right-radius: 0px;
  27487. overflow: hidden;
  27488. }
  27489. .newDialogCss>.scoreList{
  27490. width:100%;
  27491. height:100%;
  27492. box-sizing:border-box;
  27493. padding:10px 15px;
  27494. overflow:auto;
  27495. padding-bottom:80px;
  27496. }
  27497. .pzTop {
  27498. color: #fff;
  27499. background: #000;
  27500. display: flex;
  27501. flex-direction: row;
  27502. flex-wrap: nowrap;
  27503. align-items: center;
  27504. justify-content: space-between;
  27505. height: 40px;
  27506. border-radius: 15px 15px 0 0;
  27507. user-select: none;
  27508. }
  27509. .pzTop2 .checkbox {
  27510. display: flex;
  27511. align-items: center;
  27512. padding: 5px 10px;
  27513. flex: 0 0 auto;
  27514. font-weight: bold;
  27515. border-bottom: 1px solid #eee;
  27516. justify-content: space-between;
  27517. }
  27518. .checkbox>.cb-tabList{
  27519. display:flex;
  27520. align-items:center;
  27521. }
  27522. .cb-tabList>div{
  27523. margin-right:20px;
  27524. font-weight:400;
  27525. cursor:pointer;
  27526. }
  27527. .cb-tabList>.cb-tabItem{
  27528. color:#1684FC;
  27529. position:relative;
  27530. }
  27531. .cb-tabItem::after{
  27532. content:"";
  27533. width:100%;
  27534. height:2px;
  27535. background:#1684FC;
  27536. position:absolute;
  27537. bottom:-5px;
  27538. left:0
  27539. }
  27540. .pzTop2 .check {
  27541. text-align: center;
  27542. cursor: pointer;
  27543. box-sizing: border-box;
  27544. display: flex;
  27545. }
  27546. .pzTop2 img {
  27547. width: 25px;
  27548. cursor: pointer;
  27549. }
  27550. .pzTop > div:nth-child(1) {
  27551. padding-left: 10px;
  27552. }
  27553. .pzTop > div:nth-child(2) {
  27554. width: 15px;
  27555. height: 15px;
  27556. padding-right: 10px;
  27557. cursor: pointer;
  27558. }
  27559. .pzTop > div:nth-child(2) > img {
  27560. width: 100%;
  27561. height: 100%;
  27562. }
  27563. .pzBox,
  27564. .noPzBox {
  27565. height: calc(100% - 60px);
  27566. /* background: #ededed; */
  27567. background: #fff;
  27568. /* border-radius: 0 0 15px 15px; */
  27569. }
  27570. .noPzBox {
  27571. display: flex;
  27572. flex-direction: column;
  27573. flex-wrap: nowrap;
  27574. justify-content: center;
  27575. align-items: center;
  27576. }
  27577. .pzList {
  27578. background: #f7f7f7;
  27579. width: 90%;
  27580. margin: 0 auto 15px;
  27581. border-radius: 5px;
  27582. }
  27583. .pzNavTop {
  27584. display: flex;
  27585. flex-direction: row;
  27586. flex-wrap: nowrap;
  27587. padding: 10px 10px 0 10px;
  27588. align-items: center;
  27589. }
  27590. .pzDelete {
  27591. cursor: pointer;
  27592. margin-left: auto;
  27593. font-size: 14px;
  27594. color: #afafaf;
  27595. }
  27596. .pzNavTop > div:nth-child(1) {
  27597. background: #3760af;
  27598. width: 35px;
  27599. height: 35px;
  27600. color: #fff;
  27601. text-align: center;
  27602. line-height: 35px;
  27603. border-radius: 50%;
  27604. font-size: 14px;
  27605. }
  27606. .pzNavTop > div:nth-child(2) {
  27607. font-size: 18px;
  27608. color: #959595;
  27609. margin-left: 5px;
  27610. }
  27611. .pzContent {
  27612. padding: 10px;
  27613. word-break: break-word;
  27614. }
  27615. .pzContent audio {
  27616. width: 100%;
  27617. }
  27618. .pzContent audio::-webkit-media-controls-panel {
  27619. background: #fff;
  27620. }
  27621. .pzContent >>> img {
  27622. max-width: 100%;
  27623. }
  27624. .pzListBox {
  27625. padding-top: 15px;
  27626. height: calc(100% - 110px);
  27627. overflow: auto;
  27628. }
  27629. .addPzButton {
  27630. position: relative;
  27631. margin-top: 3px;
  27632. width: 100%;
  27633. }
  27634. .addPzButton .img1 {
  27635. position: absolute;
  27636. top: 50%;
  27637. right: 25px;
  27638. transform: translateY(-50%);
  27639. height: 100%;
  27640. display: flex;
  27641. align-items: center;
  27642. }
  27643. .addPzButton .img1 div {
  27644. display: flex;
  27645. }
  27646. .addPzButton .img1 div img {
  27647. width: 28px;
  27648. margin-left: 10px;
  27649. cursor: pointer;
  27650. }
  27651. .addPzButton .img1 div span {
  27652. font-size: 14px;
  27653. margin: 4px 0 0 3px;
  27654. color: #afafaf;
  27655. }
  27656. .addPz {
  27657. background: #4b79ce;
  27658. width: 100px;
  27659. color: #fff;
  27660. font-size: 12px;
  27661. height: 30px;
  27662. margin: 0 auto;
  27663. text-align: center;
  27664. line-height: 30px;
  27665. border-radius: 10px;
  27666. cursor: pointer;
  27667. }
  27668. .addDialogCss {
  27669. position: fixed;
  27670. width: 600px;
  27671. height: 70%;
  27672. min-height: 450px;
  27673. box-shadow: 0px 0 8px 0px #555555;
  27674. border-radius: 15px;
  27675. z-index: 999;
  27676. left: 50%;
  27677. top: 50%;
  27678. margin: -18% 0 0 -300px;
  27679. }
  27680. .teacherPz {
  27681. display: flex;
  27682. flex-direction: row;
  27683. align-items: center;
  27684. flex-wrap: nowrap;
  27685. }
  27686. .teacherPzImg {
  27687. width: 30px;
  27688. height: 30px;
  27689. }
  27690. .teacherPzImg > img {
  27691. width: 100%;
  27692. height: 100%;
  27693. }
  27694. .addPzBox {
  27695. height: calc(100% - 40px);
  27696. background: #ededed;
  27697. border-bottom-left-radius: 15px;
  27698. border-bottom-right-radius: 15px;
  27699. }
  27700. .pzAudioClass {
  27701. margin: 15px 14px;
  27702. background: #fff;
  27703. height: 100%;
  27704. display: flex;
  27705. justify-content: center;
  27706. align-items: center;
  27707. }
  27708. .pzConText {
  27709. width: 95%;
  27710. height: 100%;
  27711. margin: 10px auto 0;
  27712. border: none;
  27713. background: #fff;
  27714. border-radius: 0px;
  27715. }
  27716. .pzConText >>> .text {
  27717. height: calc(100% - 82px);
  27718. }
  27719. .addTextCss {
  27720. background: #4b79ce;
  27721. width: 80px;
  27722. height: 30px;
  27723. text-align: center;
  27724. color: #fff;
  27725. line-height: 30px;
  27726. border-radius: 10px;
  27727. margin: 10px auto 0;
  27728. cursor: pointer;
  27729. }
  27730. .pzConText:focus-visible {
  27731. border: none !important;
  27732. }
  27733. .maxWidth {
  27734. width: 1000px;
  27735. }
  27736. .noPz {
  27737. width: 150px;
  27738. margin: 0 auto 20%;
  27739. }
  27740. .noPz > img {
  27741. width: 100%;
  27742. height: 100%;
  27743. }
  27744. .timeAndReply {
  27745. display: flex;
  27746. flex-direction: row;
  27747. flex-wrap: nowrap;
  27748. justify-content: space-between;
  27749. align-items: center;
  27750. font-size: 14px;
  27751. box-sizing: border-box;
  27752. padding: 0 10px 10px 0px;
  27753. }
  27754. .timeAndReply .time {
  27755. color: #bfbfbf;
  27756. padding: 0 0 0 10px;
  27757. box-sizing: border-box;
  27758. }
  27759. .timeAndReply > div:last-child {
  27760. cursor: pointer;
  27761. color: #777;
  27762. }
  27763. /* table 样式 */
  27764. .cont >>> table {
  27765. border-top: 1px solid #ccc;
  27766. border-left: 1px solid #ccc;
  27767. }
  27768. .cont >>> table td,
  27769. .cont >>> table th {
  27770. border-bottom: 1px solid #ccc;
  27771. border-right: 1px solid #ccc;
  27772. /* padding: 20px 5px; */
  27773. padding: 5px 10px;
  27774. max-width: 0px;
  27775. height: 30px;
  27776. vertical-align: baseline;
  27777. box-sizing: border-box;
  27778. }
  27779. .cont >>> table th {
  27780. border-bottom: 2px solid #ccc;
  27781. text-align: center;
  27782. }
  27783. /* blockquote 样式 */
  27784. .cont >>> blockquote {
  27785. display: block;
  27786. border-left: 8px solid #d0e5f2;
  27787. padding: 5px 10px;
  27788. margin: 10px 0;
  27789. line-height: 1.4;
  27790. font-size: 100%;
  27791. background-color: #f1f1f1;
  27792. }
  27793. /* code 样式 */
  27794. .cont >>> code {
  27795. display: inline-block;
  27796. /* *display: inline; */
  27797. zoom: 1;
  27798. background-color: #f1f1f1;
  27799. border-radius: 3px;
  27800. padding: 3px 5px;
  27801. margin: 0 3px;
  27802. }
  27803. .cont >>> pre code {
  27804. display: block;
  27805. }
  27806. /* ul ol 样式 */
  27807. .cont >>> ul,
  27808. ol {
  27809. margin: 10px 0 10px 20px;
  27810. }
  27811. .addPzCheck {
  27812. display: flex;
  27813. flex-direction: row;
  27814. flex-wrap: nowrap;
  27815. padding: 10px 15px 0;
  27816. }
  27817. .addPzCheck span {
  27818. cursor: pointer;
  27819. padding-bottom: 5px;
  27820. font-weight: bold;
  27821. }
  27822. .addPzCheck span + span {
  27823. margin-left: 10px;
  27824. }
  27825. .addPzCheck .isChooseActive {
  27826. color: #3e88f4;
  27827. border-bottom: 2px solid #2f80f3;
  27828. }
  27829. /* code 样式 */
  27830. .cont {
  27831. /* -webkit-user-modify: read-write; */
  27832. overflow-wrap: break-word;
  27833. -webkit-line-break: after-white-space;
  27834. word-break: break-word;
  27835. white-space: pre-line;
  27836. }
  27837. .scoreBox,
  27838. .scoreDetailBox {
  27839. display: flex;
  27840. align-items: center;
  27841. justify-content: flex-start;
  27842. margin-top: 20px;
  27843. font-size: 18px;
  27844. width: 100%;
  27845. }
  27846. .scoreBox .t,
  27847. .scoreDetailBox .t {
  27848. margin-right: 10px;
  27849. min-width: 100px;
  27850. text-align: right;
  27851. }
  27852. .scoreDetailBox {
  27853. align-items: flex-start;
  27854. }
  27855. .scoreDetailBox >>> .el-textarea {
  27856. width: calc(100% - 200px);
  27857. }
  27858. .scoreBox >>> .el-input {
  27859. width: 130px;
  27860. font-size: 38px;
  27861. }
  27862. .scoreBox >>> .el-input__inner {
  27863. height: 60px;
  27864. }
  27865. .answerScore {
  27866. position: absolute;
  27867. top: 10px;
  27868. right: 10px;
  27869. background: #0000008f;
  27870. border-radius: 5px;
  27871. padding: 3px 5px;
  27872. font-size: 14px;
  27873. color: #fff;
  27874. cursor: pointer;
  27875. }
  27876. .open_box .switch_box {
  27877. width: 100%;
  27878. margin: 0 auto;
  27879. display: flex;
  27880. justify-content: space-between;
  27881. }
  27882. .open_box .switch_box + .switch_box {
  27883. margin-top: 10px;
  27884. }
  27885. .deleteImg,.deleteImg1 {
  27886. width: 25px !important;
  27887. height: 25px !important;
  27888. cursor: pointer;
  27889. position: absolute;
  27890. top: 10px;
  27891. right: 10px;
  27892. }
  27893. .deleteImg2 {
  27894. width: 23px !important;
  27895. height: 23px !important;
  27896. top: 5px;
  27897. right: 5px;
  27898. }
  27899. .deleteImg1{
  27900. width: 23px !important;
  27901. height: 23px !important;
  27902. top: 5px !important;
  27903. right: 30px !important;
  27904. }
  27905. .rightW {
  27906. right: 40px;
  27907. }
  27908. .drawPBox {
  27909. display: flex;
  27910. flex-direction: column;
  27911. position: relative;
  27912. }
  27913. .drawPBox span {
  27914. font-size: 18px;
  27915. color: #606266;
  27916. padding-bottom: 10px;
  27917. margin: 10px 0;
  27918. border-bottom: 1px solid #eaeaea;
  27919. }
  27920. .drawPBox img {
  27921. width: 500px;
  27922. height: 300px;
  27923. object-fit: contain;
  27924. cursor: pointer;
  27925. margin: 0 auto;
  27926. }
  27927. .sentenBox {
  27928. background: #fff;
  27929. height: 450px;
  27930. overflow: auto;
  27931. background-image: url("../../assets/icon/conSentences/stuBg.png");
  27932. background-position: 102%;
  27933. background-repeat: no-repeat;
  27934. background-size: 60%;
  27935. }
  27936. .addSen {
  27937. background: #409efe;
  27938. width: 90px;
  27939. color: #fff;
  27940. height: 35px;
  27941. text-align: center;
  27942. line-height: 35px;
  27943. border-radius: 5px;
  27944. float: right;
  27945. margin: 10px 20px 0 0;
  27946. cursor: pointer;
  27947. }
  27948. .sentenTop {
  27949. display: flex;
  27950. flex-direction: row;
  27951. flex-wrap: nowrap;
  27952. align-items: center;
  27953. padding: 55px 0 0 20px;
  27954. box-sizing: border-box;
  27955. }
  27956. .sentenTop > div:nth-child(2) {
  27957. width: 300px;
  27958. margin: 0 15px;
  27959. }
  27960. .sentenTop > div:nth-child(3) {
  27961. background: #409efe;
  27962. color: #fff;
  27963. width: 65px;
  27964. height: 35px;
  27965. text-align: center;
  27966. line-height: 35px;
  27967. border-radius: 5px;
  27968. cursor: pointer;
  27969. }
  27970. .cardList,
  27971. .cardList1 {
  27972. padding: 10px 0 10px 0;
  27973. display: flex;
  27974. flex-direction: row;
  27975. flex-wrap: wrap;
  27976. align-items: center;
  27977. box-sizing: border-box;
  27978. border-bottom: 1px solid #f4f4f4;
  27979. width: 98%;
  27980. margin: 0 auto;
  27981. min-width: 60%;
  27982. max-width: 85%;
  27983. }
  27984. .cardList1 {
  27985. padding: 10px 0 10px 10px !important;
  27986. margin: 0 !important;
  27987. }
  27988. .cardBox {
  27989. display: flex;
  27990. flex-direction: row;
  27991. flex-wrap: wrap;
  27992. align-items: center;
  27993. align-content: center;
  27994. }
  27995. .cardBox > div {
  27996. margin-bottom: 10px;
  27997. }
  27998. .isCard,
  27999. .isChooseCard,
  28000. .noCard,
  28001. .isCard1 {
  28002. min-width: 130px;
  28003. width: auto;
  28004. height: 60px;
  28005. text-align: center;
  28006. line-height: 60px;
  28007. font-size: 20px;
  28008. cursor: pointer;
  28009. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  28010. background-size: cover;
  28011. transition: all 2s;
  28012. margin-right: 20px;
  28013. background-size: 100% 100%;
  28014. padding: 0 20px;
  28015. box-sizing: border-box;
  28016. }
  28017. .isCard > div,
  28018. .noCard > div,
  28019. .isCard1 > div {
  28020. white-space: nowrap;
  28021. overflow: hidden;
  28022. text-overflow: ellipsis;
  28023. width: 100%;
  28024. margin: 0 auto;
  28025. }
  28026. .noCard {
  28027. background-image: none;
  28028. }
  28029. .isCard1 {
  28030. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  28031. }
  28032. .isChooseCard {
  28033. background-image: none;
  28034. border: 1px dashed #b9b9b9;
  28035. border-radius: 10px;
  28036. }
  28037. .card {
  28038. width: 130px;
  28039. height: 60px;
  28040. }
  28041. .card > img {
  28042. width: 100%;
  28043. height: 100%;
  28044. }
  28045. .rightCardBox {
  28046. margin: 10px 0 0 10px;
  28047. }
  28048. .rightCardBox > div:nth-child(1) {
  28049. margin-bottom: 10px;
  28050. }
  28051. .cardCss {
  28052. display: flex;
  28053. flex-direction: column;
  28054. flex-wrap: nowrap;
  28055. align-items: center;
  28056. border-bottom: 3px solid #b4c3d3;
  28057. padding: 0 0 5px 0;
  28058. margin-right: 10px;
  28059. }
  28060. .cardCss > div:nth-child(2) {
  28061. background: #5b7b9d;
  28062. color: #fff;
  28063. width: 20px;
  28064. height: 20px;
  28065. border-radius: 50%;
  28066. text-align: center;
  28067. line-height: 20px;
  28068. }
  28069. .isWrong {
  28070. display: flex;
  28071. flex-direction: row;
  28072. flex-wrap: nowrap;
  28073. align-content: center;
  28074. align-items: center;
  28075. }
  28076. .answerRight {
  28077. width: 25%;
  28078. }
  28079. .isTj {
  28080. display: flex;
  28081. flex-direction: row;
  28082. flex-wrap: nowrap;
  28083. align-items: center;
  28084. }
  28085. .isTj > div:nth-child(2) {
  28086. color: #727070;
  28087. margin-left: 10px;
  28088. }
  28089. .isTjImg {
  28090. width: 30px;
  28091. height: 30px;
  28092. }
  28093. .isTjImg > img {
  28094. width: 100%;
  28095. height: 100%;
  28096. }
  28097. .cardAnswerBox {
  28098. font-size: 18px;
  28099. width: 97%;
  28100. border: 5px;
  28101. padding: 0;
  28102. border-radius: 5px;
  28103. margin: 10px auto;
  28104. word-break: break-word;
  28105. }
  28106. .w_name {
  28107. margin-bottom: 10px;
  28108. }
  28109. .w_name span {
  28110. font-size: 16px;
  28111. }
  28112. .w_teachert {
  28113. width: 50px !important;
  28114. position: absolute;
  28115. height: auto !important;
  28116. z-index: 10;
  28117. right: 25px;
  28118. top: -25px;
  28119. }
  28120. /* .group_workBox {
  28121. } */
  28122. .group_workBox + .group_workBox {
  28123. margin-top: 20px;
  28124. }
  28125. .group_box {
  28126. padding-bottom: 20px;
  28127. border-bottom: 2px solid #f0f0f0;
  28128. margin-top: 10px;
  28129. }
  28130. .group_title {
  28131. display: flex;
  28132. align-items: center;
  28133. justify-content: space-between;
  28134. width: 95%;
  28135. }
  28136. .group_name {
  28137. background-image: url(../../assets/icon/groupN.png);
  28138. width: 220px;
  28139. background-size: 100% 100%;
  28140. height: 67px;
  28141. padding: 0 20px 0 43px;
  28142. box-sizing: border-box;
  28143. line-height: 63px;
  28144. color: #fff;
  28145. overflow: hidden;
  28146. white-space: nowrap;
  28147. text-overflow: ellipsis;
  28148. }
  28149. .group_work {
  28150. width: 100%;
  28151. padding: 0 10px;
  28152. box-sizing: border-box;
  28153. display: flex;
  28154. flex-wrap: wrap;
  28155. }
  28156. .g_d_box {
  28157. display: flex;
  28158. flex-flow: wrap;
  28159. justify-content: space-around;
  28160. }
  28161. .g_d_box .isChair {
  28162. background-image: url(../../assets/avatar.png) !important;
  28163. }
  28164. .g_d_group {
  28165. width: 500px;
  28166. margin-bottom: 80px;
  28167. }
  28168. .g_d_group_chair {
  28169. display: flex;
  28170. align-items: center;
  28171. justify-content: center;
  28172. }
  28173. .g_d_group_chair > div + div {
  28174. margin-left: 30px;
  28175. }
  28176. .g_d_group_chair > div,
  28177. .g_d_group_chair2 > div {
  28178. display: flex;
  28179. flex-direction: column;
  28180. align-items: center;
  28181. }
  28182. .g_d_group_chair > div > span:nth-child(1),
  28183. .g_d_group_chair2 > div > span:nth-child(1) {
  28184. background-image: url(../../assets/icon/chair.png);
  28185. width: 50px;
  28186. height: 50px;
  28187. display: block;
  28188. background-size: 100% 100%;
  28189. }
  28190. .g_d_group_tableBox {
  28191. display: flex;
  28192. align-items: center;
  28193. justify-content: center;
  28194. }
  28195. .g_d_group_chair2 {
  28196. display: flex;
  28197. flex-direction: column;
  28198. align-items: center;
  28199. justify-content: center;
  28200. }
  28201. .g_d_group_chair2 > div + div {
  28202. margin-top: 10px;
  28203. }
  28204. .g_d_group_table {
  28205. background-image: url(../../assets/icon/groupBg.png);
  28206. width: 354px;
  28207. height: 196px;
  28208. background-size: 100% 100%;
  28209. display: flex;
  28210. align-items: center;
  28211. justify-content: center;
  28212. flex-direction: column;
  28213. color: #fff;
  28214. }
  28215. .g_d_group_table > div:nth-child(1) {
  28216. font-size: 24px;
  28217. margin-bottom: 5px;
  28218. }
  28219. .g_d_group_table > div:nth-child(2) div {
  28220. cursor: pointer;
  28221. background: #2e77bf;
  28222. padding: 4px 10px;
  28223. border-radius: 5px;
  28224. }
  28225. /* .groupBox {
  28226. } */
  28227. .groupContent + .groupContent {
  28228. margin-top: 30px;
  28229. }
  28230. .groupTitle {
  28231. font-size: 24px;
  28232. color: rgb(80, 80, 80);
  28233. margin-bottom: 20px;
  28234. }
  28235. .groupName {
  28236. display: flex;
  28237. align-items: center;
  28238. }
  28239. .groupn {
  28240. font-size: 15px;
  28241. margin-right: 10px;
  28242. }
  28243. .groupName + .groupName {
  28244. margin-top: 15px;
  28245. }
  28246. .groupBtn {
  28247. margin-left: 10px;
  28248. }
  28249. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  28250. text-align: left;
  28251. }
  28252. .g_d_btnBox {
  28253. display: flex;
  28254. justify-content: flex-end;
  28255. align-items: center;
  28256. margin-bottom: 20px;
  28257. }
  28258. .updateChair {
  28259. position: relative;
  28260. }
  28261. .updateChairBtn {
  28262. position: absolute;
  28263. width: 50px;
  28264. height: 50px;
  28265. overflow: hidden;
  28266. /* display: flex; */
  28267. align-items: center;
  28268. justify-content: center;
  28269. background: #00000087;
  28270. color: #fff;
  28271. border-radius: 50px;
  28272. display: none;
  28273. cursor: pointer;
  28274. }
  28275. .updateChair:hover .updateChairBtn {
  28276. display: flex;
  28277. }
  28278. .group_staic_box {
  28279. display: flex;
  28280. padding: 30px 40px 10px;
  28281. flex-wrap: wrap;
  28282. }
  28283. .group_staic {
  28284. /* width: 50%; */
  28285. margin-bottom: 20px;
  28286. display: flex;
  28287. align-items: center;
  28288. }
  28289. .group_staic span:nth-child(1) {
  28290. width: 150px;
  28291. text-align: right;
  28292. margin-right: 15px;
  28293. }
  28294. .group_staic span:nth-child(2) {
  28295. background: rgb(0 123 255);
  28296. color: #fff;
  28297. border-radius: 5px;
  28298. padding: 5px;
  28299. }
  28300. .codeFileBox {
  28301. height: 300px;
  28302. background: #fff;
  28303. display: flex;
  28304. align-items: center;
  28305. justify-content: center;
  28306. }
  28307. .codeFileBox img {
  28308. width: 200px;
  28309. margin: 0;
  28310. height: auto;
  28311. }
  28312. .codeFileBox div {
  28313. background: rgb(80, 142, 226);
  28314. color: #fff;
  28315. padding: 10px 20px;
  28316. border-radius: 25px;
  28317. cursor: pointer;
  28318. margin-left: 15px;
  28319. }
  28320. .radioBox {
  28321. display: flex;
  28322. flex-direction: column;
  28323. flex-wrap: nowrap;
  28324. align-items: flex-start;
  28325. }
  28326. .radioBox > div {
  28327. margin: 10px 0 0 10px;
  28328. }
  28329. /* .radioBox >>> .el-radio__input,
  28330. .radioBox >>> .el-checkbox__inner {
  28331. margin-left: 10px;
  28332. } */
  28333. .radioBox >>> .el-radio__label,
  28334. .radioBox >>> .el-checkbox__label {
  28335. display: flex;
  28336. align-items: center;
  28337. width: 100%;
  28338. }
  28339. .radioBox >>> .el-radio__label > span {
  28340. width: 100%;
  28341. display: -webkit-box;
  28342. overflow: hidden;
  28343. white-space: normal !important;
  28344. text-overflow: ellipsis;
  28345. word-wrap: break-word;
  28346. }
  28347. .inImg {
  28348. width: 100px;
  28349. cursor: pointer;
  28350. }
  28351. .inImg > img {
  28352. width: 100%;
  28353. height: 100%;
  28354. object-fit: cover;
  28355. }
  28356. .timuImgBox {
  28357. margin: 10px 0;
  28358. display: flex;
  28359. flex-direction: column;
  28360. flex-wrap: wrap;
  28361. align-items: flex-start;
  28362. }
  28363. .timuImg {
  28364. width: 150px;
  28365. margin: 5px 0;
  28366. cursor: pointer;
  28367. }
  28368. .timuImg > img {
  28369. width: 100%;
  28370. height: 100%;
  28371. object-fit: cover;
  28372. }
  28373. .worksTop {
  28374. display: flex;
  28375. flex-direction: row;
  28376. align-items: flex-end;
  28377. }
  28378. .worksTitle {
  28379. display: flex;
  28380. flex-direction: row;
  28381. flex-wrap: nowrap;
  28382. align-items: center;
  28383. }
  28384. .worksTitle::before,
  28385. .worksTop::before {
  28386. content: "";
  28387. display: block;
  28388. width: 3px;
  28389. height: 20px;
  28390. background: #0061ff;
  28391. border-radius: 3px;
  28392. margin: 0 5px 0 0;
  28393. }
  28394. .corOpen {
  28395. margin: 0 0 0 10px;
  28396. font-size: 14px;
  28397. cursor: pointer;
  28398. color: #505050;
  28399. }
  28400. .corOpen:hover {
  28401. color: #499eef;
  28402. }
  28403. .navCorOpenBox {
  28404. display: flex;
  28405. flex-direction: row;
  28406. align-items: center;
  28407. justify-content: space-between;
  28408. height: 55px;
  28409. background: #ffffff;
  28410. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  28411. border-radius: 8px 8px 0px 0px;
  28412. z-index: 9;
  28413. position: relative;
  28414. }
  28415. .navCorOpen {
  28416. padding-right: 15px;
  28417. cursor: pointer;
  28418. width: 45px;
  28419. display: flex;
  28420. }
  28421. .navCorOpen > img {
  28422. width: 100%;
  28423. height: 100%;
  28424. }
  28425. .mlImg {
  28426. width: 40px !important;
  28427. min-width: 40px;
  28428. cursor: pointer;
  28429. transform: rotate(180deg);
  28430. }
  28431. .mlImg > img {
  28432. width: 100%;
  28433. height: 100%;
  28434. }
  28435. .navLeftCss {
  28436. width: 100% !important;
  28437. left: 0 !important;
  28438. }
  28439. .isContentCss {
  28440. width: 100% !important;
  28441. }
  28442. .isAllWidth {
  28443. width: 100% !important;
  28444. }
  28445. .group_switch {
  28446. margin-right: 10px;
  28447. height: 30px;
  28448. display: flex;
  28449. align-items: center;
  28450. }
  28451. .group_switch > span {
  28452. margin-right: 5px;
  28453. }
  28454. .fileC_box {
  28455. padding-top: 15px;
  28456. }
  28457. .fileC_box > .fileC_title {
  28458. padding: 10px 5px 14px 10px;
  28459. border-top: 1px solid #cad1dc;
  28460. font-size: 14px;
  28461. font-weight: 400;
  28462. color: #cad1dc;
  28463. width: calc(100% - 20px);
  28464. margin: 0 auto;
  28465. box-sizing: border-box;
  28466. }
  28467. .pl_select_box {
  28468. height: 40px;
  28469. line-height: 40px;
  28470. width: 100%;
  28471. cursor: pointer;
  28472. padding: 0 20px;
  28473. box-sizing: border-box;
  28474. border-radius: 5px;
  28475. border: 1px solid #d6d6d6;
  28476. white-space: nowrap;
  28477. overflow: hidden;
  28478. text-overflow: ellipsis;
  28479. background: #fff;
  28480. text-align: left;
  28481. }
  28482. .newButton {
  28483. width: 102px;
  28484. height: 36px;
  28485. background: #e7ebf1;
  28486. border-radius: 4px;
  28487. color: #0e1e33;
  28488. font-weight: 400;
  28489. font-size: 14px;
  28490. border: none;
  28491. float: right;
  28492. margin-left: 10px;
  28493. }
  28494. .el-table >>> .even_row {
  28495. background-color: #f0f4fa;
  28496. }
  28497. .stageBoxCss,
  28498. .stageBoxIsCss {
  28499. display: flex;
  28500. flex-direction: row;
  28501. flex-wrap: nowrap;
  28502. align-items: center;
  28503. height: 50px;
  28504. border-bottom: 1px solid #e2f5fc;
  28505. cursor: pointer;
  28506. width: 100%;
  28507. }
  28508. .stageBoxIsCss {
  28509. background: #0061ff;
  28510. color: #fff;
  28511. border-radius: 8px;
  28512. }
  28513. .closeTri,
  28514. .closeTri1 {
  28515. min-width: 15px;
  28516. width: 15px;
  28517. height: 15px;
  28518. }
  28519. .closeTri1 {
  28520. padding-left: 10px;
  28521. cursor: pointer;
  28522. }
  28523. .closeTri > img,
  28524. .closeTri1 > img {
  28525. width: 100%;
  28526. height: 100%;
  28527. /* transition: all .5s; */
  28528. }
  28529. .noToolBlue {
  28530. min-width: 10px;
  28531. width: 10px;
  28532. height: 10px;
  28533. background: #0061ff;
  28534. border-radius: 50%;
  28535. margin-left: 13px;
  28536. }
  28537. .stageChild,
  28538. .toolChild {
  28539. height: 0;
  28540. overflow: hidden;
  28541. transition: all 0.5s;
  28542. }
  28543. /* .toolChild { */
  28544. /* margin: 0 0 0 17px;
  28545. padding: 0 0 0 20px;
  28546. border-left: 1px solid #d7d7d7; */
  28547. /* } */
  28548. .toolChild > div + div{
  28549. margin-top:5px;
  28550. }
  28551. .gjCss {
  28552. display: flex;
  28553. flex-direction: row;
  28554. flex-wrap: nowrap;
  28555. align-items: center;
  28556. padding: 10px 0 10px 25px;
  28557. box-sizing: border-box;
  28558. font-size: 14px;
  28559. cursor: pointer;
  28560. border-radius:5px;
  28561. }
  28562. .gjCss > div:nth-child(1){
  28563. flex-shrink: 0;
  28564. }
  28565. .toolChild > div {
  28566. position: relative;
  28567. width: 100%;
  28568. }
  28569. /* .toolChild > div::before { */
  28570. /* content: "";
  28571. width: 15px;
  28572. height: 1px;
  28573. background: #cad1dc;
  28574. position: absolute;
  28575. top: 24px;
  28576. left: -20px;
  28577. display: block; */
  28578. /* } */
  28579. .isGjCss {
  28580. /* color: #0061ff; */
  28581. color:#fff;
  28582. background: rgb(55, 129, 252);
  28583. /* background-color: #e0eafb !important;
  28584. color: #0061ff !important; */
  28585. }
  28586. .navItem {
  28587. background: #ffffff;
  28588. border-radius: 4px;
  28589. width: 100%;
  28590. margin: 10px auto;
  28591. position: relative;
  28592. height: 40px;
  28593. display: flex;
  28594. flex-direction: row;
  28595. flex-wrap: nowrap;
  28596. align-items: center;
  28597. }
  28598. .navItemList {
  28599. display: flex;
  28600. flex-direction: row;
  28601. flex-wrap: nowrap;
  28602. align-items: center;
  28603. padding: 0 13px;
  28604. cursor: pointer;
  28605. width: calc(100% - 60px);
  28606. height: 100%;
  28607. }
  28608. .navItemList > div:first-child {
  28609. min-width: 60px;
  28610. }
  28611. .navItemList > div:last-child {
  28612. width: calc(100% - 80px);
  28613. white-space: nowrap;
  28614. overflow: hidden;
  28615. text-overflow: ellipsis;
  28616. word-break: break-word;
  28617. }
  28618. /* .isItemList > div {
  28619. color: #fff !important;
  28620. } */
  28621. .tool_work_box {
  28622. width: 100%;
  28623. padding: 0 37px 0;
  28624. box-sizing: border-box;
  28625. }
  28626. .tool_box {
  28627. width: 100%;
  28628. padding: 0 0 0 20px;
  28629. }
  28630. .tool_type_box {
  28631. display: flex;
  28632. flex-direction: row;
  28633. align-items: baseline;
  28634. flex-wrap: nowrap;
  28635. justify-content: flex-start;
  28636. position: relative;
  28637. }
  28638. .toolSort {
  28639. display: flex;
  28640. flex-direction: row;
  28641. flex-wrap: wrap;
  28642. justify-content: flex-start;
  28643. align-items: flex-start;
  28644. padding: 0 0 15px 0;
  28645. }
  28646. .toolSort > div {
  28647. margin: 0 10px 0 0;
  28648. width: 135px;
  28649. box-sizing: border-box;
  28650. border: 2px solid transparent;
  28651. }
  28652. .tools {
  28653. width: 100%;
  28654. display: flex;
  28655. flex-direction: column;
  28656. flex-wrap: nowrap;
  28657. align-items: flex-start;
  28658. }
  28659. .whiteBIcon {
  28660. width: fit-content;
  28661. cursor: pointer;
  28662. display: flex;
  28663. flex-direction: column;
  28664. flex-wrap: nowrap;
  28665. align-items: center;
  28666. font-size: 14px;
  28667. }
  28668. .tool:hover {
  28669. border: 2px solid #a5c7ff;
  28670. border-radius: 5px;
  28671. }
  28672. .whiteBIcon > img {
  28673. width: 65px;
  28674. height: 100%;
  28675. }
  28676. .whiteBIcon > img {
  28677. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  28678. border-radius: 15px;
  28679. }
  28680. .check {
  28681. /* width: 20px;
  28682. height: 20px; */
  28683. cursor: pointer;
  28684. margin: 10px 0;
  28685. position: absolute;
  28686. right: 2px;
  28687. top: -5px;
  28688. }
  28689. .noChoose,
  28690. .isChoose {
  28691. width: 15px;
  28692. height: 15px;
  28693. border-radius: 50%;
  28694. border: 1px solid #adadad;
  28695. }
  28696. .isChoose {
  28697. border: 4px solid #0363ff !important;
  28698. width: 10px;
  28699. height: 10px;
  28700. }
  28701. .isToolChoose {
  28702. border: 2px solid #5394ff !important;
  28703. border-radius: 5px;
  28704. box-shadow: 0 0 6px 0px #5394ff;
  28705. }
  28706. .checkDiv {
  28707. display: flex;
  28708. align-items: center;
  28709. }
  28710. .checkDiv span {
  28711. margin-left: 5px;
  28712. color: #858585;
  28713. }
  28714. .check img {
  28715. width: 20px;
  28716. height: 20px;
  28717. }
  28718. .lockTaskIcon {
  28719. width: 20px;
  28720. height: 20px;
  28721. position: absolute;
  28722. right: 10px;
  28723. top: 10px;
  28724. }
  28725. .lockTaskIcon > img {
  28726. width: 100%;
  28727. height: 100%;
  28728. }
  28729. .pick_box {
  28730. display: flex;
  28731. align-items: flex-start;
  28732. flex-wrap: wrap;
  28733. }
  28734. .selectBox {
  28735. width: 110px;
  28736. margin-left: 10px;
  28737. margin: 0 10px 0 auto;
  28738. }
  28739. .selectBox >>> .el-input__inner {
  28740. height: 30px;
  28741. line-height: 30px;
  28742. }
  28743. .selectBox >>> .el-input__icon {
  28744. line-height: 30px;
  28745. }
  28746. .sentenceTitle {
  28747. display: flex;
  28748. flex-direction: row;
  28749. flex-wrap: nowrap;
  28750. align-items: center;
  28751. }
  28752. .sentenceTitle::before {
  28753. content: attr(index);
  28754. background: #3681fc;
  28755. border-radius: 50%;
  28756. color: #fff;
  28757. width: 25px;
  28758. height: 25px;
  28759. min-width: 25px;
  28760. min-height: 25px;
  28761. text-align: center;
  28762. line-height: 25px;
  28763. margin-right: 5px;
  28764. }
  28765. .hfBox {
  28766. padding: 10px;
  28767. box-sizing: border-box;
  28768. }
  28769. .whoReplyWho {
  28770. display: flex;
  28771. flex-direction: row;
  28772. flex-wrap: nowrap;
  28773. align-items: baseline;
  28774. justify-content: flex-start;
  28775. }
  28776. .hfBottom {
  28777. display: flex;
  28778. flex-direction: row;
  28779. flex-wrap: nowrap;
  28780. align-items: center;
  28781. justify-content: space-between;
  28782. font-size: 14px;
  28783. }
  28784. .deleteHfItem {
  28785. cursor: pointer;
  28786. width: 20px;
  28787. height: 20px;
  28788. }
  28789. .deleteHfItem > img {
  28790. width: 100%;
  28791. height: 100%;
  28792. }
  28793. .whoReplyWho > .hfImg {
  28794. width: 12px;
  28795. height: 12px;
  28796. margin: 0 5px;
  28797. }
  28798. .whoReplyWho > .hfImg > img {
  28799. width: 100%;
  28800. height: 100%;
  28801. }
  28802. .hfContent {
  28803. padding-top: 10px;
  28804. box-sizing: border-box;
  28805. display: -webkit-box;
  28806. overflow: hidden;
  28807. white-space: normal !important;
  28808. text-overflow: ellipsis;
  28809. word-wrap: break-word;
  28810. -webkit-box-orient: vertical;
  28811. }
  28812. .hfTime {
  28813. text-align: left;
  28814. box-sizing: border-box;
  28815. padding: 10px 0 10px 0px;
  28816. color: #bfbfbf;
  28817. font-size: 14px;
  28818. }
  28819. .btnAllNT {
  28820. position: fixed;
  28821. bottom: 100px;
  28822. right: 40px;
  28823. z-index: 999;
  28824. display: flex;
  28825. flex-direction: row;
  28826. }
  28827. .btnAllNT > img {
  28828. cursor: pointer;
  28829. width: 80px;
  28830. }
  28831. .toolMask {
  28832. position: fixed;
  28833. width: 100%;
  28834. height: 100%;
  28835. background: #3f3c3c;
  28836. opacity: 0.5;
  28837. top: 0;
  28838. left: 0;
  28839. z-index: 999;
  28840. }
  28841. .addToolCss {
  28842. position: fixed;
  28843. z-index: 999;
  28844. background: #fff;
  28845. right: 5%;
  28846. bottom: 18%;
  28847. min-width: 1035px;
  28848. min-height: 300px;
  28849. border-radius: 10px;
  28850. box-shadow: 0 0 8px 1px #b2b2b2;
  28851. }
  28852. .toolTop {
  28853. display: flex;
  28854. flex-direction: row;
  28855. flex-wrap: nowrap;
  28856. justify-content: space-between;
  28857. align-items: center;
  28858. padding: 20px;
  28859. }
  28860. .toolTop > div:nth-child(2) {
  28861. width: 15px;
  28862. height: 15px;
  28863. padding-right: 10px;
  28864. cursor: pointer;
  28865. }
  28866. .toolTop > div:nth-child(2) > img {
  28867. width: 100%;
  28868. height: 100%;
  28869. }
  28870. .fullStyle>>>.el-dialog__body {
  28871. height: calc(100% - 125px) !important;
  28872. box-sizing: border-box;
  28873. padding: 30px 0 !important;
  28874. background: #fff !important;
  28875. }
  28876. .fullStyle>>>.el-dialog {
  28877. width: 100% !important;
  28878. max-width: 100% !important;
  28879. height: 100% !important;
  28880. margin: 0 !important;
  28881. }
  28882. .fullStyle {
  28883. width: 100% !important;
  28884. max-width: 100% !important;
  28885. height: 100% !important;
  28886. margin: 0 auto !important;
  28887. }
  28888. .fullStyle>>>.el-dialog__footer{
  28889. background: #fff !important;
  28890. }
  28891. .engUpBox {
  28892. width: 100%;
  28893. height: 100%;
  28894. }
  28895. .engTitle,
  28896. .engText {
  28897. display: flex;
  28898. flex-direction: row;
  28899. flex-wrap: nowrap;
  28900. align-items: flex-start;
  28901. padding: 0 20px 20px 20px;
  28902. box-sizing: border-box;
  28903. }
  28904. .engTitle > .div:first-child,
  28905. .engText > div:first-child {
  28906. min-width: 75px;
  28907. }
  28908. .correctBox{
  28909. width: 100%;
  28910. display: flex;
  28911. flex-direction: row;
  28912. flex-wrap: nowrap;
  28913. align-items: flex-start;
  28914. }
  28915. .oldBox{
  28916. width: 50%;
  28917. height: 100%;
  28918. display: flex;
  28919. flex-direction: column;
  28920. flex-wrap: nowrap;
  28921. align-items: center;
  28922. border-top: 1px solid #d9d9d9;
  28923. border-left: 1px solid #d9d9d9;
  28924. border-right: 1px solid #d9d9d9;
  28925. }
  28926. .oldBox>div:first-child{
  28927. width: 100%;
  28928. text-align: center;
  28929. background: #d9d9d9;
  28930. height: 35px;
  28931. line-height: 35px;
  28932. font-weight: bold;
  28933. }
  28934. .oldText{
  28935. width: 100%;
  28936. height: calc(100% - 35px);
  28937. overflow: auto;
  28938. margin: 10px 0;
  28939. display: flex;
  28940. flex-direction: column;
  28941. flex-wrap: nowrap;
  28942. align-content: center;
  28943. align-items: center;
  28944. }
  28945. .detailBox{
  28946. width: 50%;
  28947. padding: 10px;
  28948. background: #f6f6f6;
  28949. border-radius: 5px;
  28950. }
  28951. .oldDetail,.oldDetail1{
  28952. padding-bottom: 30px;
  28953. }
  28954. .oldImg{
  28955. width:30px;
  28956. height: 30px;
  28957. }
  28958. .oldImg>img{
  28959. width: 100%;
  28960. height: 100%;
  28961. }
  28962. .allName{
  28963. min-width: 200px;
  28964. white-space: nowrap;
  28965. overflow: hidden;
  28966. text-overflow: ellipsis;
  28967. word-break: break-word;
  28968. cursor: pointer;
  28969. text-align: center;
  28970. border: 1px solid #bcc2cc;
  28971. box-sizing: border-box;
  28972. }
  28973. .engUpTop{
  28974. max-height: 300px;
  28975. overflow: auto;
  28976. }
  28977. .isUpdateToolDetailClass{
  28978. padding: 0 !important;
  28979. }
  28980. .isUpdateToolDetailClass textarea{
  28981. padding:12px;
  28982. font-size: 16px;
  28983. min-height:100%;
  28984. width: 100%;
  28985. box-sizing:border-box;
  28986. outline: none;
  28987. border:none;
  28988. line-height: 30px;
  28989. resize: none;
  28990. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  28991. color: #838383;
  28992. }
  28993. .show_taskD {
  28994. min-width: fit-content;
  28995. margin-left: 10px;
  28996. display: flex;
  28997. align-items: center;
  28998. font-size: 14px;
  28999. cursor: pointer;
  29000. color: #717c8d;
  29001. }
  29002. .show_taskD > img {
  29003. width: 15px;
  29004. margin-right: 5px;
  29005. transition: 0.2s all;
  29006. transform: rotate(-90deg);
  29007. }
  29008. .show_taskD.show > img {
  29009. transform: rotate(0deg);
  29010. }
  29011. .correctCss{
  29012. position: absolute;
  29013. bottom: -70px;
  29014. background: #409eff;
  29015. color: #fff;
  29016. }
  29017. .ScoreBtn {
  29018. background: rgba(87, 159, 248, 1);
  29019. display: flex;
  29020. justify-content: center;
  29021. align-items: center;
  29022. color: #fff;
  29023. font-size: 14px;
  29024. padding: 8px 12px;
  29025. border-radius: 5px;
  29026. cursor: pointer;
  29027. }
  29028. .max-height-popover .el-popover {
  29029. min-height: 200px;
  29030. max-height: 400px; /* 设置最大高度 */
  29031. overflow: auto; /* 超出部分显示滚动条 */
  29032. }
  29033. .stuLookScore {
  29034. position: absolute;
  29035. top: 12px;
  29036. right: 40px;
  29037. background: #0000008f;
  29038. border-radius: 5px;
  29039. padding: 3px 5px;
  29040. font-size: 14px;
  29041. color: #fff;
  29042. cursor: pointer;
  29043. }
  29044. .dialog_diyCopy >>> .el-dialog__header {
  29045. display: none !important;
  29046. }
  29047. .dialog_diyCopy >>> .el-dialog__body {
  29048. padding: 0 !important;
  29049. height: 100% !important;
  29050. }
  29051. .confirmOpenDigCss > div{
  29052. font-size: 14px;
  29053. color: rgba(0, 0, 0, 0.6);
  29054. }
  29055. .confirmOpenDigCss >>> .el-dialog{
  29056. border-radius: 6px;
  29057. }
  29058. .confirmOpenDigCss >>> .el-dialog__body{
  29059. padding: 25px !important;
  29060. }
  29061. .confirmOpenDigCss > span{
  29062. font-size: 16px;
  29063. font-weight: 600;
  29064. color: rgba(0, 0, 0, 0.8);
  29065. }
  29066. div::-webkit-scrollbar {
  29067. width: 10px;
  29068. height: 6px;
  29069. }
  29070. .Ovh{
  29071. margin: 5px 0;
  29072. width: 4em;
  29073. -webkit-line-clamp: 2;
  29074. display: -webkit-box;
  29075. -webkit-box-orient: vertical;
  29076. overflow: hidden;
  29077. text-overflow: ellipsis;
  29078. }
  29079. .renderedFor >>> .katex {
  29080. font-size: 18px;
  29081. width: 100%;
  29082. white-space: normal;
  29083. font-family: '黑体' !important;
  29084. }
  29085. .renderedFor >>> .katex .base{
  29086. display: inline !important;
  29087. display: contents !important;
  29088. }
  29089. .renderedFor>>> .katex .base .cjk_fallback{
  29090. white-space: normal !important;
  29091. display: inline !important;
  29092. }
  29093. .notop >>> .vjs-fluid{
  29094. padding-top: 0 !important;
  29095. }
  29096. .xiaz{
  29097. position: absolute;
  29098. right: 40px;
  29099. top: 10px;
  29100. width: 24px !important;
  29101. padding: 4px;
  29102. box-sizing: border-box;
  29103. background: #243052;
  29104. border-radius: 8px;
  29105. height: 24px !important;
  29106. }
  29107. </style>